/* ═══ MARCEL — SOCLE DE TOKENS (Lot 1, audit 22/08/2026) ═══
   Chargé EN PREMIER par toutes les pages. La référence est le
   :root historique de chat-base.css:16-37, copié tel quel. */

:root {
  /* Fonds & surfaces */
  --bg: #f7f8fb; --surface: #ffffff; --surface2: #eef1f6;
  --border: #e2e8f1; --text: #1a1d23; --text-muted: #6e7687;
  /* Accent (texte/icônes/états — jamais en aplat plein) */
  --accent: #4663ac; --accent-hover: #3a5596; --accent-light: #eaedf6;
  /* Bleu nuit — réservé au nom de l'assistant */
  --navy: #1d3a8a;
  /* Bulles */
  --user-bg: #e9edf7; --user-text: #16306e; --raya-bg: #ffffff;
  /* Épingle (gris ardoise, pas d'orange) */
  --pin: #94a3b8;
  /* Alertes (usage fonctionnel uniquement) */
  --danger: #dc2626; --success: #059669; --success-light: #ecfdf5;
  --yellow: #d97706; --yellow-light: #fffbeb;
  /* Ombres / rayons / typographie */
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --radius: 12px; --radius-sm: 8px; --radius-full: 9999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* ── [Lot 1 — 22/08] Ce qui manquait et s'écrivait en dur ── */
  --danger-light: #fee2e2;
  --border-strong: #d5dde8;
  --radius-lg: 16px;
  --shadow-pop: 0 8px 26px rgba(70,99,172,.14);

  /* Échelle typographique — 5 valeurs */
  --fs-meta: 11.5px; --fs-sm: 12.5px; --fs-ui: 13px;
  --fs-body: 14.5px; --fs-title: 17px;

  /* Espacements — 5 valeurs */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;

  /* Alias de compatibilité (admin/tenant/billing) — convergence sans
     big-bang : on unifie les NOMS, les valeurs viendront lot par lot. */
  --bg2: var(--surface); --bg3: var(--surface2);
  --text2: var(--text); --text3: var(--text-muted);
  --green: var(--success); --green-light: var(--success-light);
  --red: var(--danger); --red-light: var(--danger-light);
  --warning: var(--yellow); --warning-light: var(--yellow-light);
  --sans: var(--font); --mono: var(--font-mono);
  --text1: var(--text); --bg1: var(--surface2);
  --card: var(--surface); --amber: var(--yellow);
  --amber-light: var(--yellow-light);
}

/* Le reset qui règle une famille entière d'écarts : plus jamais de
   bouton en police système. */
button, input, select, textarea { font-family: var(--font); font-size: inherit; }
