/* ============================================================
   suivi-eleves.css — « Suivi des élèves », côté professeur (04/10/2026)
   Écran plein écran au-dessus des modales (z-index --z-overlay) ; préfixe se-.
   Couleurs : encres ≥ 4,5:1 sur leur fond ; mode nuit (body.dark-mode) en fin de fichier.
   ============================================================ */

html.se-bloque, html.se-bloque body { overflow: hidden; }

.se-fond {
  position: fixed; inset: 0; z-index: var(--z-overlay, 2500);
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: stretch; justify-content: center;
  padding: 24px 16px;
  text-align: left;
}
.se-panneau {
  width: 100%; max-width: 1080px;
  background: #fff; color: #1f2937;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
  display: flex; flex-direction: column; overflow: hidden;
}
.se-tete { display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0; }
.se-tete-txt { flex: 1; min-width: 0; }
.se-tete h3 { margin: 0; font-size: 19px; font-weight: 700; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-sous { font-size: 13px; color: #4b5563; margin-top: 2px; }
.se-ibtn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; color: #374151; display: grid; place-items: center; font-size: 16px; cursor: pointer; flex-shrink: 0; }
.se-ibtn:hover { background: #f3f4f6; }
.se-corps { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 20px 24px; overscroll-behavior: contain; }

.se-vide { padding: 40px 16px; text-align: center; color: #4b5563; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.se-vide b { color: #1f2937; font-size: 15px; }
.se-vide-ico { font-size: 32px; }
.se-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #e5e7eb; border-top-color: #0d9488; animation: se-tourne .8s linear infinite; margin-bottom: 6px; }
@keyframes se-tourne { to { transform: rotate(360deg); } }
.se-avert { margin-bottom: 12px; padding: 9px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px; }
.se-note { margin: 14px 2px 0; font-size: 12.5px; color: #4b5563; line-height: 1.5; }

/* --- indicateurs --- */
.se-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.se-kpi { padding: 11px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.se-kpi b { font-size: 21px; font-weight: 800; color: #0f766e; line-height: 1.15; }
.se-kpi span { font-size: 12.5px; color: #4b5563; }
.se-kpi--alerte b { color: #b91c1c; }
.se-kpi--btn { font: inherit; text-align: left; cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s; }
.se-kpi--btn:hover { background: #f0fdfa; border-color: #99f6e4; }
.se-kpi--btn:focus-visible { outline: 2px solid #0d9488; outline-offset: 2px; }
.se-kpi--act, .se-kpi--act:hover { background: #f0fdfa; border-color: #0d9488; box-shadow: inset 0 0 0 1px #0d9488; }
.se-kpi--alerte.se-kpi--act, .se-kpi--alerte.se-kpi--act:hover { background: #fef2f2; border-color: #b91c1c; box-shadow: inset 0 0 0 1px #b91c1c; }
.se-kpi--alerte.se-kpi--btn:hover { background: #fef2f2; border-color: #fecaca; }
.se-filtre-act { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: -2px 0 10px; font-size: 13.5px; color: #1f2937; font-weight: 600; }
.se-lien { font: inherit; font-size: 13px; font-weight: 600; color: #0f766e; background: none; border: 0; padding: 2px 4px; border-radius: 6px; cursor: pointer; }
.se-lien:hover { background: #f0fdfa; }

/* --- filtres --- */
.se-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.se-chip { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid #d1d5db; color: #374151; background: #fff; cursor: pointer; white-space: nowrap; }
.se-chip:hover { background: #f9fafb; }
.se-chip i { font-style: normal; opacity: .75; margin-left: 5px; }
.se-chip--act, .se-chip--act:hover { background: #1f2937; color: #fff; border-color: #1f2937; }

/* --- tous mes élèves --- */
.se-entetes, .se-ligne {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 36px minmax(0, 1fr) 110px 110px 150px 14px;
}
.se-entetes { padding: 6px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4b5563; }
.se-entetes span:nth-child(1) { grid-column: 1 / 3; }
.se-entetes span:nth-child(2) { grid-column: 3; }
.se-liste { border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; }
.se-ligne { width: 100%; padding: 10px 14px; background: #fff; border: 0; border-bottom: 1px solid #f1f5f9; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.se-ligne:last-child { border-bottom: 0; }
.se-ligne:hover, .se-ligne:focus-visible { background: #f8fafc; outline: none; }
.se-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #0f766e; background: #ccfbf1; }
.se-nom { min-width: 0; display: flex; align-items: center; gap: 8px; }
.se-nom b { font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-niv { font-size: 11.5px; font-weight: 700; color: #374151; background: #f3f4f6; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.se-c { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.se-c b { font-size: 16px; color: #111827; }
.se-c small { font-size: 12px; color: #4b5563; }
.se-chev { color: #6b7280; font-size: 18px; }
.se-c .se-zero { color: #6b7280; font-style: italic; }

.se-inact { font-size: 13px; font-weight: 600; }
.se-inact--v { color: #15803d; }
.se-inact--o { color: #b45309; }
.se-inact--r { color: #b91c1c; }

/* --- pastilles et barres de réussite --- */
.se-t { display: inline-block; min-width: 46px; text-align: center; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.se-t--r { color: #991b1b; background: #fee2e2; }
.se-t--o { color: #92400e; background: #fef3c7; }
.se-t--v { color: #166534; background: #dcfce7; }
.se-t--n { color: #4b5563; background: #f3f4f6; }
.se-t--r-txt { color: #b91c1c !important; }
.se-t--o-txt { color: #b45309 !important; }
.se-t--v-txt { color: #15803d !important; }
.se-t--n-txt { color: #4b5563 !important; }
.se-barre { display: inline-block; width: 90px; height: 7px; border-radius: 99px; background: #e5e7eb; overflow: hidden; vertical-align: middle; flex-shrink: 0; }
.se-barre--vide { background: #f3f4f6; }
.se-barre-v { display: block; height: 100%; border-radius: 99px; }
.se-barre-v.se-t--r { background: #dc2626; }
.se-barre-v.se-t--o { background: #f59e0b; }
.se-barre-v.se-t--v { background: #16a34a; }
.se-pt { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 3px; }
.se-pt.se-t--r { background: #dc2626; }
.se-pt.se-t--o { background: #f59e0b; }
.se-pt.se-t--v { background: #16a34a; }
.se-pt.se-t--n { background: #d1d5db; }

/* --- sections d'un élève --- */
.se-sec { margin-top: 18px; }
.se-sec h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #111827; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.se-sec h4 small, .se-sec h5 small { font-size: 12.5px; font-weight: 500; color: #4b5563; }
.se-sec h5 { margin: 14px 0 8px; font-size: 14.5px; font-weight: 700; color: #1f2937; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.se-ue { font-size: 12px; font-weight: 800; color: #fff; background: #0d9488; background: var(--se-ue, #0d9488); padding: 2px 8px; border-radius: 6px; }

.se-tab { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.se-tr { display: grid; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid #f1f5f9; background: #fff; font-size: 13.5px; }
.se-tr:last-child, .se-acc:last-child .se-tr { border-bottom: 0; }
.se-tab--5 .se-tr { grid-template-columns: minmax(0, 1fr) 120px 150px 100px 76px; }
.se-tab--4 .se-tr { grid-template-columns: minmax(0, 1fr) 70px 150px 96px; }
.se-tab--3 .se-tr { grid-template-columns: minmax(0, 1fr) 70px 150px; }
.se-th { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #4b5563; background: #f9fafb; }
.se-lib { min-width: 0; color: #1f2937; overflow-wrap: anywhere; }
.se-num { color: #374151; white-space: nowrap; }
.se-taux { display: flex; align-items: center; gap: 8px; }
.se-taux .se-barre { width: auto; flex: 1; min-width: 40px; }
.se-date { color: #4b5563; font-size: 12.5px; white-space: nowrap; }
.se-essais { display: flex; align-items: center; }
.se-tr--btn { width: 100%; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.se-tr--btn:hover:not([disabled]) { background: #f8fafc; }
.se-tr--btn[disabled] { cursor: default; }
.se-acc--vide .se-lib, .se-acc--vide .se-num, .se-acc--vide .se-date { color: #6b7280; }
.se-chev2 { display: inline-block; width: 14px; color: #6b7280; transition: transform .15s; }
.se-tr--ouvert .se-chev2 { transform: rotate(90deg); }
.se-acc-corps { background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.se-tr--st { background: transparent; padding-left: 36px; font-size: 13px; }
.se-deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; }

/* --- topo de l'élève --- */
.se-topo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.se-topo-col { padding: 12px 14px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; min-width: 0; }
.se-topo-col--v { border-color: #bbf7d0; background: #f0fdf4; }
.se-topo-col--r { border-color: #fecaca; background: #fef2f2; }
.se-topo h4 { margin: 0 0 8px; font-size: 14.5px; font-weight: 700; color: #111827; }
.se-topo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.se-topo li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #1f2937; }
.se-topo-lib { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.se-topo li small { color: #4b5563; font-size: 12px; white-space: nowrap; }
.se-topo-vide { margin: 0; font-size: 13px; color: #4b5563; }
.se-topo-prio { margin: 8px 0 0; font-size: 13px; color: #7f1d1d; }
.se-topo-l { margin: 0 0 6px; font-size: 13.5px; line-height: 1.4; padding-left: 14px; position: relative; color: #1f2937; }
.se-topo-l::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.se-topo-l--v::before { background: #16a34a; }
.se-topo-l--o::before { background: #f59e0b; }
.se-topo-l--r::before { background: #dc2626; }

/* --- questions ratées --- */
.se-ratees { display: flex; flex-direction: column; gap: 8px; }
.se-ratee { display: block; width: 100%; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; text-align: left; font: inherit; color: inherit; }
.se-ratee summary, .se-ratee--pass { padding: 10px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; list-style: none; }
.se-ratee summary::-webkit-details-marker { display: none; }
.se-ratee summary:hover, .se-ratee--pass:hover { background: #f8fafc; border-radius: 12px; }
.se-ratee-q { color: #111827; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.se-ratee-q, .se-explic, .se-ch-t { min-width: 0; overflow-x: auto; overflow-y: hidden; }
.se-ratee-q img, .se-ratee-q svg, .se-choix img, .se-choix svg { max-width: 100%; height: auto; }
.se-ratee-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.se-tag { font-size: 12px; color: #374151; background: #f3f4f6; border-radius: 6px; padding: 1px 7px; }
.se-tag--r { color: #991b1b; background: #fee2e2; }
.se-ouvrir { margin-left: auto; font-size: 12.5px; font-weight: 600; color: #0f766e; }
.se-ratee-corps { padding: 0 14px 12px; }
.se-choix { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.se-ch { display: flex; align-items: flex-start; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fafafa; font-size: 13.5px; overflow-wrap: anywhere; }
.se-ch em { margin-left: auto; font-size: 12px; font-style: normal; font-weight: 600; color: #991b1b; white-space: nowrap; }
.se-ch-m { width: 16px; font-weight: 800; flex-shrink: 0; }
.se-ch--bon { border-color: #86efac; background: #f0fdf4; }
.se-ch--bon .se-ch-m { color: #15803d; }
.se-ch--faux { border-color: #fca5a5; background: #fef2f2; }
.se-ch--faux .se-ch-m { color: #b91c1c; }
.se-explic { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f0f9ff; border: 1px solid #bae6fd; color: #1e3a5f; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.se-explic b { display: block; margin-bottom: 3px; color: #075985; }
.se-plus { margin-top: 8px; padding: 7px 14px; border-radius: 10px; border: 1px solid #d1d5db; background: #fff; color: #374151; font-size: 13px; font-weight: 600; cursor: pointer; }
.se-plus:hover { background: #f9fafb; }

/* --- question PASS en vue prof --- */
.se-modal { position: absolute; inset: 0; background: rgba(15, 23, 42, .4); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; }
.se-modal-boite { width: 100%; max-width: 860px; background: #f8fafc; border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); overflow: hidden; }
.se-modal-boite .se-tete { background: #fff; }
.se-modal-corps { padding: 14px; }
.se-modal-corps > .bg-white { margin-bottom: 0; }

/* --- entrées (fiche élève, module PASS) --- */
.se-entree-fiche, .se-entree-pass {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer;
  color: #0f766e; background: #f0fdfa; border: 1px solid #99f6e4;
}
.se-entree-fiche:hover, .se-entree-pass:hover { background: #ccfbf1; }
.se-entree-fiche { width: 100%; justify-content: center; }

/* ------------------------------------------------------------------
   Tablette et téléphone
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .se-topo { grid-template-columns: 1fr 1fr; }
  .se-topo-col:last-child { grid-column: 1 / -1; }
  .se-tab--5 .se-tr { grid-template-columns: minmax(0, 1fr) 110px 130px 76px; }
  .se-tab--5 .se-essais { display: none; }
  .se-tab--5 .se-th span:nth-child(4) { display: none; }
}

@media (max-width: 640px) {
  .se-fond { padding: 0; }
  .se-panneau { border-radius: 0; max-width: none; }
  .se-tete { padding: 12px 14px 10px; }
  .se-tete h3 { font-size: 17px; }
  .se-corps { padding: 12px 14px 28px; }
  .se-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .se-topo { grid-template-columns: 1fr; gap: 8px; }
  .se-kpi { padding: 9px 11px; }
  .se-kpi b { font-size: 18px; }

  .se-entetes { display: none; }
  .se-ligne { grid-template-columns: 36px minmax(0, 1fr) auto 14px; grid-template-areas: "av nom der chev" "av q7 taux chev"; row-gap: 4px; padding: 10px 12px; }
  .se-av { grid-area: av; }
  .se-nom { grid-area: nom; }
  .se-c-q7 { grid-area: q7; }
  .se-c-taux { grid-area: taux; justify-self: end; }
  .se-c-der { grid-area: der; justify-self: end; }
  .se-chev { grid-area: chev; }
  .se-c b { font-size: 14px; }

  .se-th { display: none !important; }
  .se-tab .se-tr, .se-tab--5 .se-tr, .se-tab--4 .se-tr, .se-tab--3 .se-tr {
    grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 6px; column-gap: 10px; padding: 9px 12px;
  }
  .se-tr .se-lib { grid-column: 1 / -1; font-weight: 600; }
  .se-tr .se-taux { grid-column: 2; }
  .se-tr .se-essais { display: none; }
  .se-tr--st { padding-left: 24px !important; }
  .se-tr--st .se-lib { font-weight: 500; }
  .se-deux { grid-template-columns: 1fr; }
  .se-ouvrir { margin-left: 0; }
  .se-modal { padding: 0; }
  .se-modal-boite { border-radius: 0; min-height: 100%; }
  .se-modal-corps { padding: 8px; }
  .se-modal-corps > .bg-white { padding: 14px !important; }

  /* styles.css impose 44 px de haut aux boutons sous 768 px : les lignes restent des lignes */
  #suivi-eleves .se-ligne, #suivi-eleves .se-tr--btn, #suivi-eleves .se-ratee--pass { min-height: 0 !important; height: auto !important; }
}

@media (max-width: 767px) {
  #suivi-eleves .se-ligne, #suivi-eleves .se-tr--btn, #suivi-eleves .se-ratee--pass, #suivi-eleves .se-chip { min-height: 0 !important; height: auto !important; }
}

/* ------------------------------------------------------------------
   Mode nuit
   ------------------------------------------------------------------ */
body.dark-mode .se-panneau, body.dark-mode .se-modal-boite .se-tete, body.dark-mode .se-ligne,
body.dark-mode .se-tr, body.dark-mode .se-ratee, body.dark-mode .se-ibtn, body.dark-mode .se-chip,
body.dark-mode .se-plus { background: #111827; color: #e5e7eb; border-color: #374151; }
body.dark-mode .se-modal-boite { background: #0b1220; }
body.dark-mode .se-tete, body.dark-mode .se-liste, body.dark-mode .se-tab, body.dark-mode .se-tr,
body.dark-mode .se-ligne { border-color: #374151; }
body.dark-mode .se-tete h3, body.dark-mode .se-nom b, body.dark-mode .se-c b, body.dark-mode .se-sec h4,
body.dark-mode .se-sec h5, body.dark-mode .se-lib, body.dark-mode .se-ratee-q, body.dark-mode .se-vide b { color: #f3f4f6; }
body.dark-mode .se-sous, body.dark-mode .se-note, body.dark-mode .se-date, body.dark-mode .se-num,
body.dark-mode .se-c small, body.dark-mode .se-entetes, body.dark-mode .se-kpi span, body.dark-mode .se-vide,
body.dark-mode .se-sec h4 small, body.dark-mode .se-sec h5 small { color: #cbd5e1; }
body.dark-mode .se-kpi, body.dark-mode .se-th, body.dark-mode .se-acc-corps { background: #1f2937; border-color: #374151; }
body.dark-mode .se-kpi b { color: #5eead4; }
body.dark-mode .se-kpi--alerte b { color: #fca5a5; }
body.dark-mode .se-ligne:hover, body.dark-mode .se-tr--btn:hover:not([disabled]),
body.dark-mode .se-ratee summary:hover, body.dark-mode .se-ratee--pass:hover, body.dark-mode .se-chip:hover { background: #1f2937; }
body.dark-mode .se-chip--act { background: #f3f4f6; color: #111827; border-color: #f3f4f6; }
body.dark-mode .se-av { background: #134e4a; color: #99f6e4; }
body.dark-mode .se-niv, body.dark-mode .se-tag, body.dark-mode .se-t--n { background: #374151; color: #e5e7eb; }
body.dark-mode .se-t--r, body.dark-mode .se-tag--r { background: #7f1d1d; color: #fecaca; }
body.dark-mode .se-t--o { background: #78350f; color: #fde68a; }
body.dark-mode .se-t--v { background: #14532d; color: #bbf7d0; }
body.dark-mode .se-inact--v, body.dark-mode .se-t--v-txt { color: #86efac !important; }
body.dark-mode .se-inact--o, body.dark-mode .se-t--o-txt { color: #fcd34d !important; }
body.dark-mode .se-inact--r, body.dark-mode .se-t--r-txt { color: #fca5a5 !important; }
body.dark-mode .se-barre { background: #374151; }
body.dark-mode .se-ch { background: #1f2937; border-color: #374151; color: #e5e7eb; }
body.dark-mode .se-ch--bon { background: #052e16; border-color: #166534; }
body.dark-mode .se-ch--bon .se-ch-m { color: #86efac; }
body.dark-mode .se-ch--faux { background: #450a0a; border-color: #991b1b; }
body.dark-mode .se-ch--faux .se-ch-m, body.dark-mode .se-ch em { color: #fca5a5; }
body.dark-mode .se-explic { background: #0c2a3f; border-color: #0369a1; color: #e0f2fe; }
body.dark-mode .se-explic b { color: #7dd3fc; }
body.dark-mode .se-avert { background: #451a03; border-color: #92400e; color: #fde68a; }
body.dark-mode .se-ouvrir { color: #5eead4; }
body.dark-mode .se-entree-fiche, body.dark-mode .se-entree-pass { background: #134e4a; color: #ccfbf1; border-color: #0f766e; }
body.dark-mode .se-c .se-zero { color: #9ca3af; }
body.dark-mode .se-barre-v.se-t--r, body.dark-mode .se-pt.se-t--r { background: #ef4444; }
body.dark-mode .se-barre-v.se-t--o, body.dark-mode .se-pt.se-t--o { background: #f59e0b; }
body.dark-mode .se-barre-v.se-t--v, body.dark-mode .se-pt.se-t--v { background: #22c55e; }
body.dark-mode .se-pt.se-t--n { background: #4b5563; }
body.dark-mode .se-kpi--btn:hover, body.dark-mode .se-kpi--act { background: #134e4a; border-color: #2dd4bf; box-shadow: inset 0 0 0 1px #2dd4bf; }
body.dark-mode .se-kpi--alerte.se-kpi--btn:hover, body.dark-mode .se-kpi--alerte.se-kpi--act { background: #450a0a; border-color: #f87171; box-shadow: inset 0 0 0 1px #f87171; }
body.dark-mode .se-filtre-act { color: #f3f4f6; }
body.dark-mode .se-lien { color: #5eead4; }
body.dark-mode .se-lien:hover { background: #134e4a; }
body.dark-mode .se-topo-col { background: #111827; border-color: #374151; }
body.dark-mode .se-topo-col--v { background: #052e16; border-color: #166534; }
body.dark-mode .se-topo-col--r { background: #2a0a0a; border-color: #7f1d1d; }
body.dark-mode .se-topo h4, body.dark-mode .se-topo li, body.dark-mode .se-topo-l { color: #f3f4f6; }
body.dark-mode .se-topo li small, body.dark-mode .se-topo-vide { color: #cbd5e1; }
body.dark-mode .se-topo-prio { color: #fecaca; }

/* --- dans la fiche élève (Résultats › QCM et PASS) --- */
.se-fond--nu { background: transparent; padding: 0; }
.se-dans > .se-sec:first-of-type, .se-dans > .se-kpis:first-child { margin-top: 0; }
@media (max-width: 767px) {
  .se-dans .se-tr--btn, .se-dans .se-ratee--pass, .se-dans .se-plus { min-height: 0 !important; height: auto !important; }
}

/* ===== Réussite par chapitre : groupes et lignes (2026-10) ===== */
.se-chapitres { display: flex; flex-direction: column; gap: 12px; }
.se-groupe { display: block; }
.se-groupe-t { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #475569; }
.se-groupe-t b { min-width: 22px; padding: 0 7px; border-radius: 999px; background: #e2e8f0; color: #334155; font-size: 11.5px; text-align: center; letter-spacing: 0; }
.se-groupe-t--r { color: #b91c1c; }
.se-groupe-t--r b { background: #fee2e2; color: #991b1b; }
.se-groupe-t--v { color: #15803d; }
.se-groupe-t--v b { background: #dcfce7; color: #166534; }
details.se-groupe > summary { list-style: none; cursor: pointer; }
details.se-groupe > summary::-webkit-details-marker { display: none; }
details.se-groupe > summary::after { content: "›"; margin-left: 2px; font-size: 15px; color: #94a3b8; transition: transform .15s; }
details.se-groupe[open] > summary::after { transform: rotate(90deg); }
.se-chaps { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; }
.se-chap { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; gap: 4px 14px; padding: 10px 14px 9px; border-bottom: 1px solid #f1f5f9; }
.se-chap:last-child { border-bottom: 0; }
.se-chap-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.se-chap-txt .se-lib { font-size: 14px; font-weight: 600; color: #0f172a; overflow-wrap: anywhere; }
.se-chap-meta { font-size: 12px; color: #64748b; }
.se-chap .se-essais { justify-content: flex-end; flex-wrap: wrap; max-width: 150px; row-gap: 3px; }
.se-chap .se-pt { width: 9px; height: 9px; margin: 0 0 0 3px; }
.se-chap-pc { text-align: right; }
.se-chap-barre { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: #f1f5f9; overflow: hidden; }
.se-chap-barre i { display: block; height: 100%; border-radius: 99px; }
@media (max-width: 560px) {
  .se-chap { grid-template-columns: minmax(0, 1fr) 60px; }
  .se-chap .se-essais { grid-column: 1; grid-row: 2; justify-content: flex-start; max-width: none; }
  .se-chap .se-pt { margin: 0 3px 0 0; }
  .se-chap-pc { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
/* KPI : cartes blanches, valeur en tête */
.se-kpi { background: #fff; padding: 12px 14px; border-radius: 14px; }
.se-kpi b { font-size: 22px; letter-spacing: -.01em; }
body.dark-mode .se-chaps { background: #111827; border-color: #374151; }
body.dark-mode .se-chap { border-bottom-color: #1f2937; }
body.dark-mode .se-chap-txt .se-lib { color: #f3f4f6; }
body.dark-mode .se-chap-meta, body.dark-mode .se-groupe-t { color: #9ca3af; }
body.dark-mode .se-chap-barre { background: #1f2937; }
body.dark-mode .se-groupe-t b { background: #374151; color: #e5e7eb; }
body.dark-mode .se-groupe-t--r { color: #fca5a5; }
body.dark-mode .se-groupe-t--r b { background: #450a0a; color: #fecaca; }
body.dark-mode .se-groupe-t--v { color: #86efac; }
body.dark-mode .se-groupe-t--v b { background: #14532d; color: #bbf7d0; }
body.dark-mode .se-kpi { background: #111827; }
body.dark-mode .se-fond mjx-container, body.dark-mode .se-fond .MathJax { color: inherit !important; }
