/* ============================================================
   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 (dark by default — swap to taste) ---- */
  --bg:          #0b1014;   /* deep slate-blue */
  --bg-2:        #10161b;
  --bg-3:        #161e25;
  --ink:         #070a0d;

  /* ---- Text ---- */
  --fg:          #f2f0ec;   /* plaster white */
  --fg-soft:     #c9ccce;
  --muted:       #848c93;

  /* ---- Accent + lines ---- */
  --accent:      #5e9fcf;   /* EB brush-stroke blue, lifted for dark bg */
  --line:        rgba(242, 240, 236, 0.13);

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

  /* ---- Motion + type ---- */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --serif:       "Newsreader", Georgia, serif;
  --sans:        "Hanken Grotesk", 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);
}
.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, 10, 13, 0.74);
  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);
}
.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); }

/* ============================================================
   SCRUB HERO
   The .scrub height controls fly-through speed. Rule of thumb:
   height_vh  ≈  frames × 4.6   (a STARTING point, then judge by eye —
   too fast → raise toward ×6, too slow → lower toward ×3).

   DEFAULT = 160vh, on purpose: out of the box the starter ships with a
   SINGLE demo frame (assets/frames/frame-001.jpg, data-frames="1"), so a
   tall hero would be 5+ screens of one static gradient = confusing. Once
   you drop your real frames and bump data-frames to N, raise this to
   ~N × 4.6vh (e.g. 121 frames → 560vh) and tune by eye.
   ============================================================ */
.scrub { position: relative; height: 560vh; 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,10,13,0.78) 0%, rgba(7,10,13,0.12) 42%, rgba(7,10,13,0) 65%),
    linear-gradient(to bottom, rgba(7,10,13,0.5) 0%, rgba(7,10,13,0) 28%);
}

/* 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__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,10,13,0.88) 0%, rgba(7,10,13,0.32) 38%, rgba(7,10,13,0) 60%),
    linear-gradient(to right, rgba(7,10,13,0.55) 0%, rgba(7,10,13,0.12) 50%, rgba(7,10,13,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; }

/* ============================================================
   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__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; }
  .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; }
}
/* Phones scrub too (portrait frames-m, see script.js): shorter travel than desktop. */
@media (max-width: 820px) {
  .scrub { height: 430vh; }
  .wall-sign { width: min(calc(var(--s) * 0.5), 94vw); }
  .scrub__cue { right: 50%; transform: translateX(50%); }
}
@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; }
  .bleed__specs { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: 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; }
}

/* ============================================================
   EB — brand additions
   ============================================================ */
.nav__brand { display: inline-flex; align-items: center; gap: 12px; letter-spacing: 0.3em; padding-left: 0; }
.nav__mark { width: 26px; height: 26px; color: var(--accent); transform: rotate(-20deg); }
.scrub__title em, .scrub__beat-title em { color: var(--fg); font-weight: 400; }
.scrub__beat--end { max-width: 440px; }
.scrub__beat--end .scrub__beat-title { font-size: clamp(34px, 4.4vw, 64px); }
.stat__num { font-size: clamp(42px, 5vw, 70px); }
.contact__title em { color: var(--accent); }
.footer__brand em { color: var(--accent); }
.frame::after { content: ""; }
/* final beat sits on the white logo wall — give it its own soft shadow halo */
.scrub__beat--end { bottom: clamp(40px, 8vh, 90px); }
.scrub__beat--end::before {
  content: ""; position: absolute; z-index: -1; inset: -70px -120px -60px -140px;
  background: radial-gradient(ellipse at 35% 60%, rgba(7,10,13,0.78) 0%, rgba(7,10,13,0.5) 45%, rgba(7,10,13,0) 72%);
  pointer-events: none;
}

