:root {
  --bleu-foncé: #002f4b;
  --turquoise: #00818e;
  --blanc: #fdfdfd;
  --argent: #d3d9de;
  --accent: #ff6c39;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter", sans-serif;
  background-color: var(--bleu-foncé);
  color: var(--blanc);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
header {
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

/* vidéo plein écran dans le header */
.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplit sans déformer */
  object-position: center bottom; /* décale le cadre si besoin */
  z-index: 0; /* derrière le texte/logo */
}

.video-bg.centered {
  object-position: center center !important;
  transition: object-position 2.2s cubic-bezier(0.4, 0, 0.2, 1); /* transition plus lente */
}

.video-bg.returned {
  object-position: center bottom !important;
  transition: object-position 1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.logo {
  height: 68px;
  display: block;
  margin: 0 auto 1.2rem auto;
  position: relative;
  z-index: 3;
  filter: hue-rotate(3deg) brightness(1.2);
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px; /* ajuste la hauteur si besoin */
  line-height: 0;
  z-index: 2; /* au-dessus de l’image, sous le contenu */
}

@media (min-width: 768px) {
  header {
    position: relative;
  }
  .logo {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    margin: 0;
    height: 72px;
  }
}

header h1 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  font-family: "Lora", serif;
  text-transform: uppercase;
  text-shadow: 0 4px 6px rgb(0, 47, 75);
  color: var(--blanc);
  margin-bottom: 1rem;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeInUp 1s 0.2s forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
header a.button {
  background-color: var(--turquoise);
  color: var(--bleu-foncé);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: box-shadow 0.2s, transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 16px #02406a21;
  opacity: 0;
  animation: fadeInUp 1s 0.5s forwards;
  display: inline-block;
  margin-top: 10px;
  position: relative;
  z-index: 3;
  will-change: transform;
}
header a.button:hover {
  box-shadow: 0 8px 32px #2ed8c355;
  transform: scale(1.05);
  background-color: #00a4b4;
}
section {
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
.title {
  color: var(--turquoise);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: "Orbitron", "Inter", sans-serif;
  letter-spacing: 1.5px;
  text-align: center;
}
#vision p {
  text-align: center;
}
.features,
.usage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 2rem;
}
.features img,
.usage img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  transition: transform 0.4s, filter 0.3s;
  will-change: transform;
}
.features .color img {
  filter: hue-rotate(20deg) saturate(1.1);
}
.features .color img:hover {
  filter: hue-rotate(20deg) saturate(1.1) drop-shadow(0 2px 12px #00a4b4);
}
.features .colorKite img {
  filter: hue-rotate(-3deg) saturate(1.1) brightness(0.9);
}
.features .colorKite img:hover {
  filter: hue-rotate(-3deg) saturate(1.1) brightness(0.9)
    drop-shadow(0 2px 12px #00a4b4);
}
.features .colorLiberty img {
  filter: hue-rotate(3deg) saturate(1.1) brightness(0.9);
}
.features .colorLiberty img:hover {
  filter: hue-rotate(3deg) saturate(1.1) brightness(0.9)
    drop-shadow(0 2px 12px #00a4b4);
}
.features .motor-solar img {
  filter: brightness(0.8);
}
.features .motor-solar img:hover {
  filter: brightness(0.8) drop-shadow(0 2px 12px #00a4b4);
}
.features img:hover,
.usage img:hover {
  transform: scale(1.13) rotate(-5deg);
  filter: drop-shadow(0 2px 12px #00a4b4);
}
.features p {
  font-size: 0.95rem;
  margin: 0;
}

#modularity p,
#why-kaido p {
  text-align: center;
  max-width: 700px;
  margin: 1rem auto;
  line-height: 1.6;
}
.cta {
  text-align: center;
  background: linear-gradient(180deg, #00818e 0%, #002f4b 100%);
  padding: 3rem 1rem 6rem 1rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 8px 32px #002f4b33;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 60px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 120" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,40 Q360,120 720,60 T1440,40 L1440,120 L0,120 Z" fill="%23002f4b"/></svg>')
    no-repeat bottom center/cover;
  pointer-events: none;
  z-index: 2;
}
.cta a {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--turquoise);
  color: var(--bleu-foncé);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 16px #2ed8c333;
  transition: box-shadow 0.2s, transform 0.2s;
}
.cta a:hover {
  box-shadow: 0 6px 24px #2ed8c355;
  transform: scale(1.05);
  background-color: #00a4b4;
}
footer {
  text-align: center;
  padding: 1rem 2rem 2rem 2rem;
  font-size: 0.875rem;
  color: var(--argent);
}

/* Ligne ondulée animée entre sections (mobile, effet dessin progressif alterné) */
.wave-line-separator {
  display: none;
}

/* Affichage et animation uniquement sur mobile */
@media (max-width: 600px) {
  .wave-line-separator {
    display: block;
    width: 100%;
    max-width: 100vw;
    height: 28px;
    margin: 0 auto;
    overflow: visible;
    background: none;
    z-index: 1000;
    position: relative;
  }
  .wave-line-separator path {
    opacity: 0;
    stroke: #00818e;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 1440;
    stroke-dashoffset: 1440;
    animation: none;
    transition: none;
  }
  .wave-line-separator.visible path {
    opacity: 1;
    animation: wave-draw-fade 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .wave-line-separator.right {
    transform: scaleX(-1);
  }
  .wave-line-separator.right.visible path {
    opacity: 1;
    animation: wave-draw-fade 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  @keyframes wave-draw-fade {
    0% {
      stroke-dashoffset: 1440;
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    100% {
      stroke-dashoffset: 0;
      opacity: 1;
    }
  }
  .cta {
    padding-top: 6rem;
    border-radius: 0 !important;
  }
  footer {
    padding-top: 0rem;
  }
  .cta::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 120" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,30 Q180,0 360,30 T720,30 T1080,30 T1440,30 L1440,120 L0,120 Z" fill="%23002f4b"/></svg>')
      no-repeat top center/cover;
    pointer-events: none;
    z-index: 2;
    transform: rotate(180deg);
  }
  .cta::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 120" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,30 Q180,0 360,30 T720,30 T1080,30 T1440,30 L1440,120 L0,120 Z" fill="%23002f4b"/></svg>')
      no-repeat bottom center/cover;
    pointer-events: none;
    z-index: 2;
  }
}

/* Menu de navigation sticky */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 47, 75, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 129, 142, 0.2);
  z-index: 10000; /* Z-index élevé pour la navigation */
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-nav.visible {
  transform: translateY(0);
  animation: smoothReveal 0.3s ease-in-out;
}

@keyframes smoothReveal {
  from {
    transform: translateY(-100%);
    opacity: 0.8;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.nav-logo {
  height: 40px;
  opacity: 0.9;
  filter: hue-rotate(3deg) brightness(1.2);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--blanc);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  background-color: rgba(0, 129, 142, 0.2);
  color: var(--turquoise);
  transform: translateY(-1px);
}

.nav-links a.active {
  background-color: var(--turquoise);
  color: var(--bleu-foncé);
  position: relative;
  font-weight: 600;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 129, 142, 0.2);
}

.nav-cta {
  background-color: var(--turquoise);
  color: var(--bleu-foncé);
  padding: 0.25rem 0.75rem; /* Padding réduit par défaut */
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 129, 142, 0.15);
  position: relative;
  z-index: 10;
}

.nav-cta .nav-cta-icon {
  display: none; /* Masqué par défaut sur tous les écrans */
  animation: fadeIn 0.3s ease;
  line-height: 1;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1rem;
  font-weight: 600;
}

.nav-cta .nav-cta-text {
  display: inline;
  animation: fadeIn 0.3s ease;
  letter-spacing: 0.02em;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nav-cta:hover {
  box-shadow: 0 4px 16px rgba(46, 216, 195, 0.3);
  transform: translateY(-1px) scale(1.03);
  background-color: #00a4b4;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Responsive pour le menu sticky */
@media (max-width: 768px) {
  .nav-container {
    padding: 0.5rem 1rem;
    height: 55px;
    flex-wrap: nowrap;
    position: relative;
  }

  .nav-logo {
    height: 32px;
    flex-shrink: 0;
    margin-right: 0.5rem;
  }

  .nav-links {
    gap: 0.8rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 0.5rem;
    flex: 1;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-behavior: smooth; /* Smooth scrolling on supported browsers */
    padding-bottom: 5px; /* Extra space for scroll indication */
    padding-right: 100px; /* Espace augmenté pour le bouton "Nous contacter" */
    mask-image: linear-gradient(
      to right,
      transparent,
      #000 10px,
      #000 calc(100% - 50px),
      transparent
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      #000 10px,
      #000 calc(100% - 50px),
      transparent
    );
    position: relative;
  }

  /* Subtle scroll indicator */
  @media (max-width: 768px) and (min-width: 421px) {
    .nav-container:after {
      content: "";
      position: absolute;
      top: 0;
      right: 120px; /* Ajusté pour tenir compte du bouton repositionné */
      bottom: 0;
      width: 40px;
      background: linear-gradient(to right, transparent, rgba(0, 47, 75, 0.9));
      pointer-events: none;
      z-index: 1;
    }
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-cta {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 6px rgba(0, 129, 142, 0.2);
  }
}
@media (max-width: 640px) {
  .nav-container {
    padding: 0.4rem 0.8rem;
    height: 50px;
    position: relative;
  }

  .nav-logo {
    height: 28px;
  }

  .nav-links {
    gap: 0.5rem;
    padding-right: 75px; /* Espace optimisé pour le bouton */
    margin-right: 5px; /* Marge supplémentaire pour éviter le chevauchement */
  }

  .nav-links a {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
  }

  .nav-cta {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    flex-shrink: 0;
    min-width: auto;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    box-shadow: 0 1px 5px rgba(0, 129, 142, 0.15);
  }

  /* Pour des écrans entre 580px et 640px, on garde le texte mais avec style adapté */
  @media (max-width: 640px) and (min-width: 581px) {
    .nav-cta .nav-cta-text {
      display: inline-block;
      font-size: 0.75rem;
    }

    .nav-cta .nav-cta-icon {
      display: none;
    }

    .nav-cta {
      padding: 0.2rem 0.6rem;
      height: auto;
    }
  }

  /* À partir de 580px et jusqu'à 421px, on affiche uniquement l'icône */
  @media (max-width: 580px) and (min-width: 421px) {
    .nav-cta {
      padding: 0;
      min-width: auto;
      width: 36px; /* Taille optimale pour le bouton icône */
      height: 36px;
      border-radius: 50%; /* Bouton rond pour l'icône */
      display: flex;
      align-items: center;
      justify-content: center;
      right: 0.7rem;
      box-shadow: 0 2px 8px rgba(0, 129, 142, 0.25);
    }

    .nav-cta .nav-cta-text {
      display: none;
    }

    .nav-cta .nav-cta-icon {
      display: flex;
      font-size: 1.1rem;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
    }

    .nav-links {
      padding-right: 50px; /* Espace adapté pour l'icône */
    }

    /* Réajuster l'indicateur de défilement */
    .nav-container:after {
      right: 45px;
      width: 30px;
    }
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.3rem 0.6rem;
    height: 45px;
  }

  .nav-logo {
    height: 24px;
  }

  .nav-links {
    gap: 0.3rem;
    margin: 0 0.2rem;
    flex: 1;
    justify-content: flex-start;
    padding-right: 48px; /* Espace optimisé pour l'icône */
  }

  .nav-links a {
    font-size: 0.7rem;
    padding: 0.3rem 0.4rem;
  }

  .nav-cta {
    font-size: 0.7rem;
    padding: 0;
    flex-shrink: 0;
    right: 0.6rem;
    width: 34px; /* Taille légèrement agrandie pour meilleure accessibilité */
    height: 34px;
    border-radius: 50%; /* Bouton rond pour l'icône */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Réajuster l'indicateur de défilement */
  .nav-container:after {
    right: 44px; /* Ajuster en fonction du padding-right de nav-links */
    width: 25px;
  }
}

/* Toujours utiliser l'icône pour les écrans entre 480px et 421px */
@media (max-width: 480px) and (min-width: 421px) {
  .nav-cta {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 0.6rem;
    box-shadow: 0 2px 6px rgba(0, 129, 142, 0.2);
  }

  .nav-cta .nav-cta-text {
    display: none;
  }

  .nav-cta .nav-cta-icon {
    display: flex;
    font-size: 1rem;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
  }

  /* Ajuster l'espace pour les liens de navigation */
  .nav-links {
    padding-right: 45px;
  }
}
/* Section équipe */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.team-member {
  text-align: center;
  background: rgba(0, 129, 142, 0.1);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 129, 142, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.team-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 129, 142, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.team-member:hover::before {
  left: 100%;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 129, 142, 0.2);
}

.member-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--turquoise);
  position: relative;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.team-member:hover .member-photo img {
  transform: scale(1.1);
}

.team-member h3 {
  color: var(--blanc);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: "Orbitron", sans-serif;
}

.member-role {
  color: var(--turquoise);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.member-bio {
  color: var(--argent);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

/* Images par défaut en cas d'absence */
.member-photo img[src*="team-"] {
  background: linear-gradient(135deg, var(--turquoise), var(--bleu-foncé));
}

.member-photo::after {
  content: "👤";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.member-photo img {
  position: relative;
  z-index: 2;
}

/* === SECTION FAQ === */
#faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  padding-bottom: 6rem;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 129, 142, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--turquoise);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 129, 142, 0.15);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: rgba(0, 129, 142, 0.1);
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blanc);
  flex: 1;
  margin: 0;
  line-height: 1.4;
  padding-right: 1rem;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--turquoise);
  font-weight: 300;
  transition: all 0.3s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 47, 75, 0.3);
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--argent);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

/* États actifs */
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active {
  border-color: var(--turquoise);
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
  #faq {
    padding: 3rem 1rem;
  }

  .faq-question {
    padding: 1.25rem;
  }

  .faq-question h3 {
    font-size: 1rem;
    padding-right: 0.75rem;
  }

  .faq-answer p {
    padding: 0 1.25rem 1.25rem 1.25rem;
    font-size: 0.9rem;
  }

  .faq-icon {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: 1rem;
  }

  .faq-answer p {
    padding: 0 1rem 1rem 1rem;
  }
}

/* Animation d'apparition au scroll */
.faq-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Délai d'animation pour chaque item */
.faq-item:nth-child(1) {
  transition-delay: 0.1s;
}
.faq-item:nth-child(2) {
  transition-delay: 0.2s;
}
.faq-item:nth-child(3) {
  transition-delay: 0.3s;
}
.faq-item:nth-child(4) {
  transition-delay: 0.4s;
}
.faq-item:nth-child(5) {
  transition-delay: 0.5s;
}
.faq-item:nth-child(6) {
  transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-member {
    padding: 1.5rem 1rem;
  }

  .member-photo {
    width: 100px;
    height: 100px;
  }
}

/* === MODAL DE CONTACT === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bleu-foncé);
  border: 2px solid var(--turquoise);
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden; /* Masque tout débordement pour respecter les coins arrondis */
  box-shadow: 0 20px 60px rgba(0, 129, 142, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-overlay.visible .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(0, 129, 142, 0.2);
  background: rgba(0, 129, 142, 0.1);
  flex-shrink: 0; /* Le header ne se réduit pas */
  border-radius: 20px 20px 0 0; /* Coins arrondis seulement en haut */
}

.modal-title {
  color: var(--turquoise);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  font-family: "Orbitron", sans-serif;
}

.modal-close {
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--turquoise);
  transform: rotate(90deg);
}

.modal-content {
  padding: 2rem;
  overflow-y: auto; /* Le scroll se fait ici, dans le contenu */
  flex: 1; /* Prend l'espace disponible */
  /* Scrollbar personnalisée pour respecter le design */
  scrollbar-width: thin;
  scrollbar-color: var(--turquoise) transparent;
}
.contact-subtitle {
  font-size: 1.1rem;
  color: var(--argent);
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.contact-form {
  max-width: 100%;
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 129, 142, 0.2);
  box-shadow: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--blanc);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(0, 129, 142, 0.3);
  border-radius: 8px;
  background: rgba(0, 47, 75, 0.6);
  color: var(--blanc);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  background: rgba(0, 47, 75, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 129, 142, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--argent);
  opacity: 0.8;
}

.form-group select option {
  background: var(--bleu-foncé);
  color: var(--blanc);
}

/* Checkboxes personnalisées */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--blanc);
  position: relative;
  padding-left: 2rem;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background: rgba(0, 47, 75, 0.6);
  border: 2px solid rgba(0, 129, 142, 0.5);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.checkbox-label:hover .checkmark {
  border-color: var(--turquoise);
  background: rgba(0, 129, 142, 0.1);
}

.checkbox-label input:checked ~ .checkmark {
  background: var(--turquoise);
  border-color: var(--turquoise);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--bleu-foncé);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-privacy {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.checkbox-privacy .checkbox-label {
  font-size: 0.85rem;
  color: var(--argent);
}

/* Messages d'erreur pour les checkboxes */
.checkbox-label input[type="checkbox"].error + .checkmark {
  border-color: var(--accent);
  background: rgba(255, 108, 57, 0.1);
  animation: fieldShake 0.3s ease-in-out;
}

.checkbox-privacy.error .checkbox-label {
  color: var(--accent);
}

/* Bouton de soumission */
.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--turquoise), #00a4b4);
  color: var(--bleu-foncé);
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 129, 142, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 129, 142, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn.loading {
  background: var(--argent);
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: none;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-loading {
  display: inline;
}

/* Message de succès */
.contact-success {
  display: none;
  text-align: center;
  background: rgba(0, 129, 142, 0.1);
  padding: 2rem;
  border-radius: 20px;
  border: 2px solid var(--turquoise);
  max-width: 400px;
  margin: 2rem auto 0;
}

.contact-success.visible {
  display: block;
  animation: successFadeIn 0.6s ease-out;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--turquoise);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--bleu-foncé);
  margin: 0 auto 1rem;
  font-weight: bold;
}

