/* ============================================================
   CINEMATIC SITE STARTER — structural + motion CSS
   ------------------------------------------------------------
   The :root block below is your BRAND CHARTER. These are the only
   values you (or Claude) should change to reskin the whole site —
   colours, fonts, spacing, accent. They start NEUTRAL on purpose.
   Everything under "STRUCTURAL CSS" drives the scrub engine,
   sections, and motion. You normally never touch it.
   ============================================================ */

:root {
  /* ---- Backgrounds — Cèdre Prestige : vert forêt profond, presque noir ---- */
  --bg:          #0b120d;   /* page base — le cèdre, la nuit */
  --bg-2:        #101a13;   /* derived: +1 step lighter (alternating bands) */
  --bg-3:        #16221a;   /* derived: +2 steps */
  --ink:         #070d09;   /* derived: darkest (footer) */

  /* ---- Text ---- */
  --fg:          #f4f2ec;   /* blanc tiède */
  --fg-soft:     #d0cec3;   /* derived: secondary text */
  --muted:       #8b8d84;   /* derived: labels, legal, captions */

  /* ---- Accent + lines ---- */
  --accent:      #c9a978;   /* or champagne — écho au ciseau d'or du vol */
  --line:        rgba(244, 242, 236, 0.14); /* derived from --fg @ ~14% — hairline dividers */

  /* ---- Layout ---- */
  --maxw:        1240px;
  --pad:         clamp(22px, 5vw, 80px);

  /* ---- Motion + type ---- */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --serif:       "Cormorant Garamond", Georgia, serif;
  --sans:        "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ============================================================
   STRUCTURAL CSS — drives the engine. Rarely needs editing.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }
em { font-style: italic; }

/* ---- Shared bits ---------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.eyebrow--light { color: var(--fg-soft); }
.eyebrow--center { text-align: center; }

.lede   { font-size: clamp(16px, 1.4vw, 19px); color: var(--fg-soft); max-width: 46ch; margin: 26px 0 0; line-height: 1.75; }
.meta   { font-size: 14px; color: var(--muted); letter-spacing: 0.02em; margin: 20px 0 0; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 999px;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
button.btn { appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.btn--light { color: var(--fg); border: 1px solid rgba(245,244,242,0.45); }
.btn--light:hover { background: var(--fg); color: var(--ink); transform: translateY(-2px); }
.btn--solid { color: var(--ink); background: var(--fg); margin-top: 8px; }
.btn--solid:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); }

/* ---- Scroll progress ------------------------------------------------ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 200; transition: width .1s linear;
}

/* ---- Nav ------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background .5s var(--ease), padding .5s var(--ease), backdrop-filter .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(7, 13, 9, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  padding-top: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--sans); font-weight: 500;
  font-size: 16px; letter-spacing: 0.42em; padding-left: 0.42em;
  color: var(--fg);
  display: flex; align-items: center; gap: 14px;
}
.nav__brand-logo { height: 42px; width: 42px; flex: 0 0 auto; }
.nav__links { display: flex; gap: 38px; }
.nav__links a {
  font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-soft); position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .4s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg); border: 1px solid rgba(245,244,242,0.4);
  padding: 11px 22px; border-radius: 999px;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.nav__cta:hover { background: var(--fg); color: var(--ink); transform: translateY(-1px); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
/* Sélecteur de langue (EN/FR) */
.nav__lang {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-soft); border: 1px solid var(--line);
  padding: 11px 14px; border-radius: 999px;
  transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.nav__lang:hover { color: var(--ink); background: var(--fg); border-color: var(--fg); }

/* Bouton « En savoir plus » en attente du raccord de la boucle */
.hero-cine__cta.is-waiting { pointer-events: none; animation: waitPulse 1.4s var(--ease) infinite; }
@keyframes waitPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.85; } }
/* Pendant l'attente : le bloc « Cèdre Prestige » s'efface comme au lancement,
   seul le bouton reste visible */
.hero-cine__text { transition: opacity .6s var(--ease); }
.hero-cine__content.is-waiting .hero-cine__text { opacity: 0; }

/* ============================================================
   HERO CINÉMATIQUE VIDÉO
   Boucle d'attente (10 s) + vol d'entrée déclenché par le bouton
   central. Scroll verrouillé (body.is-locked) tant qu'on n'est pas
   entré. Le voile .nav-veil sert aux transitions de menu.
   ============================================================ */
