/* ============================================================
   THEME-ANTI-IA v3 — kit portable (2026-07-05)
   Doctrine : chrome neutre + UN accent produit + couleur = donnée/état.

   NOUVEAU v3 :
   - ZÉRO bordure/bande colorée sur les 4 côtés (cartes, lignes,
     modales, toasts, stat-cards). La .uic-bar de la v2 est SUPPRIMÉE.
     L'état vit dans : pastille .dot, badge, icône teintée, bouton d'action.
     Exceptions fonctionnelles autorisées (marquées nav-ok) :
     onglet actif (border-bottom accent) et spinner.
   - Bordures : gris 1px partout (--bw blocs / --bw-thin filets internes),
     épaisseur réglable en une ligne via le token --bw.
   - --accent-on auto-contrasté (blanc/noir choisi selon la luminosité
     de l'accent) => rebranding = VRAIMENT une seule ligne.
   - Fallback hex complet pour navigateurs sans OKLCH/light-dark.
   - Composants étendus : forms, toast, tabs, table, switch, checkbox,
     pagination, skeleton, spinner, empty-state, popover, sidebar.

   REBRANDING = changer UNIQUEMENT --accent (bloc @supports, ~ligne 60).
   Prérequis pleine qualité : Chrome/Edge 123+, Firefox 128+, Safari 17.5+.
   Navigateurs plus anciens : fallback hex sobre automatique.
   ============================================================ */

@layer tokens, base, components;

/* ────────────────────────────────────────────────────────────
   1. TOKENS — 3 niveaux : primitif → sémantique → composant
   ──────────────────────────────────────────────────────────── */
@layer tokens {

/* ── FALLBACK (navigateurs sans OKLCH relatif / light-dark) ── */
:root {
  color-scheme: light dark;

  --accent: #4361ee;
  --accent-ink: #3651c9;
  --accent-ghost: rgb(67 97 238 / .12);
  --accent-tint:  rgb(67 97 238 / .08);
  --accent-ring:  rgb(67 97 238 / .40);
  --accent-on: #fff;

  --ok: #15803d; --danger: #b91c1c; --warning: #a16207; --money: #047857;

  --surface-0: #f8fafc; --surface-1: #ffffff; --surface-2: #f1f5f9;
  --text-1: #1e293b; --text-2: #475569; --text-3: #64748b;
  --border: #e2e8f0; --border-strong: #cbd5e1;
}
:root[data-theme="dark"] {
  --ok: #4ade80; --danger: #f87171; --warning: #fbbf24; --money: #34d399;
  --surface-0: #111418; --surface-1: #181c22; --surface-2: #20262e;
  --text-1: #e7eaf0; --text-2: #a6adbb; --text-3: #79808f;
  --border: #2a3038; --border-strong: #3a414c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ok: #4ade80; --danger: #f87171; --warning: #fbbf24; --money: #34d399;
    --surface-0: #111418; --surface-1: #181c22; --surface-2: #20262e;
    --text-1: #e7eaf0; --text-2: #a6adbb; --text-3: #79808f;
    --border: #2a3038; --border-strong: #3a414c;
  }
}

