/* ==========================================================================
   MM Intelligence — feuille de style unique
   Direction « Le plan » : technique précise, papier bleuté, grille de plan,
   bleu électrique de marque. Écrite mobile d'abord (min-width uniquement).
   ========================================================================== */

/* ---------- 1. Jetons ---------- */
:root {
  /* Couleurs de marque (brief) */
  --blue: #1149FE;          /* bleu MM — 6,2:1 sur blanc */
  --blue-deep: #0A35C9;     /* survol, texte bleu sur fond pâle */
  --blue-soft: #7C9CFF;     /* traits sur fond encre */
  --blue-mist: #E4EBFF;     /* aplats légers */
  --ink: #14141A;           /* encre */
  --ink-2: #2A2B33;
  --paper: #F5F7FC;         /* fond papier bleuté */
  --white: #FFFFFF;
  --grey: #555A66;          /* texte secondaire — 6,6:1 sur papier */
  --grey-on-ink: #A9AEBC;   /* texte secondaire sur encre — 8:1 */
  --line: rgba(17, 73, 254, .14);
  --line-strong: rgba(17, 73, 254, .32);
  --rule: rgba(20, 20, 26, .14);
  --todo-fg: #A33B00;
  --todo-bg: #FFF1E6;
  --todo-line: #F07A2A;

  /* Polices */
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Échelle typographique — téléphone → ordinateur */
  --fs-hero: clamp(2.5rem, 1.55rem + 4.6vw, 6rem);       /* 40–44 px → 96 px */
  --fs-h2: clamp(1.875rem, 1.3rem + 2.6vw, 3.75rem);     /* 30–31 px → 60 px */
  --fs-h3: clamp(1.25rem, 1.08rem + .75vw, 1.75rem);     /* 20 px → 28 px */
  --fs-lead: clamp(1.125rem, 1.02rem + .5vw, 1.375rem);  /* 18 px → 22 px */
  --fs-body: clamp(1rem, .97rem + .15vw, 1.0625rem);     /* 16 px → 17 px */
  --fs-small: .9375rem;                                  /* 15 px — légendes */
  --fs-label: .8125rem;                                  /* 13 px — étiquettes mono */
  --fs-giant: clamp(4.5rem, 2.5rem + 10vw, 12rem);

  /* Espacement (base 4) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --section-y: clamp(72px, 9vw, 152px);
  --header-h: 64px;
  --maxw: 1320px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.022em;
  margin: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
  font-variation-settings: "opsz" 96;
}
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.012em; }
strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, .site-footer :focus-visible, .menu :focus-visible { outline-color: var(--blue-soft); }

.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: var(--s3) var(--s4);
}
.skip:focus { top: var(--s3); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding-block: var(--section-y); position: relative; }
.on-ink { background: var(--ink); color: var(--white); }
.on-blue { background: var(--blue); color: var(--white); }

/* ---------- 3. Typographie utilitaire ---------- */
.eyebrow, .label {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: var(--s3); color: var(--blue-deep); margin-bottom: var(--s5); }
.on-ink .eyebrow, .on-blue .eyebrow { color: var(--blue-soft); }
.on-blue .eyebrow { color: var(--white); opacity: .85; }
.display { font-size: var(--fs-hero); line-height: .98; letter-spacing: -.03em; }
.h2 { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.on-ink .lead { color: #D6D9E2; }
.on-blue .lead { color: var(--white); }
.muted { color: var(--grey); }
.on-ink .muted { color: var(--grey-on-ink); }
.small { font-size: var(--fs-small); }
.mono { font-family: var(--f-mono); }
.blue { color: var(--blue); }
.measure { max-width: 62ch; }

/* Le « trait de cote » — signature graphique qui ouvre chaque chapitre */
.cote {
  display: flex; align-items: center; gap: var(--s3);
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue-deep); margin-bottom: var(--s5);
}
.cote::before, .cote::after {
  content: ""; height: 11px; border-left: 1px solid currentColor;
}
.cote span.cote__line { flex: 0 1 72px; height: 1px; background: currentColor; opacity: .7; }
.on-ink .cote { color: var(--blue-soft); }
.on-blue .cote { color: var(--white); }

/* Repère ⟦À COMPLÉTER⟧ — orange, visible, jamais confondu avec du contenu */
.todo {
  display: inline; font-family: var(--f-mono); font-size: .875em; font-weight: 500;
  color: var(--todo-fg); background: var(--todo-bg);
  border: 1px dashed var(--todo-line); padding: .1em .4em; border-radius: 2px;
  overflow-wrap: anywhere; letter-spacing: 0; text-transform: none;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- 4. Boutons & liens d'action ---------- */
.btn {
  --bg: var(--blue); --fg: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 52px; padding: 14px 22px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-text); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color .25s var(--ease);
}
.btn::before, .btn::after { /* coins de cote */
  content: ""; position: absolute; width: 8px; height: 8px; border: 1.5px solid var(--bg);
  transition: transform .35s var(--ease);
}
.btn::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.btn::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.btn:hover { background: var(--blue-deep); }
.btn:hover::before { transform: translate(-3px, -3px); }
.btn:hover::after { transform: translate(3px, 3px); }
.btn--ink { --bg: var(--ink); }
.btn--ink:hover { background: #000; }
.btn--white { --bg: var(--white); --fg: var(--blue-deep); }
.btn--white:hover { background: var(--blue-mist); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px; font-weight: 600; color: var(--blue-deep);
  text-decoration: none; border-bottom: 1px solid currentColor; padding-top: 4px;
}
.link-arrow:hover { color: var(--blue); }
.on-ink .link-arrow, .on-blue .link-arrow { color: var(--white); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); margin-top: var(--s6); }

/* ---------- 5. En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  color: var(--ink);
}
/* Le flou est porté par un pseudo-élément : l'en-tête ne crée jamais
   de bloc conteneur pour un élément position: fixed. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(245, 247, 252, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: opacity .3s var(--ease);
}
.site-header__in {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}
.brand {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap;
}
.brand__caret {
  display: inline-block; width: .5em; height: 1em; margin-left: 3px; background: var(--blue);
  transform: translateY(.08em);
}
@media (prefers-reduced-motion: no-preference) {
  .brand__caret { animation: caret 1.1s steps(1) infinite; }
}
@keyframes caret { 50% { opacity: 0; } }
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}
.nav { display: none; }
.lang { display: none; }
.header-cta { display: none; }

.burger {
  position: relative; display: inline-flex; align-items: center; gap: var(--s2);
  min-width: 48px; min-height: 48px; padding: 0 var(--s2) 0 var(--s3); margin-right: calc(var(--s2) * -1);
  background: none; border: 0; cursor: pointer;
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase;
}
.burger__icon { position: relative; width: 22px; height: 14px; }
.burger__icon::before, .burger__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger__icon::before { top: 2px; }
.burger__icon::after { top: 10px; }
.burger[aria-expanded="true"] .burger__icon::before { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__icon::after { top: 6px; transform: rotate(-45deg); }
.burger .when-open { display: none; }
.burger[aria-expanded="true"] .when-open { display: inline; }
.burger[aria-expanded="true"] .when-closed { display: none; }

html.menu-open { overflow: hidden; }
html.menu-open .site-header { color: var(--white); }
html.menu-open .site-header::before { opacity: 0; }
html.menu-open .progress { opacity: 0; }

/* Menu plein écran — enfant direct de <body> */
.menu {
  position: fixed; inset: 0; z-index: 55; height: 100vh; height: 100dvh;
  background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 8px) var(--gutter) max(20px, env(safe-area-inset-bottom));
  visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s linear .3s;
  background-image:
    linear-gradient(var(--ink) 0 0),
    linear-gradient(rgba(124, 156, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 156, 255, .08) 1px, transparent 1px);
  background-size: 0 0, 32px 32px, 32px 32px;
}
.menu[data-open="true"] { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.menu__list { display: flex; flex-direction: column; }
.menu__list a {
  display: flex; align-items: baseline; gap: var(--s3);
  min-height: 44px; padding-block: clamp(2px, .8vh, 8px);
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.5rem, 4.6vh, 2.5rem); line-height: 1.1;
  text-decoration: none; color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.menu__list a .label { color: var(--blue-soft); font-size: var(--fs-label); min-width: 2.2em; }
.menu__list a[aria-current="page"] { color: var(--blue-soft); }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s4); }
.menu__lang { display: flex; gap: var(--s2); }
.menu__lang a, .lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  font-family: var(--f-mono); font-size: var(--fs-label); text-decoration: none; letter-spacing: .06em;
}
.menu__lang a[aria-current="true"] { color: var(--blue-soft); text-decoration: underline; }
.menu__mail { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--grey-on-ink); }

