/* ==========================================================
   ELIVARD · le test d'entreprise (version 2026-11-22-usine)
   Un studio clair (ou nuit en sombre). Les questions à gauche,
   seules ; la ligne en briques dans sa zone à elle, à droite (une
   bande en haut sur téléphone), jamais sous l'interface. Des arêtes
   nettes : rayons de 6 à 10 px, des carrés plutôt que des ronds.
   Pendant le test, rien ne défile ; seul le détail du résultat se
   lit en descendant.
   ========================================================== */

body.t3 {
  --stage-a: #FFFFFF; --stage-b: #EEF3F1; --stage-c: #DFE8E4;
  --scrim: rgba(241, 246, 244, .9);
  --viz: #22466A;
  --r: 8px;
  height: 100dvh; margin: 0; overflow: hidden; background: var(--paper); color: var(--ink);
}
:root[data-theme="dark"] body.t3 { --stage-a: #2B5378; --stage-b: #172A3D; --stage-c: #101D2A; --scrim: rgba(19, 33, 47, .86); --viz: #4C8FD4; }
body.t3.is-doc { height: auto; min-height: 100dvh; overflow: auto; }

/* ---------- La scène ---------- */
.t3-stage { position: fixed; inset: 0; z-index: 0; background: radial-gradient(90% 80% at 72% 18%, var(--stage-a), transparent 62%), linear-gradient(180deg, var(--stage-b), var(--stage-c)); }
.t3-stage canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px); mask-image: linear-gradient(90deg, transparent 0, #000 56px); }
.t3-stage__fallback { position: absolute; inset: 0; }
.t3-stage__fallback canvas { width: 100%; height: 100%; }

/* ---------- La barre : la marque, les chapitres, le thème ---------- */
.t3-bar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 clamp(16px, 3vw, 40px); pointer-events: none; }
.t3-bar > * { pointer-events: auto; }
body.is-doc .t3-bar { position: sticky; background: color-mix(in srgb, var(--paper) 84%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.t3-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 600; letter-spacing: -.035em; flex: none; }
.t3-brand svg { width: 26px; height: 26px; color: var(--mark); }
.t3-brand i { font: 500 10.5px var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-left: 11px; margin-left: 2px; border-left: 1px solid var(--line); }
.t3-rail { flex: 1; max-width: 560px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.t3-rail li { display: grid; gap: 6px; min-width: 0; }
.t3-rail i { display: block; height: 3px; background: var(--line); overflow: hidden; }
.t3-rail b { display: block; height: 100%; background: var(--signal); transform-origin: left; transition: transform .8s var(--ease); }
.t3-rail span { font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .4s; }
.t3-rail .is-cur span { color: var(--ink); }
.t3-theme { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink-2); cursor: pointer; }
.t3-theme svg { width: 17px; height: 17px; }
.t3-theme:hover { color: var(--ink); border-color: var(--ink-3); }

/* ---------- Le panneau des questions : à gauche, sur un voile ---------- */
.panel { position: fixed; z-index: 10; left: clamp(20px, 4vw, 64px); top: 76px; bottom: 20px; width: min(520px, 40vw); display: flex; flex-direction: column; justify-content: center; }
.panel[hidden] { display: none; }
.q { position: relative; max-height: 100%; display: flex; flex-direction: column; min-height: 0; }
.q__eyebrow { margin: 0 0 14px; font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.q__meta { display: flex; justify-content: space-between; align-items: center; min-height: 24px; margin: 0 0 14px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.q__back { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 0; border: 0; background: none; color: var(--ink-3); font: inherit; cursor: pointer; }
.q__back svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.q__back:hover { color: var(--ink); }
.q__back:hover svg { transform: translateX(-3px); }
.q__react { display: flex; align-items: center; gap: 9px; max-width: 100%; margin: 0 0 14px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); animation: rise .45s var(--ease) both; }
.q__react img { width: 24px; height: 24px; border-radius: 4px; object-fit: cover; flex: none; }
.dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.dots i { width: 5px; height: 5px; background: var(--ink-3); animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.q__title { margin: 0 0 10px; font-size: clamp(26px, 2.7vw, 38px); line-height: 1.08; font-weight: 600; letter-spacing: -.036em; color: var(--ink); text-wrap: balance; }
.q__title--xl { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.02; letter-spacing: -.042em; }
.q__title .w { display: inline-block; }
.q.is-in .q__title .w { animation: wordIn .55s var(--ease) both; animation-delay: calc(var(--i) * 26ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.38em); filter: blur(4px); } }
.q__sub { margin: 0 0 20px; max-width: 52ch; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.q__input { min-height: 0; }
.q.is-in .q__sub, .q.is-in .q__input, .q.is-in .q__actions, .q.is-in .q__fine, .q.is-in .byline, .q.is-in .gets, .q.is-in .res, .q.is-in .gate, .q.is-in .chap__box { animation: rise .55s var(--ease) both; animation-delay: .14s; }
.q.is-in .q__actions { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } }
.q.is-out { animation: qOut .22s cubic-bezier(.4, 0, .9, .5) both; }
.q.is-out-back { animation: qOutBack .22s cubic-bezier(.4, 0, .9, .5) both; }
.q.is-in-back { animation: qInBack .45s var(--ease) both; }
.q.is-in-back .q__title .w { animation: none; }
@keyframes qOut { to { opacity: 0; transform: translateX(-18px); filter: blur(6px); } }
@keyframes qOutBack { to { opacity: 0; transform: translateX(18px); filter: blur(6px); } }
@keyframes qInBack { from { opacity: 0; transform: translateX(-18px); filter: blur(6px); } }
.q__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; }
.q__actions .btn[disabled] { opacity: .42; pointer-events: none; box-shadow: none; }
.q__skip { padding: 6px 0; border: 0; background: none; color: var(--ink-3); font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.q__skip:hover { color: var(--ink); }
.q__fine { margin: 12px 0 0; max-width: 56ch; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.byline { display: flex; align-items: center; gap: 11px; margin: 26px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.byline img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex: none; }
.byline b { display: block; color: var(--ink); font-weight: 600; }
.btn { border-radius: var(--r); }

/* L'accueil */
.gets { display: grid; margin: 0 0 4px; padding: 0; list-style: none; max-width: 520px; }
.gets li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.gets li:last-child { border-bottom: 1px solid var(--line); }
.gets li span { grid-row: 1 / span 2; font: 500 11.5px/1.9 var(--mono); color: var(--signal); }
.gets li b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }

/* ---------- Les réponses : des touches nettes ---------- */
.opt {
  position: relative; display: grid; align-content: start; gap: 3px; width: 100%;
  padding: 12px 14px; border: 0; border-radius: var(--r); text-align: left; cursor: pointer;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 18px -16px rgba(25, 42, 59, .5);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
  animation: optIn .5s var(--ease) both; animation-delay: calc(120ms + var(--i, 0) * 40ms);
}
@keyframes optIn { from { opacity: 0; transform: translateY(10px); } }
.opt:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--ink-3), 0 14px 24px -18px rgba(25, 42, 59, .55); }
.opt:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.opt[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--mark), 0 14px 24px -18px rgba(25, 42, 59, .55); }
.opt.is-picked { animation: pick .36s var(--spring); }
@keyframes pick { 40% { transform: scale(.975); } }
.opt__t { font-size: 15.5px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.opt__d { font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.ic { width: 26px; height: 26px; margin-bottom: 6px; color: var(--mark); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cards--5 .opt:last-child { grid-column: 1 / -1; }
.quotes { display: grid; gap: 8px; }
.quotes .opt { padding: 13px 16px; }
.quotes .opt__t { font-size: 16.5px; font-weight: 500; letter-spacing: -.016em; }

.quotes--many { gap: 5px; }
.quotes--many .opt { padding: 9px 14px; }
.quotes--many .opt__t { font-size: 15px; }

/* Ceci ou cela */
.duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 10px; }
.duel__c { align-content: center; min-height: 150px; padding: 18px 18px; }
.duel__t { font-size: 19px; font-weight: 600; letter-spacing: -.022em; line-height: 1.22; }
.duel__d { font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.duel__ou { align-self: center; display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: var(--paper); font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; transform: rotate(45deg); }
.duel__ou::first-line { line-height: 1; }
.duel__ou { font-size: 0; }
.duel__ou::after { content: 'ou'; font: 600 11px var(--mono); letter-spacing: .06em; transform: rotate(-45deg); }

/* Le bouton rotatif, comme sur un appareil Braun */
.knob { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 22px; }
.knob__dial { position: relative; width: 190px; height: 190px; cursor: grab; touch-action: none; outline: none; }
.knob__dial:focus-visible { outline: 2px solid var(--mark); outline-offset: 4px; }
.knob__dial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.knob__ring { fill: none; stroke: var(--line); stroke-width: 1; }
.knob__tick { stroke: var(--ink-3); stroke-width: 2; }
.knob__cap { position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #FFFFFF, #E3ECE7 68%, #C9D6CF); box-shadow: 0 0 0 1px rgba(25, 42, 59, .14), 0 10px 18px -8px rgba(25, 42, 59, .5), inset 0 -4px 8px rgba(25, 42, 59, .08); transition: transform .45s var(--spring); }
.knob__cap i { position: absolute; left: 50%; top: 10px; width: 4px; height: 34px; margin-left: -2px; background: var(--signal); }
.knob__dial.is-click .knob__cap { animation: pick .3s var(--spring); }
.knob__labels { display: grid; gap: 6px; }
.knob__l { padding: 9px 12px; border: 0; border-radius: var(--r); background: none; color: var(--ink-2); font: 500 15px var(--font); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: background-color .2s, color .2s; }
.knob__l:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.knob__l[aria-pressed="true"] { color: var(--ink); font-weight: 600; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }

/* Les jetons */
.tokens { display: grid; gap: 8px; }
.tokens__h { display: flex; align-items: center; gap: 14px; margin: 0 0 2px; font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tokens__h span:first-child { flex: none; min-width: 190px; }
.tokens__bar { flex: 1; display: flex; gap: 2px; height: 8px; }
.tokens__bar i { background: var(--viz); transition: flex .3s var(--ease); }
.tokens__bar i:first-child { background: var(--signal); }
.tokens__bar i.is-free { background: var(--line); }
.tokens ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tok { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px 30px 30px; align-items: center; gap: 10px; padding: 3px 4px 3px 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); transition: box-shadow .2s; }
.tok.is-on { box-shadow: 0 0 0 1px var(--ink-3); }
.tok.is-tap { animation: pick .3s var(--spring); }
.tok__l { padding: 6px 0; border: 0; background: none; color: var(--ink); font: 500 14.5px var(--font); text-align: left; cursor: pointer; }
.tok__dots { display: flex; gap: 3px; }
.tok__dots i { width: 7px; height: 7px; background: var(--line); transition: background-color .2s; }
.tok__dots i.is-on { background: var(--viz); }
.tok__n { font: 600 13px var(--mono); color: var(--ink); text-align: right; }
.tok__b { width: 30px; height: 30px; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); font: 500 17px var(--font); cursor: pointer; }
.tok__b:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }

/* La température */
.heat { display: grid; gap: 8px; }
.heat__r { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 8px 8px 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); }
.heat__l { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.heat__s { display: flex; gap: 4px; }
.heat__b { display: grid; justify-items: center; gap: 5px; width: 74px; padding: 7px 0 6px; border: 0; border-radius: 6px; background: none; color: var(--ink-3); font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.heat__b i { display: block; width: 46px; height: 6px; background: var(--line); transition: background-color .25s, box-shadow .25s; }
.heat__r[data-l="1"] .heat__b:nth-child(-n+1) i { background: #F3B48C; }
.heat__r[data-l="2"] .heat__b:nth-child(-n+2) i { background: #F78A4C; }
.heat__r[data-l="3"] .heat__b:nth-child(-n+3) i { background: var(--signal); box-shadow: 0 0 10px rgba(247, 99, 12, .6); }
.heat__b[aria-checked="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }

/* Les interrupteurs */
.board { display: grid; gap: 12px; }
.board__h { margin: 0 0 6px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.board__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sw { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: var(--r); background: var(--surface); color: var(--ink); font: 500 14px var(--font); text-align: left; cursor: pointer; box-shadow: 0 0 0 1px var(--line); animation: optIn .45s var(--ease) both; animation-delay: calc(100ms + var(--i) * 30ms); transition: box-shadow .2s; }
.sw__k { position: relative; flex: none; width: 30px; height: 16px; background: var(--line); transition: background-color .2s; }
.sw__k i { position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(25, 42, 59, .4); transition: transform .25s var(--spring); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--ink-3); }
.sw[aria-pressed="true"] .sw__k { background: var(--signal); }
.sw[aria-pressed="true"] .sw__k i { transform: translateX(14px); }

/* Le texte libre */
.field-xl { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 500 18px var(--font); letter-spacing: -.012em; outline: none; transition: border-color .2s, box-shadow .2s; }
.field-xl:focus { border-color: var(--mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 16%, transparent); }

/* Le curseur */
.esq-dial { padding: 18px 20px 14px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 20px 36px -30px rgba(25, 42, 59, .45); }
.esq-dial__out { display: block; margin-bottom: 12px; font-size: clamp(30px, 3.3vw, 46px); font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.esq-dial__range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; }
.esq-dial__range::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--signal) var(--p, 30%), var(--line) var(--p, 30%)); }
.esq-dial__range::-moz-range-track { height: 6px; background: var(--line); }
.esq-dial__range::-moz-range-progress { height: 6px; background: var(--signal); }
.esq-dial__range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 4px; background: linear-gradient(180deg, #FFFFFF, #E3ECE7); box-shadow: 0 0 0 1px rgba(25, 42, 59, .16), 0 6px 12px -4px rgba(25, 42, 59, .45); }
.esq-dial__range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 4px; background: #F7FAF8; box-shadow: 0 0 0 1px rgba(25, 42, 59, .16), 0 6px 12px -4px rgba(25, 42, 59, .45); }
.esq-dial__range:focus-visible { outline: 2px solid var(--mark); outline-offset: 6px; }
.esq-dial__live { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* Le résultat prêt et la porte */
.res { margin: 4px 0 14px; padding: 16px 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); }
.res__pot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.res__pot b { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.res__pot span { font-size: 14px; color: var(--ink-3); }
.res__pot em { font-style: normal; color: var(--signal); font-weight: 600; }
.res__pot--t { display: grid; }
.res__pot--t span { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.res__pot--t b { font-size: 22px; letter-spacing: -.02em; }
.res__pistes { display: grid; gap: 4px; margin: 0 0 10px; padding: 0; list-style: none; }
.res__pistes li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; font-size: 14.5px; font-weight: 500; }
.res__pistes span { font: 500 11.5px/1.9 var(--mono); color: var(--signal); }
.res__pistes b { font: 600 12.5px/1.8 var(--mono); color: var(--ink-3); }
.res__lock { margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.gate__label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; letter-spacing: -.012em; color: var(--ink); }
.gate__row { display: flex; gap: 8px; }
.gate__row input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 500 16px var(--font); outline: none; }
.gate__row input:focus { border-color: var(--mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 16%, transparent); }
.gate__err { margin: 8px 0 0; font-size: 14px; color: var(--signal); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.share { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; }
.share__menu { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.share__menu[hidden] { display: none; }
.share__menu button { padding: 8px 12px; border: 0; border-radius: 6px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font: 500 13.5px var(--font); cursor: pointer; animation: optIn .3s var(--ease) both; }
.share__menu button:hover { box-shadow: 0 0 0 1px var(--ink-3); }
.defi { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); }
.defi b { font-size: 40px; font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--signal); }
.defi span { font-size: 15px; line-height: 1.4; color: var(--ink); font-weight: 500; }

.t3-toast { position: fixed; z-index: 70; left: clamp(16px, 4vw, 64px); bottom: 22px; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-size: 14.5px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6); animation: rise .4s var(--ease) both; }

/* ---------- Le résultat, en descendant ---------- */
body.is-doc .doc { position: relative; z-index: 5; max-width: none; padding: 0 0 120px; }
.doc__hero { display: flex !important; flex-direction: column; justify-content: center; align-items: flex-start !important; min-height: calc(100dvh - 64px); padding: 0 clamp(20px, 4vw, 64px) 40px; }
.doc__intro { max-width: min(560px, 44vw); }
.doc__paper { max-width: 1160px; margin: 0 auto; }
.doc__paper > .doc__toc { margin: -6px 0 18px; padding: 0 0 14px; border-top: 0; }
.doc__profil { display: grid; gap: 2px; margin: 0 0 14px; }
.doc__profil span { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.doc__profil b { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.03em; color: var(--signal); }
.doc__pot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 14px; }
.doc__pot b { font-size: clamp(38px, 4.6vw, 64px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.doc__pot span { font-size: 15px; color: var(--ink-3); }
.doc__pot em { font-style: normal; color: var(--signal); font-weight: 600; }
.verdict { margin: 4px 0 22px; padding: 18px 20px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); }
.verdict--free { box-shadow: 0 0 0 1px var(--line); }
.verdict__h { margin: 0 0 4px !important; font: 500 10.5px var(--mono) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3) !important; }
.verdict h3 { margin: 0 0 6px !important; font-size: 21px !important; }
.t3-needs { display: grid; gap: 10px; margin: 0 0 10px; padding: 0; list-style: none; }
.t3-needs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; }
.t3-needs__t { font-size: 16px; font-weight: 600; letter-spacing: -.012em; color: var(--ink); }
.t3-needs__t small { margin-left: 10px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.t3-needs b { font: 600 13px var(--mono); color: var(--ink); }
.t3-needs i { grid-column: 1 / -1; height: 5px; background: linear-gradient(90deg, var(--viz) var(--p), var(--line) var(--p)); }
.t3-needs li:first-child i { background: linear-gradient(90deg, var(--signal) var(--p), var(--line) var(--p)); }
.dsec.is-in .t3-needs i { animation: barIn 1.1s var(--ease) .3s both; }
.pot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 10px; }
.pot p { display: grid; gap: 4px; margin: 0 !important; padding: 14px 16px; background: var(--paper); border-radius: var(--r); }
.pot b { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.035em; line-height: 1.1; color: var(--ink); }
.pot p:first-child b { color: var(--signal); }
.pot span { font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.qwl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qwl__c { padding: 18px 20px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); }
.qwl__n { margin: 0 0 6px !important; font: 500 10.5px var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--signal) !important; }
.qwl__c h3 { margin: 0 0 6px !important; font-size: 18px !important; }
.qwl__c p { font-size: 15px !important; line-height: 1.5 !important; margin-bottom: 0 !important; }
.dsec.is-in .qwl__c, .dsec.is-in .piste { animation: rise .6s var(--ease) both; animation-delay: calc(.15s + var(--i, 0) * 90ms); }
.pistes { display: grid; gap: 10px; margin-bottom: 16px; }
.piste { padding: 16px 20px; box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); }
.piste__n { display: flex; justify-content: space-between; margin: 0 0 4px !important; font: 500 12px var(--mono) !important; color: var(--signal) !important; }
.piste__n span { color: var(--ink-3); }
.piste h3 { margin: 0 0 8px !important; font-size: 19px !important; }
.piste p { font-size: 15.5px !important; margin-bottom: 6px !important; }
.piste p b { color: var(--ink); }

