/* Mise en page : une colonne étroite façon carnet d'exercices, cartes blanches sur fond bleu pâle, bleu Majorelle comme accent. */
:root {
  --bg: #F2F5FB; --surface: #FFFFFF; --ink: #161E3F; --muted: #59627F; --line: #DCE2F0;
  --accent: #3446D4; --accent-ink: #FFFFFF; --accent-soft: #E5E8FD;
  --good: #0F7F58; --good-soft: #DDF3E9; --bad: #B93A33; --bad-soft: #FBE5E3; --sun: #9A5800; --sun-soft: #FDEFD6;
  --ardoise: #1D2B4F; --ardoise-ink: #F3F6FF;
  --fond-eleve: #FFF6E6; --halo-eleve: #FFD978; --halo-eleve-2: #C9D0FF; --fond-prof: #E6ECF3; --grille-prof: #CBD6E4;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Lexend", "Segoe UI", system-ui, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E1324; --surface: #172038; --ink: #E7EBF8; --muted: #9AA3C3; --line: #29334F;
  --accent: #8E9BFF; --accent-ink: #0E1324; --accent-soft: #232C57;
  --good: #52CB98; --good-soft: #12362A; --bad: #F2837A; --bad-soft: #3D1D1C; --sun: #F4B64F; --sun-soft: #392B11;
  --ardoise: #0A1020; --ardoise-ink: #E7EBF8;
  --fond-eleve: #17142A; --halo-eleve: #4A3A12; --halo-eleve-2: #26306A; --fond-prof: #0B1018; --grille-prof: #18212F; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0E1324; --surface: #172038; --ink: #E7EBF8; --muted: #9AA3C3; --line: #29334F;
  --accent: #8E9BFF; --accent-ink: #0E1324; --accent-soft: #232C57;
  --good: #52CB98; --good-soft: #12362A; --bad: #F2837A; --bad-soft: #3D1D1C; --sun: #F4B64F; --sun-soft: #392B11;
  --ardoise: #0A1020; --ardoise-ink: #E7EBF8;
  --fond-eleve: #17142A; --halo-eleve: #4A3A12; --halo-eleve-2: #26306A; --fond-prof: #0B1018; --grille-prof: #18212F; color-scheme: dark }

* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 48px }
#app { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px }
h1, h2 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.15 }
h2 { font-size: 1.05rem; font-weight: 600 }
p { margin: 0 }
button { font: inherit; color: inherit; cursor: pointer }
button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
math { font-size: 1.12em }
.tex { font-family: ui-monospace, monospace; font-size: .9em }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }

.barre { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; gap: 12px }
.marque { font-family: var(--f-display); font-weight: 800; letter-spacing: .01em }
.logo-app { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; cursor: default; display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; font-family: var(--f-display); font-weight: 800; white-space: nowrap }
.logo-app .logo-svg { width: 34px; height: 39px; flex-shrink: 0; filter: drop-shadow(0 2px 3px rgba(29,43,79,.18)) }
.logo-app:hover .logo-svg { transform: rotate(-8deg) scale(1.06) }
.logo-app .logo-svg { transition: transform .35s cubic-bezier(.34,1.56,.64,1) }
.logo-app:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px }
.logo-app .logo-nom { overflow: hidden; text-overflow: ellipsis }
.barre > .retour + .logo-app { margin-left: 10px }
@media (max-width: 899px) { .logo-app:not(.avec-nom) .logo-nom { display: none } }
@media (max-width: 480px) { .barre:has(.bouton-profil) .retour { font-size: 0; flex-shrink: 0 } .barre:has(.bouton-profil) .retour::before { content: "←"; font-size: 1.25rem } }
@media (max-width: 400px) { .logo-app.avec-nom .logo-nom { font-size: .92rem } }
.barre-points { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--sun); background: var(--sun-soft); padding: 4px 12px; border-radius: 999px; font-size: .9rem }
.barre-droite { display: flex; align-items: center; gap: 8px; flex-shrink: 0 }
.barre .marque, .barre .retour { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis }
@media (max-width: 400px) { .barre .marque { font-size: .92rem } .barre-droite .pastille { display: none } }
.barre-droite .btn.petit { padding: 6px 12px; font-size: .85rem; white-space: nowrap }
.retour { background: none; border: 0; padding: 6px 0; color: var(--accent); font-weight: 500 }
.titre-vue { font-size: 1.7rem; font-weight: 800 }
.lead { color: var(--muted) }
.sur-titre { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; color: var(--muted) }
.note { color: var(--muted); font-size: .85rem }
.section-titre { font-size: 1.2rem; margin-top: 8px }

.carte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; text-align: left; min-width: 0 }
.rangee { display: flex; gap: 10px; flex-wrap: wrap }
.rangee .btn { flex: 1 1 160px }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center }
.btn { border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 18px; font-weight: 600 }
.btn:hover { border-color: var(--accent) }
.btn.principal { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 60%, #000) }
.btn.principal:active { transform: translateY(2px); box-shadow: none }
.btn.danger { background: var(--bad); color: var(--surface); border-color: var(--bad) }
.btn.large { width: 100% }
.lien { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-align: left }

/* Accueil */
.accueil { display: flex; flex-direction: column; gap: 18px; padding-top: 16px }
.hero { background: var(--ardoise); color: var(--ardoise-ink); border-radius: 20px; padding: 28px 22px; display: flex; flex-direction: column; gap: 14px;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ardoise-ink) 14%, transparent) 1px, transparent 0); background-size: 18px 18px }
.hero .sur-titre { color: color-mix(in srgb, var(--ardoise-ink) 70%, transparent) }
.hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); font-weight: 800 }
.hero p { max-width: 46ch; color: color-mix(in srgb, var(--ardoise-ink) 85%, transparent) }
.ardoise { align-self: flex-start; border: 1.5px dashed color-mix(in srgb, var(--ardoise-ink) 45%, transparent); border-radius: 10px; padding: 10px 14px; font-size: 1.1rem; max-width: 100%; overflow-x: auto }
.form label[for], legend { font-weight: 600 }
.form input:not([type=radio]) { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; margin-top: -6px }
.btn.petit { padding: 7px 14px; font-size: .9rem }
.btn.clair { background: transparent; color: var(--ardoise-ink); border-color: color-mix(in srgb, var(--ardoise-ink) 45%, transparent) }
.hero-actions { margin-top: 4px }
.methode { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: m }
.methode li { counter-increment: m; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px }
.methode li::before { content: counter(m); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--f-display); font-weight: 800; display: grid; place-items: center }
.methode span { color: var(--muted); font-size: .92rem }
.niveau-carte { gap: 8px }
.connexion { display: flex; flex-direction: column; gap: 16px }
.onglets { display: grid; grid-template-columns: 1fr 1fr; background: var(--accent-soft); border-radius: 12px; padding: 4px; gap: 4px }
.onglet { border: 0; background: transparent; border-radius: 9px; padding: 10px; font-weight: 600; color: var(--muted) }
.onglet.actif { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 15%, transparent) }
.erreur { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: .92rem }
.btn:disabled { opacity: .6; cursor: wait }
.level { flex-direction: row; align-items: center; gap: 14px }
.level-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px }
.badge-svg { flex-shrink: 0; display: block; max-width: 100% }
.level .jauge span { background: var(--sun) }
.level-up { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--sun); background: var(--surface); border: 1.5px solid var(--sun); border-radius: 12px; padding: 8px 12px; animation: monte .5s ease }
.badges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px }
.badges .badge-svg { width: min(56px, 100%); height: auto }
.badge-item { margin: 0; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center }
.badge-item figcaption { display: flex; flex-direction: column; font-size: clamp(.62rem, 2.4vw, .8rem); line-height: 1.3; hyphens: auto; -webkit-hyphens: auto }
.badge-item figcaption span { color: var(--muted); font-variant-numeric: tabular-nums }
.badge-item.verrou { background: transparent; border-style: dashed }
.badge-item.verrou strong { color: var(--muted); font-weight: 500 }
.compte { font-family: var(--f-body); font-size: .85rem; font-weight: 500; color: var(--muted); margin-left: 6px }
.vitrine { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px }
.vitrine figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px }
.vitrine figcaption { font-size: .7rem; color: var(--muted) }
.level-gagne { flex-direction: row; align-items: center; gap: 14px; border-color: var(--sun); position: relative }
.level-gagne div { display: flex; flex-direction: column }
.level-gagne div span { color: var(--muted); font-size: .9rem }
.choix-niveau .niv-level { margin-left: auto }
@keyframes monte { from { transform: translateY(6px); opacity: .4 } to { transform: none; opacity: 1 } }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px }
legend { margin-bottom: 10px }
.choix-niveau { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer }
.choix-niveau:has(input:checked) { border-color: var(--accent); background: var(--accent-soft) }
.choix-niveau input { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0 }
.choix-niveau span { display: flex; flex-direction: column }
.choix-niveau small { color: var(--muted) }

/* Tableau de bord */
.bonjour { padding-top: 6px }
.bonjour h1 { font-size: 1.9rem; font-weight: 800 }
.bonjour p { color: var(--muted) }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px }
.stat, .score { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; text-align: center }
.stat-val { font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1 }
.stat-lib { font-size: .8rem; color: var(--muted) }
.stat:first-child .stat-val { color: var(--sun) }
.obj-ligne { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums }
.jauge { height: 12px; background: var(--accent-soft); border-radius: 999px; overflow: hidden }
.jauge span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease }
.jauge.petite { height: 8px }
.jauge.fine { height: 6px }
.liste { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0 }
.chapitre { gap: 8px }
.chapitre:hover, .regle:hover { border-color: var(--accent) }
.ch-haut { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 1.05rem }
.ch-intro, .ch-pct { color: var(--muted); font-size: .9rem }
.badge { background: var(--good-soft); color: var(--good); font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px }
.pied { display: flex; gap: 20px; flex-wrap: wrap; font-size: .9rem; padding-top: 8px }
.confirm { border-color: var(--bad) }

/* Chapitre et règle */
.regles { counter-reset: r }
.regle { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap }
.r-titre { font-weight: 500 }
.regles li { counter-increment: r }
.regles .r-titre::before { content: counter(r) ". "; color: var(--muted); font-variant-numeric: tabular-nums }
.pastille { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap }
.pastille.nouvelle { background: var(--bg); color: var(--muted); border: 1px solid var(--line) }
.pastille.entrainement { background: var(--sun-soft); color: var(--sun) }
.pastille.ancree { background: var(--good-soft); color: var(--good) }
.pastille.acquise { background: var(--good); color: #fff }
.pastille.reviser { background: var(--accent-soft); color: var(--accent) }
.r-statut { margin-top: -6px }
.enonce { background: var(--ardoise); color: var(--ardoise-ink); border-color: var(--ardoise) }
.enonce h2 { color: color-mix(in srgb, var(--ardoise-ink) 70%, transparent); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em }
.formule { font-size: 1.15rem; overflow-x: auto }
.etapes { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px }
.etapes li { overflow-x: auto }
.piege { border-left: 4px solid var(--bad) }
.piege h2 { color: var(--bad) }

/* Séance */
.question { gap: 18px }
.enonce-q { font-size: 1.12rem; font-weight: 500; overflow-x: auto }
.choix { display: grid; grid-template-columns: 1fr; gap: 10px }
.choix.deux { grid-template-columns: 1fr 1fr }
@media (min-width: 520px) { .choix { grid-template-columns: 1fr 1fr } }
.option { border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 14px; text-align: center; font-size: 1.05rem; min-height: 56px; overflow-x: auto }
.option:not(:disabled):hover { border-color: var(--accent); background: var(--accent-soft) }
.option:disabled { cursor: default; opacity: .65 }
.option.juste { border-color: var(--good); background: var(--good-soft); color: var(--good); opacity: 1 }
.option.faux { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); opacity: 1 }
.num { display: flex; gap: 10px }
.num input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1.15rem; font-variant-numeric: tabular-nums }
.retour-rep { border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; border: 1.5px solid }
.retour-rep.ok { background: var(--good-soft); border-color: var(--good) }
.retour-rep.ko { background: var(--bad-soft); border-color: var(--bad) }
.retour-rep.ok h2 { color: var(--good) }
.retour-rep.ko h2 { color: var(--bad) }
.gain { color: var(--sun); font-size: .9rem; margin-left: 6px }
.ancrage { font-weight: 600; color: var(--good) }
.rappel { background: var(--surface); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; overflow-x: auto }
.rappel-tit { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600 }

/* Bilan */
.bilan { flex-direction: row; gap: 10px }
.bilan .score { flex: 1; border: 0; background: var(--bg) }
.puces { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px }

/* Examens et bibliothèque */
details.niveau-carte summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px }
details.niveau-carte summary::-webkit-details-marker { display: none }
details.niveau-carte summary .ch-intro::after { content: " · voir"; color: var(--accent) }
details[open].niveau-carte summary .ch-intro::after { content: " · masquer" }
.examens-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.examen-ligne { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center }
.examen-ligne span:nth-child(2) { display: flex; flex-direction: column; min-width: 0 }
.examen-ligne small { color: var(--muted); font-size: .82rem }
.examen-ligne.verrou strong { color: var(--muted); font-weight: 500 }
.ex-num { width: 30px; height: 30px; border-radius: 50%; background: var(--sun-soft); color: var(--sun); font-family: var(--f-display); font-weight: 800; display: inline-grid; place-items: center; flex-shrink: 0 }
.verrou .ex-num { background: var(--bg); color: var(--muted); border: 1px dashed var(--line) }
.fiche-carte { gap: 6px }
.fiche-carte:hover { border-color: var(--accent) }
.fiche-carte.verrou { background: transparent; border-style: dashed }
.fiche h2 { display: flex; align-items: center; gap: 10px }
.fiche-regle { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); overflow-x: auto }
.fiche-piege { color: var(--bad); font-size: .9rem }
.examen-depart { border-color: var(--sun) }
.liste-regles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.liste-regles li { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap }
.liste-regles li > span:first-child { display: flex; flex-direction: column; min-width: 0 }
.liste-regles small { color: var(--muted); font-size: .8rem }
button.pastille { border: 0; cursor: pointer }
.clavier { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; user-select: none; -webkit-user-select: none }
.touche { min-height: 46px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 1.1rem; font-weight: 600; touch-action: manipulation; padding: 0 }
.touche.chiffre { background: var(--bg) }
.touche.op { color: var(--accent); background: var(--accent-soft); border-color: transparent }
.touche.action { color: var(--muted); font-size: .95rem }
.touche:active { transform: translateY(1px); border-color: var(--accent) }
.apercu { min-height: 1.3em; margin: 6px 2px 0; color: var(--muted); font-variant-numeric: tabular-nums }
.alerte { font-weight: 600; color: var(--bad); background: var(--bad-soft); border-radius: 10px; padding: 8px 12px; margin: 0 }
.passage { border: 1.5px solid var(--sun) }
.passage p, .lacunes p { margin: 0 }
.lacunes { border-left: 4px solid var(--bad) }
.pastille.faux { background: var(--bad-soft); color: var(--bad) }
.note-examen.ok .score:first-child .stat-val { color: var(--good) }
.note-examen.ko .score:first-child .stat-val { color: var(--bad) }
.corr.ok { border-left: 4px solid var(--good) }
.corr.ko { border-left: 4px solid var(--bad) }
.corr p { overflow-x: auto }


/* ---------- Mouvement ----------
   À chaque nouvel écran, les blocs arrivent l'un après l'autre ; les réponses réagissent (rebond, secousse, éclats). */
.entree > * { animation: arrive .5s cubic-bezier(.2,.7,.2,1) both }
.entree > :nth-child(2) { animation-delay: .04s } .entree > :nth-child(3) { animation-delay: .08s } .entree > :nth-child(4) { animation-delay: .12s }
.entree > :nth-child(5) { animation-delay: .16s } .entree > :nth-child(6) { animation-delay: .2s } .entree > :nth-child(7) { animation-delay: .24s }
.entree > :nth-child(n+8) { animation-delay: .28s }
@keyframes arrive { from { opacity: 0; transform: translateY(16px) } }
.entree .liste > *, .entree .badges > * { animation: arrive .45s cubic-bezier(.2,.7,.2,1) both }
.entree .liste > :nth-child(2), .entree .badges > :nth-child(2) { animation-delay: .05s }
.entree .liste > :nth-child(3), .entree .badges > :nth-child(3) { animation-delay: .1s }
.entree .liste > :nth-child(4), .entree .badges > :nth-child(4) { animation-delay: .15s }
.entree .liste > :nth-child(n+5), .entree .badges > :nth-child(n+5) { animation-delay: .2s }
.entree .jauge span { animation: remplit .9s .2s cubic-bezier(.2,.7,.2,1) both; transform-origin: left }
@keyframes remplit { from { transform: scaleX(0) } }
button.carte, .btn { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease }
button.carte:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(22,30,63,.5); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)) }
.btn:hover { transform: translateY(-1px) }
.btn.principal:active { transform: translateY(2px) }
.option { transition: transform .15s ease, background-color .2s ease, border-color .2s ease }
.option:not(:disabled):hover { transform: translateY(-2px) }
.option.juste { animation: pop .45s cubic-bezier(.34,1.56,.64,1) }
.option.faux { animation: secoue .4s ease }
#rep-num.faux-saisie { animation: secoue .4s ease }
@keyframes pop { 40% { transform: scale(1.06) } }
@keyframes secoue { 20%, 60% { transform: translateX(-6px) } 40%, 80% { transform: translateX(6px) } }
.retour-rep { animation: arrive .4s cubic-bezier(.2,.7,.2,1) both; position: relative }
.retour-rep.ko { animation: arrive .4s cubic-bezier(.2,.7,.2,1) both, secoue .4s .1s ease }
.eclats { position: absolute; left: 34px; top: 30px; width: 0; height: 0; pointer-events: none }
.eclats i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--c); animation: eclat .8s cubic-bezier(.2,.7,.2,1) forwards; opacity: 0 }
@keyframes eclat { 0% { opacity: 1; transform: translate(0, 0) rotate(0) } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(220deg) } }
.gain { display: inline-block; animation: gain .6s cubic-bezier(.34,1.56,.64,1) }
@keyframes gain { from { transform: scale(.3) translateY(8px); opacity: 0 } }
.level-gagne .badge-svg, .level-up .badge-svg { animation: medaille 1s cubic-bezier(.34,1.56,.64,1) both }
@keyframes medaille { 0% { transform: scale(.2) rotate(-200deg) } 70% { transform: scale(1.12) rotate(8deg) } }
.badge-item { transition: transform .3s cubic-bezier(.34,1.56,.64,1) }
.badge-item:not(.verrou):hover { transform: translateY(-4px) rotate(-6deg) scale(1.08) }
.passage .btn.principal { animation: appel 2.4s ease-in-out infinite }
@keyframes appel { 0%, 100% { box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 60%, #000), 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent) } 50% { box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 60%, #000), 0 0 0 10px transparent } }
.touche { transition: transform .1s ease, background-color .15s ease }
.touche:active { transform: scale(.92) }
.barre-points { transition: transform .3s ease }

/* Animations des espaces élève et professeur */
#fond-symboles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden }
#fond-symboles span { position: absolute; bottom: -60px; font-family: var(--f-display); font-weight: 800; color: color-mix(in srgb, var(--accent) 9%, transparent); animation: monte-fond linear infinite }
@keyframes monte-fond { from { transform: translateY(0) rotate(0) } to { transform: translateY(-115vh) rotate(160deg) } }
#app { position: relative; z-index: 1 }
.titre-vue, .bonjour h1 { position: relative; width: fit-content; max-width: 100% }
.entree .titre-vue::after, .entree .bonjour h1::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 4px; width: 56px; border-radius: 4px; background: var(--sun); animation: trait .7s .25s cubic-bezier(.2,.7,.2,1) both; transform-origin: left }
@keyframes trait { from { transform: scaleX(0) } }
.carte.chapitre, .stat { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease }
.carte.chapitre:hover, .stat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--accent) 60%, transparent) }
.entree .table-classe tbody tr { animation: arrive .45s cubic-bezier(.2,.7,.2,1) both }
.entree .table-classe tbody tr:nth-child(2) { animation-delay: .06s } .entree .table-classe tbody tr:nth-child(3) { animation-delay: .12s }
.entree .table-classe tbody tr:nth-child(4) { animation-delay: .18s } .entree .table-classe tbody tr:nth-child(5) { animation-delay: .24s }
.entree .table-classe tbody tr:nth-child(n+6) { animation-delay: .3s }
.table-classe tbody tr { transition: background .2s ease }
.table-classe tbody tr:hover { background: var(--accent-soft) }
.entree .code-classe { animation: brille 1.6s .5s ease both }
@keyframes brille { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent) } 40% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent) } }
.entree .connexion .carte.form { animation: arrive .55s .1s cubic-bezier(.2,.7,.2,1) both }
.entree .puces li { animation: arrive .4s cubic-bezier(.2,.7,.2,1) both }
.entree .puces li:nth-child(2) { animation-delay: .05s } .entree .puces li:nth-child(3) { animation-delay: .1s } .entree .puces li:nth-child(n+4) { animation-delay: .15s }
.btn.principal { transition: transform .15s ease, filter .2s ease }
.btn.principal:hover { filter: brightness(1.08) }

/* Pages de connexion : une ambiance élève (couleurs, badges) et une ambiance professeur (ardoise, sobre) */
.bandeau { position: relative; overflow: hidden; border-radius: 20px; padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; isolation: isolate }
.bandeau h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 800; line-height: 1.15 }
.bandeau p { max-width: 40ch }
.bandeau-pastille { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px }
.bandeau-eleve { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #8A3FD1)); color: #fff }
.bandeau-eleve .bandeau-pastille { background: #FFC94D; color: #1D2B4F }
.bandeau-eleve p { color: color-mix(in srgb, #fff 85%, transparent) }
.bandeau-eleve::after { content: "π"; position: absolute; right: -6px; bottom: -38px; font-family: var(--f-display); font-weight: 800; font-size: 9rem; color: color-mix(in srgb, #fff 12%, transparent); z-index: -1; animation: flotte-pi 6s ease-in-out infinite }
@keyframes flotte-pi { 50% { transform: translateY(-10px) rotate(-6deg) } }
.bandeau-badges { display: flex; gap: 6px; margin-top: 6px }
.bandeau-badges .badge-svg { filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); animation: medaille .9s cubic-bezier(.34,1.56,.64,1) both }
.bandeau-badges .badge-svg:nth-child(2) { animation-delay: .1s } .bandeau-badges .badge-svg:nth-child(3) { animation-delay: .2s } .bandeau-badges .badge-svg:nth-child(4) { animation-delay: .3s }
.bandeau-prof { background: var(--ardoise); color: var(--ardoise-ink); background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ardoise-ink) 14%, transparent) 1px, transparent 0); background-size: 18px 18px; border: 1px solid color-mix(in srgb, var(--ardoise-ink) 14%, transparent) }
.bandeau-prof .bandeau-pastille { background: color-mix(in srgb, var(--good) 22%, transparent); color: #7FE0B5; border: 1px solid color-mix(in srgb, #7FE0B5 40%, transparent) }
.bandeau-prof p { color: color-mix(in srgb, var(--ardoise-ink) 78%, transparent) }
.bandeau-etapes { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .93rem }
.bandeau-etapes li { display: flex; align-items: center; gap: 10px; animation: arrive .45s cubic-bezier(.2,.7,.2,1) both }
.bandeau-etapes li:nth-child(2) { animation-delay: .1s } .bandeau-etapes li:nth-child(3) { animation-delay: .2s }
.bandeau-etapes b { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #7FE0B5; color: #10301F; font-family: var(--f-display); flex-shrink: 0 }
.connexion-prof .btn.principal { background: #1F8A60; border-color: #1F8A60; color: #fff; box-shadow: 0 3px 0 #135C3F }
.connexion-prof .carte.form { border-top: 4px solid #2FA877 }
/* Deux ambiances bien distinctes : l'élève sur un papier crème lumineux (halo jaune « poche » et bleu), le professeur sur
   un papier quadrillé gris-bleu, comme un cahier de préparation. */
body.ambiance-eleve { background-color: var(--fond-eleve); background-image: radial-gradient(60rem 40rem at -10% -10%, color-mix(in srgb, var(--halo-eleve) 55%, transparent), transparent 70%), radial-gradient(50rem 36rem at 110% 105%, color-mix(in srgb, var(--halo-eleve-2) 60%, transparent), transparent 70%); background-attachment: fixed }
body.ambiance-prof { background-color: var(--fond-prof); background-image: linear-gradient(var(--grille-prof) 1px, transparent 1px), linear-gradient(90deg, var(--grille-prof) 1px, transparent 1px); background-size: 28px 28px; background-attachment: fixed }
body.ambiance-prof #app { max-width: 980px }
body.ambiance-prof .connexion { max-width: 560px; width: 100%; margin: 0 auto }
body.ambiance-prof #fond-symboles span { color: color-mix(in srgb, var(--good) 10%, transparent) }

/* Espace professeur : classes en tuiles ou en tableau */
.classes-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.bascule, .filtres { display: flex; gap: 4px; flex-wrap: wrap }
.bascule { background: var(--accent-soft); border-radius: 12px; padding: 4px }
.bascule button { border: 0; background: transparent; border-radius: 9px; padding: 7px 14px; font-weight: 600; color: var(--muted); font-size: .88rem }
.bascule button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 15%, transparent) }
.filtres button { border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 5px 13px; font-size: .85rem; font-weight: 600 }
.filtres button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg) }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px }
.tuile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; min-width: 0 }
.tuile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 26px -16px color-mix(in srgb, var(--accent) 70%, transparent) }
.tuile-lien { border: 0; background: none; text-align: left; padding: 16px; display: flex; flex-direction: column; gap: 12px; color: inherit; font: inherit; cursor: pointer }
.tuile-haut { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap }
.tuile-corps { display: flex; align-items: center; gap: 14px; min-width: 0 }
.tuile-corps > span:last-child { display: flex; flex-direction: column; min-width: 0 }
.tuile-nom { font-family: var(--f-display); font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere }
.anneau { --p: 0; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--good) calc(var(--p) * 1%), var(--accent-soft) 0) }
.anneau b { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: .82rem; font-variant-numeric: tabular-nums }
.tuile-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: .8rem; color: var(--muted) }
.tuile-chiffres span { background: var(--bg); border-radius: 10px; padding: 6px 4px; text-align: center }
.tuile-chiffres b { display: block; font-family: var(--f-display); font-size: 1.15rem; color: var(--ink) }
.tuile-pied { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px dashed var(--line); background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface)) }
.tuile-pied .copier { margin-left: auto }
.copier { border: 1.5px solid var(--line); background: var(--surface); color: var(--accent); border-radius: 8px; padding: 3px 10px; font-size: .8rem; font-weight: 600 }
.copier.ok { color: var(--good); border-color: var(--good) }
.entree .tuiles > * { animation: arrive .45s cubic-bezier(.2,.7,.2,1) both }
.entree .tuiles > :nth-child(2) { animation-delay: .06s } .entree .tuiles > :nth-child(3) { animation-delay: .12s } .entree .tuiles > :nth-child(n+4) { animation-delay: .18s }
.nouvelle-classe { padding: 0; gap: 0 }
.nouvelle-classe summary { padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px }
.nouvelle-classe summary::-webkit-details-marker { display: none }
.nouvelle-classe .plus { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 1.2rem; transition: transform .25s ease }
.nouvelle-classe[open] .plus { transform: rotate(45deg) }
.nouvelle-classe .form { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 12px }

