/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════
   THEMIS · KIT UI · 1/3 JETONS (themis-tokens.css) · charte v2 · 02/12/2026
   Référence : https://apercu.themis-rp.fr/charte-v2/ · spécification : CHARTE.md · source : /root/CALVERN_ressources/charte_themis/kit/
   Ordre de chargement : themis-tokens.css → themis-kit.css → (style du module) → themis-scroll.css.
   RÈGLE : un composant n'utilise QUE ces jetons (aucune couleur, taille, durée en dur). Une valeur manque ? On ajoute un jeton ici.
   Couleurs = phase 1 (tokens.css de la planche, inchangées). Ajouts phase 2 : échelle --th-u, LUMIÈRE (V8), mouvement, profondeur, rôles d'accent, jetons de composants.
   NUI (CEF) : pas de color-mix(), pas de CSS imbriqué, pas de :has(), pas de container queries, JAMAIS de backdrop-filter.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════════════ */

@font-face{font-family:"Figtree";src:url(fonts/Figtree.woff2) format("woff2");font-weight:300 900;font-display:block}
@font-face{font-family:"Geist Mono";src:url(fonts/GeistMono.woff2) format("woff2");font-weight:400 700;font-display:block}
@font-face{font-family:"Inter";src:url(fonts/Inter.woff2) format("woff2");font-weight:300 900;font-display:block}

/* Le bloc est recalculé sur :root ET sur .th-scope / .th-big : un élément qui change --th-u, --th-surfaces ou --th-win-a
   y recalcule toutes les valeurs dérivées (les variables CSS sont résolues là où elles sont déclarées). */
