/* Ravensfell : système visuel.
   Deux mondes pour une même matière : la nacre (clair, par défaut) et la plume de corbeau (sombre).
   Champ irisé (couleur structurelle), surfaces en verre liquide, sémantique d'état iOS.
   Toutes les couleurs passent par des jetons : un thème ne fait que les réassigner.
   Aucun style en ligne ailleurs : la CSP n'autorise que ce fichier. */

/* ------------------------------------------------------------------ polices auto-hébergées */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ------------------------------------------------------------------ jetons : nacre (clair, par défaut)
   Contrastes vérifiés (WCAG AA) sur le sol, sur le verre, et sur le pire cas : le verre posé sur un
   ruban cobalt saturé. text-3 5,6:1, encres d'état 5,1 à 5,9:1, placeholder 4,5:1 au pire. */
:root {
  color-scheme: light;
  --ground: #f2f3f7;
  --text: #0b0d12;
  --text-2: #3d4250;
  --text-3: #51566a;
  --placeholder: #5f6472;
  --hair: rgba(20, 26, 48, .08);
  --hair-2: rgba(20, 26, 48, .12);
  --fill-1: rgba(20, 26, 48, .035);
  --fill-2: rgba(20, 26, 48, .06);
  --fill-3: rgba(20, 26, 48, .1);
  --hover-row: rgba(20, 26, 48, .03);
  --well: rgba(255, 255, 255, .74);
  --well-focus: #fff;
  --well-rim: rgba(20, 26, 48, .14);
  --well-shade: rgba(20, 26, 48, .06);
  --underline: rgba(20, 26, 48, .28);
  --code-bg: rgba(20, 26, 48, .06);
  --code-fg: #1b1f2b;
  --out-bg: rgba(255, 255, 255, .78);
  --out-fg: #1b1f2b;
  --option-bg: #fff;
  --tick: rgba(20, 26, 48, .32);
  --stripe: rgba(20, 26, 48, .2);
  --rail: rgba(20, 26, 48, .07);
  --switch-off: rgba(120, 120, 128, .2);

  --cobalt: #1e4bd2;
  --violet: #6a3fd8;
  --verdigris: #13a39a;

  --blue: #007aff;              /* agir */
  --orange: #ff9500;            /* échéance */
  --green: #34c759;             /* valide */
  --red: #ff3b30;               /* échec */
  --blue-ink: #0057c2;
  --orange-ink: #a04700;        /* 4,7:1 au pire (verre sur ruban saturé), et encore orange à l'œil */
  --green-ink: #156b2d;
  --red-ink: #b3160d;
  --violet-ink: #5b34c4;
  --blue-soft: rgba(0, 122, 255, .12);
  --orange-soft: rgba(255, 149, 0, .16);
  --green-soft: rgba(52, 199, 89, .17);
  --red-soft: rgba(255, 59, 48, .13);
  --violet-soft: rgba(106, 63, 216, .13);
  --blue-glow: rgba(0, 122, 255, .13);
  --green-line: rgba(52, 199, 89, .5);
  --red-line: rgba(255, 59, 48, .45);
  --orange-line: rgba(255, 149, 0, .5);

  --glass-tint: rgba(255, 255, 255, .68);
  --glass-tint-strong: rgba(255, 255, 255, .86);
  --nav-tint: rgba(255, 255, 255, .84);
  --glass-blur: 26px;
  --glass-sat: 150%;
  --sheen-1: rgba(255, 255, 255, .75);
  --sheen-2: rgba(255, 255, 255, .3);
  --sheen-3: rgba(255, 255, 255, .12);
  --rim-top: rgba(255, 255, 255, .95);
  --rim-bottom: rgba(255, 255, 255, .5);
  --rim: rgba(255, 255, 255, .6);
  --edge-line: rgba(20, 26, 48, .08);
  --shadow-1: 0 30px 60px -32px rgba(28, 38, 80, .32);
  --shadow-2: 0 8px 22px -10px rgba(28, 38, 80, .16);
  --spec: rgba(255, 255, 255, .7);
  --spec-rim-1: rgba(255, 255, 255, 1);
  --spec-rim-2: rgba(255, 255, 255, .55);
  --spec-rim-3: rgba(255, 255, 255, .35);

  --primary-bg: #0b0d12;
  --primary-bg-hover: #262a35;
  --primary-fg: #fff;
  --primary-glow: rgba(11, 13, 18, .32);
  --primary-inset: rgba(255, 255, 255, .14);
  --sent-bg: #1c7a39;
  --sent-fg: #fff;
  --seg-bg: rgba(20, 26, 48, .07);
  --seg-on: #fff;
  --seg-on-shadow: 0 2px 8px rgba(20, 26, 48, .16);
  --puck: #fff;
  --puck-fg: #0b0d12;
  --puck-ring: rgba(20, 26, 48, .08);
  --puck-shadow: rgba(28, 38, 80, .3);
  --edge-tint: rgba(242, 243, 247, .55);
  --icon-shadow: 0 12px 26px -10px rgba(28, 38, 80, .5);
  --icon-shadow-hover: 0 20px 34px -12px rgba(28, 38, 80, .55);
  --selection: rgba(0, 122, 255, .2);
  --selection-fg: #0b0d12;
  --thumb: rgba(20, 26, 48, .2);
  --thumb-hover: rgba(20, 26, 48, .32);
  --grain: .05;
  --grain-filter: invert(1);

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 38px;

  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(18px, 4vw, 48px);
  --wrap: 1240px;

  --ease: cubic-bezier(.16, 1, .3, 1);          /* sortie exponentielle */
  --ease-in: cubic-bezier(.55, 0, .75, .2);     /* départs, toujours plus courts que les arrivées */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.3, 1.16, .5, 1);      /* ressort iOS discret, contrôles uniquement */
  --spring-2: cubic-bezier(.34, 1.42, .5, 1);   /* ressort plus vif : chiffres, pastilles */
}