/* ---- Wall sign: company name painted under the logo on the last frames ---- */
.wall-sign {
  position: absolute; z-index: 9; left: 0; top: 0;
  --s: 1000px; /* rendered frame width, set by JS */
  width: calc(var(--s) * 0.5);
  transform: translate(-50%, 0);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  color: #3f86b5; opacity: 0; pointer-events: none; will-change: opacity;
}
.wall-sign.is-on { pointer-events: auto; }
.wall-sign__name {
  margin: calc(var(--s) * 0.006) 0;
  font-family: "Barlow Semi Condensed", var(--sans); font-weight: 500;
  font-size: calc(var(--s) * 0.036); line-height: 1.1; letter-spacing: 0.01em; white-space: nowrap;
  mix-blend-mode: multiply; filter: blur(0.2px);
}
.wall-sign__rule { display: block; width: 92%; height: max(2px, calc(var(--s) * 0.0022)); background: currentColor; opacity: 0.9; mix-blend-mode: multiply; }
.wall-sign__place {
  margin: calc(var(--s) * 0.012) 0 0;
  font-family: "Barlow Semi Condensed", var(--sans); font-weight: 400;
  font-size: calc(var(--s) * 0.012); letter-spacing: 0.28em; text-transform: uppercase;
  color: #2f6f99; mix-blend-mode: multiply;
}
.wall-sign__cta {
  margin-top: calc(var(--s) * 0.02);
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: #f7f5f1; background: #3f86b5; padding: 14px 28px; border-radius: 999px;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.wall-sign__cta:hover { background: #2f6f99; transform: translateY(-2px); }
.scrub--static .wall-sign { display: none; }
.wall-sign__place { mix-blend-mode: normal; color: #255d82; font-weight: 500; font-size: max(11px, calc(var(--s) * 0.0135)); letter-spacing: 0.24em; }

/* ============================================================
   AVANT / APRÈS — hover/drag comparison sliders
   ============================================================ */
.ba { background: var(--bg-2); padding: clamp(90px, 13vh, 180px) var(--pad); }
.ba__inner { max-width: var(--maxw); margin: 0 auto; }
.ba__head { max-width: 640px; margin-bottom: clamp(40px, 6vh, 70px); }
.ba__title { font-size: clamp(38px, 5.2vw, 76px); }
.ba__title em { color: var(--accent); }
/* portrait 4:5 + landscape 4:3 at equal height → columns 3fr / 5fr */
.ba__grid { display: grid; grid-template-columns: 3fr 5fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.ba__item { margin: 0; }
.ba__cap { display: flex; gap: 14px; align-items: baseline; margin-top: 18px; font-size: 14px; color: var(--fg-soft); }
.ba__cap span { font-family: var(--serif); color: var(--accent); }

.compare {
  --pos: 50%;
  position: relative; aspect-ratio: var(--ar); overflow: hidden; border-radius: 4px;
  background: var(--bg-3); cursor: ew-resize; touch-action: pan-y;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.7); user-select: none; -webkit-user-select: none;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__bar {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #f7f5f1; box-shadow: 0 0 18px rgba(0,0,0,0.45); pointer-events: none; z-index: 3;
}
.compare__knob {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #3f86b5; border: 2px solid #f7f5f1; box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.compare__knob::before, .compare__knob::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.compare__knob::before { left: 9px; border-right: 7px solid #f7f5f1; }
.compare__knob::after { right: 9px; border-left: 7px solid #f7f5f1; }
.compare__tag {
  position: absolute; top: 16px; z-index: 2; pointer-events: none;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: #f7f5f1; background: rgba(7,10,13,0.55); backdrop-filter: blur(6px);
  padding: 7px 12px; border-radius: 999px; transition: opacity .3s var(--ease);
}
.compare__tag--before { left: 16px; }
.compare__tag--after { right: 16px; }
.compare.is-edge-left .compare__tag--before, .compare.is-edge-right .compare__tag--after { opacity: 0; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.compare:focus-within .compare__knob { outline: 2px solid var(--fg); outline-offset: 3px; }

@media (max-width: 820px) {
  .ba__grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ============================================================
   FOOTER LINKS, CREDIT, COOKIE NOTICE, LEGAL PAGES
   ============================================================ */
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--fg); }
.footer__credit {
  max-width: var(--maxw); margin: 26px auto 0; text-align: center;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.footer__credit strong { font-weight: 500; color: var(--fg-soft); }

.cookie-note {
  position: fixed; z-index: 300; left: 50%; bottom: 20px; transform: translate(-50%, 0);
  width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 18px;
  padding: 16px 18px 16px 22px; border-radius: 14px;
  background: rgba(16, 22, 27, 0.94); backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7);
  font-size: 13px; line-height: 1.55; color: var(--fg-soft);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.cookie-note[hidden] { display: none; }
.cookie-note.is-leaving { opacity: 0; transform: translate(-50%, 12px); }
.cookie-note p { margin: 0; flex: 1; }
.cookie-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie-note button {
  flex: 0 0 auto; cursor: pointer; font: inherit; font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); background: var(--fg); border: 0; border-radius: 999px; padding: 11px 20px;
}
.cookie-note button:hover { background: var(--accent); }

.legal-page { padding: clamp(130px, 18vh, 190px) var(--pad) clamp(80px, 12vh, 140px); background: var(--bg); }
.legal { max-width: 760px; margin: 0 auto; }
.legal__back { display: inline-block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 34px; }
.legal__back:hover { color: var(--fg); }
.legal h1 { font-size: clamp(40px, 6vw, 72px); color: var(--fg); }
.legal__updated { font-size: 13px; color: var(--muted); margin: 16px 0 50px; }
.legal h2 {
  font-size: clamp(22px, 2.4vw, 30px); color: var(--fg); margin: 48px 0 16px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.legal p, .legal li { color: var(--fg-soft); font-size: 16px; line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 13px 0; border-bottom: 1px solid var(--line); }
.legal th { width: 38%; padding-right: 18px; font-weight: 400; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.legal td { color: var(--fg); }
@media (max-width: 560px) {
  .legal th, .legal td { display: block; width: 100%; padding: 6px 0; }
  .legal th { padding-top: 16px; border-bottom: 0; }
  .cookie-note { flex-direction: column; align-items: stretch; text-align: left; }
}
@media (max-width: 820px) {
  .wall-sign { width: min(calc(var(--s) * 0.5), 92vw); }
}
@media (max-width: 560px) {
  .scrub__title { font-size: clamp(40px, 12.4vw, 58px); }
  .scrub__beat-title { font-size: clamp(34px, 10.5vw, 48px); }
  .scrub__beat--end .scrub__beat-title { font-size: clamp(30px, 9vw, 40px); }
  .scrub__eyebrow { font-size: 10.5px; letter-spacing: 0.18em; }
  .scrub__beat { right: var(--pad); }
}
/* Touch phones: hero = one screen, the finger drives the flight (script.js touchMode) */
.scrub.scrub--touch { height: 100vh; height: 100svh; }
.scrub--touch .scrub__stage { height: 100vh; height: 100svh; }
.scrub--touch .scrub__cue span:first-child { font-size: 0; }
.scrub--touch .scrub__cue span:first-child::after { content: "Glissez vers le haut pour entrer"; font-size: 10px; }
.scrub--touch.is-locked .scrub__stage { touch-action: none; }
.scrub--touch .scrub__cue { bottom: 16px; gap: 8px; white-space: nowrap; }
.scrub--touch .scrub__cue-line { height: 26px; }
.scrub--touch .scrub__beat { bottom: 96px; }
