/* AgriSTD — site vitrine.
   Mise en page : des scènes épinglées plein écran au-dessus d'UN monde en relief fixe ;
   le texte d'un côté, le produit de l'autre ; sur téléphone, texte en haut, produit en bas. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f2;
  --fg: #101311;
  --fg-2: #474d48;
  --fg-3: #7d837e;
  --line: rgba(16, 19, 17, 0.1);
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --glass-brd: rgba(255, 255, 255, 0.85);
  --glass-edge: rgba(16, 19, 17, 0.08);
  --shadow: 0 1px 1px rgba(16, 19, 17, 0.04), 0 12px 40px rgba(16, 19, 17, 0.1);
  --shadow-lg: 0 2px 2px rgba(16, 19, 17, 0.05), 0 40px 90px rgba(16, 19, 17, 0.2);
  --ok: #2c6e44;
  --warn: #8a5824;
  --bad: #a8392b;
  --cta: #101311;
  --cta-fg: #ffffff;
  --wa: #1f8a4c;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --gutter: max(20px, 5.5vw);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131415; --bg-soft: #1b1c1e; --fg: #f4f4f1; --fg-2: #bcbfba; --fg-3: #858984;
    --line: rgba(255, 255, 255, 0.12); --card: #1c1e20;
    --glass: rgba(30, 32, 34, 0.62); --glass-strong: rgba(30, 32, 34, 0.88);
    --glass-brd: rgba(255, 255, 255, 0.12); --glass-edge: rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 2px 2px rgba(0, 0, 0, 0.4), 0 40px 90px rgba(0, 0, 0, 0.65);
    --ok: #7fc59a; --warn: #e0b074; --bad: #ee8f80;
    --cta: #f4f4f1; --cta-fg: #101311; --wa: #4cc27d;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) [data-u] { --u-ink: var(--u-300); }
}
:root[data-theme="dark"] {
  --bg: #131415; --bg-soft: #1b1c1e; --fg: #f4f4f1; --fg-2: #bcbfba; --fg-3: #858984;
  --line: rgba(255, 255, 255, 0.12); --card: #1c1e20;
  --glass: rgba(30, 32, 34, 0.62); --glass-strong: rgba(30, 32, 34, 0.88);
  --glass-brd: rgba(255, 255, 255, 0.12); --glass-edge: rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 2px 2px rgba(0, 0, 0, 0.4), 0 40px 90px rgba(0, 0, 0, 0.65);
  --ok: #7fc59a; --warn: #e0b074; --bad: #ee8f80;
  --cta: #f4f4f1; --cta-fg: #101311; --wa: #4cc27d;
  color-scheme: dark;
}
:root[data-theme="dark"] [data-u] { --u-ink: var(--u-300); }
[data-u] { --u-ink: var(--u-700); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Le monde ─────────────────────────────────────────────── */
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: var(--bg); }
.no-gl #world { display: none; }
#pins { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; contain: layout style; overflow: hidden; }
main { position: relative; z-index: 3; }
.no-gl #pins { display: none; }

/* ── Type ─────────────────────────────────────────────────── */
.display { font-weight: 800; letter-spacing: -0.045em; line-height: 0.94; font-size: clamp(2.5rem, 6.4vw, 5.4rem); text-wrap: balance; }
.display--xl { font-size: clamp(3.3rem, 10.5vw, 9rem); line-height: 0.88; letter-spacing: -0.055em; }
.display em { font-style: normal; color: var(--u-ink, inherit); }
.eyebrow { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.lede { font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.45; color: var(--fg-2); max-width: 34em; text-wrap: pretty; }

/* ── Boutons ──────────────────────────────────────────────── */
.cta {
  display: inline-flex; align-items: center; gap: 0.6em; height: 52px; padding: 0 1.5em 0 1.25em;
  border-radius: 999px; background: var(--cta); color: var(--cta-fg); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 30px rgba(16, 19, 17, 0.2);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 16px 40px rgba(16, 19, 17, 0.26); }
.cta:active { transform: translateY(0); }
.cta svg { width: 1.25em; height: 1.25em; flex: none; }
.cta--sm { height: 40px; font-size: 0.9rem; padding: 0 1.1em 0 0.95em; box-shadow: none; }
.link { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 700; color: var(--fg); padding: 0.6em 0.2em; }
.link::after { content: ""; width: 0.5em; height: 0.5em; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-0.12em) rotate(45deg); transition: transform 0.25s var(--ease); }
.link:hover::after { transform: translateY(0.1em) rotate(45deg); }
.link--go::after { transform: rotate(-45deg); }
.link--go:hover::after { transform: translateX(0.2em) rotate(-45deg); }

/* ── Barre flottante ──────────────────────────────────────── */
.hud {
  position: fixed; z-index: 50; top: max(12px, env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 20px)); height: 56px; padding: 0 8px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: 999px; background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-brd); box-shadow: 0 0 0 1px var(--glass-edge), var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 0.55em; font-weight: 800; letter-spacing: -0.03em; font-size: 1.06rem; }
