/* tf.css — test funnels. Tout est scopé sous .tf et #payment-form.tf-pay.
   v4 « l'empreinte » (planches du 17/09/2026) : écrans de test, analyse et paywall sur fond sombre à la couleur du test,
   empreinte radiale (un trait par réponse), échelles en cercles. Les résultats (.tf-results) restent sur fond clair. */

.tf {
  --ink: #1C2140;
  --paper: #F3F5F9;
  --card: #FFFFFF;
  --line: #DCE1EA;
  --muted: #5B6380;
  --ok: #1E7F4F;
  --ko: #B3261E;
  --accent-soft: color-mix(in srgb, var(--accent, #2A4FD6) 11%, #fff);
  --accent-mid: color-mix(in srgb, var(--accent, #2A4FD6) 35%, #fff);
  --cream: #F6F1E7;
  --muted-l: rgba(246, 241, 231, 0.68);
  --line-l: rgba(246, 241, 231, 0.18);
  --faint: rgba(246, 241, 231, 0.28);
  --opt: rgba(246, 241, 231, 0.07);
  --opt-on: rgba(246, 241, 231, 0.12);
  --accent-12: color-mix(in srgb, var(--accent, #E3B25B) 12%, transparent);
  --accent-16: color-mix(in srgb, var(--accent, #E3B25B) 16%, transparent);
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.tf * { box-sizing: border-box; }
.tf { background: var(--paper); min-height: 70vh; padding-bottom: 48px; }
.tf h1, .tf h2, .tf h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -0.015em; }
.tf p { margin: 0; }
.tf a { color: var(--accent); }
.tf button { font-family: inherit; cursor: pointer; }
.tf [hidden] { display: none !important; }

.tf-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.tf-narrow { max-width: 660px; }

/* ── boutons ── */
.tf .tf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; font: 700 1.05rem/1 var(--body); text-decoration: none;
  transition: transform .12s ease, filter .12s ease;
}
.tf .tf-btn:hover { filter: brightness(1.08); }
.tf .tf-btn:active { transform: translateY(1px); }
.tf .tf-btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; filter: none; }
.tf .tf-btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.tf :focus-visible { outline: 3px solid var(--accent-mid); outline-offset: 2px; }

.tf-kicker { font-weight: 600; color: var(--accent); font-size: .95rem; margin-bottom: 10px !important; }
.tf-lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-top: 14px !important; }
.tf-fine { font-size: .88rem; color: var(--muted); margin-top: 12px !important; }
.tf-disclaimer { font-size: .82rem; color: var(--muted); margin-top: 24px !important; max-width: 60em; }
.tf-error { color: var(--ko); font-weight: 600; margin: 12px 0 !important; }

/* ══════════════════════════ FUNNEL : fond sombre à la couleur du test ══════════════════════════ */
.tf-funnel { background: var(--ground, #2A2140); color: var(--cream); min-height: 100vh; padding-bottom: 0; }
.tf-funnel h1, .tf-funnel h2, .tf-funnel h3 { color: var(--cream); }
.tf-funnel .tf-btn { background: var(--accent); color: var(--on, #1E172E); border-radius: 999px; min-height: 58px; font-size: 1.06rem; }
.tf-funnel .tf-btn:disabled { background: rgba(246, 241, 231, 0.14); color: var(--muted-l); }
.tf-funnel :focus-visible { outline-color: var(--accent); }
.tf-funnel .tf-lede, .tf-funnel .tf-fine, .tf-funnel .tf-disclaimer, .tf-funnel .tf-facts, .tf-funnel .tf-benefits p, .tf-funnel details p { color: var(--muted-l); }
.tf-funnel .tf-facts strong { color: var(--cream); }
.tf-funnel .tf details { border-color: var(--line-l); }
.tf-funnel details { border-bottom: 1px solid var(--line-l); }
.tf-funnel .tf-benefits li { border-left-color: var(--accent); }
.tf-funnel .tf-kicker { color: var(--accent); }

/* ── landing (repli, la landing habituelle est celle du thème) ── */
.tf-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.tf-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; max-width: 12em; }
.tf-facts { display: flex; gap: 22px; margin: 26px 0 28px; color: var(--muted); font-size: .98rem; }
.tf-facts strong { font-family: var(--display); color: var(--ink); font-size: 1.5rem; margin-right: 4px; }
.tf-hero .tf-btn { min-width: 240px; }
.tf-demo-card { background: var(--card); border-radius: 20px; padding: 26px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px color-mix(in srgb, var(--accent) 45%, transparent); border-top: 6px solid var(--accent); color: var(--ink); }
.tf-demo-card p, .tf-demo-card h2 { color: var(--ink); }
.tf-demo-n { font-size: .85rem; color: var(--muted) !important; }
.tf-demo-q { font-family: var(--display); font-size: 1.4rem; line-height: 1.2; margin: 8px 0 18px !important; font-weight: 700; }
.tf-demo-scale { display: grid; gap: 8px; }
.tf-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tf .tf-demo-opt { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 500 .98rem/1.3 var(--body); }
.tf button.tf-demo-opt:hover, .tf .tf-demo-opt.is-on { border-color: var(--accent); background: var(--accent-soft); }
.tf-demo-pic { flex-direction: column; text-align: center !important; }
.tf-demo-hint { font-size: .85rem; color: var(--accent) !important; font-weight: 600; margin-top: 14px !important; }
.tf-demo-matrix { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
.tf-demo-matrix .cell { fill: var(--paper); }
.tf-demo-matrix .shp { fill: var(--accent); }
.tf-demo-matrix .q { font: 800 44px var(--display); fill: var(--accent); }
.tf-section { padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line-l); }
.tf-section > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 26px; }
.tf-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.tf-benefits li { padding-left: 18px; border-left: 3px solid var(--accent); }
.tf-benefits h3 { font-size: 1.2rem; margin-bottom: 4px; }
.tf-benefits p { color: var(--muted); }
.tf-faq { max-width: 760px; }
.tf details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.tf summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style-position: outside; }
.tf details p { margin-top: 8px !important; color: var(--muted); }
.tf-end { text-align: center; }
.tf-end .tf-disclaimer { margin-left: auto !important; margin-right: auto !important; }

/* ── matière (GED) ── */
.tf-subject .tf-wrap { padding-top: 56px; }
.tf-subject .tf-kicker { font-size: 1rem; }
.tf-subject .tf-q { text-align: left; }
.tf-subject .tf-options { display: grid; gap: 12px; margin-top: 32px; }
.tf-funnel .tf-pick-subject { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 84px; padding: 16px 18px; border-radius: 20px; border: 2px solid transparent; background: var(--opt); color: var(--cream); font: 600 1.12rem/1.3 var(--body); text-align: left; }
.tf-funnel .tf-pick-subject:hover { border-color: var(--accent); }
.tf-funnel .tf-pick-subject span { font-size: .9rem; font-weight: 400; color: var(--muted-l); }
.tf-subject .tf-fine { margin-top: 28px !important; font-size: .95rem; }

/* ── test : en-tête, empreinte, question, réponses ── */
.tf-test { display: grid; grid-template-columns: 1fr; padding: 12px 20px 28px; min-height: 100vh; align-content: start; }
.tf-test > .tf-side, .tf-test > .tf-main { display: contents; }
.tf-head { order: 1; display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 12px; }
.tf-print { order: 2; position: relative; width: 236px; max-width: 100%; aspect-ratio: 1; margin: 4px auto 0; }
.tf-stage { order: 3; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 8px; }
.tf-foot { order: 4; font-size: .88rem; line-height: 1.4; color: var(--muted-l); text-align: center; margin-top: 22px !important; display: grid; gap: 6px; }
.tf-foot .tf-keys { display: none; }
.tf .tf-back { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted-l); display: flex; align-items: center; justify-content: center; padding: 0; margin-left: -10px; }
.tf .tf-back:hover { color: var(--cream); }
.tf-headmid { display: flex; align-items: center; gap: 6px; }
.tf-headmid .tf-print-svg { width: 84px; height: 84px; }
.tf-headmid { position: relative; }
.tf-count-sm { position: absolute; left: 0; width: 84px; top: 0; height: 84px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-variation-settings: "wdth" 75; font-size: 30px; font-weight: 800; pointer-events: none; }
.tf-headright { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; font-size: .88rem; color: var(--muted-l); max-width: 140px; line-height: 1.3; }
.tf-about, .tf-note, .tf-over { font-size: .88rem; color: var(--muted-l); }
.tf-timer { font-family: var(--display); font-variation-settings: "wdth" 75; font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--cream); background: none; padding: 0; }
.tf-timer.is-low { color: var(--accent); }
.tf-print-svg { display: block; width: 100%; height: auto; }
.tf-print-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.tf-count { font-family: var(--display); font-variation-settings: "wdth" 75; font-size: 58px; font-weight: 800; line-height: .95; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* Mobile : la grande empreinte est masquée pour tous les tests ; l'indicateur compact de l'en-tête suffit. */
.tf-test .tf-print { display: none; }
.tf-headmid { display: flex; }
.tf-head { min-height: 92px; }
.tf-resume { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--accent-16); font-size: .95rem; margin-bottom: 18px; }
.tf-funnel .tf-restart { border: 0; background: transparent; color: var(--accent); font-size: .95rem; font-weight: 600; text-decoration: underline; padding: 0; min-height: 44px; }
.tf-card { animation: tfIn .18s ease; }
@keyframes tfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tf-funnel .tf-kicker { text-align: center; font-size: .95rem; margin-bottom: 10px !important; }
.tf-funnel .tf-q { font-size: clamp(1.6rem, 6.5vw, 1.85rem); line-height: 1.14; font-weight: 700; letter-spacing: -0.02em; text-align: center; text-wrap: balance; margin-bottom: 32px !important; }
.tf-funnel .tf-list ~ .tf-nav, .tf-funnel .tf-grid3 ~ .tf-nav { margin-top: 22px; }
.tf-options { display: grid; gap: 10px; }

/* échelle en cercles : plus grand vers les extrêmes, ligne fine derrière */
.tf-likert { position: relative; display: flex; gap: 0; align-items: flex-start; width: 100%; --min: 34px; --max: 56px; }
.tf-likert-line { position: absolute; left: 10%; right: 10%; top: calc(var(--max) / 2 - 1px); height: 2px; background: var(--line-l); }
.tf-funnel .tf-likert .tf-opt { flex: 1 1 0; min-width: 0; border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted-l); font: 500 12.5px/1.2 var(--body); text-align: center; min-height: 0; position: relative; }
.tf-likert .tf-circle { display: block; width: calc(var(--min) + var(--k, 1) * (var(--max) - var(--min))); height: calc(var(--min) + var(--k, 1) * (var(--max) - var(--min))); border-radius: 50%; border: 2px solid var(--accent); background: var(--ground); margin: calc((var(--max) - (var(--min) + var(--k, 1) * (var(--max) - var(--min)))) / 2) 0; transition: background .12s, transform .12s; }
.tf-likert .tf-opt:hover .tf-circle { transform: scale(1.06); }
.tf-likert .tf-opt.is-on .tf-circle { background: var(--accent); }
.tf-likert .tf-opt.is-on { color: var(--cream); }
.tf-likert .tf-lab { min-height: 2.4em; }
.tf-likert[style*="--n:7"], .tf-likert[style*="--n:6"] { --min: 26px; --max: 44px; }
.tf-likert[style*="--n:7"] .tf-opt, .tf-likert[style*="--n:6"] .tf-opt { font-size: 11.5px; gap: 8px; }
.tf-likert-sel { text-align: center; font-size: 1.05rem; font-weight: 600; color: var(--accent); margin-top: 14px !important; min-height: 1.5em; }

/* réponses en liste (QCM, verbal) et en grille (images, matrices) */
.tf-funnel .tf-list .tf-opt, .tf-funnel .tf-grid .tf-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 12px 18px;
  background: var(--opt); color: var(--cream); border: 2px solid transparent; border-radius: 18px;
  font: 500 1.1rem/1.3 var(--body); text-align: left; transition: border-color .12s, background .12s;
}
.tf-funnel .tf-list .tf-opt:hover:not(:disabled), .tf-funnel .tf-grid .tf-opt:hover:not(:disabled) { border-color: var(--accent); }
.tf-funnel .tf-list .tf-opt.is-on, .tf-funnel .tf-grid .tf-opt.is-on { border-color: var(--accent); background: var(--opt-on); font-weight: 600; box-shadow: none; }
.tf-funnel .tf-letter { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-l); background: transparent; color: var(--muted-l); font-weight: 700; font-size: .9rem; }
.tf-funnel .tf-opt.is-on .tf-letter { background: var(--accent); border-color: var(--accent); color: var(--on); }
.tf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tf-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tf-funnel .tf-grid .tf-opt { flex-direction: column; justify-content: center; text-align: center; padding: 14px 12px; min-height: 136px; border-radius: 22px; font-weight: 600; }
.tf-funnel .tf-grid3 .tf-opt { min-height: 92px; padding: 8px; }
.tf-emoji { font-size: 2.6rem; line-height: 1; }
.tf-nav { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.tf-nav .tf-btn { flex-grow: 1; }
.tf-funnel .tf-skip { background: none; border: 0; color: var(--muted-l); text-decoration: underline; font-size: .95rem; padding: 0 4px; min-height: 44px; }
.tf-passage { background: var(--panel, rgba(0, 0, 0, .25)); border-radius: 16px; padding: 14px 18px !important; margin-bottom: 20px; border: 1px solid var(--line-l) !important; }
.tf-passage summary { color: var(--accent); }
.tf-passage p { color: var(--cream) !important; line-height: 1.7; }
.tf-figure { background: var(--panel, rgba(0, 0, 0, .25)); border-radius: 22px; padding: 14px; margin: 0 auto 18px; display: flex; justify-content: center; max-width: 300px; }
.tf-matrix { width: 100%; max-width: 272px; }
.tf-matrix .cell { fill: rgba(246, 241, 231, 0.06); }
.tf-matrix .cell.missing { fill: var(--accent-12); stroke: var(--accent); stroke-dasharray: 5 4; stroke-width: 2; }
.tf-matrix .q { font: 800 42px var(--display); fill: var(--accent); }
.tf .shp { stroke: var(--cream); stroke-width: 2.5; }
.tf .shp.f0 { fill: transparent; }
.tf .shp.f1 { fill: color-mix(in srgb, var(--accent) 50%, transparent); }
.tf .shp.f2 { fill: var(--cream); }
.tf-tile { width: 100%; max-width: 84px; }
.tf-figure-sm { max-width: 180px; }
.tf-poly { width: 100%; max-width: 120px; }
.tf-poly rect { fill: var(--accent); }
.tf-seq { font-family: var(--display); font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 700; margin-bottom: 22px !important; letter-spacing: .01em; text-align: center; }
.tf-seq span { color: var(--muted-l); font-weight: 500; }
.tf-seq em { font-style: normal; color: var(--accent); }
.tf-funnel .tf-q + .tf-list .tf-opt { text-align: left; }
.tf-funnel .tf-list ~ .tf-q, .tf-funnel .tf-passage + .tf-q { text-align: left; }
.tf-test.is-timed .tf-q { text-align: left; margin-bottom: 24px !important; }
.tf-test.is-timed .tf-kicker { text-align: left; }
.tf-loading { display: grid; justify-items: center; gap: 14px; padding: 70px 0; color: var(--muted-l); }
.tf-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-l); border-top-color: var(--accent); animation: tfSpin .8s linear infinite; }
@keyframes tfSpin { to { transform: rotate(360deg); } }

