/* Portail Ékole — feuille commune, À LA MARQUE d'ekole.io (19/10, demande de Raphaël ; kit : Marketing/Brand, jetons =
   ekole-io/assets/styles.css). Cinq couleurs du logo, une par lettre d'É·k·o·l·e ; Bricolage Grotesque (titres), Manrope
   (corps), Geist Mono (étiquettes, en majuscules) ; maille de couleur + grain, jamais de noir plat ; boutons en pilule,
   champs soulignés, jaune au focus. Jour/nuit : ek-theme (R1, 20/10) — 7 h-19 h à l'heure de l'appareil, bouton de la barre. Contrastes AA : le bleu du logo #2B7FE0
   échoue en texte (mémoire « contrastes ») → texte d'accent #1D5FAF de jour, #7FB0F0 de nuit ; le jaune ne porte que de
   l'encre ; anneau de focus (--focus) et filet de la page courante (--current, relecture du 25/11, A2) : encre de jour,
   jaune de nuit (le jaune est à ~1,5:1 sur le papier, sous les 3:1 d'un repère d'état). */
:root {
  --c-blue: #2B7FE0; --c-red: #E63946; --c-yellow: #F4C430; --c-sky: #4DB5E3; --c-green: #5CB339;
  --paper: #FAFAF7; --card: rgba(255, 255, 255, .74); --card-solid: #FFFFFF; --ink: #07090E; --mute: #4A5060; --soft: #5F6678;
  --line: rgba(7, 9, 14, .10); --line-2: rgba(7, 9, 14, .20);
  --accent: #1D5FAF; --accent-ink: #FFFFFF; --accent-soft: rgba(43, 127, 224, .10); --ok: #166534; --err: #B42318;
  --focus: #07090E; --current: #07090E; --mesh-blend: multiply; --grain: .18;
  --f-display: 'Bricolage Grotesque', 'Times New Roman', serif; --f-body: 'Manrope', system-ui, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, monospace; --ease: cubic-bezier(.2, .7, .1, 1);
}
/* Nuit : <html data-theme="dark"> posé par ek-theme ; sans JavaScript, le réglage de l'appareil. */
:root[data-theme="dark"] { --paper: #07090E; --card: rgba(12, 16, 24, .80); --card-solid: #0C1018; --ink: #F2F1EC; --mute: #A6ADBE; --soft: #8F96A8;
    --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .18);
    --accent: #7FB0F0; --accent-ink: #07090E; --accent-soft: rgba(43, 127, 224, .18); --ok: #6FD08C; --err: #FF8A80;
    --focus: #F4C430; --current: #F4C430; --mesh-blend: screen; --grain: .5; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --paper: #07090E; --card: rgba(12, 16, 24, .80); --card-solid: #0C1018; --ink: #F2F1EC; --mute: #A6ADBE; --soft: #8F96A8;
    --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .18);
    --accent: #7FB0F0; --accent-ink: #07090E; --accent-soft: rgba(43, 127, 224, .18); --ok: #6FD08C; --err: #FF8A80;
    --focus: #F4C430; --current: #F4C430; --mesh-blend: screen; --grain: .5; }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: var(--f-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; }
/* maille de couleur et grain d'ekole.io, derrière tout (jamais cliquables) */
body::before, body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::before { background-image: radial-gradient(800px 500px at 12% -5%, rgba(43, 127, 224, .18), transparent 60%),
  radial-gradient(700px 500px at 95% 8%, rgba(230, 57, 70, .10), transparent 60%),
  radial-gradient(900px 600px at 50% 110%, rgba(92, 179, 57, .10), transparent 60%); mix-blend-mode: var(--mesh-blend); }
