/* Copie de build de design-capsules/tokens/tokens.css : valeurs de l’ancienne palette (archive 2025) retirées,
   @font-face retiré (police servie en WOFF2 par site.css). Surchargé par tokens-premium.css.
   ==========================================================================
   Capsules — Design tokens (source : « Capsules Design System », Claude Design,
   d'après le Manuel de marque Capsules, mars 2025). Validé par Pape le 21/10/2026.
   ⚠ Section GRILLE = proposition de Ndèye (le design system n'a pas de tokens de grille).
   ========================================================================== */

/* --- Polices ------------------------------------------------------------- */
/* Bricolage Grotesque : libre (SIL OFL 1.1), fichier fourni dans /fonts. */

/* Joly Headline et Monigue : licences commerciales À ACHETER avant mise en ligne
   (seules une version d'essai / démo existent). Déclarer les @font-face une fois
   les fichiers licenciés reçus. En attendant, les fallbacks ci-dessous s'appliquent. */

:root {
  /* --- Couleurs de marque -------------------------------------------------- */
  /* Secondaires */
  /* Blanc : uniquement cartes flottantes et champs de formulaire */
  --c-white:            #FFFFFF;

  /* --- Neutres ------------------------------------------------------------- */
  --c-black:  #0B0D14;
  --c-ink-90: #1F2438;
  --c-ink-50: #6B7088;
  --c-ink-30: #A7ABBE;
  --c-ink-10: #D7DAE4;

  /* --- Sémantique ---------------------------------------------------------- */
  --color-surface-raised:   var(--c-white);      /* cartes flottantes, inputs */
  --color-text:             var(--c-ink-90);
  --color-text-muted:       var(--c-ink-50);
  --color-border:           var(--c-ink-10);

  /* États boutons (survol = 8–10 % plus sombre ; valeurs précalculées ~9 %) */

  /* Dégradé : UNIQUEMENT True Blue -> Delft Blue */

  /* --- Typographie --------------------------------------------------------- */
  --font-sans:      "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-editorial: "Joly Headline", Georgia, "Times New Roman", serif;   /* serif éditoriale, en italique */
  --font-impact:    "Monigue", "Bricolage Grotesque", Impact, sans-serif;  /* display, 2 à 5 mots max */

  /* Échelle (desktop) : taille / graisse / interlignage / approche */
  --fs-h1: 72px;  --fw-h1: 700; --lh-h1: 1.05; --ls-h1: -0.02em;
  --fs-h2: 48px;  --fw-h2: 600; --lh-h2: 1.2;  --ls-h2: -0.015em;
  --fs-h3: 30px;  --fw-h3: 600; --lh-h3: 1.2;  --ls-h3: -0.01em;
  --fs-h4: 24px;  --fw-h4: 600; --lh-h4: 1.25; --ls-h4: -0.01em;
  --fs-h5: 20px;  --fw-h5: 500; --lh-h5: 1.3;  --ls-h5: 0;
  --fs-lead: 20px;    --lh-lead: 1.6;
  --fs-body: 16px;    --lh-body: 1.6;
  --fs-caption: 14px; --lh-caption: 1.45;
  --fs-eyebrow: 12px; --ls-eyebrow: 0.12em; --tt-eyebrow: uppercase; --fw-eyebrow: 600;
  --lh-display: 1.05;

  /* --- Espacements (échelle 4 px) ----------------------------------------- */
  --space-0: 0;     --space-1: 4px;   --space-2: 8px;   --space-3: 12px;
  --space-4: 16px;  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;
  --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --space-24: 96px; --space-32: 128px;

  /* --- Rayons -------------------------------------------------------------- */
  --radius-xs: 4px;  --radius-sm: 8px;  --radius-md: 14px; --radius-lg: 22px;
  --radius-xl: 32px; --radius-2xl: 48px; --radius-pill: 999px;
  --radius-card: var(--radius-lg);
  --radius-button: var(--radius-pill);
  --radius-tag: var(--radius-pill);

  /* --- Ombres (neutres, encre #0B0D14) ---------------------------------- */
  --shadow-xs: 0 1px 2px rgba(11, 13, 20, 0.06);
  --shadow-sm: 0 2px 6px rgba(11, 13, 20, 0.08);
  --shadow-md: 0 8px 20px rgba(11, 13, 20, 0.10);
  --shadow-lg: 0 18px 40px rgba(11, 13, 20, 0.14);

  /* --- Mouvement ----------------------------------------------------------- */
  --dur-fast: 140ms; --dur-base: 220ms; --dur-slow: 420ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --press-scale: 0.98;
  --focus-ring: 0 0 0 3px rgba(20, 207, 147, 0.45);

  /* --- GRILLE — PROPOSITION DE NDÈYE (hors design system, à valider) ------ */
  --grid-columns: 12;
  --container-max: 1280px;
  --grid-gutter: 16px;   /* mobile */
  --grid-margin: 24px;   /* mobile */
  --bp-sm: 640px; --bp-md: 768px; --bp-lg: 1024px; --bp-xl: 1280px;
}

