/* =========================================== */
/* === VARIABLES & CONFIGURATION GÉNÉRALE === */
/* =========================================== */
:root {
  /* Couleurs principales */
  --violet-principal: #9400d3;
  --sable-principal: #d8c3a5;

  /* Déclinaisons */
  --violet-clair: #9b7bbf;
  --violet-fonce: #4b2f6a;
  --sable-clair: #f4eadf;
  --sable-fonce: #bfa890;

  /* Couleurs secondaires */
  --vert-sauge: #a3b18a;
  --beige-rose: #ead6c6;
  --gris-doux: #f8f6f3;

  /* Couleurs texte */
  --texte-principal: #3b3a39;
  --texte-clair: #ffffff;
  --texte-sombre: #1f1f1f;
  --texte-brun: #644336;
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.text-muted {
  color: #949494 !important;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: var(--texte-principal);
  background-color: #fff;
  line-height: 1.6;
}

/* =========================================== */
/* =========== TYPOGRAPHIE =================== */
/* =========================================== */
h1,
h4,
h5,
h6 {
  font-family: "Antic Didone", serif;
  font-weight: 400;
  color: var(--sable-clair);
}
h2,
h3 {
  font-family: "Antic Didone", serif;
  font-weight: 700 !important;
  color: var(--texte-brun);
}
.card-title {
  color: var(--sable-fonce) !important;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.5rem;
}

p,
li,
.form-label {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
}

.footer ul li a {
  text-decoration: none !important;
  color: var(--sable-clair) !important;
}

.card-body li a {
  text-decoration: none !important;
  color: var(--texte-brun) !important;
}

.card-body li a:hover {
  text-decoration: none !important;
  color: var(--texte-brun) !important;
  font-weight: 700;
}

a {
  color: var(--violet-principal) !important;
  text-decoration: none !important;
}

a:hover {
  font-weight: 700;
  color: var(--violet-principal) !important;
  text-decoration: none !important;
}

.footer ul li a:hover {
  color: var(--sable-clair) !important;
  font-weight: 700;
}

b,
strong {
  font-weight: 700;
}

.button,
.button-rdv {
  position: relative;
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  color: var(--texte-sombre) !important;
  cursor: pointer;
  background-color: var(--sable-principal);
  transition: all 0.2s ease;
  overflow: hidden;
  text-decoration: none;
}
.button:active,
.button-rdv:active {
  transform: scale(0.96);
}
.button:before,
.button:after,
.button-rdv:before,
.button-rdv:after {
  position: absolute;
  content: "";
  width: 150%;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  z-index: -10;
  background-repeat: no-repeat;
}
.button:hover:before,
.button-rdv:hover:before {
  top: -70%;
  background-image:
    radial-gradient(circle, var(--violet-clair) 20%, transparent 20%),
    radial-gradient(
      circle,
      transparent 20%,
      var(--violet-clair) 20%,
      transparent 30%
    ),
    radial-gradient(circle, var(--sable-principal) 20%, transparent 20%),
    radial-gradient(circle, var(--violet-clair) 20%, transparent 20%),
    radial-gradient(
      circle,
      transparent 10%,
      var(--violet-clair) 15%,
      transparent 20%
    ),
    radial-gradient(circle, var(--sable-principal) 20%, transparent 20%),
    radial-gradient(circle, var(--violet-clair) 20%, transparent 20%),
    radial-gradient(circle, var(--sable-principal) 20%, transparent 20%),
    radial-gradient(circle, var(--violet-clair) 20%, transparent 20%);
  background-size:
    10% 10%,
    20% 20%,
    15% 15%,
    20% 20%,
    18% 18%,
    10% 10%,
    15% 15%,
    10% 10%,
    18% 18%;
  background-position: 50% 120%;
  animation: topBubbles 0.6s ease forwards;
}
@keyframes topBubbles {
  50% {
    background-position:
      0% 80%,
      0% 20%,
      10% 40%,
      20% 0%,
      30% 30%,
      22% 50%,
      50% 50%,
      65% 20%,
      90% 30%;
  }
  100% {
    background-position:
      0% 70%,
      0% 10%,
      10% 30%,
      20% -10%,
      30% 20%,
      22% 40%,
      50% 40%,
      65% 10%,
      90% 20%;
    background-size:
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%;
  }
}
.button:hover::after,
.button-rdv:hover::after {
  bottom: -70%;
  background-image:
    radial-gradient(circle, var(--sable-principal) 20%, transparent 20%),
    radial-gradient(circle, var(--violet-clair) 20%, transparent 20%),
    radial-gradient(
      circle,
      transparent 10%,
      var(--sable-principal) 15%,
      transparent 20%
    ),
    radial-gradient(circle, var(--violet-clair) 20%, transparent 20%),
    radial-gradient(circle, var(--sable-principal) 20%, transparent 20%),
    radial-gradient(circle, var(--violet-clair) 20%, transparent 20%),
    radial-gradient(circle, var(--sable-principal) 20%, transparent 20%);
  background-size:
    15% 15%,
    20% 20%,
    18% 18%,
    20% 20%,
    15% 15%,
    20% 20%,
    18% 18%;
  background-position: 50% 0%;
  animation: bottomBubbles 0.6s ease forwards;
}
@keyframes bottomBubbles {
  50% {
    background-position:
      0% 80%,
      20% 80%,
      45% 60%,
      60% 100%,
      75% 70%,
      95% 60%,
      105% 0%;
  }
  100% {
    background-position:
      0% 90%,
      20% 90%,
      45% 70%,
      60% 110%,
      75% 80%,
      95% 70%,
      110% 10%;
    background-size:
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%;
  }
}

.btn:hover {
  color: var(--bs-btn-hover-color);
  background-color: #fff;
  border-color: var(--bs-btn-hover-border-color);
}

.custom-card {
  border: 1px solid var(--sable-clair);
  border-radius: 12px;
  background: white;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.custom-card .head {
  background-color: var(--sable-clair);
  border-radius: 10px;
  border: 1px solid var(--sable-fonce);
}
.session-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6c757d; /* Un gris neutre */
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}
.custom-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}
.custom-card .button {
  margin-top: auto;
}

