/* PrepDeal — système de design (novembre 2026)
   Direction : les conventions d'un modèle financier bien tenu. Le bleu signale ce sur quoi on agit (liens, boutons, choix,
   saisies), l'encre ce qui est calculé (résultats, progression), le jaune « hypothèse » ce qu'il faut revérifier (à revoir).
   Chiffres en tabulaires, alignés à droite. Deux éléments signature, tirés du métier : le football field de la progression
   et les tombstones des simulations réussies.
   Titres et corrections : Newsreader (exigence académique, lecture longue). Interface et données : Schibsted Grotesk. */

/* Polices hébergées sur le site (licence SIL Open Font License) : aucun appel à un service tiers. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/newsreader-latin-400-italic.woff2") format("woff2"); }

:root {
  --ink: #0F1B2D;
  --ink-2: #2B3A52;
  --muted: #5A6779;
  --faint: #667387;
  --paper: #FFFFFF;
  --mist: #F4F6F9;
  --mist-2: #E9EDF2;
  --rule: #E1E6ED;
  --rule-2: #CBD3DE;
  --blue: #1F45D1;
  --blue-ink: #17349E;
  --blue-tint: #EEF2FD;
  --blue-line: #C3D0F5;
  --good: #11764C;
  --good-tint: #E9F5EF;
  --bad: #B3322C;
  --bad-tint: #FCEEEC;
  --warn: #8F5E00;
  --warn-tint: #FBF3E1;
  /* jaune « hypothèse » des modèles financiers : ce qu'il faut revérifier */
  --hyp: #FFF1B8;
  --hyp-line: #E2BE45;
  --hyp-ink: #5E4A00;
  /* jetons dérivés : textes posés sur l'encre ou sur une couleur pleine, fonds secondaires, ombres */
  --on-ink: #FFFFFF;
  --on-ink-2: #C9D2DF;
  --on-accent: #FFFFFF;
  --ink-hover: #24344D;
  --paper-2: #FAFBFD;
  --vu: #C9D2E0;
  --compo-2: #4A5A73;
  --compo-3: #8794A6;
  --etoile: #C58A00;
  --good-ink: #0C5638;
  --bad-ink: #7D1F1A;
  --top-bg: rgba(255, 255, 255, .92);
  --ombre: 15 27 45;
  --voile: rgba(15, 27, 45, .40);
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --wrap: 1180px;
  --side: 236px;
}

