/* ==========================================================================
   AlyCare — Page d'accueil (styles cinématiques)
   Tout est piloté par les variables de css/variables.css : le widget de
   theming continue donc de fonctionner sur l'ensemble de ces sections.
   ========================================================================== */

/* ---------- Tokens dérivés ---------- */
:root {
  --ease-out: cubic-bezier(0.22, 0.7, 0.24, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.9s;
}

/* ==========================================================================
   1. PRÉLOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--color-text);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-md);
}

.preloader__word {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 1.4rem + 5vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  overflow: hidden;
  display: flex;
}

.preloader__word span {
  display: inline-block;
  transform: translateY(105%);
  animation: preIn 0.9s var(--ease-out) forwards;
}

@keyframes preIn {
  to { transform: translateY(0); }
}

.preloader__bar {
  width: min(240px, 50vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.preloader__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--color-secondary);
  transition: width 0.3s linear;
}

.preloader__pct {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  letter-spacing: 0.2em;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.preloader.is-done {
  transform: translateY(-100%);
  transition: transform 1s var(--ease-out);
}

/* Le contenu attend la fin du préloader */
body.is-loading { overflow: hidden; }

/* ==========================================================================
   2. GRAIN + CURSEUR + BARRE DE PROGRESSION
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  pointer-events: none;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  display: none;
}

html.has-pointer .cursor,
html.has-pointer .cursor-ring { display: block; }

.cursor {
  width: 7px;
  height: 7px;
  background: var(--color-primary-dark);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-primary);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.cursor-ring.is-active {
  width: 76px;
  height: 76px;
  background: var(--color-primary);
  border-color: transparent;
  opacity: 0.28;
}

/* Inversion des couleurs au survol de texte : cercle plein blanc en
   mix-blend-mode: difference — la différence entre blanc et n'importe
   quelle couleur en dessous donne exactement son inverse, où qu'on soit
   sur la page. Placée après .is-active pour prendre le dessus si jamais
   les deux classes se retrouvent ensemble. */
.cursor-ring.is-inverting {
  width: 54px;
  height: 54px;
  background: #ffffff;
  border-color: transparent;
  opacity: 1;
  mix-blend-mode: difference;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--color-primary-dark);
  z-index: 300;
}

/* ==========================================================================
   3. RÉVÉLATIONS AU SCROLL
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* Colonne "Réservation" : apparition depuis le haut plutôt que depuis le
   bas (défaut ci-dessus), pour contraster avec "Nous contacter" à côté.
   Règle de reset dédiée (spécificité plus élevée que .is-in seul) : sans
   elle, une fois .is-in ajoutée, les deux sélecteurs à spécificité égale
   ([data-reveal].is-in et [data-reveal].booking-x__col--from-top)
   entraient en conflit et celui-ci gagnait par ordre de source — le
   transform restait bloqué à -34px, d'où l'opacité qui apparaît sans
   aucun mouvement. */
[data-reveal].booking-x__col--from-top {
  transform: translateY(-90px);
}

[data-reveal].booking-x__col--from-top.is-in {
  transform: none;
}

/* Colonne "Nous contacter" : même principe, mais point de départ plus bas
   que le défaut du site (translateY(34px)) pour que le trajet soit aussi
   long que celui de "Réservation" ci-dessus. */
[data-reveal].booking-x__col--from-bottom {
  transform: translateY(90px);
}

[data-reveal].booking-x__col--from-bottom.is-in {
  transform: none;
}

/* Révélation d'image par masque */
.reveal-img {
  position: relative;
  overflow: hidden;
}

.reveal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 1.5s var(--ease-out);
}

.reveal-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-bg-alt);
  transform-origin: 100% 50%;
  transition: transform 1.1s var(--ease-out);
  z-index: 1;
}

.reveal-img.is-in img { transform: scale(1); }
.reveal-img.is-in::after { transform: scaleX(0); }

/* ==========================================================================
   4. HERO
   ========================================================================== */
.hero-x {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-bg);
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.hero-x__bg {
  position: absolute;
  inset: -8% 0 0 0;
  z-index: 0;
  will-change: transform;
}

.hero-x__bg img {
  width: 100%;
  height: 108%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 14s var(--ease-soft) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-x__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(30, 20, 18, 0.45) 0%,
      rgba(30, 20, 18, 0.25) 35%,
      rgba(28, 18, 16, 0.88) 100%);
}

.hero-x__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-x__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.hero-x__eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--color-secondary);
}