@media (min-width: 1180px) {
  .burger, .menu { display: none; }
  .nav { display: flex; align-items: center; gap: var(--s1); }
  .nav a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px;
    font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--ink-2);
  }
  .nav a::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px;
    background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease);
  }
  .nav a:hover::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { color: var(--blue-deep); font-weight: 600; }
  .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .lang { display: flex; gap: 0; border-left: 1px solid var(--rule); padding-left: var(--s2); }
  .lang a { color: var(--grey); }
  .lang a[aria-current="true"] { color: var(--ink); font-weight: 600; }
  .header-cta { display: inline-flex; min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
  .header-cta::before, .header-cta::after { display: none; }
  .header-right { display: flex; align-items: center; gap: var(--s4); }
}

/* ---------- 6. Barre d'action au pouce (mobile) ---------- */
.dock {
  position: fixed; left: var(--s4); right: var(--s4); z-index: 40;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateY(160%); transition: transform .4s var(--ease);
}
.dock.is-visible { transform: none; }
.dock .btn { width: 100%; box-shadow: 0 10px 30px -10px rgba(17, 73, 254, .55); }
html.menu-open .dock { transform: translateY(160%); }
body.has-dock { padding-bottom: 84px; }
@media (min-width: 900px) {
  .dock { display: none; }
  body.has-dock { padding-bottom: 0; }
}

/* ---------- 7. Titres de page (chapitres) ---------- */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(40px, 8vw, 112px));
  padding-bottom: clamp(40px, 6vw, 88px);
  border-bottom: 1px solid var(--rule);
}
.page-hero__num {
  font-family: var(--f-mono); font-weight: 400; color: transparent;
  -webkit-text-stroke: 1px var(--blue); font-size: var(--fs-giant); line-height: .8;
  letter-spacing: -.04em; margin-bottom: var(--s5); user-select: none;
}
.page-hero .display { max-width: 14ch; }
.page-hero .lead { margin-top: var(--s5); }
@media (min-width: 900px) {
  .page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s8); align-items: end; }
  .page-hero__num { margin-bottom: 0; text-align: right; order: 2; }
}

/* Titres qui se composent mot à mot */
.split .w { display: inline-block; max-width: 100%; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .wi { display: inline-block; max-width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .motion .split .wi { transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 80ms); }
}
@keyframes rise { to { transform: none; } }

/* ---------- 8. ACCUEIL — bandeau ---------- */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(28px, 5vw, 64px);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 45% at 92% 8%, rgba(17, 73, 254, .30), transparent 70%),
    radial-gradient(40% 30% at 70% 0%, rgba(124, 156, 255, .35), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(var(--line-strong) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(90deg, var(--line-strong) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--paper);
}
.hero__gl { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__gl.is-ready { opacity: 1; }
.hero__fade { position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1;
  background: linear-gradient(to top, var(--paper) 30%, rgba(245, 247, 252, 0)); pointer-events: none; }
.hero .display { max-width: 11ch; }
.hero .lead { margin-top: var(--s5); }
.hero__ruler { margin-top: var(--s7); }

/* La règle J0 → J+10 */
.ruler { position: relative; width: 100%; color: var(--blue-deep); }
.ruler svg { width: 100%; height: auto; overflow: visible; }
.ruler text { font-family: var(--f-mono); font-size: 12px; fill: currentColor; }
.facts { display: grid; gap: var(--s4); margin-top: var(--s5); }
.facts div { display: grid; grid-template-columns: 5.2rem 1fr; align-items: baseline; gap: var(--s3); border-top: 1px solid var(--rule); padding-top: var(--s3); }
.facts dt { font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--blue); letter-spacing: -.02em; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
  .facts div { grid-template-columns: 1fr; gap: var(--s2); }
  .facts dt { font-size: clamp(2rem, 1.2rem + 2vw, 3rem); }
}
@media (min-width: 1024px) {
  .hero__top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: var(--s8); align-items: end; }
  .hero .actions { margin-top: 0; flex-direction: column; align-items: flex-start; }
}

/* ---------- 9. ACCUEIL — le problème (barres de temps) ---------- */
.problem__head { display: grid; gap: var(--s5); }
@media (min-width: 960px) { .problem__head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s8); align-items: end; } }
.bars { margin-top: clamp(40px, 6vw, 80px); display: grid; gap: var(--s6); --p: 1; }
.bar__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s4); margin-bottom: var(--s3); }
.bar__name { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-h3); }
.bar__data { font-family: var(--f-mono); font-size: var(--fs-small); color: var(--grey); }
.bar__track { position: relative; height: 44px; background: var(--white); border: 1px solid var(--rule); }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * var(--p)); transition: width .1s linear; }
.bar--them .bar__fill { background: var(--ink); }
.bar--them .bar__hatch { position: absolute; inset: 0 auto 0 calc(var(--from)); width: calc((var(--to) - var(--from)) * var(--p));
  background: repeating-linear-gradient(-45deg, var(--ink) 0 2px, transparent 2px 8px); opacity: .55; }
.bar--us .bar__fill { background: var(--blue); }
.bar__tick { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--blue-deep); left: var(--at); }
.bar__tick span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; font-family: var(--f-mono); font-size: 12px; white-space: nowrap; color: var(--blue-deep); }
.axis { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--grey); margin-top: var(--s5); border-top: 1px solid var(--rule); padding-top: var(--s2); }
.axis span:not(:first-child):not(:last-child) { display: none; }
@media (min-width: 640px) { .axis span:not(:first-child):not(:last-child) { display: inline; } }

/* ---------- 10. ACCUEIL — le chantier (scène pilotée au défilement) ----------
   Le script écrit sur .chantier__stage des variables de 0 à 1 :
   --g grille · --w fil de fer · --f contenu · --toast lien prêt · --ph téléphone · --sc défilement interne
   --pin1..3 pastilles · --o1..3 / --od / --bn carte de remarque · --c1..3 corrections · --L en ligne · --S résultat Google
   Sans script (ou mouvement réduit) : valeurs par défaut = le site fini, en ligne. */
.chantier { position: relative; background: var(--white); border-block: 1px solid var(--rule); }
.chantier__intro { padding-top: var(--section-y); }
.chantier__stage {
  padding-block: var(--s7) var(--section-y);
  --p: 1; --g: 0; --w: 1; --f: 1; --toast: 0; --ph: 1; --sc: 0;
  --pin1: 0; --pin2: 0; --pin3: 0; --o1: 0; --o2: 0; --o3: 0; --od: 0; --bn: 0;
  --c1: 1; --c2: 1; --c3: 1; --L: 1; --S: 1;
}
.chantier__steps { display: grid; gap: var(--s5); }
.chantier__step { border-top: 1px solid var(--rule); padding-top: var(--s4); }
.chantier__step .label { color: var(--blue-deep); display: block; margin-bottom: var(--s2); }
.chantier__step h3 { margin-bottom: var(--s2); }
.chantier__day, .chantier__bar { display: none; }
.chantier__device { margin-top: var(--s7); }
@media (min-width: 960px) {
  .chantier__stage-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s8); align-items: center; }
  .chantier__device { margin-top: 0; }
}

/* — Version animée : récit épinglé — */
.motion .chantier__stage { height: 520vh; height: 520svh; padding: 0; }
.motion .chantier__sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); padding-block: var(--s4) var(--s5); }
.motion .chantier__stage-in { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s4); }
.motion .chantier__day { display: flex; align-items: baseline; gap: var(--s3); margin: 0; font-family: var(--f-mono); color: var(--blue); }
.motion .chantier__day b { font-weight: 500; font-size: clamp(2.25rem, 1.5rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; min-width: 3.2ch; }
.motion .chantier__bar { display: block; position: relative; height: 2px; margin-top: var(--s3); background: var(--rule); overflow: hidden; }
.chantier__bar span { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(var(--p)); }
.motion .chantier__steps { position: relative; display: block; min-height: 7.2em; margin-top: var(--s3); }
.motion .chantier__step { position: absolute; inset: 0 0 auto; border: 0; padding: 0; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.motion .chantier__step.is-active { opacity: 1; transform: none; }
.motion .chantier__step .label { display: none; }
.motion .chantier__step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.motion .chantier__step p { font-size: .9375rem; line-height: 1.45; color: var(--ink-2); margin: 0; max-width: 46ch; }
.motion .chantier__device { margin: 0; min-height: 0; display: flex; justify-content: center; align-items: center; }
/* La barre d'action au pouce ne recouvre pas la scène */
html.in-chantier .dock { transform: translateY(160%); }

@media (min-width: 960px) {
  .motion .chantier__sticky { padding-block: var(--s6); }
  .motion .chantier__stage-in { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); grid-template-rows: minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
  .motion .chantier__bar { display: none; }
  .motion .chantier__steps { min-height: 0; display: grid; margin-top: var(--s5); padding-left: 26px; }
  .motion .chantier__steps::before, .motion .chantier__steps::after { content: ""; position: absolute; left: 5px; top: 14px; bottom: 14px; width: 2px; background: var(--rule); }
  .motion .chantier__steps::after { background: var(--blue); transform-origin: top; transform: scaleY(var(--p)); }
  .motion .chantier__step { position: relative; inset: auto; padding: 9px 0; opacity: .42; transform: none; transition: opacity .35s var(--ease); }
  .motion .chantier__step::before { content: ""; position: absolute; left: -26px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--rule); transition: border-color .3s, background-color .3s; z-index: 1; }
  .motion .chantier__step.is-done::before, .motion .chantier__step.is-active::before { border-color: var(--blue); background: var(--blue); }
  .motion .chantier__step.is-active::before { background: var(--white); box-shadow: 0 0 0 5px rgba(17, 73, 254, .14); }
  .motion .chantier__step.is-active, .motion .chantier__step.is-done { opacity: 1; }
  .motion .chantier__step.is-done h3 { color: var(--grey); }
  .motion .chantier__step .label { display: block; font-size: 12px; margin-bottom: 2px; }
  .motion .chantier__step h3 { font-size: 1.2rem; margin: 0; }
  .motion .chantier__step p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .35s var(--ease), margin .35s var(--ease); }
  .motion .chantier__step.is-active p { max-height: 9em; opacity: 1; margin-top: 6px; }
}

