/* Kliquet, maquette 1 — « La chambre noire »
   Direction : The dark room (seed 2016234458). Type : Switzer, une seule famille. Palette : noir chaud, laiton.
   Les fragments d'interface (racine [data-ui]) suivent les règles des écrans d'application.
   Révision du 29/10 : cliquet dans le héros, téléphones à l'échelle 1, niveau avant montant, mosaïque à trois tuiles,
   suivi dans la grille, clôture sur un écran. */

:root {
  --bg: #0c0a08;
  --surface: #181512;
  --field: #221c15;
  --field-3: #13110e;
  --ink: #f2f1ee;
  --muted: #a39c92;
  --accent: #c9a45a;
  --accent-strong: #d9b672;
  --accent-ink: #0c0a08;
  --notch-off: #3a3229;

  --font: "Switzer", ui-sans-serif, system-ui, sans-serif;

  --step-small: 0.875rem;                                  /* 14, notes only */
  --step-body: clamp(1.0625rem, 1rem + 0.15vw, 1.125rem);   /* 17–18 */
  --step-lead: 1.5rem;                                      /* 24 */
  --step-head: clamp(1.875rem, 0.9rem + 2.4vw, 2.75rem);    /* 30–44 */
  --step-display: clamp(3.25rem, 9vw, 8.25rem);             /* closing question */

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 12vw, 12rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;

  /* the app's own light theme, used inside fragments */
  --u-ground: #f4f3f1;
  --u-surface: #ffffff;
  --u-raised: #f1efec;
  --u-active: #ebe8e3;
  --u-border: #e5e2dc;
  --u-rule: #efedea;
  --u-control: #d3cfc8;
  --u-text: #141210;
  --u-muted: #5f5a53;
  --u-hue: #8a6a24;
  --u-primary: #1a1714;
  --u-pill-pos: #dcf3e4; --u-pill-pos-ink: #0b3a20;
  --u-pill-warn: #fbf1dc; --u-pill-warn-ink: #6b4307;
  --u-pill-neutral: #ece9e4; --u-pill-neutral-ink: #3d3933;

  --lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 0 1 8 0v2h1v8H3V7zm2 0h4V5a2 2 0 0 0-4 0z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { font-weight: 400; text-wrap: balance; letter-spacing: -0.03em; line-height: 1.08; }
p { text-wrap: pretty; max-width: 62ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.small { font-size: var(--step-small); line-height: 1.5; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4em; background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: 0.9375rem; text-decoration: none; border-radius: 0; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- header ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px var(--margin) 0; }
.mark { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; line-height: 0; }
/* the wordmark : the K of the mark followed by « liquet », drawn in currentColor (viewBox 3400 × 901) */
.mark .wordmark { height: 26px; width: calc(26px * 3400 / 901); flex: none; overflow: visible; }
.foot .mark .wordmark { height: 28px; width: calc(28px * 3400 / 901); }
/* the wordmark box holds the descender of the q : lift it so « liquet » sits on the nav baseline */
.top .mark .wordmark { transform: translateY(-2.5px); }
.foot .mark .wordmark { transform: translateY(-4px); }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 0.9375rem; }
.top nav a:not(.button) { color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .top nav a:not(.button) { display: none; } .top .button { min-height: 44px; padding: 0 1em; } }

/* ---------- hero : two doors on a dark wall ---------- */
.hero { position: relative; padding: 104px var(--margin) 112px; text-align: center; }
.hero h1 { font-size: var(--step-head); line-height: 1.05; max-width: 26ch; margin: 0 auto; }
.hero .lede { margin: 28px auto 0; max-width: 54ch; color: var(--ink); }
.door-switch { display: none; }
.doors { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; margin-top: 52px; align-items: start; }
.door { display: flex; gap: 28px; align-items: flex-start; min-width: 0; }
.door--left { justify-content: flex-end; }
.door--right { justify-content: flex-start; }
.door-text { flex: 0 1 13.5rem; padding-top: 104px; text-align: left; text-decoration: none; color: inherit; }
.door--left .door-text { text-align: right; }
.door-text strong { display: block; font-weight: 400; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.25; }
.door-text span { display: block; margin-top: 8px; color: var(--ink); font-size: var(--step-body); line-height: 1.45; }
.phone-slot { --pw: 340px; --ph: 720px; flex: none; display: block; width: calc(var(--pw) * var(--s, 1)); height: calc(var(--ph) * var(--s, 1)); text-decoration: none; transition: opacity 300ms var(--ease-out); }
.phone-slot > .phone { transform: scale(var(--s, 1)); transform-origin: top left; }
@media (max-width: 1180px) {
  .doors { column-gap: 32px; }
  .door { flex-direction: column; }
  .door--left { flex-direction: column-reverse; align-items: flex-end; }
  .door--right { align-items: flex-start; }
  .door-text, .door--left .door-text { flex: none; width: 340px; padding-top: 4px; text-align: left; }
}
@media (max-width: 760px) {
  .hero { padding-top: 96px; padding-bottom: 80px; }
  .hero h1 { font-size: 2rem; }
  .hero h1 .br-wide { display: none; }
  .doors { grid-template-columns: minmax(0, 1fr); row-gap: 56px; margin-top: 40px; justify-items: center; }
  .door, .door--left, .door--right { align-items: center; }
  .js .door-switch { display: inline-flex; gap: 4px; margin-top: 32px; padding: 4px; background: var(--field); }
  .door-switch button { min-height: 44px; padding: 0 16px; font-size: 1rem; color: var(--ink); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
  .door-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
  .js .doors { margin-top: 24px; touch-action: pan-y; }
  .js .door { grid-area: 1 / 1; transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out); }
  .js .doors[data-show="right"] .door--left { opacity: 0; visibility: hidden; transform: translateX(-24px); }
  .js .doors[data-show="left"] .door--right { opacity: 0; visibility: hidden; transform: translateX(24px); }
}
@media (max-width: 372px) { .phone-slot { --s: 0.92; } .door-text, .door--left .door-text { width: 313px; } }

/* ---------- the phone and the app's phone screens (scale 1: in-screen text at 13 px and more) ---------- */
.phone { width: 340px; height: 720px; border-radius: 50px; background: #050403; padding: 10px; text-align: left; }
.phone .screen { width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: var(--u-ground); color: var(--u-text); position: relative; font-size: 15px; line-height: 1.4; letter-spacing: 0; display: flex; flex-direction: column; }
[data-ui] .status { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px 6px; font-size: 14px; font-weight: 600; }
[data-ui] .status .sig { width: 18px; height: 12px; }
[data-ui] .island { position: absolute; top: 12px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #050403; }
[data-ui] .p-head { padding: 10px 20px 12px; }
[data-ui] .p-head .p-scope { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--u-muted); white-space: nowrap; overflow: hidden; }
[data-ui] .p-head .p-scope svg { width: 14px; height: 14px; flex: none; }
[data-ui] .p-head h3, [data-ui] .p-head .p-h { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.15; }
[data-ui] .seg { display: flex; gap: 2px; background: var(--u-active); border-radius: 9px; padding: 2px; margin: 2px 14px 10px; }
[data-ui] .seg span, [data-ui] .seg button { flex: 1; min-width: 0; text-align: center; padding: 7px 4px; border-radius: 7px; font-size: 13px; color: var(--u-muted); white-space: nowrap; }
[data-ui] .seg .on, [data-ui] .seg [aria-pressed="true"] { background: var(--u-surface); color: var(--u-text); font-weight: 500; }
[data-ui] .p-list { flex: 1; overflow: hidden; background: var(--u-surface); margin: 0 12px; border-radius: 16px; border: 1px solid var(--u-border); }
[data-ui] .p-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 12px 14px; border-bottom: 1px solid var(--u-rule); }
[data-ui] .p-row:last-child { border-bottom: 0; }
[data-ui] .p-row b { font-weight: 500; font-size: 15px; line-height: 1.3; }
[data-ui] .p-row .sub { grid-column: 1; font-size: 13px; color: var(--u-muted); }
[data-ui] .p-row .amt { grid-column: 2; grid-row: 1; text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 500; white-space: nowrap; }
[data-ui] .p-row .level { grid-column: 2; grid-row: 2; justify-self: end; }
[data-ui] .p-row.sel { background: var(--u-raised); }
[data-ui] .tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 6px 22px; font-size: 13px; color: var(--u-muted); text-align: center; }
[data-ui] .tabs span { display: grid; justify-items: center; gap: 3px; }
[data-ui] .tabs svg { width: 22px; height: 22px; }
[data-ui] .tabs .on { color: var(--u-text); font-weight: 500; }