.mark { display: inline-block; width: 1.5em; height: 1.56em; background: currentColor; -webkit-mask: url(assets/mark.svg) center / contain no-repeat; mask: url(assets/mark.svg) center / contain no-repeat; }
.rail { display: flex; align-items: center; gap: 6px; }
.rail__b { display: inline-flex; align-items: center; height: 34px; padding: 0 4px; border-radius: 12px; gap: 0; transition: background 0.3s var(--ease), padding 0.3s var(--ease), gap 0.3s var(--ease); }
.rail__sq {
  width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--t-hi), var(--t-mid) 50%, var(--t-lo)); color: var(--t-sig);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s var(--ease);
}
.rail__sq svg { width: 18px; height: 18px; fill: currentColor; }
.rail__b--child { position: relative; margin-left: 4px; }
.rail__b--child::before { content: ""; position: absolute; left: -7px; top: 50%; width: 8px; height: 2px; border-radius: 2px; background: var(--fg-3); }
.rail__b--child .rail__sq { width: 22px; height: 22px; border-radius: 7px; }
.rail__b--child .rail__sq svg { width: 15px; height: 15px; }
.rail__n { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 0.86rem; font-weight: 700; transition: max-width 0.35s var(--ease); }
.rail__b:hover .rail__sq { transform: translateY(-2px); }
.rail__b[aria-current="true"] { background: var(--line); padding: 0 12px 0 4px; gap: 8px; }
.rail__b[aria-current="true"] .rail__n { max-width: 8em; }
.hud__end { display: flex; align-items: center; gap: 6px; }
.theme { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-2); }
.theme:hover { background: var(--line); }
.theme i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

.dock { display: none; }