/* ------------------------------------------------------------------ jetons : plume (sombre) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #07080b;
  --text: #f4f5f8;
  --text-2: #b4b8c2;            /* 9,6:1 sur le sol */
  --text-3: #9a9eaa;            /* 7,4:1 sur le sol, 4,9:1 sur le verre le plus clair */
  --placeholder: #767a85;
  --hair: rgba(255, 255, 255, .09);
  --hair-2: rgba(255, 255, 255, .14);
  --fill-1: rgba(255, 255, 255, .045);
  --fill-2: rgba(255, 255, 255, .08);
  --fill-3: rgba(255, 255, 255, .14);
  --hover-row: rgba(255, 255, 255, .035);
  --well: rgba(0, 0, 0, .3);
  --well-focus: rgba(0, 0, 0, .38);
  --well-rim: rgba(255, 255, 255, .16);
  --well-shade: rgba(0, 0, 0, .3);
  --underline: rgba(255, 255, 255, .35);
  --code-bg: rgba(255, 255, 255, .08);
  --code-fg: #e6e8ee;
  --out-bg: rgba(0, 0, 0, .42);
  --out-fg: #dfe3ea;
  --option-bg: #15171f;
  --tick: rgba(255, 255, 255, .4);
  --stripe: rgba(255, 255, 255, .22);
  --rail: rgba(255, 255, 255, .07);
  --switch-off: rgba(120, 120, 128, .32);

  --blue: #0a84ff;
  --orange: #ff9f0a;
  --green: #30d158;
  --red: #ff453a;
  --blue-ink: #62adff;
  --orange-ink: #ffbe55;
  --green-ink: #6ee38c;
  --red-ink: #ff8078;
  --violet-ink: #b9a1ff;
  --blue-soft: rgba(10, 132, 255, .18);
  --orange-soft: rgba(255, 159, 10, .18);
  --green-soft: rgba(48, 209, 88, .16);
  --red-soft: rgba(255, 69, 58, .18);
  --violet-soft: rgba(106, 63, 216, .24);
  --blue-glow: rgba(10, 132, 255, .22);
  --green-line: rgba(48, 209, 88, .35);
  --red-line: rgba(255, 69, 58, .38);
  --orange-line: rgba(255, 159, 10, .38);

  --glass-tint: rgba(16, 18, 27, .42);
  --glass-tint-strong: rgba(18, 20, 30, .62);
  --nav-tint: rgba(16, 18, 27, .66);
  --glass-blur: 24px;
  --glass-sat: 175%;
  --sheen-1: rgba(255, 255, 255, .13);
  --sheen-2: rgba(255, 255, 255, .045);
  --sheen-3: rgba(255, 255, 255, .02);
  --rim-top: rgba(255, 255, 255, .32);
  --rim-bottom: rgba(255, 255, 255, .07);
  --rim: rgba(255, 255, 255, .1);
  --edge-line: transparent;
  --shadow-1: 0 30px 60px -30px rgba(0, 0, 0, .7);
  --shadow-2: 0 6px 16px -6px rgba(0, 0, 0, .4);
  --spec: rgba(255, 255, 255, .13);
  --spec-rim-1: rgba(255, 255, 255, .6);
  --spec-rim-2: rgba(255, 255, 255, .1);
  --spec-rim-3: rgba(255, 255, 255, .04);

  --primary-bg: #f6f7fa;
  --primary-bg-hover: #fff;
  --primary-fg: #0a0b0f;
  --primary-glow: rgba(255, 255, 255, .35);
  --primary-inset: rgba(0, 0, 0, .12);
  --sent-bg: #30d158;
  --sent-fg: #04130a;
  --seg-bg: rgba(0, 0, 0, .28);
  --seg-on: rgba(255, 255, 255, .16);
  --seg-on-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  --puck: #fff;
  --puck-fg: #0a0b0f;
  --puck-ring: rgba(255, 255, 255, .12);
  --puck-shadow: rgba(0, 0, 0, .5);
  --edge-tint: rgba(7, 8, 11, .5);
  --icon-shadow: 0 12px 26px -10px rgba(0, 0, 0, .7);
  --icon-shadow-hover: 0 20px 34px -12px rgba(0, 0, 0, .8);
  --selection: rgba(10, 132, 255, .45);
  --selection-fg: #fff;
  --thumb: rgba(255, 255, 255, .18);
  --thumb-hover: rgba(255, 255, 255, .3);
  --grain: .045;
  --grain-filter: none;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
/* Pas de fond sur html : celui de body remonte alors à la racine et reste sous le canvas du fond
   (z-index négatif). Un fond posé sur html ferait peindre body par-dessus le canvas. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 17px/1.55 var(--font);
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 0, "cv11" 1;
  overflow-x: hidden;
}
/* Repli sans JavaScript : le champ irisé en dégradés fixes. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(34vmax 30vmax at 12% 8%, rgba(30, 75, 210, .1), rgba(106, 63, 216, .05) 45%, transparent 70%),
    radial-gradient(32vmax 28vmax at 88% 26%, rgba(106, 63, 216, .1), rgba(19, 163, 154, .04) 45%, transparent 70%),
    radial-gradient(30vmax 26vmax at 60% 96%, rgba(19, 163, 154, .1), rgba(30, 75, 210, .03) 45%, transparent 70%),
    var(--ground);
}
:root[data-theme="dark"] body::before {
  background:
    radial-gradient(34vmax 30vmax at 12% 8%, rgba(30, 75, 210, .2), rgba(106, 63, 216, .08) 45%, transparent 70%),
    radial-gradient(32vmax 28vmax at 88% 26%, rgba(106, 63, 216, .18), rgba(19, 163, 154, .06) 45%, transparent 70%),
    radial-gradient(30vmax 26vmax at 60% 96%, rgba(19, 163, 154, .15), rgba(30, 75, 210, .05) 45%, transparent 70%),
    var(--ground);
}
/* Grain très fin : casse les bandes des dégradés. Blanc sur la plume, noir (inversé) sur la nacre. */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: var(--grain); filter: var(--grain-filter);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* Garde-fou : aucune animation d'entrée ne doit élargir la page. clip (et non hidden) ne crée pas
   de conteneur de défilement, donc les scènes collantes continuent de coller. */
main { overflow-x: clip; }
#rf-field, #rf-gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; display: block; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--underline); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: text-decoration-color .2s, color .2s; }
a:hover { text-decoration-color: currentColor; }
p a, li a, .prose a { color: var(--text); }
strong { font-weight: 620; color: var(--text); }
code, kbd, samp { font: 500 .88em/1.4 var(--mono); padding: .08em .38em; border-radius: 6px; background: var(--code-bg); color: var(--code-fg); }
pre { font-family: var(--mono); }
hr { border: 0; height: 1px; background: var(--hair); margin: 48px 0; }

::selection { background: var(--selection); color: var(--selection-fg); }
* { caret-color: var(--blue); }
html { scrollbar-color: var(--thumb) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--thumb); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--thumb-hover); background-clip: padding-box; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 10px; }

[hidden] { display: none !important; }
.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; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--primary-bg); color: var(--primary-fg); font-weight: 600; transform: translateY(-160%); transition: transform .3s var(--ease); text-decoration: none; }
.skip:focus-visible { transform: none; }

/* ------------------------------------------------------------------ typographie */
h1, h2, h3, h4 { margin: 0; font-weight: 620; letter-spacing: -.028em; line-height: 1.06; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(44px, 6.6vw, 96px); letter-spacing: -.038em; line-height: .98; font-weight: 640; }
h2 { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -.034em; }
h3 { font-size: clamp(21px, 1.9vw, 26px); letter-spacing: -.02em; line-height: 1.18; }
h4 { font-size: 17px; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.note { font-size: 14px; color: var(--text-3); line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* Ticket de provenance : la source et la date d'un fait réglementaire. */
.ticket {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 12px/1.3 var(--mono); letter-spacing: 0; color: var(--text-3);
}
.ticket svg { width: 13px; height: 13px; flex: none; opacity: .8; }

/* ------------------------------------------------------------------ mise en page */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 10vw, 136px) 0; position: relative; }
.section--tight { padding: clamp(64px, 9vw, 112px) 0; }
.stack > * + * { margin-top: 18px; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }

/* ------------------------------------------------------------------ verre liquide
   Une surface = fond teinté + flou et saturation de l'arrière-plan + liseré spéculaire.
   La lumière (::before) suit le pointeur via --mx/--my, posés par rf.js. */
.glass {
  position: relative; isolation: isolate;
  background:
    linear-gradient(162deg, var(--sheen-1) 0%, var(--sheen-2) 34%, var(--sheen-3) 100%),
    var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px .5px var(--rim-top),
    inset 0 -.5px 0 var(--rim-bottom),
    inset 0 0 0 .5px var(--rim),
    0 0 0 .5px var(--edge-line),
    var(--shadow-1),
    var(--shadow-2);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 22%) var(--my, -10%), var(--spec), transparent 62%);
  transition: opacity .4s var(--ease);
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 22%) var(--my, -10%), var(--spec-rim-1), var(--spec-rim-2) 58%, var(--spec-rim-3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.glass--strong { background: linear-gradient(162deg, var(--sheen-1), var(--sheen-3) 40%), var(--glass-tint-strong); }
/* Réfraction réelle (Chromium) : la carte de déplacement est générée à la taille de l'élément. */
.lens-on .glass--lens { backdrop-filter: var(--lens, blur(var(--glass-blur))) saturate(var(--glass-sat)); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-tint-strong); }
}