/* Thème sombre : la même grammaire (bleu = ce sur quoi on agit, encre = ce qui est calculé, jaune = à revoir)
   sur un fond bleu nuit. Il suit le réglage de l'appareil, sauf choix explicite (bouton clair / sombre). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E6ECF5;
    --ink-2: #C5CFDD;
    --muted: #98A5B8;
    --faint: #808EA4;
    --paper: #121C2D;
    --mist: #0B1320;
    --mist-2: #1C2839;
    --rule: #243248;
    --rule-2: #34455F;
    --blue: #8EA9FF;
    --blue-ink: #B8C8FF;
    --blue-tint: #18264A;
    --blue-line: #3A4F93;
    --good: #52C690;
    --good-tint: #0F2A20;
    --bad: #F2847B;
    --bad-tint: #35171A;
    --warn: #E3B552;
    --warn-tint: #2F2510;
    --hyp: #3B3315;
    --hyp-line: #8C762A;
    --hyp-ink: #F3DD8F;
    --on-ink: #0E1726;
    --on-ink-2: #44556E;
    --on-accent: #0B1320;
    --ink-hover: #FFFFFF;
    --paper-2: #172338;
    --vu: #3C4C66;
    --compo-2: #A9B6C9;
    --compo-3: #728098;
    --etoile: #F2C14E;
    --good-ink: #93E2BC;
    --bad-ink: #F7B3AD;
    --top-bg: rgba(18, 28, 45, .88);
    --ombre: 0 0 0;
    --voile: rgba(3, 8, 16, .62);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E6ECF5;
  --ink-2: #C5CFDD;
  --muted: #98A5B8;
  --faint: #808EA4;
  --paper: #121C2D;
  --mist: #0B1320;
  --mist-2: #1C2839;
  --rule: #243248;
  --rule-2: #34455F;
  --blue: #8EA9FF;
  --blue-ink: #B8C8FF;
  --blue-tint: #18264A;
  --blue-line: #3A4F93;
  --good: #52C690;
  --good-tint: #0F2A20;
  --bad: #F2847B;
  --bad-tint: #35171A;
  --warn: #E3B552;
  --warn-tint: #2F2510;
  --hyp: #3B3315;
  --hyp-line: #8C762A;
  --hyp-ink: #F3DD8F;
  --on-ink: #0E1726;
  --on-ink-2: #44556E;
  --on-accent: #0B1320;
  --ink-hover: #FFFFFF;
  --paper-2: #172338;
  --vu: #3C4C66;
  --compo-2: #A9B6C9;
  --compo-3: #728098;
  --etoile: #F2C14E;
  --good-ink: #93E2BC;
  --bad-ink: #F7B3AD;
  --top-bg: rgba(18, 28, 45, .88);
  --ombre: 0 0 0;
  --voile: rgba(3, 8, 16, .62);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15.5px/1.55 var(--sans); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.titre, .ptitre h1, .hero h1, .sec-t h2, .bandeau h1, .bilan h2, .fiche-page h1, .typebloc > h2, .split h2, .metier h3, .t-titre {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.012em; font-optical-sizing: auto;
}
p { margin: 0 0 1em; }
.num, table td.n, .tab { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--r-s); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--on-accent); }
.btn-primary:hover { background: var(--blue-ink); color: var(--on-accent); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--rule-2); }
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-hover); color: var(--on-ink); }
.btn-ghost { background: transparent; color: var(--blue); padding: 0 10px; }
.btn-ghost:hover { background: var(--blue-tint); color: var(--blue-ink); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 14px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; }
.btn[disabled], .btn.off { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-block { width: 100%; }

/* ---------- champs ---------- */
.champ, select.champ, textarea.champ {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: var(--r-s);
  background: var(--paper); font: inherit; color: var(--ink); margin: 0 0 10px;
}
textarea.champ { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
.champ:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.champ.maj { text-transform: uppercase; }
label.lbl { display: block; font-size: 13.5px; font-weight: 600; margin: 0 0 6px; color: var(--ink-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 0 0 10px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--blue); }
.msg { font-size: 14px; }
.msg.ok { color: var(--good); }
.msg.ko { color: var(--bad); }
.notice { padding: 12px 14px; border-radius: var(--r-s); background: var(--mist); font-size: 14.5px; margin: 0 0 18px; }
.notice.ok { background: var(--good-tint); color: var(--good-ink); }
.notice.ko { background: var(--bad-tint); color: var(--bad-ink); }

/* ---------- marque ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo .mark {
  width: 28px; height: 30px; border-radius: 2px; background: var(--ink); color: var(--on-ink);
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px color-mix(in srgb, var(--on-ink) 55%, transparent);
  display: grid; place-items: center; font: 500 13px/1 var(--serif); letter-spacing: .02em;
}

/* ---------- en-tête des pages publiques ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--top-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--rule); }
.top .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.top nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.top nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 8px 11px; border-radius: var(--r-s); }
.top nav a:hover { background: var(--mist); color: var(--ink); text-decoration: none; }
.top nav a.on { color: var(--ink); background: var(--mist); }
.top .actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top nav .nav-m { display: none; }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: var(--r-s); background: var(--paper); cursor: pointer; }
.burger svg { margin: auto; }
.pass-actif { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--good); }
.pass-actif::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }

/* ---------- espace de travail : barre latérale ---------- */
.appli { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--paper) calc(var(--side) - 1px), var(--rule) calc(var(--side) - 1px), var(--rule) var(--side), var(--mist) var(--side)); }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px;
  padding: 20px 14px; background: var(--paper); border-right: 1px solid var(--rule); overflow-y: auto;
}
.side .logo { padding: 2px 8px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--r-s);
  color: var(--ink-2); font-size: 14.5px; font-weight: 500;
}
.side nav a svg { width: 18px; height: 18px; flex: none; color: var(--faint); }
.side nav a:hover { background: var(--mist); color: var(--ink); text-decoration: none; }
.side nav a.on { background: var(--mist); color: var(--ink); font-weight: 600; }
.side nav a.on svg { color: var(--ink); }
.side nav a.on::before { content: ""; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.side .grp { font-size: 12.5px; color: var(--faint); padding: 0 10px; margin: 6px 0 2px; }
.side .bas { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side .passbox { padding: 14px; border: 1px solid var(--rule); border-radius: var(--r-m); font-size: 13.5px; color: var(--ink-2); }
.side .passbox b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.side .liens { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 10px; font-size: 12.5px; }
.side .liens a { color: var(--muted); }
.mtop { display: none; }
.contenu { min-width: 0; padding: 34px 40px 80px; }
.contenu > .page { max-width: 1080px; margin: 0 auto; }
.ptitre { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 26px; flex-wrap: wrap; }
.ptitre h1 { font-size: 34px; line-height: 1.1; }
.ptitre p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }

/* ---------- surfaces ---------- */
.panneau { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); }
.panneau > .ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.panneau > .ph h2 { font-size: 16px; }
.panneau > .ph a { font-size: 14px; }
.panneau > .pb { padding: 20px; }
.grille { display: grid; gap: 20px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g-12 { grid-template-columns: 1.55fr 1fr; }
.grille > .grille { align-content: start; }

/* chiffres clés : une rangée séparée par des filets, pas des cartes */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); }
.chiffres > div { padding: 18px 20px; border-left: 1px solid var(--rule); }
.chiffres > div:first-child { border-left: 0; }
.chiffres b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.chiffres span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.chiffres small { font-size: 15px; color: var(--muted); font-weight: 500; }

/* barres de progression (encre = calculé) */
.barre { height: 6px; background: var(--mist-2); border-radius: 3px; overflow: hidden; }
.barre > i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .5s ease; }
.barre.fine { height: 4px; }
.barre.ok > i { background: var(--good); }

