/* Page de module : une colonne de lecture large de 68 caractères, un sommaire qui suit la lecture,
   et des encadrés dont la forme dit la fonction (lire, ouvrir, révéler, s'exercer, écrire). */

.page-module { --c: var(--l-cm); }
.progression { position: fixed; inset: 0 0 auto; height: 4px; z-index: 20; background: transparent; }
.progression span { display: block; height: 100%; background: var(--encre); transform-origin: 0 50%; transform: scaleX(0); }

.module-page { max-width: 1320px; }

/* ---------- en-tête ---------- */
.module-tete { padding: 1rem 0 2.5rem; border-bottom: 1px solid var(--filet); }
.module-tete.b-capital-markets { --c: var(--l-cm); }
.module-tete.b-securities-services { --c: var(--l-ss); }
.module-tete.b-fonctions-transverses { --c: var(--l-ft); }
.module-tete.b-cb-coverage { --c: var(--cb-cov); } .module-tete.b-cb-lifecycle { --c: var(--cb-lc); }
.module-tete.b-cb-financing { --c: var(--cb-fin); } .module-tete.b-cb-ittb { --c: var(--cb-itt); } .module-tete.b-cb-enablers { --c: var(--cb-en); }
.fil-ariane { font: 500 .9rem var(--titre); color: var(--encre-douce); margin: 0 0 1.2rem; }
.fil-ariane a { color: inherit; }
.module-tete-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 2.5rem; align-items: center; }
.module-tete h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.module-tete-num {
  display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%;
  border: .12em solid var(--c); font-size: .62em; flex: none;
}
.module-sous-titre { font: 600 1.1rem/1.4 var(--titre); color: var(--encre-douce); margin: .8rem 0 0; max-width: 60ch; }
.module-accroche { font-size: 1.25rem; margin: 1rem 0 0; max-width: 55ch; }
.module-chiffres { display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem; margin: 1.6rem 0 0; }
.module-chiffres div { display: flex; flex-direction: column-reverse; }
.module-chiffres dt { font: 500 .85rem var(--titre); color: var(--encre-douce); }
.module-chiffres dd { margin: 0; font: 700 1.6rem var(--titre); font-variant-numeric: tabular-nums; }
.bandeau-langue {
  margin: 1.4rem 0 0; padding: .7rem .9rem; border-radius: 8px; background: var(--zone);
  font-size: .95rem; max-width: 60ch;
}
.voisinage { margin: 0; background: var(--surface); border: 1px solid var(--filet); border-radius: 16px; padding: .9rem 1rem .4rem; }
.voisinage figcaption { font: 600 .9rem var(--titre); color: var(--encre-douce); }
.ego { display: block; width: 100%; height: auto; }
.ego-lien { stroke: var(--c); stroke-width: 2.5; }
.ego-voisin .disque { stroke: var(--b); stroke-width: 3; fill: var(--surface); }
.ego-voisin:hover .disque, .ego-voisin:focus-visible .disque { fill: var(--b); }
.ego-voisin:hover .num, .ego-voisin:focus-visible .num { fill: #fff; }
.ego-nom { font: 600 13px var(--titre); fill: var(--encre); }
.ego-centre .disque { fill: var(--b); stroke: var(--b); stroke-width: 3; }
.ego-num { fill: #fff; font-size: 22px; }

/* ---------- grille de lecture ---------- */
.module-corps-grille { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: 3rem; padding-top: 2rem; }
.sommaire { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow: auto; padding-right: .5rem; font-family: var(--titre); }
.sommaire-tete { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .6rem; }
.sommaire-avancement { font-size: .8rem; color: var(--encre-douce); }
.reglages-lecture { display: grid; gap: .45rem; padding: .7rem 0; border-block: 1px solid var(--filet); margin-bottom: .6rem; }
.interrupteur { display: flex; align-items: flex-start; gap: .55rem; font-size: .86rem; line-height: 1.3; cursor: pointer; }
.interrupteur input { accent-color: var(--encre); width: 1rem; height: 1rem; margin: 0; flex: none; }
.toc { list-style: none; margin: 0; padding: 0; font-size: .86rem; line-height: 1.3; }
.toc-partie summary { cursor: pointer; font-weight: 700; padding: .45rem 0; list-style: none; display: flex; gap: .45rem; }
.toc-partie summary::-webkit-details-marker { display: none; }
.toc-num { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 2px solid var(--c); font-size: .72rem; flex: none; }
.toc ol { list-style: none; margin: 0 0 .4rem; padding: 0 0 0 .3rem; border-left: 2px solid var(--filet); }
.toc ol a { display: block; padding: .28rem 0 .28rem .7rem; text-decoration: none; color: var(--encre-douce); margin-left: -2px; border-left: 2px solid transparent; }
.toc ol a:hover { color: var(--encre); }
.toc ol a[aria-current] { color: var(--encre); border-left-color: var(--encre); font-weight: 600; }
.toc ol a.lu::after { content: " ✓"; color: var(--l-ss); }

/* ---------- texte ---------- */
.lecture { min-width: 0; }
.lecture > .partie { margin-bottom: 3rem; }
.lecture p, .lecture ul, .lecture ol { max-width: var(--mesure); }
.lecture ul, .lecture ol { padding-left: 1.3rem; }
.partie-titre {
  font-size: clamp(1.7rem, 3vw, 2.4rem); display: flex; align-items: center; gap: .8rem;
  padding: 1.5rem 0 .5rem; border-top: 3px solid var(--encre); margin-top: 2rem;
}
.partie-num { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--c); color: #fff; font-size: 1.2rem; flex: none; }
.chapeau { margin: .5rem 0 1rem; padding: 0; font-size: 1.1rem; color: var(--encre-douce); }
.chapeau p { margin: 0; }
.sec { padding-top: 1.5rem; scroll-margin-top: 1rem; }
.sec-titre { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 1rem 0 .9rem; max-width: 34ch; }
.lecture h4 { font-size: 1.12rem; margin: 1.6rem 0 .4rem; max-width: 50ch; }
.lecture h5 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
.fin-section { display: block; height: 1px; }
dfn.terme { font-style: normal; text-decoration: underline dotted var(--encre-douce); text-underline-offset: 3px; cursor: help; }
dfn.terme:hover, dfn.terme:focus-visible { text-decoration-color: var(--encre); background: var(--zone); }
.infobulle {
  position: fixed; z-index: 30; max-width: 21rem; padding: .7rem .85rem; border-radius: 10px;
  background: var(--encre); color: var(--fond); font-size: .92rem; line-height: 1.45; box-shadow: 0 10px 30px rgba(10, 18, 32, .25);
}
.infobulle strong { display: block; font-family: var(--titre); margin-bottom: .2rem; }

.tableau-cadre { overflow-x: auto; margin: 1.2rem 0; max-width: 52rem; }
.tableau { border-collapse: collapse; width: 100%; font-size: .93rem; line-height: 1.45; }
.tableau td { border-bottom: 1px solid var(--filet); padding: .55rem .7rem; vertical-align: top; }
.tableau tr:first-child td { font-family: var(--titre); border-bottom: 2px solid var(--encre); }
.tableau td p { margin: 0; }

.figure { margin: 1.6rem 0; max-width: 52rem; }
.figure-zoom { display: block; padding: 0; border: 1px solid var(--filet); border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; width: 100%; }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption { font-size: .92rem; color: var(--encre-douce); margin-top: .5rem; max-width: var(--mesure); }
.visionneuse-figure { border: 0; border-radius: 12px; padding: 0; max-width: min(96vw, 1400px); background: #fff; }
.visionneuse-figure::backdrop { background: rgba(10, 16, 28, .75); }
.visionneuse-figure img { display: block; max-width: 100%; max-height: 90vh; }
.visionneuse-figure .fermer { position: absolute; top: .4rem; right: .6rem; font-size: 1.8rem; background: none; border: 0; cursor: pointer; color: #182131; }

/* ---------- encadrés ---------- */
.encadre { margin: 1.5rem 0; padding: 1.1rem 1.25rem; border-radius: 12px; max-width: 46rem; }
.encadre > p:last-child, .encadre-corps > p:last-child { margin-bottom: 0; }
.encadre-label { font: 700 .82rem var(--titre); margin: 0 0 .35rem; letter-spacing: .01em; }
.encadre-titre { font: 700 1.05rem var(--titre); margin: 0 0 .5rem; display: block; }

.e-insight { background: color-mix(in srgb, var(--c) 9%, var(--surface)); }
.e-insight .encadre-label { color: var(--c); }
.e-insight p { font-size: 1.08rem; }

.e-watch { background: color-mix(in srgb, var(--f-valeurs) 12%, var(--surface)); }
.e-watch .encadre-label { color: color-mix(in srgb, var(--f-valeurs) 70%, var(--encre)); }

.e-example, .e-case { background: var(--surface); border: 1px solid var(--filet); }
.e-fil { border: 2px solid var(--encre); }
.e-fil .encadre-label::before { content: ""; display: inline-block; width: .65rem; height: .65rem; border-radius: 2px; background: var(--encre); margin-right: .45rem; vertical-align: 0; }

.e-nutshell { background: var(--encre); color: var(--fond); }
.e-europe { background: var(--surface); border: 1px dashed var(--encre-douce); }
.e-europe .encadre-label { color: var(--encre-douce); }
.e-answer summary .encadre-label { color: var(--l-ss); }
.mythe + .mythe { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--panne) 25%, transparent); }
.solution-exercice { margin: 1rem 0 2rem; }
.e-nutshell .encadre-label { color: var(--fond); opacity: .75; }

details.encadre { background: var(--surface); border: 1px solid var(--filet); padding: 0; }
details.encadre summary { cursor: pointer; padding: .85rem 1.2rem; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
details.encadre summary::-webkit-details-marker { display: none; }
details.encadre summary::after { content: "+"; margin-left: auto; font: 700 1.2rem var(--titre); color: var(--encre-douce); }
details.encadre[open] summary::after { content: "–"; }
details.encadre summary .encadre-label, details.encadre summary .encadre-titre { margin: 0; }
details.encadre .encadre-corps { padding: 0 1.2rem 1rem; }
.e-it summary .encadre-label { color: var(--f-transaction); }
.e-deeper summary .encadre-label { color: var(--l-ft); }

.e-misconception { background: color-mix(in srgb, var(--panne) 8%, var(--surface)); }
.e-misconception .encadre-label { color: var(--panne); }
.idee-recue { font-size: 1.08rem; font-weight: 600; }
.revele summary, .solution summary {
  display: inline-block; cursor: pointer; font: 600 .9rem var(--titre); padding: .4rem .8rem;
  border: 1px solid currentColor; border-radius: 999px; list-style: none; margin-top: .3rem;
}
.revele summary::-webkit-details-marker, .solution summary::-webkit-details-marker { display: none; }
.revele[open] summary, .solution[open] summary { opacity: .6; }
.revele .encadre-corps, .solution .encadre-corps { margin-top: .8rem; }

.e-practice, .e-check, .e-explain { background: var(--surface); border: 1px solid var(--filet); border-top: 4px solid var(--encre); }
.e-practice .encadre-label, .e-check .encadre-label, .e-explain .encadre-label { font-size: .95rem; }
.exo { padding: 1rem 0; border-top: 1px solid var(--filet); }
.exo:first-of-type { border-top: 0; }
.exo h4 { margin: 0 0 .4rem; font-size: 1.05rem; }
.exo-num { display: inline-block; font-size: .8rem; padding: .1rem .45rem; border-radius: 4px; background: var(--zone); margin-right: .3rem; font-variant-numeric: tabular-nums; }
.solution .encadre-corps { background: var(--zone); border-radius: 8px; padding: .8rem 1rem; }
.brouillon { display: grid; gap: .3rem; margin: .6rem 0; font: 500 .82rem var(--titre); color: var(--encre-douce); }
.brouillon textarea {
  font: 400 1rem/1.5 var(--texte); color: var(--encre); background: var(--fond);
  border: 1px solid var(--filet); border-radius: 8px; padding: .6rem .7rem; resize: vertical; width: 100%;
}
.brouillon textarea:focus { outline: 2px solid var(--encre); outline-offset: 1px; }
.jargon { font: 500 .88rem var(--titre); margin: 0; }
.jargon-oui { color: color-mix(in srgb, var(--f-valeurs) 70%, var(--encre)); }
.jargon-non { color: var(--l-ss); }

.rappels { padding-left: 1.4rem; margin: .4rem 0 0; display: grid; gap: .7rem; }
.rappel-q { margin: 0 0 .35rem; font-weight: 600; }
.rappel-voir, .rappel-eval button {
  font: 600 .85rem var(--titre); cursor: pointer; padding: .3rem .7rem; border-radius: 999px;
  border: 1px solid var(--filet); background: var(--surface);
}
.rappel-r p { margin: .2rem 0 .5rem; color: var(--encre-douce); }
.rappel-eval { display: flex; gap: .4rem; }
.note-ok .rappel-eval [data-note="ok"] { background: var(--l-ss); border-color: var(--l-ss); color: #fff; }
.note-ko .rappel-eval [data-note="ko"] { background: var(--f-valeurs); border-color: var(--f-valeurs); color: #fff; }
.rappel-score { font: 600 .88rem var(--titre); color: var(--encre-douce); margin: 0; }

/* ---------- simulateurs ---------- */
.simulateur { margin: 2rem 0; padding: 1.3rem; border-radius: 16px; background: var(--surface); border: 2px solid var(--encre); max-width: 60rem; }
.sim-tete h4 { margin: 0 0 .3rem; font-size: 1.25rem; }
.sim-tete p { margin: 0 0 1rem; color: var(--encre-douce); }
.sim-tete .sim-label { font: 700 .8rem var(--titre); color: var(--encre); margin-bottom: .2rem; }
.sim-grille { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.sim-reglages { display: grid; gap: .9rem; }
.sim-sous { font: 600 .88rem var(--titre); margin: .3rem 0 -.3rem; }
.sim-champ { display: grid; grid-template-columns: 1fr auto; gap: .25rem .5rem; font: 500 .9rem var(--titre); }
.sim-champ output { font-weight: 700; font-variant-numeric: tabular-nums; }
.sim-champ input, .alloc input { grid-column: 1 / -1; width: 100%; accent-color: var(--encre); }
.sim-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .8rem; margin: 0 0 1rem; }
.sim-chiffres div { background: var(--zone); border-radius: 10px; padding: .6rem .75rem; display: flex; flex-direction: column-reverse; }
.sim-chiffres dt { font: 500 .8rem/1.3 var(--titre); color: var(--encre-douce); }
.sim-chiffres dd { margin: 0; font: 700 1.35rem var(--titre); font-variant-numeric: tabular-nums; }
.sim-barres { display: grid; gap: .55rem; }
.barre-ligne { display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr auto; gap: .6rem; align-items: center; font: 500 .88rem var(--titre); }
.barre-piste { height: 14px; background: var(--zone); border-radius: 7px; overflow: hidden; }
.barre-val { display: block; height: 100%; background: var(--encre-douce); border-radius: 7px; transition: width .25s; }
.barre-val.ok { background: var(--l-ss); }
.barre-val.ko { background: var(--panne); }
.barre-val.neutre { background: var(--f-controle); }
.barre-chiffre { font-variant-numeric: tabular-nums; white-space: nowrap; }
.barre-chiffre small { color: var(--encre-douce); font-weight: 400; }
.sim-note { font-size: .82rem; color: var(--encre-douce); margin: .6rem 0 0; }
.pile { display: flex; gap: 3px; margin-bottom: 1rem; font: 600 .78rem/1.2 var(--titre); color: #fff; }
.pile span { padding: .5rem .55rem; border-radius: 6px; display: flex; flex-direction: column; gap: .15rem; min-width: 0; overflow: hidden; }
.pile b { font-size: 1.05rem; }
.pile-dir { background: var(--l-ft); }
.pile-gar { background: var(--f-risque); }
.pile-plac { background: var(--l-cm); }
.verdict { margin: 0; padding: .6rem .8rem; border-radius: 8px; font: 600 .92rem/1.4 var(--titre); background: var(--zone); }
.verdict.ok { background: color-mix(in srgb, var(--l-ss) 15%, var(--surface)); color: var(--encre); }
.verdict.moyen { background: color-mix(in srgb, var(--f-valeurs) 16%, var(--surface)); }
.verdict.ko { background: color-mix(in srgb, var(--panne) 14%, var(--surface)); }
.choix-livre { display: inline-flex; border: 1px solid var(--filet); border-radius: 8px; overflow: hidden; margin-bottom: 1rem; }
.choix-livre button { border: 0; background: var(--surface); padding: .45rem .8rem; cursor: pointer; font: 600 .86rem var(--titre); }
.choix-livre button + button { border-left: 1px solid var(--filet); }
.choix-livre button[aria-pressed="true"] { background: var(--encre); color: var(--fond); }
.courbe { width: 100%; height: auto; display: block; }
.courbe .grille { stroke: var(--filet); }
.courbe .axe { font: 500 11px var(--titre); fill: var(--encre-douce); }
.courbe .offre { stroke: var(--encre-douce); stroke-dasharray: 4 4; }
.courbe .demande { fill: none; stroke: var(--l-cm); stroke-width: 3.5; stroke-linejoin: round; }
.courbe .repere { stroke: var(--encre); stroke-dasharray: 2 3; }
.courbe .point { fill: var(--encre); stroke: var(--surface); stroke-width: 3; }
.alloc { display: grid; gap: 1rem; }
.alloc-ligne { display: grid; grid-template-columns: 1fr auto; gap: .3rem .6rem; align-items: center; }
.alloc-ligne label { font-size: .95rem; line-height: 1.35; }
.alloc-ligne label span { color: var(--encre-douce); }
.alloc-ligne output { font: 700 1rem var(--titre); font-variant-numeric: tabular-nums; }
.alloc-corr { grid-column: 1 / -1; margin: 0; font-size: .92rem; padding: .45rem .7rem; background: var(--zone); border-radius: 8px; }
.alloc-reste { font: 700 1rem var(--titre); margin: 0; }
.alloc-reste.ok { color: var(--l-ss); }
.sim-bouton {
  justify-self: start; display: inline-block; font: 600 .92rem var(--titre); cursor: pointer; text-decoration: none;
  background: var(--encre); color: var(--fond); border: 2px solid var(--encre); border-radius: 8px; padding: .55rem 1rem;
}
.sim-bouton.second { background: var(--surface); color: var(--encre); }
.carte-flash {
  min-height: 9rem; border-radius: 14px; border: 2px solid var(--encre); padding: 1.2rem 1.3rem; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: .4rem; background: var(--surface);
}
.carte-flash.retournee { background: var(--encre); color: var(--fond); }
.carte-n { font: 600 .8rem var(--titre); opacity: .7; margin: 0; }
.carte-recto { font: 700 1.3rem var(--titre); margin: 0; }
.carte-verso { font-size: 1.1rem; margin: 0; }
.carte-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }

/* ---------- modes de lecture ---------- */
.sans-tech .e-it { display: none; }
.survol .sec > p, .survol .sec > ul, .survol .sec > ol, .survol .sec > h4, .survol .sec > h5,
.survol .sec > .tableau-cadre, .survol .sec > .figure, .survol .sec > .simulateur, .survol .sec > .chapeau,
.survol .sec > .encadre:not(.e-insight):not(.e-nutshell) { display: none; }
.survol .sec { padding-top: .2rem; }
.survol .sec-titre { margin: .8rem 0 .5rem; }

/* ---------- écrans moyens et étroits ---------- */
@media (max-width: 1050px) {
  .module-tete-grille { grid-template-columns: 1fr; }
  .voisinage { max-width: 30rem; }
  .module-corps-grille { grid-template-columns: 1fr; gap: 1.5rem; }
  .sommaire { position: static; max-height: none; border: 1px solid var(--filet); border-radius: 12px; padding: .9rem 1rem; background: var(--surface); }
}
@media (max-width: 760px) {
  .sim-grille { grid-template-columns: 1fr; }
  .encadre { padding: 1rem; }
  .simulateur { padding: 1rem; margin-inline: -.25rem; }
  .barre-ligne { grid-template-columns: 1fr auto; }
  .barre-ligne .barre-piste { grid-column: 1 / -1; grid-row: 2; }
  .module-chiffres dd { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { .barre-val { transition: none; } }

/* ---------- ce métier dans l'atelier ---------- */
.tete-droite { display: grid; gap: .8rem; }
.dans-atelier { background: var(--surface); border: 1px solid var(--filet); border-radius: 16px; padding: .8rem 1rem; }
.dans-atelier p { margin: 0 0 .4rem; font: 600 .9rem var(--titre); color: var(--encre-douce); }
.dans-atelier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.dans-atelier li { display: flex; justify-content: space-between; gap: .8rem; font: 500 .92rem var(--titre); }
.dans-atelier li span { color: var(--encre-douce); white-space: nowrap; font-size: .85rem; }

/* ---------- QCM de fin de partie ---------- */
.qcm { margin: 2.5rem 0 1rem; padding: 1.3rem 1.4rem; border-radius: 16px; background: var(--surface); border: 2px solid var(--encre); max-width: 46rem; }
.qcm-titre { font-size: 1.25rem; margin: 0 0 .3rem; }
.qcm-intro { margin: 0 0 1rem; color: var(--encre-douce); font-size: .95rem; }
.qcm-liste { margin: 0; padding-left: 1.4rem; display: grid; gap: 1.3rem; }
.qcm-enonce { margin: 0 0 .5rem; font-weight: 600; }
.qcm-choix-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.qcm-choix {
  width: 100%; text-align: left; font: 400 .98rem/1.4 var(--texte); color: var(--encre); cursor: pointer;
  background: var(--fond); border: 1px solid var(--filet); border-radius: 10px; padding: .55rem .8rem;
}
.qcm-choix:hover:not(:disabled) { border-color: var(--encre-douce); }
.qcm-choix:disabled { cursor: default; }
.qcm-choix.choix-ok { border: 2px solid var(--l-ss); background: color-mix(in srgb, var(--l-ss) 12%, var(--surface)); }
.qcm-choix.choix-ko { border: 2px solid var(--panne); background: color-mix(in srgb, var(--panne) 9%, var(--surface)); }
.qcm-choix.choix-ok::before { content: "✓ "; color: var(--l-ss); font-weight: 700; }
.qcm-choix.choix-ko::before { content: "✗ "; color: var(--panne); font-weight: 700; }
.qcm-pourquoi { margin: .3rem .2rem .2rem .8rem; font-size: .92rem; color: var(--encre-douce); }
.qcm-resolue .qcm-choix:not(.choix-ok):not(.choix-ko) { opacity: .55; }
.qcm-score { font: 700 1rem var(--titre); margin: 1rem 0 .4rem; }
.qcm-score.qcm-parfait { color: var(--l-ss); }
.qcm-refaire { font: 600 .88rem var(--titre); cursor: pointer; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--filet); background: var(--surface); color: var(--encre); }

/* ---------- grille « Explique-le » ---------- */
.grille { margin-top: .7rem; border-top: 1px solid var(--filet); padding-top: .6rem; }
.grille summary { font: 600 .92rem var(--titre); cursor: pointer; }
.grille ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; font-size: .94rem; }
.grille label { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.grille input { margin-top: .3rem; accent-color: var(--l-ss); flex: none; }
.grille-sous { margin: .7rem 0 0; font: 500 .85rem var(--titre); color: var(--encre-douce); }
.grille-auto li { font: 500 .9rem var(--titre); padding-left: 1.3rem; position: relative; }
.grille-auto li::before { position: absolute; left: 0; font-weight: 700; }
.auto-ok { color: var(--l-ss); } .auto-ok::before { content: "✓"; }
.auto-ko { color: var(--panne); } .auto-ko::before { content: "✗"; }

/* ---------- Mon parcours ---------- */
.parcours { max-width: 1100px; }
.pc-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; margin: 0 0 2.5rem; }
.pc-chiffres div { background: var(--surface); border: 1px solid var(--filet); border-radius: 14px; padding: .8rem 1rem; }
.pc-chiffres dt { font: 500 .85rem var(--titre); color: var(--encre-douce); }
.pc-chiffres dd { margin: .2rem 0 0; font: 700 1.6rem var(--titre); font-variant-numeric: tabular-nums; }
.pc-chiffres div:first-child { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.pc-chiffres div:first-child dt { color: inherit; opacity: .8; }
.pc-revision, .pc-modules { margin-bottom: 3rem; }
.pc-revision h2, .pc-modules h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.pc-aide { color: var(--encre-douce); max-width: var(--mesure); margin: 0 0 1rem; }
.pc-carte { max-width: 46rem; background: var(--surface); border: 2px solid var(--encre); border-radius: 16px; padding: 1.3rem 1.4rem; min-height: 9rem; }
.pc-meta { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .7rem; font: 600 .85rem var(--titre); color: var(--encre-douce); }
.pc-tag { color: var(--b); }
.pc-q { font: 600 1.15rem/1.4 var(--texte); margin: 0 0 1rem; }
.pc-r-texte { color: var(--encre-douce); margin-bottom: .8rem; }
.pc-r-texte p { margin: 0 0 .5rem; }
.pc-r a { font: 600 .9rem var(--titre); }
.pc-r .rappel-eval [data-note="ok"]:hover { background: var(--l-ss); border-color: var(--l-ss); color: #fff; }
.pc-r .rappel-eval [data-note="ko"]:hover { background: var(--f-valeurs); border-color: var(--f-valeurs); color: #fff; }
.pc-vide { margin: 0; color: var(--encre-douce); }
.pc-bloc { font-size: 1.1rem; margin: 1.6rem 0 .5rem; color: var(--b); }
.pc-table { width: 100%; border-collapse: collapse; font-family: var(--titre); font-size: .93rem; }
.pc-table th, .pc-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--filet); vertical-align: middle; }
.pc-table thead th { font-weight: 500; color: var(--encre-douce); font-size: .82rem; }
.pc-table tbody th { font-weight: 600; }
.pc-num { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--b); color: #fff; font-size: .8rem; margin-right: .6rem; }
.pc-vierge .pc-num { background: var(--zone); color: var(--encre-douce); }
.pc-barre { display: inline-block; width: 6rem; height: .45rem; border-radius: 999px; vertical-align: middle; margin-right: .5rem;
  background: linear-gradient(90deg, var(--b) var(--p), var(--zone) var(--p)); }
.pc-val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-local { margin-top: 1.5rem; color: var(--encre-douce); font-size: .9rem; }
.pc-effacer { font: 600 .85rem var(--titre); cursor: pointer; background: none; border: 1px solid var(--filet); border-radius: 999px; padding: .25rem .7rem; color: var(--panne); }
@media (max-width: 700px) {
  .pc-table thead { display: none; }
  .pc-table tr { display: grid; grid-template-columns: 1fr auto auto; gap: .2rem .8rem; padding: .6rem 0; border-bottom: 1px solid var(--filet); }
  .pc-table th, .pc-table td { border: 0; padding: 0; }
  .pc-table tbody th { grid-column: 1 / -1; }
  .pc-barre { width: 4rem; }
  .pc-table td[data-l]::before { content: attr(data-l) " "; color: var(--encre-douce); font-size: .8rem; }
  .pc-table tr { grid-template-columns: auto auto auto 1fr; align-items: center; }
  .pc-table td:last-child { justify-self: end; }
  .pc-chiffres dd { font-size: 1.3rem; }
  .lien-parcours { font-size: .88rem; }
}

/* ---------- Vignette de la carte Corporate Banking (pages de module CB) ---------- */
.vignette-cb { display: grid; gap: .35rem; font-family: var(--titre); }
.vc-rang, .vc-pile { display: grid; gap: .3rem; }
.vc-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.vc-colonnes.vc-trois { grid-template-columns: repeat(3, 1fr); }
.vc-case {
  display: flex; gap: .35rem; align-items: center; text-decoration: none; color: var(--encre); font-size: .74rem; line-height: 1.15;
  padding: .22rem .35rem; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--b) 35%, var(--filet)); background: var(--surface); opacity: .6;
}
.vc-case span { font-weight: 700; color: var(--b); }
.vc-case.voisin { opacity: 1; border-color: var(--b); }
.vc-case.ici { opacity: 1; background: var(--b); border-color: var(--b); color: #fff; }
.vc-case.ici span { color: #fff; }
.vc-case:hover { opacity: 1; }
.vc-etapes, .vc-enablers { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.vc-etapes { grid-template-columns: repeat(4, 1fr); }
.vc-enablers { grid-template-columns: repeat(5, 1fr); }
.vc-etapes li, .vc-enablers li {
  font-size: .66rem; line-height: 1.15; padding: .2rem .3rem; border-radius: 5px; color: var(--encre-douce);
  background: var(--surface); border: 1px dashed var(--filet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vc-etapes li.allume { color: #fff; background: var(--cb-lc); border: 1px solid var(--cb-lc); }
.vc-enablers li.allume { color: #fff; background: var(--cb-en); border: 1px solid var(--cb-en); }

/* ---------- Module en leçons (pilote) ---------- */
.lecons-js .lecon-mod:not(.active), .lecons-js .lecture > section.partie:not(.partie-active) { display: none; }
.mode-lecons .reglages-lecture { display: none; }
.mode-lecons .lecture > section.partie { margin-top: 0; }
.lecon-mod { scroll-margin-top: 5rem; }

.carte-module { margin: 0 0 1rem; border: 1px solid var(--filet); border-radius: 14px; background: var(--surface); font-family: var(--titre); }
.carte-module > summary { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; flex-wrap: wrap; padding: .85rem 1.1rem; cursor: pointer; list-style: none; }
.carte-module > summary::-webkit-details-marker { display: none; }
.carte-module > summary::before { content: "▸"; margin-right: .2rem; color: var(--encre-douce); transition: transform .15s; }
.carte-module[open] > summary::before { transform: rotate(90deg); }
.cm-titre { font-weight: 700; font-size: 1.05rem; margin-right: auto; }
.cm-resume { font-size: .85rem; color: var(--encre-douce); }
.cm-aide { margin: 0 1.1rem .6rem; font-size: .88rem; color: var(--encre-douce); }
.cm-parties { list-style: none; margin: 0; padding: 0 1.1rem 1rem; display: grid; gap: .9rem; }
.cm-partie { display: grid; gap: .35rem; }
.cm-num { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-douce); }
.cm-nom { font-weight: 650; font-size: .95rem; }
.cm-lecons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .4rem; }
.cm-lecon { width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .55rem; align-items: center; text-align: left;
  padding: .5rem .6rem; border: 1px solid var(--filet); border-radius: 10px; background: var(--fond); color: var(--encre); font: inherit; font-size: .85rem; cursor: pointer; }
.cm-lecon:hover { border-color: var(--encre-douce); }
.mode-lecons .toc a.hors-lecon { opacity: .5; }
.cm-lecon:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cm-pastille { grid-row: span 2; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--zone); }
.cm-ltitre { line-height: 1.25; }
.cm-lmin { font-size: .75rem; color: var(--encre-douce); }
.cm-lecon.faite .cm-pastille { background: var(--l-ss); color: #fff; }
.cm-lecon.courante, .cm-lecon[aria-current] { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.cm-lecon[aria-current] .cm-pastille { background: var(--encre); color: var(--surface); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.barre-lecon { position: sticky; top: 0; z-index: 20; margin: 0 0 1.4rem; padding: .55rem .8rem .5rem; background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(6px); border: 1px solid var(--filet); border-radius: 0 0 12px 12px; font-family: var(--titre); }
.bl-ligne { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.bl-carte { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1 1 14rem; background: none; border: 0; padding: 0; color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.bl-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-douce); }
.bl-titre { font-weight: 650; font-size: .95rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.bl-carte:hover .bl-titre { text-decoration: underline; }
.bl-min { font-size: .82rem; color: var(--encre-douce); white-space: nowrap; }
.bl-vitesse { display: inline-flex; border: 1px solid var(--filet); border-radius: 999px; padding: 2px; background: var(--fond); }
.bl-vitesse button { border: 0; background: none; color: var(--encre-douce); font: inherit; font-size: .8rem; padding: .3rem .65rem; border-radius: 999px; cursor: pointer; }
.bl-vitesse button[aria-checked="true"] { background: var(--encre); color: var(--surface); }
.bl-voix { display: inline-flex; gap: .3rem; }
.bl-ecouter, .bl-stop { border: 1px solid var(--filet); background: var(--fond); color: var(--encre); font: inherit; font-size: .82rem; padding: .32rem .7rem; border-radius: 999px; cursor: pointer; }
.bl-ecouter[aria-pressed="true"] { border-color: var(--encre); }
.bl-vitesse button:focus-visible, .bl-ecouter:focus-visible, .bl-stop:focus-visible, .bl-carte:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bl-progres { height: 3px; margin-top: .45rem; background: var(--zone); border-radius: 3px; overflow: hidden; }
.bl-progres span { display: block; height: 100%; background: var(--l-ss); transform-origin: left; transform: scaleX(0); transition: transform .3s; }
.bl-message { margin: 0; max-height: 0; overflow: hidden; font-size: .82rem; color: var(--encre-douce); transition: max-height .2s; }
.bl-message.vu { max-height: 2rem; margin-top: .3rem; }

.fin-lecon { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 2.5rem 0 1rem; padding-top: 1.2rem; border-top: 1px solid var(--filet); font-family: var(--titre); }
.fl-suivante { display: grid; gap: .15rem; text-align: left; padding: .9rem 1.2rem; border-radius: 14px; border: 0; background: var(--encre); color: var(--surface); font: inherit; cursor: pointer; max-width: 30rem; }
.fl-suivante:hover { filter: brightness(1.15); }
.fl-etiquette { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.fl-titre { font-weight: 650; font-size: 1.02rem; }
.fl-fin { background: var(--l-ss); }
.fl-precedente { background: none; border: 0; color: var(--encre-douce); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; }
.fl-suivante:focus-visible, .fl-precedente:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.lu-voix { background: color-mix(in srgb, var(--focus) 22%, transparent); border-radius: 4px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }

/* vitesses : Essentiel garde titres, première phrase, points clés, fil du cas, figures, simulateurs et QCM */
.v-essentiel .lecon-mod section.sec > :not(.sec-titre):not(.p-cle):not(.chapeau):not(.e-insight):not(.e-nutshell):not(.e-fil):not(.e-misconception):not(.figure):not(.simulateur):not(.labo):not(.fin-section) { display: none; }
.v-essentiel .lecon-mod section.sec > .p-cle::after { content: " …"; color: var(--encre-douce); }
.v-essentiel .encadre[data-fam="deeper"], .v-essentiel .encadre[data-fam="it"], .v-essentiel .encadre[data-fam="europe"],
.v-standard .encadre[data-fam="deeper"], .v-standard .encadre[data-fam="it"], .v-standard .encadre[data-fam="europe"] { display: none; }

@media (max-width: 760px) {
  .barre-lecon { margin-left: -.4rem; margin-right: -.4rem; padding: .5rem .6rem; }
  .bl-ligne { gap: .35rem .5rem; }
  .bl-carte { flex-basis: 100%; }
  .bl-min, .bl-ecouter .t { display: none; }
  .bl-vitesse { margin-right: auto; }
  .bl-vitesse button { padding: .28rem .5rem; font-size: .76rem; }
  .bl-ecouter, .bl-stop { padding: .28rem .6rem; }
  .cm-lecons { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .bl-progres span, .bl-message, .carte-module > summary::before { transition: none; } }

/* ---------- Lot 2 : défis, micro-interactions, épisodes ---------- */
.act { margin: 2rem 0; padding: 1.1rem 1.25rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--filet); border-left: 5px solid var(--l-cm); max-width: 46rem; font-family: var(--titre); }
.page-module .act p { margin: 0 0 .6rem; }
.act-defi { border-left-color: var(--focus); background: color-mix(in srgb, var(--focus) 7%, var(--surface)); margin-top: 0; }
.act-retour-defi { border-left-color: var(--focus); }
.act-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--encre-douce); font-weight: 700; }
.page-module .act .act-q { font-size: 1.08rem; font-weight: 650; line-height: 1.35; color: var(--encre); }
.page-module .act .act-aide { font-size: .85rem; color: var(--encre-douce); }
.act-options { display: grid; gap: .45rem; margin-top: .4rem; }
.act-option { text-align: left; padding: .65rem .85rem; border-radius: 10px; border: 1px solid var(--filet); background: var(--fond); color: var(--encre); font: inherit; font-size: .95rem; line-height: 1.35; cursor: pointer; }
.act-option:hover:not(:disabled) { border-color: var(--encre-douce); }
.act-option[aria-pressed="true"] { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.act-option.bonne { border-color: var(--l-ss); background: color-mix(in srgb, var(--l-ss) 12%, var(--surface)); }
.act-option.fausse { border-color: var(--panne); background: color-mix(in srgb, var(--panne) 10%, var(--surface)); }
.act-option:disabled { cursor: default; color: var(--encre); }
.act-liste { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .35rem; counter-reset: act; }
.act-liste li { display: flex; align-items: center; gap: .6rem; padding: .45rem .55rem .45rem .7rem; border-radius: 10px; border: 1px solid var(--filet); background: var(--fond); counter-increment: act; }
.act-liste li::before { content: counter(act); font-size: .78rem; font-weight: 700; color: var(--encre-douce); min-width: 1rem; }
.act-texte { flex: 1; font-size: .93rem; line-height: 1.3; }
.act-fleches { display: inline-flex; gap: .25rem; }
.act-fleches button { width: 2.1rem; height: 2.1rem; border-radius: 8px; border: 1px solid var(--filet); background: var(--surface); color: var(--encre); font-size: 1rem; cursor: pointer; }
.act-liste li:first-child .haut, .act-liste li:last-child .bas { visibility: hidden; }
.act-liste li.bonne, .act-paires li.bonne { border-color: var(--l-ss); background: color-mix(in srgb, var(--l-ss) 10%, var(--surface)); }
.act-liste li.fausse, .act-paires li.fausse { border-color: var(--panne); background: color-mix(in srgb, var(--panne) 8%, var(--surface)); }
.act-paires { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .45rem; }
.act-paires li { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: .4rem .8rem; align-items: center; padding: .5rem .6rem; border-radius: 10px; border: 1px solid var(--filet); background: var(--fond); }
.act-paires label { font-weight: 650; font-size: .93rem; }
.act-paires select { width: 100%; min-width: 0; padding: .45rem .5rem; border-radius: 8px; border: 1px solid var(--filet); background: var(--surface); color: var(--encre); font: inherit; font-size: .88rem; }
.act-curseur { display: flex; align-items: center; gap: 1rem; margin: .5rem 0 .2rem; }
.act-curseur input { flex: 1; accent-color: var(--l-cm); }
.act-valeur { min-width: 7.5rem; text-align: right; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.act-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.act-verifier, .act-montrer { padding: .5rem 1rem; border-radius: 999px; font: inherit; font-size: .88rem; cursor: pointer; }
.act-verifier { border: 0; background: var(--encre); color: var(--surface); }
.act-montrer { border: 1px solid var(--filet); background: var(--fond); color: var(--encre); }
.act-retour { margin-top: .8rem; padding: .7rem .85rem; border-radius: 10px; background: var(--zone); font-family: var(--texte); }
.page-module .act-retour p { margin: 0 0 .35rem; font-size: .95rem; }
.page-module .act-retour p:last-child { margin-bottom: 0; }
.act-retour.ok { background: color-mix(in srgb, var(--l-ss) 13%, var(--surface)); }
.act-retour.ko { background: color-mix(in srgb, var(--panne) 10%, var(--surface)); }
.act button:focus-visible, .act select:focus-visible, .act input:focus-visible, .episode-atelier:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.fin-lecon .episode { flex-basis: 100%; padding: 1rem 1.2rem; border-radius: 14px; background: var(--zone); }
.page-module .episode p { margin: 0; }
.episode-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--encre-douce); font-weight: 700; }
.page-module .episode .episode-texte { margin-top: .3rem; font-family: var(--texte); font-size: 1.05rem; font-style: italic; line-height: 1.45; }
.episode-atelier { display: inline-block; margin-top: .6rem; font-weight: 650; color: var(--l-cm); }

@media (max-width: 760px) {
  .act { padding: .95rem 1rem; }
  .act-paires li { grid-template-columns: 1fr; }
  .act-valeur { min-width: 5.5rem; font-size: 1rem; }
}

/* ---------- Lot 3 : textes réactifs, exercices aléatoires, frises ---------- */
.act-reactif { border-left-color: var(--l-ss); }
.page-module .act .reactif-texte { font-family: var(--texte); font-size: 1.05rem; line-height: 1.75; margin: .5rem 0 0; }
.nb-reactif { display: inline-block; padding: 0 .3rem; margin: 0 .05rem; border-radius: 6px; border-bottom: 2px dashed var(--l-ss); background: color-mix(in srgb, var(--l-ss) 12%, transparent);
  color: var(--l-ss); font-weight: 700; font-family: var(--titre); cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; font-variant-numeric: tabular-nums; }
.nb-reactif:hover, .nb-reactif.actif { background: color-mix(in srgb, var(--l-ss) 24%, transparent); }
.nb-reactif:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.nb-sortie { font-weight: 700; font-family: var(--titre); font-variant-numeric: tabular-nums; border-radius: 4px; }
.nb-sortie.flash { animation: flash-sortie .6s ease-out; }
@keyframes flash-sortie { from { background: color-mix(in srgb, var(--focus) 45%, transparent); } to { background: transparent; } }

.act-exercice { border-left-color: var(--cb-fin); }
.page-module .act .exo-enonce { font-family: var(--texte); font-size: 1.02rem; line-height: 1.55; }
.exo-saisie { display: flex; align-items: center; gap: .5rem; }
.exo-saisie input { width: 9rem; padding: .5rem .65rem; border-radius: 8px; border: 1px solid var(--filet); background: var(--fond); color: var(--encre); font: inherit; font-size: 1rem; font-variant-numeric: tabular-nums; }
.exo-saisie input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.exo-unite { color: var(--encre-douce); font-size: .92rem; }
.page-module .act .exo-compteur { margin: .6rem 0 0; }

.act-frise { border-left-color: var(--cb-cov); max-width: none; }
.frise-piste { max-width: none; list-style: none; margin: .7rem 0 0; padding: 0 0 .4rem; display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; position: relative; }
.frise-piste li { flex: 1 0 7.5rem; position: relative; }
.frise-piste li::before { content: ""; position: absolute; left: 0; right: 0; top: 1.05rem; height: 2px; background: var(--filet); }
.frise-piste li:first-child::before { left: 50%; } .frise-piste li:last-child::before { right: 50%; }
.frise-point { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 0 .3rem .2rem; border: 0; background: none; color: var(--encre); font: inherit; cursor: pointer; text-align: center; }
.frise-point::before { content: ""; width: 1rem; height: 1rem; margin-top: .55rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--encre-douce); box-sizing: border-box; z-index: 1; }
.frise-point.passe::before { background: var(--cb-cov); border-color: var(--cb-cov); }
.frise-point[aria-current]::before { width: 1.3rem; height: 1.3rem; margin-top: .4rem; background: var(--encre); border-color: var(--encre); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cb-cov) 30%, transparent); }
.frise-point:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.fp-quand { font-size: .72rem; color: var(--encre-douce); text-transform: uppercase; letter-spacing: .04em; line-height: 1.2; }
.fp-titre { font-size: .82rem; font-weight: 650; line-height: 1.2; }
.frise-point[aria-current] .fp-titre { color: var(--cb-cov); }
.frise-detail { margin-top: .8rem; padding: .9rem 1rem; border-radius: 10px; background: var(--zone); }
.page-module .frise-detail p { margin: 0 0 .35rem; }
.fd-quand { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-douce); font-weight: 700; }
.page-module .frise-detail .fd-titre { font-weight: 700; font-size: 1.05rem; }
.page-module .frise-detail .fd-texte { font-family: var(--texte); font-size: 1rem; line-height: 1.5; }
.page-module .frise-detail .fd-liens { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .5rem 0 0; font-weight: 650; font-size: .9rem; }
.act-actions button:disabled { opacity: .4; cursor: default; }
@media (prefers-reduced-motion: reduce) { .nb-sortie.flash { animation: none; } }

/* ---------- Lot 4 : jeux métiers ---------- */
.jeu { border-left-color: var(--cb-itt); max-width: 52rem; }
.page-module .jeu .jeu-intro { font-family: var(--texte); font-size: .98rem; line-height: 1.5; color: var(--encre); }
.act-retour ul { margin: .3rem 0 .4rem 1.1rem; padding: 0; font-size: .93rem; }
/* documents */
.doc-grille { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .9rem; margin-top: .4rem; }
.doc-credit, .doc { padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--filet); background: var(--fond); }
.doc-credit { border-style: dashed; }
.page-module .jeu .doc-titre { font-weight: 700; font-size: .9rem; margin: 0 0 .4rem; }
.doc-credit ul { margin: 0; padding-left: 1rem; font-size: .85rem; line-height: 1.45; }
.doc-pile { display: grid; gap: .6rem; }
.doc-champ { display: block; width: 100%; text-align: left; margin: .25rem 0 0; padding: .4rem .55rem; border-radius: 7px; border: 1px solid transparent; background: var(--surface); color: var(--encre); font: inherit; font-size: .88rem; cursor: pointer; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.doc-champ:hover:not(:disabled) { border-color: var(--encre-douce); }
.doc-champ[aria-pressed="true"] { border-color: var(--panne); box-shadow: inset 3px 0 0 var(--panne); }
.doc-champ.bonne { border-color: var(--l-ss); background: color-mix(in srgb, var(--l-ss) 12%, var(--surface)); }
.doc-champ.manque { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 16%, var(--surface)); }
.doc-champ.fausse { border-color: var(--panne); background: color-mix(in srgb, var(--panne) 10%, var(--surface)); }
.doc-champ:disabled { cursor: default; color: var(--encre); }
/* chaîne de détention */
.ch-arbre { display: grid; gap: .6rem; margin-top: .5rem; }
.ch-cible { justify-self: center; padding: .55rem 1rem; border-radius: 10px; background: var(--encre); color: var(--surface); font-weight: 700; }
.ch-zone { min-height: 4.2rem; padding: .55rem .6rem; border-radius: 12px; border: 2px dashed var(--filet); background: var(--fond); }
.ch-arbre.en-attente .ch-zone, .ch-zone.survol { border-color: var(--cb-itt); background: color-mix(in srgb, var(--cb-itt) 8%, var(--fond)); cursor: pointer; }
.page-module .jeu .ch-zone-nom { margin: 0 0 .35rem; font-size: .8rem; color: var(--encre-douce); font-weight: 650; }
.ch-places, .ch-pioche { display: flex; flex-wrap: wrap; gap: .4rem; }
.ch-pioche { margin-top: .6rem; }
.ch-carte { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .1rem; max-width: 15rem; padding: .45rem .65rem; border-radius: 10px; border: 1px solid var(--filet); background: var(--surface); color: var(--encre); font: inherit; font-size: .85rem; text-align: left; cursor: grab; user-select: none; -webkit-user-select: none; }
.ch-carte.choisie { border-color: var(--cb-itt); box-shadow: 0 0 0 2px var(--cb-itt); }
.ch-carte.placee { cursor: default; border-color: var(--l-ss); pointer-events: none; }
.ch-carte.ch-source { opacity: .35; }
.ch-fantome { position: fixed; z-index: 1000; pointer-events: none; transform: translate(-50%, -60%) rotate(-2deg); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.ch-pct { font-weight: 700; color: var(--cb-itt); font-variant-numeric: tabular-nums; }
.ch-carte.secoue { animation: secoue .35s; }
@keyframes secoue { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ch-suite { margin-top: .9rem; }
.ch-indice { margin: 0 0 .7rem; padding: .5rem .7rem; border-radius: 10px; background: var(--zone); font-size: .92rem; }
.ch-indice summary { cursor: pointer; font-weight: 650; }
.ch-ubo { display: grid; gap: .35rem; }
.ch-ubo label { padding: .45rem .6rem; border-radius: 8px; border: 1px solid var(--filet); background: var(--fond); cursor: pointer; }
.ch-ubo label.bonne { border-color: var(--l-ss); } .ch-ubo label.fausse { border-color: var(--panne); }
/* rapprochement */
.jr-barre { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .4rem 0; }
.jr-temps { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.jr-record { font-size: .85rem; color: var(--encre-douce); }
.jr-table { display: grid; gap: .35rem; margin-top: .4rem; }
.jr-entete, .jr-ligne { display: grid; grid-template-columns: 6rem 1fr 1fr 12rem; gap: .5rem; align-items: center; }
.jr-entete { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--encre-douce); padding: 0 .5rem; }
.jr-ligne { padding: .45rem .5rem; border-radius: 9px; border: 1px solid var(--filet); background: var(--fond); font-family: ui-monospace, Menlo, monospace; font-size: .84rem; }
.jr-ligne select { font: inherit; font-family: var(--titre); font-size: .82rem; padding: .35rem; border-radius: 7px; border: 1px solid var(--filet); background: var(--surface); color: var(--encre); min-width: 0; }
.jr-ligne.bonne { border-color: var(--l-ss); } .jr-ligne.fausse { border-color: var(--panne); background: color-mix(in srgb, var(--panne) 6%, var(--fond)); }
.page-module .jeu .jr-explication { grid-column: 1 / -1; margin: .2rem 0 0; font-family: var(--texte); font-size: .88rem; }
.jr-fin { margin-top: .7rem; }
/* cascade */
.page-module .jeu .jc-valeur { font-size: 1.25rem; font-weight: 700; }
.jc-pile { display: grid; gap: 4px; max-width: 26rem; margin: .5rem 0; }
.jc-tranche { position: relative; min-height: var(--h); overflow: hidden; border-radius: 8px; border: 2px solid var(--filet); background: var(--fond); color: var(--encre); font: inherit; text-align: left; padding: 0; cursor: pointer; }
.jc-tranche[aria-pressed="true"] { border-color: var(--encre); }
.jc-tranche.pivot { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 40%, transparent); }
.jc-eau { position: absolute; inset: 0; background: color-mix(in srgb, var(--f-transaction) 35%, transparent); transform: scaleY(0); transform-origin: top; transition: transform .45s ease-out; }
.jc-texte { position: relative; display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline; padding: .4rem .6rem; font-size: .86rem; }
.jc-nom { font-weight: 650; } .jc-montant { color: var(--encre-douce); } .jc-recu { flex-basis: 100%; font-weight: 700; }
.coule .jc-tranche { cursor: default; }
/* navires */
.jn-filtres { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .4rem 0; padding: .5rem .7rem; border: 1px solid var(--filet); border-radius: 10px; font-size: .88rem; }
.jn-filtres legend { font-weight: 700; font-size: .8rem; padding: 0 .3rem; }
.jn-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; }
.jn-navire { display: grid; grid-template-columns: 6.5rem 1fr; gap: .6rem; padding: .55rem; border-radius: 10px; border: 1px solid var(--filet); background: var(--fond); }
.jn-navire.bonne { border-color: var(--l-ss); } .jn-navire.fausse { border-color: var(--panne); }
.jn-carte { width: 100%; height: auto; }
.jn-mer { fill: color-mix(in srgb, var(--f-transaction) 12%, var(--surface)); } .jn-terre { fill: color-mix(in srgb, var(--encre-douce) 25%, var(--surface)); }
.jn-route { stroke: var(--encre); stroke-width: 1.2; } .jn-trou { stroke: var(--panne); stroke-width: 1.2; stroke-dasharray: 2 2; } .jn-ping { fill: var(--encre); }
.page-module .jeu .jn-nom { margin: 0; font-weight: 700; } .page-module .jeu .jn-info { margin: 0 0 .3rem; font-size: .83rem; color: var(--encre-douce); }
.page-module .jeu .jn-drapeaux { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .4rem; }
.jn-tag { font-size: .7rem; padding: .1rem .4rem; border-radius: 999px; background: var(--zone); }
.jn-navire .act-retour { margin-top: .4rem; padding: .45rem .55rem; } .page-module .jn-navire .act-retour p { font-size: .84rem; }
/* embranchements */
.jb-fil { list-style: none; display: flex; gap: .3rem; margin: 0 0 .5rem; padding: 0; }
.jb-fil button { width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid var(--filet); background: var(--fond); color: var(--encre); font: inherit; font-size: .78rem; cursor: pointer; }
.page-module .jeu .jb-texte { font-family: var(--texte); font-size: 1.02rem; line-height: 1.55; }
.jb-fin { padding: .8rem 1rem; border-radius: 12px; background: var(--zone); }
.jb-fin.note-3 { background: color-mix(in srgb, var(--l-ss) 14%, var(--surface)); } .jb-fin.note-0 { background: color-mix(in srgb, var(--panne) 10%, var(--surface)); }
.page-module .jeu .jb-etoiles { margin: 0; font-size: 1.3rem; color: var(--focus); letter-spacing: .1em; }
.page-module .jeu .jb-fin-titre { margin: .1rem 0 .3rem; font-weight: 700; font-size: 1.1rem; }
/* contre la montre */
.jt-haut { display: flex; justify-content: space-between; font-weight: 700; font-variant-numeric: tabular-nums; }
.jt-jauge { height: 6px; border-radius: 3px; background: var(--zone); overflow: hidden; margin: .35rem 0 .7rem; }
.jt-jauge span { display: block; height: 100%; background: var(--cb-itt); transform-origin: left; }
.page-module .jeu .jt-carte { min-height: 3.2rem; font-family: var(--texte); font-size: 1.08rem; line-height: 1.45; padding: .7rem .8rem; border-radius: 10px; background: var(--fond); border: 1px solid var(--filet); }
.jt-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .4rem; }
.jt-zone.flash-ok .jt-carte { animation: flash-ok .4s; } .jt-zone.flash-ko .jt-carte { animation: flash-ko .4s; }
@keyframes flash-ok { from { background: color-mix(in srgb, var(--l-ss) 30%, var(--fond)); } }
@keyframes flash-ko { from { background: color-mix(in srgb, var(--panne) 25%, var(--fond)); } }
.jeu button:focus-visible, .jeu select:focus-visible, .jeu input:focus-visible, .ch-zone:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 760px) {
  .doc-grille { grid-template-columns: 1fr; }
  .jr-entete { display: none; }
  .jr-ligne { grid-template-columns: 1fr 1fr; }
  .jr-ref { grid-column: 1 / -1; font-weight: 700; } .jr-ligne select { grid-column: 1 / -1; }
  .jn-navire { grid-template-columns: 5.5rem 1fr; }
}
@media (prefers-reduced-motion: reduce) { .jc-eau { transition: none; } .ch-carte.secoue, .jt-zone .jt-carte { animation: none; } }
.fd-etat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: .7rem 0 .2rem; }
.fd-col { padding: .55rem .65rem; border-radius: 9px; background: var(--surface); border-top: 3px solid var(--f-controle); }
.fd-systemes { border-top-color: var(--f-transaction); } .fd-soldes { border-top-color: var(--f-valeurs); } .fd-risques { border-top-color: var(--f-risque); }
.page-module .frise-detail .fd-col-titre { margin: 0 0 .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--encre-douce); }
.fd-col ul { margin: 0; padding-left: 1rem; font-size: .86rem; line-height: 1.4; }
.fd-col li.neuf { font-weight: 650; }
.fd-col li.neuf::marker { content: "● "; color: var(--focus); }
@media (max-width: 760px) { .fd-etat { grid-template-columns: 1fr; } }

/* ---------- Lot 5 : enquêtes, mécanismes animés, voix, badges ---------- */
.jeu-enquete { border-left-color: var(--f-risque); }
.je-pieces { display: grid; gap: .4rem; margin: .5rem 0; }
.je-piece { border: 1px solid var(--filet); border-radius: 10px; background: var(--fond); padding: .1rem .8rem; }
.je-piece summary { cursor: pointer; padding: .5rem 0; font-weight: 650; list-style: none; }
.je-piece summary::before { content: "📁 "; } .je-piece.lue summary::before { content: "📂 "; }
.je-piece summary::-webkit-details-marker { display: none; }
.page-module .jeu .je-piece p { margin: 0 0 .6rem; font-family: var(--texte); line-height: 1.5; }
.je-conclusions.verrou { opacity: .45; }
.page-module .jeu .je-sous { font-weight: 700; margin: .6rem 0 .4rem; }
.je-q { margin: 0 0 .6rem; padding: .5rem .7rem; border: 1px solid var(--filet); border-radius: 10px; }
.je-q legend { font-weight: 650; padding: 0 .3rem; }
.je-q label { display: block; padding: .3rem .2rem; cursor: pointer; }
.je-q.bonne { border-color: var(--l-ss); } .je-q.fausse { border-color: var(--panne); }
.je-q label.la-bonne { font-weight: 700; color: var(--l-ss); }
.jeu-anime { border-left-color: var(--f-transaction); }
.ja-scene { margin-top: .5rem; }
.ja-barres { display: grid; gap: .45rem; }
.ja-barre { display: grid; grid-template-columns: minmax(7rem, 12rem) 1fr 6.5rem; gap: .6rem; align-items: center; font-size: .88rem; }
.ja-nom { font-weight: 600; line-height: 1.2; }
.ja-piste { position: relative; height: 1.6rem; border-radius: 6px; background: var(--zone); overflow: visible; }
.ja-rempli { position: absolute; inset: 0; border-radius: 6px; background: color-mix(in srgb, var(--f-transaction) 55%, var(--surface)); transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.ja-barre.accent .ja-rempli { background: var(--f-valeurs); }
.ja-barre.accent .ja-nom { color: var(--encre); font-weight: 750; }
.ja-repere { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--encre); }
.ja-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.page-module .jeu .ja-ligne-nom { margin: .45rem 0 0; font-size: .8rem; color: var(--encre-douce); display: flex; align-items: center; gap: .4rem; }
.ja-tiret { display: inline-block; width: 0; height: 1rem; border-left: 2px dashed var(--encre); }
.page-module .jeu .ja-legende { min-height: 3rem; margin: .7rem 0 0; padding: .6rem .8rem; border-radius: 10px; background: var(--fond); font-family: var(--texte); font-size: 1rem; line-height: 1.5; }
.ja-ctl { align-items: center; } .ja-pas { font-size: .85rem; color: var(--encre-douce); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .ja-barre { grid-template-columns: 1fr 4.8rem; } .ja-nom { grid-column: 1 / -1; } .ja-piste { grid-column: 1; } }
@media (prefers-reduced-motion: reduce) { .ja-rempli { transition: none; } }
.voix-barre { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .5rem 0 .3rem; font-family: var(--titre); }
.voix-barre .act-verifier, .voix-barre .act-montrer { padding: .45rem .9rem; border-radius: 999px; font: inherit; font-size: .88rem; cursor: pointer; }
.voix-barre .act-verifier { border: 0; background: var(--encre); color: var(--surface); }
.voix-barre .act-montrer { border: 1px solid var(--filet); background: var(--fond); color: var(--encre); }
.voix-micro.ecoute { background: var(--panne); animation: pulse-micro 1.4s infinite; }
@keyframes pulse-micro { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--panne) 25%, transparent); } }
.voix-temps { font-weight: 700; font-variant-numeric: tabular-nums; } .voix-temps.depasse { color: var(--panne); }
.page-module .voix-etat { flex-basis: 100%; margin: 0; font-size: .85rem; color: var(--encre-douce); }
.cm-badge { margin: 0 1.1rem .8rem; padding: .7rem .9rem; border-radius: 12px; background: var(--zone); }
.page-module .cm-badge-titre { margin: 0 0 .4rem; font-weight: 700; }
.cm-badge ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .85rem; color: var(--encre-douce); }
.cm-badge li.ok { color: var(--encre); } .cm-badge li:not(.ok) .cm-medaille { filter: grayscale(1); opacity: .5; }
.cm-badge-val { font-variant-numeric: tabular-nums; font-weight: 650; }
@media (prefers-reduced-motion: reduce) { .voix-micro.ecoute { animation: none; } }
.pc-badge { margin-left: .35rem; }