/* ------------------------------------------------------------------ boutons (pilules iOS) */
.pill, .btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  translate: var(--tx, 0px) var(--ty, 0px);
  transition: transform .45s var(--spring), translate .7s var(--spring), background-color .25s, box-shadow .25s, color .25s, opacity .25s;
}
.pill:active, .btn:active { transform: scale(.965); transition-duration: .12s, .7s, .25s, .25s, .25s, .25s; }
.pill svg, .btn svg { width: 18px; height: 18px; flex: none; }
.pill--primary, .btn {
  background: var(--primary-bg); color: var(--primary-fg);
  box-shadow: inset 0 -1px 0 var(--primary-inset), 0 10px 30px -12px var(--primary-glow);
}
.pill--primary:hover, .btn:hover { background: var(--primary-bg-hover); box-shadow: inset 0 -1px 0 var(--primary-inset), 0 16px 40px -12px var(--primary-glow); }
.pill--glass, .btn-ghost {
  background: var(--fill-2); color: var(--text);
  -webkit-backdrop-filter: blur(18px) saturate(var(--glass-sat)); backdrop-filter: blur(18px) saturate(var(--glass-sat));
  box-shadow: inset 0 1px .5px var(--rim-top), inset 0 0 0 .5px var(--rim), 0 0 0 .5px var(--edge-line);
}
.pill--glass:hover, .btn-ghost:hover { background: var(--fill-3); }
.pill--blue { background: var(--blue); color: #fff; box-shadow: inset 0 1px .5px rgba(255, 255, 255, .35), 0 10px 24px -12px var(--primary-glow); }
.pill--sm, .btn-sm { --h: 38px; padding: 0 16px; font-size: 14.5px; }
.pill[disabled], .btn[disabled], .pill[aria-busy="true"] { opacity: .5; pointer-events: none; }
.btn-ghost { font-weight: 560; }
.pill .arrow { transition: transform .45s var(--spring); }
.pill:hover .arrow { transform: translateX(3px); }
/* Envoi confirmé : le bouton devient la confirmation, puis revient. */
.pill.is-sent { background: var(--sent-bg); color: var(--sent-fg); box-shadow: 0 12px 30px -14px var(--sent-bg); animation: sent-pop .7s var(--spring-2); }
@keyframes sent-pop { 0% { scale: .9; } 60% { scale: 1.06; } 100% { scale: 1; } }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-ink); font-weight: 560; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .45s var(--spring); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------ barre de navigation flottante */
.rf-nav {
  position: fixed; top: 14px; left: 50%; z-index: 60;
  width: min(1140px, calc(100% - 20px)); height: 60px;
  translate: -50% 0;
  display: flex; align-items: center; gap: 6px; padding: 0 8px 0 18px;
  border-radius: 999px;
  /* Plus dense que les autres verres : les titres qui passent dessous ne doivent pas se lire à travers. */
  --glass-tint: var(--nav-tint); --glass-blur: 32px;
  view-transition-name: rf-nav;
  transition: scale .6s var(--ease), translate .6s var(--ease);
  animation: nav-in 1s var(--ease) .05s backwards;
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-22px) scale(.97); filter: blur(10px); } }
.rf-nav.is-compact { scale: .965; translate: -50% -4px; }
/* Fil de lecture : la part de la page déjà parcourue, dans les trois teintes de la plume. */
.rf-nav__progress { position: absolute; left: 30px; right: 30px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden; pointer-events: none; }
.rf-nav__progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--cobalt), var(--violet) 55%, var(--verdigris)); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 640; font-size: 17.5px; letter-spacing: -.02em; margin-right: auto; }
.brand svg { width: 28px; height: 28px; transition: rotate .8s var(--spring); }
.brand:hover svg { rotate: -8deg; }
.rf-nav__links { display: flex; align-items: center; gap: 2px; position: relative; }
.rf-nav__links a {
  position: relative; z-index: 1;
  padding: 9px 14px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 520;
  transition: color .25s;
}
.rf-nav__links a:hover, .rf-nav__links a[aria-current="page"] { color: var(--text); }
/* La pastille de survol glisse d'un lien à l'autre au lieu d'apparaître sur place. */
.rf-nav__blob {
  position: absolute; z-index: 0; top: 50%; left: 0; height: 38px; width: var(--bw, 0px); margin-top: -19px; border-radius: 999px;
  background: var(--fill-2); translate: var(--bx, 0px) 0; opacity: 0; pointer-events: none;
  transition: translate .55s var(--spring), width .55s var(--spring), opacity .3s var(--ease);
}
.rf-nav__blob.is-on { opacity: 1; }
.rf-nav__links:not(.has-blob) a:hover { background: var(--fill-2); }
.rf-nav__links a[aria-current="page"] { background: var(--fill-3); }
.seg {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--seg-bg);
  box-shadow: inset 0 0 0 .5px var(--hair-2); margin: 0 4px;
}
.seg button {
  height: 30px; min-width: 38px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-3); font: 600 12.5px/1 var(--font); letter-spacing: .02em; cursor: pointer; transition: background-color .3s var(--ease), color .3s, box-shadow .3s;
}
.seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--text); box-shadow: var(--seg-on-shadow); }

/* Interrupteur de thème : le soleil se referme en lune (et l'inverse), au ressort. */
.theme-btn {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 999px; display: inline-grid; place-items: center; cursor: pointer;
  background: var(--fill-2); color: var(--text); -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 0 0 .5px var(--hair-2);
  transition: background-color .25s, transform .45s var(--spring);
}
.theme-btn:hover { background: var(--fill-3); }
.theme-btn:active { transform: scale(.9); }
.theme-btn svg { width: 22px; height: 22px; overflow: visible; }
.theme-btn .tb-core, .theme-btn .tb-cut, .theme-btn .tb-rays { transform-box: fill-box; transform-origin: center; transition: transform .7s var(--spring), opacity .4s var(--ease); }
.theme-btn .tb-cut { transform: translate(10px, -10px); }
:root[data-theme="dark"] .theme-btn .tb-core { transform: scale(1.62); }
:root[data-theme="dark"] .theme-btn .tb-cut { transform: none; }
:root[data-theme="dark"] .theme-btn .tb-rays { transform: rotate(-75deg) scale(.4); opacity: 0; }