/* 100svh (repli 100vh) : sur Safari iOS, 100vh déborde sous la barre d'outils
   du bas — le bouton « En savoir plus » devenait inatteignable puisque le
   scroll verrouillé empêche de replier la barre. svh = hauteur barres visibles. */
.hero-cine { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.hero-cine__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-cine__video--hidden { opacity: 0; pointer-events: none; }
.hero-cine__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
/* Pipeline canvas actif : la vidéo source devient invisible (elle continue
   de jouer et alimente le canvas), le canvas prend l'affichage. */
.hero-cine--canvas .hero-cine__canvas { display: block; }
.hero-cine--canvas #loopVideo { opacity: 0; }

/* Survol stationnaire : le footage porte sa propre dérive naturelle ;
   on ajoute UNIQUEMENT un lent panoramique gauche-droite harmonique
   (bezier ≈ sinus, compositée GPU), léger zoom pour couvrir les bords. */
@keyframes panX {
  0%   { transform: scale(1.05) translateX(-1%); }
  50%  { transform: scale(1.05) translateX(1%); }
  100% { transform: scale(1.05) translateX(-1%); }
}
.hero-cine__video--panx {
  animation: panX 14s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  will-change: transform;
}
.hero-cine__content {
  position: absolute; inset: 0; z-index: 10;
  transition: opacity .6s var(--ease);
}
.hero-cine__content.is-hidden { opacity: 0; pointer-events: none; }
/* Texte en bas à gauche (signature éditoriale), bouton centré en bas */
.hero-cine__text {
  position: absolute; left: var(--pad); bottom: clamp(64px, 13vh, 140px);
  max-width: 720px; text-align: left;
}
.hero-cine__cta-wrap {
  position: absolute; left: 0; right: 0; bottom: clamp(30px, 6.5vh, 70px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
/* Indice « Cliquez ici » — volontairement très discret */
.hero-cine__hint {
  font-size: 9px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(244, 242, 236, 0.32); text-align: center; user-select: none;
  transition: opacity .6s var(--ease);
}
.hero-cine__hint-arrow {
  display: block; margin-top: 3px; font-size: 11px;
  animation: hintBob 2.6s var(--ease) infinite;
}
@keyframes hintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.hero-cine__content.is-waiting .hero-cine__hint { opacity: 0; }
body.is-locked { overflow: hidden; }
.nav-veil {
  position: fixed; inset: 0; z-index: 170;
  background: var(--ink); opacity: 0; pointer-events: none;
  transition: opacity .32s var(--ease);
}
.nav-veil.is-on { opacity: 1; pointer-events: auto; }

/* ---- Ancien scrub (conservé pour compat, plus utilisé par le hero) ---- */
.scrub { position: relative; height: 100vh; background: var(--bg); }
.scrub__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scrub__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scrub__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(7,13,9,0.78) 0%, rgba(7,13,9,0.12) 42%, rgba(7,13,9,0) 65%),
    linear-gradient(to bottom, rgba(7,13,9,0.5) 0%, rgba(7,13,9,0) 28%);
}

/* Flash blanc final — la lumière des portes envahit l'écran (opacité pilotée
   par le scroll dans script.js). FIXED (pas absolute) : il doit survivre à la
   fin du sticky pour couvrir l'écran pendant que le site surgit de la porte.
   z-index 140 = au-dessus du contenu, sous la nav (150). */
.scrub__flash {
  position: fixed; inset: 0; z-index: 140; pointer-events: none;
  background: #fff8ec; opacity: 0; will-change: opacity;
}

/* Cible du portail : le corps du site scale depuis le centre de la porte
   (transform inline posé par script.js pendant la transition uniquement) */
#siteBody { position: relative; }

/* Loader */
.loader {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--bg); transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__brand { font-family: var(--sans); font-size: 14px; letter-spacing: 0.5em; padding-left: 0.5em; color: var(--fg); }
.loader__logo { height: clamp(150px, 24vh, 230px); width: auto; }
.loader__track { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s var(--ease); }
.loader__pct { font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }

/* Caption beats — fade in/out over the moving footage (bottom-left) */
.scrub__beat {
  position: absolute; left: var(--pad); bottom: clamp(64px, 13vh, 140px); z-index: 10;
  max-width: 720px; opacity: 0; will-change: opacity, transform;
}
.scrub__eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.scrub__title {
  font-size: clamp(58px, 10vw, 132px); line-height: 0.92; color: var(--fg);
  text-shadow: 0 2px 50px rgba(0,0,0,0.45);
}
.scrub__title em, .scrub__beat-title em { color: var(--fg); }
.scrub__tagline {
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.2vw, 28px);
  color: var(--fg-soft); margin: 22px 0 0; max-width: 30ch;
}
.scrub__beat-title {
  font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em;
  font-size: clamp(40px, 6.4vw, 92px); color: var(--fg); text-shadow: 0 2px 50px rgba(0,0,0,0.45);
}
.scrub__beat-copy {
  font-size: clamp(16px, 1.45vw, 20px); color: var(--fg-soft);
  margin: 22px 0 0; max-width: 42ch; line-height: 1.7; text-shadow: 0 1px 20px rgba(0,0,0,0.4);
}
.scrub__beat .btn { margin-top: 30px; }

