/* =========================================================================
   thunage — une identité, quatre températures.
   D'un parcours à l'autre ne changent que l'accent et la taille du corps.
   L'accent ne porte jamais de texte courant (boutons, barres, bonne réponse).
   ========================================================================= */

@font-face { font-family: "Lora"; src: url(../fonts/lora-var.woff) format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url(../fonts/lora-italic-var.woff) format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-medium.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-semibold.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-bold.woff) format("woff"); font-weight: 700; font-display: swap; }

:root {
	--fond: #FFFFFF;
	--repere: #F4F4F5;
	--trait: #E4E4E7;
	--trait-fort: #D4D4D8;
	--ardoise: #475569;
	--gris: #52525B;
	--encre: #111827;
	--accent: #111827;
	--accent-texte: #111827;
	--accent-doux: #F4F4F5;
	--corps: 17px;
	--interligne: 1.6;
	--histoire: 19px;
	--histoire-lh: 1.7;
	--cible: 44px;
	--rayon: 12px;
	--serif: "Lora", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--largeur: 1120px;
	--colonne: 40rem;
	--ombre: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
}

/* Températures */
.tr-18-25   { --accent: #00A86B; --accent-texte: #047857; --encre: #0B1F17; --accent-doux: #ECFDF5; }
.tr-26-40   { --accent: #2563EB; --accent-texte: #1D4ED8; --encre: #0F172A; --accent-doux: #EFF6FF; }
.tr-41-55   { --accent: #0E7490; --accent-texte: #155E75; --encre: #0C1A1E; --accent-doux: #ECFEFF; }
.tr-56-plus { --accent: #14532D; --accent-texte: #14532D; --encre: #111827; --accent-doux: #F0FDF4; }
.tr-socle   { --accent: #475569; --accent-texte: #334155; --encre: #0F172A; --accent-doux: #F1F5F9; }

/* 56 ans et plus et « A+ » : un réglage, pas un thème à part. */
.grand-texte { --corps: 20px; --interligne: 1.78; --histoire: 21px; --histoire-lh: 1.78; --cible: 48px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0; background: var(--fond); color: var(--encre);
	font: 400 var(--corps)/var(--interligne) var(--sans);
	font-feature-settings: "kern", "calt";
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-texte); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--encre); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(28px, 4.2vw, 40px); }
h2 { font-size: clamp(22px, 2.8vw, 28px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-focus:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--encre); color: #fff; z-index: 100; border-radius: 8px; }
.nombre, .res-v, .res-liste dd, .indic-n, .offre-prix, .score-titre, .saisie input { font-variant-numeric: tabular-nums; }
.petit { font-size: .85em; color: var(--gris); }
.sur { font: 600 13px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ardoise); margin: 0 0 12px; }
.sur a { color: inherit; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.chapo { font-size: 1.12em; color: var(--gris); max-width: 38em; }

/* ------------------------------------------------------------- boutons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: var(--cible); padding: 10px 22px; border-radius: 999px;
	font: 600 1em/1.2 var(--sans); text-decoration: none; cursor: pointer;
	border: 2px solid transparent; transition: background .15s, border-color .15s, transform .1s;
	-webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-plein { background: var(--accent); color: #fff; }
.btn-plein:hover { filter: brightness(.94); }
.btn-ligne { background: transparent; color: var(--encre); border-color: var(--trait-fort); }
.btn-ligne:hover { border-color: var(--encre); }
.btn-large { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-danger:hover { border-color: var(--ardoise); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ------------------------------------------------------------- entête */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--trait); }
.entete-in { max-width: var(--largeur); margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 24px; }
.marque { font: 700 24px/1 var(--serif); letter-spacing: -.02em; color: var(--encre); text-decoration: none; }
.marque-point { color: var(--accent); }
.tr-neutre .marque-point { color: #2563EB; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav a { display: flex; align-items: center; gap: 6px; min-height: var(--cible); padding: 0 12px; border-radius: 8px; color: var(--encre); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { background: var(--repere); }
.nav a[aria-current="page"] { background: var(--repere); }
.nav-tr::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #999; }
.nav-18-25::before { background: #00A86B; } .nav-26-40::before { background: #2563EB; } .nav-41-55::before { background: #0E7490; } .nav-56-plus::before { background: #14532D; }
.nav-compte { border: 1px solid var(--trait-fort); }
.pastille { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--encre); color: #fff; font-size: 12px; font-weight: 700; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: var(--cible); padding: 0 14px; border: 1px solid var(--trait-fort); border-radius: 999px; background: #fff; color: var(--encre); font: 600 15px var(--sans); }
@media (max-width: 860px) {
	.menu-btn { display: inline-flex; }
	.nav { position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--trait); padding: 8px 16px 16px; display: none; box-shadow: var(--ombre); }
	.nav.ouvert { display: block; }
	.nav ul { flex-direction: column; align-items: stretch; }
	.nav a { font-size: 17px; }
}

/* Lecture d'un cas : aucune sortie, une barre de progression. */
.entete-lecture { display: flex; align-items: center; gap: 20px; height: 56px; padding: 0 20px; }
.entete-lecture .marque { font-size: 20px; }
.fil { flex: 1; max-width: 520px; height: 4px; background: var(--repere); border-radius: 2px; overflow: hidden; margin-left: auto; }
.fil-barre { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }

/* ------------------------------------------------------------- blocs */
.une { background: linear-gradient(180deg, var(--repere), #fff); border-bottom: 1px solid var(--trait); }
.une-in { max-width: var(--largeur); margin: 0 auto; padding: 72px 20px 56px; }
.une h1 { max-width: 20em; font-size: clamp(32px, 5.2vw, 54px); }
.une-court .une-in { padding: 44px 20px 32px; }
.une-court h1 { font-size: clamp(28px, 4vw, 40px); }
.une-tranche { background: linear-gradient(180deg, var(--accent-doux), #fff); }
.une-tranche h1 { font-size: clamp(32px, 5vw, 50px); }
.une-btns { margin-top: 24px; }
.une-note { color: var(--gris); font-size: .92em; }
.bloc { padding: 56px 0; }
.bloc-gris { background: var(--repere); }
.bloc-in { max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.bloc-etroit { max-width: 46rem; }
.bloc-titre { margin-bottom: 24px; }
.deux-col { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.liste-sobre { list-style: none; padding: 0; margin: 0 0 16px; }
.liste-sobre li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--trait); }
.liste-sobre li:last-child { border-bottom: 0; }
.liste-sobre li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 10px; height: 2px; background: var(--encre); }
.vide { color: var(--gris); padding: 24px; background: var(--repere); border-radius: var(--rayon); text-align: center; }
.carte { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); }
.carte-accent { border-left: 4px solid var(--accent); }
.avis { padding: 14px 18px; border-radius: 10px; background: var(--repere); border-left: 3px solid var(--ardoise); }
.avis-ok { border-left-color: var(--accent); background: var(--accent-doux); }
.mention { font-size: 13px; line-height: 1.55; color: var(--gris); margin-top: 32px; }
.page-etroite { max-width: var(--colonne); margin: 0 auto; padding: 56px 20px 72px; }
.texte-long h2 { margin-top: 1.6em; font-size: 22px; }
.texte-long li { margin-bottom: .4em; }

/* ------------------------------------------------------------- accueil */
.tranches { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tranche a { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 230px; padding: 26px 24px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--trait); color: var(--encre); text-decoration: none; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.tranche a::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--accent); }
.tranche a:hover { transform: translateY(-3px); box-shadow: var(--ombre); border-color: var(--trait-fort); }
.tranche-age { font: 700 15px var(--sans); color: var(--accent-texte); letter-spacing: .02em; }
.tranche-titre { font: 600 26px/1.15 var(--serif); margin: 10px 0 10px; }
.tranche-promesse { color: var(--gris); flex: 1; }
.tranche-pied { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--trait); font-weight: 600; font-size: 15px; }
.etapes3 { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: e; }
.etapes3 li { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--trait); }
.etapes3-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--encre); color: #fff; font-weight: 700; margin-bottom: 14px; }
.etapes3 p { color: var(--gris); margin: 0; }
.gratuits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gratuits a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--trait); border-left: 4px solid var(--accent); text-decoration: none; color: var(--encre); background: #fff; transition: box-shadow .18s; }
.gratuits a:hover { box-shadow: var(--ombre); }
.gratuit-age { font: 600 13px var(--sans); color: var(--accent-texte); text-transform: uppercase; letter-spacing: .05em; }
.gratuit-titre { font: 600 20px/1.25 var(--serif); }
.gratuit-accroche { color: var(--gris); font-size: .92em; }

