/* ============================================================
   QTOUCH — Design Tokens (source unique de vérité)
   Inclus sur toutes les pages : <link rel="stylesheet" href="tokens.css">
   Modifiable en live via /qtouch-admin-design.html
   ============================================================ */
:root {
  /* ===== TYPOGRAPHIE ===== */
  --font-family-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-script: 'Caveat', 'Brush Script MT', cursive;
  --font-family-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* H1 — Titre de page */
  --font-size-h1: 38px;
  --font-weight-h1: 800;
  --line-height-h1: 1.08;
  --letter-spacing-h1: -0.03em;

  /* H2 — Titre section */
  --font-size-h2: 28px;
  --font-weight-h2: 800;
  --line-height-h2: 1.1;
  --letter-spacing-h2: -0.02em;

  /* H3 — Titre carte */
  --font-size-h3: 20px;
  --font-weight-h3: 800;
  --line-height-h3: 1.2;
  --letter-spacing-h3: -0.01em;

  /* H4 — Titre composant */
  --font-size-h4: 16px;
  --font-weight-h4: 800;
  --line-height-h4: 1.25;
  --letter-spacing-h4: -0.005em;

  /* Body */
  --font-size-body: 14px;
  --font-weight-body: 500;
  --line-height-body: 1.55;

  /* Body small */
  --font-size-body-small: 13px;
  --font-weight-body-small: 500;
  --line-height-body-small: 1.5;

  /* Caption / eyebrow / label uppercase */
  --font-size-caption: 11px;
  --font-weight-caption: 800;
  --line-height-caption: 1.3;
  --letter-spacing-caption: 1.4px;
  --text-transform-caption: uppercase;

  /* Stat — chiffres KPI */
  --font-size-stat: 26px;
  --font-weight-stat: 800;
  --line-height-stat: 1;
  --letter-spacing-stat: -0.7px;

  /* Bouton */
  --font-size-button: 13.5px;
  --font-weight-button: 800;
  --line-height-button: 1;
  --letter-spacing-button: -0.2px;

  /* Top nav portail */
  --font-size-portal-tab: 14.5px;
  --font-weight-portal-tab: 600;
  --font-weight-portal-tab-active: 800;
  --letter-spacing-portal-tab: -0.2px;

  /* Sidebar items */
  --font-size-sidebar-item: 13px;
  --font-weight-sidebar-item: 600;

  /* Sidebar section labels */
  --font-size-sidebar-section: 10px;
  --font-weight-sidebar-section: 800;
  --letter-spacing-sidebar-section: 1.5px;

  /* Sidebar badge (NEW, plan) */
  --font-size-sidebar-badge: 9.5px;
  --font-weight-sidebar-badge: 800;
  --letter-spacing-sidebar-badge: 0.4px;

  /* ===== COULEURS — IDENTITAIRES ===== */
  --brand-orange: #F97316;
  --brand-orange-d: #EA580C;
  --brand-orange-soft: rgba(249, 115, 22, 0.16);
  --brand-orange-tint: #FFF7ED;

  --brand-green: #16A34A;
  --brand-green-d: #15803D;
  --brand-green-soft: rgba(22, 163, 74, 0.16);
  --brand-green-tint: #F0FDF4;
  --brand-lime: #C6F135;

  --brand-violet: #7C3AED;
  --brand-violet-d: #6D28D9;
  --brand-violet-soft: rgba(124, 58, 237, 0.16);
  --brand-violet-tint: #F5F3FF;

  --brand-yellow: #FACC15;
  --brand-yellow-soft: rgba(250, 204, 21, 0.16);

  /* ===== COULEURS — NEUTRES ===== */
  --color-black: #0B0B14;
  --color-ink: #1a1a2e;
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;

  /* Sidebar */
  --color-sidebar-bg-from: #0E1B36;
  --color-sidebar-bg-to: #0B1426;
  --color-sidebar-text: rgba(255, 255, 255, 0.75);
  --color-sidebar-text-active: #FFFFFF;
  --color-sidebar-text-inactive: rgba(255, 255, 255, 0.45);

  /* Statuts */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-error-bg: #FEF2F2;
  --color-info: #3B82F6;

  /* Background & border */
  --color-bg-app: #F9FAFB;
  --color-bg-card: #FFFFFF;
  --color-border: #F0F1F3;
  --color-border-strong: #E5E7EB;

  /* ===== ESPACEMENTS ===== */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-2xl: 24px;
  --spacing-3xl: 32px;
  --spacing-4xl: 48px;
  --spacing-5xl: 64px;

  /* ===== RAYONS ===== */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  /* ===== OMBRES ===== */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.16);
  --shadow-brand-orange: 0 8px 22px rgba(249, 115, 22, 0.32);
  --shadow-brand-green: 0 8px 22px rgba(22, 163, 74, 0.32);
  --shadow-brand-violet: 0 8px 22px rgba(124, 58, 237, 0.32);

  /* ===== ANIMATIONS ===== */
  --transition-fast: 150ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 350ms cubic-bezier(0.2, 0.9, 0.3, 1.1);

  /* ===== BORDURES ===== */
  --border-width-thin: 1px;
  --border-width-base: 1.5px;
  --border-width-thick: 2px;
}
