/* =============================================================================
   TOKENS — Design System Christophe Lecacheux
   ============================================================================= */

:root {
  /* Échelle typographique */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Espacements */
  --space-3xs: 0.25rem; /* 4px */
  --space-2xs: 0.5rem;  /* 8px */
  --space-xs:  0.75rem; /* 12px */
  --space-sm:  1rem;    /* 16px */
  --space-md:  1.5rem;  /* 24px */
  --space-lg:  2rem;    /* 32px */
  --space-xl:  3rem;    /* 48px */
  --space-2xl: 4rem;    /* 64px */
  --space-3xl: 6rem;    /* 96px */

  /* Conteneur et grille */
  --container-max: 1200px;
  --container-pad: 1.5rem;

  /* Rayons */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* =============================================================================
   THÈME 1 — GSCURIT Conseil & Formation (Institutionnel, sécurité, conseil)
   ============================================================================= */
[data-theme="gscurit"] {
  --font-display: "Georgia", "Times New Roman", serif;

  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f9;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;

  --color-primary: #0a2540;          /* Bleu marine profond */
  --color-primary-dark: #061729;
  --color-primary-light: #1e3a5f;
  --color-on-primary: #ffffff;

  --color-accent: #c29029;           /* Or mat */
  --color-accent-hover: #a8791c;
  --color-on-accent: #0a2540;

  --hero-bg: linear-gradient(135deg, #0a2540 0%, #061729 100%);
  --hero-text: #ffffff;
  --hero-eyebrow: #e4be63;
}

/* =============================================================================
   THÈME 2 — LC SPORTS CONNEXIONS (Bleu marine dynamique, élégant et lisible)
   ============================================================================= */
[data-theme="sport"] {
  --font-display: var(--font-sans);

  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f9;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #cbd5e1;

  --color-primary: #0a2463;           /* Bleu marine profond */
  --color-primary-dark: #061539;      /* Bleu marine nuit profond */
  --color-primary-light: #163984;     /* Bleu marine moyen */
  --color-on-primary: #ffffff;

  --color-accent: #0a2463;            /* Bleu marine comme fil conducteur */
  --color-accent-hover: #163984;
  --color-on-accent: #ffffff;

  --hero-bg: linear-gradient(135deg, #061539 0%, #0a2463 60%, #0e2e70 100%);
  --hero-text: #ffffff;
  --hero-eyebrow: rgba(255, 255, 255, 0.85);

  /* Palette des sections vitrines LC (voir components.css) */
  --lc-primary: #2502FF;
  --lc-primary-rgb: 37, 2, 255;
  --lc-accent: #00ADFF;
  --lc-accent-rgb: 0, 173, 255;
  --lc-ink: #0E223B;
  --lc-tint: #EEF2FF;
  --lc-deep: #081628;
  --lc-paper: #F8FAFC;
  --lc-card-ink: #475569;
}

/* =============================================================================
   THÈME 3 — LC FORMA PRO SÉCURITÉ (Bleu marine institutionnel, expertise terrain)
   ============================================================================= */
[data-theme="forma"] {
  --font-display: var(--font-sans);

  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f9;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #cbd5e1;

  --color-primary: #b91c1c;          /* Rouge profond */
  --color-primary-dark: #7f1d1d;     /* Rouge très sombre */
  --color-primary-light: #dc2626;    /* Rouge vif */
  --color-on-primary: #ffffff;

  --color-accent: #ef4444;           /* Rouge d'accentuation */
  --color-accent-hover: #dc2626;
  --color-on-accent: #ffffff;

  --hero-bg: linear-gradient(135deg, #0f172a 0%, #7f1d1d 50%, #b91c1c 100%);
  --hero-text: #ffffff;
  --hero-eyebrow: #fecaca;

  /* Palette des sections vitrines LC (voir components.css) */
  --lc-primary: #B91C1C;
  --lc-primary-rgb: 185, 28, 28;
  --lc-accent: #EF4444;
  --lc-accent-rgb: 239, 68, 68;
  --lc-ink: #0E223B;
  --lc-tint: #FEE2E2;
  --lc-deep: #7F1D1D;
  --lc-paper: #F8FAFC;
  --lc-card-ink: #475569;
}

/* =============================================================================
   THÈME HUB (Page carrefour)
   ============================================================================= */
[data-theme="hub"] {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f9;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;

  --color-primary: #0f172a;
  --color-primary-dark: #020617;
  --color-on-primary: #ffffff;

  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-on-accent: #ffffff;

  --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --hero-text: #ffffff;
  --hero-eyebrow: #94a3b8;
}