.hero-x__title {
  font-family: var(--font-heading);
  font-size: clamp(2.9rem, 1rem + 9vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 var(--space-md);
  color: var(--color-bg);
}

.hero-x__title .line {
  display: block;
  overflow: hidden;
}

.hero-x__title .line > span {
  display: block;
  transform: translateY(110%);
}

body.is-ready .hero-x__title .line > span {
  animation: lineUp 1.15s var(--ease-out) forwards;
}

body.is-ready .hero-x__title .line:nth-child(2) > span { animation-delay: 0.1s; }
body.is-ready .hero-x__title .line:nth-child(3) > span { animation-delay: 0.2s; }

@keyframes lineUp {
  to { transform: translateY(0); }
}

.hero-x__title em {
  font-style: italic;
  color: var(--color-secondary);
}

.hero-x__lede,
.hero-x__actions,
.hero-x__facts {
  opacity: 0;
  transform: translateY(18px);
}

body.is-ready .hero-x__lede { animation: fadeUp 1s var(--ease-out) 0.5s forwards; }
body.is-ready .hero-x__actions { animation: fadeUp 1s var(--ease-out) 0.62s forwards; }
body.is-ready .hero-x__facts { animation: fadeUp 1s var(--ease-out) 0.74s forwards; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

.hero-x__lede {
  max-width: 46ch;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.2rem);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-lg);
}

.hero-x__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero-x__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.6rem;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.hero-x__facts li { display: flex; align-items: center; gap: 0.55rem; }
.hero-x__facts b { color: var(--color-secondary); font-weight: 700; }

/* Badge rotatif */
.hero-x__badge {
  position: absolute;
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: clamp(6rem, 18vh, 12rem);
  z-index: 3;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.hero-x__badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 18s linear infinite;
}

.hero-x__badge text {
  fill: var(--color-bg);
  font-family: var(--font-body);
  font-size: 9.6px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-x__badge-core {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: transform 0.4s var(--ease-out), background-color 0.3s ease;
}

.hero-x__badge:hover .hero-x__badge-core {
  transform: scale(1.14);
  background: var(--color-primary-dark);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-x__cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero-x__cue i {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-x__cue i::after {
  content: '';
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-secondary);
  animation: cue 2s ease-in-out infinite;
}

@keyframes cue {
  0% { top: -100%; }
  55% { top: 0; }
  100% { top: 100%; }
}

/* ==========================================================================
   5. MANIFESTE
   ========================================================================== */
.manifesto {
  background: var(--color-surface);
  overflow: hidden;
}

.manifesto__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.manifesto__glyph {
  position: absolute;
  top: -4rem;
  left: -1.4rem;
  font-family: var(--font-heading);
  font-size: 12rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}

.manifesto__col { position: relative; }

.manifesto__quote {
  position: relative;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.5rem, 1rem + 2.1vw, 2.9rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-md);
}

.manifesto__rule {
  width: 68px;
  height: 2px;
  background: var(--color-primary);
  margin: var(--space-md) 0;
}

.manifesto__sub {
  color: var(--color-text-light);
  max-width: 50ch;
  font-size: 1.02rem;
}

.manifesto__sign {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: var(--space-md);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  font-weight: 700;
}

.manifesto__sign::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-primary);
}

.manifesto__media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  transform: rotate(2.2deg);
  box-shadow: 18px 22px 0 rgba(74, 59, 54, 0.07);
}

.manifesto__stamp {
  position: absolute;
  bottom: -18px;
  left: -18px;
  z-index: 3;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-on-primary);
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.15;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  transform: rotate(-9deg);
}

/* ==========================================================================
   6. PRESTATIONS — RÉVÉLATION SÉQUENTIELLE ÉPINGLÉE
   Adaptation de la section "THE SLY WAY — four moves" de sly.clubop.site.
   .svc-pin est un bloc dont la hauteur = 100vh + une distance de scroll
   dédiée à l'animation ; .svc-sticky (position: sticky, top: 0, 100vh) reste
   épinglée à l'écran tant que .svc-pin défile. Pendant ce temps, js/home.js
   § "Cartes 'Les soins'" calcule une progression continue (0 → 1) à partir
   de la position de .svc-pin et pilote directement le transform/opacity de
   chaque carte (rotateY + translateY + fade du numéro), l'une après
   l'autre — sans intercepter la molette (contrairement à l'ancien scroll
   horizontal "bloquant" qu'elle remplace : plus robuste, notamment au
   trackpad/tactile).
   Sous 760px et en mouvement réduit : pas de pin, cartes déjà révélées,
   simple pile verticale. Contenu des cartes à affiner ensuite (icônes/
   description) — pour l'instant numéro + titre.
   ========================================================================== */
