/* ============================================================
   Espace enseignant — coquille (sidebar), composants raffinés,
   et mode focus de correction. Chargé en plus de style.css.
   Style : clair & aéré, blanc + accent bleu, ombres douces,
   grands arrondis, transitions subtiles.
   ============================================================ */

:root { --ink: #26313d; --ink-2: #667283; --line: #eef2f8; --bg-app: #fbfcff; }

/* ---------- Coquille ---------- */
.app-shell { display: flex; min-height: 100vh; background: var(--bg-app); }

.sidebar {
  position: sticky; top: 0; align-self: flex-start;
  height: 100vh; width: 244px; flex: 0 0 244px;
  background: #ffffff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 1.4rem 0.85rem;
}
.sidebar .brand { padding: 0.2rem 0.55rem 1.4rem; font-size: 1.15rem; }
.sidebar .brand-logo { width: 30px; height: 30px; }
.side-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.side-link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.62rem 0.7rem; border-radius: 12px;
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
  transition: background .15s ease, color .15s ease;
}
.side-link:hover { background: var(--blue-50); text-decoration: none; }
.side-link.active { background: var(--blue-100); color: var(--blue-400); font-weight: 600; }
.side-link .ico { width: 19px; height: 19px; flex: 0 0 auto; stroke-width: 1.8; }
.side-badge { margin-left: auto; background: var(--blue-300); color: #fff;
  font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 0.05rem 0.5rem; }
.side-spacer { flex: 1 1 auto; }
.side-foot { display: flex; flex-direction: column; gap: 0.2rem;
  border-top: 1px solid var(--line); padding-top: 0.7rem; margin-top: 0.7rem; }
.side-link.muted { color: var(--ink-2); }

.app-main { flex: 1 1 auto; min-width: 0; }
.app-content { max-width: 940px; margin: 0 auto; padding: 2.6rem 2.2rem 4.5rem;
  animation: fade-up .4s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Titres & fil d'Ariane ---------- */
.app-shell h1 { font-size: 1.95rem; letter-spacing: -0.03em; margin: 0.2rem 0 0.4rem; }
.app-shell h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
.crumb { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 1.2rem; display: inline-flex; gap: 0.4rem; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--blue-400); }
.subtitle { color: var(--ink-2); margin-top: -0.1rem; }

/* ---------- Cartes raffinées ---------- */
.app-shell .card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.05);
  padding: 1.5rem 1.6rem; margin-bottom: 1.4rem;
}
.soft-card { background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.05); }

/* ---------- Boutons (survol subtil) ---------- */
.app-shell .btn { border-radius: 12px; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; }
.app-shell .btn:hover { transform: translateY(-1px); }
.app-shell .btn-ghost:hover { transform: none; }