.scrub__cue {
  position: absolute; right: var(--pad); bottom: clamp(48px, 10vh, 96px); z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-soft);
}
.scrub__cue-line { width: 1px; height: 54px; background: linear-gradient(var(--fg-soft), transparent); animation: cuePulse 2.4s var(--ease) infinite; }
@keyframes cuePulse { 0%,100% { opacity: .35; transform: scaleY(.7); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   EDITORIAL (image + text)
   ============================================================ */
.editorial { padding: clamp(90px, 13vh, 180px) var(--pad); background: var(--bg); }
.editorial--reverse { background: var(--bg-2); }
.editorial__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 90px); align-items: center;
}
.editorial--reverse .editorial__media { order: 2; }
.editorial--reverse .editorial__text { order: 1; }
.editorial__text { max-width: 480px; }
.editorial__title { font-size: clamp(38px, 5.2vw, 76px); }
.editorial__title em { color: var(--accent); }

/* .frame ships with a visual fallback so an un-replaced placeholder never reads as a
   bare black rectangle. Replace the editorial images at GUIDE step 4 bis. */
.frame {
  margin: 0; overflow: hidden; border-radius: 4px; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.7);
  position: relative; aspect-ratio: 16 / 9; background: var(--bg-3);
  background-image: repeating-linear-gradient(45deg, rgba(245,244,242,0.018) 0 14px, transparent 14px 28px);
}
.frame::after {
  content: "Image à venir"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); opacity: 0.5; pointer-events: none;
}
.frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.editorial__media:hover .frame img { transform: scale(1.04); }

/* ============================================================
   FULL-BLEED IMAGE SECTIONS
   ============================================================ */
.bleed { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.bleed--tall { min-height: 100vh; }
.bleed__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(7,13,9,0.88) 0%, rgba(7,13,9,0.32) 38%, rgba(7,13,9,0) 60%),
    linear-gradient(to right, rgba(7,13,9,0.55) 0%, rgba(7,13,9,0.12) 50%, rgba(7,13,9,0) 80%);
}
.bleed__content { position: relative; z-index: 2; max-width: 640px; padding: 0 var(--pad); }
.bleed__content--low { align-self: flex-end; padding-bottom: clamp(60px, 12vh, 120px); }
.bleed__title { font-size: clamp(40px, 6vw, 92px); color: var(--fg); text-shadow: 0 2px 40px rgba(0,0,0,0.5); }
.bleed__title em { color: var(--fg); }
.bleed__copy { font-size: clamp(16px, 1.4vw, 19px); color: var(--fg); max-width: 46ch; margin: 24px 0 36px; line-height: 1.75; text-shadow: 0 1px 24px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.6); }
.bleed__specs { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap; }
.bleed__specs li { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid rgba(245,244,242,0.22); min-width: 150px; }
.bleed__spec-k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.bleed__spec-v { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); color: var(--fg); }

/* ============================================================
   AMENITIES / FEATURE LIST
   ============================================================ */
