/* minutely — page Diagnostic IA (/diagnostic-ia).
   Chargée avec tokens.css et chrome.css (en-tête, pied de page, boutons), sans site.css. */

:root {
  --ink: var(--mn-ink); --green: var(--mn-green); --green-mid: var(--mn-green-mid); --sage: var(--mn-sage); --sage-soft: var(--mn-sage-soft);
  --orange: var(--mn-orange); --orange-strong: var(--mn-orange-strong); --orange-deep: var(--mn-orange-deep); --orange-pale: var(--mn-orange-pale);
  --bone: var(--mn-bone); --bone-card: var(--mn-bone-card); --hairline: var(--mn-hairline); --white: var(--mn-white);
  --text: var(--mn-text); --text-strong: var(--mn-text-strong); --text-soft: var(--mn-text-soft); --text-muted: var(--mn-text-muted);
  --ease: var(--mn-ease); --ease-out: var(--mn-ease-out); --ease-io: var(--mn-ease-in-out);
  --shadow-sm: var(--mn-shadow-sm); --shadow-md: var(--mn-shadow-md); --shadow-lg: var(--mn-shadow-lg);
  --radius-md: var(--mn-radius-md); --radius-lg: var(--mn-radius-lg);
  --container: var(--mn-container); --gutter: var(--mn-gutter);
  --h1: var(--mn-text-h1);
  --h2: clamp(1.625rem, 1.2rem + 1.5vw, 2.375rem);
  --head: 4.75rem;
}
@media (max-width: 61.9375rem) { :root { --head: 4.25rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; display: flex; flex-direction: column; min-height: 100vh;
  background: var(--bone); color: var(--text);
  font-family: var(--mn-font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
main { flex: 1; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--orange-strong); color: var(--white); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: .75rem 1.25rem; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; transition: top 200ms var(--ease); }
.skip-link:focus { top: .75rem; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* boutons : ceux du site, plus quelques états propres au questionnaire */
.diag .button:disabled { opacity: .38; cursor: not-allowed; transform: none; box-shadow: none; }
.diag .button:disabled:hover { background: var(--orange-strong); }
.diag button:hover:not(:disabled) > .icon-arrow::before { transform: translateX(140%); }
.diag button:hover:not(:disabled) > .icon-arrow::after { transform: none; }
.diag .button--lg { min-height: 3.5rem; padding: 0 1.75rem; font-size: 1.0625rem; }
.diag .button--light { background: var(--white); color: var(--text-strong); border-color: var(--hairline); }
.diag .button--light:hover { border-color: rgba(32,42,41,.35); color: var(--ink); transform: translateY(-1px); }
.diag .button svg { width: 1rem; height: 1rem; flex: none; }
.d-back .icon-arrow { transform: rotate(180deg); }
.d-link { padding: 0; border: 0; background: none; cursor: pointer; font-size: .9375rem; font-weight: 600; color: var(--orange-deep); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.d-link:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

/* typographie */
.d-eyebrow { display: flex; align-items: center; gap: .75rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); }
.d-eyebrow::before { content: ""; flex: none; width: 1.5rem; height: 2px; background: var(--orange); }
.d-lead { margin-top: 1.25rem; max-width: 36rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; color: var(--text-soft); }
.rise { animation: d-rise .8s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
@keyframes d-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes d-pop { 0% { transform: scale(.5); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes d-halo { from { transform: scale(1); opacity: .55; } to { transform: scale(2.2); opacity: 0; } }
@keyframes d-spin { to { transform: rotate(360deg); } }
@keyframes d-fade { from { opacity: 0; } to { opacity: 1; } }
.view-in { animation: d-fade .5s var(--ease) both; }

/* ---------- le signal : progression ---------- */
.track {
  position: sticky; top: var(--head); z-index: 90;
  background: color-mix(in srgb, var(--bone) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.track__inner { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: .875rem var(--gutter) 2.125rem; }
.rail { position: relative; height: .875rem; --p: 0; }
.rail__line { position: absolute; left: .4375rem; right: .4375rem; top: 50%; height: 2px; margin-top: -1px; background: var(--hairline); border-radius: 2px; }
.rail__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); background: var(--orange); border-radius: 2px; transition: width .9s var(--ease-out); }
.ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.tick { position: relative; width: .875rem; height: .875rem; padding: 0; border-radius: 50%; background: var(--bone); border: 2px solid var(--hairline); cursor: pointer; transition: border-color .35s var(--ease), background-color .35s var(--ease); }
.tick:disabled { cursor: default; }
.tick.is-done { background: var(--orange); border-color: var(--orange); }
.tick:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.tick__label { position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%); font-size: .75rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; pointer-events: none; transition: color .3s var(--ease); }
.tick:first-child .tick__label { left: 0; transform: none; }
.tick:last-child .tick__label { left: auto; right: 0; transform: none; }
.tick.is-done .tick__label { color: var(--text-strong); }
.tick.is-current .tick__label { color: var(--orange-deep); }
.tick:not(:disabled):hover .tick__label { color: var(--text-strong); }
.rail__dot { position: absolute; top: 50%; left: calc(.4375rem + (100% - .875rem) * var(--p)); z-index: 2; width: 1.125rem; height: 1.125rem; margin: -.5625rem 0 0 -.5625rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(241,90,34,.18); pointer-events: none; transition: left .9s var(--ease-out); }
.rail__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange); animation: d-halo 2.4s var(--ease-out) infinite; }

/* ---------- accueil ---------- */
.intro { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) clamp(3.5rem, 8vw, 6.5rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.intro__title { margin-top: 1.375rem; font-size: var(--h1); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; color: var(--text-strong); text-wrap: balance; }
.intro__title em, .res-title em { font-style: normal; color: var(--orange); }
.intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2.25rem; }
.assure { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .9375rem; color: var(--text-muted); }
.assure li { position: relative; padding-left: .875rem; }
.assure li::before { content: ""; position: absolute; left: 0; top: calc(50% - .1875rem); width: .375rem; height: .375rem; border-radius: 50%; background: var(--orange); }
.assure b { color: var(--text-strong); font-weight: 700; }
.privacy { display: flex; align-items: center; gap: .5rem; margin-top: 1.75rem; font-size: .875rem; color: var(--text-muted); }
.privacy svg { width: 1rem; height: 1rem; flex: none; color: var(--green-mid); }
.intro__visual { position: relative; }
.intro__disc { position: absolute; width: 112%; aspect-ratio: 1; border-radius: 50%; background: var(--sage); right: -34%; top: 50%; transform: translateY(-50%); }
.intro__ringwrap { position: absolute; width: 136%; aspect-ratio: 1; right: -46%; top: 50%; transform: translateY(-50%); pointer-events: none; }
.intro__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(43,114,104,.28); animation: d-spin 70s linear infinite; }
.intro__ring i { position: absolute; left: 50%; top: 0; width: .75rem; height: .75rem; margin: -.375rem 0 0 -.375rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(241,90,34,.16); }
.pcard { position: relative; z-index: 1; padding: 1.5rem; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.pcard__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--hairline); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.pcard__head b { color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.pwrap { position: relative; margin-top: 1rem; }
.plens { position: absolute; left: 0; right: 0; top: 0; height: 0; border-radius: .875rem; background: var(--orange-pale); transition: transform .75s var(--ease-out), height .3s var(--ease); pointer-events: none; }
.pstages { display: grid; gap: .375rem; }
.pstage { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .75rem; }
.pstage:not(:last-child)::after { content: ""; position: absolute; left: calc(.75rem + 1.125rem - 1px); top: calc(50% + 1.125rem); width: 2px; height: calc(100% + .375rem - 2.25rem); background: var(--hairline); transition: background-color .6s var(--ease); }
.pstage.is-past::after { background: var(--orange); }
.pstage__node { position: relative; z-index: 1; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--white); border: 1.5px solid var(--hairline); font-size: .75rem; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease); }
.pstage.is-past .pstage__node { border-color: var(--orange); color: var(--text-strong); }
.pstage.is-active .pstage__node { background: var(--orange-strong); border-color: var(--orange-strong); color: var(--white); box-shadow: 0 0 0 5px rgba(241,90,34,.14); }
.pstage__name { display: block; font-weight: 700; letter-spacing: -.01em; color: var(--text-strong); line-height: 1.3; }
.pstage__sub { display: block; font-size: .875rem; color: var(--text-muted); line-height: 1.4; }
.pstage__verb { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); transition: color .45s var(--ease); }
.pstage.is-active .pstage__verb { color: var(--orange-deep); }
.pcard__foot { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hairline); font-size: .875rem; color: var(--text-muted); }

