/* =========================================================================
   style-base.css — TOKENS ET RESET
   Définit la palette OKLCH, typo, espacement, élévation.
   Doit être chargé en PREMIER.
   ========================================================================= */

:root {
  /* COULEURS DE MARQUE */
  --comvia-blue:        oklch(0.39 0.09 248);  /* #1c4f82 — bleu marine officiel */
  --comvia-blue-soft:   oklch(0.55 0.10 248);
  --comvia-blue-deep:   oklch(0.30 0.08 248);
  --comvia-gold:        oklch(0.74 0.09 80);   /* #d4a85f — accent or */

  /* NEUTRES (tintés vers le bleu marine) */
  --bg:           oklch(0.985 0.003 248);
  --surface:      oklch(0.99 0.002 248);
  --surface-2:    oklch(0.965 0.004 248);
  --surface-3:    oklch(0.94 0.005 248);
  --border:       oklch(0.91 0.006 248);
  --border-strong:oklch(0.85 0.008 248);

  /* TEXTE */
  --text:         oklch(0.22 0.015 248);
  --text-strong:  oklch(0.15 0.018 248);
  --text-muted:   oklch(0.50 0.008 248);
  --text-faint:   oklch(0.68 0.005 248);

  /* COULEURS SIGNAL */
  --signal-urgent:    oklch(0.62 0.18 65);     /* ambre — attention requise */
  --signal-urgent-soft: oklch(0.96 0.045 70);
  --signal-success:   oklch(0.60 0.14 155);    /* vert */
  --signal-success-soft: oklch(0.96 0.04 155);
  --signal-error:     oklch(0.58 0.20 25);     /* rouge */
  --signal-error-soft: oklch(0.96 0.05 25);
  --signal-info:      oklch(0.55 0.10 248);    /* bleu doux — en cours */
  --signal-info-soft: oklch(0.96 0.025 248);

  /* PLATEFORMES (réseaux sociaux) */
  --plat-linkedin: #0a66c2;
  --plat-facebook: #1877f2;
  --plat-instagram: oklch(0.55 0.18 0);
  --plat-blog:     var(--comvia-blue);
  --plat-email:    oklch(0.60 0.15 60);
  --plat-news:     oklch(0.50 0.16 290);

  /* TYPOGRAPHIE */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  --text-xs:   0.72rem;
  --text-sm:   0.85rem;
  --text-base: 0.95rem;
  --text-md:   1.05rem;
  --text-lg:   1.35rem;
  --text-xl:   1.8rem;
  --text-2xl:  2.4rem;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;
  --weight-extra:   800;

  --line-tight:  1.25;
  --line-normal: 1.55;

  /* ESPACEMENT */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  2rem;
  --space-8:  2.5rem;
  --space-10: 3rem;

  /* RADIUS */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* ÉLÉVATIONS */
  --shadow-flat:    0 1px 0 var(--border);
  --shadow-raised:  0 2px 8px oklch(0.20 0.02 248 / 0.06), 0 1px 2px oklch(0.20 0.02 248 / 0.04);
  --shadow-overlay: 0 12px 40px oklch(0.20 0.02 248 / 0.18), 0 2px 8px oklch(0.20 0.02 248 / 0.08);

  /* TRANSITIONS */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast:  120ms;
  --duration-base:  200ms;
  --duration-slow:  300ms;

  /* Z-INDEX */
  --z-base:    1;
  --z-sticky:  10;
  --z-topbar:  100;
  --z-modal:   1000;
  --z-toast:   2000;
}

/* RESET LÉGER */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--line-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a {
  color: var(--comvia-blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--weight-semibold);
  line-height: var(--line-tight);
  color: var(--text-strong);
}

p { margin: 0 0 var(--space-3); }

ul, ol { margin: 0; padding-left: var(--space-5); }