/* Tableau de bord élève : level et badges à gauche, bibliothèque à droite, toujours visibles sur ordinateur */
body.large #app { max-width: 1180px }
.tdb { display: grid; gap: 18px; align-items: start }
.tdb-centre { display: flex; flex-direction: column; gap: 16px; min-width: 0 }
.colle { display: flex; flex-direction: column; gap: 14px }
@media (min-width: 1000px) {
  .tdb { grid-template-columns: 250px minmax(0, 1fr) 270px }
  .tdb-gauche, .tdb-droite { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 4px }
}
@media (max-width: 999px) { .profil-eleve { display: none } .level-colonne { flex-direction: row; text-align: left; flex-wrap: wrap } .level-colonne .level-medaille .badge-svg { width: 60px; height: 60px } .level-colonne .level-nom { flex: 1 } .mini-badge .badge-svg { max-width: 34px } }
.tdb-tete { display: grid; gap: 12px; align-items: center }
@media (min-width: 1000px) { .tdb-tete { grid-template-columns: auto minmax(0, 1fr); gap: 24px } }
.profil-eleve { flex-direction: row; align-items: center; gap: 12px; padding: 14px }
.profil-eleve div { display: flex; flex-direction: column; min-width: 0 }
.avatar { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--accent), #8A3FD1); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--accent) 70%, transparent) }
.level-colonne { align-items: center; text-align: center; gap: 10px; background: linear-gradient(170deg, var(--sun-soft), var(--surface) 70%) }
.level-colonne .jauge { width: 100%; background: color-mix(in srgb, var(--sun) 18%, var(--surface)) }
.level-colonne .jauge span { background: linear-gradient(90deg, var(--sun), #F2B33D) }
.level-nom { font-family: var(--f-display); font-size: 1.15rem }
.level-medaille { animation: flotte-medaille 4s ease-in-out infinite }
.level-medaille .badge-svg { filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--sun) 45%, transparent)) }
@keyframes flotte-medaille { 50% { transform: translateY(-6px) rotate(-3deg) } }
.mini-badges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px }
.mini-badge { display: grid; place-items: center; border-radius: 12px; padding: 4px; transition: transform .3s cubic-bezier(.34,1.56,.64,1) }
.mini-badge .badge-svg { width: 100%; height: auto; max-width: 44px }
.mini-badge.verrou { opacity: .55 }
.mini-badge:not(.verrou):hover { transform: translateY(-3px) rotate(-8deg) scale(1.1) }
.mini-badge.actuel { background: var(--sun-soft); box-shadow: 0 0 0 2px var(--sun) inset; animation: brille-badge 2.6s ease-in-out infinite }
@keyframes brille-badge { 50% { box-shadow: 0 0 0 2px var(--sun) inset, 0 0 0 5px color-mix(in srgb, var(--sun) 25%, transparent) } }
.encourage { display: flex; gap: 14px; align-items: center; color: #fff; border-radius: var(--r); padding: 14px 18px; background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #8A3FD1)); box-shadow: 0 12px 24px -16px color-mix(in srgb, var(--accent) 80%, transparent); position: relative; overflow: hidden }
.encourage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); transform: translateX(-100%); animation: reflet 4s 1s ease-in-out infinite }
@keyframes reflet { 30%, 100% { transform: translateX(100%) } }
.encourage p, .encourage-texte { margin: 0; font-weight: 500 }
.encourage-icone { font-size: 1.7rem; line-height: 1; animation: rebond 2.4s ease-in-out infinite }
@keyframes rebond { 0%, 100% { transform: translateY(0) } 15% { transform: translateY(-6px) scale(1.1) } 30% { transform: translateY(0) } }
.biblio-colonne { gap: 10px; background: linear-gradient(170deg, var(--accent-soft), var(--surface) 60%) }
.biblio-tete { display: flex; align-items: center; gap: 10px; font-size: 1.05rem }
.biblio-icone { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 2px 6px color-mix(in srgb, var(--ink) 12%, transparent); font-size: 1.2rem }
.biblio-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column }
.biblio-ligne { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; font-size: .9rem; text-align: left; transition: padding .2s ease, color .2s ease }
button.biblio-ligne:hover { padding-left: 8px; color: var(--accent) }
.biblio-ligne.verrou { color: var(--muted) }
.biblio-sous { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-top: 4px }
.entree .tdb-gauche, .entree .tdb-droite { animation: arrive .55s .1s cubic-bezier(.2,.7,.2,1) both }
.entree .tdb-centre > * { animation: arrive .5s cubic-bezier(.2,.7,.2,1) both }
.entree .tdb-centre > :nth-child(2) { animation-delay: .06s } .entree .tdb-centre > :nth-child(3) { animation-delay: .12s } .entree .tdb-centre > :nth-child(n+4) { animation-delay: .18s }

/* Ligue de la semaine (élève) et classement de classe (professeur) */
body.ligue #app { max-width: 720px }
.ligue-carte { gap: 10px }
.ligue-tete { display: flex; align-items: center; gap: 12px }
.ligue-tete div { display: flex; flex-direction: column }
.ligue-tete .bouclier { filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); animation: flotte-medaille 4s ease-in-out infinite }
.ligue-place { margin: 0; font-size: .92rem }
.liste-ligue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px }
.ligne-ligue { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; font-size: .92rem; transition: background .2s ease }
.ligne-ligue:hover { background: var(--bg) }
.ligne-ligue.moi { background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent) inset; font-weight: 600 }
.ligne-ligue .rang, .ligne-ligue .medaille { width: 24px; flex-shrink: 0; text-align: center; font-family: var(--f-display); font-weight: 800; color: var(--muted) }
.medaille { height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff !important; font-size: .8rem }
.medaille.m1 { background: linear-gradient(135deg, #FFD95C, #D9A100) } .medaille.m2 { background: linear-gradient(135deg, #DDE3EC, #8D99AB) } .medaille.m3 { background: linear-gradient(135deg, #EDBF98, #A9693B) }
.avatar.petit { width: 30px; height: 30px; border-radius: 10px; font-size: .9rem; box-shadow: none }
.nom-ligue { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.nom-ligue small { font-weight: 400; color: var(--muted) }
.savant { cursor: help; text-decoration: underline dotted var(--muted); text-underline-offset: 3px }
.savant:focus-visible { outline: 2px solid var(--brand, #3446D4); outline-offset: 2px; border-radius: 4px }
#bulle-savant { position: fixed; z-index: 80; max-width: min(320px, calc(100vw - 24px)); padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--surface);
  font-size: .85rem; line-height: 1.4; box-shadow: 0 8px 24px rgba(0,0,0,.18); pointer-events: none; white-space: normal }
#bulle-savant strong { display: block; margin-bottom: 2px }
.xp-ligue { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--sun); display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap }
.xp-ligue small { font-weight: 500; color: var(--good); font-size: .75rem }
.liste-ligue.grande .ligne-ligue { padding: 11px 12px; font-size: 1rem; background: var(--surface); border: 1px solid var(--line) }
.liste-ligue.grande .ligne-ligue.moi { background: var(--accent-soft); border-color: var(--accent) }
.liste-ligue.grande .ligne-ligue.monte .rang, .liste-ligue.grande .ligne-ligue.monte .medaille { box-shadow: 0 0 0 2px var(--good) }
.separateur { list-style: none; text-align: center; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 8px 0 4px; display: flex; align-items: center; gap: 10px }
.separateur::before, .separateur::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: currentColor; opacity: .35 }
.separateur.monte { color: var(--good) } .separateur.descend { color: var(--bad) }
.ligue-couverture { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px 22px; border-radius: 20px; color: var(--ardoise-ink); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 55%, var(--ardoise)), var(--ardoise)) }
.ligue-couverture h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); font-weight: 800 }
.ligue-couverture p { margin: 0; color: color-mix(in srgb, var(--ardoise-ink) 82%, transparent); max-width: 46ch }
.fin-semaine { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ardoise-ink) 14%, transparent); font-weight: 600; font-size: .85rem }
.ligues-rangee { display: flex; align-items: center; gap: 6px; max-width: 100%; overflow-x: auto; padding: 8px 4px 12px; scrollbar-width: none }
.ligue-pastille { flex-shrink: 0; transition: transform .3s ease }
.ligue-pastille.actuelle { transform: translateY(-4px); filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); animation: medaille .9s cubic-bezier(.34,1.56,.64,1) both }
.entree .liste-ligue.grande > * { animation: arrive .45s cubic-bezier(.2,.7,.2,1) both }
.entree .liste-ligue.grande > :nth-child(2) { animation-delay: .04s } .entree .liste-ligue.grande > :nth-child(3) { animation-delay: .08s } .entree .liste-ligue.grande > :nth-child(n+4) { animation-delay: .12s }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 10px; padding: 6px 0 4px }
.marche { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0 }
.marche strong { font-size: .9rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.marche > span:not(.avatar) { font-size: .8rem; color: var(--sun); font-weight: 700 }
.socle { width: 100%; border-radius: 10px 10px 4px 4px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; color: #fff; animation: monte-socle .7s .2s cubic-bezier(.2,.7,.2,1) both; transform-origin: bottom }
@keyframes monte-socle { from { transform: scaleY(0) } }
.marche.m1 .socle { height: 78px; background: linear-gradient(180deg, #FFD95C, #D9A100) } .marche.m2 .socle { height: 58px; background: linear-gradient(180deg, #DDE3EC, #8D99AB) } .marche.m3 .socle { height: 44px; background: linear-gradient(180deg, #EDBF98, #A9693B) }
.marche.m1 .avatar { width: 54px; height: 54px; font-size: 1.4rem }
.classement-prof { gap: 14px }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }

/* Espace professeur */
.form select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; margin-top: -6px }
.facultatif { font-weight: 400; color: var(--muted); font-size: .85rem }
.code-classe { font-family: var(--f-display); font-weight: 800; letter-spacing: .12em; background: var(--accent-soft); color: var(--accent); padding: 2px 9px; border-radius: 8px; font-size: .9rem; white-space: nowrap }
.sous-titre { color: var(--muted); margin-top: -10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.attente { text-align: center; padding-top: 40px }
.muet { color: var(--muted); font-size: .88rem }
.table-defile { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) }
.table-classe { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; min-width: 560px }
.table-classe th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap }
.table-classe td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap }
.table-classe tr:last-child td { border-bottom: 0 }
.eleve-nom { display: flex; flex-direction: column; gap: 2px }
.eleve-nom .lien { font-weight: 600 }
.table-classe small { color: var(--muted); font-size: .78rem }
.table-classe .jauge { width: 56px; display: inline-block; vertical-align: middle; margin-right: 8px }
.table-classe .alerte { color: var(--bad); font-weight: 600 }
.danger-lien { color: var(--bad) }
.confirmer { flex-basis: 100%; display: flex; flex-direction: column; gap: 10px; background: var(--bad-soft); border-radius: var(--r); padding: 14px }
.ligne-chapitre { padding: 12px 16px; gap: 8px }
.ligne-chapitre .ch-haut span { font-variant-numeric: tabular-nums; color: var(--muted) }
/* Brevet blanc et bac blanc */
.blanc-carte { display: grid; gap: 12px; border-left: 5px solid var(--sun) }
.blanc-tete { display: flex; gap: 12px; align-items: center }
.blanc-tete div { display: grid; gap: 2px; min-width: 0 }
.blanc-tete span:not(.blanc-icone) { color: var(--muted); font-size: .88rem }
.blanc-icone { font-size: 1.8rem; width: 48px; height: 48px; border-radius: 14px; background: var(--sun-soft); display: grid; place-items: center; flex-shrink: 0 }
.blanc-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
.blanc-notes span { background: var(--bg); border-radius: 12px; padding: 10px; display: grid; text-align: center; font-variant-numeric: tabular-nums }
.blanc-notes b { font-family: var(--f-display); font-size: 1.35rem }
.blanc-notes small { color: var(--muted); font-size: .75rem }
.sujet, .historique, .par-exercice, .questions-blanc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.sujet li { display: flex; gap: 12px; align-items: center }
.sujet li > span:nth-child(2), .par-exercice li > span:first-child, .historique li > span:first-child { display: grid; gap: 2px; flex: 1; min-width: 0 }
.sujet small, .par-exercice small, .historique small { color: var(--muted); font-size: .82rem }
.pts { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--sun); background: var(--sun-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; font-family: var(--f-body) }
.historique li, .par-exercice li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 140px) auto; gap: 12px; align-items: center; font-variant-numeric: tabular-nums }
.jauge.petite.faible span { background: var(--bad) }
.case { display: flex; gap: 10px; align-items: center; margin: 4px 2px 10px; color: var(--muted) }
.case input { width: 18px; height: 18px; accent-color: var(--accent) }
.chrono-barre { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); padding-bottom: 10px; border-bottom: 1px solid var(--line) }
.chrono { font-variant-numeric: tabular-nums; font-weight: 800; font-family: var(--f-display); font-size: 1.15rem; padding: 4px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent) }
.chrono.urgent { background: var(--bad-soft); color: var(--bad); animation: pouls 1s ease-in-out infinite }
@keyframes pouls { 50% { transform: scale(1.06) } }
.exercice h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.questions-blanc > li { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; scroll-margin-top: 80px }
.questions-blanc > li:first-child { border-top: 0; padding-top: 4px }
.q-tete { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem }
.option.choisie { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent) }
.saisie-blanc { display: grid; gap: 6px }
.saisie-blanc input { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1.1rem; font-variant-numeric: tabular-nums; width: 100%; box-sizing: border-box }
.saisie-blanc input:focus { outline: none; border-color: var(--accent) }
#confirmer-quitter { margin-top: 10px; background: var(--sun-soft) }
.symboles { display: flex; flex-wrap: wrap; gap: 5px }
.symboles .touche { min-height: 38px; min-width: 38px; padding: 0 6px; font-size: 1rem }
.rendre { display: grid; gap: 12px; text-align: center }
@media (prefers-reduced-motion: reduce) { .chrono.urgent { animation: none } }
/* Capsules méthode */
.capsules-carte, .capsule-carte { display: flex; gap: 14px; align-items: center; text-align: left; width: 100% }
.cap-vignette { width: 64px; aspect-ratio: 16 / 10; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-size: 1.1rem;
  background: linear-gradient(135deg, hsl(var(--h) 70% 52%), hsl(calc(var(--h) + 40) 75% 42%)); box-shadow: 0 6px 14px -8px hsl(var(--h) 70% 35%) }
.cap-vignette span { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; padding-left: 3px }
.cap-texte { display: grid; gap: 2px; flex: 1; min-width: 0 }
.cap-texte small { color: var(--muted); font-size: .85rem }
.capsule-carte.vue .cap-vignette { opacity: .75 }
.capsules-carte:hover .cap-vignette span, .capsule-carte:hover .cap-vignette span { transform: scale(1.12); transition: transform .2s ease }
.lecteur { display: grid; gap: 10px }
.ecran { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 20px; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 20% 15%, #4E5FF0 0, transparent 55%), radial-gradient(circle at 85% 90%, #B86A00 0, transparent 50%), #141B3D; box-shadow: 0 18px 40px -22px #141B3D }
.sc { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 22px 26px; text-align: center; overflow-y: auto; animation: scene .5s ease both }
.sc h2 { font-family: var(--f-display); font-size: clamp(1.15rem, 3.4vw, 1.7rem); margin: 0; text-wrap: balance; color: #fff }
.sc p { margin: 0; max-width: 46ch; font-size: clamp(.95rem, 2.4vw, 1.15rem); line-height: 1.5; color: #E4E8FF }
.sc-num { position: absolute; top: 10px; right: 14px; font-size: .75rem; color: #B9C2F5; font-variant-numeric: tabular-nums }
.sc-etiq { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: #FFD27A }
.sc-logo { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 1.4rem; animation: pop .6s cubic-bezier(.34,1.56,.64,1) both }
.sc-formule { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 14px 18px; font-size: clamp(1rem, 2.8vw, 1.3rem); max-width: 100%; overflow-x: auto; animation: monte .6s .25s ease both }
.sc-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; font-size: clamp(.95rem, 2.5vw, 1.15rem); max-width: 100% }
.sc-etapes li { padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.07); color: #C9D0F7; overflow-x: auto }
.sc-etapes li.neuve { background: rgba(255,210,122,.16); color: #fff; border-left: 3px solid #FFD27A; animation: monte .45s ease both }
.sc-piege { background: radial-gradient(circle at 50% 0, #9E2F2A 0, transparent 70%), #2A1530 }
.sc-etape .sc-icone { font-size: 2.4rem; animation: pop .6s cubic-bezier(.34,1.56,.64,1) both }
.sc-fin .sc-logo { background: #FFD27A; color: #141B3D }
@keyframes scene { from { opacity: 0; transform: translateX(18px) } to { opacity: 1; transform: none } }
@keyframes monte { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.segments { display: flex; gap: 4px }
.seg { flex: 1; height: 6px; border: 0; padding: 0; border-radius: 99px; background: var(--line); overflow: hidden; cursor: pointer }
.seg span { display: block; height: 100%; background: var(--accent); border-radius: inherit }
.commandes { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap }
.btn.rond { min-width: 48px; padding-inline: 0 }
#cap-voix[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent) }
/* (v2.48) Capsules : sous-titres surlignés, résumé, quiz */
.sous-titres { min-height: 3.2em; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 1rem; line-height: 1.6; color: var(--muted) }
.sous-titres span { transition: background .2s, color .2s; border-radius: 6px; padding: 1px 2px }
.sous-titres span.dite { background: var(--sun-soft); color: var(--ink); font-weight: 600 }
.cap-vitesse { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted) }
.cap-vitesse select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink) }
.sc-resume { justify-content: flex-start; background: radial-gradient(circle at 80% 0, #1F7A5C 0, transparent 60%), #10233A }
.sc-retenir { margin: 0; padding: 0 0 0 1.2em; display: grid; gap: 8px; text-align: left; width: 100%; max-width: 640px; font-size: clamp(.85rem, 2.2vw, 1.02rem); color: #E4E8FF }
.sc-retenir .fa-formule { display: inline-block; margin: 4px 8px 0 0; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.1); overflow-x: auto; max-width: 100% }
.sc-retenir p { font-size: inherit }
.sc-quiz { background: radial-gradient(circle at 20% 0, #6A3FC9 0, transparent 60%), #1A1640 }
.quiz-zone { display: grid; gap: 12px; width: 100%; max-width: 560px }
.sc-q { font-weight: 600; color: #fff !important; max-width: none !important }
.quiz-choix { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center }
.quiz-choix .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3) }
.quiz-choix .btn.juste { background: #1F8F65; border-color: #52CB98 }
.quiz-choix .btn.faux { background: #A33A33; border-color: #F2837A }
.quiz-choix input { font: inherit; width: 9em; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff; text-align: center }
.quiz-choix input.juste { border-color: #52CB98; background: #1F8F65 } .quiz-choix input.faux { border-color: #F2837A; background: #A33A33 }
.quiz-retour { display: grid; gap: 8px; justify-items: center; color: #fff }
.quiz-retour p { font-size: .95rem }
.capsule-resume ol { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 12px }
.capsule-resume li p { margin-top: 2px }
.capsule-resume .a-retenir { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: var(--good-soft); border-left: 3px solid var(--good) }
.capsule-resume .a-retenir .etiq { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--good) }
.capsule-resume .fa-formule { overflow-x: auto; max-width: 100% }
.capsule-resume .piege-court { margin-top: 6px; font-size: .92rem; color: var(--bad) }
@media print { body.imprime-resume * { visibility: hidden } body.imprime-resume .capsule-resume, body.imprime-resume .capsule-resume * { visibility: visible } body.imprime-resume .capsule-resume { position: absolute; inset: 0 auto auto 0; width: 100% } body.imprime-resume #cap-imprimer { display: none } }
.video-cadre { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000 }
.video-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.video-prof { display: grid; gap: 10px }
.video-ligne { display: grid; gap: 8px }
.video-ligne .rangee { flex-wrap: nowrap }
.video-ligne input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit }
.video-ligne .note:empty { display: none }
@media (prefers-reduced-motion: reduce) { .sc, .sc-etapes li.neuve, .sc-formule, .sc-logo, .sc-etape .sc-icone { animation: none } }
/* Assistant de l'élève, à droite */
.aide-zone { position: fixed; z-index: 30; right: 0; bottom: 0 }
.aide-bouton { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px 12px 14px;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; box-shadow: 0 12px 28px -12px var(--accent); cursor: pointer; animation: arrive .5s .4s cubic-bezier(.34,1.56,.64,1) both }
.aide-bouton span { font-size: 1.25rem }
.aide-bouton:hover { transform: translateY(-2px) }
@keyframes arrive { from { opacity: 0; transform: translateY(20px) scale(.9) } }
.aide-panneau { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -20px 0 40px -30px rgba(20,27,61,.5); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); animation: glisse .3s ease both }
@keyframes glisse { from { transform: translateX(40px); opacity: 0 } }
.aide-tete { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line) }
.aide-tete div { display: grid; flex: 1; min-width: 0 }
.aide-tete small { color: var(--muted); font-size: .78rem }
.aide-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 1.1rem }
.aide-fermer { border: 0; background: var(--bg); color: var(--muted); width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; cursor: pointer }
.aide-fil { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain }
.bulle { flex-shrink: 0; max-width: 92%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; font-size: .95rem; overflow-x: auto }
.bulle.aide { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 4px }
.bulle.eleve { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px }
.bulle.attente { display: flex; gap: 4px }
.bulle.attente span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: pouls 1s infinite }
.bulle.attente span:nth-child(2) { animation-delay: .15s } .bulle.attente span:nth-child(3) { animation-delay: .3s }
.aide-regle { display: grid; gap: 6px; margin-top: 8px }
.aide-chap, .aide-sous { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600 }
.aide-formule { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; overflow-x: auto }
.aide-etapes { margin: 0; padding-left: 20px; display: grid; gap: 2px }
.aide-piege { margin: 0; color: var(--bad) }
.aide-regle p { margin: 0 }
.aide-liens { display: flex; flex-wrap: wrap; gap: 4px 14px }
.aide-puces { display: flex; gap: 6px; padding: 8px 16px 0; overflow-x: auto; scrollbar-width: none }
.aide-puces button { flex-shrink: 0; border: 1px solid var(--line); background: var(--surface); color: var(--accent); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .82rem; cursor: pointer; white-space: nowrap }
.aide-saisie { display: flex; gap: 8px; padding: 10px 16px 14px }
.aide-saisie input { flex: 1; min-width: 0; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit }
.aide-saisie .btn { padding-inline: 16px }
@media (min-width: 1240px) { body.aide-ouverte { padding-right: 400px } }
@media (max-width: 560px) { .aide-bouton b { display: none } .aide-bouton { padding: 14px } }
@media (prefers-reduced-motion: reduce) { .aide-bouton, .aide-panneau, .bulle.attente span { animation: none } }
/* Avatars */
.avatar.emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-weight: 400; font-size: 1.55rem; line-height: 1 }
.avatar.emoji.petit { font-size: 1rem }
.marche.m1 .avatar.emoji { font-size: 1.8rem }
.avatar.grand { width: 84px; height: 84px; border-radius: 24px; font-size: 2.4rem }
.avatar.emoji.grand { font-size: 2.8rem }
.avatar-bouton { position: relative; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 14px; flex-shrink: 0 }
.avatar-bouton .crayon { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--accent); font-size: .7rem; display: grid; place-items: center }
.avatar-bouton:hover .avatar { transform: scale(1.06) rotate(-4deg); transition: transform .2s ease }
.profil-eleve div { display: grid; min-width: 0 }
.petit-lien { font-size: .8rem; justify-self: start; padding: 0 }
.avatar-apercu { display: flex; gap: 16px; align-items: center }
.avatar-apercu div { display: grid; gap: 4px }
.grille-avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px }
.choix-avatar { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; transition: transform .15s ease, border-color .15s ease }
.choix-avatar:not(:disabled):hover { transform: translateY(-3px); border-color: var(--accent) }
.choix-avatar.actif { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft) }
.choix-avatar.verrou { cursor: default; opacity: .55 }
.choix-avatar.verrou .avatar { filter: grayscale(1) }
.bonjour { display: flex; gap: 14px; align-items: center }
.bonjour > div { min-width: 0 }
@media (min-width: 1000px) { .bonjour-avatar { display: none } }
.choix-avatar small { font-size: .7rem; color: var(--muted) }
/* Chapitres en grille compacte */
.chapitres-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px }
.chapitre-tuile { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; min-width: 0; transition: transform .2s ease, border-color .2s ease }
.chapitre-tuile:hover { transform: translateY(-2px); border-color: var(--accent) }
.ch-num { width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: .9rem; background: var(--bg); color: var(--muted) }
.chapitre-tuile.commence .ch-num { background: var(--accent-soft); color: var(--accent) }
.chapitre-tuile.ancre .ch-num { background: var(--good-soft); color: var(--good) }
.ch-texte { display: grid; gap: 5px; flex: 1; min-width: 0; width: 100%; text-align: left; justify-items: stretch }
.courbe-svg:focus:not(:focus-visible) { outline: none }
.ch-texte strong { font-size: .92rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.ch-ligne { display: flex; align-items: center; gap: 8px }
.ch-ligne .jauge { flex: 1; margin: 0 }
.ch-ligne small { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right }
@media (max-width: 480px) { .chapitres-grille { grid-template-columns: 1fr 1fr; gap: 6px } .chapitre-tuile { padding: 9px 10px } .ch-num { display: none } .ch-texte strong { font-size: .85rem } }
/* Courbes de progression */
.carte-courbe { display: grid; gap: 10px }
.courbe-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap }
.bascule.petite button { padding: 4px 10px; font-size: .8rem }
.filtres.mesures { margin: 0 }
.filtres.mesures button { font-size: .8rem }
.courbe { position: relative; margin: 0 }
.courbe-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y }
.courbe-svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px }
.courbe-svg .grille { stroke: var(--line); stroke-width: 1 }
.courbe-svg .axe { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums }
.courbe-svg .trait { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round }
.courbe-svg .voile { fill: var(--accent); opacity: .1 }
.courbe-svg .barre-donnee { fill: var(--accent) }
.courbe-svg .point-fin, .courbe-svg .point-survol { fill: var(--accent); stroke: var(--surface); stroke-width: 2 }
.courbe-svg .valeur-fin { fill: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums }
.courbe-svg .repere { stroke: var(--muted); stroke-width: 1 }
.courbe-svg .zone-survol { fill: transparent; cursor: crosshair }
.bulle-courbe { position: absolute; top: -6px; display: grid; gap: 1px; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: .78rem; pointer-events: none; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(0,0,0,.4) }
.bulle-courbe strong { font-size: .95rem; font-variant-numeric: tabular-nums }
.chiffres summary { cursor: pointer; color: var(--accent); font-size: .82rem; margin-top: 4px }
.chiffres table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 6px }
.chiffres td, .chiffres th { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums }
.chiffres .table-defile { max-height: 220px; overflow-y: auto }
.courbe-vide { margin: 0; padding: 24px 8px; text-align: center; border: 1px dashed var(--line); border-radius: 12px }
/* Bandeau des scores, fixé en haut en descendant */
.barre-fixe { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px -18px rgba(20,27,61,.5); transform: translateY(-110%); transition: transform .25s ease; font-size: .9rem }
.barre-fixe.visible { transform: none }
.bf-stats { display: flex; gap: 14px; font-variant-numeric: tabular-nums }
.bf-objectif { display: flex; align-items: center; gap: 10px; min-width: 0 }
.bf-objectif .jauge { width: 140px; margin: 0 }
.barre-fixe .btn.petit { padding: 7px 14px; font-size: .85rem }
@media (max-width: 560px) { .barre-fixe { gap: 10px; font-size: .82rem; flex-wrap: nowrap; justify-content: space-between } .bf-stats { gap: 8px } .bf-mot, .bf-objectif .jauge { display: none } .barre-fixe .btn.petit { padding: 6px 10px; white-space: nowrap } }
@media (min-width: 1240px) { body.aide-ouverte .barre-fixe { right: 400px } }
@media (prefers-reduced-motion: reduce) { .barre-fixe { transition: none } }
/* Ligue ouverte à tous */
.nom-ligue { display: grid; gap: 3px; min-width: 0 }
.infos-ligue { white-space: normal; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .75rem; font-weight: 500; color: var(--muted) }
.niveau-pastille { font-size: .7rem; padding: 1px 8px }
.ligue-mini { display: inline-flex; align-items: center; gap: 4px }
.monte-ok { color: var(--good); font-weight: 700 }
.ligne-ligue.monte:not(.moi) { background: color-mix(in srgb, var(--good-soft) 55%, transparent) }
.obj-ligue { display: grid; gap: 8px }
.obj-ligue p { margin: 0; font-size: .9rem; color: var(--muted) }
.obj-ligue p strong { color: var(--ink) }
.obj-ligue.atteint .jauge span { background: var(--good) }
.ligue-carte .obj-ligue { padding: 10px 0 4px; border-top: 1px solid var(--line); margin-top: 6px }
.filtres-ligue { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between }
/* Téléphone et tablette : ligue, level et badges d'abord, puis le centre, puis bibliothèque, capsules et classe */
@media (max-width: 999px) { .tdb-droite { order: -1 } .tdb-gauche { order: 2 } }
.obj-ligue.compact { gap: 6px; padding: 8px 0 2px; font-size: .85rem }
.obj-ligue.compact .obj-ligne span { color: var(--muted) }
.carte.chapitre-tuile { display: flex; flex-direction: row; align-items: center }
/* Les colonnes collantes passent sous le bandeau des scores */
@media (min-width: 1000px) { .tdb-gauche, .tdb-droite { top: 70px; max-height: calc(100vh - 86px) } }
/* Mon profil */
.bouton-profil { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px }
.avatar.mini { width: 24px; height: 24px; border-radius: 8px; font-size: .75rem; box-shadow: none }
.avatar.emoji.mini { font-size: .85rem }
@media (max-width: 480px) { .bouton-profil span:not(.avatar) { display: none } .bouton-profil { padding: 4px } }
.profil-grand { flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap }
.profil-grand > div { display: grid; gap: 6px; min-width: 0 }
.profil-grand h2 { margin: 0; font-size: 1.5rem }
.profil-pastilles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem }
/* Contact de l'équipe du site */
.contact-tete { display: flex; gap: 12px; align-items: center }
.contact-tete div { display: grid; gap: 2px }
.contact-icone { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0 }
.contact textarea, .aider textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; resize: vertical }
.contact select { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit }

/* Espace professeur : tableau de bord moderne en trois colonnes (comme l'élève) */
body.ambiance-prof.large #app { max-width: 1240px }
.pdb-cote { display: flex; flex-direction: column; gap: 14px; min-width: 0 }
@media (max-width: 999px) { .pdb .tdb-centre { order: -2 } .pdb .tdb-droite { order: -1 } .pdb .tdb-gauche { order: 0 } }
.encourage-prof { background: linear-gradient(120deg, var(--ardoise), color-mix(in srgb, var(--ardoise) 55%, var(--accent))); box-shadow: 0 14px 28px -18px var(--ardoise) }
.ambiance-prof .carte, .ambiance-prof .stat, .ambiance-prof .tuile { box-shadow: 0 1px 2px rgba(22,30,63,.04), 0 10px 24px -18px rgba(22,30,63,.35) }
.kpi .stat { position: relative; padding-top: 14px; overflow: hidden }
.kpi .stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--k, var(--accent)) }
.kpi .stat:nth-child(1) { --k: var(--sun) } .kpi .stat:nth-child(2) { --k: var(--good) } .kpi .stat:nth-child(3) { --k: var(--accent) }
.kpi .stat-val { color: var(--k) !important }
.kpi-icone { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; background: color-mix(in srgb, var(--k) 14%, var(--surface)); margin-bottom: 6px }
.prof-carte { display: flex; align-items: center; gap: 12px }
.prof-carte > div, .eleve-carte { display: flex; flex-direction: column; min-width: 0 }
.eleve-carte { align-items: center; text-align: center; gap: 6px }
.eleve-carte strong, .classe-carte-nom { font-family: var(--f-display); font-size: 1.3rem; font-weight: 800 }
.classe-carte { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 60%) }
.classe-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.classe-code .code-classe { font-size: 1.25rem }
.mini-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px }
.mini-stats span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .82rem; color: var(--muted) }
.mini-stats b { color: var(--ink) }
.pdb-titre { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0 0 10px }
.pdb-liste ol, .pdb-liste ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.pdb-liste li { display: flex; align-items: center; gap: 8px; font-size: .92rem; min-width: 0 }
.pdb-nom { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25 }
.pdb-nom .lien, .pdb-liste li > .lien { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0 }
.pdb-nom small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .78rem }
.pdb-liste li > b { margin-left: auto; font-variant-numeric: tabular-nums; font-size: .85rem; white-space: nowrap }
.pdb-liste b.relance { color: var(--bad); font-weight: 600; font-size: .8rem }
.pdb-liste .pdb-lacunes li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--bg); border-left: 3px solid var(--sun) }
.pdb-liste .pdb-lacunes li > small { margin: 0 }
.pdb-cote, .pdb-cote .pdb-lacunes li { text-align: left; align-items: stretch }
.chapitres-suivi { align-items: start }
.pdb-liste .historique li { display: flex }
.pdb-liste .medaille { width: 24px; flex-shrink: 0; font-family: var(--f-display); font-weight: 800 }
.pdb-aide { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted) }
.pdb-aide p { margin: 0 }
.pdb-aide-icone { font-size: 1.2rem }
.pdb-cote .classement-prof { padding: 14px }
.pdb-cote .classement-prof .podium { transform: scale(.86); transform-origin: top center; margin-bottom: -18px }
.pdb-cote .classes-tete { margin-top: 0 }
.pdb-cote .pied { margin: 0 }
.chapitres-suivi { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px }
.pdb-cote .classes-tete { flex-direction: column; align-items: stretch; gap: 8px }
.pdb-cote .classes-tete .section-titre { margin: 0 }
.pdb-cote .bascule { display: flex; width: 100% }
.pdb-cote .bascule button { flex: 1; padding: 6px 8px; font-size: .82rem; white-space: nowrap }
.pdb-cote .liste-ligue .nom-ligue small, .pdb-cote .xp-ligue small { display: none }
.pdb-cote .liste-ligue .nom-ligue { flex: 1 }
.pdb .table-classe th, .pdb .table-classe td { padding: 9px 8px }
.classes-profil { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.classes-profil li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--bg) }
.classes-profil li small { flex: 1; min-width: 120px }
.avatars-prof { margin-top: 8px }
.profil-prof { background: linear-gradient(140deg, color-mix(in srgb, var(--ardoise) 10%, var(--surface)), var(--surface) 65%) }
/* Navigation professeur */
.barre-prof { gap: 14px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 35; padding-bottom: 10px }
.barre-prof::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; background: var(--fond-prof) }
html:has(body.ambiance-prof), body.ambiance-prof { overflow-x: clip }
body.ambiance-prof::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 36; background: var(--fond-prof) }
@media (min-width: 1000px) { .pdb .tdb-gauche, .pdb .tdb-droite { top: calc(86px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 102px) } }
.nav-prof { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; box-shadow: 0 8px 20px -16px rgba(22,30,63,.4); margin-right: auto }
.onglet-prof { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 7px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--muted); white-space: nowrap; cursor: pointer; list-style: none; transition: background .2s ease, color .2s ease }
.onglet-prof::-webkit-details-marker { display: none }
.onglet-prof:hover { background: var(--bg); color: var(--ink) }
.onglet-prof.actif { background: var(--ardoise); color: var(--ardoise-ink) }
.onglet-icone { display: inline-grid; place-items: center; font-size: 1rem; line-height: 1 }
.onglet-icone .avatar { width: 22px; height: 22px; font-size: .7rem }
.fleche { font-size: .7rem; opacity: .7 }
.menu-classes { position: relative }
.menu-classes-liste { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 250px; max-height: 60vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px -18px rgba(22,30,63,.5); display: flex; flex-direction: column; gap: 2px }
.menu-classes-liste button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 0; background: none; border-radius: 10px; padding: 8px 10px; color: var(--ink) }
.menu-classes-liste button:hover, .menu-classes-liste button.actif { background: var(--accent-soft) }
.menu-classes-liste small { color: var(--muted); font-size: .78rem }
.menu-classes-liste .menu-nouvelle { color: var(--accent); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 0; font-size: .88rem; color: var(--muted) }
.fil li + li::before { content: "›"; margin-right: 6px; color: var(--muted) }
.fil [aria-current] { color: var(--ink); font-weight: 600 }
#nav-prof-bas { display: none }
@media (max-width: 760px) {
  .barre-prof .nav-prof { display: none }
  #nav-prof-bas { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40 }
  #nav-prof-bas .nav-prof { margin: 0; border-radius: 18px 18px 0 0; border-width: 1px 0 0; justify-content: space-around; padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px)); box-shadow: 0 -10px 30px -18px rgba(22,30,63,.45) }
  #nav-prof-bas .nav-prof > * { flex: 1 }
  #nav-prof-bas .onglet-prof { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: .7rem; width: 100%; justify-content: center }
  #nav-prof-bas .onglet-icone { font-size: 1.15rem }
  #nav-prof-bas .fleche { display: none }
  #nav-prof-bas .menu-classes-liste { top: auto; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); min-width: min(300px, calc(100vw - 32px)) }
  body.ambiance-prof #app { padding-bottom: 96px }
}
.temps-cellule strong, .temps-cellule small { display: block }
.temps-cellule small { font-size: .75rem }
.temps-levels .obj-ligne { align-items: center; margin-bottom: 6px }
.temps-levels .pdb-titre { margin: 0 }
.temps-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.temps-liste li { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(60px, 34%) 64px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px }
.temps-liste li.en-cours { background: var(--accent-soft) }
.temps-nom { display: flex; flex-direction: column; min-width: 0; line-height: 1.25 }
.temps-nom strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.temps-nom small { font-size: .76rem }
.temps-liste b { text-align: right; font-variant-numeric: tabular-nums; font-size: .88rem }
@media (max-width: 480px) { .temps-liste li { grid-template-columns: 30px minmax(0, 1fr) 60px } .temps-liste .jauge { grid-column: 2 / 4; grid-row: 2 } }
/* Aide aux élèves en difficulté */
.pastille-aide { margin-top: 3px; width: fit-content; font-size: .7rem }
.eleve-nom .pastille-aide { display: inline-block; margin-right: 4px }
.pdb-difficulte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.pdb-difficulte li { display: flex; align-items: center; gap: 8px; font-size: .92rem }
.alerte-difficulte { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: color-mix(in srgb, var(--bad) 6%, var(--surface)) }
.alerte-difficulte strong { color: var(--bad) }
.alerte-difficulte ul { margin: 6px 0 0; padding-left: 18px; font-size: .88rem; color: var(--ink) }
.aider fieldset { border: 0; padding: 0; margin: 0 }
.aider legend { font-weight: 600; margin-bottom: 6px; font-size: .92rem }
.cases-regles { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; padding-right: 2px }
.case-regle { display: flex; gap: 8px; align-items: flex-start; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; font-size: .88rem; font-weight: 500 }
.case-regle:has(input:checked) { border-color: var(--accent); background: var(--accent-soft) }
.aider .case-regle input[type=checkbox] { width: 16px; height: 16px; border: 0; background: none; box-sizing: border-box; min-width: 0; flex: 0 0 auto; margin: 3px 0 0; padding: 0; accent-color: var(--accent) }
.case-regle span { display: flex; flex-direction: column; min-width: 0 }
.case-regle small { font-size: .76rem; font-weight: 400 }
.aider .rangee { flex-wrap: wrap }
.aide-prof { border: 1.5px solid color-mix(in srgb, var(--sun) 55%, var(--line)); background: linear-gradient(150deg, var(--sun-soft), var(--surface) 70%); display: flex; flex-direction: column; gap: 10px }
.aide-prof-tete { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.05rem }
.aide-prof-icone { font-size: 1.3rem }
.mot-prof { margin: 0; padding: 12px 14px; background: var(--surface); border-left: 4px solid var(--sun); border-radius: 0 12px 12px 0; font-size: 1rem }
.mot-prof p { margin: 0 0 4px }
.mot-prof footer { font-size: .8rem; color: var(--muted) }
.devoirs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px }
.devoirs li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line) }
.devoirs .coche { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; color: #fff }
.devoirs li.fait .coche { background: var(--good); border-color: var(--good) }
.devoirs li.fait .lien { text-decoration: line-through; color: var(--muted) }
.devoir-texte { display: flex; flex-direction: column; min-width: 0 }
.devoir-texte .lien { text-align: left }
/* Questions élève ↔ professeur */
@media (max-width: 1100px) { .barre-prof .logo-nom { display: none } }
.onglet-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .7rem; font-weight: 700; margin-left: 4px }
#nav-prof-bas .onglet-badge { position: absolute; transform: translate(14px, -10px) }
#nav-prof-bas .onglet-prof { position: relative }
.bouton-questions { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px }
.question { display: flex; flex-direction: column; gap: 10px; transition: opacity .3s ease }
.question.resolue { opacity: .55; filter: grayscale(.7); background: color-mix(in srgb, var(--line) 35%, var(--surface)) }
.question.resolue:hover, .question.resolue:focus-within { opacity: .85 }
.question.nouvelle-rep { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.q-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.q-qui, .q-sujet { display: flex; flex-direction: column; min-width: 0; line-height: 1.3 }
.q-sujet { flex: 1 }
.q-sujet .lien { text-align: left }
.q-tete small { font-size: .78rem }
.q-messages { display: flex; flex-direction: column; gap: 8px }
.bulle-q { max-width: 85%; padding: 9px 13px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); align-self: flex-start }
.bulle-q.moi { align-self: flex-end; background: var(--accent-soft); border-color: transparent }
.bulle-q p { margin: 0 0 3px; white-space: normal; overflow-wrap: anywhere }
.bulle-q small { font-size: .74rem; color: var(--muted) }
.q-repondre { display: flex; flex-direction: column; gap: 6px }
.q-repondre textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; resize: vertical }
.q-repondre .rangee { flex-wrap: wrap; gap: 8px }
.questions-liste { display: flex; flex-direction: column; gap: 12px }
.question-regle { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.question-regle p { margin: 0; flex: 1; min-width: 180px }
.reponse-prof { display: flex; align-items: center; gap: 12px; text-align: left; border: 1.5px solid var(--accent); background: var(--accent-soft); cursor: pointer; font: inherit; color: var(--ink) }
.reponse-prof > span:nth-child(2) { flex: 1; display: flex; flex-direction: column }
/* Indice, causes d'erreur, groupes, défi, bilan */
.indice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px }
.indice small { font-size: .8rem }
.indice.ouvert { display: block; padding: 12px 14px; border-radius: 12px; background: var(--sun-soft); border: 1px dashed color-mix(in srgb, var(--sun) 60%, transparent) }
.indice-contenu { display: flex; flex-direction: column; gap: 4px }
.indice.ouvert .note { margin: 6px 0 0 }
.cause-erreur { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line) }
.cause-erreur p { margin: 0 0 8px }
.choix-cause { display: flex; flex-wrap: wrap; gap: 8px }
.choix-cause .btn { white-space: normal; text-align: left }
.cause-erreur.choisie { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft) }
.causes-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.causes-liste li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 42px; align-items: center; gap: 8px; font-size: .86rem }
.causes-liste b { text-align: right; font-variant-numeric: tabular-nums }
.groupes-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px }
.groupe { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line) }
.groupe-eleves { display: flex; flex-wrap: wrap; gap: 6px }
.groupe-eleve { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem }
.groupe-eleve.deja { border-color: var(--good); background: var(--good-soft) }
.groupe .btn { align-self: flex-start; margin-top: 4px }
.groupe .ancrage { margin: 4px 0 0; font-size: .85rem }
.defi { background: linear-gradient(140deg, color-mix(in srgb, var(--good) 10%, var(--surface)), var(--surface) 70%) }
.defi-chiffres { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; margin-bottom: 6px }
.defi-jauge > span { background: linear-gradient(90deg, var(--good), color-mix(in srgb, var(--good) 60%, var(--sun))) }
.defi .muet, .defi .note { font-size: .84rem; margin: 6px 0 0 }
.carte.bilan { display: block }
.bilan summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center }
.bilan[open] summary { margin-bottom: 8px }
.bilan-texte { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: .85rem; line-height: 1.45; resize: vertical; margin: 6px 0 }
.bilan .rangee { flex-wrap: wrap; gap: 8px }
.bilan a.btn { text-decoration: none }
.video-prof { display: flex; flex-direction: column; gap: 10px; align-items: flex-start }
.video-lien { text-decoration: none; display: inline-flex }
.video-adresse { margin: 0; font-size: .86rem; overflow-wrap: anywhere }
.blanc-carte.verrou { opacity: .85 }
.blanc-carte.verrou .blanc-icone { filter: grayscale(1) }
.entree .pdb-cote { animation: arrive .55s .1s cubic-bezier(.2,.7,.2,1) both }
/* v2.15 : pages Profil, Questions et Vidéos du professeur en trois colonnes */
.kpi6 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
@media (max-width: 560px) { .kpi6 { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.kpi-col { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.kpi-col .stat-val { font-size: 1.4rem }
.stat.chaud { border-color: var(--sun); background: color-mix(in srgb, var(--sun-soft) 70%, var(--surface)) }
.stat-lien { font: inherit; color: inherit; cursor: pointer; transition: transform .2s ease, border-color .2s ease }
.stat-lien:hover { transform: translateY(-2px); border-color: var(--accent) }
.carte-identite { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px }
.carte-identite h2 { margin: 6px 0 0; font-size: 1.3rem }
.carte-identite .profil-pastilles { justify-content: center }
.choix-avatar-prof summary { cursor: pointer; list-style: none }
.choix-avatar-prof summary::-webkit-details-marker { display: none }
.choix-avatar-prof summary::after { content: " ▾"; color: var(--muted) }
.choix-avatar-prof[open] summary { margin-bottom: 8px }
.raccourcis { display: flex; flex-direction: column; gap: 4px }
.raccourcis button, .raccourcis a.raccourci-lien { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid transparent; background: var(--bg); color: var(--ink); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: .9rem; cursor: pointer; transition: border-color .2s ease, background .2s ease }
.raccourcis button > span:nth-child(2), .raccourcis a > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25 }
.raccourcis button small, .raccourcis a small { color: var(--muted); font-size: .76rem }
.raccourcis button b { font-variant-numeric: tabular-nums }
.raccourcis button b.alerte { background: var(--bad); color: var(--surface); border-radius: 999px; padding: 0 8px; font-size: .8rem }
.raccourcis button:hover { border-color: var(--accent) }
.raccourcis button.actif { background: var(--accent-soft); border-color: var(--accent) }
.classes-du-prof .tuile-pied .copier { margin-left: 0 }
.classes-du-prof .tuile-pied .lien { margin-left: auto; font-size: .88rem }
.barre-recherche { display: flex; gap: 10px; align-items: center; flex-wrap: wrap }
.barre-recherche input[type=search] { flex: 1 1 220px; min-width: 0; padding: 10px 14px 10px 38px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237A819C' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 14px center; color: var(--ink); font: inherit }
.barre-recherche input[type=search]:focus { outline: none; border-color: var(--accent) }
.q-infos { display: flex; flex-wrap: wrap; gap: 6px }
.q-infos .pastille { font-size: .76rem }
.q-rappel { font-size: .88rem; background: var(--bg); border-radius: 10px; padding: 8px 12px }
.q-rappel summary { cursor: pointer; color: var(--accent); font-weight: 600 }
.q-rappel div { margin-top: 6px; overflow-x: auto }
.conseils { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; color: var(--muted) }
.conseils strong { color: var(--ink) }
.petit-texte { font-size: .82rem; margin: 8px 0 0 }
.couverture-vid { display: flex; align-items: center; gap: 14px }
.couverture-vid > div { display: flex; flex-direction: column; min-width: 0 }
.videos-liste { display: flex; flex-direction: column; gap: 10px }
.video-ligne.a-video { border-left: 4px solid var(--good) }
.vid-tete { display: flex; align-items: center; gap: 12px; min-width: 0 }
.vid-tete label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0 }
.vid-num { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--f-display); font-weight: 800 }
.vid-vignette { position: relative; flex-shrink: 0; width: 96px; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--ardoise); display: grid; place-items: center; text-decoration: none }
.vid-vignette img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.vid-vignette span { position: relative; color: #fff; font-size: .9rem; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55) }
.vid-vignette.sans-image img { display: none }
.vid-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem }
.vid-actions .lien { text-decoration: none; font-weight: 600 }
.vid-actions .lien:hover { text-decoration: underline }
.lien.rouge { color: var(--bad) }
.video-ligne .rangee .btn { flex: 0 0 auto; width: auto }
@media (max-width: 560px) { .question .q-tete { flex-wrap: wrap } .question .q-sujet { order: 3; flex-basis: 100%; display: flex; flex-direction: column } }
.pdb-liste .conseils li { display: list-item; font-size: .88rem }
/* v2.16 : notifications et annonces */
.cloche { position: relative }
.cloche summary { list-style: none; position: relative; display: inline-flex; align-items: center; gap: 4px; cursor: pointer }
.cloche summary::-webkit-details-marker { display: none }
.cloche summary .onglet-badge { position: absolute; top: -7px; right: -7px; margin: 0 }
.cloche[open] summary { border-color: var(--accent) }
.cloche-panneau { position: absolute; right: 0; top: calc(100% + 8px); z-index: 45; width: min(340px, calc(100vw - 32px)); max-height: min(70vh, 480px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(22,30,63,.55); padding: 8px; text-align: left; white-space: normal }
.cloche-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px }
.cloche-panneau ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px }
.cloche-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; color: var(--ink); border-radius: 10px; padding: 9px 8px; font: inherit; cursor: pointer }
.cloche-item:hover { background: var(--bg) }
.cloche-item.nouveau { background: var(--accent-soft) }
/* (v2.107.0) Classe de l'élève en tête de ligne + « Voir sa fiche › » : la ligne se lit comme un lien. */
.cloche-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px }
.cloche-classe { display: inline-block; font-size: .74rem; font-weight: 700; line-height: 1.2; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis }
.cloche-aller { font-size: .8rem; font-weight: 700; color: var(--accent); margin-top: 3px }
.cloche-item:hover .cloche-aller, .cloche-item:focus-visible .cloche-aller { text-decoration: underline }
.cloche-item:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent) }
.carte.question.question-cible { outline: 3px solid var(--accent); outline-offset: 2px }
.cloche-item.nouveau .cloche-texte strong::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle }
.cloche-icone { font-size: 1.15rem; line-height: 1.3 }
.cloche-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .86rem; line-height: 1.3 }
.cloche-texte small { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere }
.cloche-vide { padding: 10px 8px; margin: 0 }
@media (max-width: 480px) { .barre-droite .cloche-bouton { padding: 6px 9px } .cloche-panneau { position: fixed; left: 16px; right: 16px; width: auto; top: calc(64px + env(safe-area-inset-top, 0px)) } }
.annonces-prof form { display: flex; flex-direction: column; gap: 8px }
.annonces-prof textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; resize: vertical }
.annonces-prof .btn { align-self: flex-start }
.annonces-liste { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px }
.pdb-liste .annonces-liste li { display: block; font-size: .86rem }
.annonces-liste li p { margin: 0 0 2px }
.annonces-liste li .lien { margin-left: 10px; font-size: .8rem }
.annonces-eleve { border-left: 4px solid var(--accent) }
@media (max-width: 999px) { .tdb-page .tdb-centre { order: -1 } }
.tdb-page .tdb-centre > .titre-vue:first-child { margin-top: 0 }
a.logo-app.logo-lien { cursor: pointer }
/* v2.18 : code de connexion et invitation des professeurs */
.champ-code { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums }
.actions-code { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px }
.aide-champ { margin: -4px 0 4px; font-size: .85rem; color: var(--muted) }
.regles-mdp { list-style: none; margin: -2px 0 6px; padding: 0; display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted) }
.regles-mdp li::before { content: "○ "; }
.regles-mdp li.ok { color: #1F8A60; font-weight: 600 }
.regles-mdp li.ok::before { content: "✓ "; }
/* v2.19 : classes regroupées par professeur (administrateur) */
.groupe-prof { margin: 0 0 18px; }
.groupe-prof > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 10px 14px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.groupe-prof > summary::-webkit-details-marker { display: none }
.groupe-prof-nom { display: flex; flex-direction: column; flex: 1; min-width: 0 }
.groupe-prof > summary .fleche { transition: transform .2s }
.groupe-prof:not([open]) > summary .fleche { transform: rotate(-90deg) }
/* v2.20 : moins de défilement ; sur téléphone, les blocs importants d'abord */
.voir-plus-tel { display: none }
.limitee:not(.tout-afficher) > .au-dela { display: none !important }
.btn.voir-tout { display: flex; width: 100%; justify-content: center; margin: 4px 0 18px }
@media (max-width: 999px) {
  .tdb:not(.tout-voir) .tel-plus { display: none !important }
  .voir-plus-tel { display: flex; justify-content: center; width: 100%; margin: 4px 0 20px }
  .tdb-page:not(.tout-voir) > .tdb-gauche, .tdb-page:not(.tout-voir) > .tdb-droite { display: none }
}
/* v2.21 : barres de côté plus compactes (moins de défilement) */
.voir-plus-cote { align-self: flex-start; font-size: .88rem; margin-top: -4px }
@media (min-width: 1000px) {
  .tdb-gauche .carte, .tdb-droite .carte { padding: 14px 16px; gap: 9px }
  .colle, .pdb-cote { gap: 10px }
  .tdb-gauche .btn.large, .tdb-droite .btn.large { padding-block: 9px }
}
.repliee > :not(:first-child), .repliee > .voir-plus-cote { display: none !important }
.titre-repliable { cursor: pointer; position: relative; padding-right: 22px }
.titre-repliable::after { content: "▾"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; transition: transform .2s }
.repliee .titre-repliable::after { transform: translateY(-50%) rotate(-90deg) }
.titre-repliable:focus-visible { outline: 2px solid var(--accent, #3446D4); outline-offset: 3px; border-radius: 6px }
@media (max-width: 999px) { .titre-repliable { cursor: auto; padding-right: 0 } .titre-repliable::after { content: none } }
/* v2.22 : archives des questions, pastilles cliquables */
.archives-questions { margin-top: 18px; display: flex; flex-direction: column; gap: 12px }
.archives-questions > summary { cursor: pointer; font-weight: 700; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); list-style: none }
.archives-questions > summary::-webkit-details-marker { display: none }
.archives-questions[open] > summary { margin-bottom: 4px }
.stat.stat-lien { text-align: center; width: 100% }
.stat-lien.actif { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset }
/* v2.22.1 : le panneau des notifications passe toujours au premier plan */
body.cloche-ouverte #app { z-index: 60 }
body.cloche-ouverte .barre-prof { z-index: 70 }
.cloche[open] .cloche-panneau { z-index: 80 }
/* L'en-tête (qui porte la cloche) passe devant les colonnes animées qui le suivent. */
header.barre:not(.barre-prof):has(.cloche[open]), body.cloche-ouverte header.barre:not(.barre-prof) { position: relative; z-index: 50 }
/* v2.23 : lecture des annonces par les élèves */
.lecture-annonce { font-size: .85rem }
.lecture-annonce summary { cursor: pointer; color: var(--accent); font-weight: 600 }
.lecture-annonce.toutes summary { color: #1F8A60 }
.lecture-annonce p { margin: 4px 0 0 }
/* v2.24 : ne pas rester bloqué sur une question */
.passer-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 4px }
.passer-zone #msg-blocage { flex-basis: 100%; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--ink) }
.passer-zone #msg-blocage.fort { background: #FFF1D6; color: #6B4A00 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .passer-zone #msg-blocage.fort { background: #3A2E12; color: #FFE2A8 } }
:root[data-theme="dark"] .passer-zone #msg-blocage.fort { background: #3A2E12; color: #FFE2A8 }
.appel { animation: appel 1.6s ease-in-out 3 }
@keyframes appel { 50% { box-shadow: 0 0 0 6px var(--accent-soft) } }
@media (prefers-reduced-motion: reduce) { .appel { animation: none } }
.apercu.alerte-forme, .apercu:not(:empty) { color: #9A5A00; font-weight: 600 }
.carte.question .enonce-q,.carte.question .option,.questions-blanc .enonce-q,.questions-blanc li>div{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.rester-page{font-size:.85rem;opacity:.8}
.sortie-alerte{border-left:4px solid #c0392b;animation:appel 1s ease 2}
.profs-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; margin-top: 12px }
.profs-admin.seul { grid-template-columns: minmax(0, 1fr) }
.profs-admin.seul .prof-admin-tete { display: none }
.infos-prof { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px }
.infos-prof li { display: flex; flex-direction: column; gap: 1px; font-size: .9rem }
.infos-prof span { color: var(--muted); font-size: .78rem }
.infos-prof b { overflow-wrap: anywhere }
.raccourcis a.raccourci-lien { text-decoration: none; color: inherit }
.prof-admin { display: flex; flex-direction: column; gap: 12px }
.prof-admin.suspendu { opacity: .72 }
.prof-admin-tete { display: flex; gap: 12px; align-items: center }
.prof-admin-tete > div { display: flex; flex-direction: column; min-width: 0 }
.prof-admin-tete small { overflow-wrap: anywhere }
.prof-admin-classes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px }
.prof-admin-classes button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 10px; color: var(--ink); cursor: pointer }
.prof-admin-classes button:hover { background: var(--accent-soft) }
.prof-admin-classes .pac-texte { display: flex; flex-direction: column; flex: 1; min-width: 0 }
.recherche-prof { max-width: 520px; margin-top: 14px }
.encourage-prof a.lien { color: inherit; text-decoration: underline; font-weight: 700 }
.voir-classes { align-self: flex-start }
.barre-prof > .retour { flex-shrink: 0; white-space: nowrap }
.barre-prof:has(.menu-profs) > .retour, .barre-eleve > .retour { font-size: 0; overflow: visible; padding: 6px 4px; max-width: none }
.barre-prof:has(.menu-profs) > .retour::before, .barre-eleve > .retour::before { content: "←"; font-size: 1.25rem }
.barre-prof:has(.menu-profs) .logo-app { flex-shrink: 0 }
.kpi4 { grid-template-columns: repeat(4, minmax(0, 1fr)) }
@media (max-width: 560px) { .kpi4 { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 1499px) { .barre-prof:has(.menu-profs) .logo-app .logo-nom { display: none } }
.rouge { color: #b32d2e }
.menu-classes-liste a.menu-nouvelle { display: block; text-decoration: none; border-radius: 10px; padding: 8px 10px; font-weight: 700; color: var(--accent); border-top: 1px solid var(--line) }
.menu-classes-liste a.menu-nouvelle:hover { background: var(--accent-soft) }
.stat-voir { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); opacity: .8 }
.stat-lien:hover .stat-voir, .stat-lien.actif .stat-voir { color: var(--accent); opacity: 1 }
.stat-lien:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
.detail-kpi { margin-top: 12px; animation: apparaitre-kpi .25s ease }
@keyframes apparaitre-kpi { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }
.detail-kpi-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px }
.detail-kpi-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; max-height: 420px; overflow-y: auto }
.detail-kpi-liste button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 10px; color: var(--ink); cursor: pointer; font: inherit }
.detail-kpi-liste button:hover { background: var(--accent-soft) }
.detail-kpi-liste .pac-texte { display: flex; flex-direction: column; flex: 1; min-width: 0 }
.detail-kpi-liste .jauge { width: 56px; flex-shrink: 0 }
.eclair { box-shadow: 0 0 0 3px var(--accent) !important; transition: box-shadow .3s ease }
.invitation-faite { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--good-soft); border: 1px solid var(--good) }
.invitation-faite input { font-size: .8rem; width: 100% }
.invitation-faite .copier { align-self: flex-start }
.invitations-attente { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 8px }
.invitations-attente ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.invitations-attente li { display: flex; align-items: center; gap: 10px; justify-content: space-between }
.invitations-attente .pdb-nom { display: flex; flex-direction: column; min-width: 0 }
.invitations-attente small { overflow-wrap: anywhere }
.suspension, .suppression { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; align-items: flex-start }
.stat-voir { white-space: nowrap }
.invitation-faite strong { overflow-wrap: anywhere }
.renommer { align-self: stretch; text-align: center }
.renommer summary { cursor: pointer; list-style: none; font-size: .9rem }
.renommer summary::-webkit-details-marker { display: none }
.renommer .form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px }
.aide-avatar { font-family: var(--f-display, serif); font-weight: 800; font-size: 1.5rem }
.aide-pi { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-ink, #fff); color: var(--accent); font-family: var(--f-display, serif); font-weight: 800; font-size: 1.2rem; line-height: 1 }
.indice-tit { display: block; margin-bottom: 8px }
.fiche-aide { display: flex; flex-direction: column; gap: 10px; text-align: left }
.fa-onglets { display: flex; gap: 6px; flex-wrap: wrap }
.fa-onglet { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer }
.fa-onglet.actif { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.fa-pan { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; overflow-x: auto; animation: apparaitre-kpi .2s ease }
.fa-titre { font-weight: 700 }
.fa-sous { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600 }
.fa-exemple { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 2px }
.fa-ex-enonce { font-weight: 600 }
.fa-etapes { gap: 6px }
.fa-ex-rep { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--ok-bg, rgba(46, 160, 67, .1)) }
.fa-ex-choix { margin: 0; font-size: .9rem }
.fa-formule { font-size: 1.25rem; padding: 10px; text-align: center; background: var(--accent-soft); border-radius: 10px; overflow-x: auto }
.fa-cache { display: flex; flex-direction: column; gap: 8px; transition: filter .25s ease }
.fa-cache.floue { filter: blur(9px); user-select: none }
.fa-pan .btn { align-self: flex-start }
.fiche-apres { margin: 8px 0; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); padding: 10px 12px; text-align: left }
.fiche-apres summary { cursor: pointer; font-weight: 600 }
.fiche-apres[open] summary { margin-bottom: 10px }
.jour-ligue { margin: 6px 0 0; font-size: .8rem }
.plafond-ligue { margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, #FFC94D 22%, transparent) }
.form label.accord-parents { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; margin: 10px 2px 6px; font-weight: 500; color: inherit; cursor: pointer }
.form .accord-parents input { flex: 0 0 auto; width: 20px; height: 20px; min-width: 0; margin: 1px 0 0; padding: 0; accent-color: var(--accent) }
.form .accord-parents span { min-width: 0 }
.nouvel-identifiant { border: 2px solid var(--accent); margin-bottom: 12px }
.nouvel-identifiant p { margin: 0 }
.accord-eleve .form { gap: 8px }
.accord-eleve p { margin: 4px 0 }
.liste-accords { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px }
.liste-accords li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line) }
.liste-accords .pastille { border: 0; font: inherit; font-size: .8rem; cursor: default }
.liste-accords button.pastille { cursor: pointer }
.petit-txt { font-size: .78rem }
.accord-parent ul { padding-left: 20px; line-height: 1.5 }
.accord-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px }
.btn.danger { background: #B32D2E; color: #fff; border-color: #B32D2E }
.feuille-autorisation { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 12px; padding: 28px 32px; max-width: 760px; margin: 16px auto; line-height: 1.6 }
.feuille-autorisation h2 { margin: 0; font-size: 1.4rem } .feuille-autorisation .sous { margin: 0 0 14px; color: #555 }
.feuille-autorisation .signatures { margin-top: 26px; min-height: 110px }
@media print {
  body * { visibility: hidden !important }
  .feuille-autorisation, .feuille-autorisation * { visibility: visible !important }
  .feuille-autorisation { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; border: 0; box-shadow: none }
}
/* v2.40 : sur ordinateur, les pages utilisent toute la largeur de l'écran (marges de 24 à 40 px). */
@media (min-width: 1000px) {
  body { padding-left: max(24px, 2.2vw, env(safe-area-inset-left, 0px)); padding-right: max(24px, 2.2vw, env(safe-area-inset-right, 0px)) }
  body.large #app, body.ambiance-prof.large #app { max-width: 1760px }
  body.ambiance-prof #app { max-width: 1500px }
  body.ligue #app { max-width: 1000px }
  #app { max-width: 820px }
  .tdb { grid-template-columns: clamp(250px, 19vw, 340px) minmax(0, 1fr) clamp(270px, 21vw, 380px); gap: clamp(18px, 1.6vw, 28px) }
}
@media (min-width: 1000px) { body:not(.large) .connexion { max-width: 620px; width: 100%; margin-inline: auto } body.ambiance-prof .connexion { max-width: 560px } }
/* v2.40.1 : corrections d'affichage sur téléphone */
@media (max-width: 480px) { .barre .retour[data-retour] { font-size: 0; flex-shrink: 0; overflow: visible; padding: 6px 4px } .barre .retour[data-retour]::before { content: "←"; font-size: 1.25rem } }
.video-ligne .rangee input { flex: 1 1 auto; min-width: 0; width: auto }
.vid-tete label { flex: 1 1 0 }
.video-ligne { grid-template-columns: minmax(0, 1fr) }
.vid-tete strong { overflow-wrap: anywhere }
.infos-prof li { align-items: flex-start; text-align: left }
@media (max-width: 600px) {
  .table-defile:has(.table-eleves) { overflow: visible }
  .table-eleves { min-width: 0 }
  .table-eleves thead { display: none }
  .table-eleves, .table-eleves tbody { display: block }
  .table-eleves tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 12px 4px; border-bottom: 1px solid var(--line) }
  .table-eleves td { display: flex; flex-direction: column; gap: 1px; padding: 0; border: 0; white-space: normal; font-size: .88rem; min-width: 0 }
  .table-eleves td[data-l]::before { content: attr(data-l); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600 }
  .table-eleves td.col-nom, .table-eleves td[colspan] { grid-column: 1 / -1 }
  .table-eleves .jauge { width: 100%; margin: 3px 0 }
  .table-eleves .temps-cellule small { display: none }
  .table-eleves td.alerte { padding: 4px 6px; border-radius: 8px; align-self: start }
}

/* v2.41 : divisions de la ligue (trophées, ligne de montée, historique) */
.ligue-page { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1400px) { .ligue-page { grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); } }
.ligue-principale, .ligue-cote { min-width: 0; display: grid; gap: 14px; align-content: start; }
.ligue-cote .carte { margin: 0; }
.ligue-cote h2 { font-size: 1.05rem; margin: 0 0 10px; }
.liste-ligue .ligne-montee { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; margin: 6px 0; border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #3446D4) 12%, transparent); color: var(--ink, inherit); border: 1px dashed color-mix(in srgb, var(--accent, #3446D4) 55%, transparent); list-style: none; }
.ligne-montee strong { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; text-align: center; }
.ligne-montee > span { color: var(--accent, #3446D4); font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
@media (max-width: 480px) { .ligne-montee > span { display: none; } .ligne-montee { justify-content: center; } }
.liste-histo { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.liste-histo li { display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto auto; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line, #e5e5e5); font-variant-numeric: tabular-nums; }
.liste-histo li:last-child { border-bottom: 0; }
.liste-histo li.en-cours { font-weight: 700; }
.h-rang { font-weight: 800; }
.h-ligue { display: inline-flex; align-items: center; gap: 6px; }
.h-fleche { display: inline-grid; place-items: center; width: 20px; color: var(--muted, #888); }
.h-fleche.monte { color: #0F7F58; font-weight: 800; }
.note-ligue p { margin: 0 0 8px; }

/* v2.44 : séance coup de pouce */
.coup-de-pouce { display: grid; gap: 6px; margin-top: 12px; }
.coup-de-pouce .muet, .coup-de-pouce-fait { font-size: .88rem; margin: 0; }
.coup-de-pouce-fait { margin-top: 10px; }

/* Barre d'onglets de l'élève (v2.45) : même barre que le professeur, sur le fond de l'espace élève. */
.barre-eleve::before { background: color-mix(in srgb, var(--fond-eleve) 92%, transparent); backdrop-filter: blur(6px) }
.barre-eleve .onglet-prof.actif { background: var(--accent); color: #fff }
@media (max-width: 1250px) { .barre-eleve .logo-app .logo-nom { display: none } }
@media (max-width: 760px) { body.ambiance-eleve:has(#nav-prof-bas) #app { padding-bottom: 96px } }

/* Page d'attente de l'accord des parents (v2.47) */
.attente-accord { max-width: 560px; margin: 24px auto 0; display: grid; gap: 14px }
.attente-tete { text-align: center; padding: 26px 22px }
.attente-tete h1 { margin: 6px 0 8px; font-size: 1.6rem }
.attente-icone { font-size: 2.2rem }

/* Accords des parents sur le tableau de bord de l'admin (v2.47) */
.liste-accords-admin { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px }
.accords-admin li.accord-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center }
.accords-admin .accord-actions { grid-column: 1 / -1; padding-left: 34px; display: flex; gap: 6px; flex-wrap: wrap }
.accord-actions .btn { padding: 4px 10px; font-size: .8rem }
.erreur-relance { grid-column: 1 / -1; padding-left: 34px; color: var(--bad); font-size: .78rem }
.accords-admin .pdb-nom { min-width: 0 }
.accords-admin .pdb-nom .lien { white-space: normal; text-align: left }
.sc-quiz, .sc-resume { justify-content: flex-start; justify-content: safe center }
.sc-retenir li > strong { display: block }
#cap-imprimer { white-space: nowrap }
@media (max-width: 600px) { .sc-quiz { padding: 30px 12px 12px; gap: 8px } .quiz-choix .btn { padding: 6px 10px; font-size: .9rem } .quiz-zone { gap: 8px } .sc-q { font-size: .95rem !important } }
@media (max-width: 600px) { .ecran { aspect-ratio: 1 / 1 } }

/* ---------- Espace parents (v2.49) ---------- */
.bandeau-parent { background: linear-gradient(135deg, #0F7F72, color-mix(in srgb, #0F7F72 55%, #1D2B4F)); color: #fff }
.bandeau-parent .bandeau-pastille { background: #FFC94D; color: #1D2B4F }
.bandeau-parent p { color: color-mix(in srgb, #fff 86%, transparent) }
.bandeau-parent .bandeau-etapes b { background: #FFC94D; color: #1D2B4F }
.bandeau-parent::after { content: "%"; position: absolute; right: 4px; bottom: -34px; font-family: var(--f-display); font-weight: 800; font-size: 8.5rem; color: color-mix(in srgb, #fff 12%, transparent); z-index: -1; animation: flotte-pi 6s ease-in-out infinite }
.connexion-parent .btn.principal { background: #0F7F72; border-color: #0F7F72; color: #fff; box-shadow: 0 3px 0 #0A564D }
.connexion-parent .carte.form, .connexion-parent .lien-envoye { border-top: 4px solid #14A393 }
.lien-envoye { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 24px 20px }
.lien-envoye h2 { font-size: 1.3rem }
.info-parent { background: var(--good-soft); color: var(--ink); padding: 10px 14px; border-radius: 12px }
.lien-parents { text-align: center }
body.ambiance-parent .barre-parent .pastille.reviser { background: color-mix(in srgb, #14A393 18%, var(--surface)); color: var(--ink) }
.conseils-parent li { color: var(--muted); font-size: .92rem; line-height: 1.45 }
.bilans-parent .case { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem }
.bilans-parent .case input { margin-top: 4px; accent-color: #0F7F72 }
.bilans-parent .form label.case { display: flex; flex-direction: row; justify-content: flex-start; text-align: left; margin: 2px 0 6px; color: var(--ink); font-weight: 500 }
.bilans-parent .form label.case input { width: 18px; height: 18px; flex: 0 0 18px }

/* (v2.50) Relance d'un élève : bouton, formulaire, message côté parents */
.pdb-liste li > b.relance + .btn-relancer, .pdb-liste li > b.relance + .relance-faite { margin-left: 6px }
.btn-relancer { padding: 4px 9px !important; font-size: .78rem !important; white-space: nowrap; flex: none }
.relance-faite { font-size: .78rem; color: var(--good); font-weight: 600; white-space: nowrap; margin-left: 6px }
.pdb-liste li.relance-form { display: block; padding: 10px; border-radius: 12px; background: var(--accent-soft); margin: 2px 0 6px }
.relance-form form { display: grid; gap: 8px }
.relance-form label { font-weight: 600; font-size: .88rem }
.relance-form textarea { font: inherit; font-size: .9rem; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); resize: vertical }
.relance-form .note { font-size: .8rem }
.relance-ok { color: var(--good); font-weight: 600; font-size: .9rem }
.relance-parent { border: 2px solid var(--accent) }
.relance-parent .mot-prof.ancien { opacity: .7 }
.pastille.nouveau { margin-left: auto; background: var(--accent); color: var(--accent-ink) }
.point-nouveau { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-left: 5px; vertical-align: middle }

/* (v2.51) Onglet Administration */
.adm-filtres { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px }
.adm-filtres input, .adm-filtres select { font: inherit; font-size: .88rem; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; width: 100% }
.adm-compte { font-size: .85rem; margin: 0 0 6px }
.adm-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px }
.adm-liste > li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface) }
.adm-ouvrir { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: default }
button.adm-ouvrir { cursor: pointer; border-radius: 12px }
button.adm-ouvrir:hover { background: var(--accent-soft) }
.adm-ouvrir .pac-texte { flex: 1; min-width: 0; display: grid }
.adm-ouvrir .pac-texte strong, .adm-ouvrir .pac-texte small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.adm-infos { display: flex; align-items: center; gap: 8px; flex: none; font-size: .82rem; white-space: nowrap }
.adm-fleche { color: var(--muted); flex: none }
.adm-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px }
.adm-badge { font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent) }
.adm-badge.rouge { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad) }
.adm-badge.orange { background: color-mix(in srgb, #e8890c 16%, transparent); color: #b8650a }
.adm-placer { padding: 0 10px 8px; flex: 1 1 100% }
.adm-placer select { font: inherit; font-size: .85rem; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--accent-soft); color: var(--ink); max-width: 100% }
.adm-liste > li > .note { padding: 0 10px 8px; margin: 0; flex: 1 1 100% }
.adm-plus { margin-top: 8px }
.adm-points li, .adm-niveaux li { display: flex; justify-content: space-between; align-items: center; gap: 8px }
.adm-points .lien, .adm-niveaux .lien { text-align: left }
.adm-sous { margin-top: 12px; font-size: .9rem }
.adm-messages .btn { margin-top: 8px; display: inline-block }
.stat-lien.actif { outline: 2px solid var(--accent) }
@media (max-width: 1100px) { .adm-filtres { grid-template-columns: repeat(2, minmax(0, 1fr)) } .adm-filtres input { grid-column: 1 / -1 } }
@media (max-width: 600px) {
  .adm-ouvrir { flex-wrap: wrap }
  .adm-infos { flex: 1 1 100%; padding-left: 38px; white-space: normal; flex-wrap: wrap }
}
.adm-chiffres { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px }
.adm-chiffres li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .88rem; padding: 4px 0; border-bottom: 1px dashed var(--line) }
.adm-chiffres li:last-child { border-bottom: 0 }
.adm-chiffres span { color: var(--muted) }
.adm-badge.rouge { background: var(--bad-soft) }
.lib-tel { display: none }
#nav-prof-bas .lib-ordi { display: none }
#nav-prof-bas .lib-tel { display: inline }
#nav-prof-bas .nav-prof > * { min-width: 0 }
#nav-prof-bas .onglet-lib { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.adm-filtres { grid-template-columns: repeat(4, minmax(0, 1fr)) }
.adm-filtres input { grid-column: 1 / -1 }
@media (max-width: 600px) { .adm-fleche { display: none } }
@media (max-width: 420px) { #nav-prof-bas .onglet-prof { padding: 6px 1px; font-size: .66rem } }

/* (v2.51) Administration : modifier et supprimer */
.adm-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px }
.adm-actions { display: flex; gap: 14px; padding: 0 12px 8px 48px; flex: 1 1 100%; font-size: .82rem }
.adm-actions .btn { font-size: .8rem }
.adm-liste > li > .adm-msg { padding: 0 12px 8px 48px }
.adm-form { flex: 1 1 100%; margin: 0 8px 8px; padding: 10px; border-radius: 12px; background: var(--accent-soft); display: grid; gap: 8px }
.adm-form-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.adm-form label { display: grid; gap: 3px; font-size: .82rem; font-weight: 600 }
.adm-form input, .adm-form select { font: inherit; font-size: .9rem; font-weight: 400; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; width: 100% }
.adm-form .note { font-size: .78rem; margin: 0 }
.adm-form .rangee { display: flex; gap: 8px; flex-wrap: wrap }
@media (max-width: 600px) { .adm-form-grille { grid-template-columns: 1fr } .adm-actions, .adm-liste > li > .adm-msg { padding-left: 12px } }
.adm-form .rangee > .btn { flex: none; width: auto }
.adm-form .oblig { color: var(--bad) }
.adm-form .adm-large { grid-column: 1 / -1 }
/* (v2.53) Mot de passe oublié, nouveau mot de passe, changement de classe */
.oubli-mdp { margin-top: 12px; padding: 12px 16px }
.oubli-mdp > summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none }
.oubli-mdp > summary::-webkit-details-marker { display: none }
.oubli-mdp > summary::before { content: "🔑 "; }
.oubli-mdp[open] > summary { margin-bottom: 8px }
.oubli-mdp p { margin: 6px 0 }
.oubli-mdp .form { gap: 8px }
.nouveau-mdp h2 { margin-top: 0 }
.mdp-eleve > p { margin: 4px 0 10px; overflow-wrap: anywhere }
.mdp-eleve details > summary { list-style: none; display: inline-flex }
.mdp-eleve details > summary::-webkit-details-marker { display: none }
.mdp-eleve details[open] > summary { margin-bottom: 10px }
.mdp-eleve input { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .03em }
#me-msg { overflow-wrap: anywhere }
.dep-alerte { margin: 4px 0 2px; padding: 8px 10px; border-radius: 10px; background: var(--sun-soft); color: var(--ink); font-size: .88rem; line-height: 1.4 }

/* v2.54 : objectif du jour = minimum, « Encore une séance » mis en avant */
.objectif-atteint { margin: .2rem 0 .6rem; font-weight: 700; color: #1f7a4d }
.btn.encore { background: #1f7a4d; border-color: #1f7a4d }
.objectif-fin { text-align: center }
.objectif-fin p { margin: 0 0 .7rem; font-weight: 600 }
.par-jour.ok strong, .par-jour-ligne.ok strong { color: #1f7a4d }
.par-jour.bas strong, .par-jour-ligne.bas strong { color: #b4570b }
.par-jour-ligne { margin: .6rem 0 0 }

/* v2.55 : messages au site traités dans l'application (C9) */
.adm-msgs { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem }
.adm-msgs details summary { cursor: pointer; list-style: none }
.adm-msgs details summary::-webkit-details-marker { display: none }
.adm-msgs details[open] { background: var(--fond-doux, #f5f7fd); border-radius: 10px; padding: .4rem .6rem }
.adm-msg-texte { margin: .5rem 0; white-space: normal; overflow-wrap: anywhere }
.fa-cache .fa-formule { font-size: 1.05rem; text-align: left; margin: 0 0 6px }
.qui-voit { margin-top: .6rem; font-size: .9rem }
.qui-voit summary { cursor: pointer; font-weight: 700; color: var(--accent, #3446D4) }
.qui-voit ul { margin: .5rem 0 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .35rem }

/* v2.55 (C8) : titre « 2. Envoie un lien… » entier au-dessus du champ */
.accord-eleve .form label[for] { display: block; margin: 10px 0 8px; line-height: 1.35 }
.table-eleves td[data-l="Examens"] small { display: block; font-size: .75rem }
.pdb .table-eleves th, .pdb .table-eleves td { padding: 8px 6px }
.pdb .table-eleves .jauge { width: 36px; margin-right: 5px }
.pdb .table-eleves th { letter-spacing: .03em }

.table-eleves td.accord-attendu small { display: block; font-size: .75rem }

/* v2.56 (M1, X5) : tableau de bord élève en 3 étages, une seule colonne, plus de bandeau fixe */
@media (min-width: 1000px) { body.tdb-eleve #app { max-width: 1120px } }
.tdb-simple { display: flex; flex-direction: column; gap: 14px }
.tdb-simple > .section-titre { margin: 10px 0 0 }
.seance-jour { border: 2px solid color-mix(in srgb, var(--accent, #3446D4) 35%, var(--line)); box-shadow: 0 10px 26px -18px color-mix(in srgb, var(--accent, #3446D4) 60%, transparent) }
.seance-jour .obj-ligne strong { font-size: 1.15rem }
.seance-jour .btn.principal { font-size: 1.1rem; padding: 14px 20px; width: 100% }
@media (min-width: 701px) { .seance-jour .btn.principal { width: auto; align-self: flex-start; min-width: 320px } }
.tuiles-eleve { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px }
.tuile-eleve { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; font: inherit; color: inherit; cursor: default }
button.tuile-eleve { cursor: pointer; transition: transform .15s, border-color .15s }
button.tuile-eleve:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent, #3446D4) 40%, var(--line)) }
.tuile-icone { font-size: 1.6rem; line-height: 1; flex: none; width: 34px; display: grid; place-items: center }
.tuile-icone svg { width: 30px; height: 30px }
.tuile-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 }
.tuile-texte strong { font-size: .95rem }
.tuile-texte small { color: var(--muted, #667); font-size: .8rem; line-height: 1.3 }
.tuile-texte .jauge { margin-top: 3px }
@media (max-width: 480px) { .tuiles-eleve { grid-template-columns: 1fr 1fr; gap: 6px } .tuile-eleve { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px } }
/* Profil : level et badges (autrefois dans la colonne de droite) */
.level-colonne:has(.level-infos) { flex-direction: row; align-items: center; text-align: left; flex-wrap: wrap }
.level-infos { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px }
/* v2.56 (X1) : pages de lecture sur une colonne de 820 px, mais la barre d'onglets garde la largeur du tableau de bord */
@media (min-width: 1000px) { .barre-eleve { align-self: center; width: min(1120px, calc(100vw - 32px)) } }
.level-infos .mini-badges { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px }
@media (max-width: 600px) { .level-infos .mini-badges { grid-template-columns: repeat(5, minmax(0, 1fr)) } }
.pdb .table-eleves thead th { white-space: normal; hyphens: manual; line-height: 1.2 }
.barre-eleve .logo-app .logo-nom { display: none }
/* v2.57 (M6, A4) : Espace parents en 4 questions, une colonne */
.parent-page { display: flex; flex-direction: column; gap: 14px }
.questions-parent { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px }
.q-parent { gap: 8px }
.q-parent p { margin: 0 }
.q-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.q-tete h2 { font-size: 1.05rem; margin: 0; flex: 1; min-width: 0 }
.q-icone { font-size: 1.5rem; line-height: 1 }
.detail-parent > summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface); list-style: none }
.detail-parent > summary::-webkit-details-marker { display: none }
.detail-parent > summary::before { content: "▸ " }
.detail-parent[open] > summary::before { content: "▾ " }
.detail-parent-corps { display: flex; flex-direction: column; gap: 14px; margin-top: 14px }
.ecrire-parent .mots-envoyes { border-top: 1px solid var(--line); padding-top: 10px; font-size: .9rem }
/* v2.57 (A3) : chapitre en cours en classe */
.en-cours-eleve { border-left: 4px solid var(--accent) }
.en-cours-eleve .btn { align-self: flex-start }
.chapitre-tuile.en-classe { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset }
.chapitre-tuile .pastille { font-size: .7rem; vertical-align: middle }
.ecrire-parent .form { display: flex; flex-direction: column; gap: 6px }
.ecrire-parent .form label { font-weight: 600; margin-top: 4px }
.ecrire-parent select, .ecrire-parent textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink) }
.ecrire-parent .btn.principal { align-self: flex-start }
.en-cours-prof .form { display: flex; flex-direction: column; gap: 8px }
.en-cours-prof select { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink) }
.en-cours-prof .btn { align-self: flex-start }
/* v2.58 (A7) : export des résultats de la classe */
.suivi-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap }
.suivi-tete .section-titre { margin: 0 }
/* v2.58 : élève en difficulté (I2, M8) */
.carte.encourager { border-left: 4px solid var(--accent, #3446D4); background: #f4f6ff; }
.carte.encourager h2 { margin-top: 0; }
.alerte.arret-regle p { margin: 0; }
.repere-classe { margin: .5em 0; display: flex; flex-wrap: wrap; gap: .4em; align-items: baseline }
.serie-danger { margin: .6em 0 0; padding: .5em .75em; border-radius: 10px; background: #fff3e0; color: #8a3b00; font-weight: 600 }
/* v2.59 A8 : usage du site */
.table-usage { width: 100%; border-collapse: collapse; font-size: .92em }
.table-usage th, .table-usage td { padding: .35em .5em; border-bottom: 1px solid var(--ligne, #e4e4ea); text-align: left }
.usage-classes { list-style: none; padding: 0; margin: 0; display: grid; gap: .35em }
.usage-classes li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 90px auto auto; gap: .6em; align-items: center }
@media (max-width: 600px) { .usage-classes li { grid-template-columns: 1fr auto; } .usage-classes li .muet, .usage-classes li .jauge { display: none } .table-usage thead { display: none } .table-usage tr { display: block; padding: .4em 0; border-bottom: 1px solid var(--ligne, #e4e4ea) } .table-usage td { display: block; border: 0; padding: .1em 0 } .table-usage td[data-l]::before { content: attr(data-l) " : "; color: var(--muet, #666) } }
/* v2.59 M7 : sous-onglets de l'Administration */
.sous-nav-admin { display: flex; flex-wrap: wrap; gap: .4em; margin: .6em 0 .9em }
.sous-onglet { border: 1px solid var(--ligne, #dfe1ea); background: #fff; border-radius: 999px; padding: .4em .9em; font: inherit; font-size: .92em; cursor: pointer }
.sous-onglet.actif { background: var(--accent, #3446D4); border-color: var(--accent, #3446D4); color: #fff }
.sous-onglet .compte { margin-left: .3em }
@media (max-width: 600px) { .sous-nav-admin { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .2em } .sous-onglet { white-space: nowrap } }
.aide-quota { margin: .3em .9em; font-size: .85em; color: var(--muet, #5b6070) }
.aide-quota.fini { color: #8a3b00 }
/* v2.59 : logo sur la feuille d'autorisation imprimée */
.feuille-marque { display: flex; align-items: center; gap: 10px; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 1.15rem; color: #1D2B4F; margin-bottom: .4em }
.feuille-marque .logo-svg { width: 38px; height: 42px }
.feuille-marque b { color: #3446D4 }
.sous-onglet.sous-action { border-color: var(--accent, #3446D4); color: var(--accent, #3446D4); font-weight: 600 }
.sous-onglet.sous-action:hover { background: var(--accent, #3446D4); color: #fff }

/* (v2.60) Écoles : page du super-admin, filtre par école, cartes d'école */
.filtre-ecole { margin-left: auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card, #fff); font: inherit; font-size: .85rem; max-width: 220px }
.ecoles-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 18px; align-items: start; margin-top: 14px }
.ecoles-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px }
.ecole-carte { display: flex; flex-direction: column; gap: 10px }
.ecole-tete { display: flex; gap: 12px; align-items: center }
.ecole-tete div { display: flex; flex-direction: column; min-width: 0 }
.ecole-icone { font-size: 1.6rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft) }
.ecole-sup { margin: 0; font-size: .9rem }
.ecole-modifier summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem }
.ecole-limites { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.ecole-limites span { display: flex; flex-direction: column; min-width: 0 }
.profs-ecoles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px }
.profs-ecoles li { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line) }
.profs-ecoles li .pdb-nom { grid-column: 1 / -1 }
.profs-ecoles select { min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem }
.profs-ecoles .case { margin: 0 }
.note.succes { color: var(--ok, #1a7f4b); font-weight: 600 }
@media (max-width: 899px) {
  .ecoles-page { grid-template-columns: 1fr }
  .filtre-ecole { margin-left: 0; max-width: 100% }
}

/* ---------- (v2.62) Deux programmes : pastille et couleur d’accent propres au programme français ---------- */
.badge-prog { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--ink); line-height: 1.4 }
.badge-prog.court { padding: 3px 8px 3px 4px }
.bp-drapeau { width: 18px; height: 12px; border-radius: 3px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12) }
.prog-fr .bp-drapeau, .badge-prog.prog-fr .bp-drapeau { background: linear-gradient(90deg, #000091 0 33.4%, #FFFFFF 33.4% 66.6%, #E1000F 66.6%) }
.badge-prog.prog-ma .bp-drapeau { background: radial-gradient(circle at 50% 50%, #006233 0 22%, transparent 24%), #C1272D }
.badge-prog.prog-fr { border-color: color-mix(in srgb, #00677F 35%, var(--line)); color: #00566A }
.titre-prog { margin: 14px 0 4px; font-size: 1rem }
.ref-officielle { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 8px; color: var(--ink) }
@media (max-width: 480px) { .barre-droite .badge-prog .bp-nom { display: none } .barre-droite .badge-prog { padding: 4px } }
/* Accent « bleu canard » et fond plus frais : on reconnaît le programme français au premier coup d’œil. */
body.prog-fr { --accent: #00677F; --accent-ink: #FFFFFF; --accent-soft: #DCEFF3; --fond-eleve: #F1F7F9; --halo-eleve: #BFE3EC; --halo-eleve-2: #F6CDD3 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.prog-fr { --accent: #5CC8E0; --accent-ink: #0E1324; --accent-soft: #12343D; --fond-eleve: #0F1A22; --halo-eleve: #11404A; --halo-eleve-2: #4A1F27 }
  :root:not([data-theme="light"]) .badge-prog.prog-fr { color: #8FDCEC } }
:root[data-theme="dark"] body.prog-fr { --accent: #5CC8E0; --accent-ink: #0E1324; --accent-soft: #12343D; --fond-eleve: #0F1A22; --halo-eleve: #11404A; --halo-eleve-2: #4A1F27 }
:root[data-theme="dark"] .badge-prog.prog-fr { color: #8FDCEC }
body.prog-fr .encourage, body.prog-fr .bandeau-eleve { background: linear-gradient(120deg, #00677F, #0E2A3A) }
.bonjour .badge-prog { margin-top: 6px }
/* Tableaux de valeurs (\begin{array}{|c|c|} \hline) : Chrome n'affiche pas les traits MathML, on les dessine. */
math mtable[columnlines][rowlines] { border-collapse: collapse }
math mtable[columnlines][rowlines] > mtr > mtd { border: 1px solid color-mix(in srgb, currentColor 45%, transparent); padding: .2em .6em }
/* v2.63 : onglet Paramètres (codes des classes, professeurs, mots de passe). */
.param-q { display: block; width: 100%; max-width: 520px; margin: 0 0 14px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit }
.param-page { display: grid; gap: 16px; align-items: start }
.param-gauche, .param-droite { display: grid; gap: 16px; min-width: 0 }
@media (min-width: 1000px) { .param-page { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) } }
.code-param { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .04em; margin-right: 8px }
.table-param th, .table-param td { vertical-align: middle; padding: 6px 12px 6px 0 }
.param-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px }
.param-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line) }
.param-liste li:first-child { border-top: 0 }
.param-liste .pdb-nom { flex: 1 1 180px; min-width: 0; display: grid; overflow-wrap: anywhere }
.param-infos { display: grid; flex: 1 1 150px }
.param-mdp { flex: 1 1 100%; display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: var(--bg) }
.param-mdp input { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: var(--card, #fff); color: var(--ink) }
.param-eleves select { width: 100%; margin: 4px 0 6px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg); color: var(--ink) }
.param-actions { margin-top: 12px }
@media print {
  body.imprime-param .a-imprimer, body.imprime-param .a-imprimer * { visibility: visible !important }
  body.imprime-param .a-imprimer { position: absolute; left: 0; top: 0; width: 100%; border: 0; box-shadow: none }
  body.imprime-param .a-imprimer button:not(.lien), body.imprime-param .a-imprimer form, body.imprime-param .a-imprimer select, body.imprime-param .a-imprimer label { display: none !important }
  body.imprime-param .a-imprimer [hidden] { display: none !important }
}
.imprime-seul { display: none }
@media print { body.imprime-param .a-imprimer .imprime-seul { display: block !important } }

/* (v2.70) Énigme du jour et défi chrono */
.bonus-jour { margin: 2px 0 4px }
.bonus-jour .tuile-icone { font-size: 1.5rem }
.enigme-titre { font-family: var(--f-display); font-size: 1.15rem; margin: 0 0 6px; color: var(--accent) }
.enigme-jour .enonce-q { line-height: 1.55 }
.enigme-stats { margin-top: 12px }
.enigme-hier { margin-top: 12px; padding: 14px 16px }
.enigme-hier summary { cursor: pointer; font-weight: 600 }
.enigme-hier .enonce-q { margin: 10px 0 6px; font-size: 1rem }
.chrono { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums; padding: 2px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent) }
.chrono.urgent { background: var(--bad-soft); color: var(--bad); animation: chrono-pulse 1s ease-in-out infinite }
@keyframes chrono-pulse { 50% { transform: scale(1.08) } }
@media (prefers-reduced-motion: reduce) { .chrono.urgent { animation: none } }
.defi-enonce { font-family: var(--f-display); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 800; text-align: center; padding: 10px 0 4px }
.defi-enonce .muet { font-weight: 600; font-size: .7em }
.defi-retour { margin: 4px 2px 0; font-weight: 600; min-height: 1.3em }
.defi-retour.ok { color: var(--good) }
.defi-retour.ko { color: var(--bad) }
.defi-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px }
.defi-theme { flex-direction: row; align-items: center; gap: 12px; padding: 14px; font: inherit; color: inherit; cursor: pointer; text-align: left; transition: transform .15s, border-color .15s }
.defi-theme:hover { transform: translateY(-2px); border-color: var(--accent) }
.defi-icone { font-size: 1.5rem; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); font-weight: 800; color: var(--accent) }
.defi-bilan { text-align: center; align-items: center; gap: 8px }
.defi-bilan .score { border: 0; background: var(--bg); min-width: 200px }
.defi-bilan .score .stat-val { font-size: 2.6rem }
.gain-defi { color: var(--good); font-weight: 700 }
.defi-bilan .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px }
@media (max-width: 480px) { .defi-themes { grid-template-columns: 1fr } }

/* (v2.72, lot 3 de l'audit) Pages du professeur et de l'administrateur : les colonnes de côté suivent la page
   (plus de colonne coupée qui défile à part), et les colonnes ne s'étirent plus (plus de trou sous les chiffres). */
.tdb.pdb { align-items: start }
.tdb.pdb > .tdb-gauche, .tdb.pdb > .tdb-droite { position: static; max-height: none; overflow: visible }
.tdb.pdb > .tdb-centre { align-content: start }
.adm-page-simple { max-width: 900px; margin: 0 auto }
.adm-parents { margin: 4px 0 14px }
/* Accueil élève : 4 chapitres en cours, le reste replié ; « Mes règles » à côté. */
.liens-chapitres { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin: 12px 0 4px }
.liens-chapitres .tous-chapitres { flex: 0 1 auto }
.liens-chapitres .tous-chapitres[open] { flex: 1 1 100%; order: 2 }
.liens-chapitres .tous-chapitres > summary { display: inline-flex; list-style: none; cursor: pointer }
.liens-chapitres .tous-chapitres > summary::-webkit-details-marker { display: none }
.liens-chapitres .tous-chapitres[open] > summary { margin-bottom: 12px }
.liens-chapitres > .btn { order: 1 }
.carte-bonus .pdb-lacunes { margin: 0 }
/* (v2.74) Nom de classe : niveau + lettre ou numéro */
.choix-nom { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0 }
.choix-nom legend { font-weight: 600; padding: 0; margin-bottom: 6px }
.choix-suffixes { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px }
.choix-suffixes[hidden] { display: none }
.choix-suffixes label { position: relative; display: block; cursor: pointer }
.choix-suffixes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer }
.choix-suffixes span { display: grid; place-items: center; min-height: 38px; border-radius: 10px; border: 2px solid var(--line, #d8dce6); font-weight: 700; background: var(--surface, #fff); transition: background .15s, border-color .15s }
.choix-suffixes input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff) }
.choix-suffixes input:focus-visible + span { outline: 3px solid var(--accent-soft, #c7d2fe); outline-offset: 2px }
.choix-suffixes label.pris { cursor: not-allowed }
.choix-suffixes label.pris span { opacity: .35; text-decoration: line-through }
.choix-nom-apercu { margin: 0; font-size: .95rem }
.choix-nom-apercu strong { font-family: var(--f-display, inherit); font-size: 1.05rem }
.choix-nom-libre { display: flex; flex-direction: column; gap: 6px }
.choix-nom-libre[hidden] { display: none }
.choix-nom-bascule { align-self: flex-start; font-size: .9rem }
.renommer .choix-nom { text-align: left }
/* (v2.74, demande ELG) Téléphone : « Nouvelle classe / Nouveau professeur / Nouvelle école » sous les statistiques, en simple bouton */
@media (max-width: 999px) {
  .nouvelle-classe.tel-haut { margin: 12px 0; border: 0; box-shadow: none; background: transparent }
  .nouvelle-classe.tel-haut summary { justify-content: center; padding: 13px 16px; border-radius: 14px; background: var(--accent); color: var(--accent-ink, #fff); font-size: 1.02rem }
  .nouvelle-classe.tel-haut .plus { background: transparent; color: inherit; width: auto; height: auto; font-size: 1.35rem }
  .nouvelle-classe.tel-haut[open] summary { border-radius: 14px 14px 0 0 }
  .nouvelle-classe.tel-haut[open] .form { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; padding-top: 14px }
}
.ecole-tete .badge-prog { width: fit-content; display: inline-flex; vertical-align: middle }
/* (v2.75) Fiches du professeur : seuls les chiffres du haut arrivent en mouvement. Les cartes plus bas (courbe,
   temps par étape…) s'affichent tout de suite, même dans une capture ou une impression de la page entière. */
.entree .pdb .tdb-centre > :nth-child(n+2) { animation: none }

/* (v2.76, demande ELG) Élèves et profs : deux grands onglets au-dessus de la liste. */
.adm-onglets { display: flex; gap: .6rem; margin: 0 0 1rem; flex-wrap: wrap; }
.adm-onglets button { flex: 1 1 12rem; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1rem; font: inherit; font-weight: 700; font-size: 1.05rem; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: inherit; cursor: pointer; }
.adm-onglets button b { background: rgba(0,0,0,.07); border-radius: 999px; padding: .1rem .6rem; font-size: .95rem; }
/* (v2.82) Rechercher ouvert depuis un rond de la page d’une école */
.adm-ecole-filtre { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: -.3rem 0 1rem; padding: .55rem .9rem; border-radius: 12px; background: var(--accent-soft, rgba(79,70,229,.08)); }
.adm-ecole-filtre span { flex: 1 1 auto }
.ecole-sup-champs { border: 1px solid var(--line); border-radius: 14px; padding: .4rem .9rem .9rem; margin: .6rem 0 0; min-width: 0 }
.ecole-sup-champs legend { font-weight: 800; padding: 0 .4rem }
.ecole-sup-champs .note { margin-top: 0 }
.ronds-ecole button.rond-stat:focus-visible .rond { outline: 3px solid var(--accent); outline-offset: 3px }
.adm-onglets button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.adm-onglets button[aria-pressed="true"] b { background: rgba(255,255,255,.25); }
/* (v2.76) Classes et professeurs encore sans école. */
.a-ranger { border: 2px solid var(--sun); }
.ranger-liste { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .6rem; }
.ranger-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ranger-liste .pdb-nom { flex: 1 1 12rem; }
.ranger-liste .erreur { flex-basis: 100%; margin: 0; }
.alerte-ranger { background: var(--sun-soft); border-radius: 12px; padding: .7rem 1rem; margin: 0 0 1rem; }

/* ===== (v2.77, dessin d'ELG) Tableau de bord élève en 3 colonnes ===== */
@media (min-width: 1000px) { body.tdb-eleve #app { max-width: 1400px } body.tdb-eleve .barre-eleve { width: min(1400px, calc(100vw - 32px)) } }
.tdb3 { display: grid; gap: 18px; align-items: start }
.t3-gauche, .t3-centre, .t3-droite { display: flex; flex-direction: column; gap: 14px; min-width: 0 }
@media (min-width: 1000px) {
  .tdb3 { grid-template-columns: 290px minmax(0, 1fr) 270px; grid-template-areas: "b c d" "g c d"; grid-template-rows: auto 1fr; row-gap: 14px }
  .tdb3 > .bienvenue { grid-area: b } .t3-gauche { grid-area: g } .t3-centre { grid-area: c } .t3-droite { grid-area: d }
  .t3-droite { position: sticky; top: 86px }
}
@media (max-width: 999px) { .tdb3 > .bienvenue { order: -1 } .t3-centre { order: 1 } .t3-droite { order: 0 } .t3-gauche { order: 2 } }
.bienvenue { margin: 4px 0 0; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15 }
.resume-eleve { display: flex; flex-direction: column; gap: 0; padding: 6px 18px }
.res-bloc { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 }
.res-bloc + .res-bloc { border-top: 1px solid var(--line) }
.res-bloc p { margin: 0; font-size: .9rem }
.res-liste { margin: 0; padding-left: 1.1rem; font-size: .92rem; display: grid; gap: 3px }
.res-bloc .btn { align-self: flex-start }
.ronds-chapitres { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 8px }
.rond-ch { --p: 0; width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 3px; cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); color: var(--ink) }
.rond-ch > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--surface) }
.rond-ch.fait > span { background: var(--good); color: #fff }
.rond-ch.en-classe { outline: 2px dashed var(--sun); outline-offset: 2px }
.rond-ch:hover > span, .rond-ch:focus-visible > span { background: var(--accent-soft) }
.message-eleve { position: relative; padding-right: 44px }
.fermer-message { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 1rem; color: inherit; opacity: .6 }
.fermer-message:hover { opacity: 1; background: rgba(0,0,0,.06) }
.seance-jour .bouton-seance { width: 100%; max-width: none; font-size: 1.35rem; padding: 22px 18px; border-radius: 18px }
.bonus-jour { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
@media (max-width: 520px) { .bonus-jour { grid-template-columns: 1fr } }
.courbe-attente p { margin: 6px 0 0 }
.identite-eleve { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 16px }
.identite-nom { font-size: 1.2rem }
.ronds-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; width: 100%; margin-top: 10px }
.rond-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; font: inherit; color: inherit; padding: 0 }
button.rond-stat { cursor: pointer }
button.rond-stat:hover .rond, .rond-stat.actif .rond { background: var(--accent-soft) } /* (v2.101.0) ronds cliquables */
.rond-stat .rond { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 1.3rem; border: 3px solid var(--accent) }
.rond-stat .rond small { font-size: .65em; vertical-align: super }
.rond-stat.rond-badge .rond { background: var(--surface) }
.rond-stat.flamme .rond { background: var(--sun-soft); border-color: var(--sun) }
.rond-stat .rond-lib { font-size: .82rem; color: var(--muted); line-height: 1.2 }
button.rond-stat:hover .rond { transform: scale(1.05) }
@media (max-width: 999px) { .ronds-stats { grid-template-columns: repeat(4, 1fr) } .rond-stat .rond { width: 56px; height: 56px; font-size: 1.05rem } }
.barre-prof .enveloppe, .barre-prof .bouton-profil { display: inline-flex; align-items: center; gap: 6px; position: relative }
.barre-prof .bouton-profil.actif, .barre-prof .enveloppe.actif { background: var(--accent); color: #fff }
.deco-profil { margin-left: auto; align-self: flex-start }

/* ===== (v2.78, maquette validée par ELG) Accueils professeur, parent et administrateur sur le modèle de l'élève ===== */
@media (min-width: 1000px) { body.tdb-eleve .barre-parent { align-self: center; width: min(1400px, calc(100vw - 32px)) } }
.barre-prof .enveloppe .onglet-badge { position: absolute; top: -7px; right: -7px; margin: 0 }
.resume-actions { padding: 6px 10px }
.resume-actions > .pdb-titre { margin: 10px 8px 4px }
.ligne-resume { display: block; width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; padding: 0; border-radius: 12px }
.ligne-resume + .ligne-resume { border-top: 1px solid var(--line); border-radius: 0 }
.ligne-resume > summary, button.ligne-resume, div.ligne-resume { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 14px; align-items: center; gap: 8px; padding: 12px 8px; list-style: none; cursor: pointer }
div.ligne-resume { cursor: default }
.ligne-resume > summary::-webkit-details-marker { display: none }
.ligne-resume > summary:hover, button.ligne-resume:hover { background: var(--accent-soft) }
.lr-ic { font-size: 1.15rem; text-align: center }
.lr-lib { font-weight: 600; line-height: 1.25 }
.lr-val { font-size: 1.15rem; font-variant-numeric: tabular-nums }
.lr-val.alerte { color: var(--bad) }
.lr-fleche { color: var(--muted); font-size: .9rem; transition: transform .15s }
details.ligne-resume[open] .lr-fleche { transform: rotate(180deg) }
.lr-corps { padding: 0 8px 12px 42px }
.lr-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.lr-liste li { display: flex; align-items: center; gap: 8px; min-width: 0 }
.lr-liste .pdb-nom { flex: 1; min-width: 0 }
.lr-liste .btn { flex: none }
.ouvrir-classe { padding: 0; overflow: hidden }
.ouvrir-classe > summary { list-style: none; display: block; text-align: center; margin: 0; width: 100% }
.ouvrir-classe > summary::-webkit-details-marker { display: none }
.ouvrir-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 14px }
.ouvrir-liste > button { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; color: inherit; cursor: pointer }
.ouvrir-liste > button:hover { border-color: var(--accent); background: var(--accent-soft) }
.ouvrir-liste > button small { flex-basis: 100% }
.ouvrir-liste .code-classe { font-size: .8rem }
.raccourcis-accueil > .carte { margin: 0 }
.raccourci .pdb-titre { margin-top: 0 }
.raccourci .note { margin: 8px 0 0 }
.puces-classes { width: 100%; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center }
.puces-classes > div { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center }
.puce-classe { border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; font-weight: 600; font-size: .88rem; border-radius: 999px; padding: 5px 12px; cursor: pointer }
.puce-classe:hover { border-color: var(--accent); background: var(--accent-soft) }
.ecole-rond { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); font-size: 2.4rem }
.parents-ligne { margin: 10px 0 0 }
.petit-texte { font-size: .82rem }
.ce-soir .puces { margin: 0 }
.resume-parent .res-semaine { margin: 12px 0 0 }
.resume-parent .rond-ch { cursor: default }
.resume-parent .repere-classe { font-size: .85rem }
.maj-site .form { gap: 8px }
.maj-site input[type=file] { max-width: 100% }
.maj-ok p { margin: 0 0 8px; overflow-wrap: anywhere }
.ouvrir-classe:not([open]) { background: none; border: 0; box-shadow: none }
@media (max-width: 999px) { .accueil-prof .t3-gauche, .accueil-admin .t3-gauche, .accueil-parent .t3-gauche { order: 0 } .accueil-prof .t3-droite, .accueil-admin .t3-droite, .accueil-parent .t3-droite { order: -1 } .tdb3 > .bienvenue { order: -2 } }
/* (v2.78.1) Tri du tableau « Codes des classes » */
.tri-param { border: 0; background: none; font: inherit; font-weight: 700; color: inherit; padding: 4px 6px 4px 0; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px }
.tri-param span { color: var(--muted); font-size: .8em }
.tri-param.actif, .tri-param.actif span { color: var(--accent) }
.tri-param:hover { color: var(--accent) }
/* (v2.78.2) Gestion des droits (Paramètres) */
.table-droits { width: 100%; border-collapse: collapse; font-size: .9rem }
.table-droits th, .table-droits td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: center }
.table-droits th:first-child, .table-droits td:first-child { text-align: left }
.droit-oui { color: var(--good); font-weight: 800 }
.droit-non { color: var(--muted) }
.liste-roles .choix-role { width: auto; max-width: 100%; margin: 0 }
.liste-roles .role-msg { flex-basis: 100%; margin: 4px 0 0 }
.liste-roles li { flex-wrap: wrap }

/* (v2.78.4) Bloc « Mes chapitres » du tableau de bord élève : progression et choix du chapitre */
.mes-chapitres .mc-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap }
.mes-chapitres .mc-tete h2 { margin: 0 }
.mes-chapitres .mc-aide { margin: 4px 0 10px; font-size: .9rem }
.liste-mes-chapitres { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 460px; overflow-y: auto }
.ch-ligne { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(110px, 160px) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface) }
.ch-ligne.conseille { border-color: var(--accent); background: var(--accent-soft) }
.ch-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); font-weight: 700; font-size: .85rem }
.ch-ligne.commence .ch-num { background: var(--sun-soft) }
.ch-ligne.fait .ch-num { background: var(--good); color: #fff }
.ch-nom { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0 }
.ch-nom strong { font-weight: 600 }
.ch-nom:hover strong, .ch-nom:focus-visible strong { text-decoration: underline }
.etiq-ch { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap }
.etiq-ch.en-classe { background: var(--sun-soft); color: var(--ink) }
.etiq-ch.conseil { background: var(--accent); color: #fff }
.ch-prog { display: flex; align-items: center; gap: 8px }
.ch-prog .jauge { flex: 1; margin: 0 }
.ch-pct { font-size: .85rem; font-weight: 700; min-width: 3.2em; text-align: right }
.ch-ligne .btn.petit { white-space: nowrap }
@media (max-width: 600px) {
  .liste-mes-chapitres { max-height: none }
  .ch-ligne { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "n t b" "n p p"; row-gap: 6px }
  .ch-num { grid-area: n; align-self: start } .ch-nom { grid-area: t } .ch-prog { grid-area: p } .ch-ligne .btn { grid-area: b }
}
.ch-ligne.conseille .jauge { background: var(--surface) }
.voir-chapitres { display: none; margin-top: 10px }
@media (max-width: 600px) {
  .liste-mes-chapitres:not(.tout) .ch-plus { display: none }
  .voir-chapitres { display: inline-block }
}

/* (v2.79, demande ELG) Chapitres choisis par le professeur : chapitres fermés grisés « Bientôt » chez l'élève, page « Chapitres » de la classe. */
.ch-ferme { opacity: .55 }
.ch-ferme:hover { opacity: .8 }
.chapitre-tuile.ch-ferme:hover { transform: none; border-color: var(--line) }
.rond-ch.ch-ferme > span { background: repeating-linear-gradient(135deg, var(--surface) 0 4px, var(--line) 4px 6px) }
.etiq-ch.bientot { background: var(--line); color: var(--muted) }
.btn.desactive { opacity: .6; cursor: default; pointer-events: none; background: var(--line); color: var(--muted); border-color: transparent }
.ch-bientot { margin-top: 10px }
.onglets-classe { margin-top: .4rem }
.onglets-classe button { font-size: 1rem }
.chapitres-classe { display: grid; gap: 14px; max-width: 980px }
.chapitres-classe .carte { margin: 0 }
.modes-ch { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px }
.choix-mode { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface) }
.choix-mode.actif { border-color: var(--accent); background: var(--accent-soft) }
.choix-mode input { margin-top: 4px; accent-color: var(--accent) }
.choix-mode span { display: grid; gap: 2px }
.choix-mode small { color: var(--muted); font-size: .85rem; line-height: 1.35 }
.liste-ch-classe { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px }
.liste-ch-classe label { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; min-width: 0 }
.liste-ch-classe li.ouvert label { border-color: var(--accent); background: var(--accent-soft) }
.liste-ch-classe li.ferme label { opacity: .7 }
.liste-ch-classe input { width: 20px; height: 20px; flex: none; accent-color: var(--accent) }
.liste-ch-classe .cc-nom { display: grid; min-width: 0 }
.liste-ch-classe .cc-nom small { color: var(--muted); font-size: .8rem }
.chapitres-classe select { max-width: 100%; margin: 8px 0 }
.chapitres-classe .obj-ligne h2 { margin: 0 }
.chapitres-classe .obj-ligne { flex-wrap: wrap; gap: 8px }
.chapitres-classe .obj-ligne .rangee { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 }
.chapitres-classe .obj-ligne .rangee .btn { width: auto; margin: 0 }

/* ===== (v2.80, organigramme validé par ELG) Administration rangée comme l'établissement ===== */
.barre-droite .enveloppe .lib-ordi { font-size: .85rem; font-weight: 600 }
@media (max-width: 1279px) { .barre-droite .enveloppe .lib-ordi { display: none } }
.interrupteur-prog { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 4px }
.interrupteur-prog > .muet { font-size: .85rem; margin-right: 2px }
.interrupteur-prog button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer }
.interrupteur-prog button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff }
.interrupteur-prog button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
.ecole-page { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 14px }
.ecole-cote, .ecole-centre { display: grid; gap: 16px; align-content: start; min-width: 0 }
.ecole-page .identite-ecole .ecole-actions { justify-content: center; margin-top: 6px }
.ecole-page .identite-ecole .ecole-modifier { text-align: left; width: 100% }
.ecole-page .identite-ecole .ecole-modifier > summary { display: none }
.ecole-profs .rangee { margin-top: 10px; flex-wrap: wrap }
.ecole-prof select { width: 100% }
.mdp-prof { margin: 10px 0 }
.page-inviter { max-width: 640px; margin: 16px auto 0 }
@media (max-width: 999px) { .ecole-page { grid-template-columns: minmax(0, 1fr) } }
.ecole-prof select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; margin: 4px 0 8px }
.ecole-prof .case { font-size: .9rem; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px }

/* (v2.81) Réunions de classe en visio (Google Meet) */
.reunions-page { display: grid; gap: 16px; align-items: start; margin-top: 12px }
@media (min-width: 1000px) { .reunions-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) } }
.reunions-page .carte + .carte { margin-top: 16px }
.reu-quand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.reu-quand span { display: grid; gap: 4px; min-width: 0 }
.reu-quand input, .reu-quand select { width: 100%; min-width: 0 }
@media (max-width: 480px) { .reu-quand { grid-template-columns: 1fr 1fr } .reu-quand span:last-child { grid-column: span 2 } }
.reu-lien { border: 0; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; min-width: 0 }
.reu-lien legend { font-weight: 600; margin-bottom: 6px; padding: 0 }
.reu-lien .choix-mode:has(input:disabled) { opacity: .6; cursor: default }
.btn-google { justify-self: start }
.google-relie { margin: -2px 0 0 }
.reu-msg { margin: 12px 0 0 }
.reunions-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px }
.reunion-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface) }
.reunion-item.annulee { opacity: .7 }
.reunion-item .obj-ligne strong, .reunion-eleve .obj-ligne strong { overflow-wrap: anywhere }
.reunion-item p { margin: 4px 0 }
.reu-texte { white-space: normal; overflow-wrap: anywhere }
.reu-actions { flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px }
.reu-detail summary { cursor: pointer; list-style: none }
.reu-detail summary::-webkit-details-marker { display: none }
.reu-detail summary .muet::after { content: " · ouvrir"; color: var(--accent) }
.reu-detail[open] summary .muet::after { content: "" }
.reu-presences { margin-top: 10px }
.table-presences { width: 100%; border-collapse: collapse; font-size: .95rem }
.table-presences th, .table-presences td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line) }
.table-presences select { min-width: 0; padding: 4px 6px }
.pastille-reu { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; background: var(--accent-soft); color: var(--accent) }
.pastille-reu.proche { background: var(--sun-soft); color: var(--sun) }
.pastille-reu.encours { background: var(--bad-soft); color: var(--bad) }
.pastille-reu.finie { background: var(--good-soft); color: var(--good) }
.pastille-reu.annulee { background: var(--line); color: var(--muted) }
.reunions-eleve .reunion-eleve { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line) }
.reunions-eleve .reunion-eleve:first-of-type { border-top: 0 }
.reunions-eleve .reunion-eleve p { margin: 0 }
.reunion-eleve.ouverte { border: 2px solid var(--bad); border-radius: 12px; padding: 10px; background: var(--bad-soft) }
.reunion-eleve.annulee strong { text-decoration: line-through }
.reunion-eleve .btn { justify-self: start }
.reu-note { color: var(--good); font-weight: 600 }
.reu-compte-rendu { margin-top: 8px }
.reu-compte-rendu summary { cursor: pointer; font-weight: 600 }
.uri-google { overflow-wrap: anywhere; font-size: .85rem; background: var(--accent-soft); padding: 6px 8px; border-radius: 8px; min-width: 0 }
.reunions-page .pdb-liste li.reunion-item { display: block; font-size: 1rem }
.reunions-page textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; resize: vertical }
.reunions-page .form label.case { display: flex; flex-direction: row; justify-content: flex-start; text-align: left; align-items: flex-start; gap: 10px; margin: 6px 2px 8px; font-weight: 500; color: var(--ink) }
.reunions-page .form label.case input { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0 }
.reunions-page .reu-quand input { margin-top: 0 }
.reunions-page .reu-quand select { padding: 12px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit }
.reunions-page .reu-actions .btn { width: auto }
.reunions-page .reu-presences select { width: auto }
.pastille-reu { align-self: flex-start; flex-shrink: 0 }
/* (v2.85, demande ELG) « À retravailler » bien visible au centre du tableau de bord élève */
.a-retravailler { border: 2px solid var(--sun); background: var(--sun-soft); }
.a-retravailler .ar-tete { display: flex; gap: 12px; align-items: flex-start; margin-bottom: .6rem }
.a-retravailler .ar-icone { font-size: 2rem; line-height: 1 }
.a-retravailler h2 { margin: 0; font-size: 1.25rem; display: flex; align-items: center; gap: .5rem }
.a-retravailler h2 .compte { background: var(--sun); color: #fff; border-radius: 999px; padding: .05rem .6rem; font-size: .95rem }
.a-retravailler .ar-tete p { margin: .2rem 0 0; color: var(--ink) }
.a-retravailler .liste-regles { margin: 0 0 .8rem }
.a-retravailler .liste-regles li { background: var(--surface); border-radius: 12px; padding: .5rem .8rem; margin-bottom: .4rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem }
.a-retravailler .liste-regles small { display: block; color: var(--muted) }
.a-retravailler .bouton-retravailler { width: 100%; background: var(--sun); color: #fff; border-color: var(--sun); font-weight: 800 }
.a-retravailler .bouton-retravailler:hover { filter: brightness(1.08) }
/* (v2.86) Modifier / Supprimer une classe depuis la page de l'école */
.actions-classe { white-space: nowrap }
.actions-classe .lien { margin-right: .8rem; font-size: .92rem }
.suppr-classe-ligne td { background: var(--bad-soft) }
.suppr-classe-ligne .note { margin: 0; color: var(--ink) }
@media print { .col-actions, .suppr-classe-ligne { display: none !important } }
/* (v2.87) Modifier / Supprimer sur les cartes de la liste des écoles */
.ecole-liens { display: flex; justify-content: center; gap: 1.2rem; margin-top: .5rem }
.ecole-liens .lien { font-size: .92rem }
/* (v2.88) Gestion des droits modifiable */
.droit-bascule { font: inherit; font-size: .82rem; font-weight: 700; border-radius: 999px; padding: .3rem .7rem; cursor: pointer; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); white-space: nowrap }
.droit-bascule.oui { background: var(--good-soft); border-color: var(--good); color: var(--good) }
.droit-bascule:not(.oui) { background: var(--bad-soft); border-color: var(--bad); color: var(--bad) }
.droit-bascule:disabled { opacity: .6; cursor: wait }
.droit-cache-lib { color: var(--bad); font-weight: 700; font-size: .85rem }
.droit-cache { display: none !important }
@media (max-width: 600px) { .table-droits thead { display: none } .table-droits tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line) } .table-droits td { border: 0; padding: 2px 0; text-align: left } .table-droits td:first-child { grid-column: 1 / -1; font-weight: 700 } .table-droits td[data-l]::before { content: attr(data-l) " : "; color: var(--muted); font-size: .8rem } }
/* (v2.89, demande ELG) Page « Nouvelle école » */
.ajouter-ecole { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px }
.ajouter-ecole .ecole-icone { font-size: 2rem; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft) }
.ajouter-ecole strong { font-size: 1.15rem }
.ajouter-ecole .btn { width: 100% }
.form-nouvelle-ecole { display: flex; flex-direction: column; gap: 16px }
.etape-ecole .pdb-titre { display: flex; align-items: center; gap: 10px }
.etape-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .95rem; flex: none }
.deux-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px }
.deux-champs > span { display: flex; flex-direction: column; min-width: 0 }
.choix-programme { border: 0; padding: 0; margin: 10px 0 0; min-width: 0 }
.choix-programme legend { font-weight: 700; margin-bottom: 6px; padding: 0 }
.choix-progs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.choix-prog input { position: absolute; opacity: 0; pointer-events: none }
.choix-carte { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; height: 100% }
.choix-carte .choix-drapeau { font-size: 1.6rem; line-height: 1 }
.choix-carte small { color: var(--muted); font-size: .85rem }
.choix-prog input:checked + .choix-carte { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent) inset }
.choix-prog input:focus-visible + .choix-carte { outline: 3px solid var(--accent); outline-offset: 2px }
.actions-ecole { gap: 10px }
.actions-ecole .btn.principal { flex: 1 }
.etapes-suite { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 10px }
.etapes-suite li strong { display: block }
.etapes-suite li small { color: var(--muted) }
@media (max-width: 999px) { .nouvelle-ecole-page { grid-template-columns: 1fr } }
@media (max-width: 600px) { .deux-champs, .choix-progs { grid-template-columns: 1fr } }
@media (max-width: 999px) { .nouvelle-ecole-page { grid-template-columns: 1fr } }
/* (v2.90, modèle d'ELG) Espace professeur / administration : menu vertical à gauche sur ordinateur, icône au-dessus du nom. */
.cote-logo, .nav-prof .cote-seul { display: none }
.bienvenue h1 { font-size: inherit; margin: 0; line-height: inherit }
.annee-scol { margin: 4px 0 0; font-family: var(--f-body, inherit); font-size: .95rem; font-weight: 500; color: var(--muted) }
.barre-prof .interrupteur-prog { margin: 0 }
.barre-prof .interrupteur-prog button { padding: 5px 12px; font-size: .85rem }
@media (min-width: 761px) {
  body.ambiance-prof:has(#nav-prof-bas) { padding-left: 104px }
  body.ambiance-prof .barre-prof .nav-prof { display: none }
  body.ambiance-prof .barre-prof .bouton-param { display: none }
  body.ambiance-prof .barre-prof .bouton-recherche { min-width: 220px; justify-content: flex-start }
  body.ambiance-prof .barre-prof .bouton-recherche:not(.actif) { color: var(--muted) } /* (v2.96.1) actif : texte blanc sur bleu */ /* (v2.94) en haut, comme un champ de recherche */
  body.ambiance-prof .barre-prof > .logo-app { display: none }
  body.ambiance-prof .barre-prof .barre-droite { margin-left: auto }
  body.ambiance-prof #nav-prof-bas { display: flex; flex-direction: column; align-items: stretch; gap: 14px; position: fixed; top: 0; bottom: 0; left: 0; width: 96px; z-index: 40; padding: calc(14px + env(safe-area-inset-top, 0px)) 8px 14px; background: var(--ardoise); color: var(--ardoise-ink); overflow-y: auto; box-shadow: 6px 0 24px -18px rgba(22,30,63,.6) }
  body.ambiance-prof #nav-prof-bas .cote-logo { display: grid; place-items: center; padding: 4px 0 }
  body.ambiance-prof #nav-prof-bas .cote-logo .logo-svg { width: 46px; height: 46px }
  body.ambiance-prof #nav-prof-bas .nav-prof { flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; flex: 1 }
  body.ambiance-prof #nav-prof-bas .cote-seul { display: flex }
  body.ambiance-prof #nav-prof-bas .cote-sep { display: block; height: 1px; margin: 8px 10px; background: color-mix(in srgb, var(--ardoise-ink) 20%, transparent) }
  body.ambiance-prof #nav-prof-bas .onglet-prof { position: relative; flex-direction: column; justify-content: center; gap: 4px; width: 100%; padding: 10px 4px; border-radius: 14px; font-size: .74rem; white-space: normal; text-align: center; line-height: 1.15; color: color-mix(in srgb, var(--ardoise-ink) 78%, transparent) }
  body.ambiance-prof #nav-prof-bas .onglet-prof:hover { background: color-mix(in srgb, var(--ardoise-ink) 10%, transparent); color: var(--ardoise-ink) }
  body.ambiance-prof #nav-prof-bas .onglet-prof.actif { background: color-mix(in srgb, var(--ardoise-ink) 18%, transparent); color: #fff; box-shadow: inset 3px 0 0 var(--sun) }
  body.ambiance-prof #nav-prof-bas .onglet-icone { font-size: 1.35rem }
  body.ambiance-prof #nav-prof-bas .lib-ordi, body.ambiance-prof #nav-prof-bas .fleche { display: none }
  body.ambiance-prof #nav-prof-bas .lib-tel { display: inline }
  body.ambiance-prof #nav-prof-bas .onglet-badge { position: absolute; top: 4px; right: 10px; margin: 0 }
  body.ambiance-prof #nav-prof-bas .menu-classes-liste { position: fixed; top: 80px; left: 104px; color: var(--ink) }
  body.ambiance-prof .cloche-panneau { z-index: 80 }
}
@media (max-width: 760px) {
  .barre-prof { flex-wrap: wrap; row-gap: 8px }
  .barre-prof .interrupteur-prog { order: 10; flex: 1 1 100%; flex-wrap: nowrap; gap: 4px; overflow-x: auto }
  .barre-prof .interrupteur-prog > .muet { display: none }
  .barre-prof .interrupteur-prog button { flex: 1; justify-content: center; padding: 5px 8px; white-space: nowrap }
}
/* (v2.90, test de chaque lien) Cloche ouverte : le menu (barre du bas ou colonne de gauche) reste cliquable au-dessus de la page. */
body.cloche-ouverte #nav-prof-bas { z-index: 65 }
/* (v2.91, demande ELG « une autre forme ») Usage du site : tuiles de la semaine + barres « élèves actifs » cliquables. */
.usage-titre-sem { margin: 0 0 8px; font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em }
.usage-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px }
.usage-tuile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line) }
.usage-tuile .usage-ic { font-size: 1.1rem }
.usage-tuile strong { font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink) }
.usage-tuile strong small { font-size: .9rem; color: var(--muted); font-weight: 600 }
.usage-tuile > span:not(.usage-ic) { font-size: .85rem; color: var(--ink) }
.usage-tuile small.muet { font-size: .76rem }
.usage-graphe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; padding: 8px 4px 0; border-bottom: 1px solid var(--line); margin-bottom: 6px }
.usage-col { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 2px 6px; border-radius: 10px; cursor: pointer; font: inherit; color: var(--ink) }
.usage-col:hover { background: var(--bg) }
.usage-col:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
.usage-val { font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap }
.usage-val small { font-weight: 500; color: var(--muted); font-size: .75rem }
.usage-zone { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; width: 100%; height: 140px; background: repeating-linear-gradient(to top, transparent 0 34px, color-mix(in srgb, var(--line) 60%, transparent) 34px 35px) }
.usage-barre { display: block; flex-shrink: 0; width: min(44px, 70%); border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--accent) 45%, var(--surface)); transition: height .3s ease }
.usage-col.choisie .usage-barre { background: var(--accent) }
.usage-col.en-cours:not(.choisie) .usage-barre { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 45%, var(--surface)) 0 6px, color-mix(in srgb, var(--accent) 25%, var(--surface)) 6px 10px) }
.usage-date { font-size: .74rem; color: var(--muted); text-align: center; line-height: 1.15 }
.usage-col.choisie .usage-date { color: var(--ink); font-weight: 700 }
.usage-tableau { margin: 6px 0 4px }
.usage-tableau summary { cursor: pointer; font-size: .88rem; margin-bottom: 8px }
@media (max-width: 480px) { .usage-tuiles { grid-template-columns: 1fr 1fr } .usage-zone { height: 110px } .usage-graphe { gap: 2px } }
.usage-aide { margin: -4px 0 4px; font-size: .82rem }
/* (v2.97) Tuiles cliquables : détail en graphique */
button.usage-tuile { font: inherit; text-align: left; align-items: flex-start; cursor: pointer; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s }
button.usage-tuile:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 14%, transparent) }
button.usage-tuile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
button.usage-tuile.choisie { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--bg)); box-shadow: inset 0 0 0 1px var(--accent) }
.usage-voir { margin-top: auto; padding-top: 6px; font-size: .78rem; font-weight: 700; color: var(--accent) }
.usage-detail { margin: 12px 0 6px; padding: 12px 14px 8px; border-radius: 14px; border: 1px solid var(--accent); background: var(--surface) }
.usage-detail-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap }
.usage-detail-tete h3 { margin: 0 }
.usage-detail-tete small { font-weight: 500; white-space: nowrap }
.usage-graphe-detail .usage-zone { height: 120px }
.usage-col.fixe { cursor: default }
.usage-col.fixe:hover { background: none }
.usage-col.a-venir .usage-date { opacity: .5 }
.usage-detail .usage-aide { margin: 6px 0 2px }
@media (max-width: 480px) { .usage-graphe-detail { gap: 2px } .usage-graphe-detail .usage-val { font-size: .74rem } .usage-graphe-detail .usage-zone { height: 100px } }
/* (v2.92, demande ELG « une autre forme ») Gestion des droits : un onglet par rôle, actions groupées, interrupteurs. */
.droits-onglets { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; margin: 4px 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px }
.droits-onglets button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; white-space: nowrap }
.droits-onglets button:hover { color: var(--ink) }
.droits-onglets button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 4px 12px -8px rgba(22,30,63,.45) }
.droits-onglets button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
.droits-resume { margin: 0 0 10px; font-size: .9rem; color: var(--muted) }
.droits-resume strong { color: var(--ink) }
.droits-groupe { margin-bottom: 12px }
.droits-groupe h3 { margin: 0 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted) }
.droits-groupe ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden }
.droits-groupe li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: .92rem; background: var(--surface) }
.droits-groupe li + li { border-top: 1px solid var(--line) }
.droits-groupe li.eteint > span:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 60%, transparent) }
.droit-toujours { color: var(--good); font-weight: 700; font-size: .85rem; white-space: nowrap }
.droits-groupe .droit-bascule { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px; color: var(--muted); font-size: .82rem; min-width: 128px; justify-content: flex-start }
.droits-groupe .droit-bascule.oui, .droits-groupe .droit-bascule:not(.oui) { background: none; border: 0 }
.droit-piste { position: relative; flex-shrink: 0; width: 40px; height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--bad) 55%, var(--line)); transition: background .2s ease }
.droit-piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s ease }
.droit-bascule.oui .droit-piste { background: var(--good) }
.droit-bascule.oui .droit-piste::after { transform: translateX(18px) }
.droit-bascule.oui .droit-etat { color: var(--good) }
.droit-bascule:not(.oui) .droit-etat { color: var(--bad) }
.droit-bascule:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 999px }
.aide-google { display: block; font-size: .8rem; margin: -2px 0 6px }
@media (max-width: 480px) { .droits-onglets button { padding: 7px 8px; font-size: .82rem } .droits-groupe li { flex-wrap: wrap } .droits-groupe .droit-bascule { min-width: 0 } }
/* (v2.93, demande ELG « une autre forme ») Google Meet en 3 étapes, mise à jour avec zone de dépôt. */
.g-etat { margin: 0 0 6px; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem }
.g-etat.ok { background: var(--good-soft); color: var(--good) }
.g-etat.attente { background: var(--sun-soft); color: var(--ink) }
.g-intro { margin: 0 0 10px; font-size: .88rem }
.g-etapes { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 14px }
.g-etape { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start }
.g-etape > div { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.g-etape p { margin: 0; font-size: .85rem }
.g-etape .btn { align-self: flex-start }
.g-etape.fait .etape-num { background: var(--good); color: #fff }
.g-etape .classe-code { flex-wrap: wrap; max-width: 100% }
.g-etape .uri-google { overflow-wrap: anywhere }
.aide-google { margin: -2px 0 4px }
.maj-version { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line) }
.maj-version strong { font-size: 1.4rem; font-variant-numeric: tabular-nums }
.maj-depot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 14px; border: 2px dashed var(--line); border-radius: 14px; background: var(--surface); text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease }
.maj-depot:hover, .maj-depot.survol { border-color: var(--accent); background: var(--accent-soft) }
.maj-depot.pret { border-style: solid; border-color: var(--good); background: var(--good-soft) }
.maj-depot-ic { font-size: 1.8rem }
.maj-depot strong { font-size: .95rem; overflow-wrap: anywhere }
.maj-depot small { font-size: .8rem }
.maj-depot input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100% }
.maj-depot:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px }
#maj-go { width: 100% }
#maj-go:disabled { opacity: .5; cursor: not-allowed }
.maj-garanties { list-style: none; margin: 4px 0 0; padding: 0; font-size: .82rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px }
.maj-secours { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .88rem }
/* (v2.95, demande ELG « une autre forme ») Page Écoles en liste : recherche, ville, tri ; une ligne par école. */
.ecoles-haut { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 6px }
.ecoles-haut h1 { margin: 0 }
.ecoles-haut p { margin: 2px 0 0; font-size: .9rem }
.ecoles-vue { display: flex; flex-direction: column; gap: 14px; margin-top: 14px }
.ecoles-tableau .pdb-titre small { font-weight: 500; font-size: .85rem }
.ecoles-outils { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px }
.ecoles-outils input[type=search] { flex: 1 1 260px; min-width: 0; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit }
.ecoles-outils input[type=search]:focus { outline: none; border-color: var(--accent) }
.ecoles-outils select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem }
.el-entete, .ecole-ligne { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(90px, 1fr) 70px minmax(90px, 1fr) minmax(140px, 1.5fr) 330px; gap: 14px; align-items: center }
.el-entete { padding: 0 12px 6px; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line) }
.ecoles-lignes { list-style: none; margin: 0; padding: 0 }
.ecole-ligne { padding: 12px; border-bottom: 1px solid var(--line); border-radius: 0 }
.ecole-ligne:hover { background: var(--bg) }
.ecole-ligne[hidden] { display: none }
.el-nom { display: flex; align-items: center; gap: 10px; min-width: 0 }
.el-nom > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0 }
.el-nom small { flex-basis: 100%; font-size: .82rem }
.el-titre { font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none; text-align: left }
.el-titre:hover { text-decoration: underline }
.ecole-ligne .ecole-icone { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); font-size: 1.2rem }
.el-chiffre { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums }
.el-chiffre b { color: var(--ink); font-size: 1rem }
.el-chiffre .jauge { width: 100%; max-width: 110px }
.ecole-ligne .ecole-sup { margin: 0; font-size: .88rem }
.el-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px }
.el-actions .ecole-liens { display: flex; gap: 10px; font-size: .82rem }
.el-actions .btn, .el-actions .lien { white-space: nowrap }
@media (max-width: 600px) { .ecoles-tableau .pdb-titre small { display: none } }
.ecole-ligne .suppr-ecole-msg { grid-column: 1 / -1; margin: 0 }
@media (max-width: 1100px) {
  .el-entete { display: none }
  .ecole-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px }
  .ecole-ligne .el-nom, .ecole-ligne .ecole-sup, .ecole-ligne .el-actions { grid-column: 1 / -1 }
  .el-chiffre::before { content: attr(data-l); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted) }
  .ecole-ligne .ecole-sup::before { content: attr(data-l) " : "; color: var(--muted) }
  .el-actions { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap }
}
/* (v2.96, demande ELG) École de démo dans Paramètres. */
.demo-mdp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin: 8px 0 }
.demo-mdp code { font-size: 1.15rem; font-weight: 700; letter-spacing: .04em }
.demo-aide { font-size: .85rem }
.table-demo { width: 100%; border-collapse: collapse; font-size: .88rem }
.table-demo th, .table-demo td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line) }
.table-demo code { font-size: .85rem }
.demo-eleves { margin: 8px 0 }
.demo-eleves summary { cursor: pointer; margin-bottom: 6px }
.demo-familles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px }
.demo-familles li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap }
.demo-familles li > span { display: flex; flex-direction: column; min-width: 0 }
.demo-familles small { font-size: .8rem }
/* (v2.103.0, demande ELG) « Modifier » une réunion à venir */
.reunions-page .reu-actions [data-reu-modif] { flex: 0 0 auto; padding: 6px 12px }
.reunions-page .reu-modif-item { border: 2px solid var(--accent); border-radius: 14px; padding: 12px }
.reunions-page .reu-modif-titre { margin: 0 0 8px; font-size: 1.05rem }