/* level: three notches and the word */
[data-ui] .level { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--u-muted); white-space: nowrap; flex: none; }
[data-ui] .level i { display: inline-grid; grid-template-columns: repeat(3, 4px); gap: 2px; }
[data-ui] .level i b { width: 4px; height: 11px; border-radius: 1px; background: var(--u-control); }
[data-ui] .level[data-l="3"] i b, [data-ui] .level[data-l="2"] i b:nth-child(-n+2), [data-ui] .level[data-l="1"] i b:nth-child(1) { background: var(--u-hue); }

/* the ratchet in the hero phone: a row of eight asymmetric teeth and steps that lock with their time */
[data-ui] .teeth-row { display: flex; align-items: center; gap: 12px; margin: 0 20px 12px; }
[data-ui] .teeth { width: 128px; height: 14px; flex: none; }
[data-ui] .teeth polygon { fill: var(--u-control); transition: fill 260ms ease; }
[data-ui] .teeth polygon.on { fill: var(--u-hue); }
[data-ui] .teeth-count { font-size: 13px; color: var(--u-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-ui] .steps { flex: 1; margin: 0 12px 14px; background: var(--u-surface); border: 1px solid var(--u-border); border-radius: 16px; overflow: hidden; }
[data-ui] .step { display: grid; grid-template-columns: 24px 1fr auto; gap: 0 12px; align-items: start; padding: 9px 14px; border-bottom: 1px solid var(--u-rule); }
[data-ui] .step:last-child { border-bottom: 0; }
[data-ui] .step .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--u-active); color: var(--u-muted); transition: background-color 240ms ease, color 240ms ease, transform 260ms var(--ease-out); }
[data-ui] .step .ic svg { width: 12px; height: 12px; }
[data-ui] .step.done .ic { background: var(--u-primary); color: #fff; }
[data-ui] .step.now .ic { background: var(--u-surface); box-shadow: inset 0 0 0 2px var(--u-hue); color: var(--u-hue); }
[data-ui] .step.just .ic { transform: rotate(-30deg); }
[data-ui] .step b { font-weight: 500; font-size: 15px; display: block; line-height: 1.35; }
[data-ui] .step .sub { font-size: 13px; color: var(--u-muted); display: block; line-height: 1.35; }
[data-ui] .step:not(.done) b { color: var(--u-muted); }
[data-ui] .step.now b { color: var(--u-text); }
[data-ui] .step .at { display: inline-flex; align-items: center; gap: 6px; padding-top: 2px; font-size: 13px; color: var(--u-muted); font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; transition: opacity 240ms ease; }
[data-ui] .step .at svg { width: 13px; height: 13px; transform: rotate(-24deg) scale(0.8); transform-origin: 50% 70%; transition: transform 300ms var(--ease-out); }
[data-ui] .step.done .at { opacity: 1; }
[data-ui] .step.done .at svg { transform: none; }
[data-ui] .step .lock { color: var(--u-muted); padding-top: 3px; }
[data-ui] .step .lock svg { width: 13px; height: 13px; }

/* pills and generic fragment pieces */
[data-ui] .pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; flex: none; line-height: 1.5; }
[data-ui] .pill--pos { background: var(--u-pill-pos); color: var(--u-pill-pos-ink); }
[data-ui] .pill--neutral { background: var(--u-pill-neutral); color: var(--u-pill-neutral-ink); }
.card[data-ui], [data-ui] .card { background: var(--u-surface); color: var(--u-text); border: 1px solid var(--u-border); border-radius: 10px; letter-spacing: 0; line-height: 1.45; font-size: 15px; }
[data-ui] .btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 7px; font-size: 15px; font-weight: 500; background: var(--u-primary); color: #fff; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
[data-ui] .btn:active { transform: scale(0.97); }
[data-ui] .btn--ghost { background: var(--u-surface); color: var(--u-text); border: 1px solid var(--u-control); }
[data-ui] .k { color: var(--u-muted); font-size: 13px; }
[data-ui] .p-foot { padding: 10px 12px 22px; }
[data-ui] .p-btn { display: block; width: 100%; padding: 12px; border-radius: 10px; background: var(--u-primary); color: #fff; font-size: 15px; font-weight: 500; text-align: center; }
[data-ui] .num { font-variant-numeric: tabular-nums; }

/* ---------- section frame ---------- */
section { position: relative; }
.sec { padding-block: calc(var(--section) / 2); }
.h2 { font-size: var(--step-head); }

/* ---------- disponible : the level leads ---------- */
.dispo { background: var(--surface); padding: clamp(80px, 9vw, 128px) var(--margin); }
.dispo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.dispo .copy { grid-column: 1 / 6; }
.dispo .copy > p { margin-top: 24px; }
.lv { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 3px; flex: none; }
.lv b { width: 6px; height: 18px; border-radius: 1px; background: var(--notch-off); }
[data-l="3"] > .lv b, [data-l="2"] > .lv b:nth-child(-n+2), [data-l="1"] > .lv b:nth-child(1) { background: var(--accent); }
.ladder { margin-top: 32px; display: grid; gap: 4px; }
.ladder li { display: flex; gap: 18px; align-items: center; padding: 14px 18px; transition: background-color 300ms ease; }
.ladder li > span:last-child { display: block; }
.ladder li b { display: block; font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.3; }
.ladder li.on { background: var(--field); }
.level-card { grid-column: 7 / 13; font-size: clamp(1rem, 1.3vw, 1.25rem); }
.level-card .card { padding: 1.4em 1.5em 1.5em; border-radius: 0.6em; }
[data-ui] .lc-name { font-size: 0.85em; color: var(--u-muted); line-height: 1.35; }
[data-ui] .lc-name b { display: block; margin-top: 0.15em; color: var(--u-text); font-weight: 500; font-size: 1.25em; letter-spacing: -0.015em; }
[data-ui] .bc-seg { display: flex; gap: 0.12em; background: var(--u-active); border-radius: 0.5em; padding: 0.15em; margin: 1em 0 1.3em; }
[data-ui] .bc-seg button { flex: 1; min-height: 44px; padding: 0.4em 0.3em; border-radius: 0.38em; font-size: 0.85em; color: var(--u-muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
[data-ui] .bc-seg button[aria-pressed="true"] { background: var(--u-surface); color: var(--u-text); font-weight: 500; }
[data-ui] .lc-level { display: flex; align-items: center; gap: 0.45em; font-size: 2.5em; line-height: 1.05; letter-spacing: -0.035em; font-weight: 500; }
[data-ui] .lc-level .lv { grid-template-columns: repeat(3, 0.17em); gap: 0.08em; }
[data-ui] .lc-level .lv b { width: 0.17em; height: 0.62em; background: var(--u-control); }
[data-ui] .lc-level[data-l="3"] .lv b, [data-ui] .lc-level[data-l="2"] .lv b:nth-child(-n+2), [data-ui] .lc-level[data-l="1"] .lv b:nth-child(1) { background: var(--u-hue); }
[data-ui] .lc-amt { margin-top: 0.8em; font-size: 16px; color: var(--u-text); max-width: none; }
[data-ui] .lc-foot { margin-top: 1.4em; padding-top: 1em; border-top: 1px solid var(--u-rule); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
[data-ui] .lc-ins { font-size: 14px; color: var(--u-muted); }
@media (max-width: 900px) {
  .dispo .copy, .level-card { grid-column: 1 / -1; }
  .level-card { margin-top: 40px; font-size: 1rem; }
}

/* ---------- envelope : one row, three states ---------- */
.rows-sec .grid { row-gap: 48px; align-items: start; }
.rows-sec h2 { grid-column: 4 / 10; margin-bottom: 32px; }
.state { display: contents; }
.state-word { grid-column: 1 / 4; text-align: right; color: var(--ink); font-size: var(--step-lead); padding-top: 14px; letter-spacing: -0.02em; line-height: 1.25; }
.row-ui { grid-column: 4 / 10; max-width: 640px; }
.rows-aside { grid-column: 10 / 13; grid-row: 2 / span 3; color: var(--ink); }
.rows-aside p + p { margin-top: 1em; }
[data-ui].env { padding: 18px 20px; display: grid; gap: 8px; align-items: start; }
[data-ui].env .e-title { font-weight: 600; font-size: 16px; }
[data-ui].env .e-meta { font-size: 14px; color: var(--u-muted); }
[data-ui].env .e-msg { font-size: 15px; color: var(--u-text); background: var(--u-raised); border-radius: 7px; padding: 10px 12px; max-width: none; }
[data-ui].env .e-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
[data-ui].env .e-kinds span { padding: 3px 12px; border-radius: 999px; background: var(--u-raised); color: var(--u-muted); font-size: 14px; }
[data-ui].env .e-kinds .on { background: var(--u-pill-warn); color: var(--u-pill-warn-ink); font-weight: 500; }
[data-ui].env .e-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
[data-ui].env .e-actions { display: flex; gap: 8px; }
[data-ui].env.is-hover { border-color: var(--u-muted); }
@media (max-width: 900px) {
  .rows-sec h2, .state-word, .row-ui, .rows-aside { grid-column: 1 / -1; grid-row: auto; }
  .rows-sec h2 { margin-bottom: 8px; }
  .rows-sec .grid { row-gap: 10px; }
  .state { display: flex; flex-direction: column; gap: 10px; grid-column: 1 / -1; margin-bottom: 28px; }
  .state-word { text-align: left; font-size: 1.25rem; padding-top: 0; }
  .rows-aside { margin-top: 8px; }
}

/* ---------- cliquet : exhibits ---------- */
.ex-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gutter); align-items: start; }
.ex-col { display: grid; gap: 48px; align-content: start; }
.ex-copy p { margin-top: 24px; }
.exhibits video, .exhibits img { width: 100%; height: auto; background: var(--surface); }
.exhibits .ex-video video { aspect-ratio: 16 / 9; object-fit: cover; }
.exhibits .ex-photo img { aspect-ratio: 1200 / 1378; object-fit: cover; }
.exhibits .ex-photo2 img { aspect-ratio: 16 / 10; object-fit: cover; filter: brightness(0.86); }
.exhibits figcaption { margin-top: 12px; color: var(--muted); font-size: var(--step-small); max-width: 52ch; }
@media (max-width: 900px) {
  .ex-grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
}

/* ---------- souscription : drag through the stages ---------- */
.stages { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; }
.stages .f-clause { background: var(--surface); padding: clamp(56px, 8vh, 88px) var(--margin) 200px; }
.stages .f-ui { background: var(--field); display: grid; place-items: center; padding: 64px var(--margin) 200px; }
.stages h2 { font-size: var(--step-head); line-height: 1.05; max-width: 18ch; }
.stages .clause-sub { margin-top: 28px; max-width: 40ch; }
.clause-log { margin-top: 36px; display: grid; gap: 10px; max-width: 30rem; }
.clause-log li { display: flex; align-items: baseline; gap: 14px; color: var(--ink); }
.clause-log li span { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 4.2em; }
.clause-log li::after { content: ""; width: 0.75em; height: 0.75em; margin-left: auto; background: var(--accent); -webkit-mask: var(--lock) center / contain no-repeat; mask: var(--lock) center / contain no-repeat; }
.track-wrap { position: absolute; left: var(--margin); right: var(--margin); bottom: 40px; --thumb: 32px; }
.track-wrap .slider { position: relative; height: var(--thumb); }
.track-wrap .rail { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; background: var(--notch-off); }
.track-wrap .fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform 240ms var(--ease-out); }
.track-wrap input[type="range"] { position: relative; -webkit-appearance: none; appearance: none; width: 100%; height: var(--thumb); background: transparent; margin: 0; cursor: pointer; }
.track-wrap input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: transparent; }
.track-wrap input[type="range"]::-moz-range-track { height: 8px; background: transparent; }
.track-wrap input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; background: var(--accent); border-radius: 0; transition: transform var(--t-press) var(--ease-out); }
.track-wrap input[type="range"]::-moz-range-thumb { width: 32px; height: 32px; background: var(--accent); border: 0; border-radius: 0; }
.track-wrap input[type="range"]:active::-webkit-slider-thumb { transform: scale(0.94); }
.stops { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; font-size: var(--step-body); color: var(--muted); }
.stops li:nth-child(2) { text-align: center; transform: translateX(-17%); }
.stops li:nth-child(3) { text-align: center; transform: translateX(17%); }
.stops li:last-child { text-align: right; }
.stops li.on { color: var(--ink); }
.stops li.locked { color: var(--ink); }
.stops li.locked::after { content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.4em; background: var(--accent); -webkit-mask: var(--lock) center / contain no-repeat; mask: var(--lock) center / contain no-repeat; }
.track-note { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.track-note button { font-size: var(--step-small); color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.sub-ui { width: min(460px, 100%); }
[data-ui] .s-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--u-rule); }
[data-ui] .s-head b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
[data-ui] .s-head .s-count { float: right; font-size: 13px; color: var(--u-muted); font-variant-numeric: tabular-nums; }
[data-ui].sub-ui .step { padding: 11px 18px; transition: background-color 300ms ease; }
[data-ui] .s-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--u-rule); }
@media (max-width: 860px) {
  .stages { grid-template-columns: 1fr; min-height: 0; }
  .stages .f-ui { order: 1; padding: 40px var(--margin) 40px; }
  .track-wrap { position: static; order: 2; background: var(--field); padding: 0 var(--margin) 28px; --thumb: 40px; }
  .track-wrap input[type="range"]::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: -16px; }
  .track-wrap input[type="range"]::-moz-range-thumb { width: 40px; height: 40px; }
  .stages .f-clause { order: 3; padding: 48px var(--margin) 56px; }
  .stops { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .stops li, .stops li:nth-child(n) { text-align: left; transform: none; }
}