/* ------------------------------------------------------------- offres */
.offres { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.offre { display: flex; flex-direction: column; padding: 28px 24px; border-radius: 16px; border: 1px solid var(--trait); background: #fff; }
.offre-mise { border: 2px solid var(--encre); box-shadow: var(--ombre); }
.offre-nom { font-weight: 600; margin: 0; }
.offre-prix { font: 600 40px/1.1 var(--serif); margin: 8px 0 18px; }
.offre .liste-sobre { flex: 1; }
.offre .btn { margin-top: 8px; }

/* ------------------------------------------------------------- listes de cas */
.groupe-titre { font: 600 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--ardoise); margin: 40px 0 12px; }
.groupe-titre a { color: inherit; }
.cas-liste { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--trait); }
.cas-ligne a { display: flex; align-items: center; gap: 16px; padding: 18px 4px; min-height: var(--cible); border-bottom: 1px solid var(--trait); text-decoration: none; color: var(--encre); }
.cas-ligne a:hover { background: var(--repere); }
.cas-num { font: 600 15px var(--sans); color: var(--ardoise); width: 2em; flex: none; font-variant-numeric: tabular-nums; }
.cas-corps { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cas-titre { font: 600 1.1em/1.3 var(--serif); }
.cas-accroche { color: var(--gris); font-size: .92em; }
.cas-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ardoise); }
.cas-meta .ic { width: 14px; height: 14px; }
.verrouille .cas-titre { color: var(--gris); }
.etiquette { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.etiquette-gratuit { background: var(--accent-doux); color: var(--accent-texte); }
.etiquette-ok { background: var(--accent); color: #fff; }
.etiquette-verrou { color: var(--ardoise); padding: 4px; }
.progres { display: block; height: 8px; border-radius: 4px; background: var(--trait); overflow: hidden; max-width: 420px; margin-top: 20px; }
.progres span { display: block; height: 100%; background: var(--accent); }
.progres-txt { font-size: 14px; color: var(--gris); margin-top: 8px; }

/* ------------------------------------------------------------- le cas */
.page-cas main { min-height: calc(100vh - 56px); }
.lecture-col { max-width: var(--colonne); margin: 0 auto; padding: 48px 20px 72px; }
.cas .etape { display: none; }
.cas .etape.active { display: block; animation: apparait .35s ease; }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.etape-histoire h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 28px; }
.histoire { font: 400 var(--histoire)/var(--histoire-lh) var(--serif); }
.histoire p { margin-bottom: 1.05em; hanging-punctuation: first; }
.histoire p:first-child::first-letter { font-size: 3.1em; float: left; line-height: .9; padding: .06em .08em 0 0; font-weight: 600; color: var(--encre); }
.histoire .retiens { margin-top: 1.8em; padding-top: 1.1em; border-top: 1px solid var(--trait); font-style: italic; color: var(--accent-texte); }
.etape-diapos .lecture-col { min-height: 70vh; }
.cas .diapo { display: none; }
.cas .diapo.active { display: block; animation: apparait .3s ease; }
.diapo { padding-bottom: 32px; }
.diapo-num { display: flex; align-items: center; gap: 12px; font: 600 14px var(--sans); color: var(--ardoise); margin-bottom: 24px; }
.points { display: inline-flex; gap: 6px; }
.points i { width: 28px; height: 4px; border-radius: 2px; background: var(--trait); }
.points i.on { background: var(--accent); }
.diapo h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 20px; }
.diapo-texte { font-size: 1.06em; }
.diapo-texte p:last-child { font-weight: 600; }
.diapo-texte strong, .exo-q strong, .correction strong { font-weight: 700; }

