/* =====================================================================
   FreshWatch — styles.css  (redesign « Verdure », Direction A)
   ---------------------------------------------------------------------
   • Thème piloté par variables CSS, attribut data-theme="light|dark" sur <html>.
     Par défaut on suit le système (prefers-color-scheme) ; le choix manuel
     (data-theme posé par theme.js) est prioritaire.
   • Aucune couleur en dur dans les composants : tout passe par les tokens.
     Les teintes translucides sont dérivées via color-mix().
   • Contraste WCAG AA garanti dans les deux thèmes (texte ≥ 4.5:1,
     UI/bordures ≥ 3:1, gros chiffres ≥ 3:1 car « large text »).
   ===================================================================== */

/* ============ TOKENS COMMUNS (rayons, ombres, espacements) ============ */
:root {
  --radius: 18px;          /* cartes principales (résumé, file, charts, tables) */
  --radius-sm: 14px;       /* cartes borne, kpi, fb-item */
  --radius-ctrl: 12px;     /* boutons icône, inputs, modale interne */
  --radius-pill: 999px;    /* pilules, onglets, chips */
  --tap: 44px;             /* cible tactile minimale (loi de Fitts) */
  --ring-w: 2px;           /* épaisseur de l'anneau de focus */
  --ease: .16s ease;       /* transition standard */
  --brand-grad: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* ============ THÈME SOMBRE — palette par défaut ============ */
/* s'applique si data-theme="dark" OU si aucun data-theme n'est posé */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:            #101715;
  --card:          #18211e;
  --card-2:        #1f2a26;
  --text:          #ecefe9;
  --muted:         #9fada4;
  --faint:         #8b968d;

  --border:        #2a3631;
  --border-soft:   #232e2a;
  --border-strong: #36433a;

  --brand:         #2bbfa9;
  --brand-2:       #0e9385;
  --on-brand:      #052420;

  --green:         #2ec27a;
  --green-text:    #4fd98f;
  --orange:        #f0a93a;
  --orange-text:   #f6bd60;
  --red:           #ef5a54;
  --red-text:      #ff7d77;

  --neutral:       #6b7a72;
  --scrim:         rgba(2, 6, 10, .68);

  --card-shadow:  0 1px 2px rgba(0,0,0,.40), 0 10px 24px rgba(0,0,0,.30);
  --pop-shadow:   0 20px 50px rgba(0,0,0,.55);
  --brand-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 45%, transparent);
}

/* ============ THÈME CLAIR — si le système est clair (et pas de choix manuel) ============ */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;

    --bg:            #f5f3ed;
    --card:          #ffffff;
    --card-2:        #efece4;
    --text:          #1e2a25;
    --muted:         #515d57;
    --faint:         #636f69;

    --border:        #e4dfd3;
    --border-soft:   #ece8de;
    --border-strong: #d6d0c2;

    --brand:         #096a5e;
    --brand-2:       #064f46;
    --on-brand:      #ffffff;

    --green:         #1f9d57;
    --green-text:    #15703a;
    --orange:        #e0900f;
    --orange-text:   #9a5b08;
    --red:           #d4453f;
    --red-text:      #bd322c;

    --neutral:       #8a948c;
    --scrim:         rgba(20, 28, 24, .42);

    --card-shadow:  0 1px 2px rgba(40,50,40,.05), 0 8px 20px rgba(40,50,40,.06);
    --pop-shadow:   0 20px 50px rgba(30,40,35,.22);
    --brand-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 26%, transparent);
  }
}

/* ============ THÈME CLAIR — forcé par l'utilisateur (prioritaire) ============ */
:root[data-theme="light"] {
  color-scheme: light;

  --bg:            #f5f3ed;
  --card:          #ffffff;
  --card-2:        #efece4;
  --text:          #1e2a25;
  --muted:         #515d57;
  --faint:         #636f69;

  --border:        #e4dfd3;
  --border-soft:   #ece8de;
  --border-strong: #d6d0c2;

  --brand:         #096a5e;
  --brand-2:       #064f46;
  --on-brand:      #ffffff;

  --green:         #1f9d57;
  --green-text:    #15703a;
  --orange:        #e0900f;
  --orange-text:   #9a5b08;
  --red:           #d4453f;
  --red-text:      #bd322c;

  --neutral:       #8a948c;
  --scrim:         rgba(20, 28, 24, .42);

  --card-shadow:  0 1px 2px rgba(40,50,40,.05), 0 8px 20px rgba(40,50,40,.06);
  --pop-shadow:   0 20px 50px rgba(30,40,35,.22);
  --brand-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 26%, transparent);
}

/* ===================================================================== */
/* BASE                                                                   */
/* ===================================================================== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
body {
  max-width: 720px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 16px 32px;
  min-height: 100vh;
}

/* chiffres alignés partout où ils comptent */
.big-num, .kpi-val, .tab-badge, .pill-count, .queue-count,
table td, table th, .bar-val { font-variant-numeric: tabular-nums; }