/* ---------- le dossier : three close-ups, filled ---------- */
.dossier-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: 48px; }
.dossier-head h2 { grid-column: 1 / 6; }
.dossier-head p { grid-column: 7 / 13; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; gap: 28px; padding: 28px 28px 0; background: var(--surface); overflow: hidden; }
.tile:nth-child(2) { background: var(--field); }
.tile .cap h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; }
.tile .cap p { margin-top: 10px; color: var(--ink); }
.tile .frag { flex: 1; display: flex; }
.tile .frag .card { flex: 1; border-radius: 12px 12px 0 0; border-bottom: 0; padding: 20px 22px 28px; }
[data-ui] .pn-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
[data-ui] .pn-title b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
[data-ui] .pn-note { margin-top: 14px; font-size: 14px; color: var(--u-muted); max-width: none; }
[data-ui] .kv { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; font-size: 15px; }
[data-ui] .kv dt, [data-ui] .kv dd { padding: 8px 0; border-top: 1px solid var(--u-rule); }
[data-ui] .kv dt:first-of-type, [data-ui] .kv dd:first-of-type { border-top: 0; }
[data-ui] .kv dt { color: var(--u-muted); }
[data-ui] .kv dd { text-align: right; font-variant-numeric: tabular-nums; }
[data-ui] .hold { height: 6px; margin-top: 14px; border-radius: 3px; background: var(--u-active); overflow: hidden; }
[data-ui] .hold span { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--u-hue); }
[data-ui] .sign { display: flex; flex-direction: column; gap: 10px; }
[data-ui] .sign .hello { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
[data-ui] .sign p { font-size: 15px; max-width: none; }
[data-ui] .sign .doc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--u-raised); font-size: 15px; }
[data-ui] .sign .doc svg { width: 16px; height: 16px; color: var(--u-muted); flex: none; }
[data-ui] .sign .signed { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin-top: 4px; border-radius: 9px; background: var(--u-pill-pos); color: var(--u-pill-pos-ink); font-weight: 600; font-size: 15px; }
[data-ui] .sign .signed svg { width: 14px; height: 14px; }
@media (max-width: 1000px) {
  .dossier-head h2, .dossier-head p { grid-column: 1 / -1; }
  .dossier-head p { margin-top: 20px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 24px 20px 0; }
}