body::after { opacity: var(--grain); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
main { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; padding: 36px 20px 64px; }
main.wide { max-width: 980px; }
h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 7vw, 44px); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 10px; }
h2 { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.015em; margin: 32px 0 12px; }
p { margin: 0 0 14px; }
.mute { color: var(--mute); }
/* Marque : le mot-symbole d'ekole.io, une couleur par lettre (logo : exempté du contraste) ; l'espace en étiquette */
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.brand a { text-decoration: none; display: inline-flex; }
.brand-mark { display: inline-flex; font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.brand-mark span:nth-child(1) { color: var(--c-blue); }
.brand-mark span:nth-child(2) { color: var(--c-red); }
.brand-mark span:nth-child(3) { color: var(--c-yellow); }
.brand-mark span:nth-child(4) { color: var(--c-sky); }
.brand-mark span:nth-child(5) { color: var(--c-green); }
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
  display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* Qui es-tu ? — interrupteur en pilule, comme le choix de langue du site */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.doors button { border: 0; background: transparent; color: var(--mute); padding: 9px 8px; border-radius: 999px; font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.doors button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
label { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--soft); margin: 18px 0 2px; }
/* Champs soulignés (site) ; zones de texte bordées ; cases et options telles quelles */
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0;
  border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 10px 0; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
textarea { border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; }
select { cursor: pointer; }
select option { color: #07090E; background: #FFFFFF; }
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; border: 0; accent-color: var(--c-blue); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 1px 0 0 var(--focus); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--ink); margin: 12px 0 0; }
.check input { margin-top: 4px; }
.hint { display: block; font-size: 13px; color: var(--mute); margin: 2px 0 6px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 1px 0 0 var(--err); }
/* Boutons en pilule : envoi jaune (encre), autres moyens et secondaires en contour */
button.primary { width: 100%; margin-top: 22px; background: var(--c-yellow); color: #07090E; border: 0; border-radius: 999px; padding: 15px 28px;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
button.primary:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
button.primary[disabled] { opacity: .6; cursor: progress; transform: none; }
/* Connexion (18/10) : les autres moyens — code par courriel, Google — sous le formulaire du mot de passe */
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; color: var(--soft); font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
/* Sélecteur « Équipe Ékole | École » de la page de connexion (03/11, ❌ de Raphaël sur 2ge0pj) : deux boutons radio sur un
   rail ; une pastille claire GLISSE sous le côté choisi (data-side posé par portal.js) ; aucun mouvement si l'appareil le
   demande. Puis l'en-tête du côté (titre + phrase) et ses moyens, en fondu. */
.side-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; margin: 0 0 20px;
  border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--line); isolation: isolate; }
.side-switch::before { content: ''; position: absolute; z-index: -1; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: var(--card-solid); box-shadow: 0 1px 2px rgba(7, 9, 14, .10), 0 4px 14px rgba(7, 9, 14, .08);
  transition: transform .26s var(--ease); }
.side-switch[data-side="school"]::before { transform: translateX(100%); }
.side-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 12px 10px;
  border: 0; border-radius: 999px; background: transparent; color: var(--mute); font: 600 15px/1.2 var(--f-body);
  cursor: pointer; transition: color .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.side-switch button svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .75; transition: opacity .2s var(--ease); }
.side-switch button:hover { color: var(--ink); }
.side-switch button[aria-checked="true"] { color: var(--ink); }
.side-switch button[aria-checked="true"] svg { opacity: 1; color: var(--accent); }
.side-switch button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.side-head { text-align: center; margin: 0 0 6px; }
.side-title { margin: 0; font: 700 19px/1.25 var(--f-display); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.side-note { margin: 4px 0 0; text-wrap: balance; }
.side-in { animation: side-in .24s var(--ease) both; }
@keyframes side-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .side-switch::before, .side-switch button { transition: none; } .side-in { animation: none; } }
/* « Continuer avec Google » selon la charte de Google : fond blanc, contour gris, logo G (nuit : fond sombre de Google) */
.gsi-btn { width: 100%; margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 24px;
  border-radius: 999px; border: 1px solid #747775; background: #FFFFFF; color: #1F1F1F; font: 600 16px/1.2 var(--f-body);
  cursor: pointer; transition: background .15s var(--ease), box-shadow .15s var(--ease); }
.gsi-btn:hover { background: #F8F9FA; box-shadow: 0 1px 3px rgba(60, 64, 67, .30), 0 4px 8px rgba(60, 64, 67, .15); }
.gsi-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gsi-btn[disabled] { opacity: .6; cursor: progress; }
.gsi-btn .gsi-g { width: 20px; height: 20px; flex: 0 0 20px; }
:root[data-theme="dark"] .gsi-btn { background: #131314; border-color: #8E918F; color: #E3E3E3; }
:root[data-theme="dark"] .gsi-btn:hover { background: #1F1F21; }
button.alt { width: 100%; margin-top: 10px; background: transparent; border: 1px solid var(--line-2); color: var(--ink); border-radius: 999px;
  padding: 13px 24px; font: inherit; font-weight: 600; cursor: pointer; transition: border-color .25s var(--ease); }
button.alt:hover { border-color: var(--ink); }
button.alt[disabled] { opacity: .6; cursor: progress; }
button.ghost, a.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--ink); border-radius: 999px; padding: 7px 14px;
  font: inherit; font-size: 14px; cursor: pointer; transition: border-color .25s var(--ease); }
button.ghost:hover, a.ghost:hover { border-color: var(--ink); }
a.ghost { display: inline-block; text-decoration: none; }
/* Suppression définitive (admin, 08/10) : bouton rouge, ligne de confirmation sous la ligne visée. */
button.danger { background: transparent; border: 1px solid var(--err); color: var(--err); border-radius: 999px; padding: 7px 14px; font: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer; }
button.danger[disabled], button.ghost[disabled] { opacity: .5; cursor: not-allowed; }
td > button, td > a.ghost { margin: 2px 4px 2px 0; }
/* Téléphone : le tableau défile de côté ; la boîte reste dans la partie visible de la carte (pas de texte hors écran). */
.confirm-box { border: 1px solid var(--err); border-radius: 16px; padding: 14px; background: var(--card-solid); position: sticky; left: 0; max-width: calc(100vw - 100px); }
.confirm-box p { margin: 0 0 8px; }
.confirm-box .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
/* Code par courriel (inviter ou renvoyer l'invitation d'un admin Ékole, 08/10) : boîte neutre, pas rouge. */
.confirm-box.neutral { border-color: var(--accent); }
/* Boîte de dialogue (formulaire d'école, 08/10) : tient dans l'écran d'un téléphone (375 px) et défile. */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
dialog.dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px;
  border: 1px solid var(--line); border-radius: 24px; background: var(--card-solid); color: var(--ink); }
