/* ==========================================================================
   Thème « Scolarité » — système de design par-dessus Bootstrap 5.3
   Principes : sobriété, lisibilité, hiérarchie claire, couleurs rares et signifiantes.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../vendor/fonts/inter-latin.30a274cd01b6.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* marque */
  --brand-50: #eef3ff;
  --brand-100: #dbe6ff;
  --brand-500: #2f5fe3;
  --brand-600: #234fd0;
  --brand-700: #1c3fa8;
  --brand-900: #0f1b3d;
  --accent: #0e9f9b;
  /* neutres */
  --ink: #1b2640;
  --ink-soft: #4a566f;
  --muted: #6b7792;
  --line: #e4e8f1;
  --line-strong: #cfd6e5;
  --surface: #ffffff;
  --canvas: #f3f5fa;
  /* états */
  --ok: #15803d;      --ok-bg: #e3f6e9;
  --warn: #a15c07;    --warn-bg: #fdf0d5;
  --bad: #b42318;     --bad-bg: #fde8e6;
  --info: #0b6e8a;    --info-bg: #dff3f8;
  --neutral-bg: #eaedf4;
  /* forme */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .05);
  --sidebar-w: 268px;

  /* Bootstrap */
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--canvas);
  --bs-primary: var(--brand-600);
  --bs-primary-rgb: 35, 79, 208;
  --bs-link-color: var(--brand-600);
  --bs-link-hover-color: var(--brand-700);
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius-sm);
  --bs-secondary-color: var(--muted);
}

html { font-feature-settings: "cv11", "ss01"; }
body { font-size: .94rem; line-height: 1.55; letter-spacing: -.003em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--ink); font-weight: 650; letter-spacing: -.018em; }
h1.h3, .h3 { font-size: 1.55rem; }
h1.h4, .h4 { font-size: 1.28rem; }
.h5 { font-size: 1.06rem; }
.h6 { font-size: .95rem; }
.text-muted, .text-body-secondary { color: var(--muted) !important; }
small, .small { font-size: .84em; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
::selection { background: var(--brand-100); }

/* ---------- ossature ---------- */
.app { min-height: 100vh; }
@media (min-width: 992px) {
  .app { display: flex; }
  .main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); }
}