.rf-nav__menu { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--fill-2); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.rf-nav__menu svg { width: 20px; height: 20px; }
.rf-sheet {
  position: fixed; z-index: 55; top: 84px; left: 10px; right: 10px;
  padding: 10px; border-radius: 30px; display: none;
}
.rf-sheet.is-open { display: block; animation: sheet-in .5s var(--ease); }
.rf-sheet a { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px; border-radius: 18px; text-decoration: none; font-size: 19px; font-weight: 560; letter-spacing: -.015em; }
.rf-sheet a + a { border-top: .5px solid var(--hair); }
.rf-sheet a:hover { background: var(--fill-1); }
.rf-sheet a svg { width: 18px; height: 18px; color: var(--text-3); }
.rf-sheet.is-open a { animation: sheet-item .55s var(--ease) backwards; }
.rf-sheet.is-open a:nth-child(2) { animation-delay: 40ms; }
.rf-sheet.is-open a:nth-child(3) { animation-delay: 80ms; }
.rf-sheet.is-open a:nth-child(4) { animation-delay: 120ms; }
.rf-sheet.is-open a:nth-child(5) { animation-delay: 160ms; }
.rf-sheet.is-open a:nth-child(6) { animation-delay: 200ms; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-10px) scale(.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sheet-item { from { opacity: 0; translate: 0 -8px; } }

/* ------------------------------------------------------------------ bord flou progressif */
.rf-edge {
  position: fixed; left: 0; right: 0; bottom: 0; height: 90px; z-index: 40; pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 75%); mask-image: linear-gradient(to bottom, transparent, #000 75%);
  background: linear-gradient(to bottom, transparent, var(--edge-tint));
  transition: opacity .5s var(--ease);
}
.rf-edge.is-off { opacity: 0; }

/* ------------------------------------------------------------------ pied de page */
.rf-foot { padding: 72px 0 56px; position: relative; }
.rf-foot__panel { padding: 28px clamp(20px, 3vw, 36px); border-radius: var(--r-xl); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-h { font-size: 13px; letter-spacing: .01em; color: var(--text-3); font-weight: 560; margin-bottom: 12px; }
.rf-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rf-foot a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.rf-foot a:hover { color: var(--text); }
.rf-foot__legal { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3); }
.rf-foot__legal p { max-width: 72ch; }

/* ================================================================== ACCUEIL */

/* --- ouverture */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center; gap: clamp(28px, 5vw, 80px);
  padding-top: 128px; padding-bottom: 96px;
  position: relative; view-timeline: --hero block;
}
.hero h1 { max-width: 11ch; }
.hero h1 .decode { display: inline-block; }
.hero .lead { margin-top: 28px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__source { margin-top: 30px; }
/* Le texte d'ouverture arrive juste après le titre : phrase, boutons, source, dans cet ordre. */
.js .hero__text > .lead, .js .hero__text > .hero__actions, .js .hero__text > .hero__source { animation: rise-in 1.1s var(--ease) backwards; }
.js .hero__text > .lead { animation-delay: .55s; }
.js .hero__text > .hero__actions { animation-delay: .72s; }
.js .hero__text > .hero__source { animation-delay: .9s; }
@keyframes rise-in { from { opacity: 0; translate: 0 18px; filter: blur(8px); } }

.widget { border-radius: 40px; padding: 26px 26px 20px; }
.widget__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.widget__label { font-size: 15px; font-weight: 560; color: var(--text-2); }
.live { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font); letter-spacing: .04em; color: var(--orange-ink); text-transform: uppercase; }
.live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); animation: live-ping 2.2s var(--ease) infinite; }
@keyframes live-ping { 0% { opacity: .6; scale: 1; } 70%, 100% { opacity: 0; scale: 3; } }
.countdown { margin: 18px 0 4px; font-size: clamp(52px, 5.6vw, 76px); font-weight: 560; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .42em; color: var(--text-3); letter-spacing: -.01em; font-weight: 500; margin-left: .15em; }
/* Compte à rebours à rouleaux : chaque chiffre est une colonne qui glisse, comme un minuteur iOS. */
.dgs { display: inline-flex; align-items: center; letter-spacing: 0; }
.dg { display: inline-block; height: 1.08em; overflow: hidden; width: calc(1ch - .03em); text-align: center;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.dg__col { display: block; transform: translateY(calc(var(--i, 1) * -1.08em)); transition: transform .7s var(--spring-2); }
.dg__col span { display: block; height: 1.08em; line-height: 1.08em; }
.dg__col.is-snap { transition: none; }
.dgs .sep { display: inline-block; width: .32em; text-align: center; translate: 0 -.04em; }
.widget__sub { color: var(--text-3); font-size: 14.5px; }
.rows { list-style: none; margin: 20px 0 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: .5px solid var(--hair-2); }
.js .widget .rows li { animation: row-in .9s var(--ease) backwards; }
.js .widget .rows li:nth-child(1) { animation-delay: .75s; }
.js .widget .rows li:nth-child(2) { animation-delay: .85s; }
.js .widget .rows li:nth-child(3) { animation-delay: .95s; }
@keyframes row-in { from { opacity: 0; translate: 16px 0; } }
.rows .dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.rows .dot svg { width: 18px; height: 18px; }
.dot--orange { background: var(--orange-soft); color: var(--orange-ink); }
.dot--blue { background: var(--blue-soft); color: var(--blue-ink); }
.dot--green { background: var(--green-soft); color: var(--green-ink); }
.dot--violet { background: var(--violet-soft); color: var(--violet-ink); }
.rows strong { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.rows span { display: block; font-size: 13.5px; color: var(--text-3); }
.rows time, .rows .when { font: 560 14.5px/1.25 var(--font); text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.widget__foot { margin-top: 12px; padding-top: 12px; border-top: .5px solid var(--hair-2); }

.cue { position: absolute; z-index: 45; left: 50%; bottom: 30px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); text-decoration: none; transition: color .25s; }
.cue:hover { color: var(--text); }
.cue svg { width: 16px; height: 16px; rotate: 90deg; animation: cue-bob 2.4s var(--ease-io) 1.8s infinite; }
@keyframes cue-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }

/* --- acte : la frise à l'échelle (défilement collant) */
.clock { position: relative; height: 330vh; }
.clock__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 84px; padding-bottom: 20px; }
.clock__intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; }
.clock__intro h2 { font-size: clamp(32px, 3.8vw, 54px); }
.clock__intro p { margin-top: 0; max-width: 46ch; }
.scale { position: relative; margin-top: clamp(26px, 5vh, 52px); padding: 58px 0 50px; }
.scale__rail { position: relative; height: 12px; border-radius: 999px; background: var(--rail); box-shadow: inset 0 0 0 .5px var(--hair-2); }
.scale__gap { position: absolute; top: 0; bottom: 0; left: var(--gap-a); width: calc(var(--gap-b) - var(--gap-a)); background: repeating-linear-gradient(90deg, var(--stripe) 0 6px, transparent 6px 12px); border-radius: 2px; opacity: .6; }
.scale__fill {
  position: absolute; inset: 0; border-radius: inherit;
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0 round 999px);
  background: linear-gradient(90deg, var(--orange) 0%, #ffb340 var(--f24, 5%), var(--blue) var(--f72, 16%), var(--cobalt) 60%, var(--violet) 100%);
}
/* La tête de lecture porte le temps écoulé : « 17 h », puis « + 5 j » après le correctif. */
.scale__puck {
  position: absolute; z-index: 2; top: 50%; left: calc(var(--p, 0) * 100%);
  height: 30px; min-width: 30px; padding: 0 11px; border-radius: 999px;
  /* Centrée sur l'instant, mais retenue dans la frise aux deux bouts (au début, bord gauche sur
     l'heure 0 ; à la fin, bord droit sur les 14 jours), pour ne jamais déborder de l'écran. */
  translate: calc(var(--p, 0) * -100%) -50%;
  display: grid; place-items: center;
  background: var(--puck); color: var(--puck-fg); font: 650 12.5px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--puck-ring), 0 6px 20px var(--puck-shadow);
  transition: scale .45s var(--spring-2);
}
.scale__puck.is-bump { scale: 1.16; }
/* Étiquettes : au-dessus du trait (24 h, 72 h, 14 jours) ou en dessous (heure 0, correctif),
   pour que 24 h, qui ne fait que 5 % de la frise, garde sa place sans chevaucher l'heure 0. */
