/* accueil.css — cf. pages/page-accueil.md */

/* Split editorial asymetrique (image pleine hauteur qui deborde + liste) - retour design :
   eviter les sections parfaitement symetriques / colonnes identiques. */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .editorial-split {
    grid-template-columns: 1.1fr 1fr;
    min-height: 640px;
  }
}

.editorial-split__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .editorial-split__media {
    aspect-ratio: auto;
    height: 100%;
  }
}

.editorial-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-beige);
}

@media (min-width: 1024px) {
  .editorial-split__content {
    padding: var(--space-3xl);
  }
}

.editorial-split__list {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.editorial-split__list li {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-gold);
}

.editorial-split__list strong {
  display: block;
  font-family: var(--font-family-heading);
  font-size: 1.1875rem;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-xs);
}

.editorial-split__list span {
  display: block;
  font-size: var(--font-size-small);
  color: var(--color-charcoal);
}

/* Chiffres-cles en carte flottante qui chevauche la photo pleine largeur suivante (retour design :
   superposition entre blocs plutot que sections empilees a plat). La carte reste dans le flux
   normal (pas de marge negative sur un element imbrique, pour eviter tout comportement de collapse
   de marges impredictible) ; c'est la section photo qui remonte par-dessus elle via sa propre
   marge negative, et la carte passe devant grace a son z-index. */
.stats-section {
  padding-block: var(--space-2xl);
}

.stats-card {
  position: relative;
  z-index: 2;
  /* Meme matiere que .section--dark : lueur doree + grain, pas un aplat */
  background-color: var(--color-black);
  background-image:
    radial-gradient(50rem 16rem at 80% -30%, rgba(176, 141, 87, 0.20), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  color: var(--color-white);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float-hover);
  padding: var(--space-xl) var(--space-lg);
}

@media (min-width: 1024px) {
  .stats-card {
    padding: var(--space-2xl) var(--space-3xl);
  }
}

/* Rupture photo pleine largeur entre deux sections texte/grille - casse le rythme "blanc/blanc/
   blanc" plat pointe par le retour design, sans inventer de visuel (reutilise un asset reel deja
   fourni). */
.hero-break {
  position: relative;
  height: 50vh;
  min-height: 320px;
  max-height: 560px;
  overflow: hidden;
}

/* Remonte la photo sous la carte chiffres-cles (marge negative sur une section top-level, donc
   pas de collapse ambigu avec des elements imbriques) : le haut de la photo se retrouve cache
   derriere la carte, qui passe devant grace a son z-index. */
.hero-break--overlap {
  margin-top: -48px;
}

@media (min-width: 1024px) {
  .hero-break--overlap {
    margin-top: -88px;
  }
}

.hero-break__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-break__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  text-align: center;
  background: linear-gradient(to top, rgba(22, 21, 19, 0.6), rgba(22, 21, 19, 0.05) 65%);
}

.hero-break__caption {
  font-family: var(--font-family-heading);
  font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 2rem);
  color: var(--color-white);
  max-width: 640px;
  margin: 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Leger zoom lent ("Ken Burns") plutot qu'une image totalement figee (retour design). */
  animation: hero-zoom 20s var(--easing-standard) forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img {
    animation: none;
  }
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Scrim photo (retour client : plus de panneau "verre depoli" flou). Le texte est pose
     directement sur l'image ; on assombrit le bas et le cote gauche (ou se trouve le texte)
     pour garantir la lisibilite, plus une legere lumiere doree a droite pour le relief. */
  background:
    linear-gradient(to top, rgba(22, 21, 19, 0.88) 0%, rgba(22, 21, 19, 0.4) 45%, rgba(22, 21, 19, 0.15) 100%),
    linear-gradient(to right, rgba(22, 21, 19, 0.65) 0%, rgba(22, 21, 19, 0.2) 45%, rgba(22, 21, 19, 0) 75%),
    linear-gradient(115deg, rgba(176, 141, 87, 0) 55%, rgba(176, 141, 87, 0.2) 100%);
}

/* Texte du hero pose directement sur la photo, sans panneau ni flou (retour client). */
.hero__content {
  position: relative;
  color: var(--color-white);
  max-width: 620px;
  margin-block: var(--space-3xl) var(--space-2xl);
  /* Ombre douce heritee par tout le texte pour la lisibilite sur la photo (sans panneau). */
  text-shadow: 0 1px 16px rgba(22, 21, 19, 0.55);
}