/* ── MODERNE (OKLCH + dérivation + light-dark) — écrase le fallback ── */
@supports (color: oklch(from red l c h)) and (color: light-dark(red, red)) {
  :root {
    /* PRIMITIF UNIQUE (identité produit) — la seule ligne à changer */
    --accent: oklch(55% 0.19 265);            /* indigo ~#4361ee */

    /* Gamme dérivée automatiquement — NE PAS éditer */
    --accent-ink:   oklch(from var(--accent) calc(l - .08) c h);         /* hover/pressed */
    --accent-ghost: color-mix(in oklab, var(--accent) 12%, transparent); /* fond icône ghost */
    --accent-tint:  color-mix(in oklab, var(--accent) 8%,  transparent); /* sélection */
    --accent-ring:  color-mix(in oklab, var(--accent) 40%, transparent); /* focus */
    /* Texte sur accent : blanc si accent sombre, noir si accent clair — automatique */
    --accent-on:    oklch(from var(--accent) calc((0.66 - l) * infinity) 0 h);

    /* États sémantiques — luminosité alignée sur l'accent (OKLCH) */
    --ok:      light-dark(oklch(52% 0.15 150), oklch(72% 0.17 150));
    --danger:  light-dark(oklch(53% 0.20 27),  oklch(70% 0.19 25));
    --warning: light-dark(oklch(55% 0.14 70),  oklch(78% 0.15 80));
    --money:   light-dark(oklch(55% 0.14 165), oklch(75% 0.15 165));   /* RÉSERVÉ à l'argent */

    /* Surfaces / texte / bordures (clair + sombre en 1 déclaration) */
    --surface-0: light-dark(oklch(98.5% .003 250), oklch(16% .015 260)); /* fond page */
    --surface-1: light-dark(#ffffff,               oklch(20% .017 260)); /* cartes/modales */
    --surface-2: light-dark(oklch(96.5% .004 250), oklch(24% .018 260)); /* hover/inputs */
    --text-1: light-dark(oklch(21% .02  260), oklch(92% .01  250));
    --text-2: light-dark(oklch(45% .02  260), oklch(72% .015 255));
    --text-3: light-dark(oklch(60% .015 260), oklch(56% .015 255));     /* muted/icônes */
    --border:        light-dark(oklch(90% .005 250), oklch(30% .015 260));
    --border-strong: light-dark(oklch(82% .008 250), oklch(38% .015 260));
  }
}

/* ── Échelles (communes fallback/moderne) ── */
:root {
  /* Bordures : blocs = 1px, filets internes (tableaux, séparateurs) = 1px */
  --bw: 1px;
  --bw-thin: 1px;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px;
  --fs-xs: 11px; --fs-sm: 12.5px; --fs-md: 13.5px; --fs-lg: 15px;
  --fs-xl: 18px; --fs-kpi: 24px;

  /* Ombres : 2 couches NEUTRES max ; la bordure reste le séparateur n°1 */
  --elev-1: 0 1px 2px rgb(0 0 0 / .05);
  --elev-2: 0 1px 2px rgb(0 0 0 / .05), 0 4px 12px rgb(0 0 0 / .06);

  /* Motion calibré : entrée seulement, jamais infinite décoratif, jamais au hover */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 120ms; --t-med: 180ms;

  --font: Inter, "Segoe UI Variable", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

/* Pont avec un toggle thème manuel existant (data-theme) :
   force light-dark() à suivre l'attribut au lieu de l'OS. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }
}

/* ────────────────────────────────────────────────────────────
   2. BASE — fondations globales
   ──────────────────────────────────────────────────────────── */
@layer base {
body {
  font-family: var(--font);
  font-size: var(--fs-md);
  background: var(--surface-0);
  color: var(--text-1);
  scrollbar-gutter: stable;
}

/* Focus ring unique, partout (WCAG 2.2).
   v3 : plus de border-radius forcé sur l'élément (bug v2 qui déformait
   badges pilule et boutons ronds au focus clavier). */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Chiffres data-grade : à poser sur KPI, tableaux, prix, compteurs.
   Les chiffres s'alignent en colonne, zéro danse au refresh live. */
.num, table td, .kpi-value { font-variant-numeric: tabular-nums; }
.kpi-value { font-family: var(--font-mono); font-size: var(--fs-kpi); font-weight: 600; }

/* Label uppercase data-grade (pattern Datadog/Grafana) */
.label-upper {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Kill-switch accessibilité — obligatoire */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
}

/* ────────────────────────────────────────────────────────────
   3. COMPOSANTS
   Règle absolue : bordures NEUTRES sur les 4 côtés, toujours.
   L'état s'exprime via .dot / .badge / icône teintée / bouton coloré.
   ──────────────────────────────────────────────────────────── */
@layer components {

/* ── Boutons : gris par défaut, hover = accent. JAMAIS de mouvement. ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  box-sizing: border-box;
  min-height: 32px; padding: 0 var(--sp-3);
  font: inherit; font-weight: 500; font-size: var(--fs-sm);
  color: var(--text-2);
  background: var(--surface-1);
  border: var(--bw) solid var(--border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.btn:hover { color: var(--accent); border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent-on); }
.btn-danger:hover  { color: var(--danger);  border-color: var(--danger); }
.btn-warning:hover { color: var(--warning); border-color: var(--warning); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Cible tactile minimale (WCAG 2.2) pour boutons-icônes */
.btn-icon { min-width: 28px; min-height: 28px; justify-content: center; padding: 0; }

/* ── Carte / stat-card : chrome 100 % neutre, cadre gris 2px ── */
.card {
  background: var(--surface-1);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-1);
}
.stat-card { padding: var(--sp-4); }
.stat-card .sc-icon { color: var(--text-3); }           /* icône muted, jamais teintée */
.stat-card .sc-value { color: var(--text-1); }          /* chiffre neutre */

/* ── Pastille d'état .dot — REMPLACE toute bande de bordure colorée ── */
.dot {
  display: inline-block; flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-3);
}
.dot-ok      { background: var(--ok); }
.dot-danger  { background: var(--danger); }
.dot-warning { background: var(--warning); }
.dot-accent  { background: var(--accent); }

/* ── Badge : l'état vit ici, jamais sur le cadre ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600;
}
.badge-ok      { color: var(--ok);      background: color-mix(in oklab, var(--ok) 12%, transparent); }
.badge-danger  { color: var(--danger);  background: color-mix(in oklab, var(--danger) 12%, transparent); }
.badge-warning { color: var(--warning); background: color-mix(in oklab, var(--warning) 12%, transparent); }
.badge-accent  { color: var(--accent);  background: var(--accent-ghost); }
.badge-neutral { color: var(--text-2);  background: var(--surface-2); }

/* ── Sélection dans listes/nav : tint OU barre, jamais les deux ── */
.is-selected { background: var(--accent-tint); color: var(--accent); }

/* ── Icône ghost (en-têtes de modales, toasts) ── */
.icon-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-md);
  background: var(--accent-ghost); color: var(--accent);
  box-shadow: none;
}