.mark { position: absolute; top: 0; height: 50px; left: var(--at); translate: -50% 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; white-space: nowrap; transition: opacity .5s var(--ease); }
.mark b { display: block; font-size: clamp(18px, 1.9vw, 26px); font-weight: 620; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; transition: color .4s var(--ease), scale .5s var(--spring-2); }
.mark small { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.3; }
.mark::after { content: ""; position: absolute; top: 100%; left: 50%; width: 1px; height: 7px; background: var(--tick); }
.mark--below { top: 78px; height: auto; justify-content: flex-start; }
.mark--below::after { top: auto; bottom: 100%; }
.mark--start { translate: 0 0; align-items: flex-start; }
.mark--start::after { left: 0; }
.mark--end { translate: -100% 0; align-items: flex-end; }
.mark--end::after { left: auto; right: 0; }
.mark--gap b { font-size: 13.5px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.mark.is-hit b { color: var(--orange-ink); scale: 1.06; }
.scale__caption { display: none; margin-top: 8px; font-size: 14px; color: var(--text-2); }
.steps { list-style: none; padding: 0; margin-left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(18px, 3vh, 32px); }
/* Étape pas encore atteinte : en retrait et en gris d'encre, mais lisible ; atteinte, elle s'allume. */
.step { padding: 18px 20px 16px; border-radius: var(--r-lg); opacity: .78; transform: translateY(10px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.step :is(h3, h3 em, p, .ticket) { transition: color .6s var(--ease); }
.step:not(.is-on) :is(h3, h3 em, p, .ticket) { color: var(--text-3); }
.step.is-on { opacity: 1; transform: none; }
.step h3 { font-size: 19px; display: flex; align-items: baseline; gap: 10px; }
.step h3 em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--orange-ink); }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.step .ticket { margin-top: 10px; }
.clock__foot { margin-top: 14px; }
/* Écran trop bas pour la scène collante : la frise s'affiche entière, sans défilement piloté. */
@media (max-height: 820px) and (min-width: 721px) {
  .clock__stage { padding-top: 76px; }
  .clock__intro h2 { font-size: clamp(28px, 3vw, 40px); }
  .clock__intro p { font-size: 16px; }
  .scale { margin-top: 14px; }
  .steps { margin-top: 12px; }
  .step { padding: 14px 16px 12px; }
  .step p { font-size: 13.5px; line-height: 1.42; }
  .clock__foot { display: none; }
}
@media (max-height: 600px) and (min-width: 721px) { .clock { height: auto; } .clock__stage { position: static; height: auto; padding-block: 48px; } .step { opacity: 1; transform: none; filter: none; } }

/* --- acte : aujourd'hui / décembre 2027 */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); margin-top: 56px; }
.door { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); transition: transform .7s var(--ease), opacity .6s var(--ease), filter .6s var(--ease); }
.reveal-pending .door--now { transform: translateX(48px) scale(.97); opacity: 0; filter: blur(10px); }
.reveal-pending .door--later { transform: translateX(-48px) scale(.97); opacity: 0; filter: blur(10px); }
.door__when { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.door__when i { width: 10px; height: 10px; border-radius: 50%; }
.door--now .door__when { color: var(--orange-ink); }
.door--now .door__when i { background: var(--orange); }
.door--later .door__when { color: var(--blue-ink); }
.door--later .door__when i { background: var(--blue); }
.door h3 { font-size: clamp(24px, 2.4vw, 32px); }
.door .door__when { margin-top: 10px; }
.door ul { list-style: none; padding: 0; margin: 22px 0 0; }
.door li { padding: 14px 0; border-top: .5px solid var(--hair-2); display: grid; gap: 4px; }
.door li p { color: var(--text-2); font-size: 15.5px; }
.door li b { font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; }
/* Les lignes de chaque colonne s'allument l'une après l'autre, une fois la porte ouverte. */
.door li { transition: opacity .7s var(--ease), translate .8s var(--ease); }
.reveal-pending .door li { opacity: 0; translate: 0 10px; }
.door li:nth-child(1) { transition-delay: .25s; }
.door li:nth-child(2) { transition-delay: .33s; }
.door li:nth-child(3) { transition-delay: .41s; }
.door li:nth-child(4) { transition-delay: .49s; }

/* --- acte : méthode */
.method { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.method__head { position: sticky; top: 120px; }
.method__head p { margin-top: 20px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.principle { padding: 26px 28px; border-radius: var(--r-lg); display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.principle .dot { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; transition: scale .6s var(--spring-2), rotate .6s var(--spring-2); }
.principle .dot svg { width: 22px; height: 22px; }
.principle:hover .dot { scale: 1.08; rotate: -6deg; }
.principle h3 { font-size: 21px; }
.principle p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.principle { transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease), translate .6s var(--spring); }
.principle:hover { translate: 0 -3px; }
.reveal-pending .principle { opacity: 0; transform: translateY(16px); filter: blur(8px); }
.phases { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-radius: var(--r-lg); overflow: hidden; }
.phase { padding: 22px 22px 24px; position: relative; }
.phase + .phase { border-left: .5px solid var(--hair-2); }
.phase h4 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.phase h4 svg { width: 18px; height: 18px; color: var(--blue-ink); transition: color .5s var(--ease), scale .6s var(--spring-2); }
.phase p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
/* Cadrer, équiper, veiller : un trait parcourt les trois étapes au rythme du défilement. */
.phases__line { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; }
.phases__line i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--violet) 60%, var(--verdigris)); transform-origin: 0 50%; transform: scaleX(var(--pl, 1)); }
.phases.is-scrub .phase h4 svg { color: var(--text-3); }
.phases.is-scrub .phase.is-lit h4 svg { color: var(--blue-ink); scale: 1.15; }