:root,.th-scope,.th-big{
  /* ═════════ ÉCHELLE ═════════
     --u est posé par html/bridge.js sur <html> : max(.6, min(hauteur/1080, largeur/1820, 2)). 1 = 1920 × 1080.
     .th-big (grandes interfaces) prend --ub = --u × --big (relief.css), plancher .68. */
  --th-u:var(--u,1);

  /* ═════════ CHOIX VALIDÉS (V1-V8, une ligne chacun) ═════════ */
  --th-font-ui:"Figtree";          /* V1 police d'interface */
  --th-font-code:"Geist Mono";     /* V2 police mono */
  --th-surfaces:0;                 /* V3 0 = Nuit bleue | 1 = Graphite */
  --th-win-a:.9;                  /* V4 opacité UNIQUE de tout ce qui est posé sur le jeu (fenêtres, menus, modales, notifs) : 90 % — .Grantsy 03/12 */
  --th-col:calc(360px * var(--th-u));     /* V5 largeur de la colonne gauche */
  --th-safe:calc(24px * var(--th-u));     /* V6 marge de sécurité de l'écran */
  --th-r-hint:calc(6px * var(--th-u)); /* V7 forme de l aide [E] et de la légende : coin léger 6 px, ni pilule ni carré (finesse 03/12, mesures Oren) */
  --th-light:1;                    /* V8 LUMIÈRE : 1 = activée (défaut) | 0 = coupée (réduction pour performances : classe .th-no-glow) */

  /* ═════════ NEUTRES (Nuit bleue | Graphite interpolés) · 03/12 : fonds 00-04 nettement plus foncés (demande .Grantsy) ═════════ */
  --th-n-00:rgb(calc(4 + 6 * var(--th-surfaces)) calc(6 + 5 * var(--th-surfaces)) calc(10 + 3 * var(--th-surfaces)));
  --th-n-01:rgb(calc(7 + 9 * var(--th-surfaces)) calc(9 + 9 * var(--th-surfaces)) calc(15 + 5 * var(--th-surfaces)));
  --th-n-02:rgb(calc(11 + 12 * var(--th-surfaces)) calc(14 + 11 * var(--th-surfaces)) calc(21 + 6 * var(--th-surfaces)));
  --th-n-03:rgb(calc(16 + 16 * var(--th-surfaces)) calc(19 + 14 * var(--th-surfaces)) calc(28 + 8 * var(--th-surfaces)));
  --th-n-04:rgb(calc(23 + 19 * var(--th-surfaces)) calc(27 + 17 * var(--th-surfaces)) calc(38 + 9 * var(--th-surfaces)));
  --th-n-05:rgb(calc(59 + 6 * var(--th-surfaces)) calc(67 - 1 * var(--th-surfaces)) calc(81 - 12 * var(--th-surfaces)));
  --th-n-06:rgb(calc(92 + 6 * var(--th-surfaces)) calc(100 - 1 * var(--th-surfaces)) calc(113 - 11 * var(--th-surfaces)));
  --th-n-07:rgb(calc(121 + 5 * var(--th-surfaces)) calc(130 - 1 * var(--th-surfaces)) calc(146 - 11 * var(--th-surfaces))); /* finesse 03/12 : 133 → 121 */
  --th-n-08:rgb(calc(148 + 5 * var(--th-surfaces)) 156 calc(171 - 9 * var(--th-surfaces))); /* finesse 03/12 : 171 → 148 */
  --th-n-09:rgb(calc(208 + 3 * var(--th-surfaces)) 212 calc(220 - 6 * var(--th-surfaces)));
  --th-n-10:rgb(calc(241 + 2 * var(--th-surfaces)) 243 calc(248 - 4 * var(--th-surfaces)));
  --th-acc-50:rgb(calc(21 + 3 * var(--th-surfaces)) 38 calc(71 - 8 * var(--th-surfaces)));
  --th-acc-300:rgb(calc(52 + 1 * var(--th-surfaces)) 101 calc(207 - 2 * var(--th-surfaces)));
  --th-ok-bg:rgb(calc(24 + 3 * var(--th-surfaces)) 47 calc(48 - 8 * var(--th-surfaces)));
  --th-warn-bg:rgb(calc(48 + 3 * var(--th-surfaces)) 44 calc(39 - 8 * var(--th-surfaces)));
  --th-bad-bg:rgb(calc(49 + 4 * var(--th-surfaces)) 34 calc(46 - 8 * var(--th-surfaces)));
  --th-info-bg:rgb(calc(27 + 4 * var(--th-surfaces)) 40 calc(65 - 8 * var(--th-surfaces)));

  /* ═════════ RÔLES DE SURFACE (les composants n'utilisent que ces noms ; une marque les redéfinit) ═════════ */
  --th-bg-window:rgb(calc(7 + 9 * var(--th-surfaces)) calc(9 + 9 * var(--th-surfaces)) calc(15 + 5 * var(--th-surfaces)) / var(--th-win-a)); /* S1 fenêtre, carte de pile */
  --th-bg-sunken:var(--th-n-00);   /* S0 creux : champ, écran, piste */
  --th-bg-panel:var(--th-n-02);    /* S2 panneau, case, puce, bouton secondaire */
  --th-bg-hover:var(--th-n-03);    /* S3 survol */
  --th-bg-press:var(--th-n-04);    /* S4 appui, pastille de numéro, touche */
  --th-bg-solid:rgb(calc(7 + 9 * var(--th-surfaces)) calc(9 + 9 * var(--th-surfaces)) calc(15 + 5 * var(--th-surfaces)) / var(--th-win-a));    /* fenêtre opaque (modale, menu contextuel, infobulle) */
  --th-line-1:rgb(calc(190 + 65 * var(--th-surfaces)) calc(205 + 50 * var(--th-surfaces)) 255 / .04); /* séparateur, case au repos (finesse : 7 → 4 %) */
  --th-line-2:rgb(calc(190 + 65 * var(--th-surfaces)) calc(205 + 50 * var(--th-surfaces)) 255 / .065); /* fenêtre, carte, bouton (finesse : 11 → 6,5 %) */
  --th-line-3:rgb(calc(190 + 65 * var(--th-surfaces)) calc(205 + 50 * var(--th-surfaces)) 255 / .12); /* champ, touche, survol (finesse : 18 → 12 %) */
  --th-tx-1:var(--th-n-10);    /* 16,9:1 */
  --th-tx-row:var(--th-n-09);  /* 12,8:1 — FINESSE : libellé d'une ligne AU REPOS (menus, Alt, catégories) ; le blanc tx-1 = titre, choisi, chiffre */
  --th-tx-2:var(--th-n-08);    /*  7,2:1 */
  --th-tx-3:var(--th-n-07);    /*  4,8:1 — jamais sur un fond accent : y passer en tx-2 */
  --th-tx-off:var(--th-n-06);  /*  3,1:1 désactivé */
  --th-ic-off:var(--th-n-06);  /* icône inactive */
  --th-ic-on:var(--th-n-09);   /* icône active */

  /* ═════════ ACCENT (un seul : le bleu du logo) ═════════ */
  --th-acc-500:#1E6BFF; --th-acc-600:#1A5FE6; --th-acc-700:#164FC2; --th-acc-ink-raw:#7EA6FF;
  --th-acc:var(--th-acc-500);         /* remplissage : bouton principal, interrupteur, progression */
  --th-acc-hover:var(--th-acc-600);
  --th-acc-press:var(--th-acc-700);
  --th-on-acc:#FFFFFF;                /* texte posé sur --th-acc (4,56:1) */
  --th-acc-ink:var(--th-acc-ink-raw); /* texte / icône / chiffre bleus sur fond sombre (7,9:1) */
  --th-acc-soft:var(--th-acc-50);     /* fond teinté : élément choisi */
  --th-acc-line:var(--th-acc-300);    /* contour de l'élément choisi */

  /* ═════════ ÉTATS : fond / trait / encre (info = famille du bleu) ═════════ */
  --th-ok:#34B677;   --th-ok-ink:#6FD49F;
  --th-warn:#E0A23A; --th-warn-ink:#F0C06A;
  --th-bad:#EC5A69;  --th-bad-ink:#FF8F9B;
  --th-info:#4F86F0; --th-info-ink:#7EA6FF;
  --th-staff:#C4C8D0;  /* argent du logo : réservé au staff (menus admin, annonces staff) */

  /* ═════════ TYPOGRAPHIE : 5 tailles + mono (valeurs à 1920 × 1080, × --th-u) ═════════ */
  --th-font:var(--th-font-ui),"Inter","Segoe UI",system-ui,sans-serif;
  --th-mono:var(--th-font-code),ui-monospace,monospace;
  --th-fs-display:calc(24px * var(--th-u)); --th-lh-display:calc(28px * var(--th-u));
  --th-fs-title:calc(14px * var(--th-u));   --th-lh-title:calc(20px * var(--th-u));
  --th-fs-body:calc(12.5px * var(--th-u));  --th-lh-body:calc(17px * var(--th-u));
  --th-fs-small:calc(11px * var(--th-u));   --th-lh-small:calc(15px * var(--th-u));
  --th-fs-cap:calc(10px * var(--th-u));     --th-lh-cap:calc(13px * var(--th-u));
  --th-fs-mono:calc(11px * var(--th-u));    --th-lh-mono:calc(15px * var(--th-u));
  --th-t-display:600 var(--th-fs-display)/var(--th-lh-display) var(--th-font); /* chiffres héros : montant, horloge, code */
  --th-t-title:500 var(--th-fs-title)/var(--th-lh-title) var(--th-font);       /* titre de fenêtre, nom choisi */
  --th-t-body:400 var(--th-fs-body)/var(--th-lh-body) var(--th-font);          /* corps, lignes, boutons */
  --th-t-small:400 var(--th-fs-small)/var(--th-lh-small) var(--th-font);       /* sous-texte, nom d'objet, légende */
  --th-t-cap:500 var(--th-fs-cap)/var(--th-lh-cap) var(--th-font);             /* micro-libellé CAPITALES, jamais plus petit */
  --th-t-mono:400 var(--th-fs-mono)/var(--th-lh-mono) var(--th-mono);          /* commandes, compteurs, plaques, codes */
  --th-ls-display:-.01em; --th-ls-cap:.16em; --th-ls-mono:0;
  --th-w-regular:400; --th-w-strong:500; --th-w-num:600;   /* finesse : 400 corps · 500 titre/choisi/micro-libellé · 600 seulement chiffres clés */

  /* ═════════ ESPACEMENT (grille 4 px), RAYONS, HAUTEURS ═════════ */
  --th-sp-1:calc(4px * var(--th-u));  --th-sp-2:calc(8px * var(--th-u));  --th-sp-3:calc(12px * var(--th-u));
  --th-sp-4:calc(16px * var(--th-u)); --th-sp-5:calc(20px * var(--th-u)); --th-sp-6:calc(24px * var(--th-u));
  --th-sp-8:calc(32px * var(--th-u)); --th-sp-12:calc(48px * var(--th-u));
  --th-r-xs:calc(3px * var(--th-u));  /* touche, pastille, badge — Oren mesuré 2-3 */
  --th-r-sm:calc(5px * var(--th-u));  /* case, bouton, champ, puce, ligne, carte — Oren mesuré 4-5 */
  --th-r-lg:calc(8px * var(--th-u));  /* fenêtre, carte de pile — Oren mesuré 4-8 (dialogue 8) : légèrement arrondi, ni pilule ni carré */
  --th-r-full:999px;                  /* interrupteur, anneau, avatar rond (seulement eux) */
  --th-h-key:calc(16px * var(--th-u));    /* touche clavier */
  --th-h-chip:calc(24px * var(--th-u));   /* puce, petit bouton, onglet compact */
  --th-h-ctl:calc(30px * var(--th-u));    /* bouton, champ (taille par défaut) */
  --th-h-ctl-lg:calc(36px * var(--th-u)); /* bouton d'action principale d'un pied / d'un TPE */
  --th-h-row:calc(30px * var(--th-u));    /* ligne de liste */
  --th-h-legend:calc(30px * var(--th-u)); /* légende des touches, aide [E] une ligne */
  --th-h-head:calc(44px * var(--th-u));   /* en-tête de fenêtre */
  --th-ib:calc(24px * var(--th-u));       /* bouton-icône carré */
  --th-ic-16:calc(13px * var(--th-u)); --th-ic-20:calc(16px * var(--th-u)); --th-ic-24:calc(18px * var(--th-u)); /* finesse : noms gardés, valeurs 13 / 16 / 18 */
  --th-hair:1px;                          /* filet : toujours 1 px, jamais mis à l'échelle */
  --th-sel-w:1px;                         /* contour de la case d'objet choisie */
  --th-focus-w:2px;                       /* anneau de focus clavier */

  /* ═════════ ÉCRAN 1920 × 1080 : zones fixes ═════════ */
  --th-stack-gap:calc(8px * var(--th-u));     /* écart entre les cartes d'une pile */
  --th-center-max:calc(1248px * var(--th-u)); /* largeur max d'une grande fenêtre centrée */
  --th-modal-w:calc(440px * var(--th-u));     /* confirmation */
  --th-toast-w:var(--th-col);                 /* notifications = largeur de la colonne */
  --th-hud-h:calc(240px * var(--th-u));       /* réserve basse gauche : carte + statuts (le fil des notifs est au-dessus) */

  /* ═════════ LUMIÈRE (V8) : le « vide futuriste » ═════════
     Seuls quelques TEXTES CLÉS émettent une lumière douce ; jamais un cadre, un bouton, un contour, une icône seule.
     3 niveaux. Max 2 éléments lumineux par carte. Jamais sur un texte < 14 px (sauf micro-libellé accent), jamais sur du corps de texte,
     jamais animé en clignotement. Coupée par .th-no-glow (préférence « performances »). */
  --th-glow-soft:0 0 calc(8px * var(--th-u)) rgb(255 255 255 / .10);                                         /* titres de fenêtre, nom choisi */
  --th-glow-key:0 0 calc(2px * var(--th-u)) rgb(126 166 255 / .35),0 0 calc(12px * var(--th-u)) rgb(30 107 255 / .35); /* micro-libellé accent, statut clé (ACCEPTÉ), valeur active */
  --th-glow-num:0 0 calc(1px * var(--th-u)) rgb(255 255 255 / .22),0 0 calc(16px * var(--th-u)) rgb(126 166 255 / .26); /* grands chiffres : montant, heure, code, compteur héros */
  --th-glow-ok:0 0 calc(2px * var(--th-u)) rgb(111 212 159 / .35),0 0 calc(12px * var(--th-u)) rgb(52 182 119 / .32);  /* statut « ACCEPTÉ » */
  --th-glow-bad:0 0 calc(2px * var(--th-u)) rgb(255 143 155 / .3),0 0 calc(12px * var(--th-u)) rgb(236 90 105 / .3);   /* statut « REFUSÉ » */

  /* ═════════ PROFONDEUR ═════════ */
  --th-scrim:rgb(0 0 0 / .45);                         /* voile posé sur le monde derrière une modale */
  --th-shadow-float:0 calc(8px * var(--th-u)) calc(24px * var(--th-u)) rgb(0 0 0 / .4); /* couches flottantes seulement : menu, infobulle, modale, liste */
  --th-shadow-scene:0 1px 2px rgb(0 0 0 / .6);         /* texte posé directement sur le décor (jamais sur une carte) */
  --th-z-hud:10; --th-z-window:20; --th-z-float:30; --th-z-modal:40; --th-z-toast:50; --th-z-tip:60;

  /* ═════════ MOUVEMENT ═════════ */
  --th-dur-1:120ms;  /* survol, appui, cases, interrupteurs */
  --th-dur-2:180ms;  /* petits éléments qui apparaissent : menu, infobulle, toast, liste */
  --th-dur-3:240ms;  /* fenêtres : ouverture (la fermeture prend --th-dur-2) */
  --th-dur-4:400ms;  /* jauges, progression, compteurs qui défilent */
  --th-ease-out:cubic-bezier(.2,.8,.2,1);   /* entrée : rapide puis douce */
  --th-ease-in:cubic-bezier(.4,0,1,1);      /* sortie */
  --th-ease-std:cubic-bezier(.2,0,0,1);     /* changement d'état sur place */
  --th-move:calc(8px * var(--th-u));        /* amplitude d'un glissement d'entrée (jamais plus) */
  --th-dur-spin:700ms; --th-dur-pulse:900ms; --th-dur-loop:1200ms; --th-dur-breathe:1600ms; /* boucles : roue, squelette, indéterminé, pastille en direct */
}