/* ── Formulaires : cadre gris 2px, focus = bordure accent + ring global ── */
.field { display: grid; gap: 6px; }
.field > label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.input, .select, .textarea {
  box-sizing: border-box; width: 100%;
  font: inherit; font-size: var(--fs-md); color: var(--text-1);
  background: var(--surface-1);
  border: var(--bw) solid var(--border-strong);
  border-radius: var(--r-md);
  min-height: 34px; padding: 6px var(--sp-3);
  transition: border-color var(--t-fast) var(--ease);
}
.textarea { min-height: 80px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.field-msg { font-size: var(--fs-xs); color: var(--text-3); }
/* Erreur = état fonctionnel symétrique (4 côtés) + message — pas une bande */
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--danger); }
.field.is-error .field-msg { color: var(--danger); font-weight: 500; }

/* Checkbox / radio : natif teinté accent */
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }

/* ── Switch (interrupteur) ── */
.switch { position: relative; display: inline-flex; width: 36px; height: 20px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.switch .track {
  width: 100%; border-radius: 999px;
  background: var(--border-strong); pointer-events: none;
  transition: background var(--t-fast) var(--ease);
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: var(--elev-1);
  transition: translate var(--t-fast) var(--ease);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { translate: 16px 0; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Onglets : SEULE bordure colorée autorisée = onglet actif (navigation) ── */
.tabs { display: flex; gap: var(--sp-2); border-bottom: var(--bw-thin) solid var(--border); }
.tabs > button {
  font: inherit; font-size: var(--fs-sm); font-weight: 500;
  background: none; border: none; cursor: pointer;
  color: var(--text-2);
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--t-fast) var(--ease);
}
.tabs > button:hover { color: var(--text-1); }
.tabs > button[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent); /* nav-ok : indicateur d'onglet actif — exception fonctionnelle */
}

/* ── Anti-retours à la ligne (mobile) : un état, un chiffre, un bouton
   ne se coupent JAMAIS en deux lignes ── */
.badge, .dot + *, .num, .sc-state, .btn, .page-btn { white-space: nowrap; }

/* ── Wrapper de tableau : à poser autour de tout .table.
   Sur mobile : défilement horizontal propre au lieu de cellules
   qui se replient (« ● Hors ligne » cassé en deux lignes). ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.table-wrap > .table th, .table-wrap > .table td { white-space: nowrap; }

/* ── Tableau : cadre externe via .card, filets internes 1px ── */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th {
  text-align: left; padding: var(--sp-2) var(--sp-3);
  border-bottom: var(--bw-thin) solid var(--border-strong);
}
.table td {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: var(--bw-thin) solid var(--border);
}
.table tbody tr { transition: background var(--t-fast) var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr.is-selected:hover { background: var(--accent-tint); }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; gap: var(--sp-1); }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; min-width: 28px; min-height: 28px; padding: 0 6px;
  font: inherit; font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-2); background: none;
  border: var(--bw) solid transparent; border-radius: var(--r-md);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.page-btn:hover { color: var(--accent); border-color: var(--border-strong); }
