/* Schémas animés (static/schema.js, static/anims.js). Les règles sont celles de l'ancienne feuille ; ses variables sont branchées ici sur les jetons du kit. */
.schema { --accent: var(--encre-ambre); --bg: var(--fond); --bg-alt: var(--encre-nuit-voile); --text: var(--texte); --muted: var(--texte-second); --rule: color-mix(in srgb, var(--encre-ciel) 30%, transparent); --font: var(--police-texte); --font-ui: var(--police-texte); --font-mono: var(--police-texte); --s3: var(--w-6); max-width: none; }
/* Schéma animé (static/schema.js) : un compteur va de janvier 2021 à février 2026, et chaque tâche que l'IA sait faire seule
   se remplit comme de l'eau, son pastille passe de l'humain à l'IA, et le flux coule sur les flèches dont les deux bouts sont couverts.
   Les dates vivent dans data-m (mois depuis janvier 2021) ; le générateur est outils/schema_ia.py, dans le dossier parent. */
.schema { margin: var(--w-8) 0 0; max-width: 54rem; }
.schema-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.schema-titre { margin: 0; font: 600 0.95rem/1.3 var(--font-ui); }
.schema-date { display: block; min-width: 5.2em; font: italic 500 2rem/1.15 var(--font); color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.schema-outils { display: flex; flex-direction: column; gap: 0.2rem; }
.schema-outils button { display: flex; align-items: center; gap: 0.4rem; font: 0.75rem var(--font-ui); color: var(--muted); background: none; border: 1px solid transparent; border-radius: 4px; padding: 0.1rem 0.45rem; cursor: pointer; text-align: left; }
.schema-outils button svg { width: 16px; height: 16px; fill: var(--text); }
.schema-outils button[aria-pressed="true"] { color: var(--text); border-color: var(--rule); background: var(--bg-alt); }
.schema-frise { position: relative; height: 1.6rem; margin: 0.6rem 0 0.2rem; border-top: 1px solid var(--rule); }
.schema-barre { position: absolute; top: -2px; left: 0; height: 3px; width: 100%; transform: scaleX(var(--p, 1)); transform-origin: left; background: var(--accent); }
.schema-frise .an { position: absolute; top: 0.25rem; transform: translateX(-50%); font: 0.7rem var(--font-ui); color: var(--muted); }
.schema-frise .an:nth-child(2) { transform: none; }
.schema-frise .an:last-child { transform: translateX(-100%); }
.schema-dessin { overflow-x: auto; }
.schema svg { display: block; }
.schema-dessin svg { width: 100%; min-width: 30rem; height: auto; }
.schema text { fill: var(--text); font: 12px var(--font-ui); text-anchor: middle; }
.schema text.col { fill: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.schema .n > rect { fill: var(--bg-alt); stroke: var(--rule); stroke-width: 1.5; }
.schema .n > .eau { fill: color-mix(in oklch, var(--accent) 45%, var(--bg-alt)); stroke: none; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform 1.6s cubic-bezier(.45,0,.25,1); }
.schema .n.on > .eau { transform: scaleY(1); }
.schema .badge circle { fill: var(--bg); stroke: var(--muted); stroke-width: 1; }
.schema .badge use { transition: opacity 0.6s; }
.schema .badge .h, .schema .pict use[href="#ico-humain"] { fill: var(--text); }
.schema .badge .ia, .schema .n.on .badge .h { opacity: 0; }
.schema .n.on .badge .ia { opacity: 1; }
.schema .liens path { stroke: var(--muted); fill: none; marker-end: url(#fleche); }
.schema .liens .retour { stroke-dasharray: 4 4; }
.schema marker path { fill: var(--muted); }
.schema .flux path { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.45,0,.25,1); }
.schema .flux path.on { stroke-dashoffset: 0; }
.schema figcaption { font: 0.8rem var(--font-ui); color: var(--muted); margin-top: 0.3rem; }
.schema .pict { display: inline-block; width: 0.9em; height: 0.9em; vertical-align: -0.1em; }

/* Animations dessinées par static/anims.js (relecture, banc), même habillage que le schéma. */
.schema-etape { display: block; font: 0.8rem var(--font-ui); color: var(--muted); }
.schema text.gauche { text-anchor: start; }
.schema .rail { stroke: var(--rule); stroke-dasharray: 2 4; }
.schema .filtre rect { fill: var(--bg-alt); stroke: var(--muted); transition: fill 0.25s, stroke 0.25s; }
.schema .filtre.h rect { fill: var(--muted); stroke: none; }
.schema .filtre.c rect { fill: var(--text); stroke: none; }
.schema .filtre .case { fill: var(--text); stroke: none; opacity: 0.85; }
.schema .filtre .case.trou { fill: none; stroke: var(--muted); stroke-width: 0.8; stroke-dasharray: 1.5 1.5; opacity: 0.7; }
.schema .filtre .case.pris { fill: var(--accent); opacity: 1; }
.schema .carte { fill: var(--bg-alt); stroke: var(--rule); }
.schema .carte.ideal { fill: color-mix(in oklch, var(--accent) 8%, var(--bg-alt)); stroke: color-mix(in oklch, var(--accent) 55%, transparent); }
.schema text.ligne-nom { font-size: 12px; font-weight: 600; }
.schema text.ligne-nom.fort { fill: var(--accent); }
.schema text.sous-titre { font-size: 10.5px; fill: var(--muted); }
.schema text.chiffre { font-size: 11.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.schema text.chiffre.alerte { fill: var(--accent); font-weight: 600; }
.schema .qui { fill: var(--muted); }
.schema .filtre text { font-size: 10.5px; }
.schema .filtre.pris rect { stroke: var(--accent); fill: color-mix(in oklch, var(--accent) 25%, var(--bg-alt)); }
.schema .filtre.h.pris rect, .schema .filtre.c.pris rect { fill: var(--accent); }
.schema text.voie { font-size: 11.5px; }
.schema text.voie.fort { font-weight: 600; fill: var(--accent); }
.schema text.cout { font-size: 10.5px; fill: var(--muted); }
.schema .ideal { fill: color-mix(in oklch, var(--accent) 8%, transparent); stroke: color-mix(in oklch, var(--accent) 35%, transparent); }
.schema .bac, .schema .fichier { fill: var(--bg-alt); stroke: var(--rule); }
.schema .compte { font: italic 600 18px var(--font); fill: var(--accent); }
.schema .bug { fill: var(--accent); }
.schema .ligne { fill: var(--muted); opacity: 0; transition: opacity 0.3s; }
.schema .ligne.on { opacity: 0.8; }
.schema .tache rect { fill: var(--bg-alt); stroke: var(--rule); stroke-width: 1.5; transition: fill 0.5s, stroke 0.5s; }
.schema .tache.ok rect { fill: color-mix(in oklch, var(--accent) 55%, var(--bg-alt)); stroke: var(--accent); }
.schema .tache path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.4s; }
.schema .tache .coche { stroke: var(--bg); opacity: 0; }
.schema .tache .croix { stroke: var(--muted); stroke-width: 1.8; }
.schema .tache.ok .coche { opacity: 1; }
.schema .tache.ok .croix { opacity: 0; }
.schema .fini { opacity: 0; transform-box: fill-box; transform-origin: center; scale: 0.6; transition: opacity 0.5s, scale 0.6s cubic-bezier(.3,1.6,.5,1); }
.schema .fini.on { opacity: 1; scale: 1; }
.schema .fini circle { fill: var(--accent); }
.schema .fini path { fill: none; stroke: var(--bg); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.schema.reussi .schema-etape { color: var(--accent); font-weight: 600; }
.schema .grille { stroke: var(--rule); stroke-width: 1; }
.schema text.axe { fill: var(--muted); font-size: 11px; text-anchor: end; }
.schema text.axe.gauche { text-anchor: start; }
.schema text.titre-axe { text-anchor: middle; }
.schema .bande { fill: none; }
.schema .bande.impaire { fill: var(--bg-alt); }
.schema text.bande-nom { fill: var(--muted); font-size: 11px; }
.schema .curseur { stroke: var(--muted); stroke-dasharray: 2 3; transition: opacity 0.6s; }
.schema .trace { fill: none; stroke-width: 2; opacity: var(--fond, 1); }
.schema .trace.claude { stroke: #d97757; }
.schema .trace.gpt { stroke: var(--text); }
.schema .pt { opacity: 0; transition: opacity 0.5s; }
.schema .pt.on { opacity: var(--fond, 1); }
.schema .pt .point { fill: var(--bg); stroke-width: 1.8; }
.schema .pt.claude .point { stroke: #d97757; }
.schema .pt.gpt .point { stroke: var(--text); }
.schema .pt text.nom { font-size: 11.5px; }
.schema .pt.claude text.nom { fill: #d97757; }
.schema .renvoi { fill: none; stroke: var(--muted); stroke-width: 0.8; }
.schema .anneau { fill: none; stroke-width: 2; }
.schema .anneau.claude { stroke: #d97757; }
.schema .anneau.gpt { stroke: var(--text); }
.schema .bac { transition: fill 0.25s, stroke 0.25s; }
.schema .bac.pris { stroke: var(--accent); fill: color-mix(in oklch, var(--accent) 25%, var(--bg-alt)); }
.schema .eclat line { stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.schema .compteur { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.schema-tete .rejouer { font: 0.75rem var(--font-ui); color: var(--muted); background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 4px; padding: 0.15rem 0.6rem; cursor: pointer; }
.schema-tete .rejouer:hover { color: var(--text); }
.schema .mene-bas { opacity: 0.9; cursor: pointer; transition: opacity 0.2s; }
.schema svg.focus :not(.legende) > .mene-bas:not(.vise) { opacity: 0.3; }
.schema .mene-bas.vise { opacity: 1; stroke: var(--accent); stroke-width: 1.5; }
.schema .periode { opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.schema .periode.on { opacity: 0.12; }
.schema .periode.claude { fill: #d97757; }
.schema .periode.gpt { fill: var(--text); }
.schema svg.focus .pt:not(.vise), .schema svg.focus .trace { opacity: 0.2; }
.schema .pt.vise .point { stroke-width: 3; }
.schema .pt.vise text.nom { font-weight: 700; }
.schema .mene-bas.claude { fill: #d97757; }
.schema .mene-bas.gpt { fill: var(--text); }
.schema .legende text { font-size: 11.5px; fill: var(--muted); }
.schema text.part { font: italic 600 13px var(--font); fill: var(--text); font-variant-numeric: tabular-nums; }
.schema text.part.claude { fill: #d97757; }
.schema .jauge.gpt { fill: var(--text); }
.schema .jauge.claude { fill: #d97757; }
.schema[data-anim="course"] { position: relative; }
.schema .pt { cursor: pointer; outline: none; }
.schema .pt .cible { fill: transparent; stroke: none; }
.schema .pt:hover .point, .schema .pt:focus-visible .point { stroke-width: 2.8; }
.schema .bulle { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 0.1rem; max-width: 20rem; padding: 0.45rem 0.65rem; background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 4px; font: 0.78rem/1.4 var(--font-ui); color: var(--muted); box-shadow: 0 2px 10px rgb(0 0 0 / 0.15); }
.schema .bulle strong { color: var(--text); font-weight: 600; }
.schema .bulle[hidden] { display: none; }
.schema text.mois { text-anchor: middle; }
.schema .bulle a { color: var(--text); }
.schema text.droite { text-anchor: end; }
.schema text.compte.nul { fill: var(--muted); }
.schema .filtre .aller { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.schema .pointe { fill: var(--muted); }
.schema .barre-leg { fill: var(--muted); }
.schema .bug.corrige { fill: var(--muted); }
.schema .vues { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0 0.2rem; }
.schema .vues button { font: 0.75rem var(--font-ui); color: var(--muted); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 0.15rem 0.65rem; cursor: pointer; }
.schema .vues button:hover { color: var(--text); }
.schema .vues button.on { color: var(--bg); background: var(--text); border-color: var(--text); }
.schema .mene-bas.inconnu { cursor: default; opacity: 0.8; }