/* --- acte : offre (échelle, pas une grille de cartes) */
.offer-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; }
.offer-head p { max-width: 46ch; }
.ladder { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 12px; }
.rung { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 44px); align-items: start; padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-xl); transition: transform 1s var(--ease), opacity .8s var(--ease), filter .8s var(--ease); }
.reveal-pending .rung { transform: translateY(26px) scale(.975); opacity: 0; filter: blur(8px); }
.rung h3 { font-size: clamp(22px, 2.2vw, 30px); }
.rung__pitch { margin-top: 10px; color: var(--text-2); font-size: 15.5px; max-width: 42ch; }
.rung ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rung li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; color: var(--text-2); line-height: 1.45; }
.rung li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--green-ink); }
.price { text-align: right; min-width: 160px; }
.price b { display: block; font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { display: block; margin-top: 8px; font-size: 13.5px; color: var(--text-3); }
.price .pill { margin-top: 18px; }
.rung--first { background:
  linear-gradient(162deg, var(--sheen-1) 0%, var(--sheen-2) 34%, var(--sheen-3) 100%),
  radial-gradient(120% 140% at 0% 0%, var(--blue-glow), transparent 60%),
  var(--glass-tint); }
/* Les offres s'empilent comme des cartes iOS : chacune se pose sur la précédente, qui recule. */
@media (min-width: 721px) and (min-height: 720px) {
  .ladder.is-stack { gap: 18px; }
  .ladder.is-stack .rung { position: sticky; top: calc(100px + var(--k, 0) * 20px); transform-origin: 50% 0; scale: var(--sc, 1); }
  .ladder.is-stack .rung > * { opacity: var(--o, 1); }
}
.offer-extra { margin-top: 18px; padding: 20px 26px; border-radius: var(--r-lg); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.offer-extra p { color: var(--text-2); font-size: 15.5px; max-width: 70ch; }

/* --- acte : les instruments (écran d'accueil iOS) */
.springboard { margin-top: 56px; padding: clamp(24px, 3.4vw, 44px); border-radius: 44px; }
.apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(22px, 3vw, 38px) clamp(10px, 2vw, 24px); }
.app { text-align: center; }
.app a { display: grid; justify-items: center; gap: 10px; text-decoration: none; }
.app__icon {
  width: clamp(62px, 6.4vw, 78px); aspect-ratio: 1; border-radius: 23%; display: grid; place-items: center; position: relative;
  box-shadow: inset 0 1px .5px rgba(255, 255, 255, .45), inset 0 -1px 1px rgba(0, 0, 0, .25), var(--icon-shadow);
  transition: transform .55s var(--spring), box-shadow .4s var(--ease), opacity .45s var(--ease);
}
.app__icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 46%); pointer-events: none; }
.app__icon svg { width: 46%; height: 46%; color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.app a:hover .app__icon { transform: translateY(-5px) scale(1.04); box-shadow: inset 0 1px .5px rgba(255, 255, 255, .5), var(--icon-shadow-hover); }
.app a:active .app__icon { transform: scale(.94); }
.app__name { font-size: 13px; line-height: 1.3; color: var(--text); font-weight: 520; max-width: 13ch; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.app--scope .app__icon { background: linear-gradient(145deg, #3d6bff, #6a3fd8); }
.app--docs .app__icon { background: linear-gradient(145deg, #19b3a6, #1e4bd2); }
.app--tech .app__icon { background: linear-gradient(145deg, #8a52ff, #d0418c); }
.reveal-pending .app__icon { transform: scale(.5) translateY(18px); opacity: 0; }
.reveal-pending .app__name { opacity: 0; translate: 0 6px; }
.legend { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-3); font-size: 13.5px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend .k-scope { background: linear-gradient(145deg, #3d6bff, #6a3fd8); }
.legend .k-docs { background: linear-gradient(145deg, #19b3a6, #1e4bd2); }
.legend .k-tech { background: linear-gradient(145deg, #8a52ff, #d0418c); }

/* --- acte : le cabinet */
.firm { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.firm__text p { margin-top: 20px; }
.firm__text p:first-of-type { margin-top: 24px; }
.proof { padding: 26px; border-radius: 36px; }
.proof__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proof__head h3 { font-size: 20px; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: .5px solid var(--hair-2); font-size: 15px; }
.checks li .st { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--text-3); }
.checks li .st svg { width: 14px; height: 14px; }
.checks li.ok .st { background: var(--green-soft); color: var(--green-ink); animation: st-pop .6s var(--spring-2) backwards; }
.checks li.ko .st { background: var(--red-soft); color: var(--red-ink); animation: st-pop .6s var(--spring-2) backwards; }
.checks li.wait .st { background: var(--fill-2); }
.checks li:nth-child(2) .st { animation-delay: 70ms; }
.checks li:nth-child(3) .st { animation-delay: 140ms; }
.checks li:nth-child(4) .st { animation-delay: 210ms; }
.checks li:nth-child(5) .st { animation-delay: 280ms; }
@keyframes st-pop { from { scale: .3; opacity: 0; } }
.checks li small { font: 500 12.5px/1.3 var(--mono); color: var(--text-3); text-align: right; }
.proof__foot { margin-top: 14px; }

/* --- verre qui s'incline vers le pointeur (widget, preuve) */
.tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease); will-change: transform; }
.tilt.is-tilting { transition-duration: .2s; }

/* --- FAQ : liste groupée iOS */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); }
.group { border-radius: var(--r-lg); overflow: hidden; }
.group details { border-top: .5px solid var(--hair-2); }
.group details:first-child { border-top: 0; }
.group summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-size: 17px; font-weight: 580; letter-spacing: -.012em; transition: background-color .25s;
}
.group summary::-webkit-details-marker { display: none; }
.group summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .45s var(--spring);
}
.group details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.group summary:hover { background: var(--hover-row); }
.group details > div { padding: 0 24px 22px; color: var(--text-2); font-size: 16px; max-width: 70ch; }
.group details[open] > div { animation: faq-in .6s var(--ease) backwards; }
@keyframes faq-in { from { opacity: 0; translate: 0 -8px; filter: blur(4px); } }
.group details > div p + p { margin-top: 10px; }
.group details > div .ticket { margin-top: 12px; }
@supports (interpolate-size: allow-keywords) {
  .group { interpolate-size: allow-keywords; }
  .group details::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
  .group details[open]::details-content { height: auto; }
}

/* --- contact : formulaire groupé iOS */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact__text p { margin-top: 20px; }
.contact__text ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.contact__text li { display: flex; gap: 10px; align-items: center; color: var(--text-2); font-size: 15.5px; }
.contact__text li svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.form { display: grid; gap: 4px; }
.form__group { border-radius: 26px; overflow: hidden; }
.form__row { position: relative; display: grid; grid-template-columns: 130px 1fr; align-items: center; min-height: 54px; padding: 0 18px; transition: background-color .3s var(--ease); }
.form__row + .form__row { border-top: .5px solid var(--hair-2); }
/* La ligne en cours de saisie s'éclaire, et un trait bleu la souligne en partant de la gauche. */
.form__row::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -.5px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.form__row:focus-within { background: var(--hover-row); }
.form__row:focus-within::after { transform: scaleX(1); }
.form__row label { font-size: 15px; font-weight: 560; color: var(--text-2); transition: color .3s; }
.form__row:focus-within label { color: var(--blue-ink); }
.form__row input, .form__row textarea {
  width: 100%; border: 0; background: transparent; color: var(--text); font: 400 16px/1.4 var(--font); padding: 16px 0;
}
.form__row input:focus-visible, .form__row textarea:focus-visible { outline: none; }
.form__row textarea { resize: vertical; min-height: 120px; }
.form__row--area { align-items: start; }
.form__row--area label { padding-top: 16px; }
.form__row input::placeholder, .form__row textarea::placeholder { color: var(--placeholder); }
.form__consent { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 18px 8px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.form__actions { padding: 14px 8px 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form__status { font-size: 14.5px; color: var(--text-2); }
.form__status.is-ok { color: var(--green-ink); }
.form__status.is-err { color: var(--red-ink); animation: shake .5s var(--ease); }
@keyframes shake { 20% { translate: -5px 0; } 40% { translate: 4px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Interrupteur iOS sur une case à cocher native (accessible au clavier, lue comme une case). */
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 51px; height: 31px; border-radius: 999px; margin: 0; position: relative; cursor: pointer;
  background: var(--switch-off); transition: background-color .3s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .2), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .45s var(--spring), width .25s var(--ease); }
.switch:active::after { width: 33px; }
.switch:checked:active::after { transform: translateX(14px); }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }

/* ------------------------------------------------------------------ titres de section */
.act-title { max-width: 18ch; }
.act-lead { margin-top: 22px; }

/* Titre d'ouverture : chaque mot sort du flou, une seule fois (rf.js découpe les mots). */
.is-words .w { display: inline-block; animation: word-in 1.1s var(--ease) both; animation-delay: 820ms; }
.is-words .w:nth-child(1) { animation-delay: 120ms; }
.is-words .w:nth-child(2) { animation-delay: 190ms; }
.is-words .w:nth-child(3) { animation-delay: 260ms; }
.is-words .w:nth-child(4) { animation-delay: 330ms; }
.is-words .w:nth-child(5) { animation-delay: 400ms; }
.is-words .w:nth-child(6) { animation-delay: 470ms; }
.is-words .w:nth-child(7) { animation-delay: 540ms; }
.is-words .w:nth-child(8) { animation-delay: 610ms; }
.is-words .w:nth-child(9) { animation-delay: 680ms; }
.is-words .w:nth-child(10) { animation-delay: 750ms; }
@keyframes word-in { from { opacity: 0; transform: translateY(.3em); filter: blur(14px); } to { opacity: 1; transform: none; filter: none; } }
.widget.is-arriving { animation: widget-in 1.3s var(--ease) .35s both; }
@keyframes widget-in { from { opacity: 0; translate: 0 18px; scale: .97; filter: blur(16px); } to { opacity: 1; translate: 0 0; scale: 1; filter: none; } }

/* Titres de section : les mots s'allument au fil de la lecture, pilotés par le défilement.
   rf.js pose --n (nombre de mots) sur le titre, --i sur chaque mot, et --p (0 à 1) au défilement.
   Sans script, ou tant que --p n'est pas posé, tout est allumé. */
.sw .w { display: inline-block;
  --wp: clamp(0, calc((var(--p, 1) * (var(--n, 1) + 2.5) - var(--i, 0)) / 2.5), 1);
  opacity: calc(.14 + .86 * var(--wp)); translate: 0 calc((1 - var(--wp)) * .14em); }

/* ------------------------------------------------------------------ défilement : l'ouverture recule
   Là où le navigateur sait lier une animation au défilement : en quittant l'écran, le texte d'ouverture
   monte et s'efface plus vite que le widget, qui recule en profondeur. Ailleurs : rien, tout reste net. */
@supports (animation-timeline: view()) {
  .js .hero__text { animation: hero-text-out linear both; animation-timeline: --hero; animation-range: exit 0% exit 80%; }
  .js .hero .widget.is-arriving { animation: widget-in 1.3s var(--ease) .35s both, hero-widget-out linear both; animation-timeline: auto, --hero; animation-range: normal, exit 5% exit 95%; }
  .js .cue { animation: cue-out linear both; animation-timeline: --hero; animation-range: exit 0% exit 25%; }
}
@keyframes hero-text-out { to { opacity: 0; translate: 0 -14vh; scale: .96; } }
@keyframes hero-widget-out { to { opacity: 0; translate: 0 -5vh; scale: .9; } }
@keyframes cue-out { to { opacity: 0; } }

/* ------------------------------------------------------------------ apparitions
   Par défaut tout est visible. rf.js ne masque (reveal-pending) que ce qui est sous la ligne
   de flottaison au chargement, puis le révèle à l'entrée dans l'écran. */
[data-reveal] { transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); }
[data-reveal="rise"].reveal-pending { opacity: 0; transform: translateY(22px); filter: blur(8px); }

/* ------------------------------------------------------------------ transitions de page et de thème
   Entre deux pages du site : la barre reste en place, le contenu se fond de l'une à l'autre.
   Changement de thème : un disque s'ouvre depuis le bouton (rf.js), le fond GPU suit. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  #rf-gl { view-transition-name: rf-bg; }
  ::view-transition-old(root) { animation: vt-out .28s var(--ease-in) both; }
  ::view-transition-new(root) { animation: vt-in .7s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; translate: 0 -10px; filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; translate: 0 16px; filter: blur(8px); } }
.vt-theme .rf-nav, .vt-theme #rf-gl { view-transition-name: none; }
.vt-theme::view-transition-old(root), .vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.vt-theme::view-transition-old(root) { z-index: 1; }
.vt-theme::view-transition-new(root) { z-index: 2; }

/* ================================================================== PAGES OUTILS (mode opérer) */
.tool-page { width: 100%; max-width: 980px; margin: 0 auto; padding: 128px var(--gutter) 40px; }
.tool-page > h1 { font-size: clamp(36px, 4.8vw, 60px); letter-spacing: -.035em; line-height: 1.02; max-width: 18ch; }
.tool-page > .lead { margin-top: 20px; }
.tool-page > h2, .tool-page .faq h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 64px 0 18px; }
.js .tool-page > h1, .js .tool-page > .lead, .js .tool-page > .crumbs, .js .prose > h1, .js .prose > .lead, .js .prose > .crumbs { animation: rise-in 1s var(--ease) backwards; }
.js .tool-page > h1, .js .prose > h1 { animation-delay: .08s; }
.js .tool-page > .lead, .js .prose > .lead { animation-delay: .2s; }
.js .tool-page > .tool-box, .js .tool-page > #app, .js .tool-page > .springboard { animation: rise-in 1.1s var(--ease) .32s backwards; }
.crumbs { font-size: 14px; color: var(--text-3); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.kicker { display: none; }
.tool-box { margin-top: 36px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); }
.tool-box > * + * { margin-top: 16px; }
/* Dans un instrument, les titres sont des en-têtes de panneau, pas des titres de section. */
.tool-box h2 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -.02em; line-height: 1.2; }
.tool-box h3 { font-size: 17px; letter-spacing: -.01em; }
#app h2, #app h3, .q h2, .q h3 { font-size: clamp(21px, 2.2vw, 28px); letter-spacing: -.025em; line-height: 1.18; }
.verdict h2 { font-size: clamp(24px, 2.6vw, 32px); }
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 16px; }
.field label, .field > span, .field legend { font-size: 14.5px; font-weight: 580; color: var(--text); letter-spacing: -.005em; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field input[type="number"], .field input[type="date"], .field input[type="datetime-local"], .field input:not([type]), .field select, .field textarea,
.tool-box input[type="text"], .tool-box input:not([type]), .tool-box select, .tool-box textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 0;
  background: var(--well); color: var(--text); font: 400 16px/1.4 var(--font);
  box-shadow: inset 0 0 0 .5px var(--well-rim), inset 0 1px 2px var(--well-shade);
  transition: box-shadow .25s, background-color .25s;
}
.field textarea, .tool-box textarea { min-height: 140px; font: 400 14px/1.5 var(--mono); resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .tool-box input:focus-visible, .tool-box select:focus-visible, .tool-box textarea:focus-visible {
  outline: none; box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px var(--blue-soft); background: var(--well-focus);
}
.field input::placeholder, .field textarea::placeholder, .tool-box input::placeholder { color: var(--placeholder); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%238d919c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--option-bg); color: var(--text); }
.field input[type="checkbox"], .field input[type="radio"], .tool-box input[type="checkbox"], .tool-box input[type="radio"] { accent-color: var(--blue); width: 18px; height: 18px; }
.field input[type="range"] { accent-color: var(--blue); width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.row2 > .field + .field { margin-top: 0; }
.btnrow, .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hint, .help, .small { font-size: 13.5px; color: var(--text-3); line-height: 1.5; }
.help { margin-top: 4px; }

.result { margin-top: 22px; padding: 20px 22px; border-radius: var(--r-md); background: var(--fill-1); box-shadow: inset 0 0 0 .5px var(--hair-2); animation: result-in .6s var(--ease); }
@keyframes result-in { from { opacity: 0; translate: 0 10px; scale: .985; } }
.result h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.result h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); flex: none; }
.result p, .result li { color: var(--text-2); font-size: 15.5px; }
.result > * + * { margin-top: 10px; }
.result ul, .result ol { padding-left: 20px; margin: 10px 0 0; }
.result li + li { margin-top: 6px; }
.result.good, .result.ok { background: linear-gradient(180deg, var(--green-soft), transparent); box-shadow: inset 0 0 0 .5px var(--green-line); }
.result.good h3::before, .result.ok h3::before { background: var(--green); }
.result.bad { background: linear-gradient(180deg, var(--red-soft), transparent); box-shadow: inset 0 0 0 .5px var(--red-line); }
.result.bad h3::before { background: var(--red); }
.result.warn { background: linear-gradient(180deg, var(--orange-soft), transparent); box-shadow: inset 0 0 0 .5px var(--orange-line); }
.result.warn h3::before { background: var(--orange); }
.badge, .pill-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font: 600 12px/1 var(--font); letter-spacing: .01em; background: var(--fill-2); color: var(--text-2);
}
.badge.ok, .badge.good { background: var(--green-soft); color: var(--green-ink); }
.badge.bad { background: var(--red-soft); color: var(--red-ink); }
.badge.warn { background: var(--orange-soft); color: var(--orange-ink); }
.score { font-size: clamp(44px, 5vw, 68px); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.progress { height: 8px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--violet)); width: 0; transition: width .7s var(--ease); }

.out {
  position: relative; margin-top: 16px; padding: 18px 20px; border-radius: 18px; min-height: 64px;
  background: var(--out-bg); box-shadow: inset 0 0 0 .5px var(--hair-2);
  font: 400 13.5px/1.6 var(--mono); color: var(--out-fg); white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}
.out.empty { color: var(--text-3); font-family: var(--font); font-size: 14.5px; }
.copy-btn {
  position: absolute; top: 10px; right: 10px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--fill-3); color: var(--text); font: 600 12.5px/1 var(--font);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .2s, transform .4s var(--spring);
}
.copy-btn:hover { background: var(--fill-3); }
.copy-btn:active { transform: scale(.92); }

.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checklist label, .check-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--fill-1); box-shadow: inset 0 0 0 .5px var(--hair-2); cursor: pointer; font-size: 15px; color: var(--text-2); transition: background-color .2s; }
.checklist label:hover, .check-item:hover { background: var(--fill-2); }
.checklist input { margin-top: 2px; }