/* Petits téléphones : on garde le titre de l'étape, le téléphone prend la place du paragraphe */
@media (max-width: 959px) and (max-height: 720px) {
  .motion .chantier__step p { display: none; }
  .motion .chantier__steps { min-height: 2.8em; }
}

/* — L'appareil — */
.build { position: relative; width: 100%; display: flex; justify-content: center; }
.build__win {
  position: relative; display: flex; flex-direction: column;
  width: min(100%, 300px); aspect-ratio: 9 / 18.6;
  background: var(--ink); border-radius: 36px; padding: 9px;
  box-shadow: 0 40px 80px -40px rgba(20, 20, 26, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.motion .build { height: 100%; }
.motion .build__win { height: 100%; width: auto; max-width: 100%; }
.build__win { container: win / inline-size; }
@container win (max-width: 210px) { .build__ex { display: none; } .build__bar { padding: 0 10px; } }
.build__win::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 calc(var(--L) * 5px) rgba(31, 157, 85, .22); opacity: calc(var(--L) * (1 - var(--S) * .7)); }
.build__bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; background: var(--white); border-radius: 28px 28px 0 0; font: 500 10px/1 var(--f-mono); color: var(--grey); border-bottom: 1px solid var(--rule); }
.build__dots { display: none; }
.build__url { flex: 1; min-width: 0; display: grid; overflow: hidden; height: 1.3em; align-items: center; }
.u-prev, .u-live { grid-area: 1 / 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-prev { opacity: calc(1 - var(--L)); transform: translateY(calc(var(--L) * -110%)); }
.u-live { display: inline-flex; align-items: center; gap: 4px; color: #17804A; font-weight: 600; opacity: var(--L); transform: translateY(calc((1 - var(--L)) * 110%)); }
.u-live svg { width: 10px; height: 10px; flex: none; }
.build__ex { flex: none; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); border: 1px solid var(--rule); padding: 3px 5px; border-radius: 3px; }
.build__screen { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--white); border-radius: 0 0 28px 28px; container-type: inline-size; isolation: isolate; }

/* Grille de départ et curseur */
.build__grid { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 5cqw 5cqw; background-position: center top;
  transform-origin: top; transform: scaleY(var(--g)); opacity: calc(var(--g) * (1 - var(--f) * .9)); }
.build__grid::before { content: ""; position: absolute; inset: 0 5%;
  background: repeating-linear-gradient(90deg, rgba(17, 73, 254, .045) 0 calc(100% / 6 - 1.6cqw), transparent calc(100% / 6 - 1.6cqw) calc(100% / 6)); }
.build__caret { position: absolute; z-index: 2; left: 5%; top: 9cqw; width: 3px; height: 6cqw; max-height: 26px; background: var(--blue); opacity: clamp(0, 1 - var(--w) * 6, 1); }
@media (prefers-reduced-motion: no-preference) { .motion .build__caret { animation: caret 1.05s steps(1) infinite; } }

/* Le site d'exemple : une fiduciaire (Atrium) */
.bsite {
  --bm-ink: #13233F; --bm-brown: #56607A; --bm-rule: rgba(19, 35, 63, .12); --bm-accent: #13233F; --bm-gold: #B08D57; --bm-cream: #F7F6F2;
  position: absolute; inset: 0; z-index: 1; padding: 0 5% 6%;
  display: flex; flex-direction: column; gap: 4.4cqw;
  font-family: var(--f-text); font-size: 3.6cqw; color: var(--bm-ink);
  transform: translateY(calc(var(--sc) * -14%));
}
.bsite::before { content: ""; position: absolute; inset: 0 0 -40%; z-index: -1; background: var(--bm-cream); opacity: var(--f); }
.pc { position: relative; --lw: clamp(0, var(--w) * 6 - var(--i) + 1, 1); --lf: clamp(0, var(--f) * 6 - var(--i) + 1, 1); }
/* Squelette : apparaît avec le fil de fer, puis s'efface de gauche à droite pour révéler le contenu */
.pc::before { content: ""; position: absolute; inset: -.6cqw; z-index: 2; pointer-events: none; border-radius: 4px;
  background: #E9EEFC; clip-path: inset(0 calc((1 - var(--lw)) * 100%) 0 calc(var(--lf) * 100%)); }
/* Fil de fer : contour pointillé et étiquette, tracés de gauche à droite */
.pc::after { content: attr(data-w); position: absolute; inset: -.6cqw; z-index: 3; pointer-events: none; border-radius: 4px;
  border: 1.5px dashed var(--blue); padding: .6cqw 1cqw;
  font: 500 max(8px, 2.2cqw)/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--blue);
  clip-path: inset(0 calc((1 - var(--lw)) * 100%) 0 0); opacity: calc(1 - var(--lf)); }

/* Le contenu de chaque bloc apparaît de gauche à droite, en même temps que le squelette s'efface */
.pc > :not(.pin) { clip-path: inset(-3px calc((1 - var(--lf)) * 100%) -3px -3px); }
.bs-ctaw { display: inline-block; align-self: flex-start; }
.bs-nav { display: flex; align-items: center; justify-content: space-between; padding: 4cqw 0 3cqw; border-bottom: 1px solid rgba(19, 35, 63, calc(.12 * var(--lf))); }
.bs-logo { display: inline-flex; align-items: center; gap: .45em; font-family: var(--f-text); font-weight: 700; font-size: 4.6cqw; color: var(--bm-ink); letter-spacing: .14em; text-transform: uppercase; }
.bs-logo i { width: .8em; height: .8em; border: 2px solid var(--bm-gold); transform: rotate(45deg); }
.bs-links { display: none; gap: 2.6cqw; color: var(--bm-brown); }
.bs-burger { font: 500 2.8cqw/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--bm-brown); }
.bs-hero { display: grid; gap: 4cqw; }
.bs-img { aspect-ratio: 4 / 3; border-radius: 2cqw; }
.bs-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.bs-img .v2 { clip-path: circle(calc(var(--c2) * 150%) at 30% 30%); }
.bs-title { display: grid; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 7.6cqw; line-height: 1.06; letter-spacing: -.015em; }
.bs-title .v1, .bs-title .v2 { grid-area: 1 / 1; }
.bs-title .v1 { opacity: calc(1 - var(--c1)); filter: blur(calc(var(--c1) * 4px)); }
.bs-title .v2 { opacity: var(--c1); filter: blur(calc((1 - var(--c1)) * 4px)); }
.bs-sub { margin: 2.4cqw 0 3.6cqw; font-size: 3.5cqw; color: var(--bm-brown); }
.bs-cta { display: inline-block; padding: 2.4cqw 4.4cqw; border-radius: .8cqw; background: var(--bm-accent); color: #fff; font-weight: 600; font-size: 3.3cqw; }
.bs-info { display: flex; flex-wrap: wrap; align-items: center; gap: 1.8cqw 4cqw; padding: 2.8cqw 0; border-block: 1px solid rgba(19, 35, 63, calc(.12 * var(--lf))); font: 500 3.1cqw/1.3 var(--f-mono); color: var(--bm-brown); }
/* Correction n°3 : une pastille verte bien visible, qui « pousse » à sa place */
.bs-sat { display: inline-flex; align-items: center; gap: .4em; max-width: calc(var(--c3) * 40ch); overflow: hidden; white-space: nowrap;
  opacity: var(--c3); transform: scale(calc(.85 + .15 * var(--c3))); transform-origin: left center;
  padding: .3em calc(var(--c3) * .75em); border-radius: 99px; background: #E2F4E9; color: #13693D; font-weight: 600;
  box-shadow: 0 0 0 calc((1 - var(--L)) * var(--c3) * 3px) rgba(31, 157, 85, .25); }
.bs-sat::before { content: ""; flex: none; width: .55em; height: .55em; border-radius: 50%; background: #1F9D55; }
.bs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6cqw; }
.bs-card { margin: 0; }
.bs-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.6cqw; }
.bs-card figcaption { margin-top: 1.4cqw; font-weight: 600; font-size: 2.9cqw; line-height: 1.25; color: var(--bm-ink); }
.bs-card figcaption small { display: block; font-weight: 400; color: var(--bm-brown); }

