/**
 * WelcomeBooklet - Variables CSS & Theme Tokens
 * Couleurs, typographie et élévation
 */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Couleurs principales demandées */
  --wb-primary: #0664a7;
  --wb-secondary: #d83715;
  --wb-tertiary: #4d4d4d;
  --wb-success: #10b981;
  --wb-info: #06b6d4;
  --wb-warning: #f59e0b;
  --wb-danger: #ef4444;

  /* Thème clair (défaut) */
  --wb-bg: #f9fafb;
  --wb-surface: #ffffff;
  --wb-surface-card: #ffffff;
  --wb-surface-muted: #f3f4f6;
  --wb-text: #1e293b;
  --wb-text-secondary: #203040;
  --wb-text-muted: #64748b;
  --wb-border: #e2e8f0;
  --wb-light: #ffffff;
  --wb-dark: #0f172a;

  /* Intégration variables Bootstrap 5.3 */
  --bs-body-bg: var(--wb-bg);
  --bs-body-color: var(--wb-text);
  --bs-primary: var(--wb-primary);
  --bs-secondary: var(--wb-secondary);
  --primary-rgb: 6, 100, 167;
  --secondary-rgb: 216, 55, 21;
  --bs-primary-rgb: 6, 100, 167;
  --bs-secondary-rgb: 216, 55, 21;

  /* Dégradés */
  --gradient-primary: linear-gradient(135deg, var(--wb-primary) 0%, var(--wb-secondary) 100%);
  --gradient-light: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Typographie */
  --font-family-base: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-heading: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rayons de bordure */
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;

  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Thème sombre forcé ou via préférence système */
[data-bs-theme="dark"] {
  --wb-bg: #0f172a;
  --wb-surface: #1e293b;
  --wb-surface-card: #1e293b;
  --wb-surface-muted: #182234;
  --wb-text: #f8fafc;
  --wb-text-secondary: #a5b4c7;
  --wb-text-muted: #94a3b8;
  --wb-border: #334155;
  --wb-light: #1e293b;
  --wb-dark: #f8fafc;

  --bs-body-bg: var(--wb-bg);
  --bs-body-color: var(--wb-text);
  --bs-border-color: var(--wb-border);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) {
    --wb-bg: #0f172a;
    --wb-surface: #1e293b;
    --wb-surface-card: #1e293b;
    --wb-surface-muted: #182234;
    --wb-text: #f8fafc;
    --wb-text-secondary: #a5b4c7;
    --wb-text-muted: #94a3b8;
    --wb-border: #334155;
    --wb-light: #1e293b;
    --wb-dark: #f8fafc;

    --bs-body-bg: var(--wb-bg);
    --bs-body-color: var(--wb-text);
    --bs-border-color: var(--wb-border);
  }
}