/* Questionnaire « suis-je concerné » */
.q { margin-top: 8px; }
.q h3 { font-size: clamp(20px, 2vw, 26px); }
.opts { display: grid; gap: 10px; margin-top: 18px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--fill-1); color: var(--text); font: 500 16px/1.4 var(--font); box-shadow: inset 0 0 0 .5px var(--hair-2);
  transition: background-color .2s, box-shadow .2s, transform .4s var(--spring); }
.opt:hover { background: var(--fill-2); box-shadow: inset 0 0 0 .5px var(--well-rim); }
.opt:active { transform: scale(.985); }
.opt[aria-pressed="true"], .opt.selected { box-shadow: inset 0 0 0 1.5px var(--blue); background: var(--blue-soft); }
.verdict { margin-top: 18px; }
#app .q, #app .verdict { animation: rise-in .7s var(--ease); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin-top: 12px; }
.msg { margin-top: 10px; font-size: 14.5px; color: var(--text-2); }
.lang { display: none; }
.mt-lg { margin-top: 1.2rem; }
.note-tool { color: var(--text-3); margin-top: 2rem; font-size: 14.5px; }
.h-sub { margin: 1rem 0 .3rem; font-size: 1rem; }
.min-70 { min-height: 70px; }
.min-80 { min-height: 80px; }
.check-inline { display: flex; gap: .4rem; align-items: center; border-radius: 10px; padding: .4rem .7rem; cursor: pointer; background: var(--fill-1); box-shadow: inset 0 0 0 .5px var(--hair-2); }
.cell-ok { background: var(--green-soft); color: var(--green-ink); }
.cell-bad { background: var(--red-soft); color: var(--red-ink); }
.cell-warn { background: var(--orange-soft); color: var(--orange-ink); }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: .5px solid var(--hair-2); vertical-align: top; }
th { color: var(--text-3); font-weight: 580; font-size: 13px; letter-spacing: .01em; }
td { color: var(--text-2); font-variant-numeric: tabular-nums; }