/* ---------- menu latéral ---------- */
.sidebar {
  --bs-offcanvas-width: var(--sidebar-w);
  background: linear-gradient(180deg, #11214d 0%, #0b1736 100%);
  color: #c8d1ea;
  width: var(--sidebar-w);
  border: 0;
}
@media (min-width: 992px) {
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1030; display: flex; flex-direction: column; }
}
.sidebar .offcanvas-body { padding: 0; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.brand { display: flex; align-items: center; gap: .75rem; padding: 1.15rem 1.25rem 1rem; color: #fff; text-decoration: none !important; }
.brand:hover { color: #fff; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-500), var(--accent)); color: #fff; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(47, 95, 227, .45);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.brand-nom { font-weight: 650; font-size: .95rem; line-height: 1.2; letter-spacing: -.01em; }
.brand-sous { font-size: .72rem; color: #8fa0cc; font-weight: 500; letter-spacing: .02em; }
.menu { padding: .25rem .75rem 1.5rem; }
.menu-titre { font-size: .67rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: #6f82b5; padding: 1.15rem .75rem .45rem; }
.menu-lien {
  display: flex; align-items: center; gap: .75rem; padding: .56rem .75rem; margin-bottom: 2px; border-radius: 10px;
  color: #c8d1ea; font-weight: 500; font-size: .9rem; text-decoration: none !important; position: relative;
  transition: background .15s, color .15s;
}
.menu-lien .bi { font-size: 1.08rem; width: 1.25rem; text-align: center; opacity: .85; }
.menu-lien:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.menu-lien.actif { background: linear-gradient(90deg, rgba(47, 95, 227, .55), rgba(47, 95, 227, .22)); color: #fff; }
.menu-lien.actif::before { content: ""; position: absolute; left: -.75rem; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: #7fa2ff; }
.menu-lien.actif .bi { opacity: 1; }
.sidebar-pied { margin-top: auto; padding: 1rem 1.25rem; font-size: .72rem; color: #6f82b5; border-top: 1px solid rgba(255, 255, 255, .07); }

/* ---------- barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1020; height: 64px; display: flex; align-items: center; gap: 1rem;
  padding: 0 1.5rem; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .recherche { position: relative; max-width: 380px; flex: 1; }
.topbar .recherche .bi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.topbar .recherche input { padding-left: 2.4rem; background: var(--canvas); border-color: transparent; height: 40px; }
.topbar .recherche input:focus { background: #fff; border-color: var(--brand-500); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: .8rem; font-weight: 650;
  color: var(--brand-700); background: var(--brand-100); letter-spacing: .02em;
}
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar-sm { width: 30px; height: 30px; font-size: .7rem; }
.user-btn { display: flex; align-items: center; gap: .6rem; border: 0; background: transparent; padding: .25rem .5rem; border-radius: 12px; color: var(--ink); text-align: left; }
.user-btn:hover { background: var(--canvas); }
.user-btn .nom { font-weight: 600; font-size: .86rem; line-height: 1.15; }
.user-btn .role { font-size: .72rem; color: var(--muted); }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-size: .88rem; }

.content { padding: 1.75rem 1.5rem 3rem; max-width: 1400px; }
@media (max-width: 575.98px) { .content { padding: 1.1rem .85rem 2.5rem; } .topbar { padding: 0 .85rem; } }

/* ---------- cartes ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: none; }
.card.shadow-sm, .shadow-sm { box-shadow: var(--shadow) !important; }
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: .9rem 1.15rem; font-size: .95rem; }
.card-footer { background: #fafbfe; border-top: 1px solid var(--line); }
.card-body { padding: 1.15rem; }
a.card { color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 10px 28px rgba(16, 24, 40, .1) !important; text-decoration: none; }

/* indicateurs chiffrés */
.stat { flex-direction: row; gap: .95rem; align-items: center; padding: 1.1rem 1.2rem; text-align: left; }
.stat .pastille {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; flex: none;
  background: var(--brand-50); color: var(--brand-600);
}
.stat .pastille.ok { background: var(--ok-bg); color: var(--ok); }
.stat .pastille.bad { background: var(--bad-bg); color: var(--bad); }
.stat .pastille.warn { background: var(--warn-bg); color: var(--warn); }
.stat .pastille.info { background: var(--info-bg); color: var(--info); }
.stat .libelle { font-size: .78rem; color: var(--muted); font-weight: 550; text-transform: uppercase; letter-spacing: .04em; }
.stat > div:last-child { min-width: 0; }
.stat .valeur { font-size: clamp(1.2rem, 5.5vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.card.card-body.py-2.text-center, .card-body.py-2 { padding-top: .75rem !important; padding-bottom: .75rem !important; }
.card .small.text-muted + strong, .card .small.text-muted + .h4 { font-variant-numeric: tabular-nums; }

/* ---------- tableaux ---------- */
.table { --bs-table-bg: transparent; --bs-table-hover-bg: #f7f9fe; font-variant-numeric: tabular-nums; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .72rem 1rem; border-bottom-color: var(--line); }
.table-sm > :not(caption) > * > * { padding: .55rem .8rem; }
.table thead th {
  background: #f8f9fd; color: var(--muted); font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table tbody tr:last-child > * { border-bottom-width: 0; }
.table tfoot td, .table tfoot th { background: #f8f9fd; border-top: 1px solid var(--line); }
.table-responsive.bg-white, .bg-white.rounded { border: 1px solid var(--line); border-radius: var(--radius) !important; overflow: hidden; background: var(--surface) !important; }
.table-responsive > .table { margin: 0; }
.table-light, .table-light > * { --bs-table-bg: #f8f9fd; }
.table-danger { --bs-table-bg: #fff3f1; }
.table-warning { --bs-table-bg: #fff8e8; }
.table-bordered > :not(caption) > * { border-color: var(--line); }

/* ---------- boutons ---------- */
.btn { --bs-btn-border-radius: 10px; font-weight: 550; letter-spacing: -.005em; padding: .46rem .9rem; font-size: .88rem; }
.btn-sm { --bs-btn-border-radius: 8px; padding: .32rem .7rem; font-size: .82rem; }
.btn-primary { --bs-btn-bg: var(--brand-600); --bs-btn-border-color: var(--brand-600); --bs-btn-hover-bg: var(--brand-700); --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700); --bs-btn-disabled-bg: var(--brand-600);
  box-shadow: 0 1px 2px rgba(35, 79, 208, .35), inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn-success { --bs-btn-bg: #16813f; --bs-btn-border-color: #16813f; --bs-btn-hover-bg: #126b34; --bs-btn-hover-border-color: #126b34; }
.btn-danger { --bs-btn-bg: #c42b1c; --bs-btn-border-color: #c42b1c; --bs-btn-hover-bg: #a52418; --bs-btn-hover-border-color: #a52418; }
.btn-outline-primary { --bs-btn-color: var(--brand-600); --bs-btn-border-color: #b9c9f5; --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-color: var(--brand-700); --bs-btn-hover-border-color: #94adf0; --bs-btn-active-bg: var(--brand-100); --bs-btn-active-color: var(--brand-700); }
.btn-outline-secondary { --bs-btn-color: var(--ink-soft); --bs-btn-border-color: var(--line-strong); --bs-btn-hover-bg: #f1f3f9; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #b9c2d8; --bs-btn-active-bg: #e8ecf5; --bs-btn-active-color: var(--ink); background: #fff; }
.btn-outline-danger { --bs-btn-color: #b42318; --bs-btn-border-color: #f1b8b2; --bs-btn-hover-bg: #fde8e6; --bs-btn-hover-color: #9a1c12; --bs-btn-hover-border-color: #e8958c; }
.btn-outline-success { --bs-btn-color: #15803d; --bs-btn-border-color: #a9dcb9; --bs-btn-hover-bg: #e3f6e9; --bs-btn-hover-color: #11632f; --bs-btn-hover-border-color: #7fc796; }
.btn-secondary { --bs-btn-bg: #5b6785; --bs-btn-border-color: #5b6785; }
.btn-link { color: var(--brand-600); font-weight: 550; text-decoration: none; }
.btn:focus-visible { box-shadow: 0 0 0 .22rem rgba(47, 95, 227, .28); }

/* ---------- formulaires ---------- */
.form-control, .form-select { border-radius: 10px; border-color: var(--line-strong); padding: .55rem .8rem; background-color: #fff; color: var(--ink); }
.form-control-sm, .form-select-sm { border-radius: 8px; padding: .32rem .6rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 .22rem rgba(47, 95, 227, .16); }
.form-control::placeholder { color: #9aa5bd; }
.form-label { font-weight: 600; font-size: .84rem; color: var(--ink-soft); margin-bottom: .35rem; }
.form-text { color: var(--muted); font-size: .8rem; }
.form-check-input { border-color: var(--line-strong); }
.form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }

/* ---------- pastilles d'état (badges doux) ---------- */
.badge { font-weight: 600; letter-spacing: .01em; padding: .36em .65em; border-radius: 999px; font-size: .72rem; }
.badge.bg-success { background: var(--ok-bg) !important; color: var(--ok) !important; }
.badge.bg-danger { background: var(--bad-bg) !important; color: var(--bad) !important; }
.badge.bg-warning { background: var(--warn-bg) !important; color: var(--warn) !important; }
.badge.bg-info { background: var(--info-bg) !important; color: var(--info) !important; }
.badge.bg-secondary { background: var(--neutral-bg) !important; color: #4a566f !important; }
.badge.bg-primary { background: var(--brand-100) !important; color: var(--brand-700) !important; }
.text-danger { color: var(--bad) !important; }
.text-success { color: var(--ok) !important; }
.text-warning { color: var(--warn) !important; }

/* ---------- alertes ---------- */
.alert { border: 1px solid transparent; border-left-width: 4px; border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; }
.alert-success { background: var(--ok-bg); border-color: #b7e3c4; border-left-color: var(--ok); color: #14532d; }
.alert-danger { background: var(--bad-bg); border-color: #f5c4be; border-left-color: var(--bad); color: #7a1912; }
.alert-warning { background: var(--warn-bg); border-color: #f5dba5; border-left-color: #d98a0b; color: #6b3d05; }
.alert-info { background: var(--info-bg); border-color: #b5e0ec; border-left-color: var(--info); color: #0a4d61; }
.alert-secondary { background: var(--neutral-bg); border-color: var(--line-strong); border-left-color: #8a96b3; color: var(--ink-soft); }
.alert .bi { margin-right: .35rem; }

/* ---------- divers composants ---------- */
.progress { height: .6rem; border-radius: 999px; background: #e9edf6; overflow: hidden; }
.progress-bar { font-size: 0; }
.progress.progress-etiquette { height: 1.15rem; }
.progress.progress-etiquette .progress-bar { font-size: .68rem; font-weight: 650; }
.progress-bar.bg-success { background: linear-gradient(90deg, #22a35a, #16813f) !important; }
.progress-bar.bg-warning { background: linear-gradient(90deg, #f0a92a, #d98a0b) !important; }
.progress-bar.bg-danger { background: linear-gradient(90deg, #e05a4d, #c42b1c) !important; }
.list-group-item { border-color: var(--line); padding: .8rem 1.1rem; }
.list-group-flush > .list-group-item:last-child { border-bottom: 0; }
.list-group-item-action:hover { background: #f7f9fe; }
.nav-pills .nav-link { border-radius: 10px; color: var(--ink-soft); font-weight: 550; padding: .5rem .95rem; white-space: nowrap; }
.nav-pills .nav-link.active { background: var(--brand-600); color: #fff; box-shadow: 0 2px 8px rgba(35, 79, 208, .35); }
.pagination { --bs-pagination-border-radius: 8px; gap: 3px; }
.page-link { border-radius: 8px !important; border-color: var(--line); color: var(--ink-soft); }
.page-item.active .page-link { background: var(--brand-600); border-color: var(--brand-600); }
hr { border-color: var(--line); opacity: 1; }
dt { font-weight: 550; color: var(--muted); font-size: .84rem; }
dd { color: var(--ink); }
code { color: var(--brand-700); background: var(--brand-50); padding: .1em .4em; border-radius: 6px; font-size: .85em; }
img.rounded { border-radius: 12px !important; }
.vide { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.vide .bi { font-size: 2rem; display: block; margin-bottom: .5rem; opacity: .45; }

/* en-tête de page */
.entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.entete h1 { margin: 0; }
.entete .sous-titre { color: var(--muted); font-size: .9rem; margin-top: .15rem; }

/* anneau de progression (tableau de bord) */
.anneau { --taille: 132px; width: var(--taille); height: var(--taille); position: relative; flex: none; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau .fond { stroke: #e9edf6; }
.anneau .valeur-anneau { stroke: var(--brand-600); stroke-linecap: round; transition: stroke-dasharray .6s; }
.anneau .centre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.anneau .centre strong { font-size: 1.55rem; letter-spacing: -.02em; line-height: 1; }
.anneau .centre span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }

/* raccourcis de l'accueil */
.raccourci { flex-direction: row; align-items: center; gap: .9rem; padding: 1rem 1.15rem; }
.raccourci .pastille { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-size: 1.2rem; flex: none; }
.raccourci .titre { font-weight: 600; color: var(--ink); }
.raccourci .sous { font-size: .8rem; color: var(--muted); }

/* grille de saisie des notes */
.grille input.form-control { width: 5.2rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; border-color: var(--line); }
.grille input.note-basse { color: var(--bad); background: #fff6f5; border-color: #f3c9c4; }
.grille input.note-haute { color: var(--ok); background: #f3fbf6; border-color: #bfe5cb; }
.grille input.note-code { color: #6b5b00; background: #fffbe8; border-color: #efe0a0; }
.grille th.sticky, .grille td.sticky { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.grille thead th.sticky { background: #f8f9fd; }

/* ---------- connexion ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-visuel {
  position: relative; overflow: hidden; color: #fff; padding: 3rem 3.5rem; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(900px 500px at 10% -10%, rgba(14, 159, 155, .55), transparent 60%),
              radial-gradient(800px 600px at 110% 110%, rgba(47, 95, 227, .75), transparent 55%),
              linear-gradient(160deg, #0f1b3d, #14285f);
}
.auth-visuel::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(135deg, transparent 20%, #000 80%); mask-image: linear-gradient(135deg, transparent 20%, #000 80%);
}
.auth-visuel > * { position: relative; z-index: 1; }
.auth-visuel h2 { color: #fff; font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; max-width: 28rem; }
.auth-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; max-width: 30rem; }
.auth-points li { display: flex; gap: .8rem; align-items: flex-start; color: #cdd8f5; font-size: .95rem; }
.auth-points .bi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #9fc0ff; flex: none; font-size: 1rem; }
.auth-points strong { display: block; color: #fff; font-weight: 600; }
.auth-form { display: grid; place-items: center; padding: 2rem 1.5rem; }
.auth-form .boite { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; }
.auth-form .form-control { height: 48px; }
.auth-form .btn-primary { height: 48px; font-size: 1rem; }
@media (max-width: 991.98px) { .auth { grid-template-columns: 1fr; } .auth-visuel { display: none; } .auth-mobile { display: flex !important; } }
.auth-mobile { display: none; align-items: center; gap: .7rem; margin-bottom: 2rem; }

/* ---------- pages publiques (vérification QR) ---------- */
.public-bar { background: #fff; border-bottom: 1px solid var(--line); padding: .8rem 1.25rem; display: flex; align-items: center; gap: .75rem; }
.public-bar .brand-logo { width: 34px; height: 34px; font-size: .9rem; }
.public-contenu { max-width: 720px; margin: 0 auto; padding: 1.75rem 1rem 3rem; }

/* ---------- impression ---------- */
@media print {
  .sidebar, .topbar, .no-print, .alert, .public-bar { display: none !important; }
  .main { margin-left: 0 !important; }
  body { background: #fff; }
  .content { padding: 0; max-width: none; }
  .card, .table-responsive.bg-white { border-color: #ccc !important; box-shadow: none !important; }
}

/* petits indicateurs « .card-body.py-2 » : même langage que .stat */
.card.card-body.py-2 { align-items: flex-start; text-align: left !important; padding: .8rem 1rem !important; }
.card.card-body.py-2 > .small.text-muted { text-transform: uppercase; letter-spacing: .05em; font-weight: 600; font-size: .68rem; }
.card.card-body.py-2 > strong { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }

/* classements et moyennes */
.rang { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 999px; font-weight: 700; font-size: .8rem; background: var(--neutral-bg); color: var(--ink-soft); }
.rang.r1 { background: #fdeeb4; color: #8a5a00; }
.rang.r2 { background: #e6eaf2; color: #4a566f; }
.rang.r3 { background: #f6dcc6; color: #8a4a1c; }
.table .moy-basse, .moy-basse { color: var(--bad) !important; font-weight: 600; }
.table .moy-haute, .moy-haute { color: var(--ok) !important; font-weight: 600; }
.moy-gen { font-weight: 700; font-size: 1.02rem; }
.cellule-eleve { display: flex; align-items: center; gap: .7rem; }
.cellule-eleve .nom { font-weight: 600; line-height: 1.2; color: var(--ink); }
.cellule-eleve .sous { font-size: .78rem; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; color: var(--ink-soft); background: var(--canvas); padding: .15rem .45rem; border-radius: 6px; }
.sexe-f { background: #fde8f3 !important; color: #a21a63 !important; }
.sexe-m { background: #e0ecff !important; color: #1c4aa8 !important; }

/* fiche élève */
.profil { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.profil .photo { width: 120px; height: 150px; border-radius: 16px; object-fit: cover; box-shadow: var(--shadow); background: var(--brand-50); display: grid; place-items: center; color: var(--brand-600); font-size: 2.4rem; font-weight: 700; flex: none; }


/* bouton retour (toutes les pages) */
.btn-retour { display: inline-flex; align-items: center; margin-bottom: .6rem; padding: .25rem .7rem .25rem .5rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.btn-retour:hover { color: var(--brand-600); border-color: var(--brand-500); background: var(--brand-50); }