dialog.dialog::backdrop { background: rgba(7, 9, 14, .55); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-head h2 { margin: 0; }
dialog.dialog .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
dialog.dialog .actions button.primary { width: auto; margin-top: 0; }
.code-step { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; }
.code-step .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.code-step .actions button.primary { width: auto; margin-top: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
.links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; flex-wrap: wrap; }
.msg { min-height: 22px; margin-top: 12px; font-size: 14px; }
.msg.err { color: var(--err); } .msg.ok { color: var(--ok); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--soft); font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.pill { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px;
  border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.row button.primary { margin-top: 0; }
.scroll { overflow-x: auto; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Espaces privés (admin., staff., school.ekole.io — docs/piste-b.md §13) : tuiles de liens, « bientôt », note. Les écrans
   de la porte (« Se connecter », « mauvais rôle », déconnexion) reprennent main, .brand, h1, .card et .mute. */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; color: var(--ink); text-decoration: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease); }
a.tile:hover { border-color: var(--c-yellow); transform: translateY(-2px); }
.tile b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.tile span { color: var(--mute); font-size: 14px; }
.tile.soon { opacity: .8; }
.tile.soon .pill { margin-left: 6px; vertical-align: middle; }
.note { font-size: 14px; color: var(--mute); background: var(--accent-soft); border-radius: 16px; padding: 12px 16px; margin: 16px 0 0; }
form.session { align-items: center; justify-content: flex-start; margin-top: 28px; }
/* Thème de l'école sur l'espace école (révision du 09/10, annexe B.5) : bande sous la marque Ékole — fond = couleur
   principale SEULEMENT quand un texte y atteint 4,5:1 (portal.js pose --school-primary et --school-text ensemble, blanc ou
   encre ; sinon couleurs par défaut), filet du bas = couleur d'accent (décor). Logo sur pastille blanche : lisible de jour
   comme de nuit, quelle que soit la couleur de l'école. Sans thème : rien de tout cela n'apparaît. */
.school-band { display: flex; align-items: center; gap: 12px; min-height: 64px; margin: -12px 0 24px; padding: 10px 14px;
  border-radius: 20px; border: 1px solid var(--line); border-bottom: 4px solid var(--school-accent, var(--line));
  background: var(--school-primary, var(--card)); color: var(--school-text, var(--ink)); }
.school-logo { display: inline-flex; background: #FFFFFF; border-radius: 10px; padding: 6px 10px; }
.school-logo img { display: block; height: 44px; width: auto; max-width: min(240px, 60vw); object-fit: contain; }
.school-name { font-family: var(--f-display); font-weight: 700; font-size: 18px; }
body[data-school-theme] button.primary { background: var(--school-primary, var(--c-yellow)); color: var(--school-text, #07090E); }
/* Connexion (19/10) : le courriel, puis deux choix, l'un sous l'autre, en pleine largeur. */
.choices { display: grid; gap: 10px; margin-top: 22px; }
.choices button { margin-top: 0; }
#pwBox .small { margin-top: 12px; font-size: 14px; width: 100%; }
/* Clé d'API saisie sur une page d'outil d'admin (a8zeut, 19/10) : pas de type="password" (le navigateur y proposerait le
   mot de passe du portail), mais masquée à l'affichage ; vidée après l'enregistrement. Navigateur sans
   -webkit-text-security : portal.js (maskSecrets) passe en password « new-password », ignoré des gestionnaires. */
input.secret { -webkit-text-security: disc; font-family: var(--f-mono); }
/* Barre commune (lot final, 19/10 ; barre du 25/11, choix de Raphaël « Menu du compte ») : en haut de TOUTES les pages — le
   logo (les applications), les liens du rôle (lien courant : filet --current, encre de jour, jaune de nuit), puis à droite
   le menu du compte : un bouton aux initiales et son panneau, au-dessus du contenu, aligné à droite sous le bouton (nom et
   rôle, espaces, « Mon compte », « Mode nuit », « Se déconnecter »). Sans compte, le bouton jour/nuit reste dans la barre.
   Téléphone : ☰ au lieu des initiales, et les liens passent de la barre à la tête du panneau (display: none de l'autre
   côté : jamais en double). */
.topbar { position: relative; z-index: 2; max-width: 460px; margin: 0 auto; padding: 18px 20px 0; display: flex; flex-wrap: wrap;
  align-items: center; gap: 10px 22px; }
.topbar-home { display: inline-flex; text-decoration: none; border-radius: 8px; }
.topbar .brand-mark { font-size: 26px; }
.topbar-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; font-size: 14px; font-weight: 600; }
.topbar-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
  transition: border-color .25s var(--ease); }
.topbar-nav a:hover { border-bottom-color: var(--line-2); }
.topbar-nav a[aria-current="page"] { border-bottom-color: var(--current); }
.topbar-me { position: relative; display: inline-flex; align-items: center; gap: 12px; margin-left: auto; font-size: 14px; }
/* sans compte, le bouton jour/nuit prend la marge et se colle à « Se connecter » (R1) */
.topbar .ek-theme-toggle { margin-left: auto; }
.topbar .ek-theme-toggle + .topbar-me { margin-left: -10px; }   /* 22 px de la barre − 10 = l'écart de la barre (12 px) */
.topbar-me > a { color: var(--ink); font-weight: 600; }
/* le bouton du menu : initiales sur une pastille jaune (le jaune ne porte que de l'encre), ▾ */
.topbar-menu-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; min-width: 36px; margin: 0; padding: 2px 10px 2px 2px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.topbar-menu-btn:hover, .topbar-menu-btn[aria-expanded="true"] { border-color: var(--c-yellow); }
.topbar-menu-btn[aria-expanded="true"] { background: var(--accent-soft); }
.topbar-initials { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px;
  background: var(--c-yellow); color: #07090E; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.topbar-label { padding-left: 10px; }
.topbar-caret { font-size: 11px; color: var(--mute); }
.topbar-burger { display: none; }
.topbar-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; display: grid; gap: 2px; min-width: 240px;
  max-width: calc(100vw - 40px); padding: 8px; background: var(--card-solid); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 2px 6px rgba(7, 9, 14, .08), 0 14px 36px rgba(7, 9, 14, .16); }
.topbar-who { display: grid; gap: 1px; margin: 0 0 4px; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.topbar-who b { font-size: 15px; }
.topbar-who span { color: var(--mute); font-size: 13px; }
/* rangées du menu (liens, Mode nuit, Se déconnecter) : pleine largeur, 40 px de haut */
.topbar-menu a, .topbar-menu button.ghost, .topbar .topbar-menu .ek-theme-toggle {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: auto; min-height: 40px; margin: 0;
  padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: 14px;
  font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease); }
.topbar-menu a:hover, .topbar-menu button.ghost:hover, .topbar .topbar-menu .ek-theme-toggle:hover { background: var(--accent-soft); color: var(--ink); }
.topbar-menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--current); text-decoration-thickness: 2px;
  text-underline-offset: 4px; }