/* Réduction de mouvement : préférence système OU classe posée par le jeu (F5 › Préférences). Les fondus restent, les glissements non. */
@media (prefers-reduced-motion:reduce){:root{--th-move:0px;--th-dur-3:120ms;--th-dur-4:120ms}}
.th-reduce{--th-move:0px;--th-dur-3:120ms;--th-dur-4:120ms}

/* Grandes interfaces : -10 % (facteur --big de relief.css), plancher .68 pour rester lisible en 1366 × 768. */
.th-big{--th-u:var(--ub,var(--u,1))}

/* Lumière coupée (V8 = 0) : préférence du joueur « performances » ou capture d'écran sans effet. */
.th-no-glow,.th-no-glow *{--th-glow-soft:none;--th-glow-key:none;--th-glow-num:none;--th-glow-ok:none;--th-glow-bad:none}

/* ═════════ HABILLAGE DE MARQUE ═════════
   Une marque ne fournit QUE des --brand-* ; .th-brand les branche sur les rôles. Structure, tailles, rayons, police : JAMAIS modifiés.
   Surfaces toujours SOMBRES (pas de thème clair) ; contrastes minimaux : tx-1 ≥ 7:1, tx-3 ≥ 4,5:1, on-acc/acc ≥ 4,5:1 (voir CHARTE.md § 9). */