.contact-success h3 {
  color: var(--turquoise);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.contact-success p {
  color: var(--argent);
  font-size: 0.95rem;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Messages d'erreur de validation */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--accent);
  background: rgba(255, 108, 57, 0.1);
}

.field-error {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Animation d'erreur */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  animation: fieldShake 0.3s ease-in-out;
}

@keyframes fieldShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Responsive pour le formulaire */
@media (max-width: 768px) {
  .contact-form {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  .submit-btn {
    padding: 0.85rem 1.5rem;
  }
}

/* Responsive pour la modal */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1rem 1.5rem;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .modal-container {
    width: 98%;
    margin: 1%;
  }

  .modal-header {
    padding: 0.75rem 1rem;
  }

  .modal-content {
    padding: 1rem;
  }

  .contact-form {
    padding: 0.75rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  .submit-btn {
    padding: 0.85rem 1.5rem;
  }
}

/* Style pour le bouton contact principal */
.contact-btn {
  display: inline-block;
  background-color: var(--turquoise);
  color: var(--bleu-foncé);
  padding: 0.5rem 0.75rem !important;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: box-shadow 0.2s, transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 16px rgba(0, 129, 142, 0.3);
  cursor: pointer;
  border: none;
  font-size: 0.8rem;
  height: auto;
  width: auto;
  /* box-shadow: 0 2px 6px rgba(0, 129, 142, 0.2) !important; */
}

.contact-btn:hover {
  box-shadow: 0 8px 24px rgba(0, 129, 142, 0.4);
  transform: scale(1.05);
  background-color: #00a4b4;
}

/* === SCROLLBAR PERSONNALISÉE THÈME KAIDO === */

/* Pour les navigateurs WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bleu-foncé);
  border-radius: 8px;
  border: 1px solid rgba(0, 129, 142, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--turquoise) 0%, #00a4b4 100%);
  border-radius: 8px;
  border: 1px solid rgba(0, 47, 75, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 129, 142, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00a4b4 0%, var(--turquoise) 100%);
  box-shadow: 0 4px 8px rgba(0, 129, 142, 0.4);
  transform: scale(1.02);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, var(--accent) 0%, var(--turquoise) 100%);
  box-shadow: 0 2px 4px rgba(255, 108, 57, 0.3);
}

::-webkit-scrollbar-corner {
  background: var(--bleu-foncé);
}

/* Scrollbar plus fine pour les éléments compacts */
.nav-links::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.nav-links::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 47, 75, 0.6);
  border-radius: 6px;
}

