.location-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.location-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}
.active-section {
  border-left: 4px solid #16a34a;
  padding-left: 1rem;
}
.btn-hover {
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-hover:hover {
  transform: translateY(-2px);
}
.hero-parallax {
  background-position: center -260px;
  background-size: cover;
  background-repeat: no-repeat;
  height: 24rem; /* 384px par défaut */
}
@media (max-width: 768px) {
  .hero-parallax {
    height: 10rem; /* 160px sur mobile */
    background-position: center top;
  }
  /* Hero responsive mobile : aligner à droite, réduire la hauteur et centrer verticalement */
  .hero-parallax,
  section[aria-label="Image d'accueil Xenodon"] {
    height: 7rem !important; /* plus petit sur mobile */
    background-position: right 0% !important; /* centré vers le bas */
    margin-top: 2em;
  }
}
/* Ajout pour le cookie banner */
#cookie-notice {
  z-index: 9999;
}
/* Carte avec effet vague */
.wave-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1.5px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 0;
  height: 100%;
}
.wave-card:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.12);
}
.wave-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: block;
}
.wave-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wave-svg {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 48px;
  display: block;
  pointer-events: none;
}
.wave-card-content {
  padding: 1rem 1.25rem 1rem 1.25rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.wave-card-content .discover-btn {
  margin-top: auto;
}
/* Effet hover sur la topbar */
.topbar-link {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border-radius: 0.375rem;
  padding: 0.25rem 0.75rem;
  margin: 0 -0.25rem;
  display: inline-block;
}
.topbar-link:hover, .topbar-link:focus {
  background: #f0fdf4;
  color: #15803d;
  box-shadow: 0 2px 8px rgba(22,163,74,0.08);
  text-decoration: none;
  outline: none;
}
/* Témoignage : ombre verte au hover et animation */
.testimonial-card {
  transition: box-shadow 0.3s, transform 0.3s;
  /* Pour l'animation fadeInUp personnalisée */
  opacity: 0;
  transform: translateY(40px);
  animation: testimonial-fadeInUp 0.8s forwards;
  animation-play-state: paused; /* Ajouté pour contrôle JS */
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px 0 rgba(22,163,74,0.25), 0 2px 8px rgba(22,163,74,0.12);
  transform: translateY(-4px) scale(1.03);
}

/* Animation fadeInUp personnalisée pour les témoignages */
@keyframes testimonial-fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Vague verticale sur la photo de la section À propos */
.vertical-wave-photo {
  position: relative;
  display: inline-block;
  max-width: 320px;
  width: 100%;
  height: 400px;
  height: 100%;
  min-height: 400px;
  max-height: 100%;
}
.vertical-wave-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1.5px 6px rgba(0,0,0,0.08);
  background: #fff;
  position: relative;
  z-index: 10;
  height: 100%;
  min-height: 400px;
  max-height: 100%;
}
.vertical-wave-svg {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 48px;
  z-index: 20;
  pointer-events: none;
}
@media (max-width: 768px) {
  .vertical-wave-photo {
    max-width: 100vw;
    width: 100vw;
    min-width: 0;
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    height: auto;
    min-height: unset;
    display: block;
  }
  .vertical-wave-photo img {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    object-fit: contain !important;
    border-radius: 0;
    display: block;
  }
  .vertical-wave-svg {
    width: 32px;
  }
  #about .mt-6.grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }
  #about {
    background: #fff !important;
  }
  #about .vertical-wave-photo {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  #about .container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* Animation pour la photo "À propos" */
.about-photo-init {
  opacity: 0;
  transform: translateX(80px) scale(0.96);
  transition: opacity 0.2s, transform 0.2s;
}
@keyframes about-photo-slide-in {
  from {
    opacity: 0;
    transform: translateX(80px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.about-photo-animate-in {
  opacity: 1;
  transform: translateX(0) scale(1);
  animation: about-photo-slide-in 1s cubic-bezier(0.23, 1, 0.32, 1) both;
}

#about .container {
  min-height: 400px;
  align-items: stretch;
}
#about .md\:w-1\/2.z-10 {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* --- Responsive topbar --- */
@media (max-width: 768px) {
  nav[aria-label="Navigation principale"] .container {
    flex-wrap: wrap;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    position: relative;
  }
  /* Centrage du bouton burger+menu */
  #mobile-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0 auto;
    height: auto;
    background: none;
    border: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
  }
  /* Animation menu mobile */
  #main-nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    z-index: 40;
    width: 100vw;
    margin: 0;
    padding: 0.5rem 0 0.5rem 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.25s cubic-bezier(.4,0,.2,1), transform 0.25s cubic-bezier(.4,0,.2,1);
    align-items: flex-start;
    animation: none;
  }
  #main-nav-links.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    animation: menu-slide-down 0.32s cubic-bezier(.4,0,.2,1);
  }
  #main-nav-links.menu-closing {
    display: flex !important;
    animation: menu-slide-up 0.22s cubic-bezier(.4,0,.2,1) forwards;
    pointer-events: none;
  }
  #main-nav-links a {
    margin: 0.5rem 0;
    padding: 0.75rem 1.5rem;
    width: 100%;
    text-align: left;
    border-radius: 0;
    /* Correction pour aligner tous les liens */
    display: block;
  }
}
@media (min-width: 769px) {
  #mobile-menu-toggle {
    display: none !important;
  }
  #main-nav-links {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    padding: 0 !important;
  }
}

/* --- Animation menu mobile --- */
@keyframes menu-slide-down {
  0% {
    opacity: 0;
    transform: translateY(-24px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes menu-slide-up {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-24px) scale(0.98);
  }
}

/* Amélioration des cartes de stats sur mobile */
@media (max-width: 480px) {
  #about .mt-6.grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  #about .mt-6.grid .bg-white {
    padding: 1.5rem 0.5rem !important;
    font-size: 1.1rem;
    min-width: 0;
    width: 100%;
    margin: 0 auto;
  }
  #about .mt-6.grid .text-4xl {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
  }
  #about .mt-6.grid .text-gray-700 {
    font-size: 1rem !important;
  }
}

img {
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}
.youtube-responsive {
  position: relative;
  width: 100%;
  max-width: 350px; /* même largeur que max-w-xs */
  aspect-ratio: 16/9;
  margin: 0 auto;
  border-radius: 0.75rem; /* arrondi comme rounded-lg */
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.1), 0 4px 6px -4px rgba(16, 185, 129, 0.1); /* shadow-lg */
  background: #000;
}
.youtube-responsive iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0; top: 0;
  border: 0;
}