.page-btn[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── Skeleton (chargement) : shimmer fonctionnel autorisé ── */
.skeleton {
  display: inline-block; border-radius: var(--r-sm); color: transparent; user-select: none;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%) 0 0 / 200% 100%; /* viz-ok : shimmer skeleton */
  animation: skeleton-shimmer 1.4s linear infinite;
}
@keyframes skeleton-shimmer { to { background-position: -200% 0; } }

/* ── Spinner (chargement) : seul infinite fonctionnel autorisé ── */
.spinner {
  display: inline-block; box-sizing: border-box;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent); /* nav-ok : technique standard de spinner */
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── État vide ── */
.empty-state {
  display: grid; place-items: center; gap: var(--sp-2);
  padding: var(--sp-6); text-align: center; color: var(--text-3);
}
.empty-state .es-icon { font-size: 28px; opacity: .5; }
.empty-state .es-title { color: var(--text-2); font-weight: 600; font-size: var(--fs-md); }

/* ── Toast : cadre NEUTRE, seule l'icône est teintée ── */
.toast-stack {
  position: fixed; bottom: 16px; right: 16px; z-index: 9999;
  display: flex; flex-direction: column; gap: var(--sp-2);
  max-width: min(360px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  background: var(--surface-1); color: var(--text-1);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--elev-2);
  padding: var(--sp-3);
  font-size: var(--fs-sm); line-height: 1.45;
  cursor: pointer;
  animation: toast-in var(--t-med) var(--ease);   /* entrée seulement */
}
@keyframes toast-in { from { opacity: 0; translate: 0 6px; } }
.toast .t-icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; font-weight: 700;
}
.toast[data-type="ok"]      .t-icon { color: var(--ok);      background: color-mix(in oklab, var(--ok) 12%, transparent); }
.toast[data-type="danger"]  .t-icon { color: var(--danger);  background: color-mix(in oklab, var(--danger) 12%, transparent); }
.toast[data-type="warning"] .t-icon { color: var(--warning); background: color-mix(in oklab, var(--warning) 12%, transparent); }
.toast[data-type="accent"]  .t-icon { color: var(--accent);  background: var(--accent-ghost); }

/* ── Popover natif (menus/tooltips) : zéro JS de positionnement maison ── */
[popover].menu {
  margin: auto; padding: var(--sp-1);
  background: var(--surface-1); color: var(--text-1);
  border: var(--bw) solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--elev-2);
  min-width: 170px;
}
.menu > button {
  display: flex; align-items: center; gap: var(--sp-2);
  width: 100%; box-sizing: border-box;
  font: inherit; font-size: var(--fs-sm); text-align: left;
  background: none; border: 0; border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-2); cursor: pointer;
}
.menu > button:hover { background: var(--surface-2); color: var(--text-1); }
.menu > button.danger:hover { background: color-mix(in oklab, var(--danger) 8%, transparent); color: var(--danger); }