/* Mise en page « ordinateur » quand l'écran est large */
@container (min-width: 440px) {
  .bsite { font-size: 1.6cqw; gap: 2.8cqw; padding: 0 5% 4%; }
  .bs-nav { padding: 2.2cqw 0 1.8cqw; }
  .bs-logo { font-size: 1.9cqw; }
  .bs-links { display: flex; font-size: 1.45cqw; }
  .bs-burger { display: none; }
  .bs-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4cqw; align-items: center; }
  .bs-img { order: 2; aspect-ratio: 4 / 2.85; border-radius: 1cqw; }
  .bs-title { font-size: 4.3cqw; }
  .bs-sub { margin: 1.6cqw 0 2.4cqw; font-size: 1.65cqw; }
  .bs-cta { padding: 1.1cqw 2.2cqw; font-size: 1.45cqw; }
  .bs-info { gap: 1cqw 3cqw; padding: 1.3cqw 0; font-size: 1.4cqw; }
  .bs-cards { gap: 2cqw; }
  .bs-card img { aspect-ratio: 16 / 9; border-radius: .8cqw; }
  .bs-card figcaption { margin-top: .7cqw; font-size: 1.4cqw; }
  .pc::after { font-size: max(8px, 1.05cqw); padding: .4cqw .6cqw; }
  .pc::before, .pc::after { inset: -.4cqw; }
}

/* Pastilles de remarque — bleues, puis vertes une fois corrigé */
.pin { position: absolute; z-index: 4; display: grid; place-items: center; width: max(20px, 6.4cqw); aspect-ratio: 1; border-radius: 50%;
  background: var(--blue); color: #fff; font: 600 max(10px, 3cqw)/1 var(--f-mono);
  box-shadow: 0 0 0 max(3px, 1.2cqw) rgba(17, 73, 254, .2), 0 6px 14px -6px rgba(20, 20, 26, .5);
  opacity: var(--pv); transform: scale(calc(.3 + .7 * var(--pv))); }
.pin b { font-weight: 600; }
.pin i { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #1F9D55; opacity: var(--pc); transform: scale(calc(.5 + .5 * var(--pc))); }
.pin i svg { width: 58%; height: 58%; color: #fff; }
.pin[data-k="1"] { --pv: var(--pin1); --pc: var(--c1); top: -2.6cqw; right: 2cqw; }
.pin[data-k="2"] { --pv: var(--pin2); --pc: var(--c2); top: 3cqw; left: 3cqw; }
.pin[data-k="3"] { --pv: var(--pin3); --pc: var(--c3); top: 50%; right: 1cqw; margin-top: calc(max(20px, 6.4cqw) / -2); }
@container (min-width: 440px) {
  .pin { width: max(20px, 3cqw); font-size: max(10px, 1.4cqw); box-shadow: 0 0 0 max(3px, .6cqw) rgba(17, 73, 254, .2), 0 6px 14px -6px rgba(20, 20, 26, .5); }
  .pin[data-k="1"] { top: -1.6cqw; right: 6cqw; }
  .pin[data-k="2"] { top: 1.6cqw; left: 1.6cqw; }
  /* Sur grand écran, le téléphone recouvre la droite de la fenêtre : la pastille 3 passe à gauche */
  .pin[data-k="3"] { top: -1.5cqw; right: auto; left: 22cqw; margin-top: 0; }
}

/* Carte de remarque (comme dans MM Brief) */
.bnote { position: absolute; z-index: 5; left: 4%; right: 4%; bottom: 4%; display: grid; padding: 3cqw 3.6cqw; border-radius: 2cqw;
  background: var(--ink); color: #fff; font-size: max(11px, 3.4cqw); line-height: 1.35;
  box-shadow: 0 20px 40px -20px rgba(20, 20, 26, .7);
  opacity: var(--bn); transform: translateY(calc((1 - var(--bn)) * 14px)); }
.bnote__m { grid-area: 1 / 1; margin: 0; }
.bnote__m .label { display: block; margin-bottom: .35em; color: var(--blue-soft); font-size: max(9px, 2.5cqw); }
.bnote__m[data-k="1"] { opacity: var(--o1); } .bnote__m[data-k="2"] { opacity: var(--o2); } .bnote__m[data-k="3"] { opacity: var(--o3); }
.bnote__done { opacity: var(--od); display: flex; align-items: center; gap: .6em; font-weight: 600; }
.bnote__done i { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: #1F9D55; flex: none; }
.bnote__done svg { width: 62%; height: 62%; color: #fff; }
@container (min-width: 440px) {
  .bnote { left: 3%; right: auto; bottom: 4%; width: 40%; padding: 1.5cqw 1.8cqw; border-radius: 1cqw; font-size: max(11px, 1.55cqw); }
  .bnote__m .label { font-size: max(9px, 1.1cqw); }
}

/* « Votre site est prêt » */
.btoast { position: absolute; z-index: 5; top: 4%; left: 50%; width: max-content; max-width: 90%;
  display: flex; flex-direction: column; gap: .25em; padding: 2.6cqw 3.4cqw; border-radius: 2cqw;
  background: var(--white); border-left: 3px solid #1F9D55; box-shadow: 0 18px 40px -18px rgba(20, 20, 26, .55), 0 0 0 1px var(--rule);
  font-size: max(11px, 3.3cqw); line-height: 1.25; color: var(--ink);
  opacity: var(--toast); transform: translate(-50%, calc((1 - var(--toast)) * -18px)) scale(calc(.94 + .06 * var(--toast))); }
.btoast span { color: var(--blue-deep); font-weight: 600; }
@container (min-width: 440px) {
  .btoast { flex-direction: row; gap: 1.4em; align-items: center; padding: 1.3cqw 2cqw; border-radius: 1cqw; font-size: max(11px, 1.6cqw); }
}

/* Badge « En ligne » */
.blive { position: absolute; z-index: 5; top: 19cqw; right: 8%; display: inline-flex; align-items: center; gap: .5em;
  padding: .55em .8em; border-radius: 99px; background: #1F9D55; color: #fff; font: 600 max(10px, 2.8cqw)/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase;
  opacity: var(--L); transform: scale(calc(.7 + .3 * var(--L))); box-shadow: 0 10px 24px -10px rgba(31, 157, 85, .8); }
.blive i { width: .55em; height: .55em; border-radius: 50%; background: #fff; }
@media (prefers-reduced-motion: no-preference) { .motion .blive i { animation: livePulse 1.6s ease-in-out infinite; } }
@keyframes livePulse { 50% { opacity: .35; } }
@container (min-width: 440px) { .blive { top: 11cqw; right: 7%; font-size: max(10px, 1.3cqw); } }

/* Téléphone (grand écran seulement) et résultat Google */
.build__phone { display: none; }
.bserp { position: absolute; z-index: 6; left: 50%; bottom: 5%; width: min(88%, 290px);
  display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--white);
  box-shadow: 0 24px 50px -22px rgba(20, 20, 26, .6), 0 0 0 1px var(--rule);
  font-size: 11.5px; line-height: 1.35; color: var(--grey);
  opacity: var(--S); transform: translate(-50%, calc((1 - var(--S)) * 24px)); }
.bserp__url { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10px; color: var(--ink-2); }
.bserp__url::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: #13233F; box-shadow: inset 0 0 0 3px #13233F, inset 0 0 0 5px #B08D57; }
.bserp b { font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--blue-deep); }

@media (min-width: 960px) {
  .build { display: block; padding: 0 5% 8% 0; }
  .motion .build { height: auto; }
  .build__win, .motion .build__win {
    width: min(100%, calc((100svh - var(--header-h) - 150px) * 1.5)); height: auto; aspect-ratio: 16 / 10.6;
    padding: 0; border-radius: 12px; background: #F1F3F8; box-shadow: 0 60px 110px -50px rgba(20, 20, 26, .5), 0 0 0 1px var(--rule);
    transform-origin: 50% 60%;
  }
  /* Pendant la construction, la fenêtre est légèrement inclinée ; elle se redresse quand le site est rempli */
  .motion .build__win { transform: perspective(1800px) rotateX(calc((1 - var(--f)) * 9deg)) rotateY(calc((1 - var(--f)) * -11deg)) scale(calc(.95 + .05 * var(--f))); }
  .build__bar { height: 38px; padding: 0 14px; gap: 12px; border-radius: 12px 12px 0 0; background: #F1F3F8; font-size: 11px; }
  .build__dots { display: inline-flex; gap: 6px; flex: none; }
  .build__dots i { width: 10px; height: 10px; border-radius: 50%; background: #D5D9E3; }
  .build__url { flex: 0 1 auto; width: min(60%, 420px); margin-inline: auto; padding: 0 12px; height: 24px; border-radius: 6px; background: var(--white); justify-items: center; }
  .u-prev, .u-live { line-height: 24px; }
  .build__ex { font-size: 9.5px; }
  .build__screen { border-radius: 0 0 12px 12px; }
  .js .build__phone { display: block; position: absolute; right: 0; bottom: 0; width: 23%; aspect-ratio: 9 / 18.6; padding: 6px; border-radius: 26px;
    background: var(--ink); box-shadow: 0 40px 70px -30px rgba(20, 20, 26, .65);
    opacity: var(--ph); transform: translateY(calc((1 - var(--ph)) * 70px)) rotate(calc((1 - var(--ph)) * 4deg)); }
  .build__phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 21px; background: var(--white); container-type: inline-size; isolation: isolate; }
  .build__phone-screen .bsite { padding-top: 6cqw; }
  .build__phone-screen .pin, .build__phone-screen .pc::before, .build__phone-screen .pc::after { display: none; }
  .bserp { left: 0; bottom: 3%; width: 46%; max-width: 380px; padding: 14px 18px; font-size: 12.5px; transform: translateY(calc((1 - var(--S)) * 30px)); }
  .bserp b { font-size: 16px; }
}

/* ---------- 11. Engagements (bande encre) ---------- */
.promises__list { margin-top: clamp(40px, 6vw, 80px); display: grid; }
.promise { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: var(--s4); padding-block: var(--s5); border-top: 1px solid rgba(255, 255, 255, .14); align-items: start; }
.promise__n { font-family: var(--f-mono); font-size: 2.75rem; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--blue-soft); }
.promise h3 { font-size: var(--fs-h3); margin-bottom: var(--s2); }
.promise p { color: var(--grey-on-ink); }
@media (min-width: 900px) {
  .promise { grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); padding-block: var(--s6); }
  .promise__n { font-size: 6rem; }
  .promise:nth-child(even) { margin-left: 12%; }
}

/* ---------- 12. Rail horizontal (formules sur l'accueil) ---------- */
.rail {
  display: flex; gap: var(--s4); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding: var(--s2) var(--gutter) var(--s5);
  scrollbar-width: thin; scrollbar-color: var(--blue) transparent;
}
.rail > * { scroll-snap-align: start; flex: 0 0 min(80%, 320px); }
.rail-hint { display: flex; align-items: center; gap: var(--s2); font-family: var(--f-mono); font-size: var(--fs-label); color: var(--grey); margin-top: var(--s5); }
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s3); min-height: 300px;
  padding: var(--s5); background: var(--white); border: 1px solid var(--rule); text-decoration: none;
}
.plan-card__price { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3rem); letter-spacing: -.03em; line-height: 1; }
.plan-card__price small { font-size: .45em; font-weight: 600; letter-spacing: 0; color: var(--grey); margin-right: .25em; }
.plan-card__name { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; color: var(--blue-deep); }
.plan-card p { color: var(--ink-2); }
.plan-card .link-arrow { margin-top: auto; align-self: flex-start; }
.plan-card--feature { background: var(--blue); color: var(--white); border-color: var(--blue); }
.plan-card--feature .plan-card__name, .plan-card--feature p, .plan-card--feature .plan-card__price small { color: var(--white); }
.plan-card--feature .link-arrow { color: var(--white); }
.plan-card__stamp { position: absolute; top: var(--s4); right: var(--s4); font-family: var(--f-mono); font-size: 11px; border: 1px solid currentColor; padding: 2px 6px; text-transform: uppercase; letter-spacing: .06em; }
@media (min-width: 1100px) {
  .rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; align-items: end; }
  .rail > * { flex: none; }
  .rail .plan-card--feature { min-height: 380px; }
  .rail-hint { display: none; }
}
.note-line { margin-top: var(--s6); padding: var(--s4) var(--s5); border-left: 3px solid var(--blue); background: var(--white); max-width: 70ch; }