.nav-links::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
  background: var(--turquoise);
  border-radius: 6px;
  border: none;
  transition: all 0.3s ease;
}

.nav-links::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
  background: #00a4b4;
  box-shadow: 0 2px 6px rgba(0, 129, 142, 0.3);
}

/* Pour Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--turquoise) var(--bleu-foncé);
}

/* Version alternative pour Firefox avec plus de contrôle */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: auto;
    scrollbar-color: var(--turquoise) var(--bleu-foncé);
  }

  .nav-links,
  .modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--turquoise) rgba(0, 47, 75, 0.6);
  }
}

/* Effet de glow subtil pour la scrollbar principale */
::-webkit-scrollbar-thumb {
  position: relative;
}

::-webkit-scrollbar-thumb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--turquoise);
  border-radius: 8px;
  opacity: 0.3;
  filter: blur(2px);
  z-index: -1;
}

/* Animation subtile pour la scrollbar */
@keyframes scrollbarGlow {
  0%,
  100% {
    box-shadow: 0 2px 4px rgba(0, 129, 142, 0.2);
  }
  50% {
    box-shadow: 0 4px 8px rgba(0, 129, 142, 0.4);
  }
}

::-webkit-scrollbar-thumb:hover {
  animation: scrollbarGlow 2s ease-in-out infinite;
}