/* ---------- suivi : one lit panel, chosen from a list ---------- */
.lit { padding-block: calc(var(--section) / 2); }
.lit-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.lit-side { grid-column: 1 / 6; }
.lit-list { margin-top: 32px; display: grid; gap: 4px; }
.lit-list button { display: grid; gap: 4px; padding: 16px 20px; text-align: left; color: var(--ink); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.lit-list button b { font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.3; }
.lit-list button span { font-size: var(--step-body); line-height: 1.45; }
.lit-list button[aria-pressed="true"] { background: var(--field); }
.lit-list button:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .lit-list button[aria-pressed="false"]:hover { background: var(--surface); } }
.lit-stage { grid-column: 7 / 13; padding-top: 6px; }
.lit-stage .panel[hidden] { display: none; }
.lit-stage .card { padding: 22px 24px; }
[data-ui] .pn-table { width: 100%; border-collapse: collapse; font-size: 15px; }
[data-ui] .pn-table th { text-align: left; font-weight: 400; color: var(--u-muted); font-size: 13px; padding: 0 0 8px; }
[data-ui] .pn-table td { padding: 10px 0; border-top: 1px solid var(--u-rule); vertical-align: top; }
[data-ui] .pn-table .r, [data-ui] .pn-table th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
[data-ui] .pn-table .sub { display: block; font-size: 13px; color: var(--u-muted); }
[data-ui] .gauge { position: relative; height: 34px; margin: 4px 0 2px; }
[data-ui] .gauge .g-track { position: absolute; left: 0; right: 0; top: 15px; height: 4px; background: var(--u-active); border-radius: 2px; }
[data-ui] .gauge .g-mark { position: absolute; top: 9px; width: 1px; height: 16px; background: var(--u-muted); }
[data-ui] .gauge .g-now { position: absolute; top: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--u-hue); }
[data-ui] .gauge-labels { position: relative; height: 18px; font-size: 13px; color: var(--u-muted); }
[data-ui] .gauge-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
[data-ui] .scen { display: grid; gap: 12px; font-size: 15px; }
[data-ui] .scen p { max-width: none; }
@media (max-width: 900px) {
  .lit-side, .lit-stage { grid-column: 1 / -1; }
  .lit-list { margin-top: 24px; }
  .lit-list button { padding: 12px 16px; }
  .lit-stage { margin-top: 20px; }
  .lit-stage .card { padding: 18px 16px; }
}