/* ---------- 13. Concepts — mosaïque ---------- */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); margin-top: clamp(32px, 5vw, 64px); }
.tile { position: relative; display: block; text-decoration: none; color: inherit; min-width: 0; }
.tile:first-child { grid-column: 1 / -1; }
.tile__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-mist); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.03); }
.tile__tag { position: absolute; top: var(--s2); left: var(--s2); z-index: 1; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--white); color: var(--ink); padding: 3px 7px; border: 1px solid var(--ink); }
.tile__meta { padding-top: var(--s2); }
.tile__name { font-family: var(--f-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; display: flex; justify-content: space-between; gap: var(--s2); }
.tile__sector { font-size: var(--fs-small); color: var(--grey); }
.tile__desc { display: none; }
.tile:first-child .tile__name { font-size: var(--fs-h3); }
.tile:first-child .tile__desc { display: block; color: var(--ink-2); margin-top: var(--s1); }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
  .mosaic .tile { grid-column: span 4; }
  .mosaic .tile:nth-child(5n+1) { grid-column: span 7; }
  .mosaic .tile:nth-child(5n+2) { grid-column: span 5; margin-top: var(--s9); }
  .mosaic .tile__desc { display: block; color: var(--ink-2); margin-top: var(--s1); font-size: var(--fs-small); }
}
/* Révélation par masque */
@media (prefers-reduced-motion: no-preference) {
  .motion [data-mask] { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-in-out); }
  .motion [data-mask].is-in { clip-path: inset(0 0 0 0); }
  .motion [data-mask] img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
  .motion [data-mask].is-in img { transform: none; }
}
.chips { display: flex; gap: var(--s2); overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: var(--s1) var(--gutter) var(--s3); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); background: var(--white); border-radius: 999px; cursor: pointer; font-size: var(--fs-small); font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.tile[hidden] { display: none; }
.next-case { grid-column: 1 / -1; border: 1.5px dashed var(--todo-line); padding: var(--s5); background: var(--todo-bg); }

/* ---------- 14. Bande bleue « honnêteté » + équipe ---------- */
.honest { overflow: clip; }
.honest__grid { display: grid; gap: var(--s7); }
.honest__facts { display: grid; gap: 0; margin-top: var(--s6); }
.honest__facts li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--s3); padding-block: var(--s3); border-top: 1px solid rgba(255, 255, 255, .25); }
.honest__facts li::before { content: "→"; font-family: var(--f-mono); }
.team-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.person__portrait { aspect-ratio: 4 / 5; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .35); }
.person__portrait svg { width: 100%; height: 100%; }
.person__name { font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; line-height: 1.15; margin-top: var(--s3); }
.person__role { font-size: var(--fs-small); opacity: .9; margin-top: var(--s1); }
@media (min-width: 960px) { .honest__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s9); align-items: center; } }

/* ---------- 15. Appel final ---------- */
.final { position: relative; }
.final__box { position: relative; padding: clamp(28px, 6vw, 88px) clamp(20px, 6vw, 88px); background: var(--white); border: 1px solid var(--rule); }
.final__box::before, .final__box::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--blue); }
.final__box::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.final__box::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }
.final__mail { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-mono); font-size: var(--fs-small); word-break: break-all; }
@media (min-width: 960px) { .final__box { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s8); align-items: end; } .final__box .actions { margin-top: 0; flex-direction: column; align-items: flex-start; } }