.amenities { background: var(--bg-2); padding: clamp(90px, 14vh, 180px) var(--pad); }
.amenities__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start;
}
.amenities__head { position: sticky; top: 120px; }
.amenities__title { font-size: clamp(34px, 4.4vw, 64px); color: var(--fg); }
.amenities__title em { color: var(--accent); }
.amenities__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 56px);
}
.amenity {
  display: flex; gap: 20px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.amenity__index { font-family: var(--serif); font-size: 15px; color: var(--accent); letter-spacing: 0.04em; flex: 0 0 auto; min-width: 26px; }
.amenity__text { font-size: clamp(15px, 1.15vw, 17px); color: var(--fg-soft); line-height: 1.5; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--ink); padding: clamp(70px, 11vh, 130px) var(--pad); }
.stats__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 60px);
}
.stat { text-align: left; border-left: 1px solid var(--line); padding-left: 26px; }
.stat__num { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 5.5vw, 76px); line-height: 1; color: var(--fg); }
.stat__unit { font-size: 0.42em; color: var(--accent); letter-spacing: 0.02em; }
.stat__label { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }

/* ============================================================
   RÉALISATIONS — vrai terrain (deux médias portrait 9:16)
   ============================================================ */
.realisations { background: var(--ink); padding: clamp(90px, 13vh, 180px) var(--pad); }
.realisations__inner { max-width: var(--maxw); margin: 0 auto; }
.realisations__head { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(20px, 4vw, 48px); }
.realisations__arrows { display: flex; gap: 10px; flex: 0 0 auto; padding-bottom: 6px; }
.scroller-btn {
  width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  font-size: 17px; line-height: 1; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.scroller-btn:hover { background: var(--fg); color: var(--ink); transform: translateY(-2px); }
.scroller-btn:active { transform: scale(0.96); }
.realisations__scroller {
  display: flex; gap: clamp(16px, 2.5vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin-top: clamp(36px, 6vh, 60px); padding: 4px 2px 14px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.realisations__scroller::-webkit-scrollbar { display: none; }
.realisations__scroller .frame--tall {
  flex: 0 0 auto; width: min(380px, 74vw); scroll-snap-align: start;
}
.frame--tall { aspect-ratio: 9 / 16; }
.frame--tall video, .frame--tall img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { background: var(--bg); padding: clamp(110px, 18vh, 220px) var(--pad); }
.manifesto__inner { max-width: 940px; margin: 0 auto; text-align: center; }
.manifesto__title { font-size: clamp(40px, 6.5vw, 104px); color: var(--fg); }
.manifesto__title em { color: var(--accent); }
.manifesto__copy { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.2vw, 30px); color: var(--fg-soft); margin: 34px auto 0; max-width: 56ch; line-height: 1.5; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-2); padding: clamp(90px, 14vh, 180px) var(--pad); }
.contact__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center;
}
.contact__title { font-size: clamp(34px, 4.6vw, 64px); color: var(--fg); margin-top: 8px; }
.contact__copy { color: var(--fg-soft); max-width: 42ch; margin: 26px 0 0; }
.contact__details { display: flex; flex-direction: column; gap: 4px; }
.contact__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease);
}
.contact__row:not(.contact__row--static):hover { padding-left: 10px; }
.contact__label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact__value { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 24px); color: var(--fg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); padding: clamp(60px, 9vh, 110px) var(--pad) 40px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer__logo { height: clamp(110px, 14vw, 150px); width: auto; display: block; margin: 0 auto 22px; }
.footer__brand { font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); color: var(--fg); }
.footer__tagline { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); margin: 14px 0 0; }
.footer__base { max-width: var(--maxw); margin: 32px auto 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__legal { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   MOTION LAYER (subtle, premium micro-interactions)
   All disabled under prefers-reduced-motion (media query at end).
   ============================================================ */

/* Masked line-by-line reveal for section titles (built in JS) */
.ml-reveal .ml-line {
  overflow: hidden;
  padding-bottom: 0.04em;
  margin-bottom: -0.04em;
}
.ml-reveal .ml-line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
  transition-delay: var(--ml-delay, 0s);
  will-change: transform;
}
.ml-reveal.is-shown .ml-line__inner { transform: translateY(0); }

/* Eyebrows above masked titles: gentle clip-up + fade */
.ml-eyebrow {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition: clip-path 0.7s var(--ease), opacity 0.7s var(--ease);
}
.ml-eyebrow.is-shown { clip-path: inset(0 0 0 0); opacity: 1; }

/* Animated counters (stats) */
.stat__num.is-counting { font-variant-numeric: tabular-nums; }

/* Parallax media (full-bleed images). JS sets --py (px). */
.bleed__img {
  will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.12);
}