/* ---------- questions : large questions, answers beside ---------- */
.faq .qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-bottom: 72px; }
.faq .qa:last-child { padding-bottom: 0; }
.faq .qa h3, .faq .qa .q-head { grid-column: 1 / 7; font-size: var(--step-head); line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; }
.faq .qa .q-head { font-weight: 400; }
.faq .qa p { grid-column: 8 / 13; max-width: 40ch; padding-top: 0.35em; }
@media (max-width: 760px) {
  .faq .qa { grid-template-columns: 1fr; padding-bottom: 48px; }
  .faq .qa h3, .faq .qa .q-head, .faq .qa p { grid-column: 1; }
  .faq .qa p { margin-top: 12px; padding-top: 0; }
}

/* ---------- closing : one screen, one action ---------- */
.close { margin-top: calc(var(--section) / 2); background: var(--field-3); padding: clamp(96px, 11vw, 152px) var(--margin) clamp(80px, 9vw, 128px); text-align: center; }
.close h2 { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.045em; }
.close h2 span { display: block; }
.close .choice { margin-top: 56px; display: grid; justify-items: center; gap: 24px; }
.close .choice .button { min-height: 56px; padding: 0 2em; font-size: var(--step-body); }
.close .choice p { max-width: 46ch; }
.close .choice p .link { text-decoration-color: currentColor; }
@media (max-width: 760px) {
  .close h2 { font-size: 10.5vw; }
  .close .choice { margin-top: 40px; }
}

