/* ═══════════════════════════════════════════════════════════════
   QG Design System — Tokens CSS
   Quantum Growth Advisory · v1.0 · 2026
   Source de vérité : lp-master-v2.html
   ═══════════════════════════════════════════════════════════════

   USAGE :
     <link rel="stylesheet" href="QG_tokens.css">
     Puis utiliser var(--royal), var(--sp-5), etc.

   Toutes les variables sont disponibles sur :root.
   Charger en premier, avant tout autre CSS applicatif.
*/

:root {
  /* ─────────────────────────────────────────── COULEURS ANCRES */
  --royal: #1B0059;
  --azure: #3593EE;
  --violet: #7B2CBF;

  /* ─────────────────────────────────────── COULEURS CARACTÈRE */
  --cyan-electric: #00D4FF;  /* FOND SOMBRE UNIQUEMENT */
  --ember: #F97316;          /* 1 CTA par page max · jamais avec Mint */
  --mint: #6EE7B7;           /* Statut uniquement · jamais avec Ember */

  /* ──────────────────────────────────────────── COULEURS SOMBRES */
  --navy: #0F172A;
  --ink-900: #0B1020;
  --ink-700: #1D2531;
  --ink-500: #495466;
  --ink-400: #656972;
  --ink-300: #94A3B8;
  --ink-200: #CBD5E1;
  --ink-100: #E6E9F0;

  /* ─────────────────────────────────────────── COULEURS CLAIRES */
  --paper: #FFFFFF;
  --paper-cool: #F6F8FB;
  --paper-warm: #FBFAF7;
  --paper-lavender: #F4F0FF;

  /* ───────────────────────────────────────────── SÉMANTIQUE UI */
  --color-success: var(--mint);
  --color-success-text: #065F46;
  --color-error: #DC2626;
  --color-warning: var(--ember);
  --color-info: var(--azure);
  --color-disabled: var(--ink-300);

  /* ────────────────────────────────────────── GRADIENT SIGNATURE */
  --grad-signature: linear-gradient(90deg, #3593EE 0%, #7B2CBF 100%);
  --grad-signature-135: linear-gradient(135deg, #3593EE 0%, #7B2CBF 100%);

  /* ──────────────────────────────────────────────── TYPOGRAPHIE */
  --font-heading: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Échelle typographique (desktop) */
  --fs-display: 80px;
  --fs-4xl: 64px;
  --fs-3xl: 48px;
  --fs-2xl: 36px;
  --fs-xl: 28px;
  --fs-lg: 21px;
  --fs-md: 17px;
  --fs-base: 15px;
  --fs-sm: 13px;
  --fs-xs: 11px;

  /* Line-heights */
  --lh-tight: 1.1;      /* Headings H1-H3 */
  --lh-snug: 1.35;      /* Sous-titres */
  --lh-normal: 1.5;     /* Body standard */
  --lh-relaxed: 1.6;    /* Body long */
  --lh-loose: 1.75;     /* Corps éditorial dense */

  /* Font weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-black: 900;

  /* Letter spacing (eyebrows) */
  --ls-caps: 0.12em;

  /* ───────────────────────────────────────────── SPACING · 4/8 */
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* ─────────────────────────────────────────────── BORDER-RADIUS */
  --r-none: 0;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* ─────────────────────────────────── SHADOWS · TEINTÉES ROYAL */
  --shadow-xs: 0 1px 2px rgba(11, 16, 32, 0.04);
  --shadow-sm: 0 2px 8px rgba(11, 16, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 16, 32, 0.08);
  --shadow-lg: 0 16px 48px rgba(27, 0, 89, 0.10);
  --shadow-cta: 0 10px 30px rgba(53, 147, 238, 0.25);

  /* Focus ring (accessibilité) */
  --focus-ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--azure);

  /* ─────────────────────────────────────────────────── MOTION */
  --dur-fast: 150ms;    /* Micro-interactions */
  --dur-base: 250ms;    /* Standard (bouton, card) */
  --dur-slow: 400ms;    /* Transitions (modal, reveal) */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);          /* 90 % des cas */
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);           /* Sorties */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);    /* Pop spring */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);       /* Material standard */

  /* ────────────────────────────────────────────── LAYOUT */
  --container-lp: 1200px;        /* LP éditorial */
  --container-corps: 720px;      /* Corps éditorial long */
  --gutter-desktop: 32px;
  --gutter-tablet: 24px;
  --gutter-mobile: 16px;

  /* Breakpoints (valeurs utilisables via @media) */
  --bp-tablet: 768px;
  --bp-desktop: 1024px;

  /* ─────────────────────────────────────────────────── Z-INDEX */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 40;
  --z-modal-backdrop: 90;
  --z-modal: 100;
  --z-toast: 200;
}

/* ─────────────────────────────────────── RESPONSIVE TYPO SCALE */
@media (max-width: 1023px) {
  :root {
    --fs-display: 60px;
    --fs-4xl: 48px;
    --fs-3xl: 38px;
    --fs-2xl: 28px;
    --fs-xl: 22px;
  }
}

@media (max-width: 767px) {
  :root {
    --fs-display: 44px;
    --fs-4xl: 38px;
    --fs-3xl: 28px;
    --fs-2xl: 22px;
    --fs-xl: 19px;
    --fs-lg: 18px;
    --fs-base: 16px;  /* Min mobile pour éviter zoom iOS */
  }
}

/* ─────────────────────────────────────────── REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
}

/* ─────────────────────────────────────────────── DARK MODE STUB */
/* Non activé par défaut — à brancher si la page le nécessite.
   Quantum Growth reste light-first : les LP sont à 90 % blanches. */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F172A;
    --ink-700: #E6E9F0;
    ...
  }
}
*/