/* tableaux */
.tableau { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tableau th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tableau td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau th.n, .tableau td.n { text-align: right; font-variant-numeric: tabular-nums; }
.tableau tbody tr.lien { cursor: pointer; }
.tableau tbody tr.lien:hover td { background: var(--paper-2); }
.tableau .nom { font-weight: 600; color: var(--ink); }
.tableau .sous { color: var(--muted); font-size: 13px; }
.tableau td .barre { width: 120px; }

/* étiquettes */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12.5px; font-weight: 500; background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.tag.pass { background: var(--ink); color: var(--on-ink); }
.tag.gratuit { background: var(--good-tint); color: var(--good); }
.tag.revoir { background: var(--hyp); color: var(--hyp-ink); box-shadow: inset 0 0 0 1px var(--hyp-line); }
.tag.ok { background: var(--good-tint); color: var(--good); }
.tag.ko { background: var(--bad-tint); color: var(--bad); }
.niv { display: inline-flex; gap: 2px; vertical-align: middle; }
.niv i { width: 5px; height: 12px; border-radius: 1.5px; background: var(--rule-2); }
.niv i.on { background: var(--ink); }

/* filtres */
.filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; padding: 3px; background: var(--mist-2); border-radius: 8px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; flex: none; border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--blue); box-shadow: 0 1px 2px rgb(var(--ombre) / .12); }
.puce { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--rule-2); background: var(--paper); font-size: 14px; color: var(--ink-2); cursor: pointer; }
.puce:hover { border-color: var(--ink-2); }
.puce[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-ink); }
.recherche { position: relative; flex: 1; min-width: 220px; }
.recherche input { padding-left: 38px; margin: 0; }
.recherche svg { position: absolute; left: 12px; top: 12px; color: var(--faint); }
select.champ.court { width: auto; max-width: 100%; text-overflow: ellipsis; margin: 0; padding-right: 34px; height: 36px; font-size: 14px; }