.faq { margin-top: 24px; }
/* FAQ des outils : la même liste groupée iOS que l'accueil, sans conteneur supplémentaire. */
.faq details {
  background: linear-gradient(162deg, var(--sheen-1), var(--sheen-3) 40%), var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow: inset 0 0 0 .5px var(--rim), 0 0 0 .5px var(--edge-line);
}
.faq details + details { border-top: .5px solid var(--hair-2); }
.faq details:first-of-type { border-radius: 22px 22px 0 0; box-shadow: inset 0 1px .5px var(--rim-top), inset 0 0 0 .5px var(--rim), 0 0 0 .5px var(--edge-line); }
.faq details:last-of-type { border-radius: 0 0 22px 22px; }
.faq details:only-of-type { border-radius: 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-size: 16.5px; font-weight: 580; display: flex; justify-content: space-between; gap: 16px; align-items: center; transition: background-color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform .45s var(--spring); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { background: var(--hover-row); }
.faq details p { padding: 0 22px 18px; color: var(--text-2); font-size: 15.5px; max-width: 70ch; }
.faq details[open] p { animation: faq-in .6s var(--ease) backwards; }

.cta-box { margin-top: 64px; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-xl); }
.cta-box:empty { display: none; }
.cta-box h2 { font-size: clamp(24px, 2.6vw, 34px); max-width: 24ch; }
.cta-box p { margin-top: 12px; color: var(--text-2); max-width: 60ch; }
.cta-box .btnrow { margin-top: 22px; }

.related, .grid-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.related a, .grid-tools a {
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: center; padding: 14px 16px; border-radius: 20px; text-decoration: none;
  background: var(--fill-1); box-shadow: inset 0 0 0 .5px var(--hair-2); transition: background-color .25s, transform .5s var(--spring);
}
.related a:hover, .grid-tools a:hover { background: var(--fill-2); transform: translateY(-2px); }
.related a .app__icon, .grid-tools a .app__icon { width: 44px; grid-row: span 2; border-radius: 12px; }
.related strong, .grid-tools strong { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.related small, .grid-tools span, .related span { font-size: 13.5px; color: var(--text-3); line-height: 1.4; }

.tool-page--wide { max-width: var(--wrap); }
.tool-page--wide > h1 { max-width: 16ch; }
.tool-page .springboard { margin-top: 44px; }
.crumbs svg { width: 14px; height: 14px; opacity: .55; }
.progress i, #bar { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--violet)); transition: width .7s var(--ease); }
.tool-page > .progress { margin-top: 28px; }
#app { margin-top: 18px; }
#app .q, #app .verdict { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background:
  linear-gradient(162deg, var(--sheen-1) 0%, var(--sheen-2) 34%, var(--sheen-3) 100%), var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow: inset 0 1px .5px var(--rim-top), inset 0 0 0 .5px var(--rim), 0 0 0 .5px var(--edge-line), var(--shadow-1); }
.check-inline input { margin: 0; }
.grid-tools a .app__icon svg, .related a .app__icon svg { width: 52%; height: 52%; }
.related a.app--scope .app__icon, .grid-tools a.app--scope .app__icon { background: linear-gradient(145deg, #3d6bff, #6a3fd8); }
.related a.app--docs .app__icon, .grid-tools a.app--docs .app__icon { background: linear-gradient(145deg, #19b3a6, #1e4bd2); }
.related a.app--tech .app__icon, .grid-tools a.app--tech .app__icon { background: linear-gradient(145deg, #8a52ff, #d0418c); }

/* ================================================================== PAGES DE LECTURE */
.prose { width: 100%; max-width: 760px; margin: 0 auto; padding: 140px var(--gutter) 40px; }
.prose h1 { font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -.035em; }
.prose .lead { margin-top: 18px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 52px 0 14px; letter-spacing: -.025em; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0 0; }
.prose li + li { margin-top: 8px; }
.prose .card { margin-top: 18px; padding: 22px 24px; border-radius: var(--r-lg); }
.prose dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 0; margin: 14px 0 0; border-radius: var(--r-md); overflow: hidden; }
.prose dt, .prose dd { margin: 0; padding: 13px 16px; border-top: .5px solid var(--hair-2); font-size: 15.5px; }
.prose dt { color: var(--text-3); font-weight: 560; }
.prose dd { color: var(--text); }
.prose dl > :nth-child(-n+2) { border-top: 0; }
.todo { color: var(--orange-ink); font-weight: 600; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.lost h1 { font-size: clamp(64px, 12vw, 96px); font-variant-numeric: tabular-nums; }
.lost p { margin: 18px auto 0; max-width: 40ch; }
.lost .hero__actions { justify-content: center; }

/* ================================================================== adaptatif */
@media (max-width: 1080px) {
  .apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rung { grid-template-columns: minmax(0, 1fr) auto; }
  .rung ul { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 900px) {
  .rf-nav__links, .rf-nav .seg, .rf-nav__cta { display: none; }
  .rf-nav__menu { display: inline-flex; }
  .theme-btn { width: 44px; height: 44px; }
  .hero, .method, .firm, .faq-wrap, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 120px; min-height: auto; }
  .hero h1 { max-width: 13ch; }
  .method__head { position: static; }
  .cue { display: none; }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .reveal-pending .door--now, .reveal-pending .door--later { transform: translateY(24px) scale(.98); }
  .rf-foot__panel { grid-template-columns: 1fr 1fr; }
  .rf-foot__panel > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .clock { height: auto; }
  .clock__stage { position: static; height: auto; padding-block: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { opacity: 1; transform: none; filter: none; }
  .clock__intro { grid-template-columns: minmax(0, 1fr); }
  .mark small { display: none; }
  .mark b { font-size: 15px; }
  [data-mark="24"] b, [data-mark="72"] b, [data-mark="fix"] b { display: none; }
  .scale { padding-top: 40px; padding-bottom: 44px; }
  .mark { height: 32px; }
  .mark--below { top: 60px; }
  .scale__caption { display: block; }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .phase + .phase { border-left: 0; border-top: .5px solid var(--hair-2); }
  .phases__line { display: none; }
  .rung { grid-template-columns: minmax(0, 1fr); }
  .rung ul { grid-row: auto; }
  .price { text-align: left; }
  .apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row2, .related, .grid-tools { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); padding-top: 10px; }
  .form__row input, .form__row textarea { padding-top: 4px; }
  .form__row--area label { padding-top: 0; }
  .prose dl { grid-template-columns: minmax(0, 1fr); }
  .prose dd { border-top: 0; padding-top: 0; }
  .widget { border-radius: 32px; padding: 22px 20px 16px; }
  .checks li { grid-template-columns: 28px minmax(0, 1fr); }
  .checks li small { grid-column: 2; text-align: left; }
  .rf-foot__panel { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================== mouvement réduit
   Plus de déplacement ni de flou ; les changements d'état restent lisibles (couleurs, coches). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal-pending, .reveal-pending * { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; translate: none !important; }
  .clock { height: auto; }
  .clock__stage { position: static; height: auto; padding-block: 24px; }
  .step { opacity: 1; transform: none; filter: none; }
  .tilt { transform: none; }
  .pill, .btn { translate: none; }
  .sw .w { opacity: 1; translate: none; }
  .ladder.is-stack .rung { position: static; scale: none; }
  .ladder.is-stack .rung > * { opacity: 1; }
  .js .hero__text, .js .cue, .js .hero .widget.is-arriving { animation: none !important; }
}