/* ── Sidebar : sélection = tint (jamais tint + barre) ── */
.sidebar {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--sp-2);
  background: var(--surface-1);
  border-right: var(--bw-thin) solid var(--border);
}
.sidebar a {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md);
  color: var(--text-2); text-decoration: none;
  font-size: var(--fs-sm); font-weight: 500;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.sidebar a:hover { background: var(--surface-2); color: var(--text-1); }
.sidebar a.active { background: var(--accent-tint); color: var(--accent); }

/* ── uiConfirm/uiAlert v3 — <dialog> natif, SANS barre colorée ──
   Sémantique = icône ghost teintée + bouton d'action coloré. C'est tout. */
dialog.uic {
  box-sizing: border-box; padding: 0;
  border: var(--bw) solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-1); color: var(--text-1);
  width: min(420px, calc(100vw - 32px));
  box-shadow: var(--elev-2);
}
dialog.uic::backdrop { background: rgb(0 0 0 / .35); backdrop-filter: blur(3px); }
.uic-body { display: flex; gap: var(--sp-3); padding: var(--sp-4); }
.uic-icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-md);
  font-size: 17px; font-weight: 700;
}
dialog.uic[data-type="danger"]  .uic-icon { background: color-mix(in oklab, var(--danger) 12%, transparent);  color: var(--danger); }
dialog.uic[data-type="warning"] .uic-icon { background: color-mix(in oklab, var(--warning) 12%, transparent); color: var(--warning); }
dialog.uic[data-type="accent"]  .uic-icon { background: var(--accent-ghost); color: var(--accent); }
dialog.uic[data-type="danger"]  .uic-ok { background: var(--danger);  border-color: var(--danger); }
dialog.uic[data-type="warning"] .uic-ok { background: var(--warning); border-color: var(--warning); }
dialog.uic[data-type="accent"]  .uic-ok { background: var(--accent);  border-color: var(--accent); }
dialog.uic[data-type="danger"]  .uic-ok:hover { background: oklch(from var(--danger) calc(l - .06) c h);  border-color: oklch(from var(--danger) calc(l - .06) c h); }
dialog.uic[data-type="warning"] .uic-ok:hover { background: oklch(from var(--warning) calc(l - .06) c h); border-color: oklch(from var(--warning) calc(l - .06) c h); }
dialog.uic[data-type="accent"]  .uic-ok:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
dialog.uic[data-mode="alert"] .uic-cancel { display: none; }
.uic-title { margin: 0 0 4px; font-size: var(--fs-lg); font-weight: 600; }
.uic-msg { margin: 0; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; }
.uic-actions {
  display: flex; justify-content: flex-end; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-top: var(--bw-thin) solid var(--border);
}
.uic-ok, .uic-ok:hover { color: #fff; }

/* Entrée modale : fondu+scale via @starting-style — zéro JS, jamais infinite */
dialog.uic {
  opacity: 1; transform: scale(1);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease),
              overlay var(--t-med) allow-discrete, display var(--t-med) allow-discrete;
}
@starting-style {
  dialog.uic[open] { opacity: 0; transform: scale(.98); }
}

/* ── Mobile (≤640px) : densité adaptée, textes jamais cassés ── */
@media (max-width: 640px) {
  .kpi-value { font-size: 20px; }
  .stat-card { padding: var(--sp-3); }
  .table th, .table td { padding: var(--sp-2); }
  .uic-body { padding: var(--sp-3); }
  .uic-actions { padding: var(--sp-2) var(--sp-3); }
  /* Boutons pleine largeur dans les modales : cible tactile confortable */
  .uic-actions .btn { min-height: 38px; flex: 1; justify-content: center; }
}
}