/* ---------- 16. MÉTHODE — frise horizontale ---------- */
.frise { position: relative; background: var(--ink); color: var(--white); overflow: clip; }
.frise__head { padding-top: var(--section-y); }
.frise__track {
  display: flex; gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: var(--s6) var(--gutter) var(--section-y); scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.frise__track::-webkit-scrollbar { display: none; }
.frise__panel { flex: 0 0 min(84%, 360px); scroll-snap-align: start; border-top: 2px solid var(--blue-soft); padding-top: var(--s5); position: relative; }
.frise__panel::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--blue); border: 2px solid var(--blue-soft); border-radius: 50%; }
.frise__day { font-family: var(--f-mono); font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); line-height: 1; color: var(--blue-soft); letter-spacing: -.04em; }
.frise__panel h3 { margin-block: var(--s4) var(--s3); }
.frise__panel p { color: #D6D9E2; }
.frise__ill { width: 100%; max-width: 220px; margin-top: var(--s5); color: var(--blue-soft); }
.frise__dots { display: flex; gap: var(--s2); padding-inline: var(--gutter); margin-top: calc(var(--section-y) * -1 + var(--s4)); padding-bottom: var(--section-y); }
.frise__dots span { width: 24px; height: 3px; background: rgba(255, 255, 255, .25); transition: background-color .3s; }
.frise__dots span.is-on { background: var(--blue-soft); }
.motion-h .frise__stage { height: 360vh; height: 360svh; }
.motion-h .frise__sticky { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.motion-h .frise__track { overflow: visible; scroll-snap-type: none; width: max-content; padding-bottom: var(--s6); will-change: transform; }
.motion-h .frise__panel { flex-basis: 420px; }
.motion-h .frise__dots { display: none; }

/* MM Brief — démonstration */
.brief { display: grid; gap: var(--s7); }
@media (min-width: 960px) { .brief { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s9); align-items: center; } }
.brief__frame { position: relative; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 30px 60px -40px rgba(20, 20, 26, .5); }
.brief__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 10px 14px; border-bottom: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; color: var(--grey); }
.brief__page { position: relative; padding: 18px; display: grid; gap: 12px; }
.brief__page .blk { border: 0; }
.brief__hero { height: 150px; background-size: cover; background-position: center top; position: relative; }
.brief__line { height: 10px; background: var(--rule); }
.brief__line--s { width: 60%; }
.brief__pin {
  position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; padding: 0;
}
.brief__pin span { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--white); font: 600 12px/28px var(--f-mono); text-align: center; box-shadow: 0 0 0 5px rgba(17, 73, 254, .22); transition: transform .3s var(--ease); }
.brief__pin[aria-expanded="true"] span { transform: scale(1.15); background: var(--ink); }
.brief__bubble { margin-top: var(--s4); background: var(--ink); color: var(--white); padding: var(--s4); min-height: 6.5em; }
.brief__bubble .label { color: var(--blue-soft); display: block; margin-bottom: var(--s2); }
.example-tag { font-family: var(--f-mono); font-size: 11px; border: 1px solid currentColor; padding: 2px 6px; text-transform: uppercase; letter-spacing: .06em; }

/* Paiement 50/50 */
.split-bar { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--s6); border: 1px solid var(--ink); }
.split-bar > div { padding: var(--s4); min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; }
.split-bar > div:first-child { background: var(--ink); color: var(--white); }
.split-bar b { font-family: var(--f-display); font-size: clamp(2.25rem, 1.6rem + 2.5vw, 4rem); line-height: 1; letter-spacing: -.03em; }

/* ---------- 17. FORMULES ---------- */
.fiches { display: grid; gap: var(--s4); margin-top: var(--s6); }
.fiche { background: var(--white); border: 1px solid var(--rule); padding: var(--s5); }
.fiche--feature { border: 2px solid var(--blue); }
.fiche__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: var(--s4); margin-bottom: var(--s4); }
.fiche__name { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-h3); }
.fiche__price { font-family: var(--f-display); font-weight: 700; font-size: 2rem; letter-spacing: -.03em; color: var(--blue); }
.fiche dl { display: grid; gap: var(--s2); margin: 0; }
.fiche dl div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s3); }
.fiche dt { color: var(--grey); font-size: var(--fs-small); }
.fiche dd { margin: 0; }
.compare { display: none; }
@media (min-width: 960px) {
  .fiches { display: none; }
  .compare { display: table; width: 100%; border-collapse: collapse; margin-top: var(--s7); background: var(--white); }
  .compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
  .compare thead th { position: sticky; top: var(--header-h); background: var(--white); z-index: 1; border-bottom: 2px solid var(--ink); }
  .compare thead th .fiche__price { display: block; font-size: 2.5rem; }
  .compare tbody th { font-weight: 500; color: var(--grey); width: 22%; font-size: var(--fs-small); }
  .compare .is-feature { background: rgba(17, 73, 254, .045); }
  .compare thead .is-feature { background: var(--blue); color: var(--white); }
  .compare thead .is-feature .fiche__price { color: var(--white); }
}
.bands { display: grid; gap: var(--s4); margin-top: var(--s7); }
.band { display: grid; gap: var(--s3); padding: var(--s5); border: 1px solid var(--ink); }
.band__price { font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; letter-spacing: -.02em; }
@media (min-width: 900px) { .bands { grid-template-columns: 1fr 1fr; } .band { padding: var(--s6); } }

/* Ticket d'options */
.ticket { position: relative; background: var(--white); padding: var(--s6) var(--s5); max-width: 560px; filter: drop-shadow(0 18px 30px rgba(20, 20, 26, .10)); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: radial-gradient(circle at 6px 0, transparent 6px, var(--white) 6.5px) 0 0 / 12px 12px repeat-x; }
.ticket::before { top: -12px; transform: rotate(180deg); }
.ticket::after { bottom: -12px; }
.ticket li { display: flex; align-items: baseline; gap: var(--s2); padding-block: 10px; }
.ticket li span:first-child { flex: 0 1 auto; }
.ticket li i { flex: 1 1 24px; border-bottom: 1.5px dotted var(--grey); transform: translateY(-4px); min-width: 16px; }
.ticket li b { flex: none; font-family: var(--f-mono); font-weight: 500; }
.options-grid { display: grid; gap: var(--s7); margin-top: var(--s7); }
@media (min-width: 960px) { .options-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.excluded li { padding-block: var(--s2); border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); }
.excluded li::before { content: "×"; font-family: var(--f-mono); color: var(--grey); }

/* ---------- 18. Modules interactifs ---------- */
.module { background: var(--white); border: 1px solid var(--rule); position: relative; }
.module__head { padding: var(--s5); border-bottom: 1px solid var(--rule); }
.module__body { display: grid; }
.module__controls { padding: var(--s5); display: grid; gap: var(--s5); }
.module__result { padding: var(--s5); background: var(--paper); border-top: 1px solid var(--rule); }
@media (min-width: 960px) {
  .module__head { padding: var(--s6) var(--s7); }
  .module__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .module__controls { padding: var(--s6) var(--s7); }
  .module__result { border-top: 0; border-left: 1px solid var(--rule); padding: var(--s6) var(--s7); }
  .module__sticky { position: sticky; top: calc(var(--header-h) + 24px); }
}
.peek { position: sticky; top: var(--header-h); z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: 10px var(--s5); background: var(--ink); color: var(--white); font-size: var(--fs-small); }
.peek b { font-family: var(--f-display); font-size: 1.25rem; white-space: nowrap; }
@media (min-width: 960px) { .peek { display: none; } }
.field { display: grid; gap: var(--s2); border: 0; padding: 0; margin: 0; min-width: 0; }
.field > legend, .field > label.field__label { font-weight: 600; padding: 0; margin-bottom: var(--s2); }
.field__hint { font-size: var(--fs-small); color: var(--grey); }
.stepper { display: inline-grid; grid-template-columns: 48px 72px 48px; border: 1px solid var(--ink); width: max-content; }
.stepper button { min-height: 48px; background: var(--white); border: 0; cursor: pointer; font-size: 1.25rem; }
.stepper button:hover { background: var(--blue-mist); }
.stepper input { width: 100%; min-height: 48px; border: 0; border-inline: 1px solid var(--ink); text-align: center; font-family: var(--f-mono); font-size: 1.0625rem; background: var(--white); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: var(--s2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); background: var(--white); cursor: pointer; font-size: var(--fs-small); font-weight: 500; }
.seg input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.switch { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s4); min-height: 48px; padding-block: var(--s2); border-top: 1px solid var(--rule); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #C9CEDA; transition: background-color .25s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transition: transform .25s var(--ease); }
.switch input:checked + .switch__ui { background: var(--blue); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--blue); outline-offset: 2px; }
.switch small { display: block; color: var(--grey); font-size: var(--fs-small); }
.range { width: 100%; accent-color: var(--blue); min-height: 44px; }
.result__formula { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; color: var(--blue-deep); }
.result__price { font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 2.2rem + 3vw, 4.75rem); letter-spacing: -.04em; line-height: 1; margin-block: var(--s2) var(--s4); font-variant-numeric: tabular-nums; }
.result__lines { display: grid; gap: 0; margin-block: var(--s4); }
.result__lines li { display: flex; justify-content: space-between; gap: var(--s3); padding-block: 8px; border-top: 1px solid var(--rule); font-size: var(--fs-small); }
.result__lines li b { font-family: var(--f-mono); font-weight: 500; white-space: nowrap; }
.result__lines li.is-total { border-top: 2px solid var(--ink); font-weight: 600; font-size: var(--fs-body); }
.disclaimer { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--grey); margin-top: var(--s4); }
.plan-sketch { display: flex; flex-wrap: wrap; gap: 4px; min-height: 40px; margin-block: var(--s4); }
.plan-sketch i { width: 22px; height: 28px; border: 1.5px solid var(--blue); background: linear-gradient(var(--blue) 0 0) 3px 4px / 12px 2px no-repeat, linear-gradient(var(--line-strong) 0 0) 3px 10px / 14px 1px no-repeat, linear-gradient(var(--line-strong) 0 0) 3px 14px / 10px 1px no-repeat, var(--white); }
.plan-sketch i.is-extra { border-style: dashed; }
.plan-sketch b { font: 500 11px/28px var(--f-mono); padding: 0 6px; border: 1.5px solid var(--ink); height: 28px; }
@media (prefers-reduced-motion: no-preference) { .plan-sketch i { animation: pop .35s var(--ease) both; } }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.cost-table { display: grid; gap: var(--s2); margin-top: var(--s4); }
.cost-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s3); align-items: baseline; padding: 12px; background: var(--white); border: 1px solid var(--rule); }
.cost-row.is-best { border: 2px solid var(--blue); }
.cost-row.is-out { opacity: .55; }
.cost-row__name { font-weight: 600; }
.cost-row__name small { display: block; font-weight: 400; color: var(--grey); font-size: var(--fs-small); }
.cost-row__v { font-family: var(--f-mono); text-align: right; white-space: nowrap; }
.cost-row__v small { display: block; font-size: 11px; color: var(--grey); }
.cost-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s3); padding: 0 12px; font-family: var(--f-mono); font-size: 11px; color: var(--grey); text-transform: uppercase; }
.chart { margin-top: var(--s5); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--f-mono); font-size: 11px; fill: var(--grey); }
.chart .legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: var(--fs-small); margin-top: var(--s3); }
.chart .legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart .legend i { width: 18px; height: 3px; display: inline-block; }
.bascule { margin-top: var(--s5); padding: var(--s4); background: var(--ink); color: var(--white); }
.bascule b { color: var(--blue-soft); }