/* ── Scènes ───────────────────────────────────────────────── */
.scene { position: relative; --p: 0; --e: 0; --x: 0; }
.scene--pin { height: calc(var(--len) * 1vh); height: calc(var(--len) * 1lvh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.stage__in { position: relative; height: 100vh; height: 100svh; padding-inline: var(--gutter); }
#vh { position: fixed; top: 0; left: 0; width: 0; height: 100vh; height: 100lvh; visibility: hidden; pointer-events: none; }

/* ── Ouverture ────────────────────────────────────────────── */
.hero { --len: 165; }
.hero__copy {
  position: absolute; left: var(--gutter); top: 50%; width: min(46%, 640px);
  transform: translateY(calc(-50% - var(--p) * 90px)); opacity: calc(1 - var(--p) * 1.9);
  display: grid; gap: 22px; justify-items: start;
}
.hero__copy::before { content: ""; position: absolute; inset: -14% -22% -14% -40%; z-index: -1; background: radial-gradient(closest-side, var(--bg) 52%, transparent); opacity: 0.9; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 6px; }
.proof { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.86rem; color: var(--fg-2); font-weight: 600; }
.proof li { display: inline-flex; align-items: center; gap: 0.5em; }
.proof li::before { content: ""; width: 0.42em; height: 0.72em; border-right: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: translateY(-0.12em) rotate(42deg); }
.scrollcue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); opacity: calc(1 - var(--p) * 6); }
.scrollcue i { width: 1px; height: 34px; background: linear-gradient(var(--fg-3), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ── Le cahier ────────────────────────────────────────────── */
.cahier { --len: 150; }
.cahier .stage__in { display: grid; place-content: center; justify-items: start; gap: 28px; }
.cahier .stage__in::before { content: ""; position: absolute; inset: 10% 0; background: radial-gradient(closest-side, var(--bg) 40%, transparent); opacity: 0.82; }
.scrub { position: relative; max-width: 21em; font-size: clamp(1.7rem, 4.3vw, 3.9rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
.scrub span { opacity: clamp(0.13, calc(var(--p) * var(--n) * 1.3 - var(--i) + 0.6), 1); }
.scrub b { font-weight: 800; }
.cahier__next { position: relative; display: flex; align-items: center; gap: 12px; opacity: clamp(0, calc((var(--p) - 0.78) / 0.1), 1); }
.cahier__next i { width: 40px; height: 1px; background: var(--fg-3); }

/* ── Tuile : le module comme objet ────────────────────────── */
.tile { --s: 120px; --d: 12px; position: relative; display: block; width: var(--s); height: var(--s); transform-style: preserve-3d; flex: none; }
.tile > i { position: absolute; inset: 0; border-radius: 24%; background: var(--t-edge); transform: translateZ(calc(var(--d) * var(--k))); }
.tile > i:nth-child(1) { --k: -1; } .tile > i:nth-child(2) { --k: -0.84; } .tile > i:nth-child(3) { --k: -0.68; }
.tile > i:nth-child(4) { --k: -0.52; } .tile > i:nth-child(5) { --k: -0.36; } .tile > i:nth-child(6) { --k: -0.2; }
.tile > i:nth-child(6) { background: var(--t-lo); }
.tile::after { content: ""; position: absolute; inset: 8%; border-radius: 24%; background: rgba(0, 0, 0, 0.3); filter: blur(calc(var(--s) * 0.12)); transform: translateZ(calc(var(--d) * -1 - var(--s) * 0.34)); }
.tile__face {
  position: absolute; inset: 0; border-radius: 24%; overflow: hidden;
  background: linear-gradient(145deg, var(--t-hi), var(--t-mid) 48%, var(--t-lo));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 calc(var(--s) * 0.02) 0 rgba(255, 255, 255, 0.4);
}
.tile__weave { position: absolute; inset: -6%; background: var(--t-sig); opacity: 0.11; -webkit-mask: url(assets/pattern-geo.svg) 0 0 / auto 26% repeat; mask: url(assets/pattern-geo.svg) 0 0 / auto 26% repeat; }
.tile__sigil { position: absolute; inset: 16%; width: 68%; height: 68%; fill: var(--t-sig); filter: drop-shadow(0 calc(var(--s) * 0.012) 0 rgba(255, 255, 255, 0.22)) drop-shadow(0 calc(var(--s) * -0.008) 0 rgba(0, 0, 0, 0.18)); }
.tile__gloss { position: absolute; inset: 0; background: radial-gradient(110% 75% at 18% 0%, rgba(255, 255, 255, 0.42), transparent 58%); mix-blend-mode: soft-light; }
.tile--ghost > i, .tile--ghost::after { display: none; }
.tile--ghost .tile__face { background: none; box-shadow: none; border: 2px dashed var(--fg-3); opacity: 0.7; }
.tile--ghost .tile__face::before { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--s) * 0.36); font-weight: 500; color: var(--fg-3); }

/* Tuiles posées dans le monde (ouverture et vue d'ensemble) */
.pin { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.pin__tilt { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) perspective(900px) rotateX(var(--tx, 40deg)) rotateZ(var(--tz, 0deg)) translateZ(calc(var(--s) * 0.3)); transform-style: preserve-3d; transition: filter 0.3s; }
.pin__label { position: absolute; left: 0; top: calc(var(--s) * 0.66); transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; white-space: nowrap; text-align: center; opacity: 0; transition: opacity 0.4s; }
.pin__label b { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.02em; padding: 0.3em 0.75em; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-brd); box-shadow: var(--shadow); }
.pin__label i { font-style: normal; font-size: 0.74rem; color: var(--fg-2); font-weight: 600; }
#pins[data-mode="carte"] .pin { pointer-events: auto; cursor: pointer; }
#pins[data-mode="carte"] .pin__label { opacity: 1; }
#pins[data-mode="carte"] .pin:hover .pin__tilt, #pins[data-mode="carte"] .pin:focus-visible .pin__tilt { filter: brightness(1.08); }
.pin--ghost { pointer-events: none !important; }
.pin--ghost .pin__label b { background: none; border: 1px dashed var(--fg-3); box-shadow: none; color: var(--fg-2); font-weight: 600; }
.flows { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s; }
#pins[data-mode="carte"] .flows { opacity: 1; }
.flows line { stroke: var(--fg-3); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }

/* ── Chapitre d'univers ───────────────────────────────────── */
.chapter { --len: 280; }
.chapter .stage__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 5vw; }
.chapter__copy { position: relative; display: grid; gap: 22px; align-content: center; justify-items: start; max-width: 560px; opacity: min(calc(var(--e) * 3 - 1.4), calc(1.6 - var(--x) * 2.6)); }
.chapter--flip .chapter__copy { order: 2; justify-self: end; }
.chapter__copy::before { content: ""; position: absolute; inset: -22% -30%; z-index: -1; background: radial-gradient(closest-side, var(--bg) 48%, transparent); opacity: 0.9; }
.kicker { display: flex; align-items: center; gap: 16px; }
.kicker .tile { --s: 58px; --d: 7px; transform: perspective(600px) rotateX(calc(52deg - var(--p) * 22deg)) rotateZ(calc(-34deg + var(--p) * 44deg)); }
.kicker__t { display: grid; line-height: 1.2; }
.kicker__t b { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.kicker__t b small { font-size: 0.86em; font-weight: 700; color: var(--fg-3); }
.modes { display: flex; flex-wrap: wrap; gap: 6px; }
.modes li { font-size: 0.8rem; font-weight: 700; padding: 0.32em 0.8em; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--fg-2); }
.modes li:has(button) { padding: 0; border-color: var(--u-400); background: var(--glass-strong); }
.modes button { padding: 0.32em 0.8em; font-weight: 800; color: var(--fg); display: inline-flex; align-items: center; gap: 0.4em; }
.modes button::after { content: ""; width: 0.42em; height: 0.42em; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(-45deg); }
.kicker__t em { font-style: normal; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.beats { position: relative; display: grid; width: 100%; }
.beat { grid-area: 1 / 1; display: grid; gap: 8px; align-content: start; opacity: min(clamp(0, calc((var(--p) - var(--a)) / 0.05), 1), clamp(0, calc((var(--c) - var(--p)) / 0.05), 1)); transform: translateY(calc((1 - clamp(0, calc((var(--p) - var(--a)) / 0.08), 1)) * 18px)); }
.beat:nth-child(1), .scr:nth-child(1), .callout:nth-child(1) { --a: -1; --c: 0.36; }
.beat:nth-child(2), .scr:nth-child(2), .callout:nth-child(2) { --a: 0.36; --c: 0.69; }
.beat:nth-child(3), .scr:nth-child(3), .callout:nth-child(3) { --a: 0.69; --c: 2; }
.beat h3 { font-size: clamp(1.3rem, 2.3vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.beat p { font-size: clamp(1rem, 1.3vw, 1.18rem); color: var(--fg-2); max-width: 30em; text-wrap: pretty; }
.ticks { display: flex; gap: 6px; }
.ticks i { width: 26px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.ticks i::after { content: ""; position: absolute; inset: 0; background: var(--u-ink); transform-origin: left; transform: scaleX(clamp(0, calc((var(--p) - var(--a)) / (var(--c) - var(--a))), 1)); }
.ticks i:nth-child(1) { --a: 0; --c: 0.36; } .ticks i:nth-child(2) { --a: 0.36; --c: 0.69; } .ticks i:nth-child(3) { --a: 0.69; --c: 1; }
.chapter__more { font-size: 0.92rem; }

.chapter__stage { --h: min(80svh, 740px); position: relative; height: 100%; display: grid; place-items: center; perspective: 1700px; }

/* Le téléphone. 1em = 10 points d'écran : 39 × 84,4 em d'affichage, 1,5 em de cadre. */
.phone {
  --tilt: calc(1 - var(--p)); --dir: -1;
  position: relative; height: var(--h); width: calc(var(--h) * 42 / 87.4); font-size: calc(var(--h) / 87.4);
  transform-style: preserve-3d;
  transform: translateY(calc((1 - var(--e)) * 46% + var(--x) * -22%)) rotateX(calc(var(--tilt) * 9deg + 2deg)) rotateY(calc(var(--dir) * (var(--tilt) * 16deg + 5deg))) rotateZ(calc(var(--dir) * var(--tilt) * -2deg));
  opacity: min(calc(var(--e) * 2.4 - 0.5), calc(1.5 - var(--x) * 2.4));
}
.chapter--flip .phone { --dir: 1; }
.phone > i { position: absolute; inset: 0; border-radius: 7em; background: #232325; transform: translateZ(calc(var(--k) * 0.1em)); }
.phone > i:nth-child(1) { --k: -9; background: #4a4946; } .phone > i:nth-child(2) { --k: -7; } .phone > i:nth-child(3) { --k: -5; }
.phone > i:nth-child(4) { --k: -3; } .phone > i:nth-child(5) { --k: -1; background: #343436; }
.phone::after { content: ""; position: absolute; inset: 5% 3% -3%; border-radius: 7em; background: rgba(0, 0, 0, 0.4); filter: blur(4.6em); transform: translateZ(-9em) translateY(7%); }
.phone__body { position: absolute; inset: 0; border-radius: 7em; background: linear-gradient(118deg, #e3e0da 0%, #9a9791 16%, #5f5d59 44%, #b2afa9 72%, #74726d 100%); box-shadow: inset 0 0 0 0.1em rgba(255, 255, 255, 0.55), inset 0 0 0.4em rgba(0, 0, 0, 0.35); transform: translateZ(0.02em); }
.phone__body::before { content: ""; position: absolute; inset: 0.45em; border-radius: 6.6em; background: #050506; }
.phone__screen { position: absolute; inset: 1.5em; border-radius: 5.5em; overflow: hidden; background: #000; isolation: isolate; }
.phone__glass { position: absolute; inset: 1.5em; border-radius: 5.5em; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.07) 100%); opacity: calc(0.15 + var(--tilt) * 0.85); }
.phone__island { position: absolute; z-index: 3; top: 1.1em; left: 50%; width: 12.4em; height: 3.6em; margin-left: -6.2em; border-radius: 2em; background: #000; }
.phone__island::after { content: ""; position: absolute; right: 1.15em; top: 50%; width: 1.1em; height: 1.1em; margin-top: -0.55em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3350, #0a0c14 62%); }
.phone__key { position: absolute; width: 0.5em; background: linear-gradient(90deg, #6b6965, #c4c1bb); border-radius: 0.2em; transform: translateZ(-0.45em); }
.phone__key--1 { left: -0.32em; top: 17.5em; height: 3.4em; } .phone__key--2 { left: -0.32em; top: 24em; height: 6.2em; }
.phone__key--3 { left: -0.32em; top: 31.6em; height: 6.2em; } .phone__key--4 { right: -0.32em; top: 27em; height: 9.8em; background: linear-gradient(270deg, #6b6965, #c4c1bb); }
.scr { position: absolute; inset: 0; background: #faf7ef; opacity: min(clamp(0, calc((var(--p) - var(--a)) / 0.04), 1), clamp(0, calc((var(--c) - var(--p)) / 0.04), 1)); }
.scr__bar { position: absolute; inset: 0 0 auto; height: 5.95em; }
.scr img { position: absolute; left: 0; top: 5.9em; width: 100%; height: 78.5em; display: block; max-width: none; }
.scr__status { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 5.9em; display: flex; align-items: center; justify-content: space-between; padding: 0.5em 3.1em 0 4.6em; color: #0d0d0e; }
.scr--light .scr__status { color: #fff; }
.scr__status b { font: 600 1.7em/1 var(--font); letter-spacing: -0.01em; }
.scr__status svg { height: 1.25em; width: auto; }
.scr__home { position: absolute; z-index: 2; left: 50%; bottom: 0.8em; width: 13.6em; height: 0.5em; margin-left: -6.8em; border-radius: 1em; background: #0d0d0e; opacity: 0.82; }

/* Scènes posées dans le monde */
#sets { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.set { position: absolute; left: 0; top: 0; width: 0; height: 0; --w: 300px; --g: 0; --t: 0; will-change: transform; }
.set__img { position: absolute; left: 0; top: 0; width: var(--w); max-width: none; height: auto; transform: translate(-50%, -80%) scale(calc(0.5 + var(--g) * 0.5)); transform-origin: 50% 82%; opacity: var(--g); filter: saturate(0.92) drop-shadow(0 calc(var(--w) * 0.035) calc(var(--w) * 0.05) rgba(0, 0, 0, 0.22)); }
.set__tile { position: absolute; left: 0; top: 0; transform: translate(-50%, -60%) perspective(700px) rotateX(54deg) rotateZ(-22deg) scale(calc(1 - var(--g) * 0.7)); opacity: var(--t); }
.set__tile .tile { --s: calc(var(--w) * 0.3); --d: calc(var(--w) * 0.03); }
.rm #sets { display: none; }

.callout {
  position: absolute; left: 50%; top: 50%; z-index: 4; width: max-content; max-width: min(250px, 42vw);
  padding: 14px 18px 15px; border-radius: 20px; display: grid; gap: 3px;
  background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-brd); box-shadow: 0 0 0 1px var(--glass-edge), var(--shadow);
  --w: clamp(0, calc((var(--p) - var(--a)) / 0.06), 1);
  opacity: min(var(--w), clamp(0, calc((var(--c) - var(--p)) / 0.05), 1), calc(1.4 - var(--x) * 3), calc(var(--e) * 4 - 2.8));
  transform: translate(-50%, -50%) translate(var(--dx), calc(var(--dy) + (1 - var(--w)) * 26px)) scale(calc(0.94 + var(--w) * 0.06));
}
.callout:nth-child(1) { --dx: calc(var(--side) * -1 * var(--reach)); --dy: -24svh; }
.callout:nth-child(2) { --dx: calc(var(--side) * var(--reach)); --dy: -3svh; }
.callout:nth-child(3) { --dx: calc(var(--side) * -1 * var(--reach)); --dy: 19svh; }
.callout--hot { border-color: var(--u-400); box-shadow: 0 0 0 1px var(--u-400), var(--shadow); background: var(--glass-strong); }
.callouts { --side: 1; --reach: calc(var(--h) * 0.24 + 62px); position: absolute; inset: 0; pointer-events: none; }
.chapter--flip .callouts { --side: -1; }
.callout b { font-size: clamp(1.3rem, 2.1vw, 1.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.callout--hot b { font-size: clamp(1.5rem, 2.7vw, 2.4rem); color: var(--u-ink); }
.callout > span { font-size: 0.84rem; line-height: 1.3; color: var(--fg-2); font-weight: 600; }

/* ── La mesure (Ladoum) : un film de studio, les mesures posées par la vidéo ──
   Écran : le bélier occupe la gauche, titre et mesures respirent à sa droite.
   Téléphone : titre, puis le bélier en pièce centrale, puis les mesures. */
.mesure { --len: 440; --mg: #f2c97a; --mx: 0; --my: 0; }
.mesure .stage { background: #12161c; }
.mesure .stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--bg); opacity: clamp(0, calc(1 - min(var(--e) * 2.2, (1 - var(--x)) * 3)), 1); }
.mesure__in { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-content: center; row-gap: 34px; column-gap: 4vw; }
.mesure__head, .mesure__list { position: relative; z-index: 2; grid-column: 2; }
.mesure__head { display: grid; gap: 18px; justify-items: start; color: #f4f1ea; opacity: min(calc(var(--e) * 3 - 1.4), calc(1.6 - var(--x) * 2.6)); }
.mesure__head .display { color: #fff; } .mesure__head .display em { color: var(--mg); }
.mesure__fig { position: absolute; inset: 0; margin: 0; overflow: hidden; pointer-events: none; }
.mesure__fig::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, #12161c 0%, rgba(18, 22, 28, 0.86) 24%, rgba(18, 22, 28, 0) 46%), linear-gradient(0deg, rgba(18, 22, 28, 0.6), rgba(18, 22, 28, 0) 20%); }
.mesure__plate { position: absolute; top: 50%; left: calc(34% - max(50%, calc(100lvh * 8 / 9))); width: max(100%, calc(100lvh * 16 / 9)); aspect-ratio: 16 / 9; transform: translate3d(calc(var(--mx) * -14px), calc(-50% + var(--my) * -9px), 0) scale(calc(1.02 + var(--p) * 0.03)); transform-origin: 50% 55%; }
.mesure__fig::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle at calc(38% + var(--mx) * 26%) calc(46% + var(--my) * 22%), rgba(255, 232, 196, 0.07), rgba(255, 232, 196, 0) 34%); }
.mesure__film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mesure__list { display: grid; width: 100%; color: #f4f1ea; opacity: min(calc(var(--e) * 3 - 1.7), calc(1.6 - var(--x) * 2.6)); }
.mesure__list li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); opacity: clamp(0.32, calc((var(--p) - var(--a)) / 0.06 + 0.32), 1); }
.mesure__list li:nth-child(1) { --a: 0.31; } .mesure__list li:nth-child(2) { --a: 0.59; } .mesure__list li:nth-child(3) { --a: 0.81; } .mesure__list li:nth-child(4) { --a: 0.93; }
.mesure__list b { font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.mesure__list li > span { font-size: 0.92rem; color: rgba(244, 241, 234, 0.66); }
.mesure__list i { grid-column: 3; font-style: normal; font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--mg); }
/* Écrans peu larges (4:3, 16:10 étroits) : le bélier un peu plus petit et plus à gauche, le texte plus serré */
@media (min-width: 861px) and (max-aspect-ratio: 3/2) {
  .mesure__in { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
  .mesure__plate { width: max(100%, calc(100lvh * 4 / 3)); left: calc(31% - max(50%, calc(100lvh * 2 / 3))); }
  .mesure__fig::after { background: linear-gradient(270deg, #12161c 0%, rgba(18, 22, 28, 0.86) 24%, rgba(18, 22, 28, 0) 46%), linear-gradient(0deg, #12161c 4%, rgba(18, 22, 28, 0) 26%), linear-gradient(180deg, #12161c 6%, rgba(18, 22, 28, 0) 24%); }
}
@media (max-width: 860px) {
  /* Téléphone : le titre en haut, les mesures tout en bas, le bélier centré dans l'espace qui reste */
  .mesure__in { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; padding-top: 70px; padding-bottom: 92px; }
  .mesure__head { gap: 8px; }
  .mesure .display { font-size: clamp(2rem, 9vw, 2.8rem); }
  .mesure__fig { position: relative; inset: auto; flex: 1 1 0; min-height: 56vw; margin: 6px calc(-1 * var(--gutter)) 6px; container-type: size; }
  .mesure__fig::after { background: linear-gradient(180deg, #12161c 0%, rgba(18, 22, 28, 0) 14%, rgba(18, 22, 28, 0) 84%, #12161c 100%); }
  .mesure__plate { top: 50%; left: 50%; width: auto; height: min(118cqh, 115vw); transform: translate(-50%, -50%); }
  .mesure__list li { padding: 7px 0; gap: 8px; } .mesure__list li > span { font-size: 0.76rem; }
}
@media (max-width: 860px) and (max-height: 760px) {
  .mesure__list li > span { display: none; } .mesure__list li { padding: 6px 0; }
}
.rm .mesure__head, .rm .mesure__list, .rm .mesure__list li { opacity: 1; } .rm .mesure__film { background: url("assets/mesure/244.jpg?v=6") center / cover; } .rm .mesure__plate { transform: translateY(-50%); }
@media (max-width: 860px) { .rm .mesure__plate { transform: translate(-50%, -50%); } }

/* ── Le même compte (grille) ──────────────────────────────── */
.band { position: relative; padding: clamp(90px, 16vh, 170px) var(--gutter); }
.band__in { max-width: 1180px; margin: 0 auto; display: grid; gap: clamp(28px, 5vw, 56px); }
.band__head { display: grid; gap: 20px; justify-items: start; max-width: 760px; position: relative; }
.band__head::before { content: ""; position: absolute; inset: -30% -18%; z-index: -1; background: radial-gradient(closest-side, var(--bg) 50%, transparent); opacity: 0.86; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cell {
  position: relative; grid-column: span 2; min-width: 0; padding: 26px; border-radius: 28px; display: grid; gap: 16px; align-content: start; overflow: hidden;
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--glass-brd); box-shadow: 0 0 0 1px var(--glass-edge), var(--shadow);
  transform: translateY(calc((1 - clamp(0, calc(var(--e) * 1.5 - var(--o, 0) * 0.14), 1)) * 70px));
}
.cell--wide { grid-column: span 4; } .cell--half { grid-column: span 3; }
.cell h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
.cell p { font-size: 0.98rem; color: var(--fg-2); max-width: 34em; text-wrap: pretty; }
.cell__k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.ledger { display: grid; font-size: 0.95rem; }
.ledger li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.ledger li > i { width: 10px; height: 10px; border-radius: 3px; background: var(--u-500); }
.ledger span { min-width: 0; } .ledger small { display: block; color: var(--fg-3); font-size: 0.8rem; font-weight: 600; }
.ledger b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger b.plus { color: var(--ok); }
.gauge { display: grid; gap: 8px; }
.gauge__bar { height: 10px; border-radius: 10px; background: var(--line); overflow: hidden; }
.gauge__bar i { display: block; height: 100%; width: 28%; border-radius: 10px; background: var(--warn); }
.gauge b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.gauge span { font-size: 0.84rem; color: var(--fg-2); font-weight: 600; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { padding: 0.4em 0.85em; border-radius: 999px; background: var(--line); font-size: 0.86rem; font-weight: 700; }
.todo { display: grid; gap: 10px; font-size: 0.94rem; }
.todo li { display: flex; align-items: center; gap: 10px; }
.todo li > i { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--u-500); flex: none; }
.todo li.done > i { background: var(--u-500); } .todo li.done span { color: var(--fg-3); text-decoration: line-through; }
.offline { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.offline i { width: 42px; height: 42px; border-radius: 14px; background: var(--line); display: grid; place-items: center; }
.offline i::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--fg); border-bottom-color: transparent; border-left-color: transparent; transform: rotate(-45deg); }

/* ── Vue d'ensemble ───────────────────────────────────────── */
.carte { --len: 215; }
.carte .stage, .carte .stage__in { pointer-events: none; }
.carte__copy { position: absolute; left: var(--gutter); right: var(--gutter); top: 96px; display: grid; gap: 14px; justify-items: center; text-align: center; opacity: min(calc(var(--e) * 3 - 1.6), calc(1.5 - var(--x) * 3)); }
.carte__copy .lede { max-width: 30em; }
.carte__copy::before { content: ""; position: absolute; inset: -30% 6%; z-index: -1; background: radial-gradient(closest-side, var(--bg) 46%, transparent); opacity: 0.9; }
.carte__hint { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); opacity: min(calc(var(--p) * 4), calc(1.5 - var(--x) * 3)); }

/* ── Simulateur ───────────────────────────────────────────── */
.simu__panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); border-radius: 32px; overflow: hidden; background: var(--glass-strong); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); border: 1px solid var(--glass-brd); box-shadow: 0 0 0 1px var(--glass-edge), var(--shadow-lg); }
.simu__form { padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 26px; align-content: start; min-width: 0; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--line); justify-self: start; max-width: 100%; }
.tabs button { padding: 0.55em 1.1em; border-radius: 999px; font-weight: 700; font-size: 0.92rem; color: var(--fg-2); transition: background 0.25s, color 0.25s; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.simu__ask { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.sliders { display: grid; gap: 20px; }
.slider { display: grid; gap: 8px; }
.slider__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.92rem; color: var(--fg-2); font-weight: 600; }
.slider__top output { font-family: var(--mono); font-weight: 500; color: var(--fg); white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; margin: 0; cursor: pointer; --f: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--u-500) var(--f), var(--line) var(--f)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--u-500) var(--f), var(--line) var(--f)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.simu__out { position: relative; padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 14px; align-content: center; justify-items: start; background: linear-gradient(150deg, var(--u-600), var(--u-800)); color: #fff; overflow: hidden; min-width: 0; transition: background 0.4s; }
.simu__out::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0.07; -webkit-mask: url(assets/pattern-geo.svg) 0 0 / auto 90px repeat; mask: url(assets/pattern-geo.svg) 0 0 / auto 90px repeat; }
.simu__out > * { position: relative; }
.simu__lab { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.simu__n { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.simu__n small { font-size: 0.3em; letter-spacing: 0; font-weight: 700; opacity: 0.85; }
.simu__f { font-size: 0.95rem; line-height: 1.5; font-weight: 600; opacity: 0.95; }
.simu__lab { max-width: 26em; line-height: 1.5; }
.simu__n small { display: block; margin-top: 0.5em; }
.simu__note { font-size: 0.88rem; opacity: 0.9; max-width: 28em; }
.simu__out .cta { background: #fff; color: #101311; margin-top: 8px; }

/* ── Demain ───────────────────────────────────────────────── */
.demain { --len: 195; }
.demain .stage__in { display: grid; align-content: center; justify-items: start; gap: 34px; }
.demain__copy { display: grid; gap: 18px; max-width: 720px; position: relative; opacity: min(calc(var(--e) * 3 - 1.5), calc(1.5 - var(--x) * 3)); }
.demain__copy::before { content: ""; position: absolute; inset: -30% -25%; z-index: -1; background: radial-gradient(closest-side, var(--bg) 46%, transparent); opacity: 0.9; }
.hw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(100%, 980px); }
.hw li { --a: calc(0.08 + var(--o) * 0.2); padding: 22px; border-radius: 24px; display: grid; gap: 10px; align-content: start; background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid var(--glass-brd); box-shadow: 0 0 0 1px var(--glass-edge), var(--shadow); --w: clamp(0, calc((var(--p) - var(--a)) / 0.16), 1); opacity: min(calc(0.25 + var(--w)), calc(1.5 - var(--x) * 3)); transform: translateY(calc((1 - var(--w)) * 34px)); }
.hw h3 { font-size: 1.14rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.hw p { font-size: 0.93rem; color: var(--fg-2); }
.tag { justify-self: start; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35em 0.7em; border-radius: 999px; border: 1px dashed var(--fg-3); color: var(--fg-2); display: inline-flex; align-items: center; gap: 0.6em; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ── Fin : le reçu, l'appel, les questions ────────────────── */
.fin__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.fin__copy { display: grid; gap: 22px; justify-items: start; position: relative; }
.fin__copy::before { content: ""; position: absolute; inset: -24% -22%; z-index: -1; background: radial-gradient(closest-side, var(--bg) 50%, transparent); opacity: 0.9; }
.tel { display: grid; gap: 2px; }
.tel small { font-size: 0.8rem; color: var(--fg-3); font-weight: 600; }
.tel b { font-family: var(--mono); font-weight: 500; font-size: 1.15rem; user-select: all; }
.receipt { position: relative; justify-self: center; width: min(100%, 440px); padding: 30px 26px 44px; background: #fffdf8; color: #1a1f1a; font-family: var(--mono); font-size: 0.8rem; line-height: 1.4; box-shadow: var(--shadow-lg); transform: rotate(calc(1.6deg - var(--e) * 0.6deg)); -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 12px) no-repeat, conic-gradient(from -45deg at 50% 0, #000 90deg, transparent 0) bottom / 16px 12px repeat-x; mask: linear-gradient(#000, #000) top / 100% calc(100% - 12px) no-repeat, conic-gradient(from -45deg at 50% 0, #000 90deg, transparent 0) bottom / 16px 12px repeat-x; }
.receipt__head { display: grid; justify-items: center; gap: 4px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px dashed #a8aea7; text-align: center; }
.receipt__head .mark { width: 30px; height: 31px; }
.receipt__head b { font-family: var(--font); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.receipt li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px dotted #d7dad5; opacity: clamp(0.08, calc(var(--e) * 14 - var(--o) * 1.05 - 2), 1); }
.receipt li time { color: #828982; } .receipt li b { font-weight: 500; white-space: nowrap; }
.receipt li i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--u-500); margin-right: 6px; }
.receipt__foot { padding-top: 16px; text-align: center; font-family: var(--font); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.receipt__foot small { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.68rem; letter-spacing: 0; color: #828982; margin-top: 6px; }
.faq { max-width: 860px; margin: 0 auto; width: 100%; display: grid; gap: 22px; }
.faq h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; }
.faq__list { border-radius: 28px; background: var(--glass-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid var(--glass-brd); box-shadow: 0 0 0 1px var(--glass-edge), var(--shadow); padding: 6px 26px; }
.faq details { border-bottom: 1px solid var(--line); } .faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.06rem; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--fg-2); border-bottom: 2px solid var(--fg-2); transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--fg-2); max-width: 44em; }
.foot { position: relative; z-index: 3; padding: 40px var(--gutter) max(40px, env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; font-size: 0.86rem; color: var(--fg-3); background: var(--bg); border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { font-weight: 700; color: var(--fg-2); } .foot nav a:hover { color: var(--fg); }
.foot p { max-width: 46em; }

/* ── Univers seul (?u=…) ──────────────────────────────────── */
.solo .solo-hide { display: none !important; }
.solo .rail { display: none; }
.solo-only { display: none; } .solo .solo-only { display: inline-flex; }

/* ── Téléphone ────────────────────────────────────────────── */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hud { height: 52px; padding: 0 6px 0 14px; }
  .brand span { display: none; }
  .rail { gap: 2px; }
  .rail__b { padding: 0 3px; }
  .rail__sq { width: 24px; height: 24px; border-radius: 7px; }
  .rail__b[aria-current="true"] { padding: 0 3px; gap: 0; background: none; }
  .rail__b[aria-current="true"] .rail__n { max-width: 0; }
  .rail__b[aria-current="true"] .rail__sq { transform: scale(1.18); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg); }
  .hud .cta { display: none; }
  .theme { width: 38px; height: 38px; }

  .dock { display: flex; position: fixed; z-index: 49; left: 50%; bottom: max(14px, env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 120px); transition: transform 0.45s var(--ease); width: max-content; max-width: calc(100% - 28px); }
  .past-hero:not(.at-end) .dock { transform: translate(-50%, 0); }

  .hero__copy { top: 84px; left: var(--gutter); right: var(--gutter); width: auto; transform: translateY(calc(var(--p) * -70px)); gap: 16px; }
  .hero__copy::before { inset: -20% -20% -10%; }
  .proof { gap: 4px 14px; font-size: 0.8rem; }
  .scrollcue { display: none; }

  .chapter { --len: 300; }
  .chapter .stage__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 0; padding-top: 74px; }
  .chapter--flip .chapter__copy { order: 0; justify-self: start; }
  .chapter__copy { gap: 10px; min-height: 250px; }
  .modes li { font-size: 0.72rem; }
  .chapter__copy::before { inset: -30% -20% -8%; }
  .chapter .display { font-size: clamp(2.1rem, 9.6vw, 3rem); }
  .kicker { gap: 12px; } .kicker .tile { --s: 44px; --d: 5px; }
  .beat h3 { font-size: 1.16rem; } .beat p { font-size: 0.95rem; }
  .chapter__more { display: none; }
  .chapter__stage { align-items: start; place-items: start center; }
  .chapter__stage { --h: min(62svh, 600px); }
  .phone { margin-top: 10px; }
  .callouts { --reach: 27vw; }
  .callout { padding: 10px 13px 11px; border-radius: 16px; max-width: 46vw; }
  .callout:nth-child(1) { --dy: -17svh; } .callout:nth-child(2) { --dy: -1svh; } .callout:nth-child(3) { --dy: 12svh; }
  .callout b { font-size: 1.12rem; } .callout--hot b { font-size: 1.3rem; }
  .callout > span { font-size: 0.74rem; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell, .cell--wide, .cell--half { grid-column: auto; padding: 22px; border-radius: 24px; }
  .carte__copy { top: 78px; }
  .pin__label b { font-size: 0.82rem; } .pin__label i { display: none; }
  .simu__panel { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
  .tabs button { padding: 0.5em 0.85em; font-size: 0.86rem; }
  .demain .stage__in { align-content: start; padding-top: 86px; gap: 20px; }
  .hw { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hw li { padding: 16px 18px; gap: 6px; border-radius: 20px; }
  .hw p { font-size: 0.86rem; }
  .fin__grid { grid-template-columns: minmax(0, 1fr); }
  .receipt { font-size: 0.72rem; padding: 24px 18px 38px; }
  .faq__list { padding: 4px 20px; border-radius: 24px; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .chapter__copy { min-height: 208px; gap: 9px; }
  .beat p { font-size: 0.9rem; }
  .hw p { display: none; }
}

/* ── Sans animation : tout est lisible, rien n'est épinglé ─ */
.rm .scene--pin { height: auto; }
.rm .stage { position: relative; height: auto; overflow: visible; }
.rm .stage__in { height: auto; padding-block: 110px 60px; }
.rm .hero__copy, .rm .carte__copy { position: relative; top: auto; left: auto; right: auto; transform: none; opacity: 1; }
.rm .chapter__copy, .rm .demain__copy, .rm .phone, .rm .hw li, .rm .cahier__next, .rm .carte__hint { opacity: 1; }
.rm .scrub span { opacity: 1; }
.rm .beats { gap: 20px; } .rm .beat { grid-area: auto; opacity: 1; transform: none; }
.rm .phone { transform: none; margin-block: 30px; }
.rm .callouts { position: static; display: grid; gap: 10px; margin-top: 16px; pointer-events: auto; }
.rm .callout { position: static; opacity: 1; transform: none; max-width: none; width: auto; }
.rm .scr { opacity: 0; } .rm .scr:nth-child(3) { opacity: 1; }
.rm .cell, .rm .hw li { transform: none; }
.rm .receipt li { opacity: 1; }
.rm .scrollcue, .rm .ticks, .rm #pins { display: none; }
.rm .carte .stage__in { min-height: 40vh; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