.topbar .topbar-menu .ek-theme-toggle::after { content: 'Mode nuit'; }   /* son nom (aria-label) est posé par ek-theme */
.topbar .topbar-menu .ek-theme-toggle svg { color: var(--mute); }
.topbar-menu form { margin: 0; }
/* section « Espace » (plusieurs espaces) : Admin · Staff · École en pilules, l'espace courant en encre */
.topbar-menu-spaces { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 0 0 4px; padding: 4px 12px 10px; border-bottom: 1px solid var(--line); }
.topbar-menu-title { flex-basis: 100%; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.topbar-menu .topbar-menu-spaces a { flex: 1; justify-content: center; width: auto; min-height: 32px; padding: 6px 10px; border: 1px solid var(--line-2);
  border-radius: 999px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.topbar-menu .topbar-menu-spaces a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); text-decoration: none; }
/* Couleurs forcées (contraste élevé de Windows) : le système y remplace les couleurs de la page ; la page courante garde une
   marque à elle — soulignée dans la barre (les autres liens : une bordure couleur du fond), surlignée dans « Espace »
   (relecture du 26/11, F5). */
@media (forced-colors: active) {
  .topbar-nav a { border-bottom-color: Canvas; }
  .topbar-nav a[aria-current="page"] { border-bottom-color: CanvasText; }
  .topbar-menu .topbar-menu-spaces a[aria-current="page"] { background: Highlight; border-color: Highlight; color: HighlightText; }
}
.topbar-menu-links { display: none; }   /* ordinateur : les liens sont dans la barre */
@media (max-width: 640px) {
  .topbar { gap: 8px 14px; }
  .topbar-nav, .topbar-initials, .topbar-label, .topbar-caret { display: none; }
  .topbar-burger { display: inline-flex; font-size: 18px; line-height: 1; }
  .topbar-menu-btn { justify-content: center; width: 40px; min-height: 40px; padding: 0; }
  .topbar-menu { width: min(320px, calc(100vw - 40px)); min-width: 0; }
  .topbar-menu-links { display: grid; gap: 2px; margin: 0 0 4px; padding: 0 0 6px; border-bottom: 1px solid var(--line); }
}
/* ⚠️ du widget de signalement (ekole-feedback ; espaces et salle de classe, 26/11) : son ancre #ekTheme est dans la barre,
   il s'y met en ligne (widget.js) — juste avant le bouton jour/nuit (sans compte) ou le menu du compte, plus jamais flottant
   sur ☰. L'allure du bouton du menu (contour, fond transparent, rond), sans le fond clair ni le z-index du bouton flottant.
   −10 px : l'écart de la barre (22 px) ramené à 12 px, comme le bouton jour/nuit ; téléphone : 14 − 6 = 8 px. */