/* --- Nouvelle règle pour les images des cartes --- */
.custom-card .card-img-top {
  width: 100%; /* L'image prend toute la largeur disponible de la carte */
  height: 270px; /* **Définissez ici la hauteur fixe que vous souhaitez** */
  object-fit: cover; /* **Très important : recadre l'image pour couvrir la zone sans la déformer** */
  object-position: center; /* Centre l'image dans la zone de découpe */
  border-top-left-radius: 12px; /* Pour correspondre au border-radius de la carte */
  border-top-right-radius: 12px;
}
.custom-card .button {
  margin-top: auto;
}
.card-img-top {
  border: 1px solid var(--sable-clair);
  border-radius: 12px;
}
/* =========================================== */
/* ================= GALERIE ================= */
/* =========================================== */
.gallery-item a img.img-fluid {
  display: block !important;
  width: 100% !important;
  height: 250px !important; /* Hauteur que nous avions définie */
  object-fit: cover !important;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  transition: transform 0.4s ease;
  width: 100%;
  height: 250px; /* Hauteur fixe pour toutes les miniatures */
  object-fit: cover; /* Recadre sans déformer */
}

.gallery-item .gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(75, 47, 106, 0.6); /* Violet semi-transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Caché par défaut */
  transition: opacity 0.4s ease;
}

.gallery-item .gallery-overlay i {
  color: white;
  font-size: 2rem;
}

.gallery-item:hover img {
  transform: scale(1.1); /* Effet de zoom au survol */
}

.gallery-item:hover .gallery-overlay {
  opacity: 1; /* Affiche l'overlay au survol */
}

/* =========================================== */
/* =============== SECTIONS ================== */
/* =========================================== */

/* --- Barre de navigation --- */
.navbar-toggler {
  color: var(--texte-brun);
  background-color: var(--sable-fonce);
  border: var(--bs-border-width) solid var(--texte-brun);
}
.nav-link {
  color: var(--texte-brun) !important;
}
.nav-link:focus,
.nav-link:hover {
  color: var(--sable-fonce) !important;
}
.navbar-nav .dropdown-menu {
  background-color: var(--beige-rose) !important;
}
.navbar-toggler:focus {
  box-shadow: none !important;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  font-weight: bold;
}
.dropdown-item.active,
.dropdown-item:active {
  color: var(--sable-clair) !important;
  background-color: var(--violet-clair);
}
/* =========================================== */
/* === ANIMATION DOUCE POUR LE MENU DÉROULANT === */
/* =========================================== */

/* On définit l'animation d'apparition */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px); /* Le menu part de 10px plus haut */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* Il arrive à sa position finale */
  }
}

/* On applique l'animation au menu quand il apparaît */
.dropdown-menu.show {
  animation: fadeInDown 0.3s ease-out forwards; /* Durée de l'animation : 0.3 secondes */
}

/* Style additionnel pour le menu déroulant qui correspond à votre charte */
.dropdown-menu {
  background-color: var(--violet-clair);
  border: 1px solid var(--violet-fonce);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  color: var(--texte-brun) !important;
  padding: 10px 20px;
}

.dropdown-item:hover {
  background-color: var(--violet-fonce);
  color: var(--texte-clair) !important;
}
/* --- Animation de fermeture pour le menu --- */
@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px); /* Le menu remonte de 10px en disparaissant */
  }
}

/* On applique l'animation de fermeture quand on ajoute la classe .closing */
.dropdown-menu.closing {
  animation: fadeOutUp 0.3s ease-out forwards;
}
/* --- Section Hero --- */
.hero {
  color: var(--texte-clair);
  text-align: center;
  padding: 6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}