/* ---------- questionnaire ---------- */
.quiz { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) var(--gutter) 5rem; display: grid; grid-template-columns: minmax(0, 1fr) 21.5rem; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.qbody { min-height: 22rem; }
.qbody.is-leaving > * { opacity: 0; transform: translateY(calc(-10px * var(--dir, 1))); transition: opacity .18s var(--ease), transform .2s var(--ease); }
.qbody.is-entering .q__kicker { animation: d-rise .6s var(--ease-out) both; }
.qbody.is-entering .q__title { animation: d-rise .7s var(--ease-out) .04s both; }
.qbody.is-entering .q__help { animation: d-rise .7s var(--ease-out) .08s both; }
.qbody.is-entering :is(.opt, .group, .uc-head, .ucgroup__label, .other, .duo__q) { animation: d-rise .6s var(--ease-out) both; animation-delay: calc(.12s + var(--i, 0) * 40ms); }
.q__kicker { display: flex; align-items: center; gap: .75rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); }
.q__kicker::before { content: ""; width: 1.5rem; height: 2px; background: var(--orange); }
.q__title { margin-top: .875rem; font-size: var(--h2); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; color: var(--text-strong); text-wrap: balance; }
.q__title:focus { outline: none; }
.q__help { margin-top: .75rem; max-width: 40rem; color: var(--text-soft); }
.q__body { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

.opts { display: grid; gap: .75rem; }
.opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts--list { grid-template-columns: minmax(0, 1fr); }
.opts--uc { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; width: 100%; padding: 1.125rem 1.25rem; text-align: left; cursor: pointer; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-md); transition: border-color .2s var(--ease), box-shadow .35s var(--ease-out), transform .35s var(--ease-out), opacity .3s var(--ease); }
.opt:hover { border-color: rgba(32,42,41,.28); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.opt:active { transform: scale(.985); }
.opt:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.opt[aria-pressed="true"] { border-color: var(--orange-strong); box-shadow: 0 0 0 1px var(--orange-strong), 0 10px 28px -18px rgba(211,67,13,.55); }
.opt.is-dim { opacity: .5; }
.opt__title { padding-right: 1.75rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--text-strong); }
.opt__desc { font-size: .9375rem; line-height: 1.45; color: var(--text-muted); }
.opt__check { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1.5px solid var(--hairline); background: var(--white); transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.opt--multi .opt__check { border-radius: .375rem; }
.opt__check svg { width: .75rem; height: .75rem; fill: none; stroke: var(--white); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .3s var(--ease-out) .05s; }
.opt[aria-pressed="true"] .opt__check { background: var(--orange-strong); border-color: var(--orange-strong); animation: d-pop .42s var(--ease-out); }
.opt[aria-pressed="true"] .opt__check svg { stroke-dashoffset: 0; }
.opt--size { justify-content: flex-end; min-height: 9rem; padding: 1.25rem; }
.opt__kicker { position: absolute; top: 1.125rem; left: 1.25rem; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
.opt__big { font-size: clamp(1.375rem, 1rem + 1vw, 1.625rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt--row { flex-direction: row; align-items: center; gap: 1.125rem; padding: 1rem 1.25rem; }
.opt__text { display: flex; flex-direction: column; gap: .125rem; padding-right: 1.75rem; }
.opt--row .opt__title { padding-right: 0; }
.opt--row .opt__check, .opt--compact .opt__check { top: calc(50% - .625rem); }
.meter { display: flex; align-items: flex-end; gap: 3px; flex: none; height: 1.75rem; }
.meter i { width: 5px; border-radius: 2px; background: var(--hairline); }
.meter i:nth-child(1) { height: 30%; } .meter i:nth-child(2) { height: 55%; } .meter i:nth-child(3) { height: 80%; } .meter i:nth-child(4) { height: 100%; }
.meter i.on { background: var(--orange); }
.opt--compact { justify-content: center; min-height: 3.75rem; padding: .875rem 1rem; }
.opt--compact .opt__title { font-size: 1rem; }
.opt--uc { gap: .5rem; padding: 1.125rem; }
.opt--uc .tag { margin-bottom: .25rem; }

.tag { display: inline-flex; align-items: center; gap: .375rem; padding: .1875rem .5rem; border-radius: .375rem; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; }
.tag::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: currentColor; }
.tag--assistant { background: var(--sage-soft); color: var(--green-mid); }
.tag--auto { background: var(--orange-pale); color: var(--orange-deep); }
.tag--agent { background: var(--white); color: var(--orange-deep); box-shadow: inset 0 0 0 1px var(--orange); }

.groups { display: grid; }
.group { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--hairline); }
.group:first-child { border-top: 0; padding-top: 0; }
.group__label { padding-top: .625rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.group__label span { display: block; margin-top: .125rem; font-weight: 500; letter-spacing: .02em; text-transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9375rem; cursor: pointer; background: var(--white); border: 1px solid var(--hairline); border-radius: 999px; font-size: .9375rem; font-weight: 500; line-height: 1.35; color: var(--text-strong); transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .3s var(--ease-out); }
.chip small { font-size: .8125rem; font-weight: 400; color: var(--text-muted); }
.chip:hover { border-color: rgba(32,42,41,.3); }
.chip:active { transform: scale(.97); }
.chip:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.chip[aria-pressed="true"] { background: var(--orange-pale); border-color: var(--orange-strong); }
.chip__tick { display: inline-grid; place-items: center; width: 0; height: 1rem; margin-right: -.5rem; overflow: hidden; opacity: 0; transition: width .28s var(--ease-out), margin .28s var(--ease-out), opacity .2s var(--ease); }
.chip__tick svg { width: .875rem; height: .875rem; fill: none; stroke: var(--orange-strong); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.chip[aria-pressed="true"] .chip__tick { width: 1rem; margin-right: 0; opacity: 1; }
.follow { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--ease-out), opacity .35s var(--ease); }
.follow.is-open { grid-template-rows: 1fr; opacity: 1; }
.follow__clip { overflow: hidden; }
.follow__box { margin-top: .875rem; padding: 1rem 1.125rem 1.125rem; background: var(--white); border: 1px solid var(--hairline); border-left: 2px solid var(--orange); border-radius: 0 .75rem .75rem 0; }
.follow__why { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); }
.follow__q { margin: .25rem 0 .75rem; font-size: .9375rem; font-weight: 600; color: var(--text-strong); }

.uc-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.75rem; padding: .875rem 1.125rem; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-md); }
.legend { display: grid; grid-template-columns: repeat(3, auto); gap: .375rem 1.75rem; font-size: .8125rem; line-height: 1.4; color: var(--text-muted); }
.legend__item { display: flex; flex-direction: column; align-items: flex-start; gap: .375rem; }
.counter { flex: none; font-size: .875rem; color: var(--text-muted); white-space: nowrap; }
.counter b { font-size: 1.125rem; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.counter.is-bump { animation: d-bump .45s var(--ease-out); }
@keyframes d-bump { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.ucgroup + .ucgroup { margin-top: 1.75rem; }
.ucgroup__label { margin-bottom: .75rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.other { display: block; margin-top: 2rem; }
.other__label { display: block; margin-bottom: .5rem; font-size: .9375rem; font-weight: 600; color: var(--text-strong); }
.input { width: 100%; height: 3.125rem; padding: 0 1rem; border: 1px solid var(--hairline); border-radius: .75rem; background: var(--white); font: inherit; font-size: 1rem; color: var(--text-strong); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease); }
.input::placeholder { color: #8A938F; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(32,42,41,.12); }
.input[aria-invalid="true"] { border-color: var(--orange-strong); }
.duo { display: grid; gap: 2rem; }
.duo__q { margin-bottom: .875rem; font-size: 1.0625rem; font-weight: 600; color: var(--text-strong); }

.qnav { display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.qnav__hint { flex: 1; font-size: .8125rem; color: var(--text-muted); }
.qnav__hint kbd { display: inline-block; min-width: 1.375rem; padding: .0625rem .375rem; border: 1px solid var(--hairline); border-bottom-width: 2px; border-radius: .3125rem; background: var(--white); font-family: inherit; font-size: .75rem; font-weight: 600; text-align: center; color: var(--text-strong); }

/* feuille de route en direct */
.roadmap { position: sticky; top: calc(var(--head) + 4.75rem); }
.rm { max-height: calc(100vh - var(--head) - 7rem); overflow: auto; padding: 1.5rem; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); scrollbar-width: thin; }
.rm__kicker { display: flex; align-items: center; gap: .625rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-strong); }
.rm__live { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--orange); animation: d-live 2s var(--ease-out) infinite; }
@keyframes d-live { 0% { box-shadow: 0 0 0 0 rgba(241,90,34,.45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(241,90,34,0); } }
.rm__level { margin-top: 1.125rem; padding: 1rem 1rem .875rem; border-radius: var(--radius-md); background: var(--bone); --lp: 0; }
.lvl { position: relative; height: 1rem; margin: 0 .3125rem; }
.lvl__line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--hairline); }
.lvl__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--lp) * 100%); background: var(--orange); transition: width .9s var(--ease-out); }
.lvl__nodes { position: absolute; inset: 0 -.3125rem; display: flex; justify-content: space-between; align-items: center; }
.lvl__nodes i { width: .625rem; height: .625rem; border-radius: 50%; background: var(--white); border: 2px solid var(--hairline); transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.lvl__nodes i.on { background: var(--orange); border-color: var(--orange); }
.lvl__dot { position: absolute; top: 50%; left: calc(var(--lp) * 100%); width: 1rem; height: 1rem; margin: -.5rem 0 0 -.5rem; border-radius: 50%; background: var(--orange-strong); box-shadow: 0 0 0 5px rgba(241,90,34,.18); opacity: 0; transform: scale(.4); transition: left .9s var(--ease-out), opacity .3s var(--ease), transform .5s var(--ease-out); }
.rm__level.is-on .lvl__dot { opacity: 1; transform: none; }
.lvl__names { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .6875rem; font-weight: 600; color: var(--text-muted); }
.lvl__names span { transition: color .4s var(--ease); }
.lvl__names span.on { color: var(--orange-deep); }
.rm__caption { margin-top: .625rem; font-size: .8125rem; color: var(--text-soft); }
.rm__caption b { color: var(--text-strong); }
.rm__rows { margin-top: .5rem; }
.rrow { padding: .75rem 0 .8125rem; border-top: 1px solid var(--hairline); }
.rrow:first-child { border-top: 0; }
.rrow dt { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); transition: color .3s var(--ease); }
.rrow.is-active dt { color: var(--orange-deep); }
.rrow dd { display: flex; flex-wrap: wrap; gap: .375rem; min-height: 1.375rem; margin-top: .375rem; }
.skel { display: block; width: 62%; height: .5rem; margin-top: .4375rem; border-radius: 999px; background: linear-gradient(90deg, var(--bone-card) 0%, #F7F6F1 50%, var(--bone-card) 100%); background-size: 200% 100%; animation: d-shimmer 1.8s linear infinite; }
.rrow.is-active .skel { background-image: linear-gradient(90deg, #FFE3D4 0%, var(--orange-pale) 50%, #FFE3D4 100%); }
@keyframes d-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.rchip { display: inline-flex; align-items: center; padding: .1875rem .625rem; border-radius: 999px; background: var(--bone); border: 1px solid var(--hairline); font-size: .8125rem; font-weight: 500; line-height: 1.45; color: var(--text-strong); }
.rchip--c { background: var(--orange-pale); border-color: transparent; color: var(--orange-deep); }
.rline { display: flex; align-items: baseline; gap: .5rem; width: 100%; font-size: .875rem; line-height: 1.4; color: var(--text-strong); }
.dot { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--mn-warm-grey); transform: translateY(-1px); }
.dot--assistant { background: var(--green-mid); } .dot--auto { background: var(--orange); } .dot--agent { background: var(--white); box-shadow: inset 0 0 0 2px var(--orange-strong); }
.rrow.is-new dd > * { animation: d-rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.rm__note { display: flex; align-items: center; gap: .5rem; margin: .875rem .25rem 0; font-size: .8125rem; color: var(--text-muted); }
.rm__note svg { width: .9375rem; height: .9375rem; flex: none; color: var(--green-mid); }

/* ---------- calcul ---------- */
.calc { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: color-mix(in srgb, var(--bone) 84%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s var(--ease); }
.calc.is-on { opacity: 1; }
.calc.is-out { opacity: 0; }
.calc__card { width: min(23rem, calc(100% - 2.5rem)); padding: 1.75rem; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98); transition: transform .55s var(--ease-out); }
.calc.is-on .calc__card { transform: none; }
.calc__rail { position: relative; height: 2px; margin: .375rem .375rem 0; background: var(--hairline); border-radius: 2px; }
.calc__dot { position: absolute; top: 50%; left: 0; width: .75rem; height: .75rem; margin: -.375rem 0 0 -.375rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(241,90,34,.18); animation: d-travel 1.1s var(--ease-io) infinite alternate; }
@keyframes d-travel { to { left: 100%; } }
.calc__title { margin: 1.375rem 0 .875rem; font-weight: 700; color: var(--text-strong); }
.calc__list { display: grid; gap: .625rem; }
.calc__list li { display: flex; align-items: center; gap: .625rem; font-size: .9375rem; color: var(--text-muted); transition: color .3s var(--ease); }
.calc__list li::before { content: ""; flex: none; width: 1.125rem; height: 1.125rem; border-radius: 50%; border: 1.5px solid var(--hairline); background: center / .625rem no-repeat; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.calc__list li.is-done { color: var(--text-strong); }
.calc__list li.is-done::before { border-color: var(--orange-strong); background-color: var(--orange-strong); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.4 2.4 4.6-5.1' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); animation: d-pop .4s var(--ease-out); }

/* ---------- résultat ---------- */
.result { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(4rem, 8vw, 6.5rem); }
.res-head { max-width: 48rem; }
.res-title { margin-top: 1.375rem; font-size: var(--h1); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; color: var(--text-strong); text-wrap: balance; }
.stages { position: relative; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 3.875rem clamp(1rem, 3vw, 2rem) 1.75rem; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-lg); --at: 0; }
.stages__track { position: relative; }
.stages__line { position: absolute; left: 12.5%; right: 12.5%; top: 1.5rem; height: 2px; margin-top: -1px; background: var(--hairline); }
.stages__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--orange); transition: width var(--fill-dur, 1.2s) linear; }
.stages__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dstage { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 0 .5rem; text-align: center; }
.dstage__node { position: relative; display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .75rem; border-radius: 50%; background: var(--white); border: 2px solid var(--hairline); font-size: .875rem; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease), transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.dstage.is-lit .dstage__node { border-color: var(--orange); color: var(--text-strong); }
.dstage.is-here .dstage__node { background: var(--orange-strong); border-color: var(--orange-strong); color: var(--white); transform: scale(1.14); box-shadow: 0 0 0 8px rgba(241,90,34,.15); }
.dstage.is-here .dstage__node::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--orange); animation: d-halo 2.4s var(--ease-out) infinite; }
.dstage__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; color: var(--text-muted); transition: color .45s var(--ease); }
.dstage.is-lit .dstage__name { color: var(--text-strong); }
.dstage__sub { max-width: 12rem; font-size: .875rem; line-height: 1.4; color: var(--text-muted); }
.stages__pin { position: absolute; top: .875rem; left: clamp(4rem, calc(12.5% + var(--at) * 25%), calc(100% - 4rem)); z-index: 1; padding: .3125rem .75rem; border-radius: 999px; background: var(--orange-pale); color: var(--orange-deep); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translate(-50%, -6px); transition: opacity .4s var(--ease), transform .7s var(--ease-out); }
.stages.is-done .stages__pin { opacity: 1; transform: translate(-50%, 0); }
.stages__note { margin-top: 1.5rem; padding-top: 1.125rem; border-top: 1px solid var(--hairline); font-size: .8125rem; color: var(--text-muted); text-align: center; }

