/*
 * Design tokens — fusion du design system Figma "Redesign" (HUD futuristic / slate editor)
 * Structure et nommage d'origine conservés : seules les valeurs et quelques
 * tokens additionnels changent. Aucune modification de logique.
 */
:root {
  color-scheme: dark;

  /* Palette slate (Figma : bg-slate-900 / slate-800 / slate-700 / slate-600) */
  --color-bg: #0f172a;
  --color-bg-strong: #0a0e1a;
  --color-bg-gradient: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%);
  --color-surface: rgba(15, 23, 42, 0.85);
  --color-surface-solid: #1e293b;
  --color-surface-raised: #334155;
  --color-surface-inset: rgba(51, 65, 85, 0.5);
  --color-border: #334155;
  --color-border-strong: #475569;

  /* Texte (Figma : text-gray-100 / 300 / 400 / 500) */
  --color-text: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-text-soft: #6b7280;

  /* Accent principal — teal (Figma : teal-400 / teal-500 / néon HUD #00D9FF) */
  --color-accent: #2dd4bf;
  --color-accent-strong: #14b8a6;
  --color-accent-soft: #5eead4;
  --color-accent-neon: #00d9ff;
  --color-accent-rgb: 45, 212, 191;
  --color-neon-rgb: 0, 217, 255;

  /* Accent secondaire — orange (Figma : orange-400 / 500 / 600) */
  --color-accent-warm: #fb923c;
  --color-accent-warm-strong: #f97316;
  --color-accent-warm-rgb: 251, 146, 60;

  /* États (Figma : green-400, amber, destructive #d4183d) */
  --color-success: #4ade80;
  --color-success-rgb: 74, 222, 128;
  --color-warning: #fbbf24;
  --color-warning-rgb: 251, 191, 36;
  --color-danger: #f87171;
  --color-map-shadow: rgba(0, 0, 0, 0.56);

  /* Typographie (Figma : sans système + font-mono pour labels HUD) */
  --font-ui: ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 14px;
  --text-lg: 18px;
  --text-xl: 24px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  /* Rayons (Figma : --radius 0.625rem) */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;

  /* Ombres et lueurs HUD (Figma : .hud-panel / .neon-border) */
  --shadow-panel: 0 0 20px rgba(0, 217, 255, 0.1), inset 0 0 20px rgba(0, 217, 255, 0.05), 0 18px 54px rgba(0, 0, 0, 0.46);
  --shadow-control: 0 0 12px rgba(0, 217, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.28);
  --glow-teal: 0 0 10px rgba(0, 217, 255, 0.3);
  --glow-teal-soft: 0 0 10px rgba(0, 217, 255, 0.18);
  --glow-orange: 0 0 10px rgba(255, 107, 53, 0.3);
  --text-glow-teal: 0 0 10px rgba(0, 217, 255, 0.5);
  --text-glow-orange: 0 0 10px rgba(255, 107, 53, 0.5);

  /* Action primaire — violet (Figma StickyGenerateButton purple-600/700) */
  --color-primary-action: #9333ea;
  --color-primary-action-strong: #7e22ce;
  --color-primary-action-rgb: 147, 51, 234;

  /* Layout éditeur (Figma App frame : MenuBar h-10, TabBar, rail w-12,
     LeftPanel w-72+, RightPanel, StatusBar h-6) */
  --panel-width: 300px;
  --panel-right-width: 320px;
  --rail-width: 48px;
  --menubar-height: 48px;
  --tabbar-height: 44px;
  --statusbar-height: 26px;
  --toolbar-min-height: 48px;

  --z-map: 1;
  --z-panel: 600;
  --z-controls: 700;
  --z-state: 900;
  --z-loading: 1200;

  --duration-fast: 140ms;
  --duration-normal: 220ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