/* Apparition du texte au chargement (pas au scroll, deja visible au premier ecran) - retour design. */
.hero__content--load-in {
  animation: hero-content-in 900ms var(--easing-luxe) both;
}

@keyframes hero-content-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content--load-in {
    animation: none;
  }
}

.hero__logo {
  margin-bottom: var(--space-lg);
}

.hero__logo img {
  width: 250px;
  height: auto;
  /* Legere lueur doree derriere le logo sur la photo du hero - detache l'or du fond. */
  filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.35));
}

.hero__title {
  color: var(--color-white);
  /* Assise d'ombre tres douce : detache le titre de la photo sans effet "outline" visible */
  text-shadow: 0 2px 24px rgba(22, 21, 19, 0.45);
  /* Titre plus long qu'un simple nom de marque (phrase d'accroche) : taille reduite par rapport
     a l'ancien "SkinShape" seul, pour rester equilibre sur 2-3 lignes plutot que d'ecraser le hero. */
  font-size: clamp(2rem, 1.6rem + 2.2vw, 3.25rem);
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-family: var(--font-family-body);
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-lg);
  color: var(--color-white);
}

/* Checklist qui remplit le "vide" sous le texte (retour design), plus scannable qu'une phrase. */
.hero__checklist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin: 0 0 var(--space-xl);
  padding: 0;
  list-style: none;
}

.hero__checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-small);
  color: var(--color-beige);
}

.hero__checklist li::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--color-gold);
  color: var(--color-black);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-bold);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

@media (min-width: 1024px) {
  .hero {
    align-items: center;
  }

  .hero__content {
    padding-block: 0;
  }
}

/* ===== Carrousel des soins (accueil) : cartes de taille egale, defilement horizontal ===== */
.soins-carousel {
  position: relative;
}

.soins-carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox : masque la barre (navigation par boutons/swipe) */
  -ms-overflow-style: none;
  margin-inline: calc(-1 * var(--space-md));
  padding-inline: var(--space-md);
}

.soins-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.soins-carousel__track {
  display: flex;
  gap: var(--space-lg);
  margin: 0;
  padding: var(--space-xs) 0;
  list-style: none;
}

.soins-carousel__item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 82%;
}

@media (min-width: 600px) {
  .soins-carousel__item { width: 44%; }
}

@media (min-width: 900px) {
  .soins-carousel__item { width: 30%; }
}

@media (min-width: 1200px) {
  .soins-carousel__item { width: 23.5%; }
}

/* La carte remplit toute la hauteur de la cellule pour une rangee reguliere */
.soins-carousel__item > .card {
  height: 100%;
}

/* Boutons precedent / suivant (desktop surtout ; sur mobile le swipe suffit) */
.soins-carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.soins-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-charcoal);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  transition: background-color var(--transition-base) var(--easing-standard),
              color var(--transition-base) var(--easing-standard),
              border-color var(--transition-base) var(--easing-standard),
              opacity var(--transition-base) var(--easing-standard);
}

.soins-carousel__btn:hover,
.soins-carousel__btn:focus-visible {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.soins-carousel__btn svg {
  width: 20px;
  height: 20px;
}

.soins-carousel__btn[disabled] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* Teaser avant/apres simplifie (accueil.md §5) */
.ba-teaser-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .ba-teaser-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ba-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ba-teaser figure {
  margin: 0;
  position: relative;
}

.ba-teaser figcaption {
  position: absolute;
  bottom: var(--space-xs);
  left: var(--space-xs);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-overline);
  background: rgba(22, 21, 19, 0.65);
  color: var(--color-white);
  padding: 2px var(--space-xs);
  border-radius: var(--radius-sm);
}

.ba-teaser-caption {
  margin-top: var(--space-sm);
  font-size: var(--font-size-small);
  text-align: center;
}

/* Infos pratiques (accueil.md §8) */
.practical-info {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 768px) {
  .practical-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .practical-info {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Icones en medaillon cercle d'un lisere or (meme langage que le bandeau de reassurance) */
.practical-info__item svg {
  width: 26px;
  height: 26px;
  aspect-ratio: 1 / 1;
  padding: var(--space-md);
  box-sizing: content-box;
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-full);
  color: var(--color-gold);
  margin-inline: auto;
  margin-bottom: var(--space-sm);
  transition: border-color var(--transition-slow) var(--easing-luxe),
              background-color var(--transition-slow) var(--easing-luxe);
}

.practical-info__item:hover svg {
  border-color: var(--color-gold);
  background: var(--color-cream);
}