.topbar #ekfb-btn.ekfb-inline { flex: none; margin-left: auto; width: 36px; height: 36px; border: 1px solid var(--line-2);
  border-radius: 999px; background: transparent; color: var(--ink); z-index: auto; }
.topbar #ekfb-btn.ekfb-inline:hover { border-color: var(--c-yellow); }
.topbar #ekfb-btn.ekfb-inline + .ek-theme-toggle, .topbar #ekfb-btn.ekfb-inline + .topbar-me { margin-left: -10px; }
@media (max-width: 640px) {
  .topbar #ekfb-btn.ekfb-inline { width: 40px; height: 40px; }   /* la taille de ☰ */
  .topbar #ekfb-btn.ekfb-inline + .ek-theme-toggle, .topbar #ekfb-btn.ekfb-inline + .topbar-me { margin-left: -6px; }
}
/* « ← Retour » d'une page secondaire (lot final, 19/10) : au-dessus du titre, vers l'accueil du rôle ou la connexion. */
.back { display: inline-block; margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.back:hover { text-decoration: underline; }
/* Bouton d'aspect lien (retours dans la page de connexion) */
button.linkish { display: inline-block; margin-top: 14px; padding: 4px 0; background: none; border: 0; color: var(--accent); font: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer; text-underline-offset: 3px; }
button.linkish:hover { text-decoration: underline; }
main { padding-top: 28px; }
body[data-wide] .topbar { max-width: 980px; }   /* même largeur que le contenu de la page (revue P3-22) */
:root { color-scheme: light dark; }   /* listes, sélecteurs de date et compteurs dessinés pour le bon fond (revue P2-14) */
:root[data-theme="day"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* Espaces (lot final, refonte demandée par Raphaël le 19/10) : très simple — école : deux carrousels (Apps, Classes ;
   « Horaire », « École » et « Mon compte » sont dans la barre depuis le 25/11) ; staff et admin : une grille de boutons à
   pictogramme (façon Zoho). Ordinateur : pictogramme + nom (la
   description en infobulle) ; téléphone : UNE liste de boutons 1×n partout, pictogramme + nom + description. Pictogrammes
   SVG en trait, dans la couleur d'une lettre du logo (une par bouton, en boucle). */
main.space { max-width: 980px; }
.apps-grid, .carousel { list-style: none; margin: 0; padding: 0; }
.app { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 20px 12px 16px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; color: var(--ink); text-decoration: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: border-color .3s var(--ease), transform .3s var(--ease); }
a.app:hover { border-color: var(--c-yellow); transform: translateY(-2px); }
.app .txt { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.app b { font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; }
.app .sub { display: none; color: var(--mute); font-size: 13.5px; line-height: 1.4; }
.app.soon { opacity: .7; }
.app.soon .pill { margin-top: 2px; }
.ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 58px; height: 58px; border-radius: 17px;
  background: var(--accent-soft); color: var(--ink); }
.ico svg { width: 28px; height: 28px; }
.ico-text { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.c-blue { background: rgba(43, 127, 224, .12); color: #1D5FAF; }
.c-red { background: rgba(230, 57, 70, .11); color: #B8222F; }
.c-yellow { background: rgba(244, 196, 48, .24); color: #7A5C00; }
.c-sky { background: rgba(77, 181, 227, .15); color: #136E95; }
.c-green { background: rgba(92, 179, 57, .15); color: #2F6B19; }
:root[data-theme="dark"] .c-blue { background: rgba(43, 127, 224, .22); color: #8FBBF4; } :root[data-theme="dark"] .c-red { background: rgba(230, 57, 70, .20); color: #FF9A92; }
  :root[data-theme="dark"] .c-yellow { background: rgba(244, 196, 48, .18); color: #F4C430; } :root[data-theme="dark"] .c-sky { background: rgba(77, 181, 227, .20); color: #8AD3F2; }
  :root[data-theme="dark"] .c-green { background: rgba(92, 179, 57, .20); color: #97D97A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .c-blue { background: rgba(43, 127, 224, .22); color: #8FBBF4; } :root:not([data-theme]) .c-red { background: rgba(230, 57, 70, .20); color: #FF9A92; }
  :root:not([data-theme]) .c-yellow { background: rgba(244, 196, 48, .18); color: #F4C430; } :root:not([data-theme]) .c-sky { background: rgba(77, 181, 227, .20); color: #8AD3F2; }
  :root:not([data-theme]) .c-green { background: rgba(92, 179, 57, .20); color: #97D97A; }
}
.apps-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.apps-grid { margin-top: 8px; }
.shelf { margin-top: 26px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.shelf-head h2 { margin: 0; }
.shelf-nav { display: inline-flex; gap: 6px; }
.shelf-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  font: inherit; font-size: 22px; line-height: 1; cursor: pointer; transition: border-color .25s var(--ease), opacity .25s var(--ease); }
.shelf-btn:hover { border-color: var(--ink); }
.shelf-btn[disabled] { opacity: .3; cursor: default; }
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 12px;
  scrollbar-width: thin; }
.carousel > li { flex: 0 0 160px; scroll-snap-align: start; }
.empty { color: var(--mute); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .carousel { scroll-behavior: auto; } }
@media (max-width: 640px) {
  .apps-grid { grid-template-columns: 1fr; gap: 10px; }
  .carousel { flex-direction: column; overflow: visible; scroll-snap-type: none; padding: 0; gap: 10px; }
  .carousel > li { flex: none; }
  .shelf-nav { display: none; }
  .app { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; text-align: left; border-radius: 18px; }
  .app .txt { align-items: flex-start; }
  .app b { font-size: 17px; }
  .app .sub { display: block; }
  .ico { width: 46px; height: 46px; border-radius: 14px; }
  .ico svg { width: 24px; height: 24px; }
  .ico-text { font-size: 17px; }
}
/* Fiche d'école en blocs (lot final, 19/10) */
fieldset.group { border: 1px solid var(--line); border-radius: 18px; padding: 4px 16px 16px; margin: 16px 0 0; min-width: 0; }
fieldset.group legend { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; padding: 0 6px; }
fieldset.group > .mute:first-of-type { margin-top: 6px; }
.pick-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin: 14px 0 0; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 14px; }
/* Étape du code : ses trois sorties sur une ligne (lot final, 19/10) */
.otp-actions { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 4px; }
/* carrousels : défilement par ‹ ›, le doigt ou le pavé ; pas de barre grise (lot final) */
.carousel { scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
#keysForm button.linkish { margin-top: 4px; }
/* Console (lot final, 19/10) : cellules d'une ligne par élément (la sous-navigation est devenue les onglets de la console v2) */
td.lines { white-space: pre-line; min-width: 170px; }
h2[id] { scroll-margin-top: 16px; }
label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
label.inline input { width: auto; }

/* Bouton jour/nuit de la barre (R1, 20/10 — ek-theme) : à gauche de « Mon compte », discret, même place partout. Le pictogramme
   montre le mode EN COURS (soleil le jour, lune la nuit) ; aria-pressed et le libellé sont posés par ek-theme. */
.ek-theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none;
  margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--mute);
  cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.ek-theme-toggle:hover { color: var(--ink); border-color: var(--c-yellow); }
.ek-theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ek-theme-toggle svg { width: 17px; height: 17px; }
:root[data-theme="day"] .ek-theme-toggle .i-dark, :root[data-theme="dark"] .ek-theme-toggle .i-day,
:root:not([data-theme]) .ek-theme-toggle .i-dark { display: none; }

/* Console des comptes v2 (item gp2dfw, Q&R de Raphaël du 30/10) : onglets, barre de filtres, UNE ligne par personne (ses comptes
   en sous-lignes), fiche à droite sur grand écran — plein écran sur téléphone et tablette —, bulles (?) des actions. */
body[data-console] main.wide, body[data-console] .topbar { max-width: 1240px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; margin: 4px 0 18px; }
.tabs [role="tab"] { border: 0; background: transparent; color: var(--mute); padding: 8px 18px; border-radius: 999px; font: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--paper); }
.console-bar { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: flex-end; }
.console-bar label { margin-top: 0; }
.console-bar .search { flex: 1 1 240px; }
.console-bar .filter { flex: 0 1 165px; }
/* Rangée d'actions (25/11) : sous les filtres — à gauche inviter, importer (CSV) et l'aide (?), à droite l'export de la liste ;
   chaque groupe passe à la ligne sur un téléphone. */
.console-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 16px 0 0; }
.console-actions-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.console-actions button.primary { width: auto; margin: 0; padding: 11px 22px; }
/* messages de la liste (#accountsMsg, #bulkMsg) : vides, ils ne creusent plus de trou sous la rangée (banc du 26/11) ;
   les régions annoncées restent dans la page */
#comptes > .msg:empty { min-height: 0; margin-top: 0; }
.fine { font-size: 13px; }
#peopleCount { margin: 4px 0 8px; }
.console-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.list-card { padding: 6px 16px 10px; }
th button.sort { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
th button.sort:hover { color: var(--ink); }
th[aria-sort="ascending"] button.sort::after { content: ' ↑'; }
th[aria-sort="descending"] button.sort::after { content: ' ↓'; }
button.linkish.row-open { margin: 0; padding: 0; text-align: left; font-size: 14px; }
tr.person.multi td { border-bottom: 0; }
tr.sub td { padding-top: 3px; padding-bottom: 7px; font-size: 13.5px; }
tr.sub td:first-child { padding-left: 20px; }
tr.sub button.linkish.row-open { font-weight: 500; font-size: 13.5px; }
tr.current td { background: var(--accent-soft); }
.sub-email { color: var(--mute); font-size: 13px; overflow-wrap: anywhere; }
#people td:last-child { white-space: nowrap; }   /* la date de connexion tient sur une ligne */
#people th.pick, #people td.pick { width: 28px; padding-right: 0; }
#people td.pick input, #people th.pick input { margin: 3px 0 0; }
/* Actions groupées : une barre qui paraît dès un compte choisi ; ses boutons restent sur une ligne si possible. */
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 0; padding: 10px 14px;
  border: 1px solid var(--accent); border-radius: 18px; background: var(--accent-soft); }
.bulk b { margin-right: 4px; }
.bulk-mark { display: inline-flex; align-items: center; gap: 6px; }
.bulk-mark select { width: auto; padding: 6px 0; font-size: 14px; }
.bulk button.linkish { margin: 0 0 0 auto; }
.pill.count { margin-left: 8px; vertical-align: middle; }
.pill.st-active { background: rgba(92, 179, 57, .16); }
.pill.st-invited { background: rgba(244, 196, 48, .26); }
.pill.st-disabled { background: var(--line); color: var(--mute); }
.fiche { background: var(--card-solid); border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px 22px; }
.fiche:focus { outline: none; }
.fiche-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fiche-head h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.fiche .msg:empty { min-height: 0; margin-top: 4px; }
section.acct { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.acct-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; overflow-wrap: anywhere; }
.acct .mute.fine { margin: 4px 0 0; }
.acts { display: grid; gap: 8px; margin-top: 12px; }
.with-help-row { display: flex; align-items: center; gap: 8px; }
.with-help-row > button:first-child, .with-help-row > fieldset { flex: 0 1 auto; }
button.help { flex: none; width: 26px; height: 26px; padding: 0; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--mute); font: inherit; font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer; }
button.help:hover, button.help[aria-expanded="true"] { color: var(--ink); border-color: var(--ink); }
.help-text { font-size: 13px; color: var(--mute); background: var(--accent-soft); border-radius: 12px; padding: 8px 12px; margin: 6px 0 0; }
fieldset.marks { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; min-width: 0; }
fieldset.marks legend { float: left; margin-right: 6px; padding: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--soft); }
fieldset.marks .check { margin: 0; }
.acct button.linkish { margin-top: 10px; }
.history { margin-top: 6px; }
ol.events { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13.5px; }
ol.events li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.when { font-family: var(--f-mono); font-size: 11.5px; color: var(--soft); }
.fiche .confirm-box { position: static; max-width: none; margin-top: 12px; }
.linkbox { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; }
.linkbox h3 { font-family: var(--f-display); font-weight: 600; font-size: 17px; margin: 10px 0 4px; }
.link-row { display: flex; gap: 8px; align-items: flex-end; flex: 1; min-width: 0; }
.link-row select { min-width: 0; }
#inviteDialog form .actions button.primary { width: auto; }
/* Fiche d'une école (console v2, lot 3) : blocs titrés, lignes « libellé : valeur », actions en ligne. */
.fiche section.block { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; }
.fiche section.block h3 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--soft); margin: 4px 0 6px; }
p.kv { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0 0 4px; font-size: 14px; }
p.kv .k { color: var(--mute); }
p.kv .k::after { content: ' :'; }
p.kv .v { overflow-wrap: anywhere; }
p.lines { white-space: pre-line; margin: 0 0 6px; }
.acts.row-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fiche .note button { margin: 6px 6px 0 0; }
@media (min-width: 1000px) {
  .console-split.open { grid-template-columns: minmax(0, 1fr) 400px; }
  .fiche { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
}
/* Téléphone et tablette : la fiche couvre l'écran (✕ ou Échap la ferment) ; la page dessous ne défile plus. */
@media (max-width: 999px) {
  .fiche { position: fixed; inset: 0; z-index: 20; border-radius: 0; overflow: auto; padding: 18px 16px 28px; }
  body.fiche-open { overflow: hidden; }
  /* <main> est son propre contexte d'empilement (z-index 1) : sans ceci, la barre du haut (z-index 2) passait PAR-DESSUS la
     fiche et cachait son ✕ (revue de code du 30/10, H2) */
  body.fiche-open main { z-index: 30; }
  .console-bar .filter { flex: 1 1 140px; }
}
/* Téléphone : la liste garde nom, rôle et état (école et connexion sont dans la fiche) — plus de défilement de côté. */
@media (max-width: 640px) {
  #people th:nth-child(4), #people td:nth-child(4), #people th:nth-child(6), #people td:nth-child(6) { display: none; }
  .list-card { padding: 4px 10px 8px; }
}
/* Import CSV des invitations (25/11, console-import.js) : l'aide en panneau sous la rangée ; une boîte plus large pour
   l'aperçu ; le statut de chaque ligne en couleur ET en mots ; sur téléphone, une ligne du fichier = un bloc « libellé valeur ». */
.import-help { max-width: 760px; margin: 12px 0 0; padding: 16px 20px 14px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--card-solid); font-size: 14px; }
.import-help h2 { margin: 0 0 8px; font-size: 18px; }
.import-help p { margin: 0 0 10px; }
.import-help ul { margin: 0 0 10px; padding-left: 20px; }
.import-help li { margin: 2px 0; }
.import-help button.linkish { margin-top: 0; }
dialog.import-dialog { width: min(860px, calc(100vw - 32px)); }
#importFile { padding: 8px 0; cursor: pointer; }
#importFile::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
#importFile:hover::file-selector-button { border-color: var(--ink); }
#importFile:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
#importFile[disabled] { opacity: .6; cursor: not-allowed; }
#importMsg:empty, #importProgress:empty { min-height: 0; margin-top: 4px; }
#importProgress:focus { outline: none; }
#importProgress:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.import-notes { margin: 10px 0 0; padding-left: 20px; font-size: 14px; color: var(--mute); }
.import-sum { margin: 12px 0 8px; font-weight: 600; }
.import-sum:empty { margin: 0; }
.import-scroll { max-height: min(46vh, 380px); overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.import-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.import-table th { position: sticky; top: 0; z-index: 1; background: var(--card-solid); }
.import-table td { overflow-wrap: break-word; }   /* un mot entier (« Administrateur ») ne se coupe plus au milieu (26/11) */
.import-table td[data-label="Courriel"] { overflow-wrap: anywhere; }   /* une adresse longue, elle, se coupe où il faut */
.import-table td:first-child { color: var(--soft); font-family: var(--f-mono); font-size: 12px; }
.import-table tr:last-child td { border-bottom: 0; }
td.imp-send { color: var(--accent); font-weight: 600; }
td.imp-skip, td.imp-unsent { color: var(--mute); }
td.imp-ok { color: var(--ok); font-weight: 600; }
td.imp-nomail { font-weight: 600; }
td.imp-refused, td.imp-lost { color: var(--err); font-weight: 600; }
@media (max-width: 640px) {
  .import-help { padding: 14px 16px 12px; }
  .import-table, .import-table tbody, .import-table tr { display: block; }
  .import-table thead { display: none; }
  .import-table tr { padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .import-table tr:last-child { border-bottom: 0; }
  .import-table td { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 0 10px; padding: 2px 0; border: 0; }
  .import-table td[data-label]::before { content: attr(data-label); padding-top: 3px; color: var(--soft); font-family: var(--f-mono);
    font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
}

/* ───── Horaire de l'Espace école (31/10) ───── */
.slots { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.slots.past { opacity: .8; }   /* lisible (contraste) — gris de « passé » sans pâlir le texte */
.slot { border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; display: grid; gap: 4px; }
.slot-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.slot-head b { font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.slot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; }
.pill.sl-confirmed { background: rgba(92, 179, 57, .16); }
.pill.sl-pending { background: rgba(244, 196, 48, .26); }
.pill.sl-unassigned { background: var(--line); color: var(--mute); }
.slot .done { color: var(--ok); font-size: 14px; }
.slot-row button.primary { width: auto; margin-top: 0; padding: 8px 16px; }


/* ───── Classes — versions des ateliers (admin, 10/11) ───── */
/* Téléphone : chaque atelier en bloc (titre, en ligne, puis les gestes) — plus de défilement de côté. */
@media (max-width: 640px) {
  .classes-table thead { display: none; }
  .classes-table tr, .classes-table td { display: block; }
  .classes-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .classes-table td { padding: 2px 0; border: 0; }
  .classes-table select { max-width: 100%; }
}
