/* Académie Cultiveau — charte : crème chaud, vert d'eau profond, titres condensés */
:root {
  --fond: #f3efe8; --carte: #fbfaf7; --bord: #e4dfd5; --encre: #14202b; --doux: #5a6572; --leger: #8a929c;
  --teal: #0b7a7a; --teal-clair: #bfe8e2; --teal-fonce: #075a5c;
  --bleu-f: #eaf1ff; --bleu-t: #1e40af; --violet-f: #f6eaff; --violet-t: #7e22ce;
  --vert-f: #e8faef; --vert-t: #14733c; --ambre-f: #fff4dc; --ambre-t: #8a5300; --rouge-f: #fdecec; --rouge-t: #b42318;
  --rayon: 18px; --ombre: 0 1px 2px rgba(20,32,43,.05), 0 8px 24px rgba(20,32,43,.06);
  --titre: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; --corps: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 16px/1.6 var(--corps); }
a { color: var(--teal-fonce); }
h1, h2, h3 { font-family: var(--titre); text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); } h2 { font-size: 1.5rem; } h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
.page { max-width: 980px; margin: 0 auto; padding: 0 16px 64px; }
.muet { color: var(--doux); } .petit { font-size: .875rem; } .centre { text-align: center; }

/* en-tête */
.entete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 12px 18px; margin: 16px 0 24px; box-shadow: var(--ombre); position: sticky; top: 8px; z-index: 20; }
.entete img { height: 30px; display: block; }
.entete .espace { flex: 1; }
.entete nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pilule { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfd6dc; background: #fff; color: var(--encre); border-radius: 999px;
  padding: 8px 16px; font: 600 .95rem var(--corps); text-decoration: none; cursor: pointer; }