/* ---------- Corporate Finance : couleurs de famille, encadrés France / ailleurs, vignette des prérequis ---------- */
.module-tete.b-cf-a { --c: var(--cf-a); } .module-tete.b-cf-b { --c: var(--cf-b); } .module-tete.b-cf-c { --c: var(--cf-c); } .module-tete.b-cf-d { --c: var(--cf-d); } .module-tete.b-cf-e { --c: var(--cf-e); }
.module-tete.b-cf-f { --c: var(--cf-f); } .module-tete.b-cf-g { --c: var(--cf-g); } .module-tete.b-cf-h { --c: var(--cf-h); } .module-tete.b-cf-i { --c: var(--cf-i); } .module-tete.b-cf-j { --c: var(--cf-j); }
.e-france { background: var(--surface); border: 1px solid var(--filet); border-left: 6px solid #2456c4; box-shadow: inset 6px 0 0 #fff, inset 12px 0 0 #d62839; padding-left: 1.6rem; }
.e-france .encadre-label { color: #2456c4; }
.e-ailleurs { background: var(--surface); border: 1px dashed var(--encre-douce); }
.e-ailleurs .encadre-label { color: var(--encre-douce); }
.v-essentiel .encadre[data-fam="ailleurs"], .v-essentiel .encadre[data-fam="france"] { display: none; }
.vignette-cf { display: grid; gap: .9rem; }
.vcf-flux { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .7rem; align-items: center; }
.vcf-col p { margin: 0 0 .35rem; font: 600 .78rem var(--titre); color: var(--encre-douce); text-transform: uppercase; letter-spacing: .04em; }
.vcf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.vcf-col a { display: block; padding: .35rem .55rem; border-radius: 8px; border: 1px solid var(--filet); border-left: 4px solid var(--b); background: var(--surface); color: var(--encre); text-decoration: none; font: 500 .82rem/1.25 var(--titre); }
.vcf-col a span { display: block; font-weight: 800; color: var(--b); font-size: .74rem; }
.vcf-col a:hover { border-color: var(--b); }
.vcf-vide { color: var(--encre-douce); }
.vcf-ici { width: 4.6rem; height: 4.6rem; border-radius: 999px; display: grid; place-items: center; background: var(--b); color: #fff; font: 800 1.05rem var(--titre); position: relative; }
.vcf-ici::before, .vcf-ici::after { content: "→"; position: absolute; top: 50%; transform: translateY(-50%); color: var(--encre-douce); font-size: 1rem; }
.vcf-ici::before { left: -1.05rem; } .vcf-ici::after { right: -1.05rem; }
.vcf-familles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: .25rem; }
.vcf-familles li { text-align: center; padding: .2rem 0; border-radius: 6px; font: 700 .75rem var(--titre); color: var(--b); border: 1px solid color-mix(in srgb, var(--b) 40%, transparent); }
.vcf-familles li.ici { background: var(--b); color: #fff; }

/* ---------- Laboratoires ---------- */
.labo { margin: 2rem 0; padding: 1.3rem; border-radius: 16px; background: var(--surface); border: 2px solid var(--c, var(--encre)); max-width: 62rem; }
.labo .encadre-label { color: var(--c, var(--encre)); }
.labo-bientot { border-style: dashed; border-width: 1px; }
.labo-bientot .labo-apercu { color: var(--encre-douce); font-style: italic; }
.lb-bientot { margin: .2rem 0 .4rem; font: 600 .9rem var(--titre); }
.labo-fait .lb-tete .encadre-label::after { content: " ✓"; }
.lb-titre { margin: .1rem 0 .3rem; font-size: 1.25rem; }
.lb-consigne { margin: 0 0 1rem; color: var(--encre-douce); }
.lb-grille-labo { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.lb-sans-entrees, .lb-jeu { grid-template-columns: 1fr; }
.lb-commandes { display: grid; gap: .95rem; position: sticky; top: 4.5rem; }
.lb-entree label { display: flex; justify-content: space-between; gap: .5rem; font: 500 .9rem/1.3 var(--titre); }
.lb-entree output { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-curseur input[type=range] { width: 100%; margin: .35rem 0 0; accent-color: var(--c, var(--encre)); }
.lb-libelle { margin: 0 0 .35rem; font: 500 .9rem var(--titre); }
.lb-segments { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--filet); border-radius: 10px; overflow: hidden; }
.lb-segments button { flex: 1 1 auto; padding: .45rem .6rem; border: 0; border-right: 1px solid var(--filet); background: var(--surface); color: var(--encre); font: 600 .84rem var(--titre); cursor: pointer; }
.lb-segments button:last-child { border-right: 0; }
.lb-segments button[aria-checked="true"] { background: var(--c, var(--encre)); color: #fff; }
.lb-case-l { display: flex !important; justify-content: flex-start !important; align-items: flex-start; gap: .5rem !important; cursor: pointer; }
.lb-case-l input { margin-top: .2rem; accent-color: var(--c, var(--encre)); width: 1.05rem; height: 1.05rem; }
.lb-sorties { display: grid; gap: 1rem; min-width: 0; }
.lb-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; margin: 0; }
.lb-chiffres div { background: var(--zone); border-radius: 10px; padding: .55rem .7rem; display: flex; flex-direction: column-reverse; gap: .1rem; }
.lb-chiffres dt { font: 500 .78rem/1.25 var(--titre); color: var(--encre-douce); }
.lb-chiffres dd { margin: 0; font: 800 1.2rem var(--titre); font-variant-numeric: tabular-nums; }
.lb-chiffres .lb-grand dd { font-size: 1.6rem; }
.lb-chiffres .lb-bon { background: color-mix(in srgb, #0d8467 14%, var(--surface)); } .lb-chiffres .lb-bon dd { color: #0d8467; }
.lb-chiffres .lb-mauvais { background: color-mix(in srgb, #d62839 12%, var(--surface)); } .lb-chiffres .lb-mauvais dd { color: #c1272d; }
.lb-graphe { min-width: 0; }
.lb-graphe-titre { margin: 0 0 .3rem; font: 600 .88rem var(--titre); color: var(--encre-douce); }
.lb-svg { width: 100%; height: auto; display: block; overflow: visible; }
.lb-grille { stroke: var(--filet); stroke-width: 1; }
.lb-zero { stroke: var(--encre-douce); stroke-width: 1.4; }
.lb-tick { font: 500 12px var(--titre); fill: var(--encre-douce); }
.lb-cat { font-size: 12.5px; fill: var(--encre); }
.lb-axe { font: 600 12.5px var(--titre); fill: var(--encre-douce); }
.lb-val { font: 700 12.5px var(--titre); fill: var(--encre); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.lb-ligne { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.lb-pointille { stroke-dasharray: 6 5; }
.lb-c0 { stroke: var(--c, #2456c4); fill: var(--c, #2456c4); } .lb-c1 { stroke: var(--encre); fill: var(--encre); } .lb-c2 { stroke: #0b84a5; fill: #0b84a5; }
.lb-c3 { stroke: #7b3f9e; fill: #7b3f9e; } .lb-c4 { stroke: #b77d00; fill: #b77d00; } .lb-c5 { stroke: #5f6b80; fill: #5f6b80; }
.lb-ligne.lb-c0, .lb-ligne.lb-c1, .lb-ligne.lb-c2, .lb-ligne.lb-c3, .lb-ligne.lb-c4, .lb-ligne.lb-c5 { fill: none; }
.lb-marque { stroke: var(--encre); stroke-width: 1.5; stroke-dasharray: 4 4; }
.lb-point { stroke: var(--surface); stroke-width: 2.5; }
.lb-point-cle { fill: var(--surface); stroke: var(--encre); stroke-width: 3; }
.lb-bande { fill: color-mix(in srgb, var(--encre) 6%, transparent); }
.lb-bande.lb-bon { fill: color-mix(in srgb, #0d8467 12%, transparent); } .lb-bande.lb-mauvais { fill: color-mix(in srgb, #d62839 10%, transparent); }
.lb-bande-txt { font: 600 12px var(--titre); fill: var(--encre-douce); }
.lb-barre { fill: var(--c, #2456c4); }
.lb-barre.lb-f1 { fill: var(--encre-douce); } .lb-barre.lb-f2 { fill: #0b84a5; } .lb-barre.lb-f3 { fill: #7b3f9e; }
.lb-barre.lb-neg, .lb-barre.lb-mauvais, .lb-baisse { fill: #d62839; }
.lb-barre.lb-bon, .lb-hausse { fill: #0d8467; }
.lb-total { fill: var(--encre); }
.lb-barre.lb-neutre { fill: var(--encre-douce); }
.lb-lien { stroke: var(--encre-douce); stroke-dasharray: 3 3; }
.lb-seuil { stroke: #d62839; stroke-width: 2; stroke-dasharray: 7 4; }
.lb-seuil-txt { font: 700 12px var(--titre); fill: #d62839; }
.lb-legende { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font: 500 .82rem var(--titre); color: var(--encre-douce); }
.lb-legende i { display: inline-block; width: 1.1rem; height: 0; border-top: 3px solid; vertical-align: middle; margin-right: .35rem; }
.lb-legende i.lb-c0 { border-color: var(--c, #2456c4); } .lb-legende i.lb-c1 { border-color: var(--encre); } .lb-legende i.lb-c2 { border-color: #0b84a5; }
.lb-legende i.lb-c3 { border-color: #7b3f9e; } .lb-legende i.lb-c4 { border-color: #b77d00; } .lb-legende i.lb-c5 { border-color: #5f6b80; }
.lb-legende i.lb-pointille { border-top-style: dashed; }
.lb-legende i.lb-cf0 { height: .7rem; border: 0; background: var(--c, #2456c4); } .lb-legende i.lb-cf1 { height: .7rem; border: 0; background: var(--encre-douce); }
.lb-legende i.lb-cf2 { height: .7rem; border: 0; background: #0b84a5; } .lb-legende i.lb-cf3 { height: .7rem; border: 0; background: #7b3f9e; }
.lb-chaleur-cadre, .lb-tableau-cadre { overflow-x: auto; }
.lb-chaleur { border-collapse: separate; border-spacing: 3px; font: 600 .82rem var(--titre); font-variant-numeric: tabular-nums; }
.lb-chaleur th { padding: .3rem .45rem; color: var(--encre-douce); font-weight: 600; white-space: nowrap; }
.lb-chaleur td { padding: .4rem .5rem; text-align: center; border-radius: 6px; white-space: nowrap;
  background: color-mix(in srgb, #d62839 calc((1 - var(--t)) * 70%), color-mix(in srgb, #0d8467 calc(var(--t) * 70%), var(--surface))); }
.lb-chaleur td.lb-sur { outline: 3px solid var(--encre); outline-offset: -1px; }
.lb-chaleur td.lb-vide { background: var(--zone); color: var(--encre-douce); }
.lb-tableau { border-collapse: collapse; width: 100%; font: 500 .86rem var(--titre); font-variant-numeric: tabular-nums; }
.lb-tableau th, .lb-tableau td { padding: .38rem .55rem; border-bottom: 1px solid var(--filet); text-align: right; white-space: nowrap; }
.lb-tableau th:first-child, .lb-tableau tbody th { text-align: left; white-space: normal; font-weight: 500; }
.lb-tableau thead th { font-weight: 700; color: var(--encre-douce); }
.lb-tableau tr.lb-sur { background: color-mix(in srgb, var(--c, #2456c4) 12%, transparent); font-weight: 800; }
.lb-tableau tr.lb-sur th { font-weight: 800; }
.lb-tableau tr.lb-barree { color: var(--encre-douce); text-decoration: line-through; }
.lb-neg-t { color: #c1272d; }
.lb-verdict { margin: 0; padding: .7rem .9rem; border-radius: 10px; background: var(--zone); font: 600 .95rem/1.4 var(--titre); }
.lb-verdict.lb-bon { background: color-mix(in srgb, #0d8467 14%, var(--surface)); } .lb-verdict.lb-mauvais { background: color-mix(in srgb, #d62839 12%, var(--surface)); }
.lb-verdict:empty { display: none; }
.lb-note { margin: .3rem 0 0; font: 500 .8rem var(--titre); color: var(--encre-douce); }
.lb-pied { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-start; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--filet); }
.lb-reset { padding: .4rem .8rem; border-radius: 8px; border: 1px solid var(--filet); background: var(--surface); color: var(--encre); font: 600 .84rem var(--titre); cursor: pointer; }
.lb-decouverte { flex: 1 1 18rem; }
.lb-decouverte summary { cursor: pointer; font: 700 .9rem var(--titre); color: var(--c, var(--encre)); }
.lb-decouverte p { margin: .5rem 0 0; padding: .7rem .9rem; border-radius: 10px; background: color-mix(in srgb, var(--c, #2456c4) 9%, var(--surface)); }
/* tri et classement */
.lb-aide { margin: 0 0 .6rem; font: 500 .86rem var(--titre); color: var(--encre-douce); }
.lb-pioche { display: flex; flex-wrap: wrap; gap: .45rem; min-height: 3rem; padding: .5rem; border-radius: 12px; background: var(--zone); margin-bottom: .8rem; }
.lb-bacs { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .7rem; }
.lb-bac { border: 2px dashed var(--filet); border-radius: 12px; padding: .55rem; min-height: 6rem; transition: border-color .15s, background .15s; cursor: pointer; }
.lb-bac.survol { border-color: var(--c, var(--encre)); background: var(--zone); }
.lb-bac-titre { margin: 0 0 .45rem; font: 700 .85rem var(--titre); }
.lb-bac-cartes { display: grid; gap: .4rem; }
.lb-carte { text-align: left; padding: .45rem .65rem; border-radius: 9px; border: 1px solid var(--filet); background: var(--surface); color: var(--encre); font: 500 .86rem/1.3 var(--titre); cursor: grab; box-shadow: 0 1px 2px rgba(15, 25, 45, .08); }
.lb-carte.choisie { outline: 3px solid var(--focus); }
.lb-carte.ok { border-color: #0d8467; background: color-mix(in srgb, #0d8467 12%, var(--surface)); }
.lb-carte.ko { border-color: #d62839; background: color-mix(in srgb, #d62839 10%, var(--surface)); }
.lb-carte-pq { display: block; margin-top: .3rem; font-size: .8rem; color: var(--encre-douce); }
.lb-tri-actions { margin: .8rem 0 0; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.lb-tri-score { font: 700 .9rem var(--titre); }
.lb-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; counter-reset: lb; }
.lb-item { counter-increment: lb; display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; border: 1px solid var(--filet); background: var(--surface); cursor: grab; }
.lb-item::before { content: counter(lb); width: 1.6rem; height: 1.6rem; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--zone); font: 800 .8rem var(--titre); }
.lb-item.ok { border-color: #0d8467; } .lb-item.ok::before { background: #0d8467; color: #fff; }
.lb-item.ko { border-color: #d62839; } .lb-item.ko::before { background: #d62839; color: #fff; }
.lb-item-txt { flex: 1; font: 500 .9rem/1.3 var(--titre); }
.lb-item-info { display: block; font-size: .8rem; color: var(--encre-douce); margin-top: .15rem; }
.lb-fleches { display: flex; gap: .25rem; }
.lb-fleches button { width: 1.9rem; height: 1.9rem; border-radius: 7px; border: 1px solid var(--filet); background: var(--surface); color: var(--encre); cursor: pointer; }
.lb-fleches button:disabled { opacity: .3; cursor: default; }
/* fiche Harmony */
.lb-fiche { width: min(1100px, 96vw); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: var(--fond); color: var(--encre); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); --c: var(--cf-a); }
.lb-fiche::backdrop { background: rgba(10, 16, 28, .55); }
.lb-fiche-tete { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; background: var(--fond); border-bottom: 1px solid var(--filet); }
.lb-fiche-tete p { margin: 0; font: 800 1rem var(--titre); }
.lb-fiche-tete .fermer { width: 2.2rem; height: 2.2rem; border-radius: 999px; border: 1px solid var(--filet); background: var(--surface); color: var(--encre); font-size: 1.3rem; cursor: pointer; }
.lb-fiche-corps { margin: 1rem; max-width: none; }
.lb-flottant { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; padding: .6rem 1rem; border-radius: 999px; border: 0; background: var(--cf-a); color: #fff; font: 700 .9rem var(--titre); box-shadow: 0 8px 24px rgba(15, 25, 45, .25); cursor: pointer; }
.lb-flottant:hover { filter: brightness(1.08); }
@media (max-width: 760px) {
  .lb-grille-labo { grid-template-columns: 1fr; }
  .lb-commandes { position: static; }
  .labo { padding: 1rem; margin-inline: -.25rem; }
  .vcf-flux { grid-template-columns: 1fr; }
  .vcf-ici { justify-self: center; } .vcf-ici::before, .vcf-ici::after { display: none; }
  .lb-flottant { bottom: 4.6rem; }
}
.page-module.fam-cf-a { --c: var(--cf-a); }
.page-module.fam-cf-b { --c: var(--cf-b); }
.page-module.fam-cf-c { --c: var(--cf-c); }
.page-module.fam-cf-d { --c: var(--cf-d); }
.page-module.fam-cf-e { --c: var(--cf-e); }
.page-module.fam-cf-f { --c: var(--cf-f); }
.page-module.fam-cf-g { --c: var(--cf-g); }
.page-module.fam-cf-h { --c: var(--cf-h); }
.page-module.fam-cf-i { --c: var(--cf-i); }
.page-module.fam-cf-j { --c: var(--cf-j); }
.lb-tri, .lb-classement { margin: 0 0 1.2rem; }
.lb-tri .lb-bacs { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
/* exercices chiffrés corrigés automatiquement */
.exo-auto { margin: .9rem 0; padding: .9rem 1rem; border-radius: 12px; background: color-mix(in srgb, var(--c) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.exo-auto-titre { margin: 0 0 .6rem; font: 700 .9rem var(--titre); color: var(--c); }
.exo-auto ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .8rem; }
.exo-etape label { display: block; font: 500 .92rem/1.35 var(--titre); margin-bottom: .35rem; }
.exo-saisie { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.exo-saisie input { width: 8.5rem; padding: .45rem .6rem; border-radius: 8px; border: 1px solid var(--filet); background: var(--surface); color: var(--encre); font: 600 1rem var(--titre); font-variant-numeric: tabular-nums; }
.exo-saisie .bouton { padding: .45rem .9rem; font-size: .88rem; }
.exo-unite { font: 600 .88rem var(--titre); color: var(--encre-douce); }
.exo-retour { margin: .35rem 0 0; font: 500 .88rem/1.4 var(--titre); }
.exo-retour:empty { display: none; }
.exo-etape.ok input { border-color: #0d8467; background: color-mix(in srgb, #0d8467 10%, var(--surface)); }
.exo-etape.ok .exo-retour strong { color: #0d8467; }
.exo-etape.ko:not(.ok) input { border-color: #d62839; }
.exo-etape.ko:not(.ok) .exo-retour strong { color: #c1272d; }
.exo-etape.verrou { opacity: .45; pointer-events: none; }
.exo-voir { margin-left: .3rem; padding: .15rem .5rem; border-radius: 6px; border: 1px solid var(--filet); background: var(--surface); color: var(--encre); font: 600 .8rem var(--titre); cursor: pointer; }
.exo-fini .exo-auto-titre::after { content: " ✓"; }
/* formules à termes cliquables */
.formules { margin: 1.2rem 0 1.6rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--filet); max-width: 52rem; }
.formules .encadre-label { color: var(--c); }
.fm-aide { margin: .1rem 0 .8rem; font: 500 .85rem var(--titre); color: var(--encre-douce); }
.fm { padding: .7rem 0; border-top: 1px solid var(--filet); }
.fm:first-of-type { border-top: 0; }
.fm-nom { margin: 0 0 .35rem; font: 700 .92rem var(--titre); }
.fm-expr { margin: 0; font: 500 1.08rem/2 var(--titre); }
.fm-op { white-space: pre-wrap; }
.fm-terme { margin: 0 .05rem; padding: .05rem .4rem; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 8%, var(--surface)); color: var(--encre); font: 700 1rem var(--titre); cursor: pointer; }
.fm-terme[aria-expanded="true"] { background: var(--c); color: #fff; border-color: var(--c); }
.fm-detail { margin: .5rem 0 0; padding: .55rem .75rem; border-radius: 9px; background: var(--zone); font: 500 .9rem/1.4 var(--titre); }
.fm-harmony { display: inline-block; margin-left: .3rem; padding: .05rem .5rem; border-radius: 999px; background: var(--cf-a); color: #fff; font-weight: 700; font-size: .82rem; }
.fm-note { margin: .4rem 0 0; font: 500 .85rem var(--titre); color: var(--encre-douce); }
/* carnet du directeur financier */
.lb-carnet { margin: 0 1rem 1.2rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--filet); }
.lb-carnet h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.lb-carnet-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.lb-carnet-liste li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .5rem .7rem; border-radius: 9px; background: var(--zone); font: 500 .9rem var(--titre); }
.lb-carnet-liste a { color: var(--encre); text-decoration: none; }
.lb-carnet-mod { display: inline-block; margin-right: .45rem; font-weight: 800; color: var(--cf-a); }
.lb-carnet-vide { margin: 0; color: var(--encre-douce); font: 500 .9rem var(--titre); }
