/* =========================================================
   Vocametrics — questionnaire (test.html) et rapport (resultats.html)
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--color-slate-veil);
  background: var(--surface); border: 1px solid var(--color-mist-border); border-bottom-width: 2px; border-radius: 5px;
}
.kbd-light { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35); color: #fff; margin-left: 6px; }

/* ---------- Barre du haut ---------- */
.tpage { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.qbar { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-md); }
.qbar__inner { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qbar__mid { font-size: 14px; font-weight: 600; color: var(--color-slate-veil); font-variant-numeric: tabular-nums; }
.qprogress { height: 6px; background: var(--color-lilac-wash); position: relative; }
.qprogress i { position: absolute; inset: 0; background: var(--color-iris-bolt); transform-origin: left; transform: scaleX(0); border-radius: 0 6px 6px 0; }
.qprogress::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(25% - 1px), var(--surface) calc(25% - 1px), var(--surface) 25%, transparent 25%, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff 50%, transparent 50%, transparent calc(75% - 1px), #fff calc(75% - 1px), #fff 75%, transparent 75%); opacity: .8; }

/* ---------- Scène ---------- */
.tmain { flex: 1; position: relative; display: grid; overflow: hidden; isolation: isolate; }
.tbg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.blob--1 { width: 460px; height: 460px; background: var(--pastel-violet); top: -120px; left: -140px; }
.blob--2 { width: 380px; height: 380px; background: var(--pastel-cyan); bottom: -120px; right: -100px; }
.blob--3 { width: 260px; height: 260px; background: var(--pastel-peach); top: 40%; right: 18%; opacity: .35; }
.screen { grid-area: 1 / 1; display: grid; place-items: center; padding: 48px var(--gutter) 64px; }
.screen[hidden] { display: none; }

/* ---------- Intro ---------- */
.intro { width: 100%; min-width: 0; max-width: 760px; text-align: center; }
.intro__title { font-size: clamp(40px, 6vw, 76px); line-height: 1.04; font-weight: 600; letter-spacing: -0.042em; margin-bottom: 20px; }
.intro__title .accent { color: var(--color-iris-bolt); }
.intro__sub { font-size: 18px; color: var(--color-slate-veil); max-width: 560px; margin: 0 auto 32px; }
.resume { display: flex; align-items: center; gap: 16px; text-align: left; background: var(--surface); border: 1px solid var(--color-mist-border); border-radius: var(--r-card); padding: 16px 20px; margin: 0 auto 24px; max-width: 560px; box-shadow: var(--shadow-md); }
.resume[hidden] { display: none; }
.resume__ring { position: relative; width: 56px; height: 56px; flex: none; }
.resume__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.resume__ring circle { fill: none; stroke-width: 6; }
.resume__ring .ring__fg { --p: 0; }
.resume__ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.resume__txt { flex: 1; min-width: 0; }
.resume__txt b { display: block; font-size: 16px; }
.resume__txt span { font-size: 14px; color: var(--color-slate-veil); }

.modes { min-width: 0; border: 0; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.modes input { position: absolute; opacity: 0; pointer-events: none; }
.mode { display: block; cursor: pointer; padding: 10px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), outline-color .2s; outline: 2px solid transparent; outline-offset: 3px; }
.mode:hover { transform: translateY(-4px); }
.mode .fcard__panel { display: flex; flex-direction: column; gap: 6px; position: relative; padding: 20px; }
.mode__top { display: flex; justify-content: space-between; align-items: center; }
.mode__top b { font-size: 18px; font-weight: 700; }
.mode__big { font-size: 44px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; margin-top: 6px; }
.mode__big small { font-size: 16px; font-weight: 400; color: var(--color-slate-veil); letter-spacing: 0; }
.mode__meta { font-size: 14px; color: var(--color-slate-veil); }
.mode__check { position: absolute; right: 18px; bottom: 18px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--color-mist-border); transition: all .3s var(--ease); }
.modes input:checked + .mode { outline-color: var(--color-iris-bolt); box-shadow: 0 10px 30px rgba(66, 85, 255, .18); }
.modes input:checked + .mode .mode__check { border-color: var(--color-iris-bolt); background: var(--color-iris-bolt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.modes input:focus-visible + .mode { outline-color: var(--color-iris-bolt); }
.intro__row { max-width: 420px; margin: 0 auto; text-align: left; }
.opt { font-weight: 400; color: var(--color-fog-mist); }
.tips { list-style: none; padding: 0; margin: 8px 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.tips li { display: flex; gap: 12px; background: var(--surface-soft); border: 1px solid var(--color-mist-border); border-radius: var(--r-card); padding: 14px; font-size: 14px; color: var(--color-slate-veil); }
.tips b { color: var(--color-ink-charcoal); font-weight: 600; }
.tips i { font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--color-lilac-wash); color: var(--color-iris-bolt); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.intro__go { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.intro__go p { font-size: 13px; color: var(--color-fog-mist); }

/* ---------- Question ---------- */
.quiz { width: 100%; max-width: 860px; }
.quiz__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 14px; color: var(--color-slate-veil); }
.quiz__meta .tag { background: var(--surface); box-shadow: var(--shadow-sm); }
.qframe { padding: 14px; transition: background-color .8s var(--ease); }
.qframe__panel { padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px) clamp(28px, 4vw, 44px); }
.qframe__body { min-height: 190px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.qframe__num { font-size: 13px; font-weight: 600; color: var(--color-iris-bolt); letter-spacing: .04em; margin-bottom: 14px; }
.qframe__text { font-size: clamp(24px, 3.4vw, 38px); line-height: 1.22; font-weight: 600; letter-spacing: -0.025em; max-width: 680px; margin: 0 auto; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 40px; align-items: start; }
.scale__btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 4px 10px;
  background: none; border: 0; border-radius: var(--r-card); cursor: pointer; font: inherit;
  transition: background .25s;
}
.scale__btn:hover { background: var(--color-chalk-canvas); }
.scale__dot {
  --s: 56px; width: var(--s); height: var(--s); border-radius: 50%;
  border: 2.5px solid var(--color-fog-mist); position: relative;
  transition: transform .35s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.scale__btn:nth-child(2) .scale__dot, .scale__btn:nth-child(4) .scale__dot { --s: 46px; }
.scale__btn:nth-child(3) .scale__dot { --s: 36px; border-color: var(--color-mist-border); }
.scale__btn:nth-child(1) .scale__dot, .scale__btn:nth-child(2) .scale__dot { border-color: var(--color-slate-veil); }
.scale__btn:nth-child(4) .scale__dot, .scale__btn:nth-child(5) .scale__dot { border-color: var(--color-iris-bolt); }
.scale__btn:hover .scale__dot { transform: scale(1.1); }
.scale__btn:nth-child(-n+2):hover .scale__dot { background: rgba(88, 99, 128, .1); }
.scale__btn:nth-child(n+4):hover .scale__dot { background: rgba(66, 85, 255, .1); }
.scale__btn[aria-checked="true"] .scale__dot { transform: scale(1.1); }
.scale__btn:nth-child(-n+3)[aria-checked="true"] .scale__dot { background: var(--color-slate-veil); border-color: var(--color-slate-veil); box-shadow: 0 0 0 6px rgba(88, 99, 128, .15); }
.scale__btn:nth-child(n+4)[aria-checked="true"] .scale__dot { background: var(--color-iris-bolt); border-color: var(--color-iris-bolt); box-shadow: 0 0 0 6px rgba(66, 85, 255, .18); }
.scale__btn[aria-checked="true"] .scale__dot::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/50% no-repeat; }
.scale__label { font-size: 13px; line-height: 1.3; color: var(--color-slate-veil); text-align: center; max-width: 110px; }
.scale__btn kbd { opacity: 0; transition: opacity .2s; }
.scale:hover kbd, .scale__btn:focus-visible kbd { opacity: 1; }
.quiz__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
.quiz__back { background: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; color: var(--color-slate-veil); padding: 8px 0; }
.quiz__back:hover { color: var(--color-iris-bolt); }
.quiz__back:disabled { opacity: .35; cursor: default; color: var(--color-slate-veil); }
.quiz__hint { font-size: 13px; color: var(--color-fog-mist); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ---------- Étape franchie ---------- */
.milestone { text-align: center; max-width: 560px; }
.milestone__ring { position: relative; width: 160px; height: 160px; margin: 0 auto 28px; }
.milestone__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.milestone__ring circle { fill: none; stroke-width: 8; }
.ms-bg { stroke: var(--surface); }
.ms-fg { stroke: var(--color-iris-bolt); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; }
.milestone__ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 600; letter-spacing: -0.03em; }
.milestone__title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 14px; }
.milestone__text { font-size: 18px; color: var(--color-slate-veil); margin-bottom: 24px; }
.milestone__trend { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; min-height: 10px; }
.milestone__trend p { width: 100%; font-size: 13px; color: var(--color-fog-mist); margin-bottom: 4px; }
.trend-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border-radius: var(--r-pill); padding: 6px 14px 6px 6px; box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 600; }
.trend-chip i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--color-lilac-wash); color: var(--color-iris-bolt); display: grid; place-items: center; font-size: 12px; }