.pilule:hover { background: #f4f6f7; }
.pilule.actif { background: var(--teal); border-color: var(--teal); color: #fff; }
form.en-ligne { display: inline; margin: 0; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; cursor: pointer;
  background: var(--teal); color: #fff; font: 700 1rem var(--corps); text-decoration: none; min-height: 46px; }
.btn:hover { background: var(--teal-fonce); }
.btn.clair { background: #fff; color: var(--encre); border: 1px solid #cfd6dc; } .btn.clair:hover { background: #f4f6f7; }
.btn.danger { background: var(--rouge-t); }
.btn[disabled], .btn.desactive { background: #cdd3d8; color: #fff; cursor: not-allowed; pointer-events: none; }
.btn.grand { padding: 15px 26px; font-size: 1.05rem; }

/* cartes */
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); margin-bottom: 18px; }
.carte > h2:first-child, .carte > h3:first-child { margin-top: 0; }
.grille { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .g3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.badge-num { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #fff; font: 700 1.6rem var(--titre);
  background: linear-gradient(135deg, #0b7a7a 30%, #d7f0ec 140%); }
.badge-num.petit { width: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 12px; font-size: .82rem; font-weight: 600; background: #eef1f3; color: var(--doux); }
.chip.ok { background: var(--vert-f); color: var(--vert-t); } .chip.cours { background: var(--ambre-f); color: var(--ambre-t); } .chip.ko { background: var(--rouge-f); color: var(--rouge-t); }
.chip.bleu { background: var(--bleu-f); color: var(--bleu-t); }

/* accueil */
.hero { padding: 6px 4px 22px; } .hero p { max-width: 60ch; color: var(--doux); font-size: 1.05rem; }
.bandeau { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.bandeau .anneau { display: block; }
.anneau-fond { fill: none; stroke: #e3e7ea; stroke-width: 5; } .anneau-val { fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round; }
.barre { height: 10px; background: #e6e9ec; border-radius: 99px; overflow: hidden; } .barre > i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #35b8a8); border-radius: 99px; }
.mod-tete { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.mod-tete h2 { margin: 0; font-size: 1.35rem; } .mod-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--doux); font-size: .92rem; }
.mod-tete .droite { margin-left: auto; text-align: right; }
.pres { margin-top: 14px; display: grid; gap: 10px; }
.encart { border-radius: 14px; padding: 14px 18px; } .encart h4 { margin: 0 0 4px; font: 700 1rem var(--corps); }
.encart.objectifs { background: var(--bleu-f); color: #23407a; } .encart.objectifs h4 { color: var(--bleu-t); }
.encart.contenu { background: #f7f8fa; } .encart.modalites { background: var(--violet-f); color: #5d2a86; } .encart.modalites h4 { color: var(--violet-t); }
.encart.evaluation { background: var(--vert-f); color: #1f5a3a; } .encart.evaluation h4 { color: var(--vert-t); }
.encart.retenir { background: var(--ambre-f); color: #6b4300; } .encart.retenir h4 { color: var(--ambre-t); }
.encart p { margin: 0; }

/* module : déroulé */
.fil { list-style: none; padding: 0; margin: 0; }
.fil li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--bord); }
.fil li:first-child { border-top: 0; }
.fil .txt { flex: 1; min-width: 0; } .fil .txt a { font-weight: 700; text-decoration: none; color: var(--encre); } .fil .txt a:hover { text-decoration: underline; }
.etape { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #e9edf0; color: var(--doux); font-size: .9rem; }
.etape.ok { background: var(--teal); color: #fff; }
.objectifs-liste { margin: 0; padding-left: 1.2em; } .objectifs-liste li { margin: 4px 0; }

/* capsule / diaporama */
.fil-ariane { font-size: .9rem; color: var(--doux); margin-bottom: 10px; } .fil-ariane a { color: var(--doux); }
.visionneuse { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; margin-bottom: 18px; }
.visionneuse .haut { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #f7f9f9; border-bottom: 1px solid var(--bord); font-size: .9rem; color: var(--doux); }
.seq { display: none; padding: 26px clamp(18px, 4vw, 40px); min-height: 280px; } .seq.actif { display: block; animation: fondu .25s ease; }
@keyframes fondu { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.seq h3 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--teal-fonce); } .seq .sous { color: var(--doux); font-size: 1.05rem; margin-bottom: 18px; }
.seq ul.puces { margin: 0; padding: 0; list-style: none; } .seq ul.puces li { position: relative; padding: 8px 0 8px 28px; font-size: 1.08rem; border-bottom: 1px dashed #e3e6e9; }
.seq ul.puces li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.seq .lignes .etiquette { font-weight: 700; margin-top: 10px; color: var(--teal-fonce); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 6px 0 12px; }
.chiffre { background: linear-gradient(160deg, #eaf7f5, #fff); border: 1px solid #cfe8e4; border-radius: 16px; padding: 16px; }
.chiffre b { display: block; font: 700 clamp(1.7rem, 4vw, 2.3rem) var(--titre); color: var(--teal-fonce); line-height: 1; margin-bottom: 6px; } .chiffre span { font-size: .95rem; color: var(--doux); }
.formule { font: 600 1.25rem ui-monospace, Menlo, monospace; background: #f1f6f6; border-left: 5px solid var(--teal); padding: 14px 18px; border-radius: 8px; margin: 0 0 14px; overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: .98rem; margin: 6px 0 10px; } .tableau th { text-align: left; background: #eaf3f2; color: var(--teal-fonce); padding: 10px 12px; font-weight: 700; }
.tableau td { padding: 10px 12px; border-bottom: 1px solid var(--bord); vertical-align: top; } .tableau td:first-child { font-weight: 700; }
.tableau-defile { overflow-x: auto; }
.cartes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 10px; }
.cartes > div { background: #f7fafa; border: 1px solid #dcebe9; border-radius: 14px; padding: 14px 16px; } .cartes b { display: block; color: var(--teal-fonce); margin-bottom: 4px; }
.cartes p { margin: 0; font-size: .98rem; }
.note { background: var(--ambre-f); color: #6b4300; border-radius: 12px; padding: 12px 16px; margin: 12px 0 0; font-size: .95rem; }
.citation { font: 600 clamp(1.2rem, 3vw, 1.6rem) var(--corps); border-left: 6px solid var(--teal); padding: 6px 0 6px 18px; margin: 10px 0; color: var(--encre); }
.ancrage { background: linear-gradient(160deg, #eaf7f5, #fff); border: 1px solid #cfe8e4; border-radius: 18px; padding: 24px; text-align: center; font: 700 clamp(1.3rem, 3vw, 1.9rem) var(--titre); text-transform: none; color: var(--teal-fonce); }
.ancrage div + div { margin-top: 6px; }
.bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--bord); background: #f7f9f9; }
.points { display: flex; gap: 6px; } .points button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: #ccd4d8; cursor: pointer; padding: 0; } .points button.actif { background: var(--teal); transform: scale(1.25); }
.voix { font-size: 1.02rem; } .voix p { margin-bottom: .9em; }
details.rideau { border: 1px solid var(--bord); border-radius: 14px; background: #fff; margin-bottom: 14px; } details.rideau > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
details.rideau > summary::after { content: "＋"; color: var(--teal); } details.rideau[open] > summary::after { content: "－"; } details.rideau > .contenu { padding: 0 18px 18px; }
audio { width: 100%; margin: 4px 0 10px; }

/* vidéos et ressources */
.videos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.video { background: #fff; border: 1px solid var(--bord); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.video .lecteur { position: relative; aspect-ratio: 16/9; background: #10181f; } .video .lecteur img, .video .lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .lecteur button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.video .lecteur button::after { content: "▶"; width: 58px; height: 58px; border-radius: 50%; background: rgba(11,122,122,.92); color: #fff; display: grid; place-items: center; font-size: 1.3rem; padding-left: 4px; }
.video .infos { padding: 12px 14px 14px; flex: 1; } .video h4 { margin: 0 0 4px; font: 700 .98rem/1.3 var(--corps); } .video .chaine { font-size: .82rem; color: var(--doux); } .video p { font-size: .9rem; margin: 6px 0 0; color: var(--doux); }
.ressources { list-style: none; margin: 0; padding: 0; } .ressources li { padding: 12px 0; border-top: 1px solid var(--bord); } .ressources li:first-child { border-top: 0; }
.ressources a { font-weight: 700; } .ressources .orga { font-size: .82rem; color: var(--leger); margin-left: 6px; } .ressources p { margin: 3px 0 0; font-size: .95rem; color: var(--doux); }
.onglets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; } .onglets button { border: 1px solid #cfd6dc; background: #fff; padding: 8px 14px; border-radius: 999px; font: 600 .92rem var(--corps); cursor: pointer; }
.onglets button.actif { background: var(--teal); color: #fff; border-color: var(--teal); } .panneau { display: none; } .panneau.actif { display: block; }
.citation-doc { border-left: 4px solid var(--teal); background: #f6faf9; padding: 10px 16px; border-radius: 0 12px 12px 0; margin: 10px 0; } .citation-doc q { display: block; font-style: italic; } .citation-doc .src { font-size: .82rem; color: var(--leger); margin-top: 4px; }

/* quiz et évaluations */
.question { border: 1px solid var(--bord); border-radius: 16px; padding: 18px; background: #fff; margin-bottom: 14px; } .question h4 { margin: 0 0 12px; font: 700 1.05rem/1.4 var(--corps); }
.question .num { color: var(--teal); margin-right: 6px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2px solid #e1e5e8; border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: #fff; text-align: left; width: 100%; font: inherit; color: inherit; }
.option:hover { border-color: #9fd2cc; } .option input { margin-top: 5px; accent-color: var(--teal); flex: none; width: 18px; height: 18px; } .option .lettre { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #eef1f3; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.option.choisi { border-color: var(--teal); background: #f0f9f8; } .option.juste { border-color: #22a35a; background: var(--vert-f); } .option.faux { border-color: #dc4a3d; background: var(--rouge-f); }
.retour { display: none; margin-top: 10px; padding: 12px 14px; border-radius: 12px; font-size: .98rem; } .retour.ok { display: block; background: var(--vert-f); color: var(--vert-t); } .retour.ko { display: block; background: var(--rouge-f); color: #7a1d14; }
.score { font: 700 3.2rem var(--titre); line-height: 1; } .score.ok { color: var(--vert-t); } .score.ko { color: var(--rouge-t); }
.sticky-fin { position: sticky; bottom: 10px; z-index: 5; background: #fff; border: 1px solid var(--bord); border-radius: 16px; padding: 12px 16px; box-shadow: var(--ombre); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* formulaires */
label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type=text], input[type=password], input[type=email], input[type=tel], textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #c9d1d7; border-radius: 12px; font: inherit; background: #fff; }
textarea { min-height: 88px; resize: vertical; } input:focus, textarea:focus, select:focus { outline: 3px solid #a7ddd6; border-color: var(--teal); }
.champ { margin-bottom: 16px; }
.message { padding: 12px 16px; border-radius: 12px; margin-bottom: 12px; background: var(--bleu-f); color: var(--bleu-t); } .message.success { background: var(--vert-f); color: var(--vert-t); } .message.error { background: var(--rouge-f); color: var(--rouge-t); }
.centrer-carte { max-width: 460px; margin: 8vh auto 0; }
.centrer-carte img { height: 38px; margin-bottom: 18px; }

/* suivi */
.tb { overflow-x: auto; } table.suivi { border-collapse: collapse; width: 100%; font-size: .9rem; background: #fff; border-radius: 14px; overflow: hidden; }
table.suivi th, table.suivi td { padding: 9px 10px; border-bottom: 1px solid var(--bord); text-align: center; white-space: nowrap; } table.suivi th:first-child, table.suivi td:first-child { text-align: left; }
table.suivi th { background: #eaf3f2; color: var(--teal-fonce); position: sticky; top: 0; }
.cell { display: inline-block; min-width: 42px; padding: 2px 8px; border-radius: 8px; font-weight: 700; font-size: .82rem; } .cell.ok { background: var(--vert-f); color: var(--vert-t); } .cell.cours { background: var(--ambre-f); color: var(--ambre-t); } .cell.vide { color: var(--leger); }

/* attestation / fiches imprimables */
.feuille { background: #fff; border: 1px solid var(--bord); padding: 44px; border-radius: 6px; box-shadow: var(--ombre); }
.attestation { text-align: center; border: 6px double var(--teal); padding: 48px 32px; }
.attestation h1 { font-size: 3rem; color: var(--teal-fonce); }

@media (max-width: 640px) {
  body { font-size: 15.5px; } .entete { position: static; padding: 10px 14px; gap: 8px; } .entete nav { gap: 6px; } .entete .pilule { padding: 6px 12px; font-size: .85rem; } .entete img { height: 24px; }
  .sticky-fin { flex-wrap: nowrap; padding: 8px 10px; border-radius: 14px; } .sticky-fin #etat-fin, .sticky-fin > .petit { display: none; } .sticky-fin .btn { min-height: 42px; padding: 8px 14px; font-size: .95rem; } .sticky-fin .btn.grand { flex: 1; }
  .hero { padding-bottom: 12px; } h1 { font-size: 1.7rem; }
  .bandeau { grid-template-columns: auto 1fr; } .bandeau .btn { grid-column: 1 / -1; }
  .mod-tete { flex-wrap: wrap; } .mod-tete .droite { margin-left: 0; text-align: left; width: 100%; }
  .seq { padding: 20px 16px; min-height: 240px; } .feuille { padding: 22px; }
}
@media print {
  body { background: #fff; } .entete, .pas-imprimer, .sticky-fin { display: none !important; } .page { max-width: none; padding: 0; }
  .carte, .feuille { box-shadow: none; border-color: #999; break-inside: avoid; } a { color: inherit; text-decoration: none; }
  .seq { display: block !important; break-inside: avoid; }
}

/* cours développé */
.cours { max-width: 72ch; margin: 0 auto; font-size: 1.06rem; line-height: 1.75; }
.cours h3 { font-size: 1.45rem; color: var(--teal-fonce); margin: 1.6em 0 .5em; padding-top: .4em; border-top: 1px solid var(--bord); } .cours h3:first-of-type { border-top: 0; margin-top: .4em; }
.cours p { margin: 0 0 1em; } .cours-liste { margin: 0 0 1.1em; padding-left: 1.3em; } .cours-liste li { margin: .35em 0; }
.bloc { border-radius: 14px; padding: 14px 18px; margin: 1.1em 0; font-size: 1rem; line-height: 1.65; } .bloc h4 { margin: 0 0 4px; font: 700 .98rem var(--corps); } .bloc p { margin: 0; } .bloc ol { margin: 4px 0 0; padding-left: 1.3em; }
.bloc.exemple { background: #eef7f6; border-left: 5px solid var(--teal); } .bloc.exemple h4 { color: var(--teal-fonce); }
.bloc.attention { background: var(--rouge-f); border-left: 5px solid #dc4a3d; } .bloc.attention h4 { color: var(--rouge-t); }
.bloc.definition { background: var(--bleu-f); border-left: 5px solid #3b6fe0; } .bloc.definition h4 { color: var(--bleu-t); }
.bloc.calcul { background: #f5f5f0; border-left: 5px solid #8a929c; font-family: ui-monospace, Menlo, monospace; font-size: .93rem; } .bloc.calcul h4 { font-family: var(--corps); }
.bloc.source { background: #fbf7ea; border-left: 5px solid #d9b13b; font-size: .93rem; }
.reflechir { background: var(--violet-f); border-radius: 16px; padding: 18px 22px; margin: 1.6em 0 0; } .reflechir h4 { margin: 0 0 6px; color: var(--violet-t); font: 700 1rem var(--corps); } .reflechir li { margin: .4em 0; }
.lecture-chip { display: inline-flex; gap: 6px; align-items: center; }

.video .lecteur { background: linear-gradient(135deg, #0b3f45, #0b7a7a 60%, #35b8a8); }
.video .lecteur .affiche { position: absolute; left: 14px; bottom: 12px; right: 14px; color: #fff; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.video .lecteur .affiche b { font-size: .95rem; line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,.35); } .video .lecteur .affiche small { opacity: .85; }

/* Schémas animés (figure.anim) */
.anim { margin: 1.4em 0; padding: 14px 16px 16px; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); }
.anim-titre { font: 700 1.05rem var(--titre); letter-spacing: .02em; text-transform: uppercase; color: var(--teal-fonce); margin-bottom: 6px; }
.anim-svg { display: block; width: 100%; height: auto; max-height: 440px; font-family: var(--corps); }
.anim-legende { margin: 8px 0 10px; min-height: 4.6em; line-height: 1.5; } .anim-legende b { display: block; font-size: 1.05rem; color: var(--encre); } .anim-legende span { display: block; margin-top: 3px; font-size: .92rem; color: var(--doux); }
.anim-barre { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.anim-points { display: flex; gap: 6px; margin-left: auto; } .anim-points button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid var(--teal); background: transparent; cursor: pointer; } .anim-points button.fait { background: var(--teal-clair); } .anim-points button.actif { background: var(--teal); }
.anim-source { margin: 6px 0 0; font-size: .78rem; color: var(--leger); line-height: 1.4; }
.anim-texte { margin-top: 12px; border-top: 1px dashed var(--bord); padding-top: 8px; } .anim-texte summary { cursor: pointer; color: var(--teal-fonce); font-weight: 600; font-size: .92rem; }
.boucle-anneau { fill: none; stroke: var(--bord); stroke-width: 3; stroke-dasharray: 3 8; stroke-linecap: round; }
.boucle-fleche { fill: var(--bord); transition: fill .4s; } .boucle-fleche.fait { fill: var(--teal); }
.noeud { cursor: pointer; outline: none; } .noeud rect { fill: #fff; stroke: var(--bord); stroke-width: 2; transition: fill .4s, stroke .4s; } .noeud-txt { font-size: 14px; font-weight: 600; fill: var(--doux); transition: fill .4s; }
.noeud.fait rect { fill: var(--teal-clair); stroke: var(--teal); } .noeud.fait .noeud-txt { fill: var(--teal-fonce); }
.noeud.actif rect { fill: var(--teal); stroke: var(--teal-fonce); } .noeud.actif .noeud-txt { fill: #fff; } .noeud.actif { animation: anim-pulse .9s ease-out 1; transform-box: fill-box; transform-origin: center; }
.noeud.barre rect { stroke: #dc4a3d; stroke-dasharray: 6 4; fill: var(--rouge-f); } .noeud.barre .noeud-txt { fill: var(--rouge-t); }
.boucle-centre { font: 700 20px var(--titre); fill: var(--leger); letter-spacing: .03em; text-transform: uppercase; transition: opacity .5s; }
.sortie { opacity: 0; transition: opacity .6s; } .sortie rect { fill: var(--vert-f); stroke: var(--vert-t); stroke-width: 3; } .sortie-txt { font-size: 15px; font-weight: 700; fill: var(--vert-t); }
.sortie-fleche { opacity: 0; stroke: var(--vert-t); stroke-width: 4; fill: none; stroke-linecap: round; stroke-dasharray: 2 9; transition: opacity .6s; }
.groupe { transition: opacity .5s; } .groupe-fond { fill: transparent; transition: fill .4s; } .groupe-fond.relief { fill: var(--ambre-f); }
.barres-nom { font-size: 14px; font-weight: 600; fill: var(--encre); } .barres-lib { font-size: 13px; fill: var(--doux); } .barre-val { font-size: 15px; font-weight: 700; fill: var(--encre); transition: opacity .5s .3s; }
.serie.s0, .barre.s0 { fill: #3b6fe0; } .serie.s1, .barre.s1 { fill: var(--teal); }
.barre { transform-box: fill-box; transform-origin: left center; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.barres-def { font: 700 22px var(--titre); fill: var(--teal-fonce); letter-spacing: .02em; }
@keyframes anim-pulse { 0% { transform: scale(.94); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .barre, .noeud rect, .sortie, .groupe, .barre-val { transition: none; } .noeud.actif { animation: none; } }

/* Film en motion design (figure.film) : canvas 16:9, écran de départ, barre de lecture qui s'efface pendant la lecture */
.film-cadre { margin: 0 0 18px; aspect-ratio: 16 / 9; }
.film { position: relative; margin: 0; width: 100%; aspect-ratio: 16 / 9; background: #04121d; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); color: #fff; }
.film canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.film-depart { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; background: rgba(2,10,18,.55); padding: 0 6%; }
.film.attente .film-depart { display: flex; }
.film-titre { font: 800 clamp(1.5rem, 4.6vw, 3rem)/1.05 var(--corps); letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,10,20,.9); }
.film-go { padding: 16px 30px; border-radius: 999px; border: 0; background: #6fd6ea; color: #04222b; font: 800 1.08rem/1 var(--corps); cursor: pointer; box-shadow: 0 8px 40px #6fd6ea66; }
.film-muet { padding: 12px 22px; border-radius: 999px; border: 1px solid #ffffff66; background: #00000050; color: #fff; font: 600 .95rem/1 var(--corps); cursor: pointer; }
.film-barre { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 26px 14px 10px; background: linear-gradient(180deg, rgba(2,10,18,0), rgba(2,10,18,.8)); opacity: 0; transition: opacity .25s; }
.film:hover .film-barre, .film.pause .film-barre, .film.fini .film-barre, .film:focus-within .film-barre { opacity: 1; } .film.attente .film-barre { display: none; }
.film-barre button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ffffff55; background: #00000060; color: #fff; font-size: 1rem; cursor: pointer; flex: none; }
.film-prog { flex: 1; height: 8px; border-radius: 4px; background: #ffffff2e; cursor: pointer; overflow: hidden; } .film-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7AC143, #6fd6ea); }
.film:fullscreen { border-radius: 0; aspect-ratio: auto; display: flex; align-items: center; background: #000; } .film:fullscreen canvas { position: static; aspect-ratio: 16 / 9; height: auto; max-height: 100vh; margin: auto; }
/* La vidéo suit la lecture : quand on fait défiler la page pendant le film, elle se détache et reste visible en petit dans un coin */
.film.flottant { position: fixed; right: 16px; bottom: 96px; width: min(460px, calc(100vw - 32px)); z-index: 80; border-radius: 14px; box-shadow: 0 10px 40px rgba(4,18,29,.45), 0 0 0 1px rgba(255,255,255,.12); animation: film-arrive .25s ease-out; }
.film.flottant .film-barre { padding: 18px 8px 6px; gap: 6px; } .film.flottant .film-barre button { width: 30px; height: 30px; font-size: .85rem; }
.film-ancrer { display: none; position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ffffff66; background: #000000a0; color: #fff; cursor: pointer; font-size: .9rem; }
.film.flottant .film-ancrer { display: block; }
@keyframes film-arrive { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .film.flottant { right: 8px; left: 8px; width: auto; bottom: 88px; } }
@media (prefers-reduced-motion: reduce) { .film.flottant { animation: none; } }