.services-scroll {
  background: var(--color-bg);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.services-scroll .section-title { margin-bottom: var(--space-lg); }

.svc-pin {
  position: relative;
  /* 100vh (temps que la rangée reste épinglée à l'écran) + la distance de
     scroll allouée à la révélation séquentielle des 3 cartes. js/home.js
     lit cette hauteur directement (getBoundingClientRect) pour calculer sa
     progression : changer le "3 * 260px" ici suffit à ajuster la distance,
     rien à synchroniser côté JS. */
  height: calc(100vh + 3 * 260px);
}

.svc-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.svc-cards {
  display: flex;
  align-items: stretch;
  gap: var(--space-md);
  width: 100%;
  padding: 0 var(--space-md);
}

.svc-card {
  flex: 1 1 0;
  min-width: 0;
  height: clamp(280px, 32vw, 520px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.3rem, 3vw, 2rem);
  color: var(--color-text);
  will-change: transform, opacity;
  /* État de départ (carte "non révélée") : légèrement pivotée et reculée.
     js/home.js écrase ce transform/opacity image par image pendant le
     scroll — voir layoutSvcCards(). */
  transform: perspective(1400px) rotateY(-16deg) translateY(28px);
  opacity: 0.45;
  transition: box-shadow 0.4s ease;
}

.svc-card:hover {
  text-decoration: none;
  box-shadow: 0 22px 42px -24px rgba(74, 59, 54, 0.4);
}

.svc-card__num {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 0.7rem + 0.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
  /* Révélé par js/home.js en même temps que la rotation de la carte. */
  opacity: 0;
  transform: translateY(6px);
}

.svc-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 0.9rem + 1.4vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Sous 760px et en mouvement réduit : pas de pin, cartes déjà révélées,
   pile verticale simple */
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .svc-pin { height: auto !important; }

  .svc-sticky {
    position: static;
    height: auto;
    display: block;
  }

  .svc-cards {
    flex-direction: column;
    padding: 0 var(--space-md);
  }

  .svc-card {
    flex-basis: auto;
    height: auto !important;
    min-height: 200px;
    transform: none !important;
    opacity: 1 !important;
  }

  .svc-card__num {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   8. CHIFFRES
   ========================================================================== */
.stats {
  background: var(--color-text);
  color: var(--color-bg);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.stats__item {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.stats__num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.8rem);
  line-height: 1;
  color: var(--color-secondary);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 0.5rem;
}

.stats__label {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   9. AVIS
   ========================================================================== */
.avis { background: var(--color-bg-alt); }

.avis__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.avis__card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  position: relative;
  margin: 0;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.avis__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 42px -24px rgba(74, 59, 54, 0.4);
}

.avis__card::before {
  content: '“';
  position: absolute;
  top: 0.2rem;
  left: 1.1rem;
  font-family: var(--font-heading);
  font-size: 4.4rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.22;
}

.avis__stars {
  color: var(--color-accent);
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.avis__text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.avis__meta {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* ==========================================================================
   9bis. LE SALON
   .salon__media occupe TOUJOURS sa taille finale (toute la section, titre
   compris — top/height calculés avec --salon-title-h, mesuré en JS comme
   avant). Elle ne grandit donc jamais : c'est une fenêtre de découpe
   (clip-path: inset()) qui grandit à sa place, révélant progressivement le
   reste de la même photo, plutôt que de la faire grossir. Avant
   déclenchement, --salon-clip-* (calculées en JS depuis la taille réelle
   de l'écran, voir js/home.js) définissent une fenêtre centrée d'environ
   900px de large en 3/2. Au déclenchement, la classe .is-expanded ramène
   ce clip-path à inset(0) : toute la photo apparaît.
   ========================================================================== */
/* Espacements resserrés spécifiquement pour cette section : moins d'air
   entre l'eyebrow "L'institut" et la photo, et moins d'air entre la photo
   et la section suivante (Réservation). */
.salon .section-title {
  margin-bottom: var(--space-md);
}

.salon {
  padding-bottom: var(--space-md);
}

/* Plafonnée (clamp) plutôt que 80svh pur : sur les très grands écrans
   (moniteurs 32" et plus, où svh peut dépasser 900px), une hauteur non
   plafonnée laissait un vide important sous la petite photo centrée avant
   déclenchement — un padding-bottom à 0 sur .salon n'y changeait rien
   puisque ce vide vient de la hauteur du stage lui-même, pas d'un padding. */
.salon__stage {
  position: relative;
  height: clamp(460px, 80svh, 760px);
  overflow: visible;
}

.salon__media {
  position: absolute;
  top: calc(-1 * var(--salon-title-h, 0px));
  left: 0;
  width: 100%;
  height: calc(100% + var(--salon-title-h, 0px));
  z-index: 1;
  clip-path: inset(
    var(--salon-clip-top, 35%)
    var(--salon-clip-right, 35%)
    var(--salon-clip-bottom, 35%)
    var(--salon-clip-left, 35%)
    round var(--radius-md)
  );
  transition: clip-path 1.1s var(--ease-out);
}

.salon__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.salon__stage.is-expanded .salon__media {
  clip-path: inset(0 round 0);
}

/* Rétraction : au rescroll une fois le texte affiché, l'image ne revient pas
   à sa toute petite fenêtre de départ (le texte ne serait plus dessus) mais
   à une fenêtre intermédiaire, calculée en JS (salonRetract()) pour
   contenir confortablement le bloc de texte — voir js/home.js. Règle placée
   après .is-expanded : même spécificité, gagne par l'ordre des règles. */
.salon__stage.is-retracted .salon__media {
  clip-path: inset(
    var(--salon-retract-top, 10%)
    var(--salon-retract-right, 10%)
    var(--salon-retract-bottom, 10%)
    var(--salon-retract-left, 10%)
    round var(--radius-md)
  );
}

/* Dégradé de lisibilité + titre/sous-titre, réapparaissent par-dessus
   l'image une fois celle-ci pleinement révélée (classe .is-titled ajoutée
   en JS après la fin de l'animation de découpe — voir js/home.js). Même
   principe d'apparition que le hero : opacité + léger décalage vertical.
   ⚠️ Le même clip-path que .salon__media lui est appliqué (mêmes variables,
   mêmes états) : sans ça, ce dégradé — plaqué sur tout le cadre — assombrit
   aussi les petits triangles de fond visibles autour de l'image une fois
   rétractée (coins arrondis), ce qui donnait l'impression que la couleur de
   fond changeait légèrement après la rétractation. */
.salon__stage::after {
  content: '';
  position: absolute;
  top: calc(-1 * var(--salon-title-h, 0px));
  left: 0;
  width: 100%;
  height: calc(100% + var(--salon-title-h, 0px));
  z-index: 2;
  background: linear-gradient(180deg, rgba(28, 18, 16, 0.12) 0%, rgba(28, 18, 16, 0.58) 100%);
  opacity: 0;
  clip-path: inset(
    var(--salon-clip-top, 35%)
    var(--salon-clip-right, 35%)
    var(--salon-clip-bottom, 35%)
    var(--salon-clip-left, 35%)
    round var(--radius-md)
  );
  transition: opacity 1s var(--ease-out), clip-path 1.1s var(--ease-out);
  pointer-events: none;
}

.salon__stage.is-titled::after {
  opacity: 1;
}

.salon__stage.is-expanded::after {
  clip-path: inset(0 round 0);
}

.salon__stage.is-retracted::after {
  clip-path: inset(
    var(--salon-retract-top, 10%)
    var(--salon-retract-right, 10%)
    var(--salon-retract-bottom, 10%)
    var(--salon-retract-left, 10%)
    round var(--radius-md)
  );
}

.salon__overlay {
  position: absolute;
  top: calc(-1 * var(--salon-title-h, 0px));
  left: 0;
  width: 100%;
  height: calc(100% + var(--salon-title-h, 0px));
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  pointer-events: none;
}

/* Wrapper interne : porte la mise en page du texte (colonne centrée) et
   sert de repère de mesure en JS pour dimensionner la fenêtre de
   rétraction (voir salonRetract() dans js/home.js). */
.salon__overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}

.salon__overlay-eyebrow {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-secondary);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.salon__overlay-heading {
  margin: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-out) 0.12s, transform 1.1s var(--ease-out) 0.12s;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 1.3rem + 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-bg);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.salon__overlay-text {
  max-width: 46ch;
  margin: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease-out) 0.24s, transform 1s var(--ease-out) 0.24s;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Plus d'air entre le titre et le premier paragraphe */
.salon__overlay-text:first-of-type {
  margin-top: var(--space-md);
}

/* Second paragraphe : révélé un peu après le premier */
.salon__overlay-text:nth-of-type(2) {
  transition-delay: 0.34s;
}

.salon__stage.is-titled .salon__overlay-eyebrow,
.salon__stage.is-titled .salon__overlay-heading,
.salon__stage.is-titled .salon__overlay-text {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .salon__stage::after,
  .salon__overlay {
    display: none;
  }

  .salon__stage {
    height: auto;
  }

  /* Pas de blocage/animation sous 760px ni en mouvement réduit (voir
     js/home.js) : la photo entière reste simplement affichée, en carte
     normale dans le flux — donc pas de clip-path ici. */
  .salon__media {
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: var(--space-lg) 0 var(--space-md);
    clip-path: none;
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .salon__media img {
    aspect-ratio: 3 / 2;
  }
}

/* ==========================================================================
   10. RÉSERVATION
   ========================================================================== */
.booking-x {
  position: relative;
  background: var(--color-text);
  color: var(--color-bg);
  overflow: hidden;
  text-align: center;
}

.booking-x .section-title__eyebrow {
  color: var(--color-secondary);
  justify-content: center;
}

/* Réservation | Nous contacter — même largeur, empilées sous 900px. Écart
   volontairement large (au-delà de --space-2xl) + séparateur vertical pour
   bien distinguer les deux blocs plutôt que de les coller l'un à l'autre. */
.booking-x__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(5rem, 14vw, 13rem);
  align-items: start;
}

.booking-x__col {
  min-width: 0;
  position: relative;
}

.booking-x__col + .booking-x__col::before {
  content: '';
  position: absolute;
  top: 0.4em;
  bottom: 0.4em;
  left: calc(clamp(5rem, 14vw, 13rem) / -2);
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 900px) {
  .booking-x__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .booking-x__col + .booking-x__col::before {
    display: none;
  }
}

.booking-x__title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  color: var(--color-bg);
}

.booking-x__title em { font-style: italic; color: var(--color-secondary); }

.booking-x__lede {
  color: rgba(255, 255, 255, 0.68);
  max-width: 42ch;
  margin: 0 auto var(--space-lg);
}

.booking-x__frame {
  max-width: 100%;
  margin: 0 auto;
  min-height: 380px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--font-size-sm);
  padding: var(--space-md);
}

.booking-x__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 0 auto var(--space-lg);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
}

