/* Base styles */
:root {
  --primary: #1aa79b;
  --primary-dark: #158f84;
  --primary-light: #e6f7f5;
  --secondary: #edf2f2;
  --secondary-dark: #d1d8d8;
  --foreground: #0f172a;
  --foreground-light: #64748b;
  --background: #ffffff;
  --card: #ffffff;
  --border: #e2e8f0;
  --muted: #f1f5f9;
  --radius: 0.5rem;
}

/* Ajout de transitions globales pour une meilleure expérience utilisateur */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.875rem;
}

/* Amélioration des transitions pour les boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-full {
  width: 100%;
}

.btn i {
  margin-left: 0.5rem;
}

/* Amélioration des cartes avec effet d'élévation au survol */
.card {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header {
  padding: 1.5rem 1.5rem 0.5rem;
}

.card-content {
  padding: 0.5rem 1.5rem 1.5rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgba(26, 167, 155, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card-subtitle {
  color: var(--foreground-light);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(to right, var(--primary), #2a4365);
  color: white;
  padding: 5rem 0 8rem;
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-image {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  border: 4px solid white;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero h2 {
  font-weight: 500;
  font-size: 1.25rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: linear-gradient(to top, var(--background), transparent);
}

/* Services Section */
.services {
  padding: 4rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Skills Section */
.skills {
  padding: 4rem 0;
  background-color: var(--muted);
}

.tabs {
  margin-top: 2rem;
}

.tabs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .tabs-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Amélioration des transitions pour les onglets */
.tab-trigger {
  padding: 0.75rem;
  background-color: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tab-trigger::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.tab-trigger:hover::after {
  width: 80%;
}

.tab-trigger.active {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-trigger.active::after {
  width: 0;
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animation pour les skill charts */
.skill-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  transition: transform 0.3s ease;
}

.skill-chart:hover {
  transform: scale(1.05);
}

.skill-chart::before {
  content: "";
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: #e6e6e6;
  position: relative;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.skill-chart:hover::before {
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.15), 0 0 20px rgba(26, 167, 155, 0.2);
}

.skill-chart::after {
  content: attr(data-percentage) "%";
  position: absolute;
  top: 3.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.skill-chart:hover::after {
  transform: scale(1.1);
}

.skill-chart[data-percentage]::before {
  background: conic-gradient(var(--primary) 0% calc(var(--percentage) * 1%), #e6e6e6 calc(var(--percentage) * 1%) 100%);
}

.skill-name {
  font-weight: 500;
  margin-top: 1rem;
  text-align: center;
}

.skill-description {
  font-size: 0.875rem;
  color: var(--foreground-light);
  text-align: center;
  margin-top: 0.25rem;
}

/* Experience Section */
.experience {
  padding: 4rem 0;
}

/* Refonte complète des marqueurs de timeline */
.timeline {
  position: relative;
  margin-left: 1.5rem; /* Réduit de 2rem à 1.5rem */
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px; /* Réduit de 3px à 2px */
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(26, 167, 155, 0.2);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.timeline-item:hover {
  opacity: 1;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: -0.4rem; /* Modifié de -0.75rem à -0.4rem */
  width: 0.8rem; /* Réduit de 1.5rem à 0.8rem */
  height: 0.8rem; /* Réduit de 1.5rem à 0.8rem */
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 5px rgba(26, 167, 155, 0.3);
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 1), 0 0 8px rgba(26, 167, 155, 0.5);
}

.timeline-content {
  padding-left: 1.5rem; /* Maintenu à 1.5rem */
}

.timeline-date {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground-light);
  margin-bottom: 0.5rem;
  margin-left: 0.5rem; /* Ajout d'une marge à gauche pour éloigner la date du marqueur */
}

.timeline-title {
  margin-bottom: 1rem;
}

.timeline-title span {
  color: var(--primary);
}

.timeline-description {
  list-style-type: none;
}

.timeline-description li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.timeline-description li::before {
  content: "•";
  color: var(--primary);
  margin-right: 0.5rem;
}

/* Certifications Section */
.certifications {
  padding: 4rem 0;
  background-color: var(--muted);
}

.certifications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.certifications-column h3 {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.certifications-column h3 i {
  margin-right: 0.5rem;
  color: var(--primary);
}

.certifications-list {
  list-style-type: none;
}

.certifications-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.cert-title {
  font-weight: 500;
}

.cert-subtitle {
  font-size: 0.875rem;
  color: var(--foreground-light);
}

/* Projects Section */
.projects {
  padding: 4rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Testimonials Section */
.testimonials {
  padding: 4rem 0;
  background-color: var(--muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-text {
  font-style: italic;
}

/* Contact Section */
.contact {
  padding: 4rem 0;
}

.contact-card {
  max-width: 28rem;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  color: var(--foreground-light);
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--primary);
}

/* Footer */
.footer {
  padding: 2rem 0;
  background-color: var(--primary);
  color: white;
  text-align: center;
}

