/* Suivi EEE — feuille de style unique.
   Monde visuel : outil de bureau calme. Fond papier chaud, encre bleu nuit,
   accent bleu pétrole, couleurs d'état réservées aux pastilles. */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #f0eee8;
  --line: #e3e0d8;
  --line-strong: #cfcbc0;
  --ink: #1c2230;
  --ink-2: #4a5163;
  --ink-3: #646a7a;
  --accent: #1f5c70;
  --accent-ink: #ffffff;
  --accent-soft: #e2eef1;
  --accent-line: #b9d4dc;
  --ok: #1d6b45;
  --ok-soft: #e1f1e7;
  --warn: #8a5200;
  --warn-soft: #fbedd5;
  --warn-strong: #9c3a00;
  --warn-strong-soft: #fde2d2;
  --danger: #a42b2b;
  --danger-soft: #fbe4e2;
  --neutral-soft: #ecebe6;
  --focus: #2a7f98;
  --shadow: 0 1px 2px rgb(28 34 48 / 6%), 0 4px 14px rgb(28 34 48 / 6%);
  --shadow-pop: 0 8px 30px rgb(28 34 48 / 16%), 0 2px 6px rgb(28 34 48 / 8%);
  --radius: 12px;
  --radius-s: 8px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar: 232px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171d;
    --surface: #1b1f27;
    --surface-2: #232833;
    --line: #2d3340;
    --line-strong: #3b4252;
    --ink: #e8eaf0;
    --ink-2: #b7bccb;
    --ink-3: #9096a6;
    --accent: #6fb5c9;
    --accent-ink: #0d1a1f;
    --accent-soft: #1b3038;
    --accent-line: #2c4c57;
    --ok: #7fd2a2;
    --ok-soft: #173426;
    --warn: #f0bf6c;
    --warn-soft: #3a2c12;
    --warn-strong: #ff9d6b;
    --warn-strong-soft: #43241a;
    --danger: #ff8f8f;
    --danger-soft: #3d1f22;
    --neutral-soft: #262b35;
    --focus: #8fcbe0;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 14px rgb(0 0 0 / 25%);
    --shadow-pop: 0 10px 34px rgb(0 0 0 / 50%);
    color-scheme: dark;
  }
}
/* Thème sombre forcé par le bouton « Thème » (mêmes valeurs que ci-dessus). */
:root[data-theme="dark"] {
  --bg: #14171d;
  --surface: #1b1f27;
  --surface-2: #232833;
  --line: #2d3340;
  --line-strong: #3b4252;
  --ink: #e8eaf0;
  --ink-2: #b7bccb;
  --ink-3: #9096a6;
  --accent: #6fb5c9;
  --accent-ink: #0d1a1f;
  --accent-soft: #1b3038;
  --accent-line: #2c4c57;
  --ok: #7fd2a2;
  --ok-soft: #173426;
  --warn: #f0bf6c;
  --warn-soft: #3a2c12;
  --warn-strong: #ff9d6b;
  --warn-strong-soft: #43241a;
  --danger: #ff8f8f;
  --danger-soft: #3d1f22;
  --neutral-soft: #262b35;
  --focus: #8fcbe0;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 14px rgb(0 0 0 / 25%);
  --shadow-pop: 0 10px 34px rgb(0 0 0 / 50%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--font);
  font-feature-settings: "cv11", "ss01";
}
::selection { background: var(--accent-soft); color: var(--ink); }
input, select, textarea, button { font: inherit; color: inherit; accent-color: var(--accent); caret-color: var(--accent); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: 1.75rem; font-weight: 650; }
h2 { font-size: 1.08rem; font-weight: 640; }
h3 { font-size: 0.98rem; font-weight: 620; }
p { margin: 0 0 0.75rem; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 0.85rem; }
.measure { max-width: 70ch; }
.prewrap { white-space: pre-wrap; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; width: 1.15em; height: 1.15em; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0.05em 0.4em; margin: 0 0.1em;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px;
  background: var(--surface); color: var(--ink-2);
  font: 600 0.72rem/1.5 var(--font); text-align: center; vertical-align: 0.1em;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 0.5rem 0.8rem; border-radius: var(--radius-s); }