/* ---------- 19. Coût réel — l'escalier des abonnements ---------- */
.socle { display: grid; gap: var(--s5); padding: var(--s6) var(--s5); border: 2px solid var(--ink); background: var(--white); }
.socle__price { font-family: var(--f-display); font-weight: 700; font-size: clamp(3.5rem, 2.5rem + 4vw, 6rem); letter-spacing: -.04em; line-height: .9; }
.socle__price small { font-size: .3em; letter-spacing: 0; }
@media (min-width: 900px) { .socle { grid-template-columns: auto minmax(0, 1fr); gap: var(--s8); align-items: center; padding: var(--s7); } }
.stairs { display: grid; gap: var(--s3); margin-top: var(--s7); }
.stair { padding: var(--s5); background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--blue); }
.stair:nth-child(2) { margin-left: 6%; }
.stair:nth-child(3) { margin-left: 12%; background: var(--ink); color: var(--white); border-color: var(--ink); border-left-color: var(--blue-soft); }
.stair__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.stair__price { font-family: var(--f-display); font-weight: 700; font-size: 2rem; letter-spacing: -.03em; }
.stair__price small { font-size: .5em; font-weight: 500; }
.stair ul li { padding-block: 4px; }
.stair ul li::before { content: "— "; color: var(--blue); }
.stair:nth-child(3) ul li::before { color: var(--blue-soft); }
@media (min-width: 960px) {
  .stairs { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: var(--s4); }
  .stair { margin-left: 0 !important; }
  .stair:nth-child(1) { min-height: 300px; } .stair:nth-child(2) { min-height: 360px; } .stair:nth-child(3) { min-height: 430px; }
}
.remise { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: var(--s6); }
.remise div { background: var(--white); padding: var(--s5) var(--s4); }
.remise b { display: block; font-family: var(--f-display); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem); letter-spacing: -.03em; color: var(--blue); line-height: 1; margin-bottom: var(--s2); }
.exit { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .exit { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.exit h3 { margin-bottom: var(--s3); }
.exit ul li { padding-block: 10px; border-top: 1px solid rgba(255, 255, 255, .16); }

/* ---------- 20. Agence — la carte et la frontière ---------- */
.mapstory { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 960px) { .mapstory { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s9); } }
.map { position: relative; width: 100%; max-width: 560px; margin-inline: auto; color: var(--ink); }
.map svg { width: 100%; height: auto; }
.map .route { stroke-dasharray: var(--len, 400); stroke-dashoffset: calc(var(--len, 400) * (1 - var(--p, 1))); }
.map text { font-family: var(--f-mono); font-size: 13px; }
.map .country { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; fill: var(--grey); }
.words { display: grid; gap: var(--s6); }
.word { display: grid; gap: var(--s3); border-top: 1px solid var(--rule); padding-top: var(--s4); }
.word__big { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 1.8rem + 6vw, 8rem); line-height: .9; letter-spacing: -.045em; color: var(--blue); overflow-wrap: anywhere; }
@media (min-width: 900px) { .word { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: var(--s8); } .word:nth-child(2) .word__big { padding-left: 8%; } .word:nth-child(3) .word__big { padding-left: 16%; } }
.team { display: grid; gap: var(--s7); margin-top: var(--s7); }
@media (min-width: 900px) { .team { grid-template-columns: 1fr 1fr; gap: var(--s8); } .team .person:nth-child(2) { margin-top: var(--s9); } }
.team .person__portrait { background: var(--white); border-color: var(--rule); max-width: 420px; }
.team .person__name { font-size: var(--fs-h3); }
.team .person__role { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; color: var(--blue-deep); margin-top: var(--s2); }
.team p { margin-top: var(--s3); max-width: 46ch; }
.story { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.3; letter-spacing: -.015em; max-width: 30ch; }
.story + p { margin-top: var(--s5); }

/* ---------- 21. Questions ---------- */
.faq { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .faq { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s9); } .faq__nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } .faq__nav .chips { flex-direction: column; align-items: flex-start; } .faq__nav .chip { border-radius: 0; border: 0; border-left: 2px solid var(--rule); background: none; padding-left: 14px; } }
.faq__nav a.chip { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.faq__group { scroll-margin-top: calc(var(--header-h) + 16px); }
.faq__group + .faq__group { margin-top: var(--s7); }
.faq__group > h2 { font-size: var(--fs-h3); margin-bottom: var(--s3); color: var(--blue-deep); }
.qa { border-top: 1px solid var(--rule); }
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: var(--s3); align-items: center; min-height: 56px; padding-block: var(--s3); cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.5rem; color: var(--blue); text-align: center; transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa__a { padding-bottom: var(--s5); max-width: 64ch; color: var(--ink-2); }
.qa__a ul li { padding-left: 1.2em; position: relative; }
.qa__a ul li::before { content: "—"; position: absolute; left: 0; color: var(--blue); }

/* ---------- 22. Contact ---------- */
.contact { display: grid; gap: var(--s8); }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--s9); } .contact__aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.form { display: grid; gap: var(--s5); }
.form__row { display: grid; gap: var(--s5); }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label.field__label, .form legend { font-weight: 600; font-size: var(--fs-body); }
.form .opt { font-weight: 400; color: var(--grey); font-size: var(--fs-small); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 1rem; line-height: 1.4;
  background: var(--white); border: 1px solid #9AA0AE; border-radius: 0; appearance: none; -webkit-appearance: none;
}
.select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.textarea { min-height: 150px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17, 73, 254, .25); }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s3); align-items: start; font-size: var(--fs-small); cursor: pointer; padding-block: var(--s2); }
.consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }
.steps-next li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--s3); padding-block: var(--s4); border-top: 1px solid var(--rule); }
.steps-next b { font-family: var(--f-mono); font-weight: 500; color: var(--blue); }
.form__status { font-weight: 600; }
[hidden] { display: none !important; }