/* CTA / button press feedback */
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.12s; }
.nav__cta:active { transform: translateY(0) scale(0.98); transition-duration: 0.12s; }
.btn--light:active { transform: scale(0.98); }

/* Intro load reveal (nav) */
body.intro-ready .nav { opacity: 0; transform: translateY(-12px); }
body.intro-ready.is-loaded .nav {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .editorial__inner, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .realisations__head { flex-direction: column; align-items: flex-start; }
  .editorial--reverse .editorial__media { order: 1; }
  .editorial--reverse .editorial__text { order: 2; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
  .amenities__inner { grid-template-columns: 1fr; gap: 44px; }
  .amenities__head { position: static; }
  .amenities__list { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
/* 🔴 820px = le breakpoint JS isSmall : sous cette largeur le scrub passe en
   STATIQUE (1 frame fixe, voir script.js). On DOIT y ramener le hero à 100vh,
   sinon la section garde sa hauteur N×4.6vh et le viewer scrolle plusieurs
   écrans de vide sur une image figée. La coupure CSS suit le breakpoint JS. */
@media (max-width: 820px) {
  .scrub { height: 100vh; }
}
@media (max-width: 560px) {
  .stats__inner { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; text-align: center; align-items: center; }
  .nav__cta { display: none; }
  .scrub { height: 100vh; }
  .bleed__specs { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .scrub__flash { display: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ml-reveal .ml-line { overflow: visible; padding-bottom: 0; margin-bottom: 0; }
  .ml-reveal .ml-line__inner { transform: none !important; transition: none !important; }
  .ml-eyebrow { clip-path: none !important; opacity: 1 !important; transition: none !important; }
  .bleed__img { transform: none !important; will-change: auto; }
  .btn:active, .nav__cta:active, .btn--light:active { transform: none !important; }
  body.intro-ready .nav { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Crédit Automvia (footer, discret) */
.footer__credit a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.footer__credit a:hover { border-color: currentColor; }

/* ============================================================
   RENDEZ-VOUS D'APPEL (formulaire Netlify, section contact)
   ============================================================ */
.rdv {
  max-width: var(--maxw); margin: clamp(60px, 9vh, 110px) auto 0;
  padding-top: clamp(44px, 6vh, 72px); border-top: 1px solid var(--line);
  color-scheme: dark;
}
.rdv__hp { position: absolute; left: -9999px; top: -9999px; }
.rdv__title {
  font-family: var(--serif); font-weight: 400; line-height: 1.15;
  font-size: clamp(26px, 3.2vw, 44px); color: var(--fg); margin: 10px 0 0;
}
.rdv__title em { color: var(--accent); }
.rdv__copy { color: var(--fg-soft); max-width: 54ch; margin: 18px 0 0; }
.rdv__grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 34px; margin-top: 44px; }
.rdv__champ { display: flex; flex-direction: column; gap: 10px; }
.rdv__champ--plein { grid-column: 1 / -1; }
.rdv__champ label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.rdv__champ input, .rdv__champ select, .rdv__champ textarea {
  background: rgba(244, 242, 236, 0.045); border: 1px solid var(--line); border-radius: 2px;
  color: var(--fg); font: inherit; font-size: 16px; padding: 14px 16px; width: 100%;
  transition: border-color 0.3s, background 0.3s;
}
.rdv__champ input:focus, .rdv__champ select:focus, .rdv__champ textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(244, 242, 236, 0.07);
}
.rdv__champ select option { background: var(--bg-2); color: var(--fg); }
.rdv__champ textarea { resize: vertical; min-height: 110px; }
.rdv__champ input::placeholder, .rdv__champ textarea::placeholder { color: var(--muted); }
.rdv__captcha { margin-top: 34px; }
.rdv__captcha:empty { display: none; }
.rdv__pied { display: flex; align-items: center; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
/* button.btn (plus spécifique que .btn--solid) force un fond transparent :
   on rétablit ici le plein pour le bouton d'envoi */
.rdv__envoyer, button.rdv__envoyer { border: 0; cursor: pointer; font: inherit; background: var(--fg); color: var(--ink); }
.rdv__envoyer:disabled { opacity: 0.45; cursor: default; pointer-events: none; }
.rdv__note { color: var(--muted); font-size: 13px; margin: 0; }
@media (max-width: 720px) {
  .rdv__grille { grid-template-columns: 1fr; gap: 22px; }
  .rdv__pied { gap: 16px; }
}