.th-brand{
  --brand-bg:var(--th-n-01); --brand-panel:var(--th-n-02); --brand-hover:var(--th-n-03); --brand-press:var(--th-n-04); --brand-sunken:var(--th-n-00);
  --brand-line:var(--th-line-2); --brand-tx-1:var(--th-n-10); --brand-tx-2:var(--th-n-08); --brand-tx-3:var(--th-n-07); --brand-tx-row:var(--th-n-09);
  --brand-acc:var(--th-acc-500); --brand-acc-hover:var(--th-acc-600); --brand-acc-press:var(--th-acc-700); --brand-on-acc:#FFFFFF;
  --brand-acc-ink:var(--th-acc-ink-raw); --brand-acc-soft:var(--th-acc-50); --brand-acc-line:var(--th-acc-300);
  --brand-glow:0 0 calc(8px * var(--th-u)) rgb(255 255 255 / .12);
}
.th-brand,.th-brand-fleeca,.th-brand-lspd,.th-brand-cab,.th-brand-burger{
  --th-bg-window:var(--brand-bg); --th-bg-solid:var(--brand-bg); --th-bg-panel:var(--brand-panel); --th-bg-hover:var(--brand-hover);
  --th-bg-press:var(--brand-press); --th-bg-sunken:var(--brand-sunken);
  --th-line-2:var(--brand-line); --th-tx-1:var(--brand-tx-1); --th-tx-2:var(--brand-tx-2); --th-tx-3:var(--brand-tx-3); --th-tx-row:var(--brand-tx-row,var(--brand-tx-1));
  --th-acc:var(--brand-acc); --th-acc-hover:var(--brand-acc-hover); --th-acc-press:var(--brand-acc-press); --th-on-acc:var(--brand-on-acc);
  --th-acc-ink:var(--brand-acc-ink); --th-acc-soft:var(--brand-acc-soft); --th-acc-line:var(--brand-acc-line);
  --th-glow-key:var(--brand-glow); --th-glow-num:var(--brand-glow);   /* la lumière prend la teinte de la marque (ou rien) */
}
/* Marques de référence (exemples ; une nouvelle marque = un bloc de ce type, rien d'autre). */
.th-brand-fleeca{ /* banque : vert */
  --brand-bg:rgb(11 23 18 / var(--th-win-a)); --brand-panel:#11211A; --brand-hover:#172B22; --brand-press:#1E3529; --brand-sunken:#07110D;
  --brand-line:rgb(200 255 225 / .11); --brand-tx-1:#EEF7F1; --brand-tx-2:#A9C2B4; --brand-tx-3:#7F9A8B;
  --brand-acc:#1A7D44; --brand-acc-hover:#176F3C; --brand-acc-press:#135E33; --brand-on-acc:#FFFFFF;
  --brand-acc-ink:#6FD49F; --brand-acc-soft:#14301F; --brand-acc-line:#2C8F57; --brand-glow:0 0 calc(12px * var(--th-u)) rgb(111 212 159 / .28);
}
.th-brand-lspd{ /* police : marine + or */
  --brand-bg:rgb(10 18 34 / var(--th-win-a)); --brand-panel:#101A2E; --brand-hover:#16223A; --brand-press:#1D2B46; --brand-sunken:#070D19;
  --brand-line:rgb(190 210 255 / .12); --brand-tx-1:#F1F4FA; --brand-tx-2:#AEB8CC; --brand-tx-3:#8592AA;
  --brand-acc:#D4AF4C; --brand-acc-hover:#C4A042; --brand-acc-press:#AE8D37; --brand-on-acc:#10131A;
  --brand-acc-ink:#E8C871; --brand-acc-soft:#2A2615; --brand-acc-line:#9C8236; --brand-glow:0 0 calc(12px * var(--th-u)) rgb(232 200 113 / .28);
}
.th-brand-cab{ /* taxi : jaune damier */
  --brand-bg:rgb(22 20 12 / var(--th-win-a)); --brand-panel:#211E12; --brand-hover:#2A2717; --brand-press:#34301C; --brand-sunken:#0E0D07;
  --brand-line:rgb(255 240 190 / .12); --brand-tx-1:#FBF6E6; --brand-tx-2:#C9C0A2; --brand-tx-3:#9C9478;
  --brand-acc:#F5C518; --brand-acc-hover:#E3B612; --brand-acc-press:#CBA20E; --brand-on-acc:#15130C;
  --brand-acc-ink:#F7D25A; --brand-acc-soft:#2E2A12; --brand-acc-line:#A88A1C; --brand-glow:0 0 calc(12px * var(--th-u)) rgb(247 210 90 / .28);
}
.th-brand-burger{ /* restauration : rouge + moutarde */
  --brand-bg:rgb(26 14 12 / var(--th-win-a)); --brand-panel:#251411; --brand-hover:#2F1A16; --brand-press:#3A211C; --brand-sunken:#120907;
  --brand-line:rgb(255 210 195 / .12); --brand-tx-1:#FFF3EC; --brand-tx-2:#D6B7AC; --brand-tx-3:#AE8B7F;
  --brand-acc:#C8361F; --brand-acc-hover:#B4301B; --brand-acc-press:#9C2917; --brand-on-acc:#FFFFFF;
  --brand-acc-ink:#FF9F87; --brand-acc-soft:#3A1A14; --brand-acc-line:#A6402D; --brand-glow:0 0 calc(12px * var(--th-u)) rgb(255 159 135 / .28);
}

