/* ============================================================
   EQUISENSIEL — Colors & Type foundations
   Coaching & formation professionnelle — Martine Thernisien
   ------------------------------------------------------------
   Source of truth: brand "Couleurs" guide (Pantone + HEX) and
   the watercolor wordmark. Palette is warm (equine / ocre) +
   cool (ciel / bleu) — balance, sens, essentiel.
   ============================================================ */

/* --- Webfonts -------------------------------------------------
   The brand guide sets headings in a thin geometric sans (a
   Futura / Century-Gothic-family face) and body copy in a clean
   humanist sans. The original print fonts were not supplied, so
   these are the closest Google Fonts matches:
     · Jost   → geometric display (Futura-like, light weights)
     · Mulish → humanist body (warm, highly legible)
     · Sacramento → occasional script accent, echoing the
                    hand-lettered logo (use VERY sparingly)
   Swap the @font-face / hrefs if the licensed originals arrive.
-------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Mulish:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Sacramento&display=swap');

:root {
  /* ---------- RAW PALETTE (from the brand guide) ---------- */
  --ocre:        #AB6A2E; /* Pantone 471 C  — terre, énergie chaude */
  --corail:      #E6996D; /* Pantone 163 C  — chaleur, accueil      */
  --soleil:      #F6D078; /* Minion Yellow  — optimisme, lumière    */
  --bleu:        #78A2B1; /* Pantone 550 C  — calme, profondeur     */
  --ciel:        #CFE6F1; /* Pantone 290 C  — air, légèreté         */
  --lavande:     #BBA9CE; /* Pantone 264 C  — sérénité, recul       */
  --encre:       #1D1D1B; /* near-black     — texte, signature      */

  /* ---------- TINTS / SHADES (derived, harmonious) ---------- */
  --ocre-700:    #8A5424;
  --ocre-100:    #F2E2D1;
  --bleu-700:    #547984;
  --bleu-300:    #A9C4CE;
  --bleu-50:     #EAF3F6;
  --ciel-50:     #F1F8FB;
  --corail-100:  #F7E0D3;
  --lavande-100: #ECE6F2;
  --soleil-100:  #FCF1D2;

  /* ---------- NEUTRALS ---------- */
  --blanc:       #FFFFFF;
  --creme:       #FBFAF7; /* warm off-white page base            */
  --gris-50:     #F4F3F0;
  --gris-100:    #E9E7E2;
  --gris-200:    #D9D6CF;
  --gris-400:    #A8A49B;
  --gris-600:    #6E6A61;
  --gris-800:    #3A3833;

  /* ============================================================
     SEMANTIC TOKENS
     ============================================================ */

  /* Surfaces */
  --bg:          var(--creme);
  --bg-elevated: var(--blanc);
  --bg-soft:     var(--bleu-50);   /* airy section background     */
  --bg-warm:     var(--corail-100);/* warm section background     */
  --bg-ink:      var(--encre);     /* dark section / footer       */

  /* Foreground / text */
  --fg1:         var(--encre);     /* primary text                */
  --fg2:         var(--gris-600);  /* secondary / supporting text */
  --fg3:         var(--gris-400);  /* muted / captions            */
  --fg-on-ink:   #F3F1EC;          /* text on dark surfaces       */
  --fg-on-color: #FFFFFF;          /* text on brand color fills   */

  /* Brand roles */
  --primary:        var(--bleu);    /* calm, professional anchor  */
  --primary-strong: var(--bleu-700);
  --secondary:      var(--ocre);    /* warm, equine energy        */
  --secondary-strong:var(--ocre-700);
  --highlight:      var(--soleil);  /* light / optimism accent    */

  /* Lines & borders */
  --line:        var(--gris-200);
  --line-soft:   var(--gris-100);
  --line-strong: var(--encre);     /* hairline used in brand guide */

  /* Focus / interactive */
  --focus-ring:  color-mix(in srgb, var(--bleu) 55%, transparent);
  --link:        var(--bleu-700);
  --link-hover:  var(--ocre);

  /* ============================================================
     TYPOGRAPHY
     ============================================================ */
  --font-display: 'Jost', 'Century Gothic', 'Futura', system-ui, sans-serif;
  --font-body:    'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script:  'Sacramento', 'Brush Script MT', cursive;

  /* Type scale (1.250 — major third, generous & calm) */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.375rem;  /* 22px */
  --text-xl:   1.75rem;   /* 28px */
  --text-2xl:  2.25rem;   /* 36px */
  --text-3xl:  3rem;      /* 48px */
  --text-4xl:  3.75rem;   /* 60px */

  /* Weights */
  --w-light:  300;
  --w-reg:    400;
  --w-med:    500;
  --w-semi:   600;
  --w-bold:   700;

  /* Line heights */
  --lh-tight: 1.1;
  --lh-snug:  1.25;
  --lh-body:  1.7;

  /* Letter spacing — geometric display likes a touch of air */
  --ls-display: 0.01em;
  --ls-eyebrow: 0.22em;  /* uppercase eyebrows / labels */

  /* ============================================================
     SHAPE / ELEVATION / SPACING
     ============================================================ */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Soft, watercolor-adjacent shadows — never harsh */
  --shadow-sm: 0 1px 2px rgba(29,29,27,0.05), 0 1px 3px rgba(29,29,27,0.04);
  --shadow:    0 6px 18px rgba(29,29,27,0.07), 0 2px 6px rgba(29,29,27,0.05);
  --shadow-lg: 0 18px 48px rgba(84,121,132,0.16), 0 6px 16px rgba(29,29,27,0.06);
  --shadow-color: 0 16px 40px rgba(171,106,46,0.18); /* warm glow */

  /* 8px spacing rhythm */
  --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;

  /* Layout */
  --maxw: 1160px;
  --maxw-prose: 68ch;

  /* Motion — gentle, organic, never bouncy */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  240ms;
  --dur-slow: 480ms;
}

/* ============================================================
   SEMANTIC ELEMENT STYLES
   Apply to a page by giving <body class="eq"> (or scope as needed).
   ============================================================ */
.eq {
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  font-weight: var(--w-reg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.eq h1, .eq h2, .eq h3, .eq h4 {
  font-family: var(--font-display);
  font-weight: var(--w-light);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--fg1);
  margin: 0;
  text-wrap: balance;
}
.eq h1 { font-size: var(--text-4xl); }
.eq h2 { font-size: var(--text-2xl); }
.eq h3 { font-size: var(--text-xl); font-weight: var(--w-reg); }
.eq h4 { font-size: var(--text-lg); font-weight: var(--w-med); }

.eq p { margin: 0 0 1em; max-width: var(--maxw-prose); text-wrap: pretty; }
.eq a { color: var(--link); text-decoration: none; transition: color var(--dur) var(--ease); }
.eq a:hover { color: var(--link-hover); }

/* Eyebrow / kicker — uppercase tracked label (used above titles) */
.eq-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--w-semi);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--secondary);
}

/* Script accent — echoes the logo, decorative only */
.eq-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--text-3xl);
  color: var(--secondary);
  line-height: 1;
}

/* The brand "tri-mot" signature: Equilibre – Sens – Essentiel */
.eq-trimot {
  font-family: var(--font-display);
  font-weight: var(--w-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: var(--text-sm);
  color: var(--fg2);
}
