/* ============================================================
   tokens.css — Auréa Gems Investment
   Design system « Dossier relié » (BC4 validé)
   Single source of truth pour toutes les CSS custom properties.
   ============================================================ */

@import url('./fonts.css'); /* Self-hosted — RGPD, aucune requête externe */

:root {
  /* ----------------------------------------------------------
     PALETTE — Papier (sections claires)
     ---------------------------------------------------------- */
  --paper: #F2EFE8;          /* fond principal section claire */
  --paper-deep: #EAE5DA;     /* fond accentué (cartes, blocs) */
  --ink: #1A1612;            /* texte principal sur papier */
  --ink-soft: #44392F;       /* texte secondaire sur papier */
  --ink-mute: #847A6E;       /* texte tertiaire (labels mono) */

  /* ----------------------------------------------------------
     PALETTE — Atelier (sections sombres)
     ---------------------------------------------------------- */
  --charcoal: #14110F;       /* fond principal section sombre */
  --charcoal-deep: #0D0B09;  /* fond accentué section sombre */
  --ivory: #F4ECDC;          /* texte principal sur atelier */
  --ivory-soft: #D4C9B0;     /* texte secondaire sur atelier */

  /* ----------------------------------------------------------
     PALETTE — Or / Champagne (accent éditorial signature)
     ---------------------------------------------------------- */
  --gold-deep: #8C6B1C;      /* or sombre — accents sur papier */
  --gold-mid: #B8893D;       /* or moyen — face avant SVG */
  --gold-light: #D4A55C;     /* or clair — face dessus SVG */
  --gold-pale: #F5D588;      /* or pâle — reflets, gradients */
  --champagne: #C9A86A;      /* champagne — accents atelier */
  --champagne-light: #E2D7BD;
  --champagne-pale: #F4ECDC;

  /* ----------------------------------------------------------
     PALETTE — Argent (utilisé dans SVG métaux)
     ---------------------------------------------------------- */
  --silver-deep: #5E574A;    /* face ombre */
  --silver-mid: #8C8678;     /* face avant */
  --silver-light: #B8B0A0;   /* face dessus */
  --silver-pale: #D4CFC2;    /* reflets */
  --silver-ink: #423D33;     /* contour interne */

  /* ----------------------------------------------------------
     PALETTE — Accents éditoriaux & filets
     ---------------------------------------------------------- */
  --terre-brulee: #6B3410;   /* accent rare — 1-2 occurrences max */
  --rule: #ADA59A;           /* filet principal */
  --rule-soft: #D2CCBF;      /* filet doux (séparateurs discrets) */
  --rule-atelier: rgba(201, 168, 106, 0.22); /* filet champagne sur atelier */

  /* ----------------------------------------------------------
     TYPOGRAPHIE — Familles
     ---------------------------------------------------------- */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* ----------------------------------------------------------
     TYPOGRAPHIE — Échelle responsive (clamp)
     ---------------------------------------------------------- */
  --text-xs: clamp(0.66rem, 0.62rem + 0.18vw, 0.75rem);    /* 10.5 → 12 px (mono labels) */
  --text-sm: clamp(0.78rem, 0.74rem + 0.2vw, 0.875rem);    /* 12.5 → 14 px */
  --text-base: clamp(0.93rem, 0.9rem + 0.2vw, 1rem);       /* 15 → 16 px (body) */
  --text-lg: clamp(1.06rem, 1rem + 0.3vw, 1.18rem);        /* 17 → 19 px */
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);      /* 20 → 24 px (lede) */
  --text-2xl: clamp(1.75rem, 1.55rem + 1vw, 2.5rem);       /* 28 → 40 px (h2) */
  --text-3xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);           /* 40 → 64 px (h1 section) */
  --text-hero: clamp(3.5rem, 2.5rem + 4.5vw, 6.25rem);     /* 56 → 100 px (hero) */

  /* ----------------------------------------------------------
     TYPOGRAPHIE — Hauteurs de ligne
     ---------------------------------------------------------- */
  --leading-tight: 1.05;    /* titres hero, displays */
  --leading-normal: 1.55;   /* texte courant */
  --leading-loose: 1.75;    /* texte éditorial long */

  /* ----------------------------------------------------------
     TYPOGRAPHIE — Interlettrage
     ---------------------------------------------------------- */
  --tracking-tight: -0.015em;  /* titres serif */
  --tracking-normal: 0;        /* texte courant */
  --tracking-wide: 0.22em;     /* mono uppercase labels */

  /* ----------------------------------------------------------
     ESPACEMENTS — Échelle 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96 / 128
     ---------------------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 160px;   /* hero padding-top */

  /* ----------------------------------------------------------
     MOTION — Courbes d'easing & durées
     ---------------------------------------------------------- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 200ms;
  --duration-mid: 400ms;
  --duration-slow: 700ms;

  /* ----------------------------------------------------------
     LAYOUT — Largeurs & breakpoints
     ---------------------------------------------------------- */
  --container-max: 1280px;
  --rail-width: 220px;        /* rail latéral sticky scroll-spy */
  --bp-mobile: 640px;
  --bp-tablet: 1024px;
  --bp-desktop: 1440px;
}