/* ---------- Calcul ---------- */
.compute { text-align: center; }
.compute__mark { color: var(--color-iris-bolt); display: grid; place-items: center; margin-bottom: 28px; }
.compute__title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 28px; }
.compute__steps { list-style: none; padding: 0; margin: 0 auto; display: inline-flex; flex-direction: column; gap: 14px; text-align: left; }
.compute__steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--color-fog-mist); transition: color .4s; }
.compute__steps i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--color-mist-border); flex: none; transition: all .4s var(--ease); }
.compute__steps li.is-done { color: var(--color-ink-charcoal); }
.compute__steps li.is-done i { background: var(--color-iris-bolt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; border-color: var(--color-iris-bolt); }

/* =========================================================
   Rapport (resultats.html)
   ========================================================= */
.rhero { position: relative; isolation: isolate; overflow: hidden; padding: 128px 0 80px; }
.rbanner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--color-mist-border); border-left: 4px solid var(--color-iris-bolt); border-radius: var(--r-card); padding: 14px 20px; margin-bottom: 40px; box-shadow: var(--shadow-sm); font-size: 15px; }
.rbanner[hidden] { display: none; }
.rbanner b { font-weight: 600; }
.rhero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-64); align-items: center; }
.rhero__meta { font-size: 14px; color: var(--color-slate-veil); margin-bottom: 12px; }
.rhero__title { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -0.042em; margin-bottom: 20px; }
.rhero__title .accent { color: var(--color-iris-bolt); }
.rhero__sum { font-size: 18px; color: var(--color-slate-veil); max-width: 520px; }
.rcode { display: flex; gap: 10px; margin: 28px 0; }
.rcode div { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-md); padding: 12px 16px; min-width: 96px; }
.rcode b { display: block; font-size: 34px; font-weight: 700; color: var(--color-iris-bolt); line-height: 1.1; }
.rcode span { font-size: 12px; color: var(--color-slate-veil); }
.rcode div:first-child { outline: 2px solid var(--color-iris-bolt); }
.ractions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.rdl { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rdl__alt { font-size: 14px; }
.rradar { padding: 14px; }
.rradar .fcard__panel { padding: 20px; }
.rradar svg { width: 100%; height: auto; overflow: visible; }
.rradar__legend { display: flex; gap: 16px; justify-content: center; font-size: 12px; color: var(--color-slate-veil); margin-top: 8px; }
.rradar__legend span { display: inline-flex; align-items: center; gap: 6px; }
.rradar__legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--color-iris-bolt); }
.rradar__legend i.ref { background: none; border-top: 2px dashed var(--color-fog-mist); height: 0; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-16); }
.kpi { background: var(--surface); border: 1px solid var(--color-mist-border); border-radius: var(--r-card); padding: var(--s-24); display: flex; gap: 18px; align-items: center; }
.kpi__big { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--color-lilac-wash); color: var(--color-iris-bolt); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; position: relative; }
.kpi__big svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.kpi__big svg circle { fill: none; stroke-width: 5; }
.kpi__big .ring__bg { stroke: var(--surface); }
.kpi__big span { position: relative; font-size: 20px; }
.kpi p { font-size: 12px; font-weight: 600; color: var(--color-slate-veil); letter-spacing: .02em; }
.kpi h3 { font-size: 18px; font-weight: 600; margin: 2px 0 4px; line-height: 1.3; }
.kpi small { font-size: 13px; color: var(--color-slate-veil); display: block; line-height: 1.45; }