/* ===================================================================== */
/* EN-TÊTE                                                                */
/* ===================================================================== */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 2px 14px;
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(180deg, var(--bg) 72%, transparent);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo {
  font-size: 24px;
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  border-radius: var(--radius-ctrl);
  background: var(--brand-grad);
  box-shadow: var(--brand-shadow);
  flex: 0 0 auto;
}
.topbar h1 { font-size: 18px; margin: 0; letter-spacing: -.01em; }
.sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn {
  min-width: var(--tap); min-height: var(--tap);
  display: grid; place-items: center;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-ctrl);
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.icon-btn:hover { border-color: var(--brand); }
.icon-btn:active { transform: scale(.96); }

.alert-btn {
  border: 1px solid var(--border-strong);
  background: var(--card); color: var(--text);
  padding: 9px 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: border-color var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease);
}
.alert-btn:hover { border-color: var(--brand); }
.alert-btn[aria-pressed="true"] {
  background: var(--brand-grad); border-color: transparent; color: var(--on-brand);
  box-shadow: var(--brand-shadow);
}
.alert-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* logo cliquable → accueil (pages secondaires) */
.brand-link { text-decoration: none; color: inherit; border-radius: var(--radius-ctrl); }
.brand-link .logo { transition: transform var(--ease), filter var(--ease); }
.brand-link:hover .logo { filter: brightness(1.06); transform: translateY(-1px); }

/* ===================================================================== */
/* ONGLETS DE SITES                                                       */
/* ===================================================================== */
.tabs { display: flex; gap: 8px; margin: 4px 0 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border-strong); color: var(--muted);
  padding: 9px 14px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700; cursor: pointer;
  min-height: var(--tap);
  transition: border-color var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease);
}
.tab:hover { border-color: var(--brand); }
.tab.active {
  background: var(--brand-grad); border-color: transparent; color: var(--on-brand);
  box-shadow: var(--brand-shadow);
}
.tab-badge {
  min-width: 22px; text-align: center; padding: 1px 7px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 800; color: inherit;
  background: color-mix(in srgb, #000 18%, transparent);
}
.tab:not(.active) .tab-badge {
  background: color-mix(in srgb, var(--green) 16%, var(--card));
  color: var(--green-text);
}

/* ===================================================================== */
/* BANDEAU RÉSUMÉ (4 compteurs)                                           */
/* ===================================================================== */
.summary {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 22px; margin-top: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: var(--card-shadow);
}
.big { display: flex; flex-direction: column; line-height: 1; }
.big-num { font-size: 56px; font-weight: 800; color: var(--green-text); letter-spacing: -.02em; }
.big-num.zero { color: var(--muted); }
.big-label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.mini { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.mini b { color: var(--text); }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.dot.busy  { background: var(--orange); }
.dot.down  { background: var(--red); }
.dot.total { background: var(--neutral); }

/* ===================================================================== */
/* FILE D'ATTENTE                                                         */
/* ===================================================================== */
.queue {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 16px; margin-top: 12px; box-shadow: var(--card-shadow);
}
.queue-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.queue-title { font-weight: 800; font-size: 15px; }
.queue-count { color: var(--muted); font-size: 13px; }
.queue-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; min-height: 4px; }
.qchip {
  background: var(--card-2); border: 1px solid var(--border); color: var(--muted);
  padding: 6px 11px; border-radius: var(--radius-pill); font-size: 13px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qchip.me { background: var(--brand-grad); border-color: transparent; color: var(--on-brand); font-weight: 800; box-shadow: var(--brand-shadow); }
.queue-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===================================================================== */
/* BARRE D'OUTILS + CHIPS                                                 */
/* ===================================================================== */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 2px 6px; flex-wrap: wrap; }
.toggle { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; min-height: var(--tap); }
.toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.chips { margin: 0 2px 12px; }
.chip { display: inline-block; background: var(--card); border: 1px solid var(--border); color: var(--muted); padding: 5px 11px; border-radius: var(--radius-pill); font-size: 12px; }

.status-line { color: var(--muted); font-size: 13px; margin: 16px 2px 8px; }
.status-line.err { color: var(--red-text); }

/* horodatage cliquable + état périmé */
#updated { cursor: pointer; }
#updated.stale { color: var(--orange-text); }
.grid.stale { opacity: .5; transition: opacity .2s ease; }

/* ===================================================================== */
/* GRILLE DE BORNES                                                       */
/* ===================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }

.borne {
  background: var(--card-2); border: 1px solid var(--border);
  border-left: 5px solid var(--neutral);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 5px;
  transition: transform .12s ease, box-shadow .12s ease, border-color var(--ease);
}
.borne:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }
.borne .ref  { font-weight: 800; font-size: 15px; letter-spacing: .03em; }
.borne .meta { font-size: 12px; color: var(--muted); }
.borne .est  { font-size: 12px; color: var(--brand); }
.borne .state{ font-size: 12px; font-weight: 700; }

/* 4 états — distingués par LIBELLÉ (texte) ET couleur (daltonisme) */
.borne.available { border-left-color: var(--green); }
.borne.available .state { color: var(--green-text); }
.borne.busy { border-left-color: var(--orange); }
.borne.busy .state { color: var(--orange-text); }
.borne.down { border-left-color: var(--red); opacity: .66; }
.borne.down .state { color: var(--red-text); }

/* dépassement de durée (« à libérer ») + charge terminée : fond alerte */
.borne.over {
  border-left-color: var(--red); opacity: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--red) 14%, transparent), var(--card-2));
}
.borne.over .state { color: var(--red-text); }
.borne.finished {
  border-left-color: var(--red); opacity: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--red) 18%, transparent), var(--card-2));
}
.borne.finished .state { color: var(--red-text); }