.skip:focus { left: 8px; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid var(--bg); }

/* ===== Gabarit ===== */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.1rem 0.85rem; border-right: 1px solid var(--line); background: var(--surface);
}
.brand { display: flex; align-items: center; gap: 0.65rem; padding: 0.25rem 0.5rem; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font: 700 1.15rem/1 Georgia, "Times New Roman", serif;
}
.brand-text { display: flex; flex-direction: column; font-weight: 680; letter-spacing: -0.01em; line-height: 1.15; }
.brand-text small { color: var(--ink-3); font-weight: 500; font-size: 0.75rem; letter-spacing: 0; }
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu a {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.65rem; border-radius: var(--radius-s);
  color: var(--ink-2); text-decoration: none; font-weight: 520;
}
.menu a:hover { background: var(--surface-2); color: var(--ink); }
.menu a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 620; }
.sidebar-foot { margin-top: auto; display: grid; gap: 0.35rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.who { display: flex; flex-direction: column; padding: 0.35rem 0.65rem; }
.who-name { font-weight: 600; font-size: 0.9rem; }
.who-role { color: var(--ink-3); font-size: 0.8rem; }
.link-btn {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.45rem 0.65rem;
  border: 0; border-radius: var(--radius-s); background: none; color: var(--ink-2); cursor: pointer; text-align: left; font-size: 0.9rem;
}
.link-btn:hover { background: var(--surface-2); color: var(--ink); }
.link-btn kbd { margin-left: auto; }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 2rem; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.search-trigger {
  display: flex; align-items: center; gap: 0.6rem; width: min(440px, 100%); padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink-3); cursor: text; text-align: left;
}
.search-trigger:hover { border-color: var(--accent-line); }
.search-trigger span { flex: 1; }
main { padding: 1.75rem 2rem 3rem; max-width: 1280px; width: 100%; }
main:focus { outline: none; }

/* ===== En-têtes de page ===== */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head p { margin: 0.35rem 0 0; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: 0.3rem; margin-bottom: 0.9rem; color: var(--ink-3); text-decoration: none; font-size: 0.9rem; }
.back-link:hover { color: var(--accent); }
.back-link .icon { width: 1em; height: 1em; }

/* ===== Boutons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.5rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); color: var(--ink); font-weight: 560; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-primary kbd { background: transparent; border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); color: var(--accent-ink); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-danger { border-color: var(--danger); color: var(--danger); background: var(--surface); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-small { padding: 0.32rem 0.65rem; font-size: 0.87rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.link-small { border: 0; padding: 0; background: none; color: var(--accent); font-size: 0.86rem; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.link-small:hover { text-decoration-color: currentColor; }
.link-small.danger { color: var(--danger); }

.menu-btn { position: relative; }
.menu-btn > summary { list-style: none; }
.menu-btn > summary::-webkit-details-marker { display: none; }
.menu-pop, .filter-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px;
  padding: 0.35rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-pop);
}
.menu-pop a { display: block; padding: 0.5rem 0.7rem; border-radius: 7px; color: var(--ink); text-decoration: none; }
.menu-pop a:hover { background: var(--surface-2); }

/* ===== Pastilles ===== */
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.16rem 0.6rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 580; white-space: nowrap; line-height: 1.5;
}
.pill-labellise { background: var(--ok-soft); color: var(--ok); }
.pill-bientot, .pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-warn-strong { background: var(--warn-strong-soft); color: var(--warn-strong); }
.pill-non, .pill-neutral { background: var(--neutral-soft); color: var(--ink-2); }
.pill-accent { background: var(--accent-soft); color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }

/* ===== Messages ===== */
.flash {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; padding: 0.7rem 0.9rem;
  border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 540;
  animation: flash-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.flash-error { background: var(--danger-soft); color: var(--danger); }
@keyframes flash-in { from { opacity: 0.4; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.form-error { display: flex; gap: 0.5rem; align-items: center; padding: 0.65rem 0.85rem; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-weight: 540; }
.field-error { color: var(--danger); font-weight: 540; }
.empty { color: var(--ink-3); margin: 0.25rem 0 0.5rem; }
.empty-block { padding: 2.5rem 1.5rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty-page { max-width: 520px; margin: 4rem auto; text-align: center; display: grid; gap: 0.75rem; }
.warn-box { margin-top: 0.75rem; padding: 0.6rem 0.85rem; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
.warn-box summary { cursor: pointer; font-weight: 580; }
.warn-box ul { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--ink-2); font-size: 0.88rem; }

/* ===== Panneaux ===== */
.panel, .block, .form-card, .case-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.panel { padding: 1.25rem 1.35rem; }
.panel, .block, .table-wrap { position: relative; }  /* garde les libellés .sr-only dans le cadre qui défile */
.panel-head, .block-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.panel-note { margin-top: 1rem; }
.count { min-width: 1.8rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 0.85rem; text-align: center; font-variant-numeric: tabular-nums; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.todo-group { margin: 1.1rem 0 0.4rem; color: var(--ink-2); font-size: 0.85rem; font-weight: 600; }
.todo-group:first-of-type { margin-top: 0.25rem; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li + li { border-top: 1px solid var(--line); }
.todo-list a { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.25rem; color: var(--ink); text-decoration: none; border-radius: 6px; }
.todo-list a:hover { background: var(--surface-2); }
.todo-name { font-weight: 580; margin-right: auto; }
.chev { color: var(--ink-3); width: 1em; height: 1em; }

/* ===== Liste des étudiants ===== */
.views { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.views a {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.8rem; margin-bottom: -1px;
  border-bottom: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-weight: 540;
}
.views a:hover { color: var(--ink); }
.views a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 620; }
.views-count { padding: 0 0.45rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.views a[aria-current="page"] .views-count { background: var(--accent-soft); color: var(--accent); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; margin-bottom: 1rem; }
.toolbar-search { display: flex; align-items: center; gap: 0.45rem; padding: 0 0.7rem; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink-3); min-width: 260px; }
.toolbar-search input[type="search"] { border: 0; background: none; padding: 0.45rem 0; width: 100%; outline: none; box-shadow: none; color: var(--ink); }
.toolbar-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border: 1px solid var(--accent-line);
  border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.85rem; font-weight: 560; text-decoration: none; cursor: pointer;
}
.chip .icon { width: 0.95em; height: 0.95em; }
.chip:hover { text-decoration: none; border-color: var(--accent); }
.chip-key { color: var(--ink-2); font-weight: 500; }
.chip-add { background: var(--surface); border-style: dashed; border-color: var(--line-strong); color: var(--ink-2); list-style: none; }
.chip-add::-webkit-details-marker { display: none; }
.filter-menu { position: relative; }
.filter-pop { left: 0; right: auto; width: 300px; padding: 0.9rem; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.seg a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.32rem 0.7rem; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-size: 0.88rem; font-weight: 540; }
.seg a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }

.student-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.student-list li + li { border-top: 1px solid var(--line); }
.student-row {
  display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(190px, 1.1fr) minmax(170px, 1.2fr) minmax(140px, 0.8fr) auto;
  align-items: center; gap: 1rem; padding: 0.85rem 1.1rem; color: var(--ink); text-decoration: none;
}
.student-row:hover, .student-row.is-selected { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.student-row.is-selected { box-shadow: inset 3px 0 0 var(--accent); }
.sr-name { display: flex; flex-direction: column; min-width: 0; }
.sr-name strong { font-weight: 620; }
.sr-project { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; font-size: 0.92rem; }
.sr-project > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-mini { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink-3); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.stage-mini-bar { position: relative; width: 56px; height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.stage-mini-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) / 8 * 100%); background: var(--accent); border-radius: 5px; }
.list-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.85rem 0.25rem; color: var(--ink-2); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

/* Tableaux */
.table-wrap { overflow: auto; max-height: calc(100vh - 260px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: 0.82rem; white-space: nowrap; }
.data-table thead th .icon { width: 0.9em; height: 0.9em; margin-right: 0.3rem; vertical-align: -0.1em; color: var(--ink-3); }
.data-table tbody th { font-weight: 600; }
.data-table tbody th a { color: var(--ink); text-decoration: none; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover td, .data-table tbody tr:hover th, .data-table tbody tr.is-selected td, .data-table tbody tr.is-selected th { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.sticky-col { position: sticky; left: 0; z-index: 1; background: var(--surface); }
thead .sticky-col { z-index: 3; background: var(--surface-2); }
.computed { color: var(--ink-2); background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); cursor: help; }
thead .computed { cursor: help; }

.mini-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 0.75rem; }
.mini-table th, .mini-table td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.mini-table thead th { color: var(--ink-3); font-weight: 580; font-size: 0.8rem; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .num, .data-table .num { text-align: right; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions form { display: inline-flex; gap: 0.75rem; align-items: center; margin-left: 0.6rem; }
.is-off td { color: var(--ink-3); }

/* ===== Fiche ===== */
.fiche-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.fiche-head p { margin: 0.35rem 0 0; }
.fiche-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.fiche-grid-2 { grid-template-columns: minmax(0, 1fr) 320px; }
.fiche-toc { position: sticky; top: 76px; display: grid; gap: 2px; font-size: 0.9rem; }
.fiche-toc a { padding: 0.35rem 0.6rem; border-radius: 7px; color: var(--ink-2); text-decoration: none; }
.fiche-toc a:hover { background: var(--surface-2); color: var(--ink); }
.fiche-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.fiche-main > .block { min-width: 0; overflow-x: auto; }
.block { padding: 1.15rem 1.3rem; scroll-margin-top: 80px; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 0.45rem 1rem; margin: 0; }
.kv dt { color: var(--ink-3); font-size: 0.88rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd[title] { text-decoration: underline dotted var(--line-strong); text-underline-offset: 4px; }
.kv-compact { grid-template-columns: 110px minmax(0, 1fr); margin-top: 0.85rem; font-size: 0.92rem; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li + li { border-top: 1px solid var(--line); }
.check-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0; flex-wrap: wrap; }
.check-box { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 6px; color: var(--accent-ink); }
.check-box.is-done { background: var(--ok); border-color: var(--ok); }
.check-box .icon { width: 15px; height: 15px; stroke-width: 2.5; }
.check-label { font-weight: 560; margin-right: auto; }

.project-card { padding: 1rem 0 0.25rem; }
.project-card + .project-card { border-top: 1px solid var(--line); margin-top: 0.75rem; }
.project-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.35rem; }
.project-card h3 a { color: var(--ink); text-decoration: none; }
.project-card h3 a:hover { color: var(--accent); }

.stages { list-style: none; margin: 0.75rem 0 0.5rem; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; counter-reset: none; }
.stages li { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.stages li::before { content: ""; height: 6px; border-radius: 6px; background: var(--surface-2); }
.stages li.is-past::before { background: var(--accent-line); }
.stages li.is-current::before { background: var(--accent); }
.stage-num { font-size: 0.75rem; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.stage-label { font-size: 0.74rem; color: var(--ink-3); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.stages li.is-current .stage-num, .stages li.is-current .stage-label { color: var(--accent); font-weight: 650; }

.add-form { margin-top: 0.5rem; }
.add-form > summary { list-style: none; }
.add-form > summary::-webkit-details-marker { display: none; }
.add-form[open] > summary { margin-bottom: 0.85rem; background: var(--surface-2); }
.add-form form { padding: 1rem; border-radius: 10px; background: var(--surface-2); }

.fiche-side { position: sticky; top: 76px; display: grid; gap: 0.9rem; max-height: calc(100vh - 96px); overflow: auto; padding-right: 2px; }
.counter-card { display: grid; gap: 0.1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: help; }
.counter-label { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink-3); font-size: 0.82rem; font-weight: 560; }
.counter-label .icon { width: 0.9em; height: 0.9em; }
.counter-value { font-size: 1.9rem; font-weight: 680; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 1rem; display: grid; gap: 0.9rem; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0.4rem; bottom: 0.4rem; width: 2px; border-radius: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; gap: 0.05rem; font-size: 0.9rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1rem - 4px); top: 0.4rem; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent-line); }
.tl-date { color: var(--ink-3); font-size: 0.78rem; font-variant-numeric: tabular-nums; }

/* ===== Formulaires ===== */
.stack { display: grid; gap: 0.9rem; }
.stack-lg { display: grid; gap: 1rem; }
.form-card { padding: 1.35rem 1.5rem; margin-bottom: 1rem; }
.form-card h2 { margin-bottom: 0.6rem; }
fieldset { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 0.75rem; font-weight: 640; font-size: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem 1.1rem; }
.field { display: grid; gap: 0.3rem; align-content: start; }
.field > span { font-size: 0.86rem; font-weight: 580; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 0.8rem; }
.field-wide { grid-column: 1 / -1; }
.field-inline { display: flex; align-items: center; gap: 0.5rem; }
.field-inline > span { white-space: nowrap; }
.filter-pop .field-inline { justify-content: space-between; }
.filter-pop .field-inline select { width: 170px; }
input:not([type="checkbox"], [type="radio"], [type="file"]), select, textarea {
  width: 100%; padding: 0.5rem 0.65rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { resize: vertical; min-height: 4.5rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
input[aria-invalid="true"] { border-color: var(--danger); }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:disabled, select:disabled { background: var(--surface-2); color: var(--ink-3); }
.input-small { width: auto !important; padding: 0.3rem 0.5rem !important; font-size: 0.87rem; }
.check, .radio { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.check input, .radio input { width: 17px; height: 17px; margin: 0; }
.check-danger { color: var(--danger); font-weight: 560; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1.1rem; }
.form-grid .form-actions { grid-column: 1 / -1; margin-top: 0; }
.inline-form { display: inline-flex; gap: 0.5rem; align-items: center; margin: 0; }
.inline-details { display: inline-block; }
.inline-details[open] summary { margin-bottom: 0.4rem; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line)); border-radius: var(--radius); }

/* ===== Connexion ===== */
.is-bare { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.bare-main { width: 100%; max-width: 420px; padding: 0; }
.auth-card { padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: grid; gap: 0.5rem; }
.auth-card form { margin-top: 0.75rem; }
.auth-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; font-weight: 680; }
.auth-foot { margin-top: 0.75rem; font-size: 0.9rem; }
.auth-foot a { display: inline-flex; align-items: center; gap: 0.3rem; }

/* ===== Analyse ===== */
.analyse-panel { max-width: 720px; }
.analyse-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.analyse-table th, .analyse-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.analyse-table thead th { color: var(--ink-3); font-weight: 580; font-size: 0.85rem; }
.analyse-table thead th.num { text-align: right; }
.analyse-table tbody th { font-weight: 560; }
.analyse-table td { font-size: 1.15rem; font-weight: 620; }
.analyse-table .is-total th, .analyse-table .is-total td { border-top: 2px solid var(--line-strong); border-bottom: 0; font-weight: 700; }
.cell-link { color: var(--ink); text-decoration: none; padding: 0.15rem 0.4rem; border-radius: 6px; }
.cell-link:hover { background: var(--accent-soft); color: var(--accent); }

/* ===== Réglages ===== */
.ref-list { list-style: none; margin: 0; padding: 0; }
.ref-list li + li { border-top: 1px solid var(--line); }
.ref-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; flex-wrap: wrap; }
.ref-row .ref-label { flex: 1 1 260px; width: auto; }
.ref-row select { width: auto; }
.ref-order { width: 76px !important; }
.ref-code { display: grid; place-items: center; min-width: 2.2rem; height: 2.2rem; border-radius: 8px; background: var(--surface-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.ref-add { margin-top: 0.75rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); }

/* ===== Import ===== */
.wizard { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1.5rem; padding: 0; }
.wizard li { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-3); font-weight: 540; font-size: 0.92rem; }
.wz-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: 0.8rem; font-weight: 650; }
.wz-num .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.wizard .is-current { color: var(--ink); }
.wizard .is-current .wz-num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wizard .is-past .wz-num { background: var(--ok-soft); border-color: var(--ok-soft); color: var(--ok); }
.dropzone {
  position: relative; display: grid; justify-items: center; gap: 0.4rem; padding: 2.5rem 1rem; margin-bottom: 1rem;
  border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); text-align: center; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dropzone .icon { width: 34px; height: 34px; color: var(--accent); }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-name { font-weight: 600; color: var(--accent); }
.mapping-table select { max-width: 340px; }
.mapping-table .is-unmapped th { color: var(--ink-3); font-weight: 500; }
.preview-cell { max-width: 320px; }
.case-card { padding: 1rem 1.25rem; }
.case-card legend { display: flex; align-items: baseline; gap: 0.6rem; float: left; width: 100%; margin-bottom: 0.5rem; font-size: 0.98rem; }
.case-card legend + * { clear: both; }
.case-num { color: var(--ink-3); font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.case-detail { margin-bottom: 0.6rem; }
.case-options { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.case-options select { max-width: 420px; }
.result-list { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: 0.3rem; }

/* ===== Fenêtres ===== */
dialog { border: 0; padding: 0; color: var(--ink); background: transparent; }
dialog::backdrop { background: rgb(20 24 33 / 38%); backdrop-filter: blur(2px); }
.palette { width: min(600px, calc(100vw - 2rem)); margin-top: 12vh; }
.palette-box, .shortcuts { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop); }
.palette[open] .palette-box, .shortcuts[open] { animation: pop-in 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.985); } to { opacity: 1; transform: none; } }
.palette-input { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.palette-input input { border: 0 !important; box-shadow: none !important; padding: 0 !important; font-size: 1.05rem; background: none !important; color: var(--ink); }
.palette-results { list-style: none; margin: 0; padding: 0.4rem; max-height: 50vh; overflow: auto; }
.palette-results:empty { display: none; }
.palette-results a { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.7rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.palette-results a.is-selected, .palette-results a:hover { background: var(--accent-soft); }
.palette-results .pr-type { min-width: 4.5rem; color: var(--ink-3); font-size: 0.78rem; font-weight: 600; }
.palette-results .pr-meta { margin-left: auto; color: var(--ink-3); font-size: 0.82rem; }
.palette-empty { padding: 0.9rem 1rem; color: var(--ink-3); }
.palette-hint { margin: 0; padding: 0.55rem 1rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.8rem; }
.shortcuts { width: min(480px, calc(100vw - 2rem)); padding: 1.25rem 1.4rem; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.shortcut-table { width: 100%; border-collapse: collapse; margin-bottom: 0.75rem; }
.shortcut-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.shortcut-table td:first-child { width: 42%; white-space: nowrap; }

/* ===== Phase 2 ===== */
.topbar { justify-content: space-between; }
.topbar-rdv { flex: none; }
.search-trigger { flex: 0 1 440px; min-width: 0; }
.clip { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-pop { right: 0; width: 300px; padding: 1rem; }
.add-session .form-pop, .page-head .menu-btn .form-pop { right: 0; }

/* Panneau « Noter un RDV » */
.drawer { inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: 100dvh; width: min(460px, 100vw); max-width: none; }
.drawer-checks .field-inline { flex-wrap: wrap; }
.drawer-box { display: flex; flex-direction: column; height: 100%; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.drawer[open] .drawer-box { animation: drawer-in 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.drawer .dialog-head { padding: 1.1rem 1.25rem 0.5rem; margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 0.5rem 1.25rem 1rem; }
.drawer-checks { margin: 0; padding: 0.85rem 1rem; border-radius: 10px; background: var(--surface-2); display: grid; gap: 0.6rem; }
.drawer-checks legend { float: left; width: 100%; margin-bottom: 0.25rem; font-size: 0.9rem; }
.drawer-checks .field-inline select { width: auto; flex: 1; }
.drawer-foot { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }

/* RDV sur la fiche */
.meeting-list { list-style: none; margin: 0; padding: 0; }
.meeting-list li { padding: 0.75rem 0; }
.meeting-list li + li { border-top: 1px solid var(--line); }
.meeting-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.35rem; }
.meeting-edit { margin-left: auto; }
.meeting-next { color: var(--ink-2); font-size: 0.92rem; }
.next-event { font-size: 1.05rem; margin-bottom: 0.25rem; }

/* Grille de présences */
.grid-wrap { max-height: calc(100vh - 300px); }
.presence-grid th.grid-date { text-align: center; padding-inline: 0.4rem; }
.presence-grid th.grid-date a { color: var(--accent); text-decoration: none; font-variant-numeric: tabular-nums; }
.presence-grid .grid-cell { text-align: center; padding: 0.35rem; }
.presence-grid .grid-cell input { width: 20px; height: 20px; cursor: pointer; }
.presence-grid tbody tr { cursor: default; }
.presence-grid tfoot th, .presence-grid tfoot td { position: sticky; bottom: 0; background: var(--surface-2); font-weight: 650; border-top: 1px solid var(--line-strong); }
.presence-grid tfoot .sticky-col { z-index: 3; }

/* Émargement en liste */
.checkin-list { list-style: none; margin: 0 0 1.25rem; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.checkin-list li + li { border-top: 1px solid var(--line); }
.checkin-row { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 1rem; }
.checkin-name { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.toggle {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 580; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.toggle .icon { opacity: 0.35; }
.toggle:hover { border-color: var(--ok); color: var(--ok); }
.toggle.is-on { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.toggle.is-on .icon { opacity: 1; }
.event-edit { margin-top: 1rem; }

/* Écran QR */
.qr-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr); gap: 2.5rem; align-items: center; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.qr-stage:fullscreen { padding: 4vh 5vw; border: 0; border-radius: 0; }
.qr-code { justify-self: center; width: min(100%, 520px); aspect-ratio: 1; padding: 1rem; background: #fff; border-radius: 14px; }
.qr-code svg { width: 100%; height: 100%; display: block; }
.qr-code .light { fill: #fff; }
.qr-code .dark { fill: #111; }
.qr-side h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.qr-url { font-size: 0.85rem; color: var(--ink-3); overflow-wrap: anywhere; }
.qr-count { margin: 1.25rem 0 0.75rem; font-size: 1.1rem; }
.qr-count [data-counter] { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--accent); }
.qr-recent { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.3rem; min-height: 2rem; }
.checkin-card { max-width: 420px; }
.checkin-done { display: grid; justify-items: center; gap: 0.5rem; text-align: center; padding: 1rem 0; }
.checkin-tick { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.checkin-tick .icon { width: 32px; height: 32px; stroke-width: 2.5; }

/* Kanban du comité */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 0.75rem; overflow-x: auto; padding-bottom: 0.75rem; margin-bottom: 0.5rem; }
.kanban-col { display: flex; flex-direction: column; min-height: 320px; padding: 0.6rem; border-radius: var(--radius); background: var(--surface-2); transition: background-color 0.15s ease, box-shadow 0.15s ease; }
.kanban-col.is-final { background: color-mix(in srgb, var(--surface-2) 70%, var(--accent-soft)); }
.kanban-col.is-x { background: color-mix(in srgb, var(--surface-2) 55%, var(--ok-soft)); }
.kanban-col.is-over { box-shadow: inset 0 0 0 2px var(--accent); }
.kanban-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.25rem 0.35rem 0.6rem; }
.kanban-head h2 { display: flex; align-items: baseline; gap: 0.45rem; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.kanban-code { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.3rem; border-radius: 6px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 0.8rem; }
.kanban-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; align-content: start; flex: 1; }
.kcard { display: grid; gap: 0.2rem; padding: 0.7rem 0.8rem; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); cursor: grab; }
.kcard.is-dragging { opacity: 0.45; }
.kcard-name { color: var(--ink); font-weight: 620; text-decoration: none; }
.kcard-name:hover { color: var(--accent); }
.kcard-comment { margin: 0.25rem 0 0; color: var(--ink-2); }
.kcard-more summary { margin-top: 0.25rem; list-style: none; }
.kcard-more summary::-webkit-details-marker { display: none; }
.kcard-form { margin-top: 0.6rem; gap: 0.4rem; }
.kcard-history { margin: 0.6rem 0 0; padding-left: 1rem; color: var(--ink-2); display: grid; gap: 0.15rem; }
.confirm-x { width: min(440px, calc(100vw - 2rem)); padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop); }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .fiche-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .fiche-toc { display: none; }
  .student-row { grid-template-columns: minmax(200px, 1.4fr) minmax(180px, 1fr) minmax(160px, 1fr) auto; }
  .sr-contact { display: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { order: 3; flex: 1 0 100%; min-width: 0; overflow-x: auto; }
  .menu { display: flex; gap: 0.25rem; }
  .menu a { white-space: nowrap; padding: 0.45rem 0.6rem; }
  .sidebar-foot { margin: 0 0 0 auto; flex-direction: row; display: flex; border: 0; padding: 0; }
  .who, .sidebar-foot .link-btn span, .sidebar-foot .link-btn kbd { display: none; }
  .topbar { position: static; padding: 0.6rem 1rem; }
  main { padding: 1.25rem 1rem 2.5rem; }
  .today-grid, .fiche-grid, .fiche-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .block { overflow-x: auto; padding: 1rem; min-width: 0; }
  .fiche-main { grid-template-columns: minmax(0, 1fr); }
  .mini-table { min-width: 460px; }
  .check-row .muted, .check-row input[type="date"] { margin-left: 2.1rem; }
  .fiche-side { position: static; max-height: none; }
  .student-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.75rem; }
  .sr-snee { grid-column: 1; }
  .sr-project { grid-column: 1; }
  .student-row .chev { grid-row: 1 / span 3; grid-column: 2; }
  .kv { grid-template-columns: 1fr; gap: 0.1rem; }
  .kv dd { margin-bottom: 0.5rem; }
  .search-trigger kbd { display: none; }
  /* Cibles tactiles : au moins 44 px de haut au doigt. */
  .link-small, .back-link, .inline-details > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.35rem; }
  .row-actions form { gap: 0.25rem; }
  .btn, .btn-small, .seg a, .chip { min-height: 40px; }
  .table-wrap { max-height: none; }
  .topbar { gap: 0.6rem; }
  .topbar-rdv kbd { display: none; }
  .search-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .qr-stage { grid-template-columns: minmax(0, 1fr); padding: 1rem; gap: 1.25rem; }
  .checkin-row { flex-wrap: wrap; }
  .kanban { grid-auto-columns: minmax(220px, 82vw); }
  .row-actions { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