/* ═════════ JETONS DE COMPOSANTS ═════════
   Dimensions propres à un composant. themis-kit.css ne contient AUCUNE valeur brute : tout vient d'ici. */
:root,.th-scope,.th-big{
  --th-sp-half:calc(2px * var(--th-u));             /* écart entre deux lignes de liste collées */
  --th-slot:calc(100px * var(--th-u));              /* case d'objet (inventaire, coffre, vestiaire) */
  --th-slot-n:calc(16px * var(--th-u));             /* pastille de numéro de case */
  --th-media-h:calc(128px * var(--th-u));           /* zone d'image d'une carte média */
  --th-rail-w:calc(84px * var(--th-u));             /* rail d'onglets vertical */
  --th-pin-w:calc(34px * var(--th-u)); --th-pin-h:calc(40px * var(--th-u));   /* case du code PIN */
  --th-pad-w:calc(60px * var(--th-u)); --th-pad-h:calc(34px * var(--th-u));   /* touche de digicode / TPE */
  --th-sw-w:calc(26px * var(--th-u)); --th-sw-h:calc(14px * var(--th-u)); --th-knob:calc(10px * var(--th-u)); /* interrupteur */
  --th-box:calc(18px * var(--th-u));                /* case à cocher, radio */
  --th-thumb:calc(16px * var(--th-u));              /* curseur : poignée */
  --th-track-h:calc(2px * var(--th-u));             /* piste : curseur, progression */
  --th-dot:calc(6px * var(--th-u));                 /* pastille d'état */
  --th-badge-h:calc(18px * var(--th-u));            /* badge capitales */
  --th-count-h:calc(16px * var(--th-u));            /* compteur dans une puce ou un onglet */
  --th-menu-w:calc(212px * var(--th-u));            /* menu contextuel, liste déroulante (minimum) */
  --th-tip-w:calc(280px * var(--th-u));             /* infobulle (maximum) */
  --th-num-w:calc(56px * var(--th-u));              /* champ du sélecteur de quantité */
  --th-av-sm:calc(32px * var(--th-u)); --th-av-md:calc(40px * var(--th-u)); --th-av-lg:calc(56px * var(--th-u)); --th-av-xl:calc(96px * var(--th-u));
  --th-ring:calc(48px * var(--th-u)); --th-ring-lg:calc(96px * var(--th-u)); --th-ring-stroke:4;  /* anneau (unités du viewBox 48) */
  --th-empty-ic:calc(48px * var(--th-u));           /* pastille d'icône de l'état vide */
  --th-logo-w:calc(20px * var(--th-u)); --th-logo-h:calc(18px * var(--th-u)); /* T THEMIS d'en-tête */
  --th-brand-band:calc(3px * var(--th-u));          /* bandeau de marque en tête d'une carte */
  --th-text-max:calc(280px * var(--th-u));          /* largeur max d'un texte d'aide sous un état vide */
  --th-bad-solid:#C93A4C;                           /* danger plein (bouton de confirmation destructrice) : blanc 5,1:1 */
  --th-bad-solid-hover:#B53344;
  --th-ok-line:rgb(52 182 119 / .45); --th-warn-line:rgb(224 162 58 / .45); --th-bad-line:rgb(236 90 105 / .45); --th-info-line:rgb(79 134 240 / .45);
  --th-scroll-thumb:rgb(30 107 255 / .55); --th-scroll-thumb-hover:rgb(30 107 255 / .85); --th-scroll-w:calc(4px * var(--th-u));
  --th-skel-a:.45;                                  /* opacité basse du squelette qui respire */
  --th-off-a:.38;                                   /* opacité d'une image désactivée / verrouillée */
  --th-drag-a:.4;                                   /* opacité de la case source pendant un glisser */
  --th-tip-delay:400ms;                             /* délai avant l'infobulle */
  --th-toast-ms:6000ms;                             /* durée d'affichage d'une notification (barre de temps) */
}

/* Répété en fin de fichier pour passer après les marques (même spécificité : le dernier gagne). */
.th-no-glow,.th-no-glow *{--th-glow-soft:none;--th-glow-key:none;--th-glow-num:none;--th-glow-ok:none;--th-glow-bad:none;--brand-glow:none}