/* ---------- footer : a single quiet line ---------- */
.foot { padding: 72px var(--margin) 30px; font-size: var(--step-small); }
.foot-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.foot-line .f-links { display: flex; gap: 24px; }
.foot-line .f-links a { color: var(--ink); }
.foot-line .f-end { text-align: right; color: var(--muted); }
.foot-line .f-what { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.foot .credits { margin-top: 20px; color: var(--muted); font-size: var(--step-small); max-width: 75ch; }
.foot .credits a { color: var(--ink); }
@media (max-width: 760px) {
  .foot-line { grid-template-columns: 1fr; gap: 8px; }
  .foot-line .f-links { flex-wrap: wrap; gap: 8px 20px; }
  .foot-line .f-end { text-align: left; }
}

/* ---------- motion layer ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero-in { opacity: 0; transform: translateY(20px); animation: rise 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .js .tile .frag { transition: transform 1100ms var(--ease-expo); transform: translateY(28px); }
  .js .tile.is-in .frag { transform: none; }
}
/* on a phone the page runs past a dozen screens : the questions and the close stand without an entrance */
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .js .faq [data-reveal], .js .close [data-reveal] { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-ui] .step .ic, [data-ui] .step .at, [data-ui] .step .at svg, [data-ui] .teeth polygon { transition: none; }
}