.pct-help { display: flex; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--color-mist-border); border-radius: var(--r-card); padding: 18px 22px; margin-bottom: var(--s-32); }
.pct-help__viz { flex: none; width: 220px; }
.pct-help__viz .bar { height: 10px; border-radius: 10px; background: var(--color-chalk-canvas); position: relative; }
.pct-help__viz .bar em { position: absolute; left: 0; top: 0; bottom: 0; width: 84%; background: var(--color-iris-bolt); border-radius: 10px; }
.pct-help__viz .bar s { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; background: var(--color-ink-charcoal); }
.pct-help__viz .lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--color-fog-mist); margin-top: 6px; }
.pct-help p { font-size: 15px; color: var(--color-slate-veil); }
.pct-help b { color: var(--color-ink-charcoal); }
.dgroup + .dgroup { margin-top: var(--s-40); }
.dgroup h3 { font-size: 14px; font-weight: 600; color: var(--color-slate-veil); margin-bottom: 12px; letter-spacing: .02em; }
.drows { background: var(--surface); border: 1px solid var(--color-mist-border); border-radius: var(--r-card); }
.drow { display: grid; grid-template-columns: 40px minmax(160px, 1.2fr) 1.4fr 52px; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--color-mist-border); }
.drow:last-child { border-bottom: 0; }
.drow__l { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--color-lilac-wash); color: var(--color-iris-bolt); font-weight: 700; }
.drow__n b { display: block; font-size: 16px; font-weight: 600; }
.drow__n span { font-size: 14px; color: var(--color-slate-veil); }
.drow__bar { height: 10px; border-radius: 10px; background: var(--color-chalk-canvas); position: relative; }
.drow__bar em { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: var(--color-iris-bolt); transform-origin: left; }
.drow__bar s { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; background: var(--color-mist-border); }
.drow__bar.is-low em { background: var(--color-fog-mist); }
.drow__p { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.drow.is-high .drow__l { background: var(--color-iris-bolt); color: #fff; }

.jlist { display: flex; flex-direction: column; gap: 10px; }
.jrow { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease); }
.jrow.is-open { box-shadow: var(--shadow-md); }
.jrow__head { width: 100%; display: grid; grid-template-columns: 44px 1fr 200px 64px 32px; gap: 16px; align-items: center; padding: 16px 20px; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.jrow__rank { font-weight: 700; color: var(--color-fog-mist); font-size: 15px; }
.jrow:nth-child(-n+3) .jrow__rank { color: var(--color-iris-bolt); }
.jrow__name b { display: block; font-size: 17px; font-weight: 600; }
.jrow__name span { font-size: 13px; color: var(--color-slate-veil); }
.jrow__bar { height: 8px; border-radius: 8px; background: var(--color-chalk-canvas); overflow: hidden; }
.jrow__bar em { display: block; height: 100%; background: var(--color-iris-bolt); border-radius: 8px; transform-origin: left; }
.jrow__pct { font-size: 20px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.jrow .qa__icon { width: 28px; height: 28px; }
.jrow.is-open .qa__icon { background: var(--color-iris-bolt); transform: rotate(180deg); }
.jrow.is-open .qa__icon::before, .jrow.is-open .qa__icon::after { background: #fff; }
.jrow.is-open .qa__icon::after { transform: rotate(0deg); }
.jrow__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.jrow.is-open .jrow__more { grid-template-rows: 1fr; }
.jrow__more > div { overflow: hidden; }
.jrow__inner { padding: 0 20px 20px 80px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.jrow__inner p { color: var(--color-slate-veil); font-size: 15px; }
.why { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.why span { font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.why i { font-style: normal; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.why .plus i { background: var(--color-lilac-wash); color: var(--color-iris-bolt); }
.why .minus i { background: var(--color-chalk-canvas); color: var(--color-slate-veil); }
.jrow .facts { margin: 0; }
.jrow__fiche { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; }

.fams { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-16); }
.fam { padding: 12px; }
.fam .fcard__panel { padding: 20px; height: 100%; }
.fam__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fam__top b { width: 44px; height: 44px; border-radius: 12px; background: var(--color-lilac-wash); color: var(--color-iris-bolt); display: grid; place-items: center; font-size: 20px; }
.fam h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.fam p { color: var(--color-slate-veil); font-size: 15px; }
.fam ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.locked { position: relative; margin-top: var(--s-32); border-radius: var(--r-card); overflow: hidden; }
.locked__rows { filter: blur(5px); opacity: .7; pointer-events: none; user-select: none; }
.locked__cta { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: var(--locked-bg); padding: 24px; }
.locked__cta h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.locked__cta p { color: var(--color-slate-veil); margin-bottom: 20px; }

.nexts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-16); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .rhero__grid { grid-template-columns: 1fr; gap: var(--s-40); }
  .kpis, .fams, .nexts { grid-template-columns: 1fr; }
  .drow { grid-template-columns: 40px 1fr 52px; }
  .drow__bar { grid-column: 2 / -1; grid-row: 2; }
  .jrow__head { grid-template-columns: 32px 1fr 56px 28px; }
  .jrow__bar { display: none; }
  .jrow__inner { padding: 0 20px 20px; grid-template-columns: 1fr; }
  .tips { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .qbar__quit { font-size: 0; padding: 8px; width: 40px; height: 40px; }
  .qbar__quit::before { content: "✕"; font-size: 16px; }
  .qbar .logo span { display: none; }
  .modes { grid-template-columns: 1fr; }
  .screen { padding: 28px var(--gutter) 40px; place-items: start center; }
  .qframe { padding: 8px; }
  .qframe__body { min-height: 150px; }
  .scale { gap: 2px; margin-top: 28px; }
  .scale__btn { padding: 8px 0; }
  .scale__dot { --s: 44px; }
  .scale__btn:nth-child(2) .scale__dot, .scale__btn:nth-child(4) .scale__dot { --s: 36px; }
  .scale__btn:nth-child(3) .scale__dot { --s: 28px; }
  .scale__label { font-size: 11px; }
  .scale__btn kbd, .quiz__hint { display: none; }
  .pct-help { flex-direction: column; align-items: stretch; }
  .pct-help__viz { width: 100%; }
  .rcode div { min-width: 0; flex: 1; }
  .kpi { padding: 18px; }
}

/* ---------- Impression / PDF ---------- */
@media print {
  .nav, .footer, .curtain, .progress, .ractions, .rbanner, .final, .nexts-sec, .qa__icon, .jrow__more { display: none !important; }
  body { background: #fff; }
  .sec, .rhero { padding: 24px 0 !important; background: #fff !important; }
  .rhero__title .rw > span, [style*="opacity"] { opacity: 1 !important; transform: none !important; }
  .jrow, .drows, .kpi { box-shadow: none; border: 1px solid var(--color-mist-border); break-inside: avoid; }
  .drow__bar em, .jrow__bar em { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =========================================================
   Paiement (paiement.html)
   ========================================================= */
.pay { position: relative; isolation: isolate; overflow: hidden; padding: 120px 0 96px; }
.pay__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-64); align-items: start; margin-top: 8px; }
.pay__title { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; margin-bottom: 28px; }
.pay__title .accent { color: var(--color-iris-bolt); }
.seg { position: relative; display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--color-mist-border); border-radius: var(--r-pill); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.seg button { position: relative; z-index: 1; font: inherit; font-size: 15px; font-weight: 600; border: 0; background: none; cursor: pointer; padding: 10px 18px; border-radius: var(--r-pill); color: var(--color-slate-veil); transition: color .3s; white-space: nowrap; }
.seg button b { font-weight: 700; margin-left: 4px; }
.seg button[aria-checked="true"] { color: #fff; }
.seg__pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: var(--r-pill); background: var(--color-iris-bolt); box-shadow: 0 6px 16px rgba(66, 85, 255, .3); }
.order { padding: 14px; transition: background-color .6s var(--ease); }
.order .fcard__panel { padding: 24px; }
.order__head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 16px; border-bottom: 1px solid var(--color-mist-border); }
.order__head b { font-size: 22px; font-weight: 700; }
.order__head b + .tag { margin-top: 8px; }
.order__head #oName { display: block; }
.order__head > span { font-size: 22px; font-weight: 600; }
.order .checks { margin: 18px 0; }
.order__total { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--color-mist-border); }
.order__total b { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.order__vat { margin-top: 6px; font-size: 13px; color: var(--color-slate-veil); text-align: right; }
.order__note { font-size: 13px; color: var(--color-slate-veil); margin-top: 8px; }
.paycard { background: var(--surface); border: 1px solid var(--color-mist-border); border-radius: var(--r-feature); padding: var(--s-40); box-shadow: var(--shadow-md); }
.paycard[hidden] { display: none; }
.paycard h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.paycard__sub { color: var(--color-slate-veil); margin-bottom: 24px; }
.paycard__lock { width: 52px; height: 52px; border-radius: 14px; background: var(--color-lilac-wash); display: grid; place-items: center; margin-bottom: 18px; }
.paycard__lock svg { width: 24px; height: 24px; fill: none; stroke: var(--color-iris-bolt); stroke-width: 1.8; stroke-linecap: round; }
.paycard .consent { margin-bottom: 14px; font-size: 14px; }
.paycard .btn { margin-top: 12px; }
.paycard--center { text-align: center; }
.paycard--center .paycard__sub { max-width: 420px; margin-left: auto; margin-right: auto; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 13px; color: var(--color-slate-veil); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; fill: none; stroke: var(--color-iris-bolt); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pay__notice { border-radius: var(--r-card); padding: 12px 16px; font-size: 14px; margin-bottom: 20px; background: var(--color-lilac-wash); color: var(--color-deep-indigo); }
.pay__notice[hidden] { display: none; }
.pay__notice--ok { background: #e9f8ef; color: #1d6b3a; }
.pay__ctas { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.pay__sim { margin-top: 20px; font-size: 13px; color: var(--color-slate-veil); background: var(--color-chalk-canvas); border-radius: var(--r-pill); display: inline-block; padding: 6px 14px; }
.pay__sim[hidden] { display: none; }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--color-lilac-wash); border-top-color: var(--color-iris-bolt); margin: 8px auto 24px; animation: spin .9s linear infinite; }

/* Mode / bouton de prix dans le questionnaire */
.mode__price { font-weight: 700; color: var(--color-iris-bolt); }
.rpaywall { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--color-iris-bolt); color: #fff; border-radius: var(--r-feature); padding: 24px 28px; margin-bottom: 40px; box-shadow: 0 16px 40px rgba(66, 85, 255, .28); }
.rpaywall h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.rpaywall p { opacity: .85; font-size: 15px; }
.rpaywall .btn { background: var(--surface); color: var(--color-iris-bolt); }
.rpaywall .btn:hover { background: var(--color-lilac-wash); }
.rloading { display: flex; align-items: center; gap: 14px; }
.rloading .spinner { margin: 0; width: 28px; height: 28px; border-width: 3px; }

@media (max-width: 960px) {
  .pay__grid { grid-template-columns: 1fr; gap: var(--s-40); }
}
@media (max-width: 600px) {
  .pay { padding-top: 104px; }
  .paycard { padding: 24px 20px; }
  .seg { display: flex; }
  .seg button { flex: 1; padding: 10px 8px; font-size: 14px; }
  .seg button b { display: block; margin: 0; }
}
