/* =============================================================
   Claire & François — Design tokens
   v1 · Direction « Lumineuse / Méridionale »
   ----------------------------------------------------------------
   Toute décision visuelle est exprimée ici en variables CSS.
   Une variable change ⇒ le site change. N'utilisez jamais de
   valeur hex ou de px en dur dans les composants.
   ============================================================= */


:root {
  /* =========================================================
     1. COULEURS — Palette « Lumineuse »
     ----------------------------------------------------------
     Le crème est la couleur principale. Le marine est l'encre.
     L'ocre est le seul accent chaud. Le reste est neutre.
     ========================================================= */

  /* Papier & sables — la lumière */
  --paper:        #FBF7EE;   /* canvas dominant, fond de page */
  --paper-warm:   #F6EFDF;   /* alt. plus chaude pour bandeaux */
  --sand:         #F5F0E6;   /* surface posée, callouts paisibles — voile très léger sur paper */
  --linen:        #E2D6BB;   /* surface chaude marquée (rare) */

  /* Marine — l'encre, l'institution */
  --ink:          #1A2942;   /* corps de texte sur crème */
  --marine:       #1F3A5C;   /* marine signature, headlines */
  --marine-deep:  #142540;   /* marine plus profond pour contours/icônes */
  --marine-soft:  #4A6783;   /* marine désaturé, sous-titres */
  --marine-mist:  #B8C8D6;   /* marine très clair, fonds tranquilles */

  /* Ocre — l'accent chaleureux unique (variante « solaire » retenue) */
  --ocher:        #D9A24A;   /* accent principal — italiques, liens */
  --ocher-deep:   #A06E25;   /* hover, états actifs */
  --ocher-soft:   #E8C896;   /* fonds discrets, surlignages */
  --ocher-mist:   #F5E7CB;   /* surface ocre très tirée */

  /* Terre — accent secondaire chaud (parcimonie) */
  --terracotta:   #B26B45;   /* tags, micro-accents éditoriaux */

  /* Pierre — neutres tonals (gris chauds) */
  --stone-900:    #2A2620;   /* texte sur très clair */
  --stone-700:    #5A5248;   /* texte secondaire, méta */
  --stone-500:    #8A8276;   /* helper, captions */
  --stone-300:    #C8BFB0;   /* séparateurs marqués */
  --stone-200:    #DDD3C0;   /* séparateurs */
  --stone-100:    #EDE6D4;   /* fonds tranquilles alt. */

  /* Sémantique — discrète, jamais criarde */
  --success:      #5D7C5B;
  --success-bg:   #E4ECDF;
  --warn:         #B68A3D;
  --warn-bg:      #F5E7CB;
  --error:        #A8553D;
  --error-bg:     #F1DBCF;
  --info:         #4A6783;
  --info-bg:      #DDE6EE;

  /* Voiles & filets */
  --rule:         color-mix(in srgb, var(--ink) 10%, transparent);
  --rule-strong:  color-mix(in srgb, var(--ink) 18%, transparent);
  --veil-light:   color-mix(in srgb, var(--paper) 88%, transparent);
  --veil-marine:  color-mix(in srgb, var(--marine) 92%, transparent);

  /* Paper sur fond sombre (texte secondaire, méta, filets) — évite les
     rgba(251,247,238,X) en dur dans les composants. Les % correspondent
     aux usages réels recensés dans le site : texte secondaire (72),
     texte tertiaire (60), méta/copyright (40), filets (18), filets très
     discrets (12). */
  --paper-72:     rgba(251, 247, 238, 0.72);
  --paper-60:     rgba(251, 247, 238, 0.6);
  --paper-40:     rgba(251, 247, 238, 0.4);
  --paper-18:     rgba(251, 247, 238, 0.18);
  --paper-12:     rgba(251, 247, 238, 0.12);


  /* =========================================================
     2. TYPOGRAPHIE — Pairing 1
     ----------------------------------------------------------
     Display & headlines : Fraunces (sérif éditorial chaud,
       opsz variable, italique pour l'emphase manuscrite)
     Corps & UI         : Public Sans (humaniste sobre)
     Données & mono     : JetBrains Mono
     ========================================================= */

  --serif:    'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:     'Public Sans', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --mono:     'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Échelle complète */
  --fs-display:  clamp(56px, 7vw,  88px);   /* hero éditorial */
  --fs-h1:       clamp(40px, 4.8vw, 60px);
  --fs-h2:       clamp(30px, 3.4vw, 44px);
  --fs-h3:       clamp(22px, 2.0vw, 26px);
  --fs-h4:       18px;
  --fs-lede:     19px;       /* chapô, intro */
  --fs-body:     16px;
  --fs-small:    14px;
  --fs-tiny:     12px;
  --fs-eyebrow:  12px;
  --fs-mono:     13px;

  /* Line-heights */
  --lh-display:  1.04;
  --lh-heading:  1.12;
  --lh-h3:       1.2;
  --lh-lede:     1.55;
  --lh-body:     1.7;
  --lh-tight:    1.4;

  /* Tracking */
  --tr-display:  -0.018em;   /* serré pour le calme typographique */
  --tr-heading:  -0.012em;
  --tr-body:     0;
  --tr-eyebrow:  0.22em;     /* large, posé, lettres capitales */
  --tr-mono:     0.02em;

  /* Optical size + weights par défaut (Fraunces variable) */
  --fraunces-display: 'opsz' 144, 'SOFT' 50, 'WONK' 0;
  --fraunces-text:    'opsz' 14;


  /* =========================================================
     3. ESPACEMENT & GRILLE
     ----------------------------------------------------------
     Pas de 4 px ; utilisez les paliers, pas des valeurs libres.
     ========================================================= */

  --s-1:   4px;
  --s-2:   8px;
  --s-3:   12px;
  --s-4:   16px;
  --s-5:   24px;
  --s-6:   32px;
  --s-7:   48px;
  --s-8:   64px;
  --s-9:   96px;
  --s-10: 128px;

  --gutter:    clamp(20px, 4vw, 56px);
  --container: 1240px;
  --section-y: clamp(80px, 10vw, 128px);


  /* =========================================================
     4. RAYONS & ÉLÉVATION
     ----------------------------------------------------------
     Rayons sobres. Ombres rares, basses, jamais bleutées.
     ========================================================= */

  --r-0:   0;
  --r-1:   4px;       /* champs, micro-éléments */
  --r-2:   8px;       /* cartes, boutons */
  --r-3:   16px;      /* modales, larges surfaces */
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(26, 41, 66, 0.05);
  --shadow-2: 0 12px 28px -16px rgba(26, 41, 66, 0.18);
  --shadow-3: 0 24px 60px -28px rgba(26, 41, 66, 0.28);


  /* =========================================================
     5. TRANSITIONS & EASINGS
     ========================================================= */
  --ease-out:   cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-soft:  cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:     150ms;
  --t-base:     250ms;
  --t-slow:     400ms;


  /* =========================================================
     6. BREAKPOINTS (référence ; usage en @media manuel)
     ----------------------------------------------------------
     Convention adoptée :
       sm  ≤ 480px  → mobile portrait étroit (iPhone SE…)
       md  ≤ 720px  → mobile/petite tablette portrait
       lg  ≤ 980px  → tablette / écran étroit (collapse de la nav)
       xl  ≤ 1240px → desktop normal / max-width container
     N'utilisez QUE ces 4 valeurs dans tous les @media du site.
     ========================================================= */
}


/* =============================================================
   STYLES SÉMANTIQUES — utilisables directement
   ============================================================= */

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-heading);
  color: var(--marine);
  text-wrap: balance;
  font-feature-settings: "ss01";
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  color: var(--marine);
  font-variation-settings: var(--fraunces-display);
}

.lede {
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  color: var(--stone-700);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--stone-700);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ocher);
}

.mono {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tr-mono);
}

em.accent, em.gold, .accent-text, h2 em {
  font-style: italic;
  color: var(--ocher);
  font-weight: 400;
}

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
small { font-size: var(--fs-small); color: var(--stone-700); }

::selection { background: var(--ocher-soft); color: var(--ink); }