/* flash lors d'une libération (optionnel : classe .flash ajoutée par le JS) */
.borne.flash { animation: flash 1.2s ease; }
@keyframes flash {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); }
  30%  { transform: scale(1.04); box-shadow: 0 0 0 8px color-mix(in srgb, var(--green) 0%, transparent); }
  100% { transform: scale(1); }
}

/* skeletons de chargement (loi de Doherty) */
.skeleton {
  background: linear-gradient(90deg, var(--card-2) 25%, color-mix(in srgb, var(--text) 8%, var(--card-2)) 37%, var(--card-2) 63%);
  background-size: 400% 100%;
  animation: sk 1.4s ease infinite;
  min-height: 80px; border-color: var(--border);
}
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* état vide actionnable */
.empty-state {
  grid-column: 1 / -1; background: var(--card);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  padding: 18px; text-align: center;
}
.empty-state p { margin: 0 0 12px; color: var(--text); font-size: 14px; }
.empty-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===================================================================== */
/* BOUTONS PILULES                                                        */
/* ===================================================================== */
.pill-btn {
  background: var(--card); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: var(--radius-pill); padding: 9px 16px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: border-color var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.pill-btn:hover { border-color: var(--brand); }
.pill-btn:active { transform: scale(.97); }
.pill-btn.on { background: var(--brand-grad); border-color: transparent; color: var(--on-brand); box-shadow: var(--brand-shadow); }
.pill-count { font-weight: 800; opacity: .85; margin-left: 5px; }
.pill-btn.danger {
  background: color-mix(in srgb, var(--red) 12%, var(--card));
  border-color: color-mix(in srgb, var(--red) 45%, var(--border-strong));
  color: var(--red-text); margin-top: 8px;
}
.pill-btn.danger:hover { border-color: var(--red); }

/* lien-bouton inline */
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; padding: 0; }

/* ===================================================================== */
/* PIED DE PAGE / SOCIAL / MENTIONS                                       */
/* ===================================================================== */
.foot { margin-top: 26px; color: var(--faint); font-size: 12px; text-align: center; line-height: 1.6; }
.social { margin: 18px 0 4px; text-align: center; }
.social-q { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.social-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.disclaimer { color: var(--faint); font-size: 12px; line-height: 1.6; max-width: 560px; margin: 16px auto 0; }
.disclaimer b { color: var(--muted); font-weight: 700; }
.support { color: var(--faint); font-size: 12px; line-height: 1.6; margin-top: 10px; font-style: italic; }
.banhmi-link { color: var(--faint); text-decoration: underline; text-underline-offset: 2px; }
.banhmi-link:hover { color: var(--orange-text); }

.nav-link { color: var(--brand); font-size: 13px; text-decoration: none; font-weight: 700; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ===================================================================== */
/* STATS                                                                  */
/* ===================================================================== */
.sec { font-size: 15px; color: var(--text); margin: 26px 2px 12px; }
.chart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 160px; padding: 10px 8px 0;
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow-x: auto; box-shadow: var(--card-shadow);
}
.bar { flex: 1 0 26px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar-fill { width: 70%; background: var(--brand-grad); border-radius: 5px 5px 0 0; }
.bar-val { font-size: 10px; color: var(--muted); }
.bar-lbl { font-size: 10px; color: var(--muted); }
.bar:hover .bar-fill, .bar:focus .bar-fill { filter: brightness(1.12); }

.ongoing { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: color-mix(in srgb, var(--orange) 16%, var(--card-2));
  border: 1px solid color-mix(in srgb, var(--orange) 40%, var(--border));
  color: var(--orange-text);
  padding: 7px 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700;
}

.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reset-btn { background: var(--card-2); border: 1px solid var(--border-strong); color: var(--brand); border-radius: var(--radius-pill); padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; min-height: var(--tap); }
.reset-btn:hover { border-color: var(--brand); }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--card-shadow); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 12px; text-align: left; white-space: nowrap; }
thead th { color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--border); }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--text) 3%, transparent); }
td.ref { font-weight: 800; letter-spacing: .03em; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
tr.clickable:focus-visible { outline: var(--ring-w) solid var(--brand); outline-offset: -2px; }
tr.selected { background: color-mix(in srgb, var(--brand) 16%, transparent) !important; box-shadow: inset 3px 0 0 var(--brand); }
tr.selected td.ref { color: var(--brand); }

.hint { color: var(--faint); font-size: 12px; margin: 8px 2px 0; }

/* ===================================================================== */
/* ADMIN (KPIs + avis)                                                    */
/* ===================================================================== */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; box-shadow: var(--card-shadow); }
.kpi-val { font-size: 30px; font-weight: 800; color: var(--brand); }
.kpi-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.feedback { display: flex; flex-direction: column; gap: 8px; }
.fb-item { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-ctrl); padding: 10px 12px; }
.fb-item p { margin: 0 0 4px; font-size: 13px; }