/* ---------- Bandeau d'attention (dashboard) ---------- */
.attention {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  border-radius: 20px; padding: 1.15rem 1.4rem; margin-bottom: 1.6rem;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-600)); color: #fff;
  box-shadow: 0 16px 40px rgba(52, 126, 247, 0.25);
}
.attention .att-txt strong { font-size: 1.05rem; }
.attention .att-txt span { display: block; color: rgba(255,255,255,.85); font-size: 0.9rem; }
.attention .btn { background: #fff; color: var(--blue-400); border-color: #fff; }
.attention .btn:hover { background: var(--blue-50); }

/* ---------- Quota discret ---------- */
.quota-line { display: flex; align-items: center; gap: 0.8rem; color: var(--ink-2);
  font-size: 0.9rem; margin-bottom: 1.8rem; }
.quota-line .qbar { flex: 1; max-width: 240px; height: 6px; background: var(--blue-100);
  border-radius: 999px; overflow: hidden; }
.quota-line .qbar span { display: block; height: 100%; background: var(--blue-300); border-radius: 999px; }

/* ---------- Grille de classes ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.tile {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 1.3rem 1.4rem; color: var(--ink);
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover { text-decoration: none; transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(16, 24, 32, 0.10); border-color: var(--blue-200); }
.tile h3 { margin: 0 0 0.15rem; font-size: 1.12rem; letter-spacing: -0.01em; }
.tile .tile-meta { color: var(--ink-2); font-size: 0.9rem; }
.tile .tile-foot { margin-top: 0.9rem; color: var(--ink-2); font-size: 0.86rem;
  display: flex; gap: 0.9rem; }
.tile .tile-foot b { color: var(--ink); font-weight: 700; }

/* Carte "ajouter" via <details> (divulgation progressive, zéro parasite) */
.add-tile { border: 1.5px dashed var(--blue-200); border-radius: 20px; background: transparent; }
.add-tile[open] { background: #fff; box-shadow: 0 10px 30px rgba(16,24,32,.05); border-style: solid; }
.add-tile > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; min-height: 118px; color: var(--blue-400); font-weight: 600; padding: 1rem;
}
.add-tile[open] > summary { min-height: auto; justify-content: flex-start; padding: 1.2rem 1.4rem 0.4rem; }
.add-tile > summary::-webkit-details-marker { display: none; }
.add-tile .disclosure-body { padding: 0.4rem 1.4rem 1.3rem; }

/* Divulgation générique (nouvel élève, nouvelle éval…) */
.disclosure { border: none; }
.disclosure > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  gap: 0.45rem; color: var(--blue-400); font-weight: 600; padding: 0.45rem 0; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: "＋"; font-weight: 700; }
.disclosure[open] > summary::before { content: "×"; }
.disclosure .disclosure-body { padding-top: 0.7rem; }

/* ---------- Listes épurées (élèves, copies) ---------- */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 1rem; padding: 0.85rem 0.2rem;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: none; }
.row .row-main { flex: 1 1 auto; min-width: 0; }
.row .row-main .r-title { font-weight: 600; }
.row .row-main .r-sub { color: var(--ink-2); font-size: 0.88rem; }
.row .row-side { color: var(--ink-2); font-size: 0.9rem; white-space: nowrap; }

