/* =========================================================
   IA JURIDIQUE — Colors & Typography
   Source: https://www.iajuridique.com (Squarespace, fr-FR)
   ========================================================= */

/* Per Emmanuelle's Charte Graphique V1.0 (May 2026):
   Work Sans (300/400/500) for everything; Source Serif 4 italic for
   citations / editorial accents only. Both via Google Fonts. */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;1,8..60,400;1,8..60,500&display=swap');

:root {
  /* ---------- BRAND PALETTE ----------
     A minimal, editorial palette: black + white + a single signature
     crimson-pink that derives directly from the "IA" mark in the logo.
     Used sparingly — accent only on key letters, links, and rules.       */
  /* From the official Charte Graphique V1.0:
     Encre #0A0A0A  ·  Papier #FAFAF7  ·  Corail #FF3D5A.            */
  --ij-ink:        #0A0A0A;   /* Encre — text, logo black, dark surfaces */
  --ij-ink-soft:   #2A2624;   /* warm graphite — secondary text          */
  --ij-ink-mute:   #6B6663;   /* warm grey — metadata, captions          */
  --ij-rule:       #E4DFD9;   /* hairline / dividers                     */
  --ij-paper:      #FAFAF7;   /* Papier — off-white tiède, jamais blanc pur */
  --ij-paper-warm: #F3EFE7;   /* beige plus tiède — section « À propos » */
  --ij-paper-deep: #ECE7DD;   /* sand — quotes, callouts                 */
  --ij-pure-white: #FFFFFF;   /* only when explicitly needed              */

  /* Corail — the signature accent. RULE D'OR: only on words/letters/links.
     Never as a section background.
     EXCEPTION (décision propriétaire, 2026-06) : le CTA « S'abonner à mes
     newsletters » utilise le corail PROFOND (#E02744) en fond plein + texte
     blanc — action de conversion prioritaire, voulue « la plus visible ».
     #E02744 (et non #FF3D5A) pour garder le texte blanc conforme AA. */
  --ij-rouge:      #FF3D5A;   /* Corail — « IA », links, key words      */
  --ij-rouge-deep: #E02744;   /* hover/pressed + fond du CTA newsletter   */
  --ij-rouge-soft: #FFE3E8;   /* tint background — use sparingly         */

  /* Dark mode / portrait backdrop — warm near-black used in photography */
  --ij-noir:       #1A1614;
  --ij-noir-soft:  #28221F;

  /* ---------- SEMANTIC ROLES ---------- */
  --fg-primary:    var(--ij-ink);
  --fg-secondary:  var(--ij-ink-soft);
  --fg-muted:      var(--ij-ink-mute);
  --fg-accent:     var(--ij-rouge);
  --fg-on-dark:    #FFFFFF;

  --bg-primary:    var(--ij-paper);
  --bg-tinted:     var(--ij-paper-warm);
  --bg-quote:      var(--ij-paper-deep);
  --bg-dark:       var(--ij-noir);

  --border-hair:   var(--ij-rule);
  --border-strong: var(--ij-ink);

  /* ---------- TYPOGRAPHY STACKS ----------
     The charter mandates Work Sans for everything; Source Serif 4 italic
     only for citations and editorial accents.                              */
  --font-display:  'Work Sans', system-ui, sans-serif;
  --font-sans:     'Work Sans', system-ui, sans-serif;
  --font-serif:    'Source Serif 4', 'Source Serif Pro', Georgia, serif;

  /* ---------- TYPE SCALE (1.250 — major third) ---------- */
  --fs-12: 0.75rem;   /* 12 */
  --fs-14: 0.875rem;  /* 14 */
  --fs-16: 1rem;      /* 16 — body base */
  --fs-18: 1.125rem;  /* 18 — lede */
  --fs-20: 1.25rem;   /* 20 */
  --fs-24: 1.5rem;    /* 24 — h4 */
  --fs-30: 1.875rem;  /* 30 — h3 */
  --fs-38: 2.375rem;  /* 38 — h2 */
  --fs-48: 3rem;      /* 48 — h1 */
  --fs-64: 4rem;      /* 64 — display */
  --fs-80: 5rem;      /* 80 — hero */

  /* ---------- SPACING (4pt base) ---------- */
  --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-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* ---------- RADII ----------
     Charter rule: 0 everywhere, except buttons (pill).                     */
  --radius-none: 0;
  --radius-xs:   0;
  --radius-sm:   0;
  --radius-pill: 999px;  /* buttons — the signature shape                */

  /* ---------- ELEVATION ----------
     Editorial: ultra-flat. Shadows are barely-there hairlines.           */
  --shadow-none: none;
  --shadow-hair: 0 0 0 1px var(--ij-rule);
  --shadow-card: 0 1px 2px rgba(11,11,11,0.04), 0 8px 24px rgba(11,11,11,0.05);
  --shadow-lift: 0 2px 4px rgba(11,11,11,0.06), 0 16px 40px rgba(11,11,11,0.08);

  /* ---------- MOTION ---------- */
  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   150ms;
  --dur-base:   220ms;
  --dur-slow:   400ms;

  /* ---------- LAYOUT ---------- */
  --max-prose:    66ch;
  --max-content:  1180px;
  --max-narrow:   780px;
  --nav-h:        88px;
}

/* =========================================================
   SEMANTIC TYPE STYLES — apply as utility classes or
   directly to elements within an .ij-prose container.
   ========================================================= */

.ij-logo,
.ij-display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--ij-ink);
}

.ij-display-xl {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, var(--fs-80));
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ij-ink);
  text-transform: none;
}

.ij-h1, h1.ij {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, var(--fs-48));
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ij-ink);
}

.ij-h2, h2.ij {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, var(--fs-38));
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--ij-ink);
}

.ij-h3, h3.ij {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-24);
  line-height: 1.25;
  color: var(--ij-ink);
}

.ij-h4, h4.ij {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: 1.3;
  color: var(--ij-ink);
}

.ij-eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ij-ink-mute);
}

.ij-lede {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-20);
  line-height: 1.55;
  color: var(--ij-ink-soft);
}

.ij-body, p.ij {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: 1.65;
  color: var(--ij-ink-soft);
}

.ij-prose {
  font-family: var(--font-sans);
  font-size: var(--fs-18);
  line-height: 1.7;
  color: var(--ij-ink-soft);
  max-width: var(--max-prose);
}

.ij-prose strong { color: var(--ij-ink); font-weight: 600; }
.ij-prose em { font-style: italic; }
.ij-prose a { color: var(--ij-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--ij-rouge); transition: text-decoration-color var(--dur-fast); }
.ij-prose a:hover { text-decoration-color: var(--ij-rouge-deep); }

.ij-pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-24);
  line-height: 1.45;
  color: var(--ij-ink);
}

.ij-meta {
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  letter-spacing: 0.02em;
  color: var(--ij-ink-mute);
}

.ij-caption {
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-style: italic;
  color: var(--ij-ink-mute);
}

/* Special: the signature "IA" treatment in headlines */
.ij-ia {
  color: var(--ij-rouge);
  font-weight: 500;
}

/* Hairline divider — used heavily as section separator */
.ij-rule {
  border: 0;
  border-top: 1px solid var(--ij-rule);
}

/* Accent rule under section heads */
.ij-accent-rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--ij-rouge);
  margin: var(--sp-4) 0 var(--sp-6);
}