/* ===================================================================== */
/* CONFIDENTIALITÉ (.prose)                                               */
/* ===================================================================== */
.prose { line-height: 1.6; }
.prose > p { font-size: 14px; color: var(--text); }
.prose .muted-p { color: var(--muted); font-size: 13px; }
.list { padding-left: 18px; margin: 8px 0 4px; }
.list li { font-size: 13px; color: var(--muted); margin: 8px 0; }
.list li b { color: var(--text); }

/* ===================================================================== */
/* TOOLTIPS (tooltip.js)                                                  */
/* ===================================================================== */
.tip {
  position: fixed; z-index: 100;
  background: var(--card); border: 1px solid var(--border-strong); color: var(--text);
  font-size: 12px; line-height: 1.4; padding: 8px 11px; border-radius: 10px;
  box-shadow: var(--pop-shadow); max-width: 240px; pointer-events: none;
}
.mini span[data-tip], .big[data-tip], .chip[data-tip], th[data-tip],
.borne[data-tip], .bar[data-tip] { cursor: help; }

/* ===================================================================== */
/* MODALE + TOAST (remplacent prompt/alert)                               */
/* ===================================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--scrim); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 20px; width: 100%; max-width: 380px; box-shadow: var(--pop-shadow);
}
.modal-title { margin: 0 0 14px; font-size: 15px; color: var(--text); line-height: 1.4; }
.modal-input {
  width: 100%; box-sizing: border-box;
  background: var(--card-2); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: var(--radius-ctrl); padding: 12px 14px; font-size: 16px; margin-bottom: 16px;
}
.modal-input:focus { outline: var(--ring-w) solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 210;
  transform: translateX(-50%) translateY(12px);
  background: var(--card-2); border: 1px solid var(--border-strong); color: var(--text);
  padding: 12px 18px; border-radius: var(--radius-pill); font-size: 14px;
  box-shadow: var(--pop-shadow);
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
  pointer-events: none; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================================================================== */
/* ONBOARDING (1ʳᵉ visite)                                                */
/* ===================================================================== */
.onb-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: var(--scrim); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.onb {
  background: var(--card); border: 1px solid var(--border-strong); border-radius: 22px;
  padding: 28px 24px; width: 100%; max-width: 400px; text-align: center; box-shadow: var(--pop-shadow);
}
.onb-logo {
  display: inline-grid; place-items: center; width: 60px; height: 60px;
  border-radius: var(--radius); background: var(--brand-grad); font-size: 34px; margin-bottom: 12px;
  box-shadow: var(--brand-shadow);
}
.onb-title { font-size: 20px; margin: 0 0 6px; }
.onb-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; line-height: 1.5; }
.onb-list { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; display: inline-block; }
.onb-list li { font-size: 14px; color: var(--muted); margin: 10px 0; }
.onb-list li b { color: var(--text); }
.onb-list li span { display: inline-block; width: 24px; }
.onb-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===================================================================== */
/* ACCESSIBILITÉ TRANSVERSALE                                             */
/* ===================================================================== */
/* l'attribut hidden gagne toujours (sinon écrasé par display:flex/inline) */
[hidden] { display: none !important; }

/* focus visible homogène (≥3:1 sur le fond dans les 2 thèmes) */
:where(a, button, input, [tabindex]):focus-visible {
  outline: var(--ring-w) solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}
.bar:focus, .borne:focus { outline: var(--ring-w) solid var(--brand); outline-offset: 2px; }

/* cibles tactiles ≥ 44px (loi de Fitts) */
.tab, .alert-btn, .pill-btn, .reset-btn, .icon-btn { min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; }

/* respect de prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