/* Responsive - scrollbar plus fine sur mobile */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-thumb {
    border-radius: 6px;
  }

  ::-webkit-scrollbar-track {
    border-radius: 6px;
  }
}

/* Scrollbar quasi invisible sur très petits écrans */
@media (max-width: 480px) {
  ::-webkit-scrollbar {
    width: 4px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
    border: none;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(0, 129, 142, 0.6);
    border: none;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--turquoise);
  }
}

/* Menu hamburger pour écrans où les onglets ne rentrent pas */
@media (max-width: 420px) {
  .nav-container {
    position: relative;
    justify-content: space-between;
    padding: 0.4rem; /* Padding uniforme */
    height: 48px; /* Hauteur légèrement augmentée pour espace suffisant */
  }

  .nav-logo {
    order: 1; /* Logo à gauche */
    height: 26px; /* Taille ajustée */
    margin-left: 0.2rem;
  }

  /* Menu déroulant moderne */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 47, 75, 0.98); /* Fond semi-transparent moderne */
    backdrop-filter: blur(20px); /* Effet de flou glassmorphism */
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(0, 129, 142, 0.3);
    border-top: none;
    border-radius: 0 0 24px 24px; /* Coins plus arrondis */
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Courbe plus fluide */
    z-index: 10001;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
      0 10px 25px rgba(0, 129, 142, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 129, 142, 0.3);
    /* Désactiver les masques de fondu pour le menu burger */
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  /* Animation de fermeture moderne */
  .nav-links.mobile-closing {
    display: flex;
    animation: menuSlideUpModern 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)
      forwards;
    visibility: visible;
  }

  @keyframes menuSlideUpModern {
    0% {
      transform: translateY(0) scale(1);
      opacity: 1;
      backdrop-filter: blur(20px);
    }
    50% {
      transform: translateY(-10px) scale(0.98);
      opacity: 0.6;
      backdrop-filter: blur(15px);
    }
    100% {
      transform: translateY(-20px) scale(0.95);
      opacity: 0;
      backdrop-filter: blur(5px);
    }
  }

  /* Animation de fermeture moderne des éléments du menu */
  .nav-links.mobile-closing a {
    animation: menuItemSlideOutModern 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)
      forwards;
  }

  .nav-links.mobile-closing a:nth-child(1) {
    animation-delay: 0s;
  }
  .nav-links.mobile-closing a:nth-child(2) {
    animation-delay: 0.03s;
  }
  .nav-links.mobile-closing a:nth-child(3) {
    animation-delay: 0.06s;
  }
  .nav-links.mobile-closing a:nth-child(4) {
    animation-delay: 0.09s;
  }
  .nav-links.mobile-closing a:nth-child(5) {
    animation-delay: 0.12s;
  }
  .nav-links.mobile-closing a:nth-child(6) {
    animation-delay: 0.15s;
  }
  .nav-links.mobile-closing a:nth-child(7) {
    animation-delay: 0.18s;
  }
  .nav-links.mobile-closing a:nth-child(8) {
    animation-delay: 0.21s;
  }

  @keyframes menuItemSlideOutModern {
    0% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    100% {
      opacity: 0;
      transform: translateY(-15px) scale(0.9);
    }
  }

  /* Animation d'ouverture moderne */
  @keyframes menuSlideDownModern {
    0% {
      transform: translateY(-20px) scale(0.95);
      opacity: 0;
      backdrop-filter: blur(5px);
    }
    50% {
      transform: translateY(-5px) scale(0.98);
      opacity: 0.8;
      backdrop-filter: blur(15px);
    }
    100% {
      transform: translateY(0) scale(1);
      opacity: 1;
      backdrop-filter: blur(20px);
    }
  }

  .nav-links.mobile-open {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: rgba(0, 47, 75, 0.98); /* Fond semi-transparent moderne */
    backdrop-filter: blur(20px); /* Effet glassmorphism */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 129, 142, 0.3);
    border-top: none;
    mask-image: none !important; /* Désactiver le masque de fondu */
    -webkit-mask-image: none !important; /* Désactiver le masque WebKit */
    padding-right: 1.5rem !important; /* Restaurer le padding normal */
    animation: menuSlideDownModern 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94)
      forwards;
  }

  .nav-links a {
    display: block !important;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
    color: var(--blanc);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 16px; /* Coins arrondis modernes */
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.05); /* Fond subtil */
    border: 1px solid rgba(0, 129, 142, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: menuItemSlideInModern 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)
      forwards;
  }

  /* Animation d'apparition moderne séquentielle des éléments */
  .nav-links.mobile-open a:nth-child(1) {
    animation-delay: 0.1s;
  }
  .nav-links.mobile-open a:nth-child(2) {
    animation-delay: 0.2s;
  }
  .nav-links.mobile-open a:nth-child(3) {
    animation-delay: 0.3s;
  }
  .nav-links.mobile-open a:nth-child(4) {
    animation-delay: 0.4s;
  }
  .nav-links.mobile-open a:nth-child(5) {
    animation-delay: 0.5s;
  }
  .nav-links.mobile-open a:nth-child(6) {
    animation-delay: 0.6s;
  }
  .nav-links.mobile-open a:nth-child(7) {
    animation-delay: 0.7s;
  }
  .nav-links.mobile-open a:nth-child(8) {
    animation-delay: 0.8s;
  }

  @keyframes menuItemSlideInModern {
    0% {
      opacity: 0;
      transform: translateY(20px) scale(0.95);
    }
    60% {
      opacity: 0.8;
      transform: translateY(-2px) scale(1.02);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .nav-links a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(0, 129, 142, 0.3),
      transparent
    );
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .nav-links a:hover::before {
    left: 100%;
  }

  .nav-links a:hover {
    background: rgba(0, 129, 142, 0.15);
    color: var(--turquoise);
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(0, 129, 142, 0.6);
    box-shadow: 0 8px 25px rgba(0, 129, 142, 0.25),
      0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .nav-links a:last-child {
    margin-bottom: 0;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 129, 142, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 129, 142, 0.3);
    color: var(--turquoise);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.4rem;
    width: 40px;
    height: 40px;
    border-radius: 12px; /* Plus arrondi et moderne */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-left: 0.5rem;
    order: 3; /* Burger tout à droite */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 129, 142, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .nav-toggle:hover {
    background: rgba(0, 129, 142, 0.2);
    border-color: rgba(0, 129, 142, 0.6);
    box-shadow: 0 6px 20px rgba(0, 129, 142, 0.3),
      0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
  }

  .nav-toggle:active {
    transform: translateY(0) scale(0.98);
  }

  .nav-cta {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 16px;
    min-width: auto;
    margin-left: auto; /* Pousse vers la droite */
    margin-right: 0.6rem; /* Espace entre le bouton et le burger */
    order: 2; /* Bouton au milieu */
    height: 32px; /* Hauteur ajustée */
    display: flex;
    align-items: center;
    position: static; /* Annule la position absolute pour le mode mobile */
    transform: none; /* Annule la transformation pour le mode mobile */
    right: auto; /* Annule le positionnement à droite */
  }

  /* Afficher le texte et non l'icône dans le bouton CTA sur mobile avec menu burger */
  .nav-cta .nav-cta-text {
    display: inline-block;
    font-size: 0.8rem;
    white-space: nowrap;
    line-height: 1;
  }

  .nav-cta .nav-cta-icon {
    display: none;
  }

  /* S'assurer que le body n'est pas visible quand le menu est ouvert */
  body.menu-open {
    overflow: hidden;
  }

  /* Overlay pour masquer COMPLÈTEMENT le contenu derrière le menu burger */
  body.menu-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bleu-foncé); /* Fond COMPLÈTEMENT opaque */
    z-index: 9000; /* SOUS le menu qui est à 10001 */
    pointer-events: none;
  }

  @keyframes fadeInOverlay {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

@media (min-width: 769px) {
  /* Pour desktop, on affiche uniquement le texte dans le bouton */
  .nav-cta .nav-cta-text {
    display: inline-block;
    letter-spacing: 0.02em;
  }

  .nav-cta .nav-cta-icon {
    display: none;
  }

  /* Améliorer la structure du menu pour écrans larges */
  .nav-container {
    padding: 0.75rem 2rem;
  }

  .nav-links {
    padding-right: 1rem; /* Espace supplémentaire pour éviter les chevauchements */
    gap: 1.5rem; /* Plus d'espace entre les onglets pour meilleure lisibilité */
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
  }

  .nav-cta {
    font-size: 0.95rem;
    padding: 0.3rem 0.9rem;
    margin-left: 1rem;
  }
}

@media (min-width: 421px) {
  .nav-toggle {
    display: none;
  }
}

/* Ajouter un effet de transition global pour tous les états du menu sticky */
.sticky-nav * {
  transition: all 0.2s ease;
}

/* Améliorer le contraste et la visibilité du menu sticky */
.sticky-nav {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