.hero-bg-accueil {
  background:
    linear-gradient(rgba(106, 78, 147, 0.28), rgba(106, 78, 147, 0.2)),
    url("/assets/images/hero-accueil.webp") 30% center / cover no-repeat;
}
.hero-bg-yoga {
  background:
    linear-gradient(rgba(106, 78, 147, 0.4), rgba(106, 78, 147, 0.2)),
    url("/assets/images/hero-yoga.webp") 30% center / cover no-repeat;
}
.hero-bg-massages {
  background:
    linear-gradient(rgba(106, 78, 147, 0.4), rgba(106, 78, 147, 0.2)),
    url("/assets/images/hero-massages.webp") 30% center / cover no-repeat;
}
.hero-bg-soins {
  background:
    linear-gradient(rgba(106, 78, 147, 0.4), rgba(106, 78, 147, 0.2)),
    url("/assets/images/hero-soins.webp") 30% center / cover no-repeat;
}
.hero-bg-blog {
  background:
    linear-gradient(rgba(106, 78, 147, 0.4), rgba(106, 78, 147, 0.2)),
    url("/assets/images/hero-blog.webp") 30% center / cover no-repeat;
}
.hero-bg-tarifs {
  background:
    linear-gradient(rgba(106, 78, 147, 0.4), rgba(106, 78, 147, 0.2)),
    url("/assets/images/hero-tarifs.webp") 30% center / cover no-repeat;
}
.hero-bg-contact {
  background:
    linear-gradient(rgba(106, 78, 147, 0.4), rgba(106, 78, 147, 0.2)),
    url("/assets/images/hero-contact.webp") 30% center / cover no-repeat;
}
.hero-bg-accompagnement {
  background:
    linear-gradient(rgba(106, 78, 147, 0.4), rgba(106, 78, 147, 0.2)),
    url("/assets/images/hero-accompagnement.webp") 30% center / cover no-repeat;
}
.hero-bg-galerie {
  background:
    linear-gradient(rgba(106, 78, 147, 0.4), rgba(106, 78, 147, 0.2)),
    url("/assets/images/hero-galerie.webp") 30% center / cover no-repeat;
}
.hero-bg-prog {
  background:
    linear-gradient(rgba(106, 78, 147, 0.4), rgba(106, 78, 147, 0.2)),
    url("/assets/images/hero-prog.webp") 30% center / cover no-repeat;
}
.hero-bg-a-propos {
  background:
    linear-gradient(rgba(106, 78, 147, 0.4), rgba(106, 78, 147, 0.2)),
    url("/assets/images/hero-a-propos.webp") 30% center / cover no-repeat;
}
/* --- Footer --- */
/* =========================================== */
/* ================= FOOTER ================== */
/* =========================================== */

.footer {
  background-color: var(--violet-fonce);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0;
  font-size: 0.9rem;
}

.footer-title {
  font-family: "Antic Didone", serif;
  color: var(--sable-clair);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact li {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--sable-principal);
}

.footer-contact i {
  color: var(--sable-principal);
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--texte-clair);
  text-decoration: none;
  margin-right: 0.5rem;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--sable-principal);
  color: var(--violet-fonce);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--texte-clair);
}
.footer .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================== */
/* ===== ANIMATION DE CHARGEMENT (PRELOADER) ==== */
/* =========================================== */

/* --- Structure commune --- */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: var(--sable-clair);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}
.loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
}

/* --- Version 1 : Logo animé (celle que vous utilisez actuellement) --- */
.loader-text {
  font-family: "Antic Didone", serif;
  font-size: 3rem;
  color: var(--sable-fonce);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: pop-in 0.5s ease-out forwards;
}
.loader-logo {
  width: 300px;
  height: auto;
  opacity: 0;
  transform: scale(0.8);
  animation:
    pop-in 0.5s ease-out forwards,
    rotate-logo 1.2s ease-in-out 0.6s forwards;
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes rotate-logo {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --- Contenu principal de la page --- */
#main-content {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}
#main-content.visible {
  opacity: 1;
}

/* =========================================== */
/* ===== OPTIMISATIONS MOBILES (MEDIA QUERIES) ===== */
/* =========================================== */

@media (max-width: 768px) {
  /* Amélioration de la lisibilité du texte */
  body {
    font-size: 16px;
    line-height: 1.7;
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }

  /* Agrandissement des "cibles de clic" (Tap Targets) */
  .button,
  .button-rdv,
  .custom-card .button {
    padding: 12px 24px;
    min-height: 48px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .navbar-nav .nav-link {
    padding: 10px 15px !important;
  }
}

@media (max-width: 576px) {
  .custom-card {
    margin-bottom: 2rem;
  }
  .hero-bg-yoga {
    background:
      linear-gradient(rgba(106, 78, 147), rgba(106, 78, 147, 0.2)),
      url("/assets/images/hero-yoga.webp") 65% center / cover no-repeat;
  }
  .elfsight-app-fe0533a1-88f8-4866-9317-2df87204e7bf a[href*="elfsight.com"] {
    display: none !important;
  }
} /* Close @media (max-width: 576px) */

/* =========================================== */
/* === LENIS SMOOTH SCROLL =================== */
/* =========================================== */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}