@media (min-width: 1024px) {
  :root {
    --grid-gutter: 24px; /* desktop */
    --grid-margin: 80px; /* desktop */
  }
}

/* --- Base ----------------------------------------------------------------- */
html { background: var(--color-surface); color: var(--color-text); }
body { font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); }
h1 { font: var(--fw-h1) var(--fs-h1)/var(--lh-h1) var(--font-sans); letter-spacing: var(--ls-h1); }
h2 { font: var(--fw-h2) var(--fs-h2)/var(--lh-h2) var(--font-sans); letter-spacing: var(--ls-h2); }
h3 { font: var(--fw-h3) var(--fs-h3)/var(--lh-h3) var(--font-sans); letter-spacing: var(--ls-h3); }
h4 { font: var(--fw-h4) var(--fs-h4)/var(--lh-h4) var(--font-sans); letter-spacing: var(--ls-h4); }
h5 { font: var(--fw-h5) var(--fs-h5)/var(--lh-h5) var(--font-sans); }
.lead    { font-size: var(--fs-lead); line-height: var(--lh-lead); }
.caption { font-size: var(--fs-caption); line-height: var(--lh-caption); }
.eyebrow { font-size: var(--fs-eyebrow); font-weight: var(--fw-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.editorial { font-family: var(--font-editorial); font-style: italic; }
.impact    { font-family: var(--font-impact); line-height: var(--lh-display); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Conteneur + grille (proposition) */
*, *::before, *::after { box-sizing: border-box; }
.container { width: 100%; max-width: calc(var(--container-max) + 2 * var(--grid-margin)); margin-inline: auto; padding-inline: var(--grid-margin); }
.grid { display: grid; grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr)); column-gap: var(--grid-gutter); }

/* Boutons pill (exemple de référence) */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); border: 0; border-radius: var(--radius-button);
  font-family: var(--font-sans); font-weight: 600; cursor: pointer; box-shadow: var(--shadow-xs);
  transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), background-color var(--dur-base) var(--ease-standard); }
.btn:hover  { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn:active { transform: scale(var(--press-scale)); }
.btn--sm { height: 32px; padding-inline: var(--space-4); font-size: 14px; }
.btn--md { height: 40px; padding-inline: var(--space-5); font-size: 15px; }
.btn--lg { height: 48px; padding-inline: var(--space-6); font-size: 16px; }
.btn--xl { height: 56px; padding-inline: var(--space-8); font-size: 18px; }
.btn--primary   { background: var(--color-brand);  color: var(--c-white); }
.btn--primary:hover   { background: var(--color-brand-hover); }
.btn--accent    { background: var(--color-accent); color: var(--c-ink-90); }
.btn--accent:hover    { background: var(--color-accent-hover); }
.btn--inverted:hover  { background: var(--color-inverted-hover); }
.btn--ghost     { background: transparent; color: var(--color-text); box-shadow: inset 0 0 0 1.5px var(--c-ink-30); }

.card { background: var(--color-surface-raised); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); padding: var(--space-8);
  transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.input { background: var(--c-white); border: 1.5px solid var(--c-ink-10); border-radius: var(--radius-sm); height: 48px; padding-inline: var(--space-4);
  font: 16px/1.4 var(--font-sans); color: var(--color-text); transition: border-color var(--dur-fast); }
.input:focus { border-color: var(--c-black); box-shadow: var(--focus-ring); outline: none; }

.tag { display: inline-flex; align-items: center; height: 28px; padding-inline: var(--space-3); border-radius: var(--radius-tag);
  font-size: var(--fs-caption); font-weight: 500; background: var(--c-ink-10); color: var(--c-ink-90); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; } }