/* exercices */
.exo-num { font: 600 13px var(--sans); color: var(--ardoise); letter-spacing: .03em; margin-bottom: 14px; }
.exo-num span { color: var(--encre); }
.exo-q { font-size: clamp(21px, 3vw, 26px); margin-bottom: 22px; }
.exo-aide { font-size: 14px; color: var(--gris); margin: -6px 0 16px; }
.choix-liste { display: grid; gap: 10px; margin-bottom: 8px; }
.choix-duo { grid-template-columns: 1fr 1fr; }
.choix { position: relative; display: flex; align-items: center; gap: 14px; min-height: calc(var(--cible) + 12px); padding: 12px 16px; border: 1.5px solid var(--trait-fort); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choix:hover { border-color: var(--encre); }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix-marque { width: 22px; height: 22px; flex: none; border: 2px solid var(--trait-fort); border-radius: 50%; display: grid; place-items: center; transition: all .15s; }
.choix input[type="checkbox"] + .choix-marque { border-radius: 6px; }
.choix input:checked + .choix-marque { border-color: var(--encre); background: var(--encre); box-shadow: inset 0 0 0 4px #fff; }
.choix:has(input:checked) { border-color: var(--encre); background: var(--repere); }
.choix:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choix-texte { flex: 1; }
.choix-duo .choix { justify-content: center; font-weight: 600; }
.repondu .choix { cursor: default; }
.repondu .choix:hover { border-color: var(--trait-fort); }
/* Correction : jamais de rouge. Bonne réponse = accent ; choix erroné = ardoise. */
.choix.est-bonne { border-color: var(--accent); background: var(--accent-doux); box-shadow: inset 3px 0 0 var(--accent); }
.choix.est-bonne .choix-marque { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #fff; }
.choix.est-fausse { border-color: var(--ardoise); background: #F8FAFC; }
.champs { display: grid; gap: 14px; }
.champ label { display: block; font-weight: 600; margin-bottom: 6px; }
.saisie { display: flex; align-items: center; max-width: 280px; border: 1.5px solid var(--trait-fort); border-radius: 12px; background: #fff; overflow: hidden; }
.saisie:focus-within { border-color: var(--encre); box-shadow: 0 0 0 3px var(--accent-doux); }
.saisie input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; min-height: var(--cible); font: 600 1.15em var(--sans); color: var(--encre); background: transparent; outline: none; }
.unite { padding: 0 14px; color: var(--ardoise); font-weight: 600; white-space: nowrap; }
.champ.est-bonne .saisie { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.champ.est-fausse .saisie { border-color: var(--ardoise); }
.champ-bonne { display: block; margin-top: 6px; font-size: 14px; color: var(--ardoise); }
.tri { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tri-el { padding: 14px 16px; border: 1.5px solid var(--trait); border-radius: 12px; }
.tri-texte { font-weight: 600; margin-bottom: 10px; }
.tri-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; display: inline-flex; align-items: center; min-height: calc(var(--cible) - 4px); padding: 6px 14px; border: 1.5px solid var(--trait-fort); border-radius: 999px; cursor: pointer; font-size: .92em; font-weight: 500; }
.puce input { position: absolute; opacity: 0; pointer-events: none; }
.puce:has(input:checked) { background: var(--encre); color: #fff; border-color: var(--encre); }
.puce:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.tri-el.est-bonne { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.tri-el.est-fausse { border-color: var(--ardoise); }
.puce.est-bonne { border-color: var(--accent); background: var(--accent-doux); color: var(--encre); }
.puce.est-bonne:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
.ordre { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: o; }
.ordre-el { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border: 1.5px solid var(--trait-fort); border-radius: 12px; background: #fff; counter-increment: o; }
.ordre-el::before { content: counter(o); font-weight: 700; color: var(--ardoise); width: 1.2em; }
.ordre-texte { flex: 1; }
.ordre-btns { display: flex; gap: 4px; }
.ordre-btns button { width: var(--cible); height: var(--cible); border-radius: 10px; border: 1px solid var(--trait-fort); background: #fff; color: var(--encre); cursor: pointer; display: grid; place-items: center; }
.ordre-btns button:hover { background: var(--repere); }
.ordre-el.est-bonne { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ordre-el.est-fausse { border-color: var(--ardoise); }
.repondu .ordre-btns { display: none; }
.comparateur { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.comp-col { border: 1px solid var(--trait); border-radius: 12px; padding: 14px 16px; background: var(--repere); }
.comp-titre { font-weight: 700; margin-bottom: 8px; }
.comp-col dl { margin: 0; }
.comp-col dl div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--trait); font-size: .92em; }
.comp-col dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.exo-actions { margin-top: 22px; }
.exo-actions .btn { min-width: 180px; }
.correction { margin-top: 22px; padding: 18px 20px; border-radius: 12px; background: var(--repere); border-left: 3px solid var(--ardoise); animation: apparait .3s ease; }
.correction.juste { border-left-color: var(--accent); background: var(--accent-doux); }
.correction-tete { font-weight: 700; margin-bottom: 6px; }
.correction p:last-child { margin-bottom: 0; font-weight: 600; }

/* score */
.score-titre { font-size: clamp(34px, 6vw, 52px); margin: 8px 0 4px; }
.score-n { color: var(--accent-texte); }
.score-sous { color: var(--gris); }
.score-points { list-style: none; display: flex; gap: 8px; padding: 0; margin: 20px 0 32px; }
.score-points li { width: 34px; height: 8px; border-radius: 4px; background: var(--trait); }
.score-points li.juste { background: var(--accent); }
.score-points li.faux { background: var(--ardoise); opacity: .45; }
.etape-score .carte { margin-top: 12px; }
.etape-score .carte h3 { margin-bottom: 8px; }

/* mur */
.cas-ferme h1 { font-size: clamp(30px, 5vw, 42px); }
.mur { margin-top: 32px; padding: 28px; border-radius: 16px; border: 1px solid var(--trait); background: linear-gradient(180deg, var(--accent-doux), #fff); }
.mur-titre { display: flex; gap: 10px; align-items: flex-start; font: 600 1.1em/1.4 var(--serif); }
.mur-titre .ic { margin-top: .2em; color: var(--accent-texte); }
.mur-prix strong { font: 600 1.6em var(--serif); }
.mur-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }

/* ------------------------------------------------------------- formulaires */
.bloc-auth { background: var(--repere); min-height: 70vh; display: grid; place-items: start center; padding: 56px 20px; }
.auth { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--trait); border-radius: 18px; padding: 32px 28px; box-shadow: var(--ombre); }
.auth h1 { font-size: 30px; }
.chapo-petit { color: var(--gris); }
.formulaire label { display: block; font-weight: 600; margin-bottom: 6px; }
.formulaire label small { font-weight: 400; color: var(--gris); }
.formulaire input[type="email"], .formulaire input[type="password"], .formulaire input[type="text"] { width: 100%; min-height: var(--cible); padding: 10px 14px; border: 1.5px solid var(--trait-fort); border-radius: 10px; font: 400 1em var(--sans); color: var(--encre); background: #fff; }
.formulaire input:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px var(--repere); }
.piege { position: absolute; left: -9999px; }
.achat-choix { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.achat-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1.5px solid var(--trait-fort); border-radius: 12px; background: #fff; cursor: pointer; }
.achat-opt::before { content: ""; width: 6px; align-self: stretch; border-radius: 3px; background: var(--accent); }
.achat-pack::before { background: linear-gradient(180deg, #00A86B, #2563EB, #0E7490, #14532D); }
.achat-opt input { width: 20px; height: 20px; accent-color: var(--encre); flex: none; }
.achat-opt:has(input:checked) { border-color: var(--encre); box-shadow: var(--ombre); }
.achat-opt.deja { opacity: .55; cursor: default; }
.achat-nom { flex: 1; font-weight: 600; }
.achat-prix { font: 600 1.1em var(--serif); white-space: nowrap; }
.case { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.case input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--encre); }

/* espace client */
.onglets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.onglets a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--trait-fort); text-decoration: none; color: var(--encre); font-weight: 500; background: #fff; }
.onglets a[aria-current="page"] { background: var(--encre); color: #fff; border-color: var(--encre); }
.indic { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.indic-carte { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 14px; border: 1px solid var(--trait); text-decoration: none; color: var(--encre); background: #fff; }
a.indic-carte:hover { box-shadow: var(--ombre); }
.indic-n { font: 600 40px/1 var(--serif); }
.indic-l { color: var(--gris); }
.mes-tranches { list-style: none; padding: 0; display: grid; gap: 10px; }
.mes-tranches a { display: grid; gap: 6px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--trait); border-left: 4px solid var(--accent); text-decoration: none; color: var(--encre); }
.mes-tranches .progres { margin-top: 4px; max-width: none; }
.mt-nom { font-weight: 600; }
.mt-pc { font-size: 14px; color: var(--gris); }
.rev-cas { margin-bottom: 40px; }
.rev-exo { margin-bottom: 16px; }
.rev-exo.rattrape { border-left: 4px solid var(--accent); }
.tableau { width: 100%; border-collapse: collapse; }
.tableau th, .tableau td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--trait); }
.tableau th { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ardoise); }

/* ------------------------------------------------------------- outils */
.outils { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.outils a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px 24px; border-radius: 16px; border: 1px solid var(--trait); text-decoration: none; color: var(--encre); background: #fff; transition: box-shadow .18s, transform .18s; }
.outils a:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.outil-nom { font: 600 21px/1.25 var(--serif); }
.outil-desc { color: var(--gris); flex: 1; }
.outil-pied { display: flex; justify-content: space-between; align-items: center; font-weight: 600; padding-top: 12px; border-top: 1px solid var(--trait); }
.outil-grille { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.outil-grille .outil-texte { grid-column: 1 / -1; max-width: var(--colonne); }
@media (max-width: 800px) { .outil-grille { grid-template-columns: 1fr; } }
.o-champ label { display: block; font-weight: 600; margin-bottom: 6px; }
.o-champ .saisie { max-width: none; }
.resultats { position: sticky; top: 84px; padding: 28px; border-radius: 16px; background: var(--encre); color: #fff; }
.resultats a { color: #fff; }
.res-grand { display: flex; flex-direction: column; margin-bottom: 20px; }
.res-l { font-size: 14px; color: #CBD5E1; }
.res-v { font: 600 clamp(34px, 5vw, 46px)/1.1 var(--serif); }
.res-liste { margin: 0; }
.res-liste div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.res-liste dt { color: #CBD5E1; }
.res-liste dd { margin: 0; font-weight: 600; }
.res-methode { margin: 18px 0 0; font-size: 14px; color: #CBD5E1; }
.res-table { margin-top: 16px; font-size: 14px; }
.res-table th, .res-table td { border-color: rgba(255, 255, 255, .15); color: #fff; padding: 8px 6px; }
.res-table th { color: #CBD5E1; }
.abos { width: 100%; border-collapse: collapse; }
.abos th { text-align: left; font: 600 13px var(--sans); color: var(--ardoise); padding: 0 6px 8px; }
.abos td { padding: 4px; }
.abos input[type="text"], .abos select { width: 100%; min-height: var(--cible); border: 1.5px solid var(--trait-fort); border-radius: 10px; padding: 8px 10px; font: 400 1em var(--sans); background: #fff; color: var(--encre); }
.abos .saisie { max-width: none; }
.abos .saisie input { border: 0; padding: 8px 10px; font-weight: 600; }
.lie { margin-top: 24px; }
.lie-titre { font: 600 20px var(--serif); margin-bottom: 4px; }

/* ------------------------------------------------------------- blog */
.articles { list-style: none; padding: 0; margin: 0; }
.articles a { display: flex; flex-direction: column; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--trait); text-decoration: none; color: var(--encre); }
.art-date { font-size: 13px; color: var(--ardoise); }
.art-titre { font: 600 22px/1.3 var(--serif); }
.art-extrait { color: var(--gris); }
.article { font: 400 var(--histoire)/var(--histoire-lh) var(--serif); }
.article .sur, .article .mention { font-family: var(--sans); }

/* ------------------------------------------------------------- pied */
.pied { background: var(--repere); border-top: 1px solid var(--trait); margin-top: 0; }
.pied-in { max-width: var(--largeur); margin: 0 auto; padding: 48px 20px 24px; display: grid; gap: 32px; grid-template-columns: 1.3fr 2fr 1fr; }
.pied-marque p { color: var(--gris); margin-top: 10px; }
.pied-liens { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pied-liens ul { list-style: none; margin: 0; padding: 0; }
.pied-liens a { display: inline-flex; min-height: 36px; align-items: center; color: var(--encre); text-decoration: none; font-size: 15px; }
.pied-liens a:hover { text-decoration: underline; }
.pied-taille p { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.taille-btn { min-width: var(--cible); min-height: var(--cible); border: 1.5px solid var(--trait-fort); border-radius: 10px; background: #fff; font: 600 16px var(--serif); cursor: pointer; color: var(--encre); }
.taille-grand { font-size: 21px; }
.taille-btn[aria-pressed="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }
.pied-mention { max-width: var(--largeur); margin: 0 auto; padding: 0 20px 16px; font-size: 13px; color: var(--gris); }
.pied-copie { max-width: var(--largeur); margin: 0 auto; padding: 16px 20px 32px; font-size: 13px; color: var(--ardoise); border-top: 1px solid var(--trait); }
@media (max-width: 800px) { .pied-in { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- mobile */
@media (max-width: 600px) {
	.une-in { padding: 44px 16px 36px; }
	.bloc { padding: 40px 0; }
	.bloc-in, .lecture-col, .page-etroite, .entete-in { padding-left: 16px; padding-right: 16px; }
	.lecture-col { padding-top: 32px; }
	.actions .btn, .exo-actions .btn { width: 100%; }
	.comparateur { grid-template-columns: 1fr; }
	.choix-duo { grid-template-columns: 1fr 1fr; }
	.histoire p:first-child::first-letter { font-size: 2.6em; }
	.tableau th:nth-child(2), .tableau td:nth-child(2) { display: none; }
	.resultats { position: static; }
}
@media print { .entete, .pied, .actions, .exo-actions { display: none; } .cas .etape, .cas .diapo { display: block; } }
[tabindex="-1"]:focus { outline: none; }

/* =========================================================================
   v1.1 — Le cas en écrans : chaque étape occupe l'écran, le bouton (le
   crochet) reste en bas, à portée de pouce. Une diapo = un écran figé.
   ========================================================================= */
.page-cas main { min-height: 0; }
.cas .etape.active { display: flex; flex-direction: column; min-height: calc(100svh - 56px); }
.ecran { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px) 40px; }
.barre-action { position: sticky; bottom: 0; z-index: 5; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--trait); }
.barre-in { max-width: 1200px; margin: 0 auto; padding: 12px clamp(16px, 4vw, 48px); padding-bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.barre-info { font: 600 13px var(--sans); color: var(--ardoise); letter-spacing: .05em; text-transform: uppercase; }
.barre-in .btn { min-height: calc(var(--cible) + 8px); padding: 12px 30px; font-size: 1.05em; }

/* 1. L'histoire : en-tête à gauche (fixe), récit à droite */
.ecran-histoire { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cas-tete { position: sticky; top: 96px; }
.cas-tete h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; margin-bottom: 18px; }
.cas-accroche-g { font: italic 400 1.08em/1.5 var(--serif); color: var(--gris); padding-left: 14px; border-left: 3px solid var(--accent); margin-bottom: 28px; }
.parcours-cas { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 2px; counter-reset: pc; }
.parcours-cas li { counter-increment: pc; display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--ardoise); }
.parcours-cas li::before { content: counter(pc); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--trait-fort); font-weight: 700; font-size: 12px; }
.parcours-cas li.on { color: var(--encre); font-weight: 600; }
.parcours-cas li.on::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.ecran-histoire .histoire { max-width: 42rem; font-size: calc(var(--histoire) + 1px); }

/* 2. La fiche : un écran figé, titre à gauche, texte dans une carte */
.etape-diapos { background: var(--accent-doux); }
.cas .etape-diapos .diapo.active { display: flex; flex-direction: column; flex: 1; }
.ecran-diapo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.diapo-g h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -.02em; margin: 0; }
.diapo-g .diapo-num { margin-bottom: 28px; }
.ecran-diapo .diapo-texte { background: #fff; border-radius: 20px; padding: clamp(24px, 3.4vw, 48px); box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 18px 48px rgba(17, 24, 39, .08); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; }
.ecran-diapo .diapo-texte p:last-child { font: italic 600 1.08em/1.45 var(--serif); color: var(--accent-texte); margin: 1.2em 0 0; padding-top: 1em; border-top: 1px solid var(--trait); }
.etape-diapos .barre-action { background: rgba(255, 255, 255, .9); }

/* 3. Les exercices : la question à gauche, la réponse à droite */
.ecran-exo .exo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.exo-g { position: sticky; top: 96px; }
.ecran-exo .exo-q { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.exo-d .exo-actions { margin-top: 18px; }
.exo-d .valider { width: 100%; }

/* 4. Le score */
.ecran-score { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.ecran-score .score-titre { font-size: clamp(88px, 13vw, 160px); line-height: .9; letter-spacing: -.04em; margin: 8px 0 6px; }
.score-sur { font-size: .38em; color: var(--ardoise); letter-spacing: 0; }
.score-mot { font: italic 400 1.15em/1.5 var(--serif); color: var(--encre); }
.partage-ok { color: var(--accent-texte); font-weight: 600; margin-left: 8px; }
.pied-min { background: #fff; border-top: 1px solid var(--trait); }
.pied-min .pied-mention { padding: 16px clamp(16px, 4vw, 48px) 20px; margin: 0 auto; }

@media (max-width: 900px) {
	.ecran-histoire, .ecran-diapo, .ecran-exo .exo, .ecran-score { grid-template-columns: 1fr; }
	.cas-tete, .exo-g { position: static; }
	.ecran-diapo { align-content: center; }
}
@media (max-width: 600px) {
	.ecran { padding: 24px 16px 28px; }
	.barre-info { display: none; }
	.barre-in { padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); min-height: 0; }
	.barre-in .btn { width: 100%; }
	.cas-tete h1 { font-size: 30px; }
	.parcours-cas { display: none; }
}

/* Accueil : la promesse, et les quatre négations en haut */
.une-accueil h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -.03em; }
.negations { list-style: none; padding: 0; margin: 28px 0 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.negations li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--trait-fort); font-size: 15px; }
.negations li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2563EB; }
.une-lien a { color: var(--gris); font-size: 15px; }
.negations-longues { list-style: none; padding: 0; margin: 0; }
.negations-longues li { padding: 26px 0; border-top: 1px solid var(--trait); }
.negations-longues h2 { font-size: 24px; margin-bottom: 8px; }
@media (max-width: 600px) {
	.ecran-diapo { gap: 20px; }
	.diapo-g .diapo-num { margin-bottom: 14px; }
	.ecran-diapo .diapo-texte { padding: 20px; font-size: 16.5px; line-height: 1.55; border-radius: 16px; }
	.grand-texte .ecran-diapo .diapo-texte { font-size: 19px; }
	.ecran-score .score-titre { font-size: 96px; }
}

/* =========================================================================
   v1.2 — De la couleur, et une personnalité par parcours.
   18-25 : vif, énergique · 26-40 : franc, structuré · 41-55 : patrimonial,
   élégant · 56 ans et plus : calme, très contrasté, grand. Même grille, quatre ambiances.
   ========================================================================= */
body.tr-18-25 { background: #F4FBF7; }
body.tr-26-40 { background: #F5F8FF; }
body.tr-41-55 { background: #FBF8F2; }
body.tr-56-plus { background: #FFFCF6; }
body.tr-socle { background: #F6F7F9; }

/* --- Accueil : nuit étoilée de couleurs --------------------------------- */
.une-accueil {
	color: #fff; border: 0;
	background:
		radial-gradient(circle at 10% 18%, rgba(0, 194, 122, .55), transparent 38%),
		radial-gradient(circle at 88% 12%, rgba(59, 130, 246, .65), transparent 40%),
		radial-gradient(circle at 72% 92%, rgba(8, 145, 178, .55), transparent 42%),
		radial-gradient(circle at 22% 100%, rgba(250, 204, 21, .28), transparent 38%),
		#0B1020;
}
.une-accueil .une-in { padding-top: 96px; padding-bottom: 88px; }
.une-accueil h1 { color: #fff; }
.une-accueil .sur { color: #A7F3D0; }
.une-accueil .chapo { color: #CBD5E1; max-width: 40em; }
.une-accueil .negations li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.une-accueil .negations li:nth-child(1)::before { background: #34D399; }
.une-accueil .negations li:nth-child(2)::before { background: #60A5FA; }
.une-accueil .negations li:nth-child(3)::before { background: #22D3EE; }
.une-accueil .negations li:nth-child(4)::before { background: #FACC15; }
.une-accueil .une-lien a { color: #CBD5E1; }

.tranches { gap: 18px; }
.tranches .tranche a { color: #fff; border: 0; min-height: 300px; padding: 28px 26px 22px; box-shadow: 0 18px 40px -18px rgba(11, 16, 32, .55); }
.tranches .tranche a::before { display: none; }
.tranches .tranche a:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -18px rgba(11, 16, 32, .6); }
.tranches .tr-18-25 a { background: radial-gradient(circle at 90% 10%, rgba(190, 242, 100, .55), transparent 45%), linear-gradient(150deg, #00C27A, #00A86B 50%, #047857); }
.tranches .tr-26-40 a { background: radial-gradient(circle at 90% 10%, rgba(167, 139, 250, .55), transparent 45%), linear-gradient(150deg, #3B82F6, #2563EB 50%, #1E3A8A); }
.tranches .tr-41-55 a { background: radial-gradient(circle at 90% 10%, rgba(201, 162, 39, .45), transparent 45%), linear-gradient(150deg, #0891B2, #0E7490 50%, #164E63); }
.tranches .tr-56-plus a { background: radial-gradient(circle at 90% 10%, rgba(253, 230, 138, .45), transparent 45%), linear-gradient(150deg, #22803F, #14532D 55%, #0F3B21); }
.tranches .tranche-age { color: #fff; font: 800 44px/1 var(--sans); letter-spacing: -.03em; }
.tranches .tranche-titre { color: #fff; font-size: 24px; margin-top: 14px; }
.tranches .tranche-promesse { color: rgba(255, 255, 255, .86); }
.tranches .tranche-pied { border-top-color: rgba(255, 255, 255, .28); color: #fff; }

.bloc-gris { background: #F1F5FB; }
.etapes3 li { border: 0; box-shadow: 0 10px 30px -18px rgba(11, 16, 32, .35); }
.etapes3 li:nth-child(1) .etapes3-n { background: #00A86B; }
.etapes3 li:nth-child(2) .etapes3-n { background: #2563EB; }
.etapes3 li:nth-child(3) .etapes3-n { background: #0E7490; }
.gratuits a { background: var(--accent-doux); border: 0; border-left: 5px solid var(--accent); }
.gratuits a:hover { box-shadow: 0 14px 30px -16px rgba(11, 16, 32, .4); transform: translateY(-2px); }
.offre-mise { border: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #00A86B, #2563EB, #0E7490, #14532D) border-box; }
.offre-mise .btn-plein { background: linear-gradient(135deg, #2563EB, #0E7490); }

/* Pied de page sombre */
.pied { background: #0B1020; border-top: 0; color: #CBD5E1; }
.pied .marque { color: #fff; }
.pied-marque p, .pied-mention { color: #94A3B8; }
.pied-liens a { color: #E5E7EB; }
.pied-copie { color: #94A3B8; border-top-color: rgba(255, 255, 255, .12); }
.pied-min { background: #fff; }
.pied-min .pied-mention { color: var(--gris); }

/* --- Pages de parcours : quatre ambiances -------------------------------- */
.une-tranche { border: 0; color: #fff; }
.une-tranche h1, .une-tranche .sur, .une-tranche .chapo, .une-tranche .progres-txt, .une-tranche .une-note { color: #fff; }
.une-tranche .chapo, .une-tranche .une-note { opacity: .9; }
.une-tranche .btn-plein { background: #fff; color: var(--accent-texte); }
.une-tranche .progres { background: rgba(255, 255, 255, .3); }
.une-tranche .progres span { background: #fff; }
.une-tranche .une-in { padding-top: 80px; padding-bottom: 64px; }

/* 18-25 : vif */
.tr-18-25 .une-tranche { background: radial-gradient(circle at 85% 15%, rgba(190, 242, 100, .6), transparent 38%), radial-gradient(circle at 5% 100%, rgba(45, 212, 191, .5), transparent 40%), linear-gradient(135deg, #00A86B, #00B894); }
.tr-18-25 .une-tranche h1 { font: 800 clamp(40px, 7vw, 72px)/1 var(--sans); letter-spacing: -.035em; text-transform: none; }
.tr-18-25 .cas-liste { border: 0; display: grid; gap: 12px; }
.tr-18-25 .cas-ligne a { background: #fff; border: 0; border-radius: 18px; padding: 18px 20px; box-shadow: 0 8px 22px -14px rgba(4, 120, 87, .45); }
.tr-18-25 .cas-ligne a:hover { background: #ECFDF5; transform: translateY(-2px); }
.tr-18-25 .cas-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #00A86B; color: #fff; }
.tr-18-25 .cas-titre { font: 700 1.1em/1.3 var(--sans); }

/* 26-40 : franc, structuré */
.tr-26-40 .une-tranche { background: radial-gradient(circle at 85% 10%, rgba(167, 139, 250, .55), transparent 40%), linear-gradient(135deg, #1E3A8A, #2563EB); }
.tr-26-40 .une-tranche h1 { font-size: clamp(38px, 6vw, 62px); }
.tr-26-40 .cas-liste { background: #fff; border: 1px solid #DBE4F3; border-radius: 16px; overflow: hidden; }
.tr-26-40 .cas-ligne a { padding: 18px 20px; border-bottom-color: #E5ECF8; }
.tr-26-40 .cas-num { color: #2563EB; font-weight: 800; }

/* 41-55 : patrimonial, élégant */
.tr-41-55 .une-tranche { background: radial-gradient(circle at 85% 15%, rgba(201, 162, 39, .35), transparent 40%), linear-gradient(135deg, #0B3B45, #0E7490); }
.tr-41-55 .une-tranche h1 { font-style: italic; font-weight: 500; font-size: clamp(38px, 6vw, 60px); }
.tr-41-55 .une-tranche h1::after { content: ""; display: block; width: 72px; height: 3px; background: #C9A227; margin-top: 22px; }
.tr-41-55 .groupe-titre { color: #8A6D12; letter-spacing: .12em; }
.tr-41-55 .cas-liste { border-top: 2px solid #0E7490; }
.tr-41-55 .cas-titre { font-size: 1.18em; font-weight: 500; }
.tr-41-55 .cas-num { font-family: var(--serif); font-style: italic; color: #8A6D12; }

/* 56 ans et plus : calme, très contrasté, grand */
.tr-56-plus .une-tranche { background: linear-gradient(180deg, #FFF7E6, #FFFCF6); color: #0F3B21; border-bottom: 1px solid #EADFC8; }
.tr-56-plus .une-tranche h1, .tr-56-plus .une-tranche .sur, .tr-56-plus .une-tranche .progres-txt { color: #0F3B21; }
.tr-56-plus .une-tranche .chapo, .tr-56-plus .une-tranche .une-note { color: #374151; opacity: 1; }
.tr-56-plus .une-tranche .btn-plein { background: #14532D; color: #fff; }
.tr-56-plus .une-tranche .progres { background: #E7E1D2; }
.tr-56-plus .une-tranche .progres span { background: #14532D; }
.tr-56-plus .une-tranche h1 { font-size: clamp(40px, 6vw, 60px); }
.tr-56-plus .cas-ligne a { padding: 24px 8px; }
.tr-56-plus .cas-titre { font-size: 1.2em; color: #111827; }
.tr-56-plus .cas-num { color: #14532D; font-weight: 800; }

.tr-socle .une-tranche { background: linear-gradient(135deg, #334155, #475569); }

/* Lecture d'un cas : l'ambiance suit le parcours */
.tr-18-25 .cas-tete h1 { font: 800 clamp(32px, 3.6vw, 46px)/1.05 var(--sans); letter-spacing: -.03em; }
.tr-41-55 .cas-tete h1 { font-style: italic; font-weight: 500; }
.tr-41-55 .cas-accroche-g { border-left-color: #C9A227; }
.tr-18-25 .btn, .tr-26-40 .btn { border-radius: 999px; }
.tr-41-55 .btn, .tr-56-plus .btn { border-radius: 12px; }

/* Taille du texte : en haut, parcours 56 ans et plus seulement */
.taille { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; }
.taille-l { font: 600 13px var(--sans); color: var(--ardoise); }
.taille .taille-btn { min-width: 44px; min-height: 44px; border: 1.5px solid #CFC6B2; border-radius: 10px; background: #fff; font: 700 16px var(--serif); color: #0F3B21; cursor: pointer; }
.taille .taille-grand { font-size: 21px; }
.taille .taille-btn[aria-pressed="true"] { background: #14532D; border-color: #14532D; color: #fff; }
.entete-lecture .taille { margin-left: 16px; }
@media (max-width: 860px) { .entete-in .taille { margin-left: auto; } .entete-in .taille + .menu-btn { margin-left: 8px; } .taille-l { display: none; } }
@media (min-width: 861px) { .entete-in .taille { margin-left: auto; } .entete-in .taille ~ .nav { margin-left: 16px; } }
.tranches .tranche-age small { font-size: .38em; font-weight: 600; letter-spacing: 0; opacity: .85; margin-left: 4px; }

/* =========================================================================
   v1.3 — Écrans figés sur ordinateur et tablette : rien ne défile.
   L'histoire se lit en colonnes ; le texte s'ajuste à l'écran (--echelle,
   calculée par thunage.js). Sur mobile seulement, l'écran défile.
   ========================================================================= */
@media (min-width: 901px) and (min-height: 560px) {
	body.lecture { overflow: hidden; }
	.cas .etape.active { height: calc(100svh - 56px); min-height: 0; overflow: hidden; }
	.cas .etape-diapos.active .diapo.active { min-height: 0; }
	.ecran { min-height: 0; overflow: hidden; padding-top: clamp(20px, 3.5vh, 48px); padding-bottom: clamp(16px, 2.5vh, 32px); }
	.barre-in { min-height: 0; padding-top: 10px; padding-bottom: 10px; }

	.ecran-histoire { height: 100%; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
	.cas-tete { position: static; }
	.ecran-histoire .histoire {
		max-width: none; height: 100%; overflow: hidden;
		column-width: 22rem; column-gap: 44px; column-fill: auto; column-rule: 1px solid var(--trait);
		font-size: calc((var(--histoire) + 1px) * var(--echelle, 1));
	}
	.ecran-histoire .histoire p { margin-bottom: .8em; }
	.ecran-histoire .histoire .retiens { break-inside: avoid; }
	.cas-tete h1 { font-size: calc(clamp(28px, 3.2vw, 44px) * var(--echelle, 1)); }

	.ecran-diapo { height: 100%; }
	.diapo-g h2 { font-size: calc(clamp(28px, 3.8vw, 52px) * var(--echelle, 1)); }
	.ecran-diapo .diapo-texte { font-size: calc(clamp(17px, 1.35vw, 21px) * var(--echelle, 1)); max-height: 100%; overflow: hidden; }

	.ecran-exo { height: 100%; font-size: calc(var(--corps) * var(--echelle, 1)); }
	.ecran-exo .exo { height: 100%; }
	.ecran-exo .exo-q { font-size: calc(clamp(22px, 2.3vw, 32px) * var(--echelle, 1)); }
	.exo-g { position: static; }
	.ecran-exo .choix { min-height: 0; padding-top: calc(10px * var(--echelle, 1)); padding-bottom: calc(10px * var(--echelle, 1)); }
	.ecran-exo .correction { padding: 14px 18px; margin-top: 14px; }

	.ecran-score { height: 100%; }
}
[hidden] { display: none !important; }

/* ==========================================================================
   v1.3 — Menu « Parcours » : un bouton, une liste. Sur mobile, liste ouverte.
   ========================================================================== */
.nav-sous { position: relative; }
.nav-parcours { display: flex; align-items: center; gap: 8px; min-height: var(--cible); padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--encre); font: 600 15px var(--sans); cursor: pointer; }
.nav-parcours::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.nav-parcours[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.nav-parcours:hover, .nav-parcours[aria-current="true"], .nav-parcours[aria-expanded="true"] { background: var(--repere); }
.nav .sous { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 300px; padding: 8px; background: #fff; border: 1px solid var(--trait); border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 23, 42, .14); flex-direction: column; align-items: stretch; gap: 2px; }
.nav-sous.ouvert .sous { display: flex; }
.nav .sous a { display: grid; grid-template-columns: 10px 1fr; column-gap: 12px; align-items: center; padding: 10px 12px; min-height: 0; }
.nav .sous .nav-tr::before { grid-row: span 2; }
.sous-nom { font-weight: 700; font-size: 15px; }
.sous-titre { grid-column: 2; font-size: 13px; color: #64748B; font-weight: 500; }
.nav .sous .sous-tout { display: flex; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--trait); border-radius: 0 0 8px 8px; font-size: 14px; color: var(--accent-texte, #1D4ED8); }
.nav-socle::before { background: #475569; }
@media (max-width: 860px) {
	.nav-parcours { display: none; }
	.nav .sous { display: flex; position: static; min-width: 0; padding: 0 0 8px; margin: 0 0 8px; border: 0; border-bottom: 1px solid var(--trait); border-radius: 0; box-shadow: none; }
	.sous-nom { font-size: 17px; }
}
.pied-liens { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tranches .tranche-sur { display: block; color: rgba(255, 255, 255, .85); font: 700 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }

/* ==========================================================================
   v1.4 — Le jeu. Une seule grille pour tous les âges : gros boutons, pas de
   chrono, trois tailles de texte (A, A+, A++) propres au jeu.
   ========================================================================== */
.jeu { --j-fond: #FFF8EC; --j-encre: #14213D; --j-doux: #5B6478; --j-trait: #EADFCB; --j-vert: #12A150; --j-vert-f: #E5F7EC; --j-rouge: #D9433B; --j-rouge-f: #FDECEA; --j-or: #F4B400; --j-ombre: 0 10px 30px rgba(20, 33, 61, .10);
	background: var(--j-fond); color: var(--j-encre); font-size: 19px; line-height: 1.5; min-height: calc(100vh - 64px); padding: 8px 0 56px; }
.jeu.jt1 { font-size: 22px; } .jeu.jt2 { font-size: 26px; }
.jeu-in { max-width: 760px; margin: 0 auto; padding: 0 16px; position: relative; }
.jeu button { font: inherit; color: inherit; cursor: pointer; }
.jeu-ecran[hidden] { display: none !important; }
.jeu-taille { display: flex; justify-content: flex-end; gap: 6px; padding-top: 8px; }
.jeu-taille button { min-width: 48px; min-height: 48px; border: 2px solid var(--j-trait); background: #fff; border-radius: 12px; font-weight: 700; font-size: 17px; }
.jeu-taille button[aria-pressed="true"] { background: var(--j-encre); color: #fff; border-color: var(--j-encre); }

.jeu-accueil h1 { font: 700 clamp(34px, 7vw, 52px)/1.1 var(--serif); margin: 10px 0 10px; color: var(--j-encre); }
.jeu.jt1 .jeu-accueil h1 { font-size: clamp(38px, 8vw, 58px); } .jeu.jt2 .jeu-accueil h1 { font-size: clamp(42px, 9vw, 64px); }
.jeu-chapo { color: var(--j-doux); margin: 0 0 26px; font-size: 1.05em; }
.jeu-modes { display: grid; gap: 16px; }
.jeu-mode, .jeu-verrou { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 20px; border: 0; border-radius: 22px; background: #fff; box-shadow: var(--j-ombre); transition: transform .15s; color: var(--j-encre); text-decoration: none; }
.jeu-mode:hover, .jeu-verrou:hover { transform: translateY(-2px); }
.jeu-verrou { background: transparent; box-shadow: none; border: 2px dashed var(--j-trait); }
.jeu-ico { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-size: 38px; background: #E4ECFF; }
.jeu-mode-defi .jeu-ico { background: #FFF1C7; } .jeu-mode-moyen .jeu-ico { background: #E5F7EC; } .jeu-mode-difficile .jeu-ico { background: #F3E8FF; } .jeu-verrou .jeu-ico { background: #F1ECE2; }
.jeu-mode-t { display: block; font-weight: 700; font-size: 1.12em; }
.jeu-mode-d { display: block; margin-top: 4px; color: var(--j-doux); font-size: .9em; }
.jeu-fl { font-size: 28px; color: var(--j-doux); }
.jeu-badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--j-vert-f); color: #0B7A3B; font-size: .7em; font-weight: 700; vertical-align: middle; }

.jeu-barre { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.jeu-quitter { min-width: 48px; min-height: 48px; border: 0; background: #fff; border-radius: 14px; box-shadow: var(--j-ombre); font-size: 22px; }
.jeu-points { flex: 1; display: flex; gap: 6px; }
.jeu-points span { flex: 1; height: 12px; border-radius: 99px; background: #EFE6D6; transition: background .3s; }
.jeu-points span.ok { background: var(--j-vert); } .jeu-points span.ko { background: var(--j-rouge); } .jeu-points span.ici { background: var(--j-or); }
.jeu-tirelire { display: flex; align-items: center; gap: 6px; font-weight: 800; min-width: 72px; justify-content: flex-end; }
.jeu-piece { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE58A, var(--j-or) 60%, #C98F00); color: #7A5200; font-size: 17px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.jeu-tirelire.saute .jeu-piece { animation: jeu-saute .5s; }
@keyframes jeu-saute { 40% { transform: translateY(-10px) scale(1.15); } }

.jeu-type { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .78em; }
.jt-duel { background: #E4ECFF; color: #1D4ED8; } .jt-choix { background: #FFF1C7; color: #8A5A00; } .jt-affaire { background: #FDE7F3; color: #A21767; } .jt-alerte { background: #FFE4E1; color: #B42318; } .jt-vraifaux { background: #E5F7EC; color: #0B7A3B; }
.jeu-q { font: 700 clamp(26px, 5vw, 34px)/1.2 var(--serif); margin: 14px 0 22px; color: var(--j-encre); }
.jeu.jt1 .jeu-q { font-size: clamp(29px, 5.5vw, 38px); } .jeu.jt2 .jeu-q { font-size: clamp(32px, 6vw, 42px); }
.jeu-reponses { display: grid; gap: 14px; }
.jeu-reponses.jeu-duel { grid-template-columns: 1fr 1fr; position: relative; }
.jeu-rep { width: 100%; min-height: 76px; padding: 18px 20px; border: 3px solid transparent; border-radius: 20px; background: #fff; box-shadow: var(--j-ombre); text-align: left; font-weight: 600; line-height: 1.35; transition: transform .12s, border-color .2s, background .2s; }
.jeu-rep:hover:not(:disabled) { transform: translateY(-2px); border-color: #D9CCB4; }
.jeu-rep:disabled { cursor: default; }
.jeu-duel .jeu-rep { min-height: 190px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; padding: 22px 16px; }
.jeu.jt2 .jeu-duel .jeu-rep { min-height: 230px; }
.jeu-gros { font: 800 1.5em/1.1 var(--sans); }
.jeu-petit { color: var(--j-doux); font-weight: 500; font-size: .9em; }
.jeu-emoji { font-size: 42px; line-height: 1; }
.jeu-vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: var(--j-encre); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; border: 4px solid var(--j-fond); pointer-events: none; }
.jeu-rep.juste { border-color: var(--j-vert); background: var(--j-vert-f); }
.jeu-rep.faux { border-color: var(--j-rouge); background: var(--j-rouge-f); }
.jeu-rep.eteint { opacity: .55; }
.jeu-marque { margin-left: auto; padding-left: 10px; font-size: 1.2em; }
.jeu-reponses:not(.jeu-duel) .jeu-rep.juste, .jeu-reponses:not(.jeu-duel) .jeu-rep.faux { display: flex; align-items: center; }

.jeu-verdict { margin-top: 22px; padding: 20px 22px; border-radius: 20px; background: #fff; box-shadow: var(--j-ombre); border-left: 8px solid var(--j-vert); animation: jeu-monte .25s ease-out; }
.jeu-verdict.ko { border-left-color: var(--j-rouge); }
.jeu-verdict h3 { margin: 0 0 6px; font: 700 1.15em var(--sans); color: var(--j-encre); }
.jeu-verdict p { margin: 0; }
.jeu-suite { margin-top: 16px !important; }
@keyframes jeu-monte { from { opacity: 0; transform: translateY(8px); } }

.jeu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--j-encre); color: #fff !important; font-weight: 700; text-decoration: none; }
.jeu-btn:hover { background: #22325A; }
.jeu-btn-or { background: var(--j-or); color: #3D2A00 !important; width: 100%; } .jeu-btn-or:hover { background: #E2A700; }
.jeu-btn-ligne { background: #fff; color: var(--j-encre) !important; border: 2px solid var(--j-trait); } .jeu-btn-ligne:hover { background: #FFFDF8; }
.jeu-btn-large { width: 100%; }

.jeu-fin { text-align: center; }
.jeu-etoiles { font-size: 56px; letter-spacing: 6px; margin: 10px 0 4px; }
.jeu-fin h2 { font: 700 clamp(30px, 6vw, 42px)/1.15 var(--serif); margin: 6px 0; color: var(--j-encre); }
.jeu-score { color: var(--j-doux); margin: 0 0 22px; }
.jeu-grille { font-size: 34px; letter-spacing: 4px; margin: 0 0 18px; }
.jeu-partage { display: grid; gap: 12px; max-width: 420px; margin: 0 auto 28px; }
.jeu-partage-ok { color: #0B7A3B; font-weight: 700; margin: 0; }
.jeu-apprendre { text-align: left; background: #fff; border-radius: 22px; box-shadow: var(--j-ombre); padding: 22px; margin: 0 0 18px; }
.jeu-apprendre h3 { margin: 0 0 6px; font: 700 1.2em var(--serif); color: var(--j-encre); }
.jeu-apprendre p { margin: 0 0 14px; color: var(--j-doux); }
.jeu-lien-cas { display: block; padding: 16px 18px; border-radius: 16px; background: #FFF6DA; color: var(--j-encre) !important; text-decoration: none; font-weight: 700; }
.jeu-lien-cas small { display: block; font-weight: 500; color: var(--j-doux); margin-top: 2px; font-size: .85em; }
.jeu-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.jeu-prochain { color: var(--j-doux); font-size: .9em; }
.jeu-erreur { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--j-rouge-f); color: #8F1D16; font-weight: 600; }
.jeu-confetti { position: fixed; top: -12px; width: 10px; height: 14px; border-radius: 2px; pointer-events: none; z-index: 50; animation: jeu-tombe 1.4s ease-in forwards; }
@keyframes jeu-tombe { to { transform: translateY(105vh) rotate(540deg); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .jeu *, .jeu-confetti { animation: none !important; transition: none !important; } .jeu-confetti { display: none; } }
@media (max-width: 560px) {
	.jeu { font-size: 18px; } .jeu.jt1 { font-size: 21px; } .jeu.jt2 { font-size: 24px; }
	.jeu-mode, .jeu-verrou { grid-template-columns: 60px 1fr; padding: 16px; } .jeu-ico { width: 60px; height: 60px; font-size: 32px; } .jeu-fl { display: none; }
	.jeu-reponses.jeu-duel { grid-template-columns: 1fr; }
	.jeu-duel .jeu-rep { min-height: 130px; } .jeu.jt2 .jeu-duel .jeu-rep { min-height: 150px; }
	.jeu-vs { width: 44px; height: 44px; font-size: 15px; }
}
/* Menu : « Jouer » ressort un peu, sans crier. */
.nav-jouer { font-weight: 700 !important; }
.nav-jouer::before { content: "🎲"; font-size: 15px; }
/* v1.5 — Progression au jeu (comptes) */
.jeu-progres { margin-top: 26px; padding: 22px; border-radius: 22px; background: #fff; box-shadow: var(--j-ombre); }
.jeu-progres h2 { margin: 0 0 14px; font: 700 1.25em var(--serif); color: var(--j-encre); }
.jeu-progres p { margin: 0 0 14px; color: var(--j-doux); }
.jeu-progres-invite { background: #FFF6DA; box-shadow: none; border: 2px solid #F3E2A9; }
.jeu-chiffres { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jeu-chiffres li { background: var(--j-fond); border-radius: 16px; padding: 14px 10px; text-align: center; }
.jeu-chiffres strong { display: block; font: 800 1.6em/1.1 var(--sans); color: var(--j-encre); }
.jeu-chiffres span { color: var(--j-doux); font-size: .82em; }
.jeu-jauge { margin-top: 10px; }
.jeu-jauge-l { display: block; font-size: .9em; color: var(--j-doux); margin-bottom: 6px; }
.jeu-jauge-l b { color: var(--j-encre); }
.jeu-jauge-b { display: block; height: 12px; border-radius: 99px; background: #EFE6D6; overflow: hidden; }
.jeu-jauge-b span { display: block; height: 100%; background: var(--j-vert); border-radius: 99px; transition: width .4s; }
.jeu-actions-g { justify-content: flex-start; margin: 0; }
@media (max-width: 560px) { .jeu-chiffres strong { font-size: 1.35em; } .jeu-actions-g .jeu-btn { width: 100%; } }
/* v1.5.1 — Carte du jeu dans Mon espace (mêmes couleurs, sans le fond de page). */
.jeu.jeu-encart { background: transparent; min-height: 0; padding: 0; font-size: 17px; margin-top: 28px; }
.jeu-encart .jeu-progres { margin-top: 0; }
.jeu-progres-lien { margin: 16px 0 0 !important; }
.jeu-fin-compte { text-align: left; background: #FFF6DA; border: 2px solid #F3E2A9; border-radius: 22px; padding: 20px 22px; margin: 0 0 18px; }
.jeu-fin-compte h3 { margin: 0 0 6px; font: 700 1.15em var(--serif); color: var(--j-encre); }
.jeu-fin-compte p { margin: 0 0 12px; color: var(--j-doux); }
.jeu-repris { margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; background: var(--j-vert-f); color: #0B5E2F; font-weight: 600; }

/* ===== v1.6 : Premiers pas ===== */
.jeu-note { margin: -14px 0 22px; font-size: .85em; color: var(--j-doux); }
.jeu-mode-init .jeu-ico { background: #E5F7EC; }
.jeu-palier .jeu-ico { background: #FFF1C7; font-size: 22px; letter-spacing: -2px; }
.jeu-badge[hidden] { display: none; }
.jeu-tirelire { min-width: 0; font-size: .85em; white-space: nowrap; }
.jeu-tirelire .jeu-piece { background: #FFE4EE; font-size: 20px; }
.jeu-histoire { margin: 14px 0 0; padding: 16px 18px; background: #fff; border-left: 5px solid var(--j-or); border-radius: 14px; box-shadow: var(--j-ombre); line-height: 1.55; }
.jeu-histoire + .jeu-q { margin-top: 16px; }
.jt-ordre { background: #F3E8FF; color: #6B21A8; }
.jeu-ordre-aide { margin: 0; color: var(--j-doux); font-size: .9em; }
.jeu-etape { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 18px; border: 3px solid transparent; border-radius: 18px; background: #fff; box-shadow: var(--j-ombre); text-align: left; font-weight: 600; line-height: 1.35; color: var(--j-encre); }
.jeu-num { flex: 0 0 38px; height: 38px; border-radius: 50%; border: 2px dashed var(--j-trait); display: grid; place-items: center; font-weight: 800; }
.jeu-etape.pris { border-color: #C4B5FD; background: #FAF5FF; }
.jeu-etape.pris .jeu-num { border: 0; background: #7C3AED; color: #fff; }
.jeu-etape.juste { border-color: var(--j-vert); background: var(--j-vert-f); }
.jeu-etape.eteint { opacity: .6; }
.jeu-etape:disabled { cursor: default; }
.jeu-ordre-btns { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin: 4px 0 0; }
.jeu-ordre-btns .jeu-btn:disabled { opacity: .45; cursor: default; }
.jeu-solution { margin: 0 0 10px; padding-left: 1.4em; font-weight: 600; }
.jeu-solution li { margin: 4px 0; }
@media (max-width: 420px) { .jeu-tirelire { font-size: .75em; } }
.jeu-pp-compte { margin: 0 0 18px; font-size: .9em; color: var(--j-doux); }
.jeu-pp-compte a { color: inherit; text-decoration: underline; }
.formulaire label.case { display: flex; font-weight: 400; }

/* ==========================================================================
   v1.7 — Mon bilan
   ========================================================================== */
.bilan .groupe-titre { margin-top: 40px; }
.indic-4 .indic-n { font-size: 32px; }
.bilan .petit { margin-top: 10px; }
.bilan-jours { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; align-items: end; height: 90px; padding: 8px; border: 1px solid var(--trait); border-radius: 12px; background: #fff; }
.bilan-jour { position: relative; height: 100%; display: flex; align-items: flex-end; border-bottom: 2px solid var(--trait); }
.bilan-jour i { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; }
.bilan-jauge { margin: 14px 0; }
.bilan-jauge .jeu-jauge-l { color: var(--gris); }
.bilan-jauge .jeu-jauge-l strong { color: var(--encre); }
.bilan-jauge .jeu-jauge-b { background: var(--trait); }
.bilan-jauge .jeu-jauge-b span { background: var(--accent); }
.bilan-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.bilan-table th, .bilan-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--trait); }
.bilan-table th { font-size: .85em; color: var(--gris); font-weight: 600; }
.bilan-etat { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85em; font-weight: 600; background: var(--repere); }
.st-maitrise .bilan-etat { background: var(--accent-doux); color: var(--accent-texte); }
.st-a-travailler .bilan-etat { background: #FEF3C7; color: #92400E; }
.st-pas-commence { color: var(--gris); }
.bilan-q { padding: 14px 18px; margin: 10px 0; box-shadow: none; }
.bilan-q summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.bilan-q-t { font-weight: 600; }
.bilan-q-m { font-size: .85em; color: var(--gris); }
.bilan-q p { margin: 8px 0 0; }
.bilan-liste li { margin: 6px 0; }
@media (max-width: 600px) { .bilan-table { font-size: .88em; } .bilan-table th, .bilan-table td { padding: 8px 6px; } }

/* ==========================================================================
   v1.8 — Pages intérieures, espace client.
   Une encre (nuit), une pièce (or), du papier. Le bandeau nuit porte le titre ;
   le contenu monte sur lui dans une feuille blanche : c'est le seul effet.
   ========================================================================== */
:root {
	--nuit: #14213D;
	--nuit-2: #1D2E52;
	--papier: #F3F4F7;
	--or: #F4B400;
	--or-clair: #FFD54A;
	--or-doux: #FFF6D6;
	--feuille: 0 1px 2px rgba(20, 33, 61, .05), 0 18px 48px -24px rgba(20, 33, 61, .28);
}
body:has(.une-court), body:has(.bloc-auth), body:has(.page-etroite) { background: var(--papier); }
.marque-point, .tr-neutre .marque-point { color: var(--or); }

/* Bandeau des pages intérieures */
.une-court { background: var(--nuit); border: 0; color: #fff; position: relative; overflow: hidden; }
.une-court::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 56px solid rgba(244, 180, 0, .09); pointer-events: none; }
.une-court .une-in { position: relative; z-index: 1; padding: 52px 20px 44px; }
.une-court h1 { color: #fff; font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -.015em; margin-bottom: .3em; }
.une-court .chapo { color: #C9D2E3; max-width: 36em; }
.une-court .sur { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font: 600 14px/1.4 var(--sans); color: var(--or-clair); }
.une-court .sur::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 3px rgba(244, 180, 0, .22); }
.une-court .sur a { color: var(--or-clair); }
.une-court a:not(.btn) { color: #fff; }

/* Bandeau suivi d'une colonne : même largeur, la feuille monte sur le bandeau */
.une-court:has(+ .bloc .bloc-etroit) .une-in { max-width: 920px; padding-bottom: 92px; }
.une-court + .bloc:has(> .bloc-etroit) { padding-top: 0; }
.une-court + .bloc > .bloc-etroit { max-width: 920px; margin-top: -56px; position: relative; z-index: 2; background: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--feuille); }
.une-court + .bloc > .bloc-etroit > :first-child { margin-top: 0; }

/* Onglets de l'espace : posés sur le bandeau */
.une-court .onglets { margin-top: 22px; gap: 4px; padding: 4px; background: rgba(255, 255, 255, .08); border-radius: 999px; display: inline-flex; flex-wrap: wrap; }
.une-court .onglets a { border: 0; background: transparent; color: #DCE3F0; min-height: 38px; padding: 0 16px; font-size: 15px; }
.une-court .onglets a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.une-court .onglets a[aria-current="page"] { background: #fff; color: var(--nuit); font-weight: 600; }

/* Titres de section : des titres, pas des étiquettes */
.groupe-titre { font: 600 22px/1.3 var(--serif); text-transform: none; letter-spacing: -.005em; color: var(--nuit); margin: 44px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--trait); }
.bloc-etroit > .groupe-titre:first-child, .bloc-etroit > .indic + .groupe-titre { margin-top: 36px; }
.sur { text-transform: none; letter-spacing: 0; font-size: 14px; }
.barre-info { text-transform: none; letter-spacing: 0; font-size: 14px; }
.tableau th { text-transform: none; letter-spacing: 0; font-size: 14px; }

/* Indicateurs */
.indic { gap: 14px; }
.indic-carte { border: 0; background: var(--papier); border-radius: 16px; padding: 20px 22px 18px; gap: 6px; }
a.indic-carte { transition: background .15s; }
a.indic-carte:hover { background: var(--or-doux); box-shadow: none; }
.indic-n { font: 600 36px/1 var(--serif); color: var(--nuit); }
.indic-l { font-size: 15px; color: #56607A; }
.indic-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.indic-4 .indic-n { font-size: 30px; }

/* Listes, tableaux, vides, avis */
.vide { background: var(--papier); border: 1px dashed #CCD2DE; color: #56607A; border-radius: 16px; padding: 28px 24px; }
.avis { border-radius: 12px; }
.tableau, .bilan-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95em; }
.tableau th, .bilan-table th { font: 600 13px/1.3 var(--sans); color: #56607A; text-transform: none; letter-spacing: 0; padding: 0 12px 10px; border-bottom: 1px solid var(--trait); text-align: left; }
.tableau td, .bilan-table td { padding: 13px 12px; border-bottom: 1px solid #EEF0F4; vertical-align: middle; }
.tableau tbody tr:hover td, .bilan-table tbody tr:hover td { background: #FAFBFC; }
.bilan-table td:not(:first-child), .bilan-table th:not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mes-tranches a { border: 0; background: var(--papier); border-radius: 16px; position: relative; padding-left: 26px; }
.mes-tranches a::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 0 4px 4px 0; background: var(--accent); }
.mes-tranches a:hover { background: var(--or-doux); }

/* Mon espace : la carte du jeu dans la feuille */
.bloc-etroit .jeu-encart { background: none; min-height: 0; padding: 0; margin-top: 36px; }
.bloc-etroit .jeu-encart .jeu-progres { background: linear-gradient(160deg, #FFF8EC, #FFEFCC); border: 0; border-radius: 20px; box-shadow: none; padding: 24px; }

/* Mon bilan */
.bilan-jours { height: 110px; padding: 12px 12px 0; border: 0; background: var(--papier); border-radius: 14px; gap: 4px; }
.bilan-jour { border-bottom: 0; }
.bilan-jour::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 2px; background: #DCE0E8; }
.bilan-jour i { background: var(--nuit); border-radius: 4px 4px 0 0; min-height: 0; }
.bilan-jour.on i { background: linear-gradient(180deg, var(--or), #E09E00); }
.bilan-jauge { margin: 0; padding: 14px 0; border-bottom: 1px solid #EEF0F4; }
.bilan-jauge:last-of-type { border-bottom: 0; }
.bilan-jauge .jeu-jauge-l { font-size: 15px; color: #56607A; }
.bilan-jauge .jeu-jauge-l strong { color: var(--nuit); font-weight: 600; }
.bilan-jauge .jeu-jauge-b { height: 10px; background: #E9ECF2; }
.bilan-jauge .jeu-jauge-b span { background: var(--nuit); }
.bilan-etat { padding: 3px 11px; font-size: 13px; background: #EEF0F4; color: #56607A; }
.st-maitrise .bilan-etat { background: #DDF5E7; color: #0E6B3B; }
.st-en-cours .bilan-etat { background: #E3ECFF; color: #1E40AF; }
.st-a-travailler .bilan-etat { background: var(--or-doux); color: #8A5A00; }
.st-pas-commence td { color: #8A93A8; }
.bilan-q { border: 0; background: var(--papier); border-radius: 14px; padding: 16px 20px; box-shadow: none; }
.bilan-q[open] { background: #fff; box-shadow: inset 0 0 0 1.5px #DCE0E8; }
.bilan-q summary { list-style: none; position: relative; padding-right: 28px; }
.bilan-q summary::-webkit-details-marker { display: none; }
.bilan-q summary::after { content: ""; position: absolute; right: 4px; top: 6px; width: 8px; height: 8px; border-right: 2px solid #8A93A8; border-bottom: 2px solid #8A93A8; transform: rotate(45deg); transition: transform .15s; }
.bilan-q[open] summary::after { transform: rotate(-135deg); top: 10px; }
.bilan-q strong { color: var(--nuit); }
.bilan-liste { list-style: none; padding: 0; margin: 0; }
.bilan-liste li { padding: 12px 0 12px 22px; border-bottom: 1px solid #EEF0F4; position: relative; margin: 0; }
.bilan-liste li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--or); }

/* Formulaires de l'espace */
.bloc-etroit .formulaire { max-width: 440px; }
.formulaire input[type="email"], .formulaire input[type="password"], .formulaire input[type="text"] { border-radius: 12px; border-color: #D3D8E2; background: #FBFCFD; }
.formulaire input:focus { border-color: var(--nuit); background: #fff; box-shadow: 0 0 0 4px rgba(20, 33, 61, .08); }
.btn-plein { background: var(--accent); }
body:not([class*="tr-1"]):not([class*="tr-2"]):not([class*="tr-4"]):not([class*="tr-5"]) .btn-plein { background: var(--nuit); }

/* Connexion, création de compte, mot de passe oublié */
.bloc-auth { background: var(--nuit); position: relative; overflow: hidden; min-height: calc(100vh - 64px); padding: clamp(40px, 8vh, 96px) 20px; display: grid; place-items: center; }
.bloc-auth::before { content: ""; position: absolute; left: -140px; bottom: -200px; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(244, 180, 0, .08); }
.auth { position: relative; max-width: 440px; border: 0; border-radius: 24px; padding: 40px 36px 32px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55); }
.auth h1 { font-size: 34px; color: var(--nuit); }
.auth .btn-plein { background: var(--nuit); }
.auth .petit a { color: var(--nuit); font-weight: 600; }

/* Pages de texte (légal, contact) : une feuille sur le papier */
.page-etroite.texte-long { background: #fff; border-radius: 22px; box-shadow: var(--feuille); margin: 48px auto 72px; padding: clamp(28px, 5vw, 56px); max-width: 46rem; }
.texte-long h1 { font-size: clamp(32px, 4.4vw, 44px); color: var(--nuit); padding-bottom: 18px; margin-bottom: 24px; border-bottom: 3px solid var(--or); display: inline-block; }
.texte-long h2 { color: var(--nuit); }
.texte-long ul { padding-left: 0; list-style: none; }
.texte-long li { position: relative; padding-left: 20px; }
.texte-long li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--or); }

/* Outils, tarifs, parcours complet : surfaces blanches sur le papier */
.une-court + .bloc .outils a, .une-court + .bloc .offre:not(.offre-mise) { border: 0; box-shadow: var(--feuille); border-radius: 20px; }
.une-court + .bloc .offre-mise { border-radius: 20px; }
.outils a:hover { transform: translateY(-3px); }
.outil-pied { color: var(--nuit); }
.une-court + .bloc .outil-grille > form, .une-court + .bloc .outil-grille .outil-form { background: #fff; border-radius: 20px; box-shadow: var(--feuille); }
.resultats { background: var(--nuit); border-radius: 20px; }
.res-v { color: var(--or-clair); }
.bloc-gris { background: #E9ECF2; }
#acheter .bloc-etroit { background: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--feuille); }
.offre-mise { box-shadow: 0 24px 60px -28px rgba(37, 99, 235, .45); }
.cas-liste .cas-ligne a { transition: background .15s; }

/* Pied de page : plus compact */
.pied { background: var(--nuit); }
.pied-in { padding: 44px 20px 20px; gap: 28px; grid-template-columns: minmax(200px, 1fr) 3fr; }
.pied-liens { grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 8px 24px; }
.pied-liens a { min-height: 32px; font-size: 14.5px; color: #DCE3F0; }
.pied-liens a:hover { color: #fff; }
.pied-marque p { color: #9AA6C0; font-size: 15px; }
.pied-copie { padding: 14px 20px 26px; color: #8793AE; border-top-color: rgba(255, 255, 255, .1); }
@media (max-width: 800px) { .pied-in { grid-template-columns: 1fr; } .pied-liens { grid-template-columns: 1fr 1fr; } }

@media (max-width: 600px) {
	.une-court .une-in { padding: 36px 16px 32px; }
	.une-court:has(+ .bloc .bloc-etroit) .une-in { padding-bottom: 76px; }
	.une-court + .bloc > .bloc-etroit { margin: -48px 12px 0; padding: 22px 18px; border-radius: 18px; }
	.une-court .onglets { display: flex; overflow-x: auto; flex-wrap: nowrap; border-radius: 14px; scrollbar-width: none; }
	.une-court .onglets a { white-space: nowrap; }
	.indic, .indic-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
	.indic-carte { padding: 16px; }
	.indic-n, .indic-4 .indic-n { font-size: 26px; }
	.bilan-table th:nth-child(2), .bilan-table td:nth-child(2) { display: none; }
	.auth { padding: 28px 22px; }
	.page-etroite.texte-long { margin: 16px 12px 40px; }
	.pied-liens { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Menu « Mon espace » : liste déroulante, avec la déconnexion.
   ========================================================================== */
.nav .sous--compte { left: auto; right: 0; min-width: 220px; }
.nav .sous--compte a { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nav .sous--compte .sous-sortie { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--trait); border-radius: 0 0 8px 8px; color: #B91C1C; font-weight: 600; }
.nav-compte.nav-parcours { border: 1px solid var(--trait-fort); }
@media (max-width: 860px) {
	.nav .sous--compte { margin-top: 0; }
}