/* ── analyse ── */
.tf-analysing .tf-wrap { padding-top: 60px; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.tf-print-full { width: 300px; max-width: 80vw; }
.tf-analysing h2 { font-size: clamp(1.9rem, 7vw, 2.15rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
.tf-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; width: 100%; max-width: 420px; text-align: left; }
.tf-steps li { display: flex; align-items: center; gap: 14px; color: var(--muted-l); font-size: 1.1rem; transition: color .2s; }
.tf-steps li::before { content: ""; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-l); flex: none; transition: all .2s; }
.tf-steps li.done { color: var(--cream); }
.tf-steps li.done::before { background: var(--accent) center / 14px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E172E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>"); border-color: var(--accent); }

/* ── paywall ── */
.tf-paywall .tf-wrap { padding-top: 40px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 22px; text-align: left; }
.tf-pw-kicker { font-size: .95rem; font-weight: 600; color: var(--accent); }
.tf-paywall h2 { font-size: clamp(2rem, 8.5vw, 2.3rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.028em; margin-top: -8px; }
.tf-preview { position: relative; border-radius: 26px; background: var(--panel, #1E172E); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.tf-pv-top { display: flex; align-items: center; gap: 16px; }
.tf-pv-print { position: relative; width: 120px; height: 120px; flex: none; }
.tf-pv-print .tf-print-svg { width: 120px; height: 120px; }
.tf-pv-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--cream); }
.tf-pv-lock svg { width: 22px; height: 22px; }
.tf-pv-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tf-pv-title { font-size: .88rem; color: var(--muted-l); }
.tf-pv-lead { font-family: var(--display); font-size: 1.55rem; font-weight: 800; line-height: 1.1; }
.tf-blur { display: inline-block; color: transparent; background: var(--accent); filter: blur(5px); border-radius: 6px; vertical-align: -2px; letter-spacing: -.1em; }
.tf-pv-line { display: block; width: 130px; height: 12px; border-radius: 6px; background: var(--line-l); filter: blur(3px); }
.tf-pv-bars { display: flex; flex-direction: column; gap: 11px; }
.tf-pv-row { display: flex; align-items: center; gap: 14px; }
.tf-pv-lab { width: 58px; height: 11px; border-radius: 6px; background: var(--line-l); filter: blur(2.5px); flex: none; }
.tf-pv-row:nth-child(2) .tf-pv-lab { width: 44px; }
.tf-pv-track { flex-grow: 1; height: 11px; border-radius: 6px; background: rgba(246, 241, 231, 0.08); }
.tf-pv-bar { display: block; height: 11px; width: 6%; border-radius: 6px; background: var(--accent); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.tf-preview.is-live .tf-pv-bar { width: var(--w); }
.tf-pv-cap { font-size: .88rem; color: var(--muted-l); }
.tf-preview-blur { display: grid; gap: 12px; opacity: .85; filter: blur(4px); }
.tf-preview-blur span { display: block; height: 14px; border-radius: 7px; background: var(--line-l); }
.tf-preview-blur .l1 { height: 40px; width: 38%; background: var(--accent); }
.tf-preview-blur .l2 { width: 70%; } .tf-preview-blur .l3 { width: 90%; } .tf-preview-blur .l4 { width: 60%; }
.tf-preview-blur .bars { display: grid; gap: 8px; height: auto; background: none; }
.tf-preview-blur .bars i { display: block; height: 12px; border-radius: 6px; background: var(--accent); }
.tf-preview-blur .bars i:nth-child(1) { width: 82%; } .tf-preview-blur .bars i:nth-child(2) { width: 55%; } .tf-preview-blur .bars i:nth-child(3) { width: 68%; }
.tf-lock { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cream); }
.tf-lock svg { width: 26px; height: 26px; }
.tf-teaser-s { color: var(--muted-l); }
.tf-includes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tf-includes li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; line-height: 1.35; }
.tf-includes li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; stroke: var(--accent); }
.tf-paywall .tf-btn { width: 100%; min-height: 62px; font-size: 1.12rem; }
.tf-social { font-size: .88rem; color: var(--muted-l); text-align: center; }
.tf-price-note { font-size: .95rem; color: var(--cream); text-align: center; }
.tf-paywall .tf-disclaimer { text-align: center; margin-top: 4px !important; }

/* ── bureau : empreinte à gauche, question à droite ── */
@media (min-width: 900px) {
  .tf-test { grid-template-columns: minmax(380px, 42%) 1fr; padding: 0; }
  .tf-test > .tf-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 48px; background: var(--panel, rgba(0, 0, 0, .25)); min-height: 100vh; }
  .tf-test > .tf-main { display: flex; flex-direction: column; padding: 36px 80px 48px; min-height: 100vh; }
  .tf-test .tf-print, .tf-test.is-timed .tf-print { display: block; width: min(440px, 80%); margin: 0; } /* bureau : grande empreinte dans la colonne de gauche (la règle mobile .tf-test .tf-print la masque) */
  .tf-count { font-size: 112px; line-height: .92; }
  .tf-over { font-size: 1.05rem; }
  .tf-foot { font-size: 1rem; max-width: 340px; margin-top: 0 !important; }
  .tf-foot .tf-keys { display: block; font-size: .88rem; margin-top: 18px; }
  .tf-test .tf-headmid { display: none; } /* l'empreinte du panneau de gauche porte déjà le compteur */
  .tf-head { min-height: 44px; }
  .tf .tf-back { width: auto; padding: 0 4px; gap: 8px; font-size: .95rem; font-weight: 600; margin-left: 0; }
  .tf-headright { max-width: none; font-size: .95rem; }
  .tf-stage { justify-content: center; }
  .tf-funnel .tf-kicker { text-align: left; font-size: 1.05rem; margin-bottom: 14px !important; }
  .tf-funnel .tf-q { text-align: left; font-size: clamp(2.2rem, 4.2vw, 3.75rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 48px !important; }
  .tf-likert { --min: 44px; --max: 74px; }
  .tf-funnel .tf-likert .tf-opt { font-size: 15px; }
  .tf-likert[style*="--n:7"], .tf-likert[style*="--n:6"] { --min: 34px; --max: 58px; }
  .tf-funnel .tf-list, .tf-funnel .tf-grid { max-width: 640px; }
  .tf-nav { max-width: 640px; }
  .tf-figure, .tf-figure-sm { width: 100%; max-width: 640px; margin-left: 0; margin-right: 0; } /* figure alignée sur la grille des réponses */
  .tf-seq, .tf-passage, .tf-likert-sel { max-width: 640px; text-align: left; }
  .tf-analysing .tf-wrap, .tf-paywall .tf-wrap { max-width: 560px; }
  .tf-paywall .tf-wrap { padding-top: 72px; }
}
@media (max-width: 480px) {
  .tf-grid3 { gap: 8px; }
  .tf-funnel .tf-grid3 .tf-opt { padding: 6px; min-height: 84px; }
}

/* ── résultats (fond clair, inchangés) ── */
.tf-results .tf-wrap { max-width: 760px; padding-top: 48px; }
.tf-rhead { margin-bottom: 26px; }
.tf-rhead h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; }
.tf-big { margin: 4px 0 10px; }
.tf-code { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 14vw, 6.5rem); line-height: .95; color: var(--accent); letter-spacing: -0.04em; }
.tf-code small { font-size: .35em; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.tf-code.ok { color: var(--ok); } .tf-code.ko { color: var(--ko); }
.tf-letters { display: flex; gap: 10px; }
.tf-letters b { font-family: var(--display); font-size: 3.4rem; line-height: 1; width: 1.4em; height: 1.4em; display: grid; place-items: center; border-radius: 14px; background: var(--accent); color: #fff; }
.tf-letters b + b { background: var(--accent-mid); color: var(--ink); }
.tf-letters b + b + b { background: var(--accent-soft); }
.tf-animal { font-size: 6rem; line-height: 1; }
.tf-summary { font-size: 1.15rem; line-height: 1.65; margin-bottom: 24px !important; }
.tf-block { background: var(--card); border-radius: 16px; padding: 22px 24px; margin-bottom: 14px; }
.tf-block h3 { font-size: 1.2rem; margin-bottom: 12px; }
.tf-block ul, .tf-block ol { margin: 0; padding-left: 20px; }
.tf-block li { margin-bottom: 6px; }
.tf-block details:last-child { border-bottom: 0; }
.tf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tf-two .tf-block { margin-bottom: 14px; }
.tf-barrow { margin-bottom: 12px; }
.tf-barlab { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; margin-bottom: 5px; }
.tf-barlab b { font-variant-numeric: tabular-nums; }
.tf-track { height: 10px; background: var(--paper); border-radius: 5px; overflow: hidden; }
.tf-track i { display: block; height: 100%; background: var(--accent-mid); border-radius: 5px; transition: width .6s ease; }
.tf-barrow.is-top .tf-track i { background: var(--accent); }
.tf-barrow.is-top .tf-barlab { font-weight: 700; }
.tf-about { font-size: .9rem; color: var(--muted); margin: -4px 0 14px !important; }
.tf-scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 18px; }
.tf-scale span { background: var(--card); padding: 10px; border-radius: 10px; font-size: .9rem; color: var(--muted); }
.tf-scale span b { display: block; color: var(--ink); }
.tf-scale span.is-on { background: var(--accent); color: #fff; }
.tf-scale span.is-on b { color: #fff; }
.tf-quad { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; background: var(--card); border-radius: 16px; padding: 18px 24px; margin-bottom: 20px; }
.tf-quad svg { width: 100%; }
.tf-quad .qbg { fill: var(--paper); }
.tf-quad line { stroke: var(--line); stroke-width: 2; }
.tf-quad text { font: 600 13px var(--body); fill: var(--muted); }
.tf-quad text.ax { font-size: 11px; }
.tf-quad .me { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.tf-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.tf-dl dt { font-weight: 700; }
.tf-dl dd { margin: 0; color: var(--muted); }
.tf-jobs { list-style: none; padding: 0 !important; counter-reset: job; }
.tf-jobs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.tf-jobs li:last-child { border-bottom: 0; }
.tf-jobs li div { display: grid; }
.tf-jobs span { font-size: .88rem; color: var(--muted); }
.tf-jobs a { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.tf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tf-chips span { background: var(--accent); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 600; }
.tf-second { display: flex; gap: 18px; align-items: flex-start; }
.tf-animal-sm { font-size: 3rem; line-height: 1; }
.tf-bell svg { width: 100%; max-width: 520px; display: block; margin: 0 auto 10px; }
.tf-bell .curve { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.tf-bell line { stroke: var(--muted); }
.tf-bell .you { stroke: var(--ink); stroke-width: 3; }
.tf-bell text { font: 600 7px var(--body); fill: var(--muted); }
.tf-rev summary { display: flex; gap: 10px; align-items: baseline; font-weight: 500; }
.tf-rev summary span { flex: none; font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tf-rev.ok summary span { background: color-mix(in srgb, var(--ok) 14%, #fff); color: var(--ok); }
.tf-rev.ko summary span { background: color-mix(in srgb, var(--ko) 12%, #fff); color: var(--ko); }
.tf-rev .tf-q { font-size: 1.1rem; margin: 12px 0 !important; }
.tf-results .tf-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 12px 18px; background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; font: 500 1.05rem/1.3 var(--body); text-align: left; }
.tf-results .tf-letter { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--paper); font-weight: 700; font-size: .9rem; }
.tf-results .tf-grid .tf-opt { flex-direction: column; justify-content: center; text-align: center; padding: 12px; }
.tf-results .tf-figure { background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 18px; display: flex; justify-content: center; }
.tf-results .tf-matrix .cell { fill: var(--paper); }
.tf-results .shp { stroke: var(--ink); }
.tf-results .shp.f0 { fill: #fff; }
.tf-results .shp.f1 { fill: var(--accent-mid); }
.tf-results .shp.f2 { fill: var(--ink); }
.tf-results .tf-passage { background: var(--card); border: 1px solid var(--line) !important; }
.tf-results .tf-passage p { color: var(--ink) !important; }
.tf-results .tf-seq span { color: var(--muted); }
.tf .tf-opt.is-right { border-color: var(--ok); box-shadow: inset 0 0 0 2px var(--ok); }
.tf .tf-opt.is-wrong { border-color: var(--ko); opacity: .75; }
.tf-rfoot { margin-top: 30px; text-align: center; }
.tf-date { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 10px !important; }
.tf-empty { text-align: center; padding: 60px 0; }
.tf-empty h1 { font-size: 2.2rem; margin-bottom: 10px; }
.tf-empty p { color: var(--muted); margin-bottom: 24px !important; }
.tf-history { background: none; min-height: 0; }
.tf-history ul { list-style: none; padding: 0; }
.tf-history li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tf-history span { color: var(--muted); }

/* ── mobile (landing et résultats) ── */
@media (max-width: 820px) {
  .tf-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 32px; }
  .tf-hero .tf-btn { width: 100%; }
  .tf-benefits { grid-template-columns: 1fr; gap: 20px; }
  .tf-two, .tf-quad { grid-template-columns: 1fr; }
  .tf-quad svg { max-width: 300px; margin: 0 auto; }
  .tf-scale { grid-template-columns: 1fr; }
  .tf-jobs li { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .tf * { animation: none !important; transition: none !important; }
}

.tf-demo-flag { background: #FFF4CC; color: #5C4A00; padding: 10px 14px; border-radius: 10px; font-weight: 600; margin-bottom: 20px !important; }

/* ══════════════════════════ BANQUES QSM (26/09/2026) : médias, écoute, sous-questions, plusieurs questions par page ══════════════════════════ */
.tf-media { margin: 0 auto 20px; max-width: 640px; border-radius: 22px; overflow: hidden; background: var(--panel, rgba(0, 0, 0, .25)); }
.tf-media img, .tf-media video { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; background: #000; }
.tf-funnel .tf-media { border: 1px solid var(--line-l); }
.tf-listen { background: var(--panel, rgba(0, 0, 0, .25)); border: 1px solid var(--line-l); border-radius: 22px; padding: 18px 20px; margin: 0 auto 22px; max-width: 640px; display: grid; gap: 10px; }
.tf-listen audio { width: 100%; }
.tf-sub-kicker { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tf-listen-hint { font-size: .92rem; color: var(--muted-l); }
.tf-listen-sm { padding: 10px 12px; margin: 10px 0; max-width: none; }
.tf-item + .tf-item { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-l); }
.tf-item-n { font-family: var(--display); font-weight: 800; font-size: .95rem; color: var(--accent); margin-bottom: 6px !important; }
.tf-funnel .tf-item .tf-q { text-align: left; margin-bottom: 20px !important; font-size: clamp(1.25rem, 5vw, 1.5rem); }
.tf-funnel .tf-item:only-child .tf-q { text-align: center; font-size: clamp(1.6rem, 6.5vw, 1.85rem); margin-bottom: 32px !important; }
.tf-count-range { font-size: 40px; }
.tf-headmid .tf-count-sm { font-size: 20px; }
.tf-multi { display: grid; gap: 18px; }
.tf-group .tf-sub { font-weight: 600; font-size: 1.05rem; line-height: 1.35; margin-bottom: 10px !important; }
.tf-yn .tf-options { grid-template-columns: 1fr 1fr; }
.tf-funnel .tf-check .tf-box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-l); background: transparent; display: grid; place-items: center; }
.tf-funnel .tf-yn .tf-check .tf-box { border-radius: 50%; }
.tf-funnel .tf-check.is-on .tf-box { background: var(--accent); border-color: var(--accent); }
.tf-funnel .tf-check.is-on .tf-box::after { content: ""; width: 7px; height: 12px; border: solid var(--on); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.tf-funnel .tf-yn .tf-check .tf-box::after { display: none; }
.tf-funnel .tf-yn .tf-check.is-on .tf-box { box-shadow: inset 0 0 0 5px var(--panel, #000); }
.tf-multi-hint { font-size: .88rem; color: var(--muted-l); text-align: center; margin-top: 12px !important; }
.tf-demo-img { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
/* Résultats : relecture avec médias et sous-questions ; écran de résultats du mode premium ; anciens résultats QSM. */
.tf-results .tf-media, .tf-legacy-result .tf-media { background: var(--paper); margin: 10px 0 14px; }
.tf-results .tf-listen { background: var(--paper); border-color: var(--line); }
.tf-rev-groups { margin: 10px 0 14px; display: grid; gap: 12px; }
.tf-rev-groups .tf-sub { font-weight: 600; margin-bottom: 8px !important; }
.tf-rev-groups .tf-options { gap: 6px; }
.tf-results .tf-check .tf-box, .tf-legacy-result .tf-check .tf-box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; }
.tf-results .tf-check.is-on .tf-box { background: var(--ink); border-color: var(--ink); }
.tf-results .tf-check.is-right { border-color: var(--ok); }
.tf-results .tf-check.is-right .tf-box { background: var(--ok); border-color: var(--ok); }
.tf-results .tf-check.is-wrong { border-color: var(--ko); }
.tf-results .tf-check.is-wrong .tf-box { background: var(--ko); border-color: var(--ko); }
.tf-results .tf-check.is-on .tf-box::after, .tf-results .tf-check.is-right .tf-box::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.tf-scale-6 { grid-template-columns: repeat(6, 1fr); }
.tf-scale-6 span { text-align: center; padding: 8px 4px; font-size: .8rem; }
.tf-funnel .tf-results-screen { background: var(--paper); color: var(--ink); min-height: 100vh; }
.tf-funnel .tf-results-screen .tf-results { background: var(--paper); }
body.tf-light.psy-plein-ecran { background: #F3F5F9 !important; }
.tf-gate { max-width: 560px; margin: 60px auto; padding: 0 20px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.tf-legacy-result { padding: 40px 0; }
.tf-legacy-result .tf-result { max-width: 760px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 820px) {
  .tf-scale-6 { grid-template-columns: repeat(3, 1fr); }
  .tf-yn .tf-options { grid-template-columns: 1fr 1fr; }
}

/* Écoute : lecteur persistant au-dessus de la question, compact ; la lecture continue d'une question à l'autre. */
.tf-dock { max-width: 640px; margin: 0 auto; width: 100%; }
.tf-dock .tf-listen { margin: 6px auto 18px; padding: 12px 16px 10px; gap: 8px; }
.tf-dock .tf-sub-kicker { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tf-listen-n { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted-l); font-size: .8rem; }
.tf-dock .tf-listen-hint { font-size: .85rem; }
.tf-dock audio { height: 40px; }
@media (min-width: 900px) { .tf-dock { margin-top: 4px; } }

/* Relecture : enregistrement d'écoute affiché une fois avant ses questions. */
.tf-rev-audio { margin: 18px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.tf-rev-audio .tf-sub-kicker { display: block; margin-bottom: 6px; }
.tf-results .tf-rev-audio .tf-listen { margin: 0 0 8px; }

/* Bureau : média, lecteur d'écoute et sous-questions alignés à gauche sur la grille des réponses (640 px), comme les figures. */
@media (min-width: 900px) {
  .tf-media, .tf-listen, .tf-dock, .tf-multi, .tf-multi-hint { max-width: 640px; margin-left: 0; margin-right: 0; }
  .tf-multi-hint { text-align: left; }
}

/* Réponses courtes sur deux colonnes (bureau) : moins de hauteur pour les quiz de culture et de grammaire. */
@media (min-width: 900px) {
  .tf-funnel .tf-cols2 { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .tf-funnel .tf-cols2 .tf-opt { min-height: 56px; padding: 10px 16px; }
}

/* Écran de résultats du mode premium (dans le funnel sombre) : couleurs de la page de résultats claire. */
.tf-funnel .tf-results-screen, .tf-funnel .tf-results-screen h1, .tf-funnel .tf-results-screen h2, .tf-funnel .tf-results-screen h3, .tf-funnel .tf-results-screen p, .tf-funnel .tf-results-screen li, .tf-funnel .tf-results-screen summary, .tf-funnel .tf-results-screen dt, .tf-funnel .tf-results-screen dd { color: var(--ink); }
.tf-funnel .tf-results-screen .tf-kicker { color: var(--accent); text-align: left; font-size: .95rem; }
.tf-funnel .tf-results-screen .tf-lede, .tf-funnel .tf-results-screen .tf-about, .tf-funnel .tf-results-screen .tf-fine, .tf-funnel .tf-results-screen .tf-disclaimer, .tf-funnel .tf-results-screen .tf-date, .tf-funnel .tf-results-screen .tf-barlab span { color: var(--muted); }
.tf-funnel .tf-results-screen .tf-rhead h1 { text-align: left; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 0 !important; }
.tf-funnel .tf-results-screen .tf-block { background: var(--card); }
.tf-funnel .tf-results-screen .tf-btn-ghost { color: var(--ink); }
