/* ==========================================================================
   S.A SOLUTIONS — Jetons de design
   Charte : bleu #07366A · bleu nuit #021C3D · or #DDAF55 · or clair #F1CC78
            blanc cassé #F7F5F0 · anthracite #30343B
   Esprit « cabinet » : le bleu nuit pour les moments de marque (en-têtes,
   signature, appel à l'action, pied de page), l'ivoire pour le contenu, des
   filets d'or fins et un seul accent coloré. Contrôles en pilule, titres à
   graisse intermédiaire.
   ========================================================================== */

/* Propriétés enregistrées : permettent le fondu bleu nuit -> ivoire au scroll */
@property --bg        { syntax: "<color>"; inherits: true; initial-value: #021C3D; }
@property --fg        { syntax: "<color>"; inherits: true; initial-value: #F7F5F0; }
@property --fg-muted  { syntax: "<color>"; inherits: true; initial-value: #AEB9CB; }
@property --heading   { syntax: "<color>"; inherits: true; initial-value: #F7F5F0; }
@property --line      { syntax: "<color>"; inherits: true; initial-value: rgba(247, 245, 240, 0.14); }
@property --accent-text { syntax: "<color>"; inherits: true; initial-value: #DDAF55; }
@property --cursor    { syntax: "<color>"; inherits: true; initial-value: #DDAF55; }

:root {
  /* --- Couleurs de marque -------------------------------------------- */
  --c-night: #021C3D;        /* fond principal (équivalent "Onyx" Mercury)   */
  --c-night-deep: #01142E;   /* pied de page, rideau                          */
  --c-card: #062750;         /* carte, un cran plus claire (équiv. "Graphite") */
  --c-card-hi: #0A3264;      /* surface interactive / survol                   */
  --c-blue: #07366A;         /* bleu S.A Solutions                             */
  --c-blue-glow: #0E4C8E;    /* halo lumineux                                  */
  --c-gold: #DDAF55;         /* accent unique (équiv. "Cobalt")                */
  --c-gold-light: #F1CC78;
  --c-gold-deep: #B88A36;
  --c-gold-ink: #86621A;     /* or lisible sur fond ivoire (contraste 5:1)     */
  --c-ivory: #F7F5F0;
  --c-ash: #AEB9CB;          /* texte secondaire sur fond sombre               */
  --c-anthracite: #30343B;
  --c-slate: #5A6270;        /* texte secondaire sur fond ivoire               */
  --c-white: #FFFFFF;        /* cartes posées sur l'ivoire                     */
  --c-error: #F0A89D;
  --c-error-ink: #B3261E;    /* erreur lisible sur fond clair                  */
  --line-light: rgba(48, 52, 59, 0.12);
  --shadow-soft: 0 26px 60px -42px rgba(2, 28, 61, 0.32);

  --grad-brand: linear-gradient(160deg, #07366A 0%, #021C3D 100%);
  --grad-gold: linear-gradient(120deg, #F1CC78 0%, #DDAF55 45%, #B88A36 100%);
  --grad-line-gold: linear-gradient(90deg, transparent, #B88A36 18%, #DDAF55 40%, #F1CC78 50%, #DDAF55 60%, #B88A36 82%, transparent);
  --grad-hairline: linear-gradient(90deg, #B88A36, #DDAF55 45%, rgba(221, 175, 85, 0.1));

  /* --- Typographie ----------------------------------------------------- */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-caption: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  --fs-h4: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-h3: clamp(1.75rem, 1.45rem + 1.1vw, 2.5rem);
  --fs-h2: clamp(2.25rem, 1.55rem + 2.7vw, 4.25rem);
  --fs-h1: clamp(2.6rem, 1.5rem + 4.4vw, 5.75rem);
  --fs-display: clamp(3rem, 1rem + 8vw, 10rem);

  --fw-light: 300;
  --fw-body: 400;
  --fw-ui: 480;          /* le 480 de Mercury : ni gras, ni maigre */
  --fw-strong: 560;
  --fw-display: 500;

  --lh-tight: 1.04;
  --lh-heading: 1.1;
  --lh-body: 1.65;

  --tracking-caps: 0.18em;
  --tracking-wordmark: 0.3em;

  /* --- Espacements (base 4 px) ---------------------------------------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-14: 56px; --sp-18: 72px;
  --sp-28: 112px; --sp-32: 128px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --nav-h: 76px;

  /* --- Rayons ---------------------------------------------------------- */
  --radius-sm: 4px;
  --radius-card: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* --- Mouvement ------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.3s;
  --dur: 0.6s;
  --dur-slow: 1.1s;
  --theme-dur: 0.9s;

  /* --- Plans ----------------------------------------------------------- */
  --z-grain: 80;
  --z-menu: 110;
  --z-nav: 120;
  --z-cursor: 200;
  --z-curtain: 300;
}
