/* Formation : parcours, leçon, quiz — porté de maquettes/premium-v2/styles.css (rem, contraste, backdrop-filter limité aux onglets et aux feuilles) */
/* ——— Formation ——— */
.progression { height: 6px; margin-top: 14px; border-radius: 99px; background: rgba(157, 176, 224, .1); overflow: hidden; }
.progression span { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #C98A32, var(--ambre)); transform-origin: left; transform: scaleX(var(--p)); box-shadow: 0 0 12px rgba(242, 180, 90, .5); }
.ecran.joue .progression span { animation: remplit 1.4s var(--sortie) .3s backwards; }
@keyframes remplit { from { transform: scaleX(0); } }
.reprendre {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(80% 70% at 0% 0%, rgba(242, 180, 90, .12), transparent 60%), var(--grain, none), linear-gradient(180deg, #17223D, #111A30);
}
.rp-schema { display: block; border-radius: 16px; overflow: hidden; background: rgba(5, 9, 19, .5); box-shadow: inset 0 0 0 1px var(--filet); }
.rp-texte { display: grid; gap: 3px; }
.rp-lib { font-size: 0.75rem; font-weight: 560; color: var(--ambre); }
.rp-titre { font-size: 1.0313rem; font-weight: 620; letter-spacing: -.012em; line-height: 1.25; }
.rp-sous { font-size: 0.7813rem; color: var(--brume); }
.schema-range { width: 100%; height: auto; }
.schema-range .sr-t { font-size: 0.6563rem; fill: var(--brume); font-family: inherit; }
.schema-range.mini .sr-t { display: none; }
.modules { overflow: hidden; }
.module { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 13px 14px; position: relative; }
.module + .module::before { content: ""; position: absolute; top: 0; left: 66px; right: 0; height: 1px; background: var(--filet); }
.module b { display: block; font-weight: 560; font-size: 0.9063rem; line-height: 1.3; }
.module small { display: block; font-size: 0.7813rem; color: var(--brume); margin-top: 2px; }
.module .chev { width: 16px; height: 16px; color: var(--brume); }
.mod-prog { position: relative; width: 38px; height: 38px; display: grid; place-items: center; font-size: 0.8125rem; font-weight: 640; color: var(--brume); }
.mod-prog svg.prog { position: absolute; inset: 0; }
.mod-prog > span { position: relative; }
.mod-prog > span svg { width: 16px; height: 16px; }
.prog-piste { fill: none; stroke: rgba(157, 176, 224, .12); stroke-width: 2.5; }
.prog-arc { fill: none; stroke: var(--ambre); stroke-width: 2.5; stroke-linecap: round; }
.mod-prog.fini { color: #0A1020; }
.mod-prog.fini::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ambre); }
.mod-prog.encours { color: var(--ambre); }

/* Leçon */
.lecon-tete .petit { margin: 0; }
.lecon-tete .titre { margin-top: 6px; }
.lecon-meta { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 0.8125rem; color: var(--brume); }
.lecon-meta svg { width: 15px; height: 15px; }
.lecon { margin-top: 18px; }
.lecon > p { font-size: 1rem; line-height: 1.62; color: #D6DDEB; margin: 0 0 14px; max-width: 62ch; }
.lecon > .chapeau { font-size: 1.0938rem; line-height: 1.55; color: var(--porcelaine); }
.lecon h2 { font-size: 1.1875rem; font-weight: 620; font-stretch: 108%; letter-spacing: -.015em; margin: 28px 0 10px; }
.schema { margin: 18px 0 8px; padding: 14px 12px 12px; }
figcaption { font-size: 0.7813rem; color: var(--brume); margin-top: 10px; line-height: 1.45; }
.criteres { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.criteres li { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 0.9375rem; line-height: 1.5; color: #D6DDEB; }
.criteres svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: var(--ambre); background: var(--ambre-doux); }
.capture { margin: 26px 0 0; }
.capture-cadre { position: relative; padding: 10px 10px 12px; border-radius: 26px; background: linear-gradient(180deg, #1A2542, #0D1528); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 50px -30px rgba(0, 0, 0, .95); }
.capture-barre { display: flex; justify-content: center; padding: 2px 0 10px; }
.capture-barre span { width: 64px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.capture-contenu { padding: 12px; border-radius: 18px; background: var(--encre); box-shadow: inset 0 0 0 1px var(--filet); }
.capture-contenu .section-tete { margin-bottom: 10px; }
.capture-contenu .section-tete h2 { font-size: 0.9375rem; margin: 0; }
.capture .ml-texte { margin-left: 50px; }
.piege { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 26px; padding: 15px 16px; border-radius: var(--r-l); background: rgba(255, 122, 134, .06); box-shadow: inset 0 0 0 1px rgba(255, 122, 134, .24); }
.piege > svg { width: 20px; height: 20px; color: var(--corail); margin-top: 1px; }
.piege b { font-weight: 640; color: #FFC2C8; }
.piege p { margin: 4px 0 0; font-size: 0.9063rem; line-height: 1.5; color: #E6CDD2; }

/* Quiz */
.quiz-etapes { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; margin: 6px 0 10px; }
.quiz-etapes span { height: 4px; border-radius: 99px; background: rgba(157, 176, 224, .14); }
.quiz-etapes .fait { background: var(--ambre); }
.quiz-etapes .courant { background: linear-gradient(90deg, var(--ambre) 50%, rgba(157, 176, 224, .14) 50%); }
.quiz-question { font-size: 1.375rem; font-weight: 600; font-stretch: 106%; letter-spacing: -.018em; line-height: 1.32; margin: 10px 0 0; }
.quiz-choix { display: grid; gap: 10px; margin-top: 22px; }
.choix { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; width: 100%; padding: 15px 16px; border-radius: var(--r-l); transition: box-shadow .25s, background .25s, transform var(--ressort-vif-d) var(--ressort-vif); }
.choix b { display: block; font-weight: 620; font-size: 1rem; }
.choix small { display: block; font-size: 0.8125rem; color: var(--brume); margin-top: 2px; }
.choix-marque { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--filet-2); position: relative; transition: box-shadow .2s; }
.choix-marque::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--porcelaine); transform: scale(0); transition: transform var(--ressort-vif-d) var(--ressort-vif); }
.choix[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px rgba(232, 237, 247, .55); }
.choix[aria-checked="true"] .choix-marque { box-shadow: inset 0 0 0 1.5px var(--porcelaine); }
.choix[aria-checked="true"] .choix-marque::after { transform: scale(1); }
.choix.bonne { background: linear-gradient(180deg, rgba(79, 224, 166, .12), rgba(79, 224, 166, .05)); box-shadow: inset 0 0 0 1.5px rgba(79, 224, 166, .6); }
.choix.bonne .choix-marque { box-shadow: none; background: var(--jade); }
.choix.bonne .choix-marque::after { background: #0A1020; inset: 7px; transform: scale(1); }
.choix.fausse { background: rgba(255, 122, 134, .07); box-shadow: inset 0 0 0 1.5px rgba(255, 122, 134, .55); }
.choix.fausse .choix-marque { box-shadow: none; background: var(--corail); }
.choix.fausse .choix-marque::after { background: #0A1020; }
.choix[aria-disabled="true"]:not(.bonne):not(.fausse) { opacity: .5; }
.quiz-retour { margin-top: 16px; }
.retour-quiz { padding: 16px; border-radius: var(--r-l); background: var(--grain, none), linear-gradient(180deg, #17223D, #111A30); box-shadow: inset 0 0 0 1px rgba(242, 180, 90, .25); }
.rq-tete { display: flex; align-items: center; gap: 12px; }
.rq-tete b { font-size: 1rem; font-weight: 640; }
.retour-quiz.ok .rq-tete b { color: var(--jade); }
.retour-quiz.ko .rq-tete b { color: #FFB3BA; }
.retour-quiz .voix { margin-top: 12px; font-size: 1.0625rem; color: #DCE3F0; }


/* Refonte : blocs de leçon rendus par formation/rendu.js, objectifs, « lue », voisines, verrou */
.lecon h3 { font-size: 1.0313rem; font-weight: 620; letter-spacing: -.01em; margin: 22px 0 8px; }
.lecon > ul, .lecon > ol { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 8px; font-size: 0.9688rem; line-height: 1.55; color: #D6DDEB; max-width: 62ch; }
.lecon li::marker { color: var(--ambre); }
.lecon blockquote { margin: 18px 0; padding: 4px 0 4px 16px; border-left: 2px solid var(--ambre); font-size: 1.0313rem; line-height: 1.55; color: var(--porcelaine); }
.lecon code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .875em; padding: 1px 5px; border-radius: 6px; background: rgba(157, 176, 224, .1); }
.lecon pre { margin: 14px 0; padding: 12px 14px; border-radius: var(--r-m); background: rgba(5, 9, 19, .6); box-shadow: inset 0 0 0 1px var(--filet); overflow-x: auto; }
.lecon pre code { padding: 0; background: none; font-size: 0.8125rem; line-height: 1.55; white-space: pre; }
.lecon strong { font-weight: 640; color: var(--porcelaine); }
.lecon .lien-lecon { color: var(--ambre); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lecon .lien-lecon svg { width: 13px; height: 13px; vertical-align: -1px; margin-left: 2px; }
.lecon hr { border: 0; height: 1px; background: var(--filet); margin: 24px 0; }
.lecon > p, .lecon > ul, .lecon > ol, .lecon > blockquote { content-visibility: auto; contain-intrinsic-size: auto 72px; }
.tableau-lecon { margin: 16px 0; overflow-x: auto; border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--filet); }
.tableau-lecon table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.tableau-lecon th, .tableau-lecon td { padding: 10px 12px; text-align: left; vertical-align: top; }
.tableau-lecon th { font-weight: 600; font-size: 0.75rem; letter-spacing: .02em; color: var(--brume); border-bottom: 1px solid var(--filet); }
.tableau-lecon tr + tr td { border-top: 1px solid var(--filet); }
.schema img, .capture-image img { display: block; width: 100%; height: auto; }
.capture-image { border-radius: 18px; overflow: hidden; background: var(--encre); box-shadow: inset 0 0 0 1px var(--filet); }
.schema.a-reveler img { clip-path: inset(0 100% 0 0); }
.schema.a-reveler.revele img { clip-path: inset(0 0 0 0); transition: clip-path 1.8s cubic-bezier(.3, .8, .3, 1); }
.reduit .schema.a-reveler img { clip-path: none; transition: none; }
.lecon aside.retenir, .lecon aside.attention { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 22px 0; padding: 15px 16px; border-radius: var(--r-l); }
.lecon aside > svg { width: 20px; height: 20px; margin-top: 1px; }
.lecon aside .encadre-lib { display: block; font-weight: 640; margin-bottom: 2px; }
.lecon aside p { margin: 4px 0 0; font-size: 0.9063rem; line-height: 1.5; }
.lecon aside.retenir { background: rgba(242, 180, 90, .07); box-shadow: inset 0 0 0 1px rgba(242, 180, 90, .28); }
.lecon aside.retenir > svg, .lecon aside.retenir .encadre-lib { color: var(--ambre); }
.lecon aside.retenir p { color: #E9DFCB; }
.lecon aside.attention { background: rgba(255, 122, 134, .06); box-shadow: inset 0 0 0 1px rgba(255, 122, 134, .28); }
.lecon aside.attention > svg { color: var(--corail); }
.lecon aside.attention .encadre-lib { color: #FFC2C8; }
.lecon aside.attention p { color: #E6CDD2; }
.objectifs { margin-top: 18px; padding: 16px; }
.objectifs h2 { font-size: 0.875rem; font-weight: 600; color: var(--brume); margin: 0 0 12px; }
.lecon-lue { margin: 26px 0 0; display: flex; justify-content: center; }
.lue-etat { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 560; color: var(--jade); }
.lue-etat svg, .lecon-lue .bouton svg { width: 16px; height: 16px; }
.lecon-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.rp-schema img { display: block; width: 100%; height: auto; }
.rp-schema.livre { display: grid; place-items: center; aspect-ratio: 16 / 10; color: var(--ambre); }
.rp-schema.livre svg { width: 34px; height: 34px; }
.fin-parcours { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 20px 0 0; padding: 14px 16px; font-size: 0.9063rem; line-height: 1.45; }
.fin-parcours svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: var(--jade); background: var(--jade-doux); }
button.module { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; }
.module.verrouille b { color: var(--porcelaine-2); }
.mod-prog.verrou > span svg, .module.verrouille .chev { width: 15px; height: 15px; }
.choix { text-align: left; font: inherit; color: inherit; }
.niveau-sous { margin: -6px 0 12px; font-size: var(--t-meta); line-height: 1.4; color: var(--brume); }