/* ---------- La proposition ---------- */
.doc { max-width: 1200px; margin: 0 auto; padding: clamp(12px, 3vh, 36px) clamp(16px, 3vw, 40px) 120px; }
.doc__hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.doc__stage { order: 2; }
.doc__title { margin: 0 0 14px; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.03; font-weight: 600; letter-spacing: -.042em; text-wrap: balance; }
.doc__promise { margin: 0 0 14px; font-size: 21px; line-height: 1.4; letter-spacing: -.015em; color: var(--ink-2); }
.doc__sent { margin: 0 0 22px; font-size: 14.5px; color: var(--ink-3); }
.doc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.doc__toc { order: 3; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc__toc a { display: inline-flex; gap: 8px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.doc__toc a span { font: 500 12px/1.7 var(--mono); color: var(--ink-3); }
.doc__toc a:hover { color: var(--ink); }
.doc__paper {
  margin-top: 28px; padding: clamp(22px, 5vw, 72px); border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 50px 90px -60px rgba(25, 42, 59, .55);
}
.dsec { display: grid; grid-template-columns: 64px minmax(0, 740px); column-gap: 24px; padding: 42px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.dsec:first-child { padding-top: 6px; border-top: 0; }
.dsec > * { grid-column: 2; }
.dsec__n { grid-column: 1; grid-row: 1 / span 2; margin: 6px 0 0; font: 500 13px var(--mono); color: var(--ink-3); }
.dsec h2 { margin: 0 0 18px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.032em; }
.dsec h3 { margin: 22px 0 10px; font-size: 18px; letter-spacing: -.015em; }
.dsec p { margin: 0 0 14px; font-size: 17px; line-height: 1.62; color: var(--ink-2); }
.dsec.is-hold { opacity: 0; transform: translateY(20px); }
.dsec.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.doc__lead { font-size: 21px !important; line-height: 1.45 !important; font-weight: 500; letter-spacing: -.015em; color: var(--ink) !important; }
.doc__fine { font-size: 14px !important; color: var(--ink-3) !important; }
.doc__quote { margin: 0 0 20px; padding: 0; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.35; letter-spacing: -.02em; color: var(--ink); }
.doc__quote cite { display: block; margin-top: 10px; font: 500 11.5px var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.doc__illu { margin: 26px 0 0; padding: 22px; border-radius: 18px; background: var(--paper); }
.doc__illu .illu { aspect-ratio: 520 / 300; }
.doc__illu figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bricks, .ticks, .esq-steps { list-style: none; margin: 0; padding: 0; }
.bricks { display: grid; gap: 8px; }
.bricks li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 14px 18px; border-radius: 14px; background: var(--paper); font-size: 16.5px; line-height: 1.45; color: var(--ink); }
.bricks li span { font: 500 12.5px/1.9 var(--mono); color: var(--signal); }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--mark); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E"); }
.ticks li::after { content: ''; position: absolute; left: 7.5px; top: 9px; width: 4px; height: 8px; border: solid var(--surface); border-width: 0 2px 2px 0; transform: rotate(42deg); }
.dsec--dark { margin: 18px calc(-1 * clamp(14px, 3vw, 40px)); padding: 46px clamp(14px, 3vw, 40px); border: 0; border-radius: 22px; background: radial-gradient(80% 90% at 0% 0%, rgba(34, 70, 106, .95), transparent 72%), radial-gradient(60% 70% at 100% 100%, rgba(247, 99, 12, .22), transparent 70%), #192A3B; }
.dsec--dark + .dsec { border-top: 0; }
.dsec--dark h2, .dsec--dark p { color: #F1F6F4 !important; }
.dsec--dark .dsec__n, .dsec--dark .doc__fine { color: rgba(241, 246, 244, .62) !important; }
.gain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 4px 0 22px; }
.gain p { display: grid; gap: 4px; margin: 0 !important; }
.gain b { font-size: clamp(34px, 4.2vw, 58px); font-weight: 600; letter-spacing: -.045em; line-height: 1; color: #FF8A3D; }
.gain span { font-size: 14px; color: rgba(241, 246, 244, .75); }
.esq-steps { position: relative; display: grid; }
.esq-steps li { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 4px 0 26px; }
.esq-steps li:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 40px; bottom: 2px; width: 1.5px; background: var(--line); transform-origin: top; }
.dsec.is-in .esq-steps li:not(:last-child)::before { animation: lineDown .9s var(--ease) both; animation-delay: calc(.35s + var(--i) * .45s); }
.dsec.is-in .esq-steps__n { animation: pick .6s var(--spring) both; animation-delay: calc(.2s + var(--i) * .45s); }
.dsec.is-in .esq-steps li > div { animation: rise .7s var(--ease) both; animation-delay: calc(.25s + var(--i) * .45s); }
@keyframes lineDown { from { transform: scaleY(0); } }
.esq-steps__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); font: 500 14px var(--mono); }
.esq-steps li:first-child .esq-steps__n { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.esq-steps h3 { margin: 6px 0 4px !important; }
.esq-steps__d { margin: 0 0 8px !important; font: 500 12px var(--mono) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--signal) !important; }
.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.price p { display: grid; gap: 6px; margin: 0 !important; padding: 18px 20px; border-radius: 16px; background: var(--paper); }
.price span { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.price b { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.esq-case { margin-bottom: 16px; padding: 20px 22px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.esq-case .q__eyebrow { margin-bottom: 6px; }
.esq-case h3 { margin: 0 0 8px !important; font-size: 22px !important; }
.qa { border-top: 1px solid var(--line); }
.qa:first-of-type { border-top: 0; }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; background: no-repeat center / 12px linear-gradient(var(--ink), var(--ink)) , no-repeat center / 1.6px 12px linear-gradient(var(--ink), var(--ink)); background-size: 12px 1.6px, 1.6px 12px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa h3 { margin: 0 !important; font-size: 17.5px !important; }
.qa p { padding-bottom: 6px; animation: rise .4s var(--ease) both; }
.dsec--last .byline { margin-top: 30px; }
.esq-toast { position: fixed; z-index: 70; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 15px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6); animation: rise .4s var(--ease) both; }

/* ---------- Le premier chantier, dans la proposition ---------- */
.first { padding: 22px 24px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.first h3 { margin: 4px 0 10px !important; font-size: 22px !important; }
.first__target { margin: 12px 0 0 !important; padding-top: 12px; border-top: 1px dashed var(--line); font-weight: 600; color: var(--ink) !important; }

/* ---------- Le diagnostic : le radar, les lectures, ce que la situation coûte déjà ---------- */
.diag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 8px 0 18px; }
.radar { display: block; width: 100%; height: auto; overflow: visible; }
.radar__g { fill: none; stroke: var(--line); stroke-width: 1; }
.radar__a { fill: color-mix(in srgb, var(--viz) 16%, transparent); stroke: var(--viz); stroke-width: 2; stroke-linejoin: round; }
.radar__p { fill: var(--viz); stroke: var(--surface); stroke-width: 2; }
.radar__l { font: 500 12px var(--font); fill: var(--ink-2); }
.radar__v { font: 600 12px var(--mono); fill: var(--ink); }
.radar__s { transform-origin: 170px 150px; transform-box: view-box; }
.dsec.is-hold:not(.is-in) .radar__s { transform: scale(.2); opacity: 0; }
.dsec.is-in .radar__s { animation: radarIn 1.3s var(--spring) .25s both; }
@keyframes radarIn { from { transform: scale(.15); opacity: 0; } }
.diag__list { display: grid; gap: 12px; margin: 0; }
.diag__list dt { display: flex; justify-content: space-between; gap: 10px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.diag__list dt b { font: 600 13px var(--mono); color: var(--ink); }
.diag__list dd { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.diag__list dd i { display: block; height: 4px; margin-bottom: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--viz) var(--v), var(--line) var(--v)); }
.dsec.is-in .diag__list dd i { animation: barIn 1.2s var(--ease) .4s both; }
@keyframes barIn { from { background-size: 0 100%; background-repeat: no-repeat; } }
.cost { margin: 6px 0 16px; padding: 20px 22px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.cost__n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 8px !important; }
.cost__n b { font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--signal); }
.cost__n span { font-size: 15px; color: var(--ink-3); }

/* ---------- Le calcul de rentabilité, avec les chiffres du visiteur ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px 34px; margin: 10px 0 14px; }
.calc__in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; align-content: start; }
.calc__f { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 10px; }
.calc__t { font-size: 14px; line-height: 1.35; color: rgba(241, 246, 244, .82); }
.calc__o { font: 600 16px var(--mono); color: #BACDB8; white-space: nowrap; }
.calc__f input { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer; }
.calc__f input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #F7630C var(--p, 30%), rgba(241, 246, 244, .18) var(--p, 30%)); }
.calc__f input::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(241, 246, 244, .18); }
.calc__f input::-moz-range-progress { height: 6px; border-radius: 6px; background: #F7630C; }
.calc__f input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFFFFF, #E6EEEA 70%); box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .5); }
.calc__f input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #F1F6F4; }
.calc__f input:focus-visible { outline: 2px solid #BACDB8; outline-offset: 4px; border-radius: 8px; }
.calc__d { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.4; color: rgba(241, 246, 244, .55); }
.calc__res { display: grid; align-content: start; gap: 12px; padding: 20px 22px; border-radius: 18px; background: rgba(241, 246, 244, .06); box-shadow: inset 0 0 0 1px rgba(241, 246, 244, .1); }
.calc__big { display: grid; gap: 4px; margin: 0 !important; }
.calc__big b { font-size: clamp(38px, 4.6vw, 62px); font-weight: 600; letter-spacing: -.045em; line-height: 1; color: #FF8A3D; }
.calc__big span { font-size: 14px; color: rgba(241, 246, 244, .7) !important; }
.calc__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.calc__facts p { display: grid; margin: 0 !important; }
.calc__facts b { font: 600 18px var(--mono); color: #F1F6F4; }
.calc__facts span { font-size: 12.5px; color: rgba(241, 246, 244, .6); }
.calc__mid { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 0 !important; padding-top: 10px; border-top: 1px dashed rgba(241, 246, 244, .16); }
.calc__mid span { font-size: 13.5px; color: rgba(241, 246, 244, .7); }
.calc__mid b { font: 600 18px var(--mono); color: #F1F6F4; white-space: nowrap; }
.calc__chart { position: relative; grid-column: 1 / -1; margin: 4px 0 0; }
.calc__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 6px; font-size: 12.5px; color: rgba(241, 246, 244, .7); }
.k { display: inline-flex; align-items: center; gap: 8px; }
.k::before { content: ''; width: 18px; height: 0; border-top: 2.5px solid #BACDB8; border-radius: 2px; }
.k--inv::before { border-top: 1.6px dashed rgba(241, 246, 244, .7); }
.chart { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart__g { stroke: rgba(241, 246, 244, .1); stroke-width: 1; }
.chart__t { font: 500 10.5px var(--mono); fill: rgba(241, 246, 244, .5); }
.chart__area { fill: rgba(186, 205, 184, .1); }
.chart__gain { fill: none; stroke: #BACDB8; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart__inv { stroke: rgba(241, 246, 244, .6); stroke-width: 1.6; stroke-dasharray: 5 5; }
.chart__be { fill: #F7630C; stroke: #192A3B; stroke-width: 2.5; }
.chart__bel { font: 600 12px var(--font); fill: #F1F6F4; }
.chart__x { stroke: rgba(241, 246, 244, .4); stroke-width: 1; }
.chart__hit { fill: transparent; cursor: crosshair; }
.chart__tip { position: absolute; top: 18px; transform: translateX(-50%); margin: 0 !important; padding: 7px 11px; border-radius: 10px; background: #F1F6F4; color: #192A3B !important; font-size: 12.5px !important; line-height: 1.35 !important; white-space: nowrap; pointer-events: none; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.chart__tip b { margin-right: 6px; }
.chart__tip i { font-style: normal; font-weight: 600; }

/* ---------- La confiance : les promesses choisies pour ce visiteur ---------- */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 18px; }
.trust__c { display: flex; flex-direction: column; padding: 20px 22px 18px; border-radius: 18px; background: var(--paper); }
.trust__n { margin: 0 0 8px !important; font: 500 12px var(--mono) !important; color: var(--signal) !important; }
.trust__c h3 { margin: 0 0 8px !important; font-size: 18px !important; line-height: 1.3; letter-spacing: -.018em; }
.trust__c p { font-size: 15px !important; line-height: 1.5 !important; margin-bottom: 10px !important; }
.trust__why { margin: auto 0 0 !important; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px !important; color: var(--ink) !important; }
.trust__why span { display: block; margin-bottom: 3px; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.dsec.is-in .trust__c { animation: rise .7s var(--ease) both; animation-delay: calc(.2s + var(--i) * 110ms); }
.proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.proofs p { display: grid; gap: 2px; margin: 0 !important; }
.proofs b { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; color: var(--ink); }
.proofs span { font-size: 13.5px; line-height: 1.35; color: var(--ink-3); }

/* ---------- Le rendez-vous, demandé sans quitter la page ---------- */
.rdv { margin: 22px 0 0; padding: 22px 24px; border-radius: 20px; background: var(--paper); }
.rdv__h { margin: 0 0 14px !important; font-size: 19px !important; font-weight: 600; letter-spacing: -.018em; color: var(--ink) !important; }
.rdv fieldset { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.rdv legend { margin-bottom: 8px; padding: 0; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.rdv legend i { font-style: normal; text-transform: none; letter-spacing: 0; font-family: var(--font); margin-left: 4px; }
.rdv__days, .rdv__row { display: flex; flex-wrap: wrap; gap: 7px; }
.rdv__c { padding: 9px 14px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: 500 14px var(--font); cursor: pointer; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, background-color .2s, transform .2s var(--spring); }
.rdv__c:first-letter { text-transform: uppercase; }
.rdv__c:hover { box-shadow: 0 0 0 1px var(--ink-3); }
.rdv__c[aria-pressed="true"], .rdv__c[aria-checked="true"] { background: color-mix(in srgb, var(--mark) 12%, var(--surface)); box-shadow: 0 0 0 2px var(--mark); font-weight: 600; }
.rdv__c:active { transform: scale(.96); }
.rdv__c:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.rdv__fine { margin: 8px 0 0 !important; font-size: 13.5px !important; color: var(--ink-3) !important; }
.rdv__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; margin-bottom: 6px; }
.rdv__fields label { display: grid; gap: 6px; }
.rdv__fields span { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.rdv__fields span i { font-style: normal; text-transform: none; letter-spacing: 0; font-family: var(--font); }
.rdv__fields input { height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: 500 16px var(--font); outline: none; transition: border-color .2s, box-shadow .2s; }
.rdv__fields input:focus { border-color: var(--mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 18%, transparent); }
.rdv .doc__actions { margin-top: 14px; }
.rdv--done { animation: rise .6s var(--ease) both; }
.rdv__ok { display: flex; align-items: center; gap: 10px; margin: 0 0 8px !important; font-size: 20px !important; font-weight: 600; letter-spacing: -.02em; color: var(--ink) !important; }
.rdv__ok svg { width: 28px; height: 28px; fill: none; stroke: var(--mark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }


/* ---------- Des arêtes nettes, aussi dans le résultat ---------- */
.doc__paper { border-radius: 12px; }
.dsec--dark { border-radius: 10px; }
.bricks li, .price p, .esq-case, .first, .cost, .calc__res, .trust__c, .rdv, .rdv__fields input, .doc__illu, .qa summary::after { border-radius: var(--r); }
.rdv__c { border-radius: 6px; }
.esq-steps__n { border-radius: 4px; }
.esq-steps li:first-child .esq-steps__n { background: var(--signal); color: #FFFFFF; }
.radar__p { fill: var(--viz); stroke: var(--surface); stroke-width: 2; }
.radar__a { fill: color-mix(in srgb, var(--viz) 16%, transparent); stroke: var(--viz); }
.diag__list dd i { background: linear-gradient(90deg, var(--viz) var(--v), var(--line) var(--v)); }
.chart__be { fill: #F7630C; stroke: #192A3B; stroke-width: 2.5; }
.ticks li::before { border-radius: 3px; }

/* ---------- La barre : les gains rapides, recommencer ---------- */
.t3-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.t3-qw, .t3-restart { display: inline-flex; align-items: center; gap: 8px; height: 34px; border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink-2); cursor: pointer; }
.t3-qw { padding: 0 5px 0 12px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.t3-qw .s { display: none; }
.t3-qw b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 4px; background: var(--signal); color: #FFFFFF; font: 600 12px var(--mono); }
.t3-qw.is-tick b { animation: pick .5s var(--spring); }
.t3-restart { padding: 0 12px; font: 500 13px var(--font); }
.t3-restart svg { width: 15px; height: 15px; }
.t3-qw:hover, .t3-restart:hover { color: var(--ink); border-color: var(--ink-3); }
.t3-qw[hidden], .t3-restart[hidden] { display: none; }
.pop { position: fixed; z-index: 60; top: 58px; right: clamp(16px, 3vw, 40px); width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 80px); overflow: auto; padding: 16px 18px; background: var(--surface); border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(25, 42, 59, .55); animation: rise .3s var(--ease) both; }
.pop[hidden] { display: none; }
.pop__h { margin: 0 0 6px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pop__qw { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.pop__qw span { font: 500 11.5px/1.7 var(--mono); color: var(--signal); }
.pop__qw b { display: block; font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.pop__qw p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.pop--confirm p { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -.012em; color: var(--ink); }
.pop--confirm small { display: block; margin-bottom: 14px; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.pop--confirm div { display: flex; align-items: center; gap: 18px; }

/* ---------- Les questions : une seule voix ---------- */
.q__count { color: var(--ink-2); }
.q__echo { margin: 0 0 10px; max-width: 52ch;  font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.q.is-in .q__echo { animation: rise .45s var(--ease) both; }
.q__title--l { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.04; letter-spacing: -.04em; }
.gets em { grid-column: 2; font-style: normal; font-size: 13.5px; color: var(--ink-3); }
.hypo { display: grid; gap: 12px; }
.hypo__k { margin: 0 0 6px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hypo__main { padding: 16px 20px 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); }
.hypo__t { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.022em; line-height: 1.25; color: var(--ink); }
.hypo__alt { display: grid; gap: 6px; }
.hypo__alt .hypo__k { margin: 2px 0 0; }
.hypo__o { padding: 11px 14px; }
.hypo__o span { font-size: 14.5px; font-weight: 500; }

/* Entre deux chapitres : une transition, sans bouton */
.q--chap { cursor: pointer; }
.chap__box { display: grid; gap: 8px; margin-top: 4px; max-width: 460px; }
.chap__l { display: grid; gap: 2px; margin: 0; padding: 10px 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); animation: rise .5s var(--ease) both; animation-delay: calc(.3s + var(--i) * .18s); }
.chap__l span { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.chap__l b { font-size: 16px; font-weight: 600; letter-spacing: -.012em; color: var(--ink); }
.chap__time { position: relative; display: block; width: 120px; height: 2px; margin-top: 22px; overflow: hidden; background: var(--line); }
.chap__time::after { content: ''; position: absolute; inset: 0; background: var(--ink-3); transform-origin: left; animation: chapTime var(--t) linear both; }
@keyframes chapTime { from { transform: scaleX(0); } }

/* ---------- La piste probable, sous la ligne ---------- */
.t3-piste { position: fixed; z-index: 8; margin: 0; font-size: 14.5px; font-weight: 500; text-align: center; color: var(--ink-2); pointer-events: none; }
.t3-piste[hidden] { display: none; }
.t3-piste.is-new { animation: rise .6s var(--ease) both; }

/* ---------- Les étiquettes posées sur la ligne ---------- */
.maq-tags { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.maq-tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; white-space: nowrap; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: color-mix(in srgb, var(--surface) 90%, transparent); border-radius: 4px; box-shadow: 0 0 0 1px var(--line); translate: -50% 8px; animation: tagIn .5s var(--ease) both; will-change: transform; }
@keyframes tagIn { from { opacity: 0; } }
.maq-tag::before { content: ''; flex: none; width: 7px; height: 7px; background: #BACDB8; }
.maq-tag.is-slow-1::before { background: #F3B48C; }
.maq-tag.is-slow-2::before { background: #F78A4C; }
.maq-tag.is-slow-3::before { background: var(--signal); }
.maq-tag.is-slow-3 { color: var(--signal); box-shadow: 0 0 0 1px color-mix(in srgb, var(--signal) 50%, transparent); }
.maq-tag--bout { color: var(--ink-2); }
.maq-tag--bout::before { display: none; }
.maq-tag--bout.is-out { color: var(--ink); }
.maq-tag--perdu.is-file { color: var(--ink-2); translate: -50% -100%; }
.maq-tag--perdu.is-file::before { background: var(--signal); }
.maq-tag--poste.is-bas { translate: -50% 36px; }
.maq-tag--poste.is-bas2 { translate: -50% 64px; }
.maq-tags[data-dense] .maq-tag { padding: 3px 6px; font-size: 9.5px; letter-spacing: .05em; }
.maq-tags[data-dense] .maq-tag::before { width: 5px; height: 5px; }
.maq-tag--perdu:not(.is-file) { translate: -50% 6px; }
.maq-tag--perdu { color: #C8442E; background: none; box-shadow: none; translate: -50% -100%; }
.maq-tag--perdu::before { background: #C8442E; }
.maq-tag--nom { font-size: 13px; color: var(--ink-2); background: none; box-shadow: none; translate: -50% -100%; }
.maq-tag--nom::before { display: none; }

/* ---------- La vue : aujourd'hui, ou avec vos pistes ---------- */
.view-sw { position: fixed; z-index: 9; display: inline-flex; gap: 2px; padding: 3px; translate: -50% 0; background: var(--surface); border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 16px 30px -20px rgba(25, 42, 59, .5); transition: opacity .3s; }
.view-sw[hidden] { display: none; }
.view-sw.is-away { opacity: 0; pointer-events: none; }
.view-sw button { padding: 8px 14px; border: 0; border-radius: 6px; background: none; color: var(--ink-3); font: 500 13.5px var(--font); cursor: pointer; white-space: nowrap; }
.view-sw button:hover { color: var(--ink); }
.view-sw button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- Le résultat : la marge, le bouchon, les pistes ---------- */
.marge { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 6px 16px; margin: 6px 0 14px; }
.marge__n { display: flex; align-items: baseline; gap: 3px; margin: 0; grid-row: 2 / span 2; }
.marge__n b { font-size: 58px; font-weight: 600; letter-spacing: -.055em; line-height: .9; color: var(--signal); font-variant-numeric: tabular-nums; }
.marge__n span { font-size: 26px; font-weight: 600; color: var(--signal); }
.marge__l { display: grid; gap: 3px; margin: 0; }
.marge__l span { font-size: 15px; color: var(--ink-2); }
.marge__l b { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.marge__bar { align-self: center; height: 6px; overflow: hidden; background: var(--line); }
.marge__bar i { display: block; width: var(--v); height: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease); }
.marge.is-on .marge__bar i { transform: none; }
.marge__cmp { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.marge--big { margin: 4px 0 6px; }
.marge__k { grid-column: 1 / -1; margin: 0; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sum__angle { margin: 0 0 12px; max-width: 54ch; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
body.is-paper .t3-stage { visibility: hidden; }
@media (min-width: 700px) and (max-width: 999px) { .maq-tag { font-size: 12px !important; padding: 4px 9px !important; } }
.marge--mots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.marge__lvl { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--ink); }
.fourchette__si { color: var(--ink) !important; font-weight: 500; }
.fourchette__calc { font: 500 11.5px var(--mono) !important; letter-spacing: .02em; color: var(--ink-3) !important; }
.sum__angle .link { white-space: nowrap; }
.fourchette__garde { display: flex; gap: 10px; align-items: baseline; margin: 8px 0 0;  font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.sum__cta { margin: 0 0 16px; }
.share { gap: 6px 22px; margin-top: 4px; }
.defi b { white-space: nowrap; }
.marge--big .marge__n b { font-size: clamp(60px, 6vw, 88px); }
.sum__k { margin: 0 0 8px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sum__pistes { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.sum__pistes li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; font-size: 15.5px; line-height: 1.35; }
.sum__pistes span { font: 500 11.5px/1.75 var(--mono); color: var(--signal); }
.sum__pistes b { font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.q.is-in .marge, .q.is-in .sum__k, .q.is-in .sum__pistes li { animation: rise .55s var(--ease) both; animation-delay: calc(.2s + var(--i, 0) * 80ms); }
.gate__label { font-size: 15px; line-height: 1.4; }
.gate__who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.gate__who label { display: grid; gap: 4px; min-width: 0; }
.gate__who span { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.gate__who input { min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 500 15px var(--font); outline: none; }
.gate__who input:focus { border-color: var(--mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 16%, transparent); }
.q.is-in .gate { animation-delay: .35s; }

/* Le résultat complet tient sur un écran ; le détail se lit en descendant */
.sum { max-width: min(600px, 46vw); min-width: 0; }
.sum__cta { align-items: center; gap: 10px 22px; }
.sum__cta .btn { white-space: normal; max-width: 100%; }
@media (max-height: 820px) and (min-width: 1000px) { .sum .marge__cmp { display: none !important; } }
.sum__title { margin: 0 0 6px; font-size: clamp(32px, 3.5vw, 50px); line-height: 1.03; font-weight: 600; letter-spacing: -.042em; text-wrap: balance; color: var(--ink); }
.sum__nums { display: grid; gap: 4px; margin: 0 0 16px; }
.fourchette { display: grid; gap: 2px; margin: 0; padding: 12px 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); }
.fourchette b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.fourchette span { font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.sum__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sum__cols > :only-child { grid-column: 1 / -1; }
.sum__qw { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.sum__qw li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.sum__qw li::before { content: ''; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; background: #BACDB8; }
.sum .share { margin-top: 10px; }
.sum .doc__sent { margin: 12px 0 0; font-size: 13.5px; }
.sum .doc__sent .q__skip { font-size: 13.5px; padding: 0; }
.doc__credit { margin: 30px 0 0; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Grands écrans peu hauts ---------- */
@media (min-width: 1000px) and (max-height: 800px) {
  .doc__hero { padding-top: 24px; }
  .panel { top: 68px; bottom: 12px; }
  .q__title { font-size: clamp(24px, 2.4vw, 32px); }
  .q__title--xl { font-size: clamp(30px, 3.3vw, 44px); }
  .q__sub { margin-bottom: 14px; font-size: 15px; }
  .q__actions { margin-top: 14px; }
  .gets li { padding: 7px 0; }
  .byline { margin-top: 14px; }
  .duel__c { min-height: 118px; }
  .knob { grid-template-columns: 160px minmax(0, 1fr); }
  .knob__dial { width: 160px; height: 160px; }
  .knob__cap { inset: 24px; }
  .opt { padding: 10px 12px; }
  .marge--big .marge__n b { font-size: 52px; }
  .sum__title { font-size: clamp(28px, 3vw, 38px); }
  .sum__angle { font-size: 14px; margin-bottom: 8px; }
  .sum__nums { margin-bottom: 12px; }
  .sum__pistes, .sum__qw { margin-bottom: 10px; }
  .tok__l { padding: 4px 0; }
  .tok__b { width: 28px; height: 28px; }
}

/* ---------- Téléphone et tablette : la scène en haut, les questions dans une feuille ---------- */
@media (max-width: 999px) {
  .t3-stage canvas { -webkit-mask-image: none; mask-image: none; }
  body.t3[data-phase="q"][data-step="persona"] { --sheet-top: calc(52px + 12dvh); }
  .quotes--many .opt { padding: 8px 12px; }
  body.t3 { --sheet-top: calc(52px + clamp(150px, 26dvh, 250px)); }
  body.t3[data-phase="intro"], body.t3[data-phase="chap"] { --sheet-top: calc(52px + clamp(130px, 22dvh, 220px)); }
  body.t3[data-phase="ready"] { --sheet-top: calc(52px + clamp(170px, 22dvh, 210px)); }
  .t3-bar { height: 52px; gap: 14px; }
  .t3-brand i { display: none; }
  .t3-rail { gap: 4px; }
  .t3-rail span { display: none; }
  .t3-rail { display: none; }
  .t3-bar { justify-content: space-between; }
  .t3-tools { gap: 6px; }
  .t3-qw .l { display: none; }
  .t3-qw .s { display: inline; }
  .t3-restart span { display: none; }
  .t3-restart { padding: 0 9px; }
  .pop { top: 54px; left: 12px; right: 12px; width: auto; }
  .maq-tag { padding: 3px 6px; font-size: 9.5px; }
  .maq-tag--nom { display: none; }
  .t3-toast { top: 60px; bottom: auto; }
  .q--jetons .q__actions { padding-bottom: 8px; }
  .q--jetons .q__input { padding-bottom: 12px; }
  .q--jetons .q__actions { position: static; }
  .panel > .q { flex-shrink: 0; }
  .hypo__t { font-size: 18px; }
  .hypo__main { padding: 12px 16px 14px; }
  .q__echo { font-size: 13.5px; margin-bottom: 8px; }
  .marge__n b { font-size: 46px; }
  .marge__n span { font-size: 22px; }
  .marge { margin: 2px 0 10px; }
  .sum__pistes { margin-bottom: 10px; }
  .sum__pistes li { font-size: 14.5px; }
  .gate__who input { height: 42px; }
  .chap__time { margin-top: 14px; }
  .panel { left: 0; right: 0; top: var(--sheet-top); bottom: 0; width: auto; justify-content: flex-start; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -1px 0 var(--line), 0 -24px 40px -26px rgba(25, 42, 59, .45); border-radius: 12px 12px 0 0; overflow-y: auto; overscroll-behavior: contain; transition: top .5s var(--ease); }
  .q__meta { margin-bottom: 10px; }
  .q__title { font-size: clamp(21px, 5.8vw, 27px); margin-bottom: 8px; }
  .q__title--xl { font-size: clamp(27px, 7.6vw, 34px); }
  .q__sub { font-size: 14.5px; margin-bottom: 14px; }
  .q__actions { margin-top: 14px; }
  .cards { gap: 6px; }
  .opt { padding: 10px 11px; }
  .opt__t { font-size: 14.5px; }
  .opt__d { font-size: 12px; }
  .ic { width: 22px; height: 22px; margin-bottom: 4px; }
  .quotes .opt { padding: 10px 12px; }
  .quotes .opt__t { font-size: 14.5px; }
  .duel { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .duel__c { min-height: 0; padding: 14px; }
  .duel__t { font-size: 17px; }
  .duel__ou { justify-self: center; width: 24px; height: 24px; margin: -2px 0; }
  .knob { grid-template-columns: 124px minmax(0, 1fr); gap: 14px; }
  .knob__dial { width: 124px; height: 124px; }
  .knob__cap { inset: 18px; }
  .knob__cap i { top: 6px; height: 24px; }
  .knob__l { padding: 7px 10px; font-size: 14px; }
  .tokens__h span:first-child { min-width: 0; }
  .tok { grid-template-columns: minmax(0, 1fr) 16px 30px 30px; gap: 8px; }
  .tok__dots { display: none; }
  .tok__l { font-size: 14px; }
  .heat__r { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 8px 10px; }
  .heat__s { justify-content: stretch; }
  .heat__b { flex: 1; width: auto; }
  .heat__b i { width: 80%; }
  .board__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw { padding: 8px 10px; font-size: 13px; gap: 8px; }
  .gets li { padding: 7px 0; font-size: 13px; }
  .byline { display: none; }
  .gate__row { flex-direction: column; }
  .gate__row input { flex: none; height: 48px; }
  .gate__row .btn { width: 100%; justify-content: center; }
  .res { padding: 12px 14px; }
  /* Le résultat */
  .doc__hero { min-height: auto; padding: clamp(180px, calc(28dvh + 10px), 250px) 0 0; }
  .sum { max-width: none; padding: 20px 16px 28px; background: var(--paper); border-radius: 12px 12px 0 0; box-shadow: 0 -1px 0 var(--line); }
  .sum__title { font-size: clamp(26px, 7vw, 34px); }
  .sum__cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sum, .sum * { min-width: 0; overflow-wrap: break-word; }
  .sum__cta .btn { width: 100%; justify-content: center; }
  .marge--big .marge__n b { font-size: 60px; }
  .doc__paper { margin-top: 0; border-radius: 0; }
  .diag, .calc, .calc__in, .trust, .qwl, .pot, .price, .proofs, .rdv__fields { grid-template-columns: minmax(0, 1fr) !important; }
  .doc__paper { padding: 20px 16px; }
  .dsec { grid-template-columns: minmax(0, 1fr); }
  .dsec > *, .dsec__n { grid-column: 1; grid-row: auto; }
  .dsec--dark { margin-left: -16px; margin-right: -16px; padding: 30px 16px; }
}
@media (max-width: 380px), (max-height: 700px) and (max-width: 999px) {
  body.t3 { --sheet-top: calc(52px + 22dvh); }
  body.t3[data-phase="ready"] { --sheet-top: calc(52px + 124px); }
  .q--ready .marge__l span, .q--ready .q__fine { display: none; }
  .q--ready .sum__pistes li:nth-child(n+3) { display: none; }
  body.t3[data-phase="intro"], body.t3[data-phase="chap"] { --sheet-top: calc(52px + 18dvh); }
  .gets em { display: none; }
  .marge--mots .marge__l { display: none; }
  .sum__angle .link { display: none; }
}
@media (max-width: 999px) and (max-height: 700px) {
  .sum__angle { display: none; }
  .fourchette__garde.is-budget { display: none; }
  .fourchette__calc { white-space: normal; }
  body.t3[data-step="jetons"] .panel { padding-bottom: 12px; }
  body.t3[data-step="jetons"] { --sheet-top: calc(52px + 14dvh); }
  .tok { padding: 0 4px 0 10px; }
  .tok__b { width: 26px; height: 26px; }
  .tok__l { padding: 4px 0; font-size: 13.5px; }
  body.t3[data-phase="q"][data-step="persona"] { --sheet-top: calc(52px + 7dvh); }
  .quotes--many .opt { padding: 7px 11px; }
  .quotes--many .opt__t { font-size: 13.5px; }
  .q__echo { display: none; }
  .q__title { font-size: clamp(20px, 5.6vw, 24px); }
  .quotes { gap: 5px; }
  .quotes .opt { padding: 8px 11px; }
  .quotes .opt__t { font-size: 14px; }
  .tokens ul { gap: 3px; }
  .tok { padding: 1px 4px 1px 10px; }
  .tok__b { width: 28px; height: 28px; }
  .marge { margin-bottom: 6px; }
  .gate__who { margin-bottom: 6px; }
  .gate__who input, .gate__row input { height: 40px; }
  .q__fine { margin-top: 8px; }
  .q__sub { display: none; }
  .opt__d { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .q *, .q, .opt, .sw, .dsec, .t3-rail b, .knob__cap, .tokens__bar i, .marge__bar i, .chap__time, .t3-piste, .t3-qw { animation: none !important; transition: none !important; }
  .dsec.is-hold { opacity: 1; transform: none; }
  .dsec.is-hold:not(.is-in) .radar__s { transform: none; opacity: 1; }
}
@media print {
  .t3-stage, .t3-bar, .t3-piste, .view-sw, .pop, .panel, .doc__actions, .doc__toc, .t3-toast, .mesure-ask, .rdv, .calc__in, .calc__chart, .chart__tip { display: none !important; }
  body.t3 { background: #fff; height: auto; overflow: visible; }
  .doc { padding: 0; max-width: none; }
  .doc__hero { min-height: 0; display: block !important; }
  .doc__paper { margin: 0; padding: 0; box-shadow: none; }
  .dsec { break-inside: avoid; padding: 22px 0; }
  .dsec.is-hold { opacity: 1; transform: none; }
  .dsec.is-hold:not(.is-in) .radar__s { transform: none; opacity: 1; }
  .dsec--dark { margin: 0; padding: 22px 0; background: none; border-top: 1px solid #ccc; }
  .dsec--dark h2, .dsec--dark p { color: #192A3B !important; }
  .calc { display: block; }
  .calc__res { background: none; box-shadow: none; padding: 0; }
  .calc__big b, .calc__facts b, .calc__mid b { color: #192A3B !important; }
  .calc__big span, .calc__facts span, .calc__mid span { color: #415366 !important; }
  details.qa > p { display: block !important; }
}

/* ---------- Le repère d'Elivard : un petit carré devant l'étiquette, jamais une barre à gauche ---------- */
.fourchette b::before, .hypo__main .hypo__k::before, .verdict h3::before, .qwl__n::before, .first .q__eyebrow::before, .fourchette__garde::before {
  content: ''; display: inline-block; flex: none; width: 8px; height: 8px; margin-right: 10px; vertical-align: .12em; background: var(--signal);
}
.fourchette__garde::before { width: 6px; height: 6px; margin: 0; background: var(--mark); transform: translateY(-1px); }
.verdict:not(.verdict--free) h3::before { background: var(--viz); }
.knob__l[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--mark); }

/* La question de la mesure ne passe jamais sur les questions du test : à droite sur ordinateur, en haut sur téléphone */
.mesure-ask { left: auto !important; right: max(16px, env(safe-area-inset-right)) !important; }
@media (max-width: 999px) { .mesure-ask { top: 60px !important; bottom: auto !important; left: 12px !important; right: 12px !important; width: auto !important; } }

/* ==========================================================
   Version usine : le nom de chaque poste au-dessus de sa machine,
   sur deux lignes (ce qui coince, ou sa réparation), avec le rang
   du problème au résultat. Le dessous des machines reste libre
   pour les symboles des problèmes.
   ========================================================== */
.maq-tag { flex-wrap: wrap; row-gap: 3px; }
.maq-tag--poste { max-width: 168px; }
.maq-tag--poste { translate: -50% 0; }
.maq-tag--poste.is-bas { translate: -50% 58px; }
.maq-tag--poste.is-side2 { translate: -50% calc(-100% - 40px) !important; }
.maq-tag--poste.is-side { translate: -50% -100%; color: var(--ink-2); background: color-mix(in srgb, var(--surface) 82%, transparent); }
.maq-tag__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.maq-tag__m { flex-basis: 100%; padding-left: 13px; font: 500 11.5px/1.2 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.maq-tag__m[hidden], .maq-tag__n[hidden] { display: none; }
.maq-tag.is-probleme .maq-tag__m { color: #B23A26; }
.maq-tag.is-repare::before { background: #BACDB8; }
.maq-tag.is-repare .maq-tag__m { color: #3B6E4E; }
.maq-tag.is-repare { color: var(--ink); box-shadow: 0 0 0 1px color-mix(in srgb, #7FA07C 60%, transparent); }
:root[data-theme="dark"] .maq-tag.is-probleme .maq-tag__m { color: #FF9C84; }
:root[data-theme="dark"] .maq-tag.is-repare .maq-tag__m { color: #BACDB8; }
.maq-tag__n { order: -1; display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; font: 700 10px/1 var(--mono); letter-spacing: 0; color: var(--surface); background: var(--ink); border-radius: 3px; }
.maq-tag.is-probleme .maq-tag__n { background: #B23A26; color: #fff; }
.maq-tags[data-dense] .maq-tag__m { padding-left: 11px; font-size: 10.5px; }
.maq-tags[data-dense] .maq-tag--poste { max-width: 140px; }
@media (max-width: 699px) { .maq-tag__m { font-size: 10px; padding-left: 9px; } .maq-tag--poste.is-bas { translate: -50% 48px; } }

/* ---------- La question « ce qui ne va pas » : une ligne par tâche, six symboles ---------- */
.mal { display: grid; gap: 10px; }
.mal__r { padding: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); }
.mal__l { margin: 0 0 8px 4px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.mal__s { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.mal__b { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 8px; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink-2); font: 500 12.5px/1.2 var(--font); text-align: left; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.mal__b .ic { flex: none; width: 18px; height: 18px; }
.mal__b:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.mal__b:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.mal__b[aria-checked="true"] { color: var(--ink); background: color-mix(in srgb, var(--signal) 12%, var(--surface)); box-shadow: 0 0 0 1.5px var(--signal); }
.mal__b[aria-checked="true"] .ic { color: var(--signal); }
.mal__r.is-set .mal__b:not([aria-checked="true"]) { opacity: .62; }
@media (max-width: 699px) {
  /* Sur téléphone : les six symboles sur une seule ligne, le mot dessous */
  .mal { gap: 6px; }
  .mal__r { padding: 7px 6px 6px; }
  .mal__l { margin: 0 0 5px 4px; font-size: 14px; }
  .mal__s { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
  .mal__b { flex-direction: column; justify-content: center; gap: 3px; min-height: 54px; padding: 5px 2px; font-size: 10.5px; line-height: 1.15; text-align: center; }
  .mal__b .ic { width: 18px; height: 18px; margin: 0; }
}
@media (max-width: 999px) and (max-height: 700px) { body.t3[data-step="chaud"] { --sheet-top: calc(52px + 16dvh); } }

/* ---------- Le résultat : les trois problèmes qui coûtent le plus ---------- */
.sum__prob { display: grid; gap: 7px; margin: 0 0 12px; padding: 0; list-style: none; }
.sum__prob li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; }
.sum__rang { display: grid; place-items: center; width: 22px; height: 22px; font: 700 11px/1 var(--mono); color: #fff; background: #B23A26; border-radius: 4px; }
.sum__prob b { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.sum__prob em { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; font-style: normal; font-size: 14px; color: #B23A26; }
.sum__prob em .ic { width: 15px; height: 15px; }
.sum__prob small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
:root[data-theme="dark"] .sum__prob em { color: #FF9C84; }
.q.is-in .sum__prob li { animation: rise .55s var(--ease) both; animation-delay: calc(.2s + var(--i, 0) * 80ms); }

/* ---------- Le détail : les heures par problème ---------- */
.htype { margin: 18px 0 26px; }
.htype__r { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr) 54px; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 14px; }
.htype__l { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.htype__l .ic { width: 17px; height: 17px; color: var(--ink-3); }
.htype__b { height: 10px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.htype__b i { display: block; height: 100%; background: var(--viz); border-radius: 2px; }
.htype__r b { font: 600 13px var(--mono); text-align: right; }

/* ---------- Le détail : une carte par problème (un filet, un petit carré numéroté, jamais de barre à gauche) ---------- */
.prob { display: grid; gap: 14px; margin: 0 0 28px; }
.prob__c { padding: 20px 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: 10px; }
.prob__c header { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; align-items: center; margin-bottom: 12px; }
.prob__n { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; font: 700 12px/1 var(--mono); color: #fff; background: #B23A26; border-radius: 5px; }
.prob__c h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.prob__t { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 14px; color: #B23A26; }
.prob__t .ic { width: 16px; height: 16px; }
:root[data-theme="dark"] .prob__t { color: #FF9C84; }
.prob__c dl { display: grid; gap: 10px; margin: 0; }
.prob__c dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; }
.prob__c dt { font: 500 11px/1.7 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.prob__c dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.prob__c dd b { color: var(--ink); font-weight: 600; }
.prob__v { display: block; margin-top: 4px; font-size: 15px; }
.prob__meta { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 699px) { .prob__c { padding: 16px; } .prob__c dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- La matrice impact et effort, et la feuille de route ---------- */
.prob__plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin: 0 0 18px; }
.prob__plan > :only-child { grid-column: 1 / -1; }
@media (max-width: 860px) { .prob__plan { grid-template-columns: 1fr; } }
.mx { margin: 0; }
.mx svg { display: block; width: 100%; height: auto; overflow: visible; }
.mx__q { fill: color-mix(in srgb, var(--signal) 7%, transparent); }
.mx__ax { stroke: var(--ink-3); stroke-width: 1; }
.mx__g { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.mx__qt { font: 500 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--ink-3); }
.mx__l { font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--ink-3); }
.mx__p rect { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.mx__p text { font: 700 11px var(--mono); fill: var(--surface); }
.mx figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.road ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.road ol > li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.road__n { display: grid; place-items: center; width: 26px; height: 26px; font: 700 12px/1 var(--mono); color: var(--surface); background: var(--ink); border-radius: 5px; }
.road h3 { margin: 2px 0 2px; font-size: 16px; letter-spacing: -.01em; }
.road__q { margin: 0 0 6px; font: 500 11.5px var(--mono); letter-spacing: .04em; color: var(--signal); }
.road ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.road ul li { position: relative; padding-left: 14px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.road ul li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: #BACDB8; }
@media print { .prob__c { break-inside: avoid; box-shadow: 0 0 0 1px #ccc; } }
/* Le détail impose ses paragraphes (.dsec p, .dsec h3) : les pièces des problèmes gardent leur taille */
.dsec .htype .sum__k, .dsec .road .sum__k { margin: 0 0 12px; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.dsec .htype__r { margin: 0 0 8px; font-size: 14px; line-height: 1.3; color: var(--ink); }
.dsec .prob__t { margin: 2px 0 0; font-size: 14px; line-height: 1.3; color: #B23A26; }
:root[data-theme="dark"] .dsec .prob__t { color: #FF9C84; }
.dsec .prob__c h3 { margin: 0; font-size: 18px; }
.dsec .road h3 { margin: 2px 0 2px; font-size: 16px; }
.dsec .road__q { margin: 0 0 6px; font: 500 11.5px/1.5 var(--mono); letter-spacing: .04em; color: var(--signal); }
.dsec .road ul li { font-size: 14.5px; }
/* Un écran bas : les deux problèmes qui coûtent le plus suffisent au premier coup d'œil, le troisième est dans le détail */
@media (min-width: 1000px) and (max-height: 780px) { .sum__prob li:nth-child(3) { display: none; } .sum__prob small { display: none; } .sum__prob { gap: 5px; margin-bottom: 8px; } .sum__prob li { align-items: center; } .sum .doc__sent { margin-top: 6px; } .sum__cols { gap: 14px; } .sum__k { margin-bottom: 6px; } }

/* ---------- Revue visuelle : un trait de rappel vers la machine, une seule ligne sur téléphone ---------- */
.maq-tag--poste:not(.is-side)::after { content: ''; position: absolute; left: 50%; bottom: 100%; height: 10px; border-left: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); }
.maq-tag--poste.is-bas::after { height: 56px; }
.maq-tag--poste.is-bas { translate: -50% 46px; }
.maq-tag--poste.is-probleme::before { background: #B23A26; }
.maq-tag--poste.is-repare::before { background: #5E9A6C; }
.maq-tag--poste { max-width: none; }
.maq-tag__t { white-space: nowrap; }
@media (max-width: 699px) {
  .maq-tag__m { display: none; }
  .maq-tag.is-probleme .maq-tag__t { color: #B23A26; }
  :root[data-theme="dark"] .maq-tag.is-probleme .maq-tag__t { color: #FF9C84; }
  .maq-tag.is-repare .maq-tag__t { color: #3B6E4E; }
  :root[data-theme="dark"] .maq-tag.is-repare .maq-tag__t { color: #BACDB8; }
  .maq-tag--poste.is-bas { translate: -50% 30px; }
  .maq-tag--poste.is-bas::after { height: 40px; }
  .q--mal .q__input { padding-bottom: 12px; }
  .q--mal .q__actions { position: static; padding-bottom: 8px; }
}

/* ---------- Les cartes des problèmes : l'avant et l'après ---------- */
.prob__c header { grid-template-columns: 26px minmax(0, 1fr) auto; }
.prob__c header .prob__n { grid-row: auto; }
.dsec .prob__ba { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.prob__av, .prob__ap { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; }
.prob__av { color: #B23A26; background: color-mix(in srgb, #C8442E 10%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, #C8442E 30%, transparent); }
.prob__ap { color: #3B6E4E; background: color-mix(in srgb, #5E9A6C 12%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, #5E9A6C 35%, transparent); }
:root[data-theme="dark"] .prob__av { color: #FF9C84; }
:root[data-theme="dark"] .prob__ap { color: #BACDB8; }
.prob__av .ic, .prob__ap .ic { width: 22px; height: 22px; }
.prob__fl { color: var(--ink-3); font-size: 16px; }