/* ---------- 23. Pages légales ---------- */
.legal { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .legal { grid-template-columns: 220px minmax(0, 1fr); gap: var(--s9); } .legal__toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.legal__toc a { display: flex; align-items: center; min-height: 44px; font-family: var(--f-mono); font-size: var(--fs-label); text-decoration: none; color: var(--grey); border-top: 1px solid var(--rule); }
.legal section { scroll-margin-top: calc(var(--header-h) + 16px); padding-bottom: var(--s6); }
.legal h2 { font-size: var(--fs-h3); margin-bottom: var(--s3); }
.legal dl div { display: grid; gap: 2px; padding-block: 10px; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .legal dl div { grid-template-columns: 14rem minmax(0, 1fr); gap: var(--s4); } }
.legal dt { color: var(--grey); }
.legal dd { margin: 0; overflow-wrap: anywhere; }
.legal ul li { padding-left: 1.2em; position: relative; padding-block: 3px; }
.legal ul li::before { content: "—"; position: absolute; left: 0; color: var(--blue); }

/* ---------- 24. Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-block: var(--s8) var(--s6); }
.footer__big { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.25rem, 1.2rem + 5vw, 6rem); line-height: .95; letter-spacing: -.035em; }
.footer__big .blue { color: var(--blue-soft); }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s6); margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid rgba(255, 255, 255, .14); }
.footer__cols h2 { font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-soft); margin-bottom: var(--s3); }
.footer__cols a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: #D6D9E2; }
.footer__cols a:hover { color: var(--white); text-decoration: underline; }
.footer__cols p { color: var(--grey-on-ink); font-size: var(--fs-small); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); margin-top: var(--s7); font-family: var(--f-mono); font-size: var(--fs-label); color: var(--grey-on-ink); }

/* ---------- 25. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- 26. Compléments : règle J0 → J+10, croquis, utilitaires ---------- */
.ruler { height: 44px; }
.ruler__line { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--line-strong); }
.ruler__fill { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--blue); transform-origin: 0 50%; }
@media (prefers-reduced-motion: no-preference) { .motion .ruler__fill { animation: grow 1.6s .4s var(--ease) both; } }
@keyframes grow { from { transform: scaleX(0); } }
.ruler__line i { position: absolute; top: -4px; width: 1px; height: 10px; background: var(--blue); }
.ruler__line i:nth-child(2), .ruler__line i:nth-child(5), .ruler__line i:last-child { top: -8px; height: 18px; width: 2px; } /* J0, J+3, J+10 */
.ruler__lab { position: absolute; top: 22px; transform: translateX(-50%); font-family: var(--f-mono); font-size: var(--fs-label); color: var(--blue-deep); white-space: nowrap; }
.ruler__lab:first-of-type { transform: none; }
.ruler__lab--end { transform: translateX(-100%); }
.ruler__lab--key { font-weight: 600; }

.h2--narrow { max-width: 17ch; }
.h2--mid { max-width: 21ch; }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.mt-7 { margin-top: var(--s7); }
.pt-0 { padding-top: 0; }
.center { text-align: center; }
.exit > li { padding-block: var(--s4); border-top: 1px solid rgba(255, 255, 255, .16); }
.exit > li h3 { margin-bottom: var(--s2); }
.on-ink .excluded li { border-top-color: rgba(255, 255, 255, .16); }
.on-ink .excluded li::before { color: var(--blue-soft); }
.on-ink .ticket { color: var(--ink); }
.h3 { font-size: var(--fs-h3); }
/* Les enfants de grille ne doivent jamais imposer leur largeur minimale */
.faq > *, .contact > *, .legal > *, .options-grid > *, .brief > *, .mapstory > *, .honest__grid > *, .problem__head > *, .hero__top > *, .final__box > *, .page-hero__grid > *, .chantier__stage-in > *, .module__body > * { min-width: 0; }
.ticket li b { flex: 0 1 auto; text-align: right; }
.promise p { grid-column: 2; }
@media (min-width: 900px) { .promise p { grid-column: auto; } }
.footer__cols a[href^="mailto"] { overflow-wrap: anywhere; font-family: var(--f-mono); font-size: var(--fs-small); }
.brief__hero img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.on-ink .split-bar { border-color: rgba(255, 255, 255, .3); }
.map text { font-size: 22px; }
.map .country { font-size: 20px; letter-spacing: .25em; }
.on-ink .word__big { color: var(--blue-soft); }
.team .person__portrait { max-width: min(100%, 300px); }
@media (min-width: 900px) { .team .person__portrait { max-width: 420px; } }

/* ——— Retouches du 18/10/2026 (audit mobile) ——— */
/* Fiches de formules : sur petit écran, l'étiquette passe au-dessus de la valeur (mots allemands longs) */
.fiche dt, .fiche dd { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 479px) { .fiche dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
/* « Le détail » ne se coupe plus en deux lignes dans les cartes */
.plan-card .link-arrow { white-space: nowrap; }
/* Adresse email : coupure uniquement avant le @ (<wbr>), jamais au milieu d'un mot */
.footer__cols a[href^="mailto"], .final__mail { overflow-wrap: normal; word-break: normal; }
.btn { max-width: 100%; }

/* ——— Allègement du 19/10/2026 : moins d'ornements, l'information d'abord ——— */
/* Le trait de cote ne garde que son libellé : plus de numéros, de traits ni de barres */
.cote { gap: 0; }
.cote::before, .cote::after { display: none; }
.cote > span:not(:last-child) { display: none; }
/* Les grands numéros de chapitre détourés quittent les en-têtes de page */
.page-hero__num { display: none; }
/* Coins décoratifs des boutons et du cadre de contact : seulement sur grand écran */
@media (max-width: 899px) {
  .btn::before, .btn::after, .final__box::before, .final__box::after { display: none; }
}
.btn--line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--line::before, .btn--line::after { display: none; }
.final .actions { flex-wrap: wrap; }

/* Héros : faits en trois colonnes nettes dès la tablette */
.hero .facts { margin-top: var(--s7); }

/* Équipe (accueil) : section claire et calme */
.team-home { background: var(--white); border-block: 1px solid var(--rule); }
.team-home .honest__facts li { border-top-color: var(--rule); color: var(--ink-2); }
.team-home .honest__facts li::before { color: var(--blue); }
.team-home .person__portrait { color: var(--blue); background: var(--paper); border-color: var(--rule); overflow: hidden; }
.team-home .person__role { color: var(--grey); }
.person__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* Mini-FAQ */
.faq-home__grid { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .faq-home__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s9); align-items: start; } }
.faq-home .qa p { margin: 0 0 var(--s4); color: var(--ink-2); max-width: 60ch; }

/* Mobile : un rythme plus aéré et moins de choses à la fois */
@media (max-width: 719px) {
  .hero .lead { font-size: 1.0625rem; }
  .facts div { grid-template-columns: 5.8rem 1fr; }
  .facts dt { font-size: 1.5rem; }
  .rail-hint { display: none; }
  .honest__facts li { padding-block: var(--s2); }
}

/* Récapitulatif du calculateur, en tête du formulaire de contact */
.config { margin-bottom: var(--s6); padding: var(--s5); background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--blue); }
.config__title { margin: 0 0 var(--s3); font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; }
.config dl { display: grid; gap: 0; margin: 0; }
.config dl div { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: var(--s3); padding-block: 8px; border-top: 1px solid var(--rule); }
.config dt { color: var(--grey); font-size: var(--fs-small); }
.config dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.config dl div:last-child dd { color: var(--blue); font-weight: 700; }
.config__note { margin: var(--s3) 0 0; font-size: var(--fs-small); color: var(--grey); }
.config__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); margin-top: var(--s3); }
.config__rm { min-height: 44px; padding: 0; background: none; border: 0; color: var(--grey); font: inherit; font-size: var(--fs-small); text-decoration: underline; cursor: pointer; }
@media (max-width: 359px) { .config dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.direct .actions { margin-top: var(--s3); }

/* Flèches des liens : taille fixe, le libellé ne se coupe pas */
.link-arrow svg { width: 18px; height: 18px; flex: none; }
.link-arrow { white-space: nowrap; }
/* Accueil : trois concepts côte à côte ; deux, pleine largeur, sur téléphone */
.mosaic--3 { grid-template-columns: minmax(0, 1fr); }
.mosaic--3 .tile .tile__desc { display: block; color: var(--ink-2); margin-top: var(--s1); font-size: var(--fs-small); }
.mosaic--3 .tile .tile__name { font-size: var(--fs-h3); }
@media (max-width: 719px) { .mosaic--3 .tile:nth-child(3) { display: none; } }
@media (min-width: 720px) {
  .mosaic.mosaic--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
  .mosaic.mosaic--3 .tile, .mosaic.mosaic--3 .tile:nth-child(5n+1), .mosaic.mosaic--3 .tile:nth-child(5n+2) { grid-column: auto; margin-top: 0; }
  .mosaic--3 .tile .tile__name { font-size: 1.125rem; }
}
.facts dt { height: 1em; overflow: visible; white-space: nowrap; }
.facts { align-items: start; }