/* (v2.105) Mode Approfondir et défi de la semaine : orange (soleil) pour aller plus loin. */
.btn.approfondir { background: linear-gradient(135deg, #F2A93B, #E2611B); color: #fff; border-color: transparent; font-weight: 600 }
.btn.approfondir:hover { filter: brightness(1.05) }
.btn.approfondir.petit { background: linear-gradient(135deg, #F2A93B, #E2611B) }
.approfondir-bloc { position: relative; display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line) }
.approfondir-bloc .etiq-nouveau { position: absolute; top: 2px; right: 8px; z-index: 1 }
.etiq-nouveau { display: inline-block; background: var(--ardoise); color: var(--ardoise-ink); font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; line-height: 1.4 }
.tuile-eleve { position: relative }
.tuile-eleve .etiq-nouveau { position: absolute; top: -8px; right: 10px }
.badges-approf { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px }
.badges-approf.grand { justify-content: flex-start; margin: 4px 0 8px }
.badge-approf { background: var(--sun-soft); color: var(--sun); font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap }
.badges-approf.grand .badge-approf { font-size: .9rem; padding: 5px 12px }
.pb-tete { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap }
.pb-tete span:last-child { font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .9rem }
.pb-enonce .enonce-q { font-size: 1.05rem }
.pb-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px }
.pb-etape { border-left: 4px solid var(--line); padding: 4px 0 4px 12px; display: flex; flex-direction: column; gap: 8px }
.pb-etape.reussie { border-color: var(--good) }
.pb-etape.ratee { border-color: var(--bad) }
.pb-etape.en-cours { border-color: var(--accent) }
.pb-etape.a-venir { opacity: .55 }
.pb-etape.reussie .pb-rep strong { color: var(--good) }
.pb-etape.ratee .pb-rep strong { color: var(--bad) }
.pb-correction summary { cursor: pointer; color: var(--accent); font-size: .9rem }
.pb-correction .etapes { margin: 6px 0 0 }
.pb-indice { background: var(--sun-soft); border-radius: 10px; padding: 8px 12px }
.indice-btn { background: var(--accent-soft); border-color: transparent; color: var(--accent); align-self: stretch }
.fin-approf { border: 1.5px dashed #E2611B; display: flex; flex-direction: column; gap: 10px }
.fin-approf h2 { color: var(--sun) }
.cellule-approf.actif { background: var(--sun-soft) }
.cellule-approf strong { color: var(--sun) }
.ils-vont-plus-loin { border: 1.5px dashed #E2611B }
.ils-vont-plus-loin ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px }
.ils-vont-plus-loin li { display: flex; align-items: center; gap: 8px }
.ils-vont-plus-loin .ils-nom { flex: 1 }
.ils-vont-plus-loin .ils-score { color: var(--sun); white-space: nowrap }
.petit-texte { font-size: .85rem }
.approf-liste { max-height: none }
.approf-liste .ch-ligne { grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: none }
.approf-liste .ch-ligne > * { grid-area: auto }
@media (max-width: 600px) { .approf-liste .ch-ligne { grid-template-columns: 34px minmax(0, 1fr) } .approf-liste .ch-ligne > .rangee, .approf-liste .ch-ligne > .petit-texte { grid-column: 2 } }
/* (v2.106.0, choix ELG) Bascule « Espace professeur ⇄ Espace superviseur » */
.bouton-espace { border-color: var(--accent); color: var(--accent); font-weight: 700 }
/* (v2.107.1) Règles ratées nommées dans la carte « En difficulté » de la fiche élève. */
.regles-ratees { margin: 6px 0 2px; padding-left: 18px; display: grid; gap: 4px }
.regles-ratees li { list-style: circle }
.regles-ratees small { font-size: .82rem }
.alerte-difficulte .regles-ratees strong { color: var(--ink); font-weight: 600 }
/* (v2.107.1) Bandeau de la fiche élève : « 3 règles à réviser aujourd'hui » s'ouvre sur la liste. */
.a-reviser { display: inline }
.a-reviser summary { display: inline; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-weight: 700 }
.a-reviser summary::after { content: " ▾" }
.a-reviser[open] summary::after { content: " ▴" }
.a-reviser[open] { display: block }
.a-reviser-note { margin: 8px 0 4px; font-size: .84rem; opacity: .85; font-weight: 500 }
.a-reviser ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-weight: 500 }
.a-reviser small { opacity: .8 }
/* (v2.107.2, choix ELG « A ») Fil « Vous êtes ici » en étiquettes. */
.fil-etiquettes ol { gap: 6px; align-items: center; font-size: .9rem }
.fil-etiquettes li { display: flex; align-items: center; gap: 6px; min-width: 0 }
.fil-etiquettes li + li::before { margin: 0; font-size: 1.1rem; color: var(--muted) }
.fil-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 5px; font: inherit; font-weight: 600; color: var(--ink); box-shadow: 0 2px 0 var(--line); cursor: pointer; min-width: 0; max-width: 100%; text-align: left }
button.fil-pill:hover { border-color: var(--accent); color: var(--accent) }
button.fil-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.fil-pill.ici { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 60%, #000); cursor: default }
.fil-ic { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: .85rem }
.fil-pill.ici .fil-ic { background: color-mix(in srgb, var(--accent-ink) 22%, transparent) }
.fil-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.fil-txt small { font-size: .62rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted) }
.fil-pill.ici .fil-txt small { color: color-mix(in srgb, var(--accent-ink) 75%, transparent) }
@media (max-width: 480px) { .fil-etiquettes ol { font-size: .82rem; gap: 4px } .fil-pill { padding-right: 9px } .fil-ic { width: 22px; height: 22px } }
/* (v2.107.3, choix ELG « A ») Carte « Faire recommencer » : deux choix clairs. */
.remise-choix { border: 0; padding: 0; margin: 0 0 4px; display: grid; gap: 8px; min-width: 0 }
.remise-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 400 }
.remise-opt input { margin-top: 4px; accent-color: var(--accent); flex: none }
.remise-opt > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 }
.remise-opt small { color: var(--muted); font-size: .84rem }
.remise-opt select { margin-top: 6px; width: 100% }
.remise-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)) }
.remise-opt.rouge input { accent-color: var(--bad) }
.remise-opt.rouge.on { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 6%, var(--surface)) }
/* (v2.108.0, choix ELG « bandeau + 4 onglets ») Fiche élève rangée. */
.fiche-bandeau { display: flex; flex-direction: column; gap: 14px; margin-top: 12px }
.fb-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px }
.fb-identite { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 320px }
.fb-identite .avatar { width: 58px; height: 58px; font-size: 1.6rem; border-radius: 50% }
.fb-nom { min-width: 0 }
.fb-nom h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1 }
.fb-nom p { margin: 3px 0 0; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere }
.fb-nom .fb-activite { color: var(--ink); font-weight: 600 }
.fb-chiffres { display: grid; grid-template-columns: repeat(4, minmax(78px, 1fr)); gap: 8px }
.fb-chiffre { background: color-mix(in srgb, var(--accent) 5%, var(--bg)); border-radius: 12px; padding: 8px 10px; text-align: center }
.fb-chiffre b { display: block; font-family: var(--f-display); font-size: 1.35rem; line-height: 1.15 }
.fb-chiffre small { color: var(--muted); font-size: .74rem; line-height: 1.2; display: block }
.fb-alertes { display: grid; gap: 10px }
@media (min-width: 900px) { .fb-alertes.deux { grid-template-columns: 1fr 1fr } }
.fb-alerte { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: .9rem }
.fb-alerte > ul { margin: 6px 0 0; padding-left: 18px }
.fb-alerte .regles-ratees strong { color: var(--ink); font-weight: 600 }
.fb-alerte.rouge { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: color-mix(in srgb, var(--bad) 6%, var(--surface)) }
.fb-alerte.rouge > strong { color: var(--bad) }
.fb-alerte.bleu { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)) }
.fb-alerte.bleu > strong { color: var(--accent) }
.fb-alerte.vert { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); background: color-mix(in srgb, var(--good) 7%, var(--surface)) }
.fb-alerte.vert > strong { color: var(--good) }
.fb-alerte .petit-texte { margin: 6px 0 0 }
.fiche-onglets { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 12px }
.fiche-onglet { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer }
.fiche-onglet:hover { border-color: var(--accent) }
.fiche-onglet.actif { background: var(--ardoise); border-color: var(--ardoise); color: var(--ardoise-ink) }
.fiche-onglet:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.fiche-grille { display: grid; gap: 16px; align-items: start }
@media (min-width: 1000px) { .fiche-grille { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) } }
.fiche-col { display: flex; flex-direction: column; gap: 14px; min-width: 0 }
.fiche-etroite { max-width: 760px }
@media (max-width: 480px) { .fb-chiffres { grid-template-columns: repeat(2, 1fr); width: 100% } .fiche-onglet { padding: 7px 12px; font-size: .9rem } .fiche-onglets { gap: 5px } }
/* (v2.109.0, choix ELG) Page de la classe rangée : identité + « À faire » nommés + onglets. */
.classe-bandeau .fb-nom h1 { font-size: clamp(1.6rem, 3vw, 2.1rem) }
.classe-bandeau .fb-nom .copier { vertical-align: middle }
.af-grille { display: grid; gap: 10px }
@media (min-width: 900px) { .af-grille.n2 { grid-template-columns: 1fr 1fr } .af-grille.n3 { grid-template-columns: repeat(3, 1fr) } }
.af-cadre { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .9rem; min-width: 0 }
.af-cadre > strong { display: block; margin-bottom: 6px }
.af-cadre ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px }
.af-cadre li { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap }
.af-nom { min-width: 0; color: var(--ink) }
.af-nom .lien { font-weight: 700 }
.af-cadre .btn, .af-cadre .btn-relancer { padding: 4px 10px; font-size: .8rem }
.af-cadre .relance-avant { display: none }
.af-cadre.orange { border-color: color-mix(in srgb, var(--sun) 40%, var(--line)); background: color-mix(in srgb, var(--sun) 8%, var(--surface)) }
.af-cadre.orange > strong { color: var(--sun) }
.af-cadre.rouge { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: color-mix(in srgb, var(--bad) 6%, var(--surface)) }
.af-cadre.rouge > strong { color: var(--bad) }
.af-cadre.gris { background: color-mix(in srgb, var(--muted) 6%, var(--surface)) }
.onglets-classe .fiche-onglet small { color: var(--muted); font-weight: 500 }
.onglets-classe .fiche-onglet.actif small { color: color-mix(in srgb, var(--ardoise-ink) 70%, transparent) }
.classe-dessous { display: grid; gap: 16px; align-items: start; margin-top: 6px }
@media (min-width: 1000px) { .classe-dessous { grid-template-columns: 1fr 1fr } }
#cp-eleves .suivi-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px }
#cp-eleves .suivi-tete .export-classe { display: flex; gap: 8px; flex-wrap: wrap }
#cp-eleves .suivi-tete .export-classe .btn { width: auto }