/* liste de catégories (banque) */
.cats { display: flex; flex-direction: column; gap: 1px; }
.cats button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: transparent; border-radius: var(--r-s); font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.cats button:hover { background: var(--mist); }
.cats button[aria-pressed="true"] { background: var(--blue-tint); color: var(--blue-ink); font-weight: 600; }
.cats button span:last-child { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.banque { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.banque > * { min-width: 0; }
.banque aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
.banque aside h3 { font-size: 13px; font-weight: 500; color: var(--muted); padding: 0 10px; margin-bottom: 4px; }
.lignes { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); }
.ligne { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.ligne:last-child { border-bottom: 0; }
.ligne .etat { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; border: 1.5px solid var(--rule-2); }
.ligne .etat.ok { background: var(--good); border-color: var(--good); }
.ligne .etat.ko { background: var(--bad); border-color: var(--bad); }
.ligne .txt { min-width: 0; }
.ligne .txt a, .ligne .txt .ferme { color: var(--ink); font-weight: 500; display: block; }
.ligne .txt a:hover { color: var(--blue); text-decoration: none; }
.ligne .txt .ferme { color: var(--muted); font-weight: 400; }
.ligne .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--muted); align-items: center; }
.ligne .act { display: flex; gap: 4px; }
.etoile { width: 32px; height: 32px; border: 0; background: transparent; border-radius: var(--r-s); cursor: pointer; color: var(--faint); display: grid; place-items: center; }
.etoile:hover { background: var(--mist); color: var(--ink); }
.etoile[aria-pressed="true"] { color: var(--etoile); }
.etoile[aria-pressed="true"] svg { fill: currentColor; }
.barre-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--paper-2); border-bottom: 1px solid var(--rule); border-radius: var(--r-m) var(--r-m) 0 0; flex-wrap: wrap; }
.verrou { padding: 18px; background: var(--mist); border-radius: 0 0 var(--r-m) var(--r-m); }
.verrou b { display: block; margin-bottom: 6px; }
.verrou .detail { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.pagination { display: flex; justify-content: center; gap: 6px; padding: 16px; }
.vide { padding: 48px 24px; text-align: center; color: var(--muted); }
.vide b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* ---------- question ---------- */
.session { max-width: 760px; margin: 0 auto; }
.s-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.s-tete b { color: var(--ink); font-weight: 600; }
.s-prog { height: 3px; background: var(--mist-2); border-radius: 2px; margin-bottom: 26px; overflow: hidden; }
.s-prog i { display: block; height: 100%; background: var(--ink); transition: width .3s; }
.carte-q { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 30px 32px; }
.q-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.q-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--rule-2); }
.q-texte { font-size: 20px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 24px; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; width: 100%; text-align: left;
  padding: 13px 15px; border: 1px solid var(--rule-2); border-radius: var(--r-m); background: var(--paper);
  font-size: 15.5px; line-height: 1.45; cursor: pointer; transition: border-color .12s, background-color .12s;
}
.opt .k { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--rule-2); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.opt:hover:not([disabled]) { border-color: var(--blue); background: var(--blue-tint); }
.opt:hover:not([disabled]) .k { border-color: var(--blue); color: var(--blue); }
.opt.sel { border-color: var(--blue); background: var(--blue-tint); }
.opt.sel .k { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.opt[disabled] { cursor: default; }
.opt.juste { border-color: var(--good); background: var(--good-tint); }
.opt.juste .k { background: var(--good); border-color: var(--good); color: var(--on-accent); }
.opt.faux { border-color: var(--bad); background: var(--bad-tint); }
.opt.faux .k { background: var(--bad); border-color: var(--bad); color: var(--on-accent); }
.opt.eteint { opacity: .55; }
.saisie { display: flex; align-items: center; gap: 10px; }
.saisie input { max-width: 220px; height: 48px; font-size: 18px; font-variant-numeric: tabular-nums; margin: 0; }
.saisie input.juste { border-color: var(--good); background: var(--good-tint); }
.saisie input.faux { border-color: var(--bad); background: var(--bad-tint); }
.saisie .unite { font-weight: 600; color: var(--muted); }
.aide { font-size: 13px; color: var(--faint); margin: 8px 0 0; }
.secoue { animation: secoue .35s; }
@keyframes secoue { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* correction : le seul moment animé de l'interface */
.correction { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.correction > div { overflow: hidden; }
.correction.on { grid-template-rows: 1fr; }
.correction .corps { margin-top: 22px; padding: 18px 20px 18px 22px; border-left: 3px solid var(--ink); background: var(--mist); border-radius: 0 var(--r-m) var(--r-m) 0; }
.correction.juste .corps { border-left-color: var(--good); }
.correction.faux .corps { border-left-color: var(--bad); }
.correction .verdict { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.correction.juste .verdict { color: var(--good); }
.correction.faux .verdict { color: var(--bad); }
.correction .expl { font-family: var(--serif); font-size: 17.5px; line-height: 1.6; color: var(--ink); font-optical-sizing: auto; }
.s-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.s-pied .g { display: flex; gap: 8px; align-items: center; }
.raccourcis { font-size: 12.5px; color: var(--faint); text-align: center; margin-top: 18px; }
.raccourcis kbd { font: inherit; font-size: 11.5px; padding: 1px 6px; border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 4px; background: var(--paper); color: var(--muted); }
.signal { margin-top: 16px; font-size: 13.5px; }
.signal summary { cursor: pointer; color: var(--muted); list-style: none; display: inline; }
.signal summary::-webkit-details-marker { display: none; }
.signal summary:hover { color: var(--ink); text-decoration: underline; }
.signal[open] { padding: 14px; border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--paper); }
.signal[open] summary { display: block; margin-bottom: 10px; }
.cas-enonce { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 22px 26px; margin-bottom: 16px; font-size: 15px; }
.cas-enonce h3 { font-size: 17px; margin-bottom: 10px; }
.cas-enonce table { border-collapse: collapse; margin: 12px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.cas-enonce td, .cas-enonce th { padding: 6px 14px 6px 0; border-bottom: 1px solid var(--rule); text-align: left; }
.cas-enonce p:last-child { margin-bottom: 0; }

/* résultat de série / simulation */
.bilan { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 34px; }
.bilan .score { font-size: 54px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.bilan .score small { font-size: 24px; color: var(--muted); font-weight: 500; }
.bilan h2 { font-size: 26px; margin: 0 0 6px; line-height: 1.2; }
.bilan .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.revue { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.revue details { border: 1px solid var(--rule); border-radius: var(--r-m); padding: 12px 16px; }
.revue summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.revue summary .tag { flex: none; }
.revue .rep { font-size: 14px; color: var(--muted); margin: 10px 0 8px; }
.revue .expl { font-family: var(--serif); font-size: 16.5px; line-height: 1.6; }
.chrono { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); padding: 4px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.chrono.bas { color: var(--bad); border-color: var(--bad); }
/* réglages des séries (banque) et mode oral */
.g-lancer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
select.champ.court.mini { height: 32px; padding: 0 30px 0 10px; }
.s-droite { display: inline-flex; align-items: center; gap: 12px; }
.bascule-oral { border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink-2); border-radius: 14px; height: 28px; padding: 0 11px; font: inherit; font-size: 13px; cursor: pointer; }
.bascule-oral::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--rule-2); }
.bascule-oral[aria-pressed="true"] { border-color: var(--blue); color: var(--blue-ink); background: var(--blue-tint); }
.bascule-oral[aria-pressed="true"]::before { background: var(--blue); }
.oral { border: 1px dashed var(--rule-2); border-radius: var(--r-m); padding: 18px 20px; background: var(--paper-2); }
.oral p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.oral-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.temps-serie { font-size: 14px; color: var(--ink-2); margin: 14px 0 0; }
.revue summary .t-q { margin-left: auto; flex: none; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.grille-nav { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; }
.grille-nav button { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--rule-2); background: var(--paper); font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.grille-nav button.rep { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.grille-nav button.cur { outline: 2px solid var(--blue); outline-offset: 1px; }

/* ---------- tableau de bord ---------- */
.bonjour h1 { font-size: 34px; }
.bonjour p { color: var(--muted); margin: 6px 0 0; }
.objectif { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.anneau { width: 96px; height: 96px; position: relative; }
.anneau svg { transform: rotate(-90deg); }
.anneau b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.reco { display: flex; flex-direction: column; gap: 0; }
.reco a.item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--rule); color: var(--ink); }
.reco a.item:first-child { border-top: 0; }
.reco a.item:hover { background: var(--paper-2); text-decoration: none; }
.reco a.item b { display: block; font-weight: 600; }
.reco a.item span { color: var(--muted); font-size: 13.5px; }
.reco a.item .go { color: var(--blue); font-weight: 600; font-size: 14px; }
.activite { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; align-items: end; height: 72px; }
.activite i { display: block; background: var(--ink); border-radius: 2px 2px 0 0; min-height: 2px; }
.activite i.zero { background: var(--mist-2); }
.legende { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.parcours-ligne { display: grid; grid-template-columns: 1fr 96px 44px; gap: 14px; align-items: center; padding: 9px 0; font-size: 14.5px; }
.parcours-ligne .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13.5px; }

/* ---------- parcours ---------- */
.metiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
.metier { padding: 24px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.metier:nth-child(-n+2) { border-top: 0; }
.metier:nth-child(2n+1) { border-left: 0; }
.metier h3 { font-size: 18px; }
.metier p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.metier .compo { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin: 4px 0; }
.metier .compo i { display: block; background: var(--ink); }
.metier .compo i:nth-child(2) { background: var(--compo-2); }
.metier .compo i:nth-child(3) { background: var(--compo-3); }
.metier .compo i:nth-child(n+4) { background: var(--rule-2); }
.metier .cats-l { font-size: 13px; color: var(--muted); }
.metier .pied { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 6px; }
.metier.choisi { background: var(--blue-tint); }
.metier.choisi h3::after { content: "Ton parcours"; margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--blue-ink); vertical-align: middle; }

/* ---------- simulations ---------- */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
.format { padding: 22px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; text-align: left; background: var(--paper); border-top: 0; border-right: 0; border-bottom: 0; cursor: pointer; font: inherit; color: var(--ink); }
.format:first-child { border-left: 0; }
.format:hover { background: var(--paper-2); }
.format[aria-pressed="true"] { background: var(--blue-tint); box-shadow: inset 0 -3px 0 var(--blue); }
.format h3 { font-size: 16.5px; }
.format .dur { font-size: 13.5px; color: var(--muted); }
.format p { font-size: 14px; color: var(--ink-2); margin: 0; }
.lancer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }

/* ---------- concepts clés ---------- */
.biblio { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 28px 22px; }
.fiche { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.fiche:hover { text-decoration: none; color: var(--ink); }
.fiche .couv { aspect-ratio: 210 / 297; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper); position: relative; box-shadow: 0 1px 0 var(--rule), 0 8px 20px -12px rgb(var(--ombre) / .25); transition: transform .2s; }
.fiche:hover .couv { transform: translateY(-2px); }
.fiche .couv img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fiche .t { font-weight: 600; line-height: 1.3; }
.fiche .m { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.typebloc { margin-bottom: 44px; }
.typebloc > h2 { font-size: 26px; margin-bottom: 4px; }
.typebloc > p { color: var(--muted); margin: 0 0 20px; }
.fiche-page { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }
.fiche-page .couv img { width: 100%; height: auto; }
.fiche-page .couv { border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 18px 40px -24px rgb(var(--ombre) / .35); background: var(--paper); }
.fiche-page h1 { font-size: 38px; margin: 0 0 12px; line-height: 1.08; }
.fiche-page .chapo { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink-2); margin-bottom: 22px; max-width: 62ch; }
.sommaire { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--rule); }
.sommaire li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 30px 1fr; font-size: 15px; }
.sommaire li span { color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- profil ---------- */
.form-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.form-grille .plein { grid-column: 1 / -1; }

/* ---------- pages publiques ---------- */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5vw, 64px); line-height: 1.03; letter-spacing: -0.02em; max-width: 16ch; }
.hero .lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 22px 0 30px; max-width: 34em; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .preuve { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 520px; font-size: 14.5px; color: var(--muted); }
.hero .preuve b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.demo { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 26px; box-shadow: 0 30px 60px -34px rgb(var(--ombre) / .35), 0 0 0 6px var(--mist); }
.demo .q-texte { font-size: 18px; margin-bottom: 18px; }
.demo .opt { padding: 11px 13px; font-size: 15px; }
.demo .s-pied { margin-top: 14px; }
.metiers-bande { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); }
.metiers-bande .wrap { display: flex; align-items: center; gap: 2px; min-height: 58px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.metiers-bande span { color: var(--muted); font-size: 14px; margin-right: 10px; white-space: nowrap; }
.metiers-bande a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; padding: 6px 8px; border-radius: 16px; white-space: nowrap; }
@media (max-width: 720px) { .metiers-bande .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }
.metiers-bande a:hover { background: var(--mist); color: var(--ink); text-decoration: none; }
.sec { padding: 92px 0; }
.sec.gris { background: var(--mist); }
.sec-t { max-width: 640px; margin-bottom: 44px; }
.sec-t h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; }
.sec-t p { font-size: 17.5px; color: var(--ink-2); margin: 14px 0 0; }
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.etape { padding: 22px 28px 0 0; }
.etape + .etape { padding-left: 28px; border-left: 1px solid var(--rule); }
.etape .no { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.etape h3 { font-size: 19px; margin: 10px 0 8px; }
.etape p { color: var(--ink-2); margin: 0; }
.comps { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
.comps .tableau td { padding: 13px 18px; }
.comps .tableau th { padding: 12px 18px; background: var(--paper-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .liste { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--rule); }
.split .liste li { padding: 13px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 12px; font-size: 15px; }
.split .liste li span { color: var(--muted); font-size: 14px; }
.couvs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.couvs .fiche .couv { box-shadow: 0 14px 30px -20px rgb(var(--ombre) / .4); }
.couvs .fiche { transition: transform .25s; }
.couvs .fiche:nth-child(1) { transform: rotate(-3deg) translateY(14px); }
.couvs .fiche:nth-child(2) { transform: translateY(-8px); z-index: 1; }
.couvs .fiche:nth-child(3) { transform: rotate(3deg) translateY(14px); }
.couvs .fiche:hover { transform: translateY(-14px); z-index: 2; }
@media (prefers-reduced-motion: reduce) { .couvs .fiche { transition: none; } }
.recrut { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.recrut > div { padding: 22px 22px 0 0; }
.recrut > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.recrut b { display: block; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.recrut span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.sources { font-size: 13px; color: var(--muted); margin-top: 28px; }
.sources a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* tarifs */
.prix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); overflow: hidden; }
.offre { padding: 30px 28px; display: flex; flex-direction: column; border-left: 1px solid var(--rule); }
.offre:first-child { border-left: 0; }
.offre.mise { background: var(--ink); color: var(--on-ink); border-left-color: var(--ink); }
.offre h3 { font-size: 17px; }
.offre .montant { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.offre .montant small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.offre.mise .montant small, .offre.mise .per, .offre.mise li { color: var(--on-ink-2); }
.offre .per { font-size: 14px; color: var(--muted); min-height: 21px; }
.offre ul { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--ink-2); flex: 1; }
.offre li { padding-left: 24px; position: relative; }
.offre li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .8; }
.offre li.non { color: var(--faint); text-decoration: line-through; }
.offre li.non::before { display: none; }
.offre .badge { align-self: flex-start; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 11px; background: color-mix(in srgb, var(--on-ink) 14%, transparent); color: var(--on-ink); margin-bottom: 12px; }
.offre.mise .btn-primary { background: var(--on-ink); color: var(--ink); }
.offre.mise .btn-primary:hover { background: var(--blue-tint); }
.note { font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* page simple (légal, contact) */
.bandeau { padding: 56px 0 36px; border-bottom: 1px solid var(--rule); }
.bandeau h1 { font-size: 40px; }
.bandeau p { color: var(--ink-2); margin: 12px 0 0; font-size: 17px; max-width: 640px; }
.page-simple { padding: 44px 0 90px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 20px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.carte { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 24px; }

/* pied de page */
footer.pied { background: var(--paper); border-top: 1px solid var(--rule); padding: 56px 0 34px; font-size: 14px; }
.pied .fg { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.pied h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pied a { color: var(--ink-2); }
.pied p { color: var(--muted); max-width: 300px; }
.pied .fb { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--faint); }
.pied .fb a { color: var(--faint); text-decoration: underline; }

/* fenêtre modale */
.modal-bg { position: fixed; inset: 0; background: var(--voile); display: none; align-items: center; justify-content: center; z-index: 80; padding: 20px; }
.modal-bg.on { display: flex; }
.modal { background: var(--paper); border-radius: var(--r-l); width: 100%; max-width: 440px; padding: 28px; position: relative; max-height: 92vh; overflow-y: auto; }
.modal h3 { font-size: 20px; margin-bottom: 14px; }
.modal .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 22px; color: var(--muted); cursor: pointer; border-radius: var(--r-s); }
.modal .x:hover { background: var(--mist); }
.modal .recap { display: flex; justify-content: space-between; padding: 14px 16px; background: var(--mist); border-radius: var(--r-s); margin-bottom: 16px; font-weight: 600; }
.modal hr { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }

/* bandeau d'aperçu (outil d'export) */
.apercu-bandeau { position: sticky; top: 0; z-index: 90; }

/* ---------- adaptations ---------- */
@media (max-width: 1100px) {
  .formats { grid-template-columns: 1fr 1fr; }
  .format:nth-child(3) { border-left: 0; }
  .format:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .g-12 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .appli { grid-template-columns: 1fr; background: var(--mist); }
  .side { position: fixed; left: 0; top: 0; z-index: 60; width: 280px; transform: translateX(-100%); transition: transform .25s, box-shadow .25s; }
  .side.ouvert { transform: none; box-shadow: 20px 0 40px rgb(var(--ombre) / .18); }
  .mtop { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 18px; background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
  .mtop .burger { display: block; margin: 0; }
  .voile { position: fixed; inset: 0; background: var(--voile); z-index: 55; }
  .contenu { padding: 24px 18px 70px; }
  .banque { grid-template-columns: 1fr; }
  .banque aside { position: static; }
  .banque aside .cats { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .banque aside .cats button { width: auto; white-space: nowrap; border: 1px solid var(--rule); }
  .banque aside h3.cache-m { display: none; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 44px 0 52px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .chiffres { grid-template-columns: 1fr 1fr; }
  .chiffres > div:nth-child(3) { border-left: 0; }
  .chiffres > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .fiche-page { grid-template-columns: 1fr; gap: 26px; }
  .fiche-page .couv { max-width: 300px; }
  .top nav { display: none; }
  .top nav.ouvert { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 10px 18px 18px; }
  .top .actions .btn-secondary { display: none; }
  .burger { display: block; }
  .pied .fg { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .top .wrap { gap: 12px; }
  .top .actions .btn-ghost { display: none; }
  .top .burger { margin-left: 0; }
  .top nav.ouvert .nav-m { display: block; }
  .wrap { padding: 0 18px; }
  .sec { padding: 64px 0; }
  .etapes, .recrut, .prix, .metiers { grid-template-columns: 1fr; }
  .etape + .etape, .recrut > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 18px; }
  .offre { border-left: 0; border-top: 1px solid var(--rule); }
  .metier { border-left: 0 !important; border-top: 1px solid var(--rule) !important; }
  .metier:first-child { border-top: 0 !important; }
  .formats { grid-template-columns: 1fr; }
  .format { border-left: 0 !important; border-top: 1px solid var(--rule); }
  .format:first-child { border-top: 0; }
  .faq { grid-template-columns: 1fr; }
  .couvs { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .carte-q { padding: 22px 18px; }
  .q-texte { font-size: 18px; }
  .ligne { grid-template-columns: 16px 1fr; padding: 13px 14px; }
  .ligne .act { grid-column: 2; }
  .tableau td .barre { width: 70px; }
  .tableau .cache-m { display: none; }
  .form-grille { grid-template-columns: 1fr; }
  .bilan { padding: 24px 18px; }
  .parcours-ligne { grid-template-columns: 1fr 80px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- pages juridiques et administration ---------- */
.prose .kv { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; margin: 10px 0; }
.prose .kv dt { color: var(--muted); }
.prose .kv dd { margin: 0; }
.prose .updated { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
form.cform { display: flex; flex-direction: column; gap: 12px; }
.cform label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.cform input, .cform select, .cform textarea { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: var(--r-s); font: inherit; }
.admin h1 { font-size: 30px; }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 10px; }
.adm-kpis div { border: 1px solid var(--rule); border-radius: var(--r-m); padding: 16px; }
.adm-kpis b { display: block; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.adm-kpis span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.adm-h { font-size: 18px; margin: 34px 0 10px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 28px; }
.tbl { overflow-x: auto; }
table.adm { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--paper); }
table.adm th, table.adm td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.adm th { color: var(--muted); font-weight: 500; }
table.adm tr.fait td { opacity: .5; }
.adm-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.adm-form input, .adm-form select { height: 34px; padding: 0 10px; border: 1px solid var(--rule-2); border-radius: var(--r-s); font: inherit; font-size: 14px; }
@media (max-width: 720px) { .prose .kv { grid-template-columns: 1fr; } }


/* ---------- signature 1 : le football field de la progression ----------
   Le graphique des fourchettes de valorisation, détourné : une barre par catégorie, l'encre pour ce qui est maîtrisé,
   la teinte pour ce qui a été vu sans être maîtrisé, le pointillé bleu pour le seuil visé en entretien. */
.ff { --seuil: 80%; font-size: 14px; }
.ff-axe, .ff-l { display: grid; grid-template-columns: minmax(130px, 210px) 1fr 52px; gap: 0 16px; align-items: center; }
.ff-axe { height: 22px; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.ff-axe .ech { position: relative; height: 100%; }
.ff-axe .ech span { position: absolute; top: 2px; transform: translateX(-50%); }
.ff-axe .ech span:first-child { transform: none; }
.ff-axe .ech span:last-child { transform: translateX(-100%); }
.ff-l { color: var(--ink); min-height: 34px; }
.ff-l:hover { text-decoration: none; color: var(--ink); }
.ff-l:hover .ff-nom { color: var(--blue); }
.ff-nom { line-height: 1.25; padding: 6px 0; }
.ff-piste {
  position: relative; align-self: stretch;
  background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 25%) left / 100% 100% no-repeat,
              linear-gradient(90deg, transparent calc(100% - 1px), var(--rule) calc(100% - 1px));
}
.ff-piste::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--seuil); border-left: 1.5px dashed var(--blue); opacity: .8; }
.ff-piste i { position: absolute; left: 0; top: 50%; height: 12px; margin-top: -6px; border-radius: 1px; transform-origin: left; }
.ff-piste .vu { background: var(--vu); }
.ff-piste .ok { background: var(--ink); }
.ff.anime .ff-piste i { animation: ff-pousse .7s cubic-bezier(.2,.7,.2,1) both; }
.ff.anime .ff-l:nth-child(n) .ok { animation-delay: .08s; }
@keyframes ff-pousse { from { transform: scaleX(0); } }
.ff-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ff-v.zero { color: var(--faint); font-weight: 400; }
.ff-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.ff-leg span { display: inline-flex; align-items: center; gap: 7px; }
.ff-leg i { width: 14px; height: 8px; border-radius: 1px; display: inline-block; }
.ff-leg i.ok { background: var(--ink); }
.ff-leg i.vu { background: var(--vu); }
.ff-leg i.seuil { width: 0; height: 12px; border-left: 1.5px dashed var(--blue); border-radius: 0; }
@media (max-width: 720px) { .ff-axe, .ff-l { grid-template-columns: 108px 1fr 40px; gap: 0 10px; } .ff { font-size: 13px; } .ff-axe .ech span:nth-child(2n) { display: none; } }

/* ---------- signature 2 : les tombstones des simulations ----------
   Le cube que les banquiers gardent sur leur bureau après chaque opération. Ici, un par simulation passée. */
.tombs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; padding: 20px; }
.tomb {
  aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  padding: 16px 12px 14px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--rule-2);
}
.tomb .t-marque { font-size: 10.5px; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.tomb .t-titre { font-size: 17px; line-height: 1.15; }
.tomb .t-sous { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.tomb .t-score { font: 500 34px/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tomb .t-score small { font-size: 16px; color: var(--muted); }
.tomb .t-date { font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 7px; width: 70%; }
.tomb.reussie { background: var(--ink); color: var(--on-ink); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px color-mix(in srgb, var(--on-ink) 35%, transparent); }
.tomb.reussie .t-marque, .tomb.reussie .t-sous, .tomb.reussie .t-score small, .tomb.reussie .t-date { color: var(--on-ink-2); }
.tomb.reussie .t-date { border-top-color: color-mix(in srgb, var(--on-ink) 20%, transparent); }
@media (max-width: 720px) { .tombs { grid-template-columns: repeat(2, 1fr); padding: 14px; } }

/* surlignage « hypothèse » pour les points à retenir */
.hyp { background: var(--hyp); box-shadow: inset 0 0 0 1px var(--hyp-line); padding: 1px 5px; border-radius: 2px; color: var(--hyp-ink); }
.encart-hyp { background: var(--hyp); border: 1px solid var(--hyp-line); border-radius: var(--r-s); padding: 12px 14px; color: var(--hyp-ink); font-size: 14px; }

/* Version anglaise : la virgule des milliers est trop large en chiffres tabulaires */
html[lang="en"] .hero .preuve b, html[lang="en"] .cats button span:last-child, html[lang="en"] .chiffres b { font-variant-numeric: normal; }


/* ---------- bouton clair / sombre ---------- */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--rule); border-radius: var(--r-s); background: var(--paper); color: var(--muted); cursor: pointer; flex: none; }
.theme-btn:hover { color: var(--ink); border-color: var(--rule-2); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .soleil { display: none; }
.side .theme-btn { width: auto; height: auto; border: 0; background: none; padding: 0; gap: 6px; font-size: 12.5px; }
.side .theme-btn svg { width: 14px; height: 14px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .lune { display: none; }
  :root:not([data-theme="light"]) .theme-btn .soleil { display: block; }
  :root:not([data-theme="light"]) .fiche .couv img, :root:not([data-theme="light"]) .fiche-page .couv img { filter: brightness(.9); }
}
:root[data-theme="dark"] .theme-btn .lune { display: none; }
:root[data-theme="dark"] .theme-btn .soleil { display: block; }
:root[data-theme="dark"] .fiche .couv img, :root[data-theme="dark"] .fiche-page .couv img { filter: brightness(.9); }


/* ---------- accueil : le produit en exemple ---------- */
.vitrine-produit { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.vitrine-produit > * { min-width: 0; }
.vitrine-produit .ph h3 { font-size: 16px; }
.vitrine-produit .tombs { grid-template-columns: repeat(3, 1fr); }
.tag.exemple { background: var(--hyp); color: var(--hyp-ink); box-shadow: inset 0 0 0 1px var(--hyp-line); }
@media (max-width: 960px) { .vitrine-produit { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .vitrine-produit .tombs { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; } .vitrine-produit .tomb { padding: 10px 6px; min-width: 0; aspect-ratio: auto; gap: 8px; } .vitrine-produit .tomb .t-titre { font-size: 13.5px; hyphens: auto; } .vitrine-produit .tomb .t-sous { font-size: 11px; } .vitrine-produit .tomb .t-score { font-size: 26px; } .vitrine-produit .tomb .t-date { width: 100%; } }

/* ---------- confort de lecture et usage au téléphone ---------- */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
@media (hover: none) { .raccourcis { display: none; } }
@media (max-width: 720px) {
  /* les boutons de réponse restent sous le pouce pendant une série ou une simulation */
  .session .s-pied {
    position: sticky; bottom: 0; z-index: 20; margin: 18px -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--top-bg); backdrop-filter: saturate(1.4) blur(10px); border-top: 1px solid var(--rule); flex-wrap: nowrap;
  }
  .session .s-pied .btn { height: 44px; }
  .session .s-pied .g:last-child { flex: 1; justify-content: flex-end; }
  .raccourcis { display: none; }
}