/* Pastilles de statut douces */
.chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem;
  font-weight: 600; border-radius: 999px; padding: 0.18rem 0.6rem; background: var(--blue-50); color: var(--ink-2); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.chip-ok { background: #eaf6ee; color: #2f8a4e; }
.chip-warn { background: #fff3d6; color: #b7791f; }
.chip-run { background: var(--blue-100); color: var(--blue-400); }
.chip-idle { background: #eef1f6; color: #6b7684; }

/* ---------- Pages auth (sans sidebar) ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-app); padding: 2rem; }

/* ============ MODE FOCUS (correction / vérification) ============ */
.focus-body { background: #f4f7fd; }
.focus-top {
  position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem; padding: 0.9rem 1.4rem; background: rgba(255,255,255,.85);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.focus-top .ft-left { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.focus-top .ft-center { text-align: center; color: var(--ink-2); font-size: 0.92rem; }
.focus-top .ft-right { text-align: right; }
.focus-top .ft-close { color: var(--ink-2); font-weight: 600; }
.focus-progress { height: 3px; background: var(--blue-100); }
.focus-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-300), var(--blue-600));
  transition: width .5s ease; }

.focus-stage { max-width: 1080px; margin: 0 auto; padding: 2.4rem 1.6rem 4rem; }
.focus-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.6rem; align-items: start;
  animation: focus-in .45s ease both; }
@keyframes focus-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.focus-copy { background: #fff; border-radius: 22px; border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 16px 44px rgba(16, 24, 32, 0.10); }
.focus-copy img, .focus-copy iframe { display: block; width: 100%; border: 0; }
.focus-copy .fc-empty { padding: 3rem 1.5rem; text-align: center; color: var(--ink-2); }
.focus-copy .fc-cap { padding: 0.7rem 1rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.85rem;
  display: flex; justify-content: space-between; }

.focus-panel { background: #fff; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(16, 24, 32, 0.08); padding: 1.8rem; }
.focus-panel .fp-ctx { color: var(--ink-2); font-size: 0.9rem; }
.focus-panel .fp-q { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.2rem 0 1rem; }
.fp-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.fp-line dt { color: var(--ink-2); }
.fp-line dd { margin: 0; font-weight: 700; text-align: right; }
.fp-doubt { background: #fff8ec; border: 1px solid #ffe2ad; border-radius: 14px; padding: 0.9rem 1rem; margin: 1rem 0; }
.fp-doubt p { margin: 0.3rem 0; font-size: 0.9rem; color: #5b4a1f; }
.fp-doubt strong { color: #7a4f06; }

.fp-decide { margin-top: 1.4rem; }
.fp-decide label { font-weight: 600; margin-bottom: 0.5rem; display: block; }
.score-field { display: inline-flex; align-items: center; gap: 0.5rem; }
.score-field input { width: 5.5rem; text-align: center; font-size: 1.3rem; font-weight: 800;
  border-radius: 12px; padding: 0.5rem; margin: 0; }
.score-field .smax { color: var(--ink-2); font-weight: 600; }
.stepper { width: 2.6rem; height: 2.6rem; border-radius: 12px; border: 1px solid var(--blue-200);
  background: #fff; color: var(--blue-400); font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: background .15s ease; }
.stepper:hover { background: var(--blue-50); }
.fp-actions { margin-top: 1.5rem; display: flex; gap: 0.7rem; align-items: center; }
.fp-actions .btn-lg { padding: 0.8rem 1.4rem; }
.fp-accept { color: var(--ink-2); font-size: 0.88rem; }

.focus-done { max-width: 560px; margin: 5rem auto; text-align: center;
  animation: focus-in .5s ease both; }
.focus-done .fd-badge { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.5rem;
  background: #eaf6ee; color: #2f8a4e; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; box-shadow: 0 16px 40px rgba(47, 138, 78, 0.18); }
.focus-done h1 { font-size: 2rem; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .app-content { padding: 1.6rem 1.1rem 3rem; }
  .focus-grid { grid-template-columns: 1fr; }
}

/* Auth (login/signup) */
.auth-col { width: 100%; max-width: 420px; }
.auth-brand { justify-content: center; margin-bottom: 1.3rem; font-size: 1.2rem; }
.auth-wrap .auth-card { margin: 0; border-radius: 20px; box-shadow: 0 16px 44px rgba(16,24,32,.08); }

/* Action reine « Corriger » dans la sidebar */
.side-cta { background: var(--blue-300); color: #fff !important; font-weight: 700; margin-bottom: 0.5rem;
  box-shadow: 0 8px 20px rgba(52,126,247,0.28); }
.side-cta:hover { background: var(--blue-400); transform: translateY(-1px); }
.side-cta.on { background: var(--blue-400); }
.side-cta .ico { stroke-width: 1.7; }

/* Flux Corriger : étapes + espaces de travail */
.steps-bar { display: flex; gap: 0.6rem; align-items: center; color: var(--ink-2); font-size: 0.9rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.steps-bar .stepdot { display: inline-flex; align-items: center; gap: 0.45rem; }
.steps-bar .num { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--blue-100); color: var(--blue-400);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.steps-bar .stepdot.done .num { background: #eaf6ee; color: #2f8a4e; }
.steps-bar .stepdot.active .num { background: var(--blue-300); color: #fff; }
.steps-bar .sep { color: var(--blue-200); }

.ws-card { display: flex; gap: 1rem; align-items: flex-start; }
.ws-card .ws-ico { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 14px; background: var(--blue-50);
  color: var(--blue-400); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.ws-card .ws-body { flex: 1 1 auto; min-width: 0; }
.ws-card h2 { margin: 0 0 0.2rem; }

.stu-row { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.stu-row:first-child { border-top: none; }
.stu-name { flex: 1 1 auto; font-weight: 600; min-width: 0; }
.stu-copy { display: flex; align-items: center; gap: 0.7rem; color: var(--ink-2); font-size: 0.9rem; }
.stu-copy .copy-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stu-actions { display: flex; align-items: center; gap: 0.5rem; }
.mini-upload { display: inline-flex; align-items: center; gap: 0.4rem; }
.mini-upload input[type=file] { max-width: 190px; font-size: 0.82rem; }
.launch-bar { position: sticky; bottom: 1rem; margin-top: 1.6rem; display: flex; justify-content: flex-end; }

/* Zone de glisser-déposer (générée par appui.js autour de chaque input file) */
.dropzone { position: relative; display: flex; flex: 1 1 auto; min-width: 200px; align-items: center;
  border: 1.5px dashed var(--blue-200); border-radius: 14px; padding: 0.8rem 1rem;
  background: var(--blue-50); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.dropzone:hover { border-color: var(--blue-300); }
.dropzone.dragover { border-color: var(--blue-400); background: var(--blue-100); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; margin: 0; }
.dz-inner { display: flex; align-items: center; gap: 0.55rem; color: var(--ink-2); font-size: 0.9rem;
  pointer-events: none; min-width: 0; }
.dz-ico { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem;
  border-radius: 9px; background: #fff; color: var(--blue-400); font-weight: 700; box-shadow: 0 2px 6px rgba(16,24,32,.06); }
.dz-text u { color: var(--blue-400); text-decoration: none; font-weight: 600; }
.dz-name { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-upload .dropzone { min-width: 170px; padding: 0.5rem 0.7rem; }
.mini-upload .dz-text, .mini-upload .dz-name { font-size: 0.82rem; }

/* Multi-sélection de classes (étape 1) */
.check-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check-chip { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; cursor: pointer;
  border: 1.5px solid var(--blue-200); border-radius: 12px; padding: 0.5rem 0.8rem; font-weight: 500;
  transition: border-color .15s, background .15s; }
.check-chip:hover { border-color: var(--blue-300); }
.check-chip input { margin: 0; width: auto; }
.check-chip em { color: var(--ink-2); font-style: normal; }
.check-chip:has(input:checked) { border-color: var(--blue-400); background: var(--blue-50); }

/* Choix du mode de correction (workspace) */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.mode-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.3rem 1.4rem;
  border: 1.5px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink);
  box-shadow: 0 8px 24px rgba(16,24,32,.04); transition: transform .15s, box-shadow .15s, border-color .15s; }
.mode-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--blue-300);
  box-shadow: 0 16px 40px rgba(16,24,32,.10); }
.mode-ico { font-size: 1.5rem; }
.mode-title { font-weight: 700; font-size: 1.05rem; }
.mode-sub { color: var(--ink-2); font-size: 0.9rem; }
@media (max-width: 640px) { .mode-grid { grid-template-columns: 1fr; } }

/* En-tête de groupe (classe) dans la liste des élèves */
.group-head { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-2); padding: 0.9rem 0 0.3rem; }
.group-head:first-child { padding-top: 0; }

/* Bandeau d'information */
.info-banner { display: flex; gap: 0.8rem; align-items: flex-start; background: #fff8ec;
  border: 1px solid #ffe2ad; color: #5b4a1f; }
.info-banner .ib-ico { font-size: 1.2rem; }
.info-banner strong { color: #7a4f06; }

/* Grille des absents */
.absent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem; margin-top: 0.6rem; }
.absent-chip { display: flex; align-items: center; gap: 0.55rem; margin: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; padding: 0.5rem 0.75rem; font-weight: 500;
  transition: border-color .15s, background .15s; }
.absent-chip input { margin: 0; width: auto; }
.absent-chip span b { color: var(--ink-2); }
.absent-chip:has(input:checked) { border-color: #f0b429; background: #fff8ec; color: #92600c; text-decoration: line-through; }

/* Barre de progression de la correction (workspace) */
.progress-banner { background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; box-shadow: var(--shadow-soft); }
.pb-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.pb-bar { height: 8px; background: var(--blue-100); border-radius: 999px; overflow: hidden; }
.pb-fill { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-300), var(--blue-600)); transition: width .5s ease; }

/* Réponse de l'élève dans le panneau de correction (focus) */
.fp-answer { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 14px;
  padding: 0.8rem 1rem; margin-bottom: 1rem; }
.fp-answer-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-2); margin-bottom: 0.25rem; }
.fp-answer p { margin: 0; white-space: pre-wrap; }

/* Étiquette « facultatif » */
.opt-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-2); background: var(--blue-50); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.1rem 0.5rem; vertical-align: middle; margin-left: 0.4rem; }

/* Écran « À vérifier » : énoncé + réponse transcrits (panneau gauche) */
.focus-question { background: #fff; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(16, 24, 32, 0.08); padding: 1.8rem; align-self: start; }
.fq-block { margin-bottom: 1.4rem; }
.fq-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-2); margin-bottom: 0.4rem; }
.fq-statement { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.5; }
.fq-answer { margin: 0; white-space: pre-wrap; background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: 14px; padding: 0.9rem 1rem; }
.fq-foot { border-top: 1px solid var(--line); padding-top: 0.9rem; }

/* Lignes d'évaluations (accueil Corriger + page Évaluations) */
.eval-row { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 0.2rem;
  border-top: 1px solid var(--line); color: var(--ink); transition: background .12s ease; }
.eval-row:first-child { border-top: none; }
.eval-row:hover { text-decoration: none; background: var(--blue-50); border-radius: 12px; }
.er-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.er-title { font-weight: 600; }
.er-sub { color: var(--ink-2); font-size: 0.85rem; }
.er-count { color: var(--ink-2); font-size: 0.85rem; white-space: nowrap; }
.er-go { color: var(--blue-400); font-weight: 700; }

/* En-tête de cadre avec bouton d'action en haut à droite */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h2 { margin: 0; }

/* Popover d'ajout (bouton « + » en haut à droite du cadre) */
.add-pop, .menu-pop { position: relative; }
.add-pop > summary, .menu-pop > summary { list-style: none; cursor: pointer; }
.add-pop > summary::-webkit-details-marker, .menu-pop > summary::-webkit-details-marker { display: none; }
.add-pop-body { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 1.1rem; }
.pop-sep { text-align: center; color: var(--ink-2); font-size: 0.8rem; margin: 0.9rem 0 0.6rem; }
.menu-pop-body { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); padding: 0.4rem; }
.menu-item { display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 0.55rem 0.7rem; border-radius: 10px; cursor: pointer; font-size: 0.9rem; color: var(--ink); }
.menu-item:hover { background: var(--blue-50); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: #fdecec; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 1.1rem;
  cursor: pointer; line-height: 1; }
.icon-btn:hover { background: var(--blue-50); }
.empty-hint { padding: 1rem 0; }

/* Lignes de notes (détail d'évaluation) */
.grade-row { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 0.2rem; border-top: 1px solid var(--line); }
.grade-row:first-child { border-top: none; }
.gr-name { flex: 1 1 auto; font-weight: 600; min-width: 0; }
.gr-note { white-space: nowrap; font-variant-numeric: tabular-nums; }
.gr-note strong { font-size: 1.05rem; }
.gr-link { white-space: nowrap; min-width: 56px; text-align: right; }
.gr-link a { color: var(--blue-400); font-size: 0.85rem; }

/* Wizard de correction : étapes cliquables + navigation */
.steps-bar a.stepdot { text-decoration: none; color: var(--ink-2); }
.steps-bar a.stepdot:hover .num { background: var(--blue-200); }
.steps-bar a.stepdot.active { color: var(--ink); }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: 1.5rem; }
.wizard-nav > div { display: flex; gap: 0.6rem; }