.booking-x__info b { color: var(--color-secondary); }

.booking-x__contact-btn {
  color: var(--color-bg);
  border-color: rgba(255, 255, 255, 0.4);
}

.booking-x__contact-btn:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* ---- Formulaire de contact (colonne "Nous contacter") ---- */
.contact-form {
  margin-top: var(--space-lg);
  text-align: left;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (max-width: 520px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-sm);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-form__field em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
}

.contact-form__field input,
.contact-form__field textarea {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-bg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm, 6px);
  padding: 0.65em 0.8em;
  resize: vertical;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form .btn {
  margin-top: var(--space-xs);
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.contact-form__success {
  display: none;
  color: var(--color-secondary);
  font-size: 0.9rem;
}

.contact-form.is-sent .contact-form__body {
  display: none;
}

.contact-form.is-sent .contact-form__success {
  display: block;
}

/* ==========================================================================
   11. BOUTONS "MAGNÉTIQUES" + VARIANTES SOMBRES
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  will-change: transform;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.btn--light {
  background: var(--color-bg);
  color: var(--color-text);
}

.btn--ghost {
  background: transparent;
  color: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

/* ==========================================================================
   12. EN-TÊTE TRANSPARENT SUR LE HERO
   ========================================================================== */
/* Sur l'accueil l'en-tête flotte au-dessus du hero plein écran */
site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

site-header .site-header__bar {
  background: transparent;
  border-bottom-color: transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

body.at-top site-header .site-header__logo,
body.at-top site-header .site-header__link {
  color: var(--color-bg);
}

body.at-top site-header .site-header__toggle span { background: var(--color-bg); }

body:not(.at-top) site-header .site-header__bar {
  background: var(--color-bg);
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 24px -18px rgba(74, 59, 54, 0.5);
}

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .manifesto__grid { grid-template-columns: 1fr; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

  .avis__grid { grid-template-columns: 1fr; }

  .manifesto__media { max-width: 340px; margin: 0 auto; }
  .manifesto__glyph { font-size: 7rem; top: -2.6rem; }
}

@media (max-width: 640px) {
  .hero-x__badge { display: none; }
  .hero-x__cue { display: none; }
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .hero-x__actions .btn { flex: 1 1 100%; text-align: center; }
}

/* ==========================================================================
   14. ACCESSIBILITÉ — MOUVEMENT RÉDUIT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .reveal-img::after { transform: scaleX(0); }
  .reveal-img img { transform: none; }
  .hero-x__title .line > span { transform: none; }
  .hero-x__lede,
  .hero-x__actions,
  .hero-x__facts { opacity: 1; transform: none; }
}