.block { margin-top: clamp(3rem, 7vw, 5rem); }
.block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.block__title { font-size: var(--h2); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; color: var(--text-strong); }
.block > .block__title { margin-bottom: 1.5rem; }
.recs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rec { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.rec__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .875rem; border-bottom: 1px solid var(--hairline); }
.rec__n { font-size: .8125rem; font-weight: 700; color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.rec__k { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.rec h3 { margin-top: .25rem; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; color: var(--text-strong); }
.rec p { font-size: .9375rem; line-height: 1.55; color: var(--text-soft); }
.rec .tag { align-self: flex-start; margin-top: auto; }
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; margin-top: 1rem; padding: 1.25rem 1.5rem; background: var(--sage-soft); border: 1px solid rgba(43,114,104,.18); border-radius: var(--radius-lg); }
.notice__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sage); color: var(--green-mid); }
.notice__icon svg { width: 1.25rem; height: 1.25rem; }
.notice__k { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-mid); }
.notice p + p { margin-top: .25rem; font-size: .9375rem; color: var(--text-soft); }
.offer { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); overflow: hidden; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.offer__id { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: 1.75rem; background: var(--orange-pale); }
.offer__kicker { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
.offer__n { font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -.045em; color: var(--orange-strong); font-variant-numeric: tabular-nums; }
.offer__name { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; color: var(--text-strong); }
.offer__full { margin-top: .125rem; font-size: .875rem; font-weight: 600; color: var(--orange-deep); }
.offer__body { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.75rem; }
.offer__why { font-weight: 600; color: var(--text-strong); }
.offer__d { color: var(--text-soft); }
.offer__meta { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.offer__meta dt { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.offer__meta dd { font-size: .9375rem; font-weight: 600; color: var(--text-strong); }
.plus { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 1rem; padding: 1.125rem 1.5rem; background: var(--white); border: 1px dashed rgba(32,42,41,.25); border-radius: var(--radius-lg); }
.plus p { flex: 1 1 22rem; font-size: .9375rem; color: var(--text-soft); }
.plus b { color: var(--text-strong); }
.plus__k { display: inline-block; margin-right: .5rem; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }

.cta { position: relative; overflow: hidden; margin-top: clamp(3rem, 7vw, 5rem); padding: clamp(1.75rem, 4.5vw, 3.25rem); background: var(--orange-pale); border-radius: 1.5rem; }
.cta__ring { position: absolute; width: 26rem; aspect-ratio: 1; right: -9rem; top: -11rem; border-radius: 50%; border: 1px solid rgba(211,67,13,.22); animation: d-spin 50s linear infinite; pointer-events: none; }
.cta__ring i { position: absolute; left: 50%; bottom: -.375rem; width: .75rem; height: .75rem; margin-left: -.375rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(241,90,34,.16); }
.cta__inner { position: relative; max-width: 46rem; }
.cta__title { margin-top: 1rem; font-size: var(--h2); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; color: var(--text-strong); }
.cta__lead { margin-top: .875rem; color: var(--text-soft); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.mailform { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.mailform.is-open { grid-template-rows: 1fr; }
.mailform__clip { overflow: hidden; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-md); }
.field label { display: block; margin-bottom: .375rem; font-size: .8125rem; font-weight: 600; color: var(--text-strong); }
.field .input { background: var(--bone); }
.field .input:focus { background: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; line-height: 1.5; color: var(--text-soft); cursor: pointer; }
.check input { flex: none; width: 1.125rem; height: 1.125rem; margin: .125rem 0 0; accent-color: var(--orange-strong); }
.check a { color: var(--orange-deep); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .5rem; }
.form__note { font-size: .8125rem; color: var(--text-muted); }
.form__error { grid-column: 1 / -1; padding: .75rem 1rem; border-radius: .75rem; background: var(--orange-pale); color: var(--orange-deep); font-size: .875rem; font-weight: 500; }
.form.is-sending .button[type="submit"] { pointer-events: none; opacity: .7; }
.spinner { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: var(--white); animation: d-spin .8s linear infinite; }
.sent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; margin-top: 1.5rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-md); animation: d-rise .6s var(--ease-out) both; }
.sent__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--orange-strong); animation: d-pop .5s var(--ease-out) .1s both; }
.sent__icon svg { width: 1rem; height: 1rem; fill: none; stroke: var(--white); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.sent__title { font-weight: 700; color: var(--text-strong); }
.sent p + p { margin-top: .25rem; font-size: .9375rem; color: var(--text-soft); }

.recap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.recap__row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: .875rem 0; border-top: 1px solid var(--hairline); }
.recap__row dt { padding-top: .25rem; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.recap__row dd { display: flex; flex-wrap: wrap; gap: .375rem; }
.recap__row .d-link { padding-top: .125rem; font-size: .8125rem; }

[data-dreveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
[data-dreveal].is-in { opacity: 1; transform: none; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 160; max-width: calc(100% - 2.5rem); padding: .75rem 1.125rem; border-radius: .875rem; background: var(--white); border: 1px solid var(--hairline); box-shadow: var(--shadow-lg); font-size: .9375rem; font-weight: 500; color: var(--text-strong); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .3s var(--ease), transform .5s var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- adaptations ---------- */
@media (max-width: 63.9375rem) {
  .quiz { grid-template-columns: minmax(0, 1fr); }
  .roadmap { display: none; }
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro__visual { max-width: 30rem; }
  .recs, .recap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 47.9375rem) {
  .tick__label { display: none; }
  .track__inner { padding: .875rem var(--gutter); }
  .opts--4, .opts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts--2 { grid-template-columns: minmax(0, 1fr); }
  .group { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .group__label { padding-top: 0; }
  .group__label span { display: inline; margin-left: .375rem; }
  .uc-head { flex-direction: column; align-items: flex-start; }
  .legend { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .5rem .75rem; }
  .legend__item { display: contents; }
  .legend .tag { justify-self: start; }
  .quiz { padding-bottom: 7rem; }
  .qnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; margin: 0; padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bone) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .qnav__hint { display: none; }
  .qnav .d-next { flex: 1; }
  .qnav .d-back { padding: 0 1.125rem; }
  .qnav .d-back span:not(.icon-arrow) { display: none; }
  .dstage__sub { display: none; }
  .dstage__name { font-size: .875rem; }
  .dstage__node { width: 2.5rem; height: 2.5rem; font-size: .8125rem; }
  .stages__line { top: 1.25rem; }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .offer__id { flex-direction: row; align-items: flex-end; justify-content: flex-start; flex-wrap: wrap; gap: .75rem 1.25rem; }
  .offer__kicker { width: 100%; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .cta__actions .button { width: 100%; }
  .recap__row { grid-template-columns: minmax(0, 1fr) auto; }
  .recap__row dt { grid-column: 1 / -1; }
  body[data-view="quiz"] .site-footer { padding-bottom: 5rem; }
}
@media (max-width: 30rem) {
  .opts--3 { grid-template-columns: minmax(0, 1fr); }
  .opt--compact { min-height: 3.25rem; }
  .pstage__verb { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-dreveal] { opacity: 1; transform: none; }
}