/* (v2.110.0, choix ELG) Page de l'école rangée : haut + « À faire » + onglets, comme la classe. */
.ecole-bandeau .fb-nom h1 .badge-prog, .ecole-bandeau .fb-nom h1 .pastille { font-size: .8rem; vertical-align: middle }
.ecole-chiffres { display: grid; gap: 4px; justify-items: end }
.ecole-limites { margin: 0 }
button.fb-chiffre.fb-lien { border: 1px solid transparent; font: inherit; color: inherit; cursor: pointer }
button.fb-chiffre.fb-lien:hover, button.fb-chiffre.fb-lien:focus-visible { border-color: var(--accent) }
.ecole-panneau { margin-top: 4px }
.ecole-classes .suivi-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap }
.ecole-classes .suivi-tete .btn { width: auto }
.table-ecole .jauge.fine { display: inline-block; width: 52px; margin-right: 6px; vertical-align: middle }
.table-ecole td.vert { color: #1E7B45; font-weight: 600 }
.table-ecole td.rouge, .table-ecole span.rouge { color: #B3261E; font-weight: 600 }
.table-ecole .actions-classe { white-space: nowrap }
.ecole-infos { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px }
.ecole-infos .muet { display: inline-block; min-width: 92px }
@media (max-width: 700px) { .ecole-chiffres { justify-items: stretch; width: 100% } }

/* (v2.111.0, choix ELG) Fiche du professeur rangée. */
.af-cadre.bleu { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)) }
.af-cadre.bleu > strong { color: var(--accent) }
.prof-ident { display: flex; gap: 12px; align-items: center }
.prof-ident .avatar { flex: none }
.prof-bandeau .fb-nom p b.rouge { color: #B3261E } .prof-bandeau .fb-nom p b.vert { color: #1E7B45 }
.table-prof-eleves .jauge.fine { display: inline-block; width: 52px; margin-right: 6px; vertical-align: middle }

/* (v2.112.0, choix ELG) « Voir comme » : bandeau du mode test, toujours visible en haut. */
.bandeau-test { position: sticky; top: 0; z-index: 9999; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; padding: 8px 14px; background: #F59E0B; color: #1D1300; font-size: .95rem; box-shadow: 0 2px 8px rgba(0,0,0,.15) }
.bandeau-test .btn { width: auto; background: #fff; color: #1D1300; border-color: #1D1300 }
.bandeau-test small { width: 100%; text-align: center; color: #1D1300 }
.table-demo .voir-comme { width: auto; white-space: nowrap; padding: 4px 10px; font-size: .85rem }
.table-demo td:last-child { width: 1%; padding-right: 6px }
.table-demo td, .table-demo th { padding-left: 8px; padding-right: 8px }

/* (v2.113.0, choix ELG) Paramètres rangés : haut + À faire + onglets ; droits en pleine largeur, groupes côte à côte. */
.param-rond { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 1.6rem; flex: none }
.param-bandeau .fb-chiffre b.vert { color: #1E7B45 } .param-bandeau .fb-chiffre b.rouge { color: #B3261E }
.param-bandeau .voir-comme { width: auto; white-space: nowrap }
.param-plein { margin-top: 4px }
@media (min-width: 900px) { .param-plein .droits-panneau:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 0 18px; align-items: start } .param-plein .droits-resume { grid-column: 1 / -1 } }

/* (v2.114.0, choix ELG) Liste des écoles rangée : haut + À faire + onglets ; colonnes actifs et règles apprises. */
.el-entete, .ecole-ligne { grid-template-columns: minmax(190px, 2fr) minmax(80px, .9fr) 60px minmax(80px, .9fr) minmax(80px, .9fr) 70px minmax(130px, 1.3fr) 250px }
.el-chiffre.faible b { color: #B3261E }
.el-actions .ecole-liens { font-size: .8rem }
.onglets-ecoles .onglet-action { background: var(--accent); color: #fff; border-color: var(--accent) }
.ecoles-panneau .ecoles-tableau { margin-top: 0 }
@media (max-width: 1100px) { .el-entete, .ecole-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
/* (v2.115.0) Accueil administrateur / superviseur rangé : haut + À faire + onglets */
.accueil-range { display: flex; flex-direction: column; gap: 14px; min-width: 0 }
.accueil-range > .fiche-onglets { margin: 0 }
.accueil-panneau > .carte { margin: 0 }
.accueil-range .af-cadre .lien { font-size: inherit }
/* (v2.117.0) Accueil du professeur rangé */
.table-classes-prof .jauge.fine { display: inline-block; width: 52px; margin-right: 6px; vertical-align: middle }
.table-classes-prof { width: 100% }
.table-classes-prof th { font-size: .82rem; color: var(--muted); font-weight: 600; text-align: left }
.table-classes-prof td, .table-classes-prof th { padding: 8px 10px }
.accueilprof-bandeau .avatar.grand { width: 64px; height: 64px; border-radius: 18px; font-size: 1.8rem }
/* (v2.118.0, choix ELG) Menu de gauche rangé par rôle (le travail / Mon compte) + page « Contactez-nous » du superviseur */
.nav-prof .cote-groupe { display: none }
@media (min-width: 761px) {
  body.ambiance-prof #nav-prof-bas .cote-groupe { display: block; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: color-mix(in srgb, var(--ardoise-ink) 55%, transparent); margin: 2px 0 -2px }
  body.ambiance-prof:has(#nav-prof-bas) .barre-prof .haut-tel { display: none }
  body.ambiance-prof #nav-prof-bas .nav-prof { gap: 2px }
  body.ambiance-prof #nav-prof-bas .onglet-prof { padding: 8px 4px }
}
.contact-site-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; max-width: 1100px; margin: 12px auto 0; align-items: start }
@media (max-width: 860px) { .contact-site-page { grid-template-columns: 1fr } }
.contact-site h1.pdb-titre { font-size: 1.4rem }
.cs-ligne { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line) }
/* (v2.120.0) Page Réunions de toutes les classes, onglets des messages du superviseur */
.reu-classe { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bleu-clair, #e8edff); color: var(--bleu, #3346d3); margin-right: 6px; vertical-align: middle }
.reunions-panneau .reu-filtres { margin-bottom: 12px }
.reu-nouvelle { max-width: 760px }
.onglets-messages { margin: 8px 0 14px }
/* (v2.121.0) Tchat « Discussions » de l'école */
.tc { display: grid; grid-template-columns: 300px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line, #e3e7f1); border-radius: 18px; overflow: hidden; height: min(72vh, 680px); margin-top: 14px }
.tc-liste { border-right: 1px solid var(--line, #e3e7f1); background: #F7F9FD; overflow-y: auto; padding-bottom: 10px }
.tc-cherche { margin: 10px; width: calc(100% - 20px); box-sizing: border-box }
.tc-groupe { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #8a93ad; margin: 10px 14px 4px; font-weight: 700 }
.tc-ct { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 8px 14px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit }
.tc-ct:hover { background: #EEF2FC } .tc-ct.actif { background: #E2E8FF }
.tc-ct-txt { min-width: 0 } .tc-ct-txt strong { display: block; font-size: .92rem }
.tc-ct-txt small { display: block; color: #6b7491; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tc-ct .onglet-badge { position: static }
.tc-av { position: relative; display: inline-flex } .tc-av .avatar { width: 40px; height: 40px; font-size: 1rem }
.tc-av i { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #C0C6D6 } .tc-av i.on { background: #22A05B }
.tc-role { font-size: .72rem; font-weight: 600; color: #C2410C; background: #FFF1E6; border-radius: 999px; padding: 1px 7px }
.tc-enligne { color: #1a8a4c; font-weight: 600 }
.tc-conv { display: flex; flex-direction: column; min-width: 0; min-height: 0 }
.tc-tete { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line, #e3e7f1) }
.tc-retour { display: none; border: 0; background: none; font-size: 1.3rem; cursor: pointer; padding: 4px 8px }
.tc-fil { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #FBFCFF }
.tc-jour { align-self: center; font-size: .75rem; color: #6b7491; background: #EEF1F8; border-radius: 999px; padding: 2px 12px; margin: 6px 0 }
.tc-bulle { max-width: 72%; padding: 8px 12px; border-radius: 16px; line-height: 1.4; overflow-wrap: anywhere }
.tc-bulle.lui { background: #fff; border: 1px solid #E4E8F2; border-bottom-left-radius: 4px; align-self: flex-start }
.tc-bulle.moi { background: #3446D4; color: #fff; border-bottom-right-radius: 4px; align-self: flex-end }
.tc-bulle small { display: block; font-size: .7rem; opacity: .75; margin-top: 3px; text-align: right }
.tc-auteur { display: block; font-size: .78rem; color: #C2410C }
.tc-eleve { display: inline-block; margin-top: 6px; background: #FFF4D6; color: #7a5a00; border: 0; border-radius: 8px; padding: 3px 9px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer }
.tc-ecrit { min-height: 1.2em; margin: 0; padding: 0 16px 4px; font-size: .78rem; color: #6b7491; font-style: italic }
.tc-saisie { border-top: 1px solid var(--line, #e3e7f1); padding: 10px 12px }
.tc-ligne { display: flex; gap: 8px; align-items: flex-end }
.tc-ligne textarea { flex: 1; resize: none; border-radius: 18px; padding: 9px 14px; min-height: 40px; max-height: 140px; margin: 0 }
.tc-lien { display: inline-block; margin-bottom: 6px; background: #FFF4D6; color: #7a5a00; border-radius: 8px; padding: 3px 9px; font-size: .85rem; font-weight: 600 }
.tc-saisie select { margin-bottom: 6px }
.tc-vide { margin: auto; text-align: center; padding: 20px }
@media (max-width: 760px) {
  .tc { grid-template-columns: 1fr; height: calc(100vh - 210px); min-height: 420px }
  .tc:not(.ouvert) .tc-conv { display: none } .tc.ouvert .tc-liste { display: none }
  .tc-retour { display: inline-block } .tc-bulle { max-width: 86% }
  .tchat-bandeau .fb-chiffres { display: none }
}
/* (v2.121.0) Profil rangé, messages de l'élève, énigme et défi sous « Questions aujourd'hui » */
.t3-gauche .res-jeux { grid-template-columns: 1fr; margin: 10px 0 }
.onglets-messages-eleve { margin: 6px 0 14px }
.ecrire-ecole { max-width: 640px }
.pp-ligne { grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center }
.pp-email .rangee { display: flex; gap: 8px } .pp-email .rangee input { flex: 1; margin: 0 }
.profil-panneau .choix-avatar-prof .grille-avatars { margin-top: 10px }
.profil-bandeau .avatar.grand { width: 64px; height: 64px; font-size: 1.6rem }
.tuile-eleve.tuile-fermee { opacity: .72; filter: grayscale(.6); cursor: default; border-style: dashed }
/* (v2.122.0, maquette validée par ELG) Page de question rangée */
.sq-tete { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap }
.sq-tete .retour { flex-shrink: 0 }
.sq-cases { display: flex; gap: 4px; flex: 1 1 auto; min-width: 60px }
.sq-cases i { display: block; flex: 1 1 0; min-width: 0; height: 9px; border-radius: 5px; background: var(--line) }
.sq-cases i.v { background: var(--good) } .sq-cases i.r { background: var(--bad) } .sq-cases i.f { background: #9aa3c3 }
.sq-cases i.c { background: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft) }
.sq-num { font-weight: 700; color: var(--muted); white-space: nowrap; font-size: .85rem }
.sq-pts { background: #FFE9B8; color: #8a5a00; border-radius: 999px; padding: 2px 10px; font-weight: 700; white-space: nowrap; font-size: .88rem }
.sq-temps { color: var(--muted); white-space: nowrap; font-size: .88rem }
.sq-regle { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 12px 0 8px }
.sq-type { font-size: .8rem; color: var(--muted); font-weight: 600 }
.sq-chip { font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px }
.carte.question.sq-carte { text-align: center; padding: 22px 20px }
.sq-consigne { margin: 0 0 4px; font-size: .85rem; color: var(--muted) }
.sq-carte .enonce-q { font-size: 1.5rem; margin: 4px 0 16px }
.sq-carte .choix .option { font-size: 1.15rem; font-weight: 700; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px }
.sq-carte .option small { font-weight: 500; font-size: .7rem; color: var(--muted) }
.sq-carte .option.juste small, .sq-carte .option.faux small { color: inherit }
.sq-carte .num { justify-content: center }
.sq-outils { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px }
.sq-outils .btn { border-radius: 999px }
.sq-outils small { color: var(--muted); font-weight: 500 }
.sq-outils .btn.appel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.sq-indice { text-align: left; background: #FFF8E1; border: 1px solid #F1D98A; border-radius: 12px; padding: 10px 12px; margin: 14px 0 0 }
.sq-demander { text-align: left; margin-top: 12px; display: grid; gap: 6px }
.sq-demander textarea { width: 100%; box-sizing: border-box }
.sq-carte .indice.ouvert { text-align: left; margin-top: 14px }
.sq-verrou { text-align: center; font-size: .78rem; color: var(--muted) }
.sq-suite { margin-top: 4px }
.sq-suite .btn { width: 100% }
.sq-suite small.touche { opacity: .8; font-weight: 500 }
@media (hover: none) { .touche { display: none !important } }
body.en-seance .logo-app { display: none }
@media (max-width: 600px) {
  .sq-tete { gap: 8px }
  .sq-tete .retour { padding-left: 8px; padding-right: 8px }
  .sq-num { display: none }
  .sq-temps { display: none }
  .sq-carte .enonce-q { font-size: 1.25rem }
  .sq-suite { position: sticky; bottom: 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bad-soft) 30%); margin: 0 -18px -18px; padding-left: 18px; padding-right: 18px }
  .retour-rep.ok .sq-suite { background: linear-gradient(transparent, var(--good-soft) 30%) }
}
/* (v2.122.0, maquette validée par ELG) Ligue rangée */
.ligue-rangee { display: grid; gap: 12px }
.ligue-bandeau { background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 55%, var(--ardoise)), var(--ardoise)); color: var(--ardoise-ink); border: 0 }
.ligue-bandeau h1 { color: var(--ardoise-ink); margin: 0 }
.ligue-bandeau .fb-nom p { color: color-mix(in srgb, var(--ardoise-ink) 82%, transparent); margin: 4px 0 0 }
.ligue-ident { display: flex; align-items: center; gap: 14px }
.ligue-bandeau .fb-chiffre { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: var(--ardoise-ink) }
.ligue-bandeau .fb-chiffre small { color: color-mix(in srgb, var(--ardoise-ink) 80%, transparent) }
.ligue-bandeau .fb-chiffre:hover { border-color: #F7C948 }
.ligues-mini { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 10px; opacity: .95 }
.ligues-mini .actuelle { filter: drop-shadow(0 0 4px #F7C948) }
.ligue-bandeau .af-cadre { color: var(--ink) }
.ligue-bandeau .af-cadre .obj-ligue { margin: 4px 0 0 }
.ligue-bandeau .af-cadre .af-texte { margin: 4px 0 8px; font-size: .9rem }
.ligue-bandeau .af-cadre .coup-de-pouce .btn { width: auto; font-size: .85rem; padding: 6px 12px }
.af-cadre.bleu { background: #EEF3FD; border-color: #c4d2f3 }
.onglets-ligue { margin: 0 }
.ligue-corps { display: grid; gap: 12px }
.af-cadre.vert { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); background: var(--good-soft) } .af-cadre.vert > strong { color: var(--good) }
/* (v2.122.0, maquette validée par ELG) Tableau de bord de l'élève rangé */
.tdb-range { display: grid; gap: 12px; max-width: 1200px; margin: 0 auto }
.tdb-bandeau .avatar-bouton { flex-shrink: 0 }
.tdb-bandeau h1 { margin: 0 }
.tdb-bandeau .fb-chiffre b { display: inline-flex; align-items: center; gap: 4px }
.tdb-seance { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; margin-top: 12px }
.tdb-seance .bouton-seance { margin: 0; white-space: nowrap }
.tdb-seance-info p { margin: 4px 0 0 }
.af-cadre.rouge > strong { color: var(--bad) }
.af-cadre .af-texte { margin: 4px 0 8px }
.tdb-panneau { display: grid; gap: 12px }
.tdb-panneau[hidden] { display: none }
.tdb-prof { display: grid; gap: 12px }
.tdb-jeux { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px }
.tdb-jeux > .tuiles-eleve { display: contents }
@media (max-width: 600px) { .tdb-seance { grid-template-columns: 1fr } .tdb-seance .bouton-seance { width: 100% } }
/* (v2.122.0) Examens et Vidéos de l'élève rangés */
.page-rangee { display: grid; gap: 12px; max-width: 1200px; margin: 0 auto }
.page-rangee .fiche-panneau[hidden] { display: none }
.capsules-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px }
.capsules-grille .capsule-carte { flex-direction: column; text-align: center; gap: 8px; margin: 0; position: relative; padding: 14px 12px }
.capsules-grille .capsule-carte .cap-texte { align-items: center }
.capsules-grille .capsule-carte .pastille { position: absolute; top: 8px; right: 8px }
.capsules-grille .capsule-carte.vue { background: var(--good-soft) }
.capsules-grille .capsule-carte.en-classe { outline: 2px solid var(--accent); outline-offset: -2px }
@media (max-width: 600px) { .capsules-grille { grid-template-columns: 1fr 1fr } }
.af-cadre .af-texte { color: var(--ink) }
.moi-bandeau .fb-chiffre b, .page-rangee .fb-chiffre b { display: inline-flex; align-items: center; gap: 4px; justify-content: center }

/* (v2.123.0, maquette validée par ELG) Espace parents rangé + Mon profil du parent */
.parent-range .fiche-grille, .parent-profil .fiche-grille { grid-template-columns: none }
@media (min-width: 1000px) { .parent-range .fiche-grille, .parent-profil .fiche-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) } }
.parent-profil .fiche-grille > div { display: grid; gap: 16px; align-content: start }
.parent-bandeau .fb-chiffre b.vert { color: #1E7B45 } .parent-bandeau .fb-chiffre b.rouge { color: #B3261E }
.parent-bandeau .serie-danger { margin: 10px 0 0 }
.parent-q { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne, #E6E9F2) }
.parent-q > span:first-child { display: grid; gap: 2px }
.parent-q .pastille { white-space: nowrap }
.parent-panneau { display: grid; gap: 16px }
.parent-panneau[hidden] { display: none }
.parent-chapitres .ronds-chapitres { margin-top: 8px }
.parent-enfants { list-style: none; padding: 0; margin: 0 }
.parent-enfants li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ligne, #E6E9F2) }
.parent-enfants .af-nom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.bouton-profil-parent.actif { background: var(--encre, #1d2340); color: #fff }

/* (v2.128.0, demande ELG) Mode sombre : couleurs fixes remplacées par les couleurs du thème sombre */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .af-cadre.bleu { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)) }
:root:not([data-theme="light"]) .rouge, :root:not([data-theme="light"]) .table-ecole td.rouge, :root:not([data-theme="light"]) .table-ecole span.rouge, :root:not([data-theme="light"]) .prof-bandeau .fb-nom p b.rouge, :root:not([data-theme="light"]) .param-bandeau .fb-chiffre b.rouge, :root:not([data-theme="light"]) .el-chiffre.faible b, :root:not([data-theme="light"]) .parent-bandeau .fb-chiffre b.rouge { color: var(--bad) }
:root:not([data-theme="light"]) .table-ecole td.vert, :root:not([data-theme="light"]) .prof-bandeau .fb-nom p b.vert, :root:not([data-theme="light"]) .param-bandeau .fb-chiffre b.vert, :root:not([data-theme="light"]) .parent-bandeau .fb-chiffre b.vert, :root:not([data-theme="light"]) .objectif-atteint, :root:not([data-theme="light"]) .par-jour.ok strong, :root:not([data-theme="light"]) .par-jour-ligne.ok strong, :root:not([data-theme="light"]) .tc-enligne { color: var(--good) }
:root:not([data-theme="light"]) .par-jour.bas strong, :root:not([data-theme="light"]) .par-jour-ligne.bas strong, :root:not([data-theme="light"]) .adm-badge.orange { color: var(--sun) }
:root:not([data-theme="light"]) .btn.encore { background: var(--good); border-color: var(--good); color: #0E1324 }
:root:not([data-theme="light"]) .onglets-ecoles .onglet-action, :root:not([data-theme="light"]) .adm-onglets button[aria-pressed="true"], :root:not([data-theme="light"]) .sous-onglet.actif, :root:not([data-theme="light"]) .sous-onglet.sous-action:hover, :root:not([data-theme="light"]) .interrupteur-prog button[aria-pressed="true"], :root:not([data-theme="light"]) .cloche-classe, :root:not([data-theme="light"]) .barre-eleve .onglet-prof.actif, :root:not([data-theme="light"]) .barre-prof .bouton-profil.actif, :root:not([data-theme="light"]) .barre-prof .enveloppe.actif, :root:not([data-theme="light"]) .etiq-ch.conseil { color: var(--accent-ink) }
:root:not([data-theme="light"]) .a-retravailler h2 .compte, :root:not([data-theme="light"]) .a-retravailler .bouton-retravailler, :root:not([data-theme="light"]) .pastille.acquise, :root:not([data-theme="light"]) .rond-ch.fait > span, :root:not([data-theme="light"]) .ch-ligne.fait .ch-num, :root:not([data-theme="light"]) .g-etape.fait .etape-num { color: #0E1324 }
:root:not([data-theme="light"]) .tc-liste { background: var(--surface) }
:root:not([data-theme="light"]) .tc-groupe, :root:not([data-theme="light"]) .tc-ct-txt small, :root:not([data-theme="light"]) .tc-ecrit, :root:not([data-theme="light"]) .tc-jour { color: var(--muted) }
:root:not([data-theme="light"]) .tc-ct:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)) } :root:not([data-theme="light"]) .tc-ct.actif { background: var(--accent-soft) }
:root:not([data-theme="light"]) .tc-fil { background: var(--bg) }
:root:not([data-theme="light"]) .tc-jour { background: var(--surface) }
:root:not([data-theme="light"]) .tc-bulle.lui { background: var(--surface); border-color: var(--line) }
:root:not([data-theme="light"]) .tc-av i { border-color: var(--surface) }
:root:not([data-theme="light"]) .tc-role, :root:not([data-theme="light"]) .tc-auteur { color: #FDBA8C } :root:not([data-theme="light"]) .tc-role { background: #3A2412 }
:root:not([data-theme="light"]) .tc-eleve, :root:not([data-theme="light"]) .tc-lien { background: var(--sun-soft); color: #FFE2A8 }
}
:root[data-theme="dark"] .af-cadre.bleu { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)) }
:root[data-theme="dark"] .rouge, :root[data-theme="dark"] .table-ecole td.rouge, :root[data-theme="dark"] .table-ecole span.rouge, :root[data-theme="dark"] .prof-bandeau .fb-nom p b.rouge, :root[data-theme="dark"] .param-bandeau .fb-chiffre b.rouge, :root[data-theme="dark"] .el-chiffre.faible b, :root[data-theme="dark"] .parent-bandeau .fb-chiffre b.rouge { color: var(--bad) }
:root[data-theme="dark"] .table-ecole td.vert, :root[data-theme="dark"] .prof-bandeau .fb-nom p b.vert, :root[data-theme="dark"] .param-bandeau .fb-chiffre b.vert, :root[data-theme="dark"] .parent-bandeau .fb-chiffre b.vert, :root[data-theme="dark"] .objectif-atteint, :root[data-theme="dark"] .par-jour.ok strong, :root[data-theme="dark"] .par-jour-ligne.ok strong, :root[data-theme="dark"] .tc-enligne { color: var(--good) }
:root[data-theme="dark"] .par-jour.bas strong, :root[data-theme="dark"] .par-jour-ligne.bas strong, :root[data-theme="dark"] .adm-badge.orange { color: var(--sun) }
:root[data-theme="dark"] .btn.encore { background: var(--good); border-color: var(--good); color: #0E1324 }
:root[data-theme="dark"] .onglets-ecoles .onglet-action, :root[data-theme="dark"] .adm-onglets button[aria-pressed="true"], :root[data-theme="dark"] .sous-onglet.actif, :root[data-theme="dark"] .sous-onglet.sous-action:hover, :root[data-theme="dark"] .interrupteur-prog button[aria-pressed="true"], :root[data-theme="dark"] .cloche-classe, :root[data-theme="dark"] .barre-eleve .onglet-prof.actif, :root[data-theme="dark"] .barre-prof .bouton-profil.actif, :root[data-theme="dark"] .barre-prof .enveloppe.actif, :root[data-theme="dark"] .etiq-ch.conseil { color: var(--accent-ink) }
:root[data-theme="dark"] .a-retravailler h2 .compte, :root[data-theme="dark"] .a-retravailler .bouton-retravailler, :root[data-theme="dark"] .pastille.acquise, :root[data-theme="dark"] .rond-ch.fait > span, :root[data-theme="dark"] .ch-ligne.fait .ch-num, :root[data-theme="dark"] .g-etape.fait .etape-num { color: #0E1324 }
:root[data-theme="dark"] .tc-liste { background: var(--surface) }
:root[data-theme="dark"] .tc-groupe, :root[data-theme="dark"] .tc-ct-txt small, :root[data-theme="dark"] .tc-ecrit, :root[data-theme="dark"] .tc-jour { color: var(--muted) }
:root[data-theme="dark"] .tc-ct:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)) } :root[data-theme="dark"] .tc-ct.actif { background: var(--accent-soft) }
:root[data-theme="dark"] .tc-fil { background: var(--bg) }
:root[data-theme="dark"] .tc-jour { background: var(--surface) }
:root[data-theme="dark"] .tc-bulle.lui { background: var(--surface); border-color: var(--line) }
:root[data-theme="dark"] .tc-av i { border-color: var(--surface) }
:root[data-theme="dark"] .tc-role, :root[data-theme="dark"] .tc-auteur { color: #FDBA8C } :root[data-theme="dark"] .tc-role { background: #3A2412 }
:root[data-theme="dark"] .tc-eleve, :root[data-theme="dark"] .tc-lien { background: var(--sun-soft); color: #FFE2A8 }
/* (v2.129.0, choix ELG) Fiche élève : règle « À retravailler » envoyée en devoir d'un clic */
.pdb-liste .lacunes-envoi li { padding: 0; background: none; border-left: 0 }
.lacune-envoi { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; font: inherit; color: var(--ink); padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid transparent; border-left: 3px solid var(--sun); cursor: pointer }
.lacune-envoi:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); border-left-color: var(--sun) }
.lacune-envoi .lacune-etat { font-size: .82rem; font-weight: 700; color: var(--accent) }
.lacune-envoi.envoye { cursor: default; border-left-color: var(--good) }
.lacune-envoi.envoye .lacune-etat { color: var(--good) }

/* ---------- (Clair et net) Couleurs du site et des matières ---------- */
/* Clair et net : bleu nuit et turquoise ; chaque matière a sa couleur d'accent quand l'élève l'ouvre. */
:root { --accent: #0F6E8C; --accent-soft: #DDF0F5; --ardoise: #12324A; --fond-eleve: #F3F8FA; --halo-eleve: #BFE6EF; --halo-eleve-2: #F5D9C8 }
body.mat-fra { --accent: #B4325A; --accent-ink: #FFFFFF; --accent-soft: #F8E1E8; --halo-eleve: #F4C9D6 }
body.mat-pc { --accent: #1F6FB2; --accent-ink: #FFFFFF; --accent-soft: #DFEBF7; --halo-eleve: #C5DCF2 }
body.mat-svt { --accent: #2E7D32; --accent-ink: #FFFFFF; --accent-soft: #E1F1E2; --halo-eleve: #C8E6C9 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent: #5CC8E0; --accent-ink: #0E1324; --accent-soft: #12343D }
  :root:not([data-theme="light"]) body.mat-fra { --accent: #F28DAE; --accent-ink: #0E1324; --accent-soft: #3D1A26 }
  :root:not([data-theme="light"]) body.mat-pc { --accent: #7DB8F0; --accent-ink: #0E1324; --accent-soft: #15304A }
  :root:not([data-theme="light"]) body.mat-svt { --accent: #86D08A; --accent-ink: #0E1324; --accent-soft: #16351A } }
:root[data-theme="dark"] { --accent: #5CC8E0; --accent-ink: #0E1324; --accent-soft: #12343D }
:root[data-theme="dark"] body.mat-fra { --accent: #F28DAE; --accent-ink: #0E1324; --accent-soft: #3D1A26 }
:root[data-theme="dark"] body.mat-pc { --accent: #7DB8F0; --accent-ink: #0E1324; --accent-soft: #15304A }
:root[data-theme="dark"] body.mat-svt { --accent: #86D08A; --accent-ink: #0E1324; --accent-soft: #16351A }
.badge-prog { display: none !important }
.matieres-eleve { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px }
.matiere-onglet { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 600; min-height: 40px }
.matiere-onglet.actif { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.matiere-onglet.mat-fra:not(.actif) { border-color: #B4325A55 }
.matiere-onglet.mat-pc:not(.actif) { border-color: #1F6FB255 }
.matiere-onglet.mat-svt:not(.actif) { border-color: #2E7D3255 }
.matiere-onglet.ajout { border-style: dashed; color: var(--muted) }
.matiere-form { flex-basis: 100%; display: grid; gap: 6px }
.matiere-form .rangee { display: flex; gap: 8px; flex-wrap: wrap }
.matiere-form input { flex: 1; min-width: 0; text-transform: uppercase }
.matieres-eleve .erreur { flex-basis: 100% }
.badge-matiere { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: .78em; font-weight: 600; color: #fff; vertical-align: middle }
.badge-matiere.mat-fra { background: #B4325A } .badge-matiere.mat-pc { background: #1F6FB2 } .badge-matiere.mat-svt { background: #2E7D32 }
/* (Clair et net 0.2.0) Matières d'un professeur : cases à cocher et filtre */
.cases-matieres { border: 0; padding: 0; margin: .4rem 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem }
.cases-matieres legend { font-weight: 700; margin-bottom: .3rem; padding: 0 }
.case-matiere { display: inline-flex; align-items: center; gap: .35rem; border: 2px solid var(--ligne, #d6dbe6); border-radius: 999px; padding: .3rem .8rem; cursor: pointer; font-weight: 600 }
.case-matiere:has(input:checked).mat-fra { border-color: #B4325A; background: #B4325A1a }
.case-matiere:has(input:checked).mat-pc { border-color: #1F6FB2; background: #1F6FB21a }
.case-matiere:has(input:checked).mat-svt { border-color: #2E7D32; background: #2E7D321a }
.filtre-matieres { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .7rem }
.filtre-mat { border: 1px solid var(--ligne, #d6dbe6); background: transparent; color: inherit; border-radius: 999px; padding: .25rem .75rem; font: inherit; font-size: .9em; cursor: pointer }
.filtre-mat.actif { background: #12324A; border-color: #12324A; color: #fff }
.filtre-mat.mat-fra.actif { background: #B4325A; border-color: #B4325A } .filtre-mat.mat-pc.actif { background: #1F6FB2; border-color: #1F6FB2 } .filtre-mat.mat-svt.actif { background: #2E7D32; border-color: #2E7D32 }
.mat-prof { margin-bottom: .8rem }
.form .cases-matieres { flex-direction: row }
.form .cases-matieres legend { width: 100% }
.form .case-matiere, .cases-matieres .case-matiere { display: inline-flex; width: auto; flex: 0 0 auto; margin: 0; justify-content: flex-start }
.cases-matieres .case-matiere input { width: auto; margin: 0; flex: 0 0 auto }
/* (0.2.0) Étiquette du superviseur */
.etiquette-sup { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: .78em; font-weight: 700; background: #F4C542; color: #3a2a00; vertical-align: middle; white-space: nowrap }
.ecole-sup-liste { border-left: 4px solid #F4C542 }
.pastilles-ligne { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 }
.pastilles-ligne > span { flex: 0 0 auto }
/* (0.3.0) Divisions */
.div-profs { border: 0; padding: 0; margin: .4rem 0 }
.div-profs legend { font-weight: 700; padding: 0; margin-bottom: .2rem }
.div-profs-ligne { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .35rem }
.div-prof { white-space: nowrap }
.table-division td .cellule-div { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none }
.table-division td { white-space: nowrap }
.table-division .jauge.fine { width: 56px }
.division-principal { margin-top: .7rem }
.division-principal .btn { margin: .2rem .3rem 0 0 }
.div-gerer > summary { cursor: pointer; font-weight: 700 }
.table-division th, .table-division td { padding-right: 1.1rem }
/* (Clair et net 0.3.2, choix ELG « Oui, comme la maquette ») Arrière-plan par matière :
   Français = cahier Seyès rose, Physique-Chimie = papier millimétré bleu, SVT = papier à points vert.
   Élève : matière ouverte ; professeur : matière du cours ouvert ; ailleurs : fond neutre, sans symboles. */
:root { --fra-fond: #FFF8FA; --fra-ligne: #F3D3DD; --fra-ligne2: #FAE9EE; --fra-marge: #E8A3B5;
  --pc-fond: #F4F9FF; --pc-ligne: #C9DDF2; --pc-ligne2: #E6EFF9; --svt-fond: #F5FAF3; --svt-point: #BFD9B8 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fra-fond: #1B1218; --fra-ligne: #3A2431; --fra-ligne2: #26181F; --fra-marge: #6E3247;
  --pc-fond: #0D1522; --pc-ligne: #1E3049; --pc-ligne2: #142133; --svt-fond: #0E1710; --svt-point: #2A4A30 } }
:root[data-theme="dark"] { --fra-fond: #1B1218; --fra-ligne: #3A2431; --fra-ligne2: #26181F; --fra-marge: #6E3247;
  --pc-fond: #0D1522; --pc-ligne: #1E3049; --pc-ligne2: #142133; --svt-fond: #0E1710; --svt-point: #2A4A30 }
body.fond-fra, body.fond-fra.ambiance-prof, body.fond-fra.ambiance-eleve { --marge-seyes: 64px; background-color: var(--fra-fond);
  background-image: linear-gradient(90deg, transparent var(--marge-seyes), var(--fra-marge) var(--marge-seyes), var(--fra-marge) calc(var(--marge-seyes) + 2px), transparent calc(var(--marge-seyes) + 2px)), linear-gradient(var(--fra-ligne) 1px, transparent 1px), linear-gradient(var(--fra-ligne2) 1px, transparent 1px);
  background-size: 100% 100%, 100% 32px, 100% 8px; background-attachment: fixed }
body.fond-fra.ambiance-prof { --marge-seyes: 150px }
body.fond-pc, body.fond-pc.ambiance-prof, body.fond-pc.ambiance-eleve { background-color: var(--pc-fond);
  background-image: linear-gradient(var(--pc-ligne) 1px, transparent 1px), linear-gradient(90deg, var(--pc-ligne) 1px, transparent 1px), linear-gradient(var(--pc-ligne2) 1px, transparent 1px), linear-gradient(90deg, var(--pc-ligne2) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px; background-attachment: fixed }
body.fond-svt, body.fond-svt.ambiance-prof, body.fond-svt.ambiance-eleve { background-color: var(--svt-fond);
  background-image: radial-gradient(var(--svt-point) 1.4px, transparent 1.6px); background-size: 22px 22px; background-attachment: fixed }
body.fond-fra #fond-symboles span { color: color-mix(in srgb, #B4325A 13%, transparent); font-family: Georgia, "Times New Roman", serif }
body.fond-pc #fond-symboles span { color: color-mix(in srgb, #1F6FB2 14%, transparent) }
body.fond-svt #fond-symboles span { color: color-mix(in srgb, #2E7D32 14%, transparent) }
body.fond-fra.ambiance-prof::before { background: var(--fra-fond) } body.fond-pc.ambiance-prof::before { background: var(--pc-fond) } body.fond-svt.ambiance-prof::before { background: var(--svt-fond) }

/* (0.5.0, choix ELG) Objectifs du chapitre, mots à connaître, documents des exercices (extrait, expérience, tableau). */
.objectifs-ch h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.objectifs-ch .puces { margin: 0; }
.mots-regle { margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px; background: var(--accent-soft); }
.mots-regle .mots-titre { margin: 0 0 .4rem; font-weight: 700; }
.mots-regle dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .25rem .8rem; }
.mots-regle dt { font-weight: 700; }
.mots-regle dd { margin: 0; }
@media (max-width: 520px) { .mots-regle dl { grid-template-columns: 1fr; } .mots-regle dd { margin-bottom: .3rem; } }
.fiche-objectifs, .fiche-exemple { margin: .3rem 0 .6rem; }
.q-doc { margin: 0 0 .9rem; padding: .7rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.q-doc figcaption { font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.q-doc p { margin: .2rem 0; }
.q-doc-corps.extrait { font-family: Georgia, "Times New Roman", serif; font-style: italic; border-left: 3px solid currentColor; padding-left: .7rem; }
.q-doc-source { font-size: .82rem; color: var(--muted); margin-top: .35rem !important; }
.q-doc-table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.q-doc-table th, .q-doc-table td { border: 1px solid var(--line); padding: .3rem .5rem; text-align: center; }
.q-doc-table th { background: var(--accent-soft); }
.q-doc-note { font-size: .88rem; color: var(--muted); }
.defi-choix { margin-top: .6rem; }
.q-doc, .mots-regle { color: var(--ink); }
.ia-interrupteur { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.ia-interrupteur h3 { font-size: 1rem; margin: 0 0 .5rem; }
.ia-quota { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .8rem; }
.ia-quota input { width: 5.5rem; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.defi-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.defi-choix .option { width: 100%; min-height: 3.2rem; }
/* (0.5.2) Suppression d'une école : déplacer ou tout supprimer */
.suppr-ecole-msg .suppr-choix { display: grid; gap: .45rem; margin: .6rem 0; }
.suppr-ecole-msg .suppr-choix label { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.suppr-ecole-msg .suppr-choix label.danger-choix { border-color: var(--bad); background: var(--bad-soft); }
.suppr-ecole-msg select { font: inherit; padding: .2rem .4rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.suppr-ecole-msg .suppr-erreur { color: var(--bad); font-weight: 600; margin: .4rem 0 0; }

/* (Clair et net 0.6.0, choix ELG « 3 · Assistant de rentrée ») */
.rt-entree { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border: 2px dashed var(--accent) }
.rt-entree .note { margin: 4px 0 0 }
.rt-etapes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0 0 16px }
.rt-etapes li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600 }
.rt-etapes li .etape-num { background: var(--line); color: var(--ink) }
.rt-etapes li.actif { color: var(--ink) }
.rt-etapes li.actif .etape-num { background: var(--accent); color: var(--accent-ink) }
.rt-etapes li.fait .etape-num { background: var(--good); color: #fff }
.rt-annees { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 12px 0 }
.rt-annee { display: grid; gap: 8px; align-content: start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg) }
.rt-annee-txt { display: grid; gap: 6px; min-width: 0 }
.rt-annee-mats { display: flex; flex-wrap: wrap; gap: 4px }
.rt-annee-mats .badge-matiere { font-size: .72rem; padding: 2px 8px; white-space: nowrap }
.rt-cycle { border: 0; padding: 0; margin: 14px 0 0 }
.rt-cycle legend { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px }
.rt-cycle .rt-annees { margin: 0 }
.rt-annee input { width: 64px; padding: 8px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-weight: 700; text-align: center; background: var(--card, #fff); color: var(--ink) }
.rt-apercu { padding: 10px 12px; border-radius: 10px; background: var(--bg) }
.rt-profs { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px }
.rt-prof { padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; display: grid; gap: 8px }
.rt-prof-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.rt-nouveau input:not([type=checkbox]) { flex: 1 1 140px; min-width: 0; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: var(--card, #fff); color: var(--ink) }
.rt-mats { display: flex; flex-wrap: wrap; gap: 6px }
.rt-cours { display: flex; flex-wrap: wrap; align-items: center; gap: 6px }
.rt-case { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .92rem }
.rt-case:has(input:checked) { border-color: var(--accent); background: var(--accent-soft, var(--bg)); font-weight: 700 }
.rt-case.pris:not(:has(input:checked)) { opacity: .5 }
.rt-nav { justify-content: space-between; margin-top: 14px }
.rt-recap td, .rt-recap th { text-align: left }
.rt-manque { background: #FFE9D2; color: #8A4300; font-weight: 700 }
.rt-alerte { background: #FFF3E6; border-left: 4px solid #E07B00; color: #6B3600; padding: 10px 12px; border-radius: 10px }
.rt-resume { margin: 12px 0; padding-left: 20px }
.rt-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 10px }
.rt-code-carte { border: 2px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; break-inside: avoid; background: #fff; color: #111 }
.rt-code-classe { margin: 0; font-weight: 800; font-size: 1.15rem }
.rt-code { margin: 6px 0; font: 800 1.8rem/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em }
.rt-code-mats { margin: 0; font-size: .85rem; color: #444 }
.rt-manque-txt { color: #8A4300 }
.rt-fiche-tete { font-weight: 700 }
.rt-invites { padding-left: 20px; display: grid; gap: 6px }
.rt-lien { width: 100%; max-width: 420px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; font-size: .85rem }
@media print { body.imprime-param .a-imprimer .rt-code-carte { border-color: #999 } body.imprime-param .a-imprimer .note { display: none } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rt-manque { background: #4A2A00; color: #FFD7A8 } :root:not([data-theme="light"]) .rt-alerte { background: #3A2400; color: #FFD7A8 } }
:root[data-theme="dark"] .rt-manque { background: #4A2A00; color: #FFD7A8 }
:root[data-theme="dark"] .rt-alerte { background: #3A2400; color: #FFD7A8 }
.rt-recap { width: 100% }
/* (0.6.2, choix ELG « Oui, avec l'encadré rouge ») Confirmation et avancement de la suppression d'une école. */
.suppr-ecole-msg.suppr-boite { display: block; margin: .6rem 0 0; padding: 12px 14px; border: 2px solid var(--bad); border-radius: 12px; background: var(--bad-soft); color: var(--ink) }
.suppr-ecole-msg.suppr-boite strong { color: var(--bad) }
.suppr-boutons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px }
.suppr-encours { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.suppr-encours strong { color: var(--ink) !important }
.suppr-ecole-msg .suppr-erreur { display: block }
.roue { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--bad); border-radius: 50%; animation: roue .8s linear infinite; flex: none }
@keyframes roue { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .roue { animation-duration: 2.4s } }
.btn.en-cours { display: inline-flex; align-items: center; justify-content: center; gap: 8px; opacity: 1; cursor: progress }
.btn.en-cours .roue { border-color: color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor }

.rt-compteur { display: flex; align-items: center; gap: 6px }
.rt-compteur input { width: 56px !important; appearance: textfield; -moz-appearance: textfield }
.rt-compteur input::-webkit-inner-spin-button, .rt-compteur input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0 }
.rt-pm { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card, #fff); color: var(--ink); font: 800 1.2rem/1 inherit; cursor: pointer }
.rt-pm:hover { border-color: var(--accent); color: var(--accent) }
.rt-noms { color: var(--muted) }
.rt-noms.actif { color: var(--ink); font-weight: 700 }

/* (0.8.0, choix ELG) Enseignement scientifique (violet, papier à petits carreaux) et Gestion et finance (cuivre, papier de registre comptable). */
body.mat-es { --accent: #6A3FA0; --accent-ink: #FFFFFF; --accent-soft: #EEE6F8; --halo-eleve: #DCCBF1 }
body.mat-gf { --accent: #A0521C; --accent-ink: #FFFFFF; --accent-soft: #F7E8DC; --halo-eleve: #F0D2BA }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.mat-es { --accent: #C3A6EE; --accent-ink: #0E1324; --accent-soft: #2A1C40 }
  :root:not([data-theme="light"]) body.mat-gf { --accent: #F0B27A; --accent-ink: #0E1324; --accent-soft: #3D2614 }
  :root:not([data-theme="light"]) { --es-fond: #15111D; --es-ligne: #2C2340; --gf-fond: #1A140E; --gf-ligne: #3A2A1B; --gf-col: #5A3A20 } }
:root[data-theme="dark"] body.mat-es { --accent: #C3A6EE; --accent-ink: #0E1324; --accent-soft: #2A1C40 }
:root[data-theme="dark"] body.mat-gf { --accent: #F0B27A; --accent-ink: #0E1324; --accent-soft: #3D2614 }
:root { --es-fond: #FAF7FD; --es-ligne: #E4DAF1; --gf-fond: #FFFAF4; --gf-ligne: #EFDCC8; --gf-col: #E2B996 }
:root[data-theme="dark"] { --es-fond: #15111D; --es-ligne: #2C2340; --gf-fond: #1A140E; --gf-ligne: #3A2A1B; --gf-col: #5A3A20 }
.matiere-onglet.mat-es:not(.actif) { border-color: #6A3FA055 }
.matiere-onglet.mat-gf:not(.actif) { border-color: #A0521C55 }
.badge-matiere.mat-es { background: #6A3FA0 } .badge-matiere.mat-gf { background: #A0521C }
.case-matiere:has(input:checked).mat-es { border-color: #6A3FA0; background: #6A3FA01a }
.case-matiere:has(input:checked).mat-gf { border-color: #A0521C; background: #A0521C1a }
.filtre-mat.mat-es.actif { background: #6A3FA0; border-color: #6A3FA0 } .filtre-mat.mat-gf.actif { background: #A0521C; border-color: #A0521C }
body.fond-es, body.fond-es.ambiance-prof, body.fond-es.ambiance-eleve { background-color: var(--es-fond);
  background-image: linear-gradient(var(--es-ligne) 1px, transparent 1px), linear-gradient(90deg, var(--es-ligne) 1px, transparent 1px); background-size: 16px 16px; background-attachment: fixed }
body.fond-gf, body.fond-gf.ambiance-prof, body.fond-gf.ambiance-eleve { background-color: var(--gf-fond);
  background-image: linear-gradient(90deg, transparent 70%, var(--gf-col) 70%, var(--gf-col) calc(70% + 1px), transparent calc(70% + 1px), transparent 85%, var(--gf-col) 85%, var(--gf-col) calc(85% + 1px), transparent calc(85% + 1px)), linear-gradient(var(--gf-ligne) 1px, transparent 1px);
  background-size: 100% 100%, 100% 28px; background-attachment: fixed }
body.fond-es #fond-symboles span { color: color-mix(in srgb, #6A3FA0 13%, transparent) }
body.fond-gf #fond-symboles span { color: color-mix(in srgb, #A0521C 13%, transparent) }
body.fond-es.ambiance-prof::before { background: var(--es-fond) } body.fond-gf.ambiance-prof::before { background: var(--gf-fond) }
/* Groupes officiels du lycée (tronc commun, spécialités, STMG) */
.groupe-off { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: .5rem 0 .2rem }
.rt-annee-mats .groupe-mini { font-size: .72rem; color: var(--muted); margin: 0 .25rem 0 .4rem }
/* (0.18.1, choix ELG) Assistant de rentrée, lycée : une ligne par groupe officiel, titre en petites capitales, pointillé entre les groupes. */
.rt-annee-mats .rt-grp { flex: 0 0 100%; display: grid; gap: 3px; min-width: 0 }
.rt-annee-mats .rt-grp + .rt-grp { border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 2px }
.rt-annee-mats .rt-grp-lib { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.rt-annee-mats .rt-grp-mats { display: flex; flex-wrap: wrap; gap: 4px }
.rt-facultatif { color: var(--muted); font-style: italic }

/* (0.8.1, choix ELG « Les 2 petits défauts d'abord ») Rappel discret de la touche du clavier sous une réponse : texte simple, sans cadre. */
.kbd-touche { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); margin-top: 2px; opacity: .85 }
.sq-suite small.kbd-touche { display: inline; color: inherit; opacity: .8 }
@media (hover: none) { .kbd-touche { display: none !important } }

/* (0.9.0, choix ELG « Oui, les 2 options de 2nde ») Management et gestion (gris ardoise, papier ligné) et Sciences et laboratoire (vert d'eau, papier pointé). */
body.mat-mg { --accent: #455A64; --accent-ink: #FFFFFF; --accent-soft: #E6ECEF; --halo-eleve: #CFD8DC }
body.mat-sl { --accent: #00796B; --accent-ink: #FFFFFF; --accent-soft: #DDF2EF; --halo-eleve: #B9E3DD }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.mat-mg { --accent: #A9BCC7; --accent-ink: #0E1324; --accent-soft: #1F2A30 }
  :root:not([data-theme="light"]) body.mat-sl { --accent: #6FD3C4; --accent-ink: #0E1324; --accent-soft: #10302C }
  :root:not([data-theme="light"]) { --mg-fond: #12161A; --mg-ligne: #263038; --sl-fond: #0E1716; --sl-point: #2A4642 } }
:root[data-theme="dark"] body.mat-mg { --accent: #A9BCC7; --accent-ink: #0E1324; --accent-soft: #1F2A30 }
:root[data-theme="dark"] body.mat-sl { --accent: #6FD3C4; --accent-ink: #0E1324; --accent-soft: #10302C }
:root { --mg-fond: #F8FAFB; --mg-ligne: #DDE4E8; --sl-fond: #F5FBFA; --sl-point: #B5DCD6 }
:root[data-theme="dark"] { --mg-fond: #12161A; --mg-ligne: #263038; --sl-fond: #0E1716; --sl-point: #2A4642 }
.matiere-onglet.mat-mg:not(.actif) { border-color: #455A6455 }
.matiere-onglet.mat-sl:not(.actif) { border-color: #00796B55 }
.badge-matiere.mat-mg { background: #455A64 } .badge-matiere.mat-sl { background: #00796B }
.case-matiere:has(input:checked).mat-mg { border-color: #455A64; background: #455A641a }
.case-matiere:has(input:checked).mat-sl { border-color: #00796B; background: #00796B1a }
.filtre-mat.mat-mg.actif { background: #455A64; border-color: #455A64 } .filtre-mat.mat-sl.actif { background: #00796B; border-color: #00796B }
body.fond-mg, body.fond-mg.ambiance-prof, body.fond-mg.ambiance-eleve { background-color: var(--mg-fond);
  background-image: linear-gradient(var(--mg-ligne) 1px, transparent 1px); background-size: 100% 24px; background-attachment: fixed }
body.fond-sl, body.fond-sl.ambiance-prof, body.fond-sl.ambiance-eleve { background-color: var(--sl-fond);
  background-image: radial-gradient(var(--sl-point) 1.2px, transparent 1.4px); background-size: 14px 14px; background-attachment: fixed }
body.fond-mg #fond-symboles span { color: color-mix(in srgb, #455A64 13%, transparent) }
body.fond-sl #fond-symboles span { color: color-mix(in srgb, #00796B 13%, transparent) }
body.fond-mg.ambiance-prof::before { background: var(--mg-fond) } body.fond-sl.ambiance-prof::before { background: var(--sl-fond) }

/* (0.19.0, choix ELG « Technologie puis Anglais ») Technologie : orange brique, fond papier millimétré. */
body.mat-tec { --accent: #BF360C; --accent-ink: #FFFFFF; --accent-soft: #FBE9E7; --halo-eleve: #FFCCBC }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.mat-tec { --accent: #FFAB91; --accent-ink: #0E1324; --accent-soft: #3A1E16 }
  :root:not([data-theme="light"]) { --tec-fond: #18120F; --tec-ligne: #2E211B } }
:root[data-theme="dark"] body.mat-tec { --accent: #FFAB91; --accent-ink: #0E1324; --accent-soft: #3A1E16 }
:root { --tec-fond: #FFF9F6; --tec-ligne: #F6DED4 }
:root[data-theme="dark"] { --tec-fond: #18120F; --tec-ligne: #2E211B }
.matiere-onglet.mat-tec:not(.actif) { border-color: #BF360C55 }
.badge-matiere.mat-tec { background: #BF360C }
.case-matiere:has(input:checked).mat-tec { border-color: #BF360C; background: #BF360C1a }
.filtre-mat.mat-tec.actif { background: #BF360C; border-color: #BF360C }
body.fond-tec, body.fond-tec.ambiance-prof, body.fond-tec.ambiance-eleve { background-color: var(--tec-fond);
  background-image: linear-gradient(var(--tec-ligne) 1px, transparent 1px), linear-gradient(90deg, var(--tec-ligne) 1px, transparent 1px); background-size: 20px 20px; background-attachment: fixed }
body.fond-tec #fond-symboles span { color: color-mix(in srgb, #BF360C 13%, transparent) }
body.fond-tec.ambiance-prof::before { background: var(--tec-fond) }

/* (0.20.0, choix ELG « Technologie puis Anglais ») Anglais : bleu indigo, fond à lignes de cahier anglais (double ligne). */
body.mat-ang { --accent: #283593; --accent-ink: #FFFFFF; --accent-soft: #E8EAF6; --halo-eleve: #C5CAE9 }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.mat-ang { --accent: #9FA8DA; --accent-ink: #0E1324; --accent-soft: #1C2140 }
  :root:not([data-theme="light"]) { --ang-fond: #10121C; --ang-ligne: #262B48 } }
:root[data-theme="dark"] body.mat-ang { --accent: #9FA8DA; --accent-ink: #0E1324; --accent-soft: #1C2140 }
:root { --ang-fond: #F8F9FE; --ang-ligne: #DCE0F3 }
:root[data-theme="dark"] { --ang-fond: #10121C; --ang-ligne: #262B48 }
.matiere-onglet.mat-ang:not(.actif) { border-color: #28359355 }
.badge-matiere.mat-ang { background: #283593 }
.case-matiere:has(input:checked).mat-ang { border-color: #283593; background: #2835931a }
.filtre-mat.mat-ang.actif { background: #283593; border-color: #283593 }
body.fond-ang, body.fond-ang.ambiance-prof, body.fond-ang.ambiance-eleve { background-color: var(--ang-fond);
  background-image: linear-gradient(transparent 22px, var(--ang-ligne) 22px, var(--ang-ligne) 23px, transparent 23px, transparent 26px, var(--ang-ligne) 26px, var(--ang-ligne) 27px, transparent 27px); background-size: 100% 34px; background-attachment: fixed }
body.fond-ang #fond-symboles span { color: color-mix(in srgb, #283593 13%, transparent) }
body.fond-ang.ambiance-prof::before { background: var(--ang-fond) }
/* Bouton d'écoute 🔊 */
.dire { font-style: italic }
.btn-dire { display: inline-flex; align-items: center; gap: 4px; margin: 0 2px 0 6px; padding: 1px 8px; border-radius: 999px; border: 1.5px solid var(--accent, #283593); background: var(--accent-soft, #E8EAF6); color: var(--ink); font-size: .85em; font-style: normal; cursor: pointer; line-height: 1.5; vertical-align: baseline }
.btn-dire:hover, .btn-dire:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none }

/* (2.136.0 / Clair et net 0.22.2, choix ELG) Page « Nouvelle école » simplifiée : une seule carte. */
.nouvelle-ecole-page { display: block; max-width: 820px }
.form-nouvelle-ecole.carte { gap: 14px }
.trois-champs { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px }
.ne-sous-titre { font-size: 1rem; margin: 10px 0 0; color: var(--accent); text-transform: uppercase; letter-spacing: .04em }
.ne-prog { margin: 0 }
.ne-pilules { display: flex; flex-wrap: wrap; gap: 8px }
.ne-pilule input { position: absolute; opacity: 0; pointer-events: none }
.ne-pilule > span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; background: var(--surface) }
.ne-pilule input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; font-weight: 700 }
.ne-pilule input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px }
.ne-aide { margin: 0 }
@media (max-width: 600px) { .trois-champs { grid-template-columns: 1fr } }
.ecole-limites.trois { grid-template-columns: repeat(3, 1fr) }
.table-limites td { vertical-align: middle }
.lim-champ { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400 }
.lim-champ input { width: 6.5em; margin: 0 }
.lim-n { white-space: nowrap; color: var(--muted) }
.lim-n.plein { color: var(--bad); font-weight: 700 }
.limites-msg { margin-top: 10px }
@media (max-width: 600px) { .ecole-limites.trois { grid-template-columns: 1fr } }
.form-nouvelle-ecole .actions-ecole { justify-content: flex-start }
.form-nouvelle-ecole .actions-ecole .btn { flex: 0 0 auto; width: auto; min-width: 0 }
.lim-champ input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit }
/* (2.137.0 / Clair et net 0.23.0, choix ELG) Vues « en cartes » avec recherche : école, accueil du professeur, liste des écoles. */
.bloc-cartes { display: flex; flex-direction: column; gap: 12px }
.cartes-cherche { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--accent); border-radius: 12px; padding: 4px 14px; margin: 0 }
.cartes-cherche input { border: 0; background: transparent; flex: 1; min-width: 0; font: inherit; font-size: 1.02rem; padding: 10px 0; margin: 0; color: var(--ink); box-shadow: none; outline: none }
.cartes-puces { display: flex; flex-wrap: wrap; gap: 8px }
.cartes-puce { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer }
.cartes-puce small { color: var(--muted); font-weight: 700; margin-left: 2px }
.cartes-puce.actif { background: var(--ardoise); color: var(--ardoise-ink); border-color: var(--ardoise) }
.cartes-puce.actif small { color: inherit; opacity: .8 }
.cartes-puce:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
.cartes-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px }
.cm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.cm[hidden], .cm-el[hidden] { display: none }
.cm-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.cm-titre { font-family: var(--f-display); font-size: 1.2rem; font-weight: 800; color: var(--ink) }
button.cm-titre { text-decoration: none }
.cm-etiq { font-size: .75rem; background: var(--sun-soft); color: var(--sun); border-radius: 6px; padding: 1px 6px; font-weight: 700 }
.cm-meta { margin: 0; color: var(--muted); font-size: .88rem }
.cm-jauge { height: 7px; background: var(--line); border-radius: 9px; overflow: hidden }
.cm-jauge i { display: block; height: 100%; background: var(--good) }
.cm-lignes { list-style: none; margin: 0; padding: 0 }
.cm-lignes li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .92rem }
.cm-txt { min-width: 0 }
.cm-n { margin-left: auto; white-space: nowrap }
.pt { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted) }
.pt.vert { background: var(--good) } .pt.rouge { background: var(--bad) } .pt.orange { background: var(--sun) } .pt.bleu { background: var(--accent) } .pt.gris { background: var(--line) }
.cm-n.vert, .cm .vert, .cm-etat.vert { color: var(--good) } .cm-n.rouge, .cm small.rouge, .cm-etat.rouge { color: var(--bad) } .cm-n.orange, .cm small.orange, .cm-etat.orange { color: var(--sun) } .cm-n.bleu, .cm-etat.bleu { color: var(--accent) }
.cm-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; align-items: center }
.cm-btns .btn { width: auto; flex: 0 0 auto }
.cm-eleves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px }
.cm-el { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px }
.cm-el-nom { min-width: 110px; text-align: left }
.cm-etat { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem }
.cm-el > .btn, .cm-el > button.btn { margin-left: auto; width: auto }
.cm-question { margin: 0 0 4px; background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.cartes-vide { margin: 0 }
@media (max-width: 600px) { .cartes-grille { grid-template-columns: 1fr } .cm-el-nom { min-width: 0 } }
