/* ==========================================================================
   Assemblee QVT — Foundations
   Brand purple derived from the logo: #604487
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;0,9..144,900;1,9..144,500&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

:root {
  /* ---------- Brand Purple Scale (built from #604487) ---------- */
  --purple-50:  #f5f2fa;
  --purple-100: #ebe4f3;
  --purple-200: #d4c5e6;
  --purple-300: #b59fd2;
  --purple-400: #9175ba;
  --purple-500: #7556a2;
  --purple-600: #604487;   /* ← Logo purple */
  --purple-700: #4e376e;
  --purple-800: #3b2a54;
  --purple-900: #261b37;
  --purple-950: #17102a;

  /* ---------- Accent — warm coral for "pute à clic" CTAs ---------- */
  --coral-50:  #fff5f1;
  --coral-100: #ffe6dc;
  --coral-200: #ffc6b0;
  --coral-300: #ff9e7a;
  --coral-400: #ff6f3d;
  --coral-500: #ff4d1a;   /* primary CTA */
  --coral-600: #e23b0a;
  --coral-700: #b42d06;

  /* ---------- Success / warning / danger (semantic) ---------- */
  --green-500: #1f9d55;
  --green-50:  #e9f7ef;
  --amber-500: #f2a900;
  --amber-50:  #fff6e0;
  --red-500:   #d0342c;
  --red-50:    #fde9e7;

  /* ---------- Neutrals — warm, slightly purple-tinted ---------- */
  --ink-950: #0f0b18;   /* body text on light */
  --ink-800: #24203b;
  --ink-600: #49445f;
  --ink-500: #6a6580;
  --ink-400: #8e899f;
  --ink-300: #b8b3c5;
  --ink-200: #dad6e1;
  --ink-100: #eceaf0;
  --ink-50:  #f7f6f9;
  --white:   #ffffff;

  /* ---------- Semantic foreground ---------- */
  --fg-1: var(--ink-950);    /* primary text */
  --fg-2: var(--ink-600);    /* secondary text */
  --fg-3: var(--ink-500);    /* tertiary / captions */
  --fg-muted: var(--ink-400);
  --fg-on-purple: #ffffff;
  --fg-brand: var(--purple-600);
  --fg-accent: var(--coral-500);

  /* ---------- Semantic background ---------- */
  --bg-0: var(--white);                 /* page */
  --bg-1: var(--ink-50);                /* raised surface */
  --bg-2: var(--ink-100);               /* hovered surface */
  --bg-cream: #fbf8f3;                  /* warm editorial bg */
  --bg-brand: var(--purple-600);        /* purple section */
  --bg-brand-deep: var(--purple-900);   /* hero / footer */
  --bg-accent: var(--coral-500);

  /* ---------- Borders ---------- */
  --border-1: var(--ink-200);
  --border-2: var(--ink-300);
  --border-brand: var(--purple-200);
  --border-strong: var(--ink-800);

  /* ---------- Typography families ---------- */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---------- Type scale (semantic vars) ---------- */
  --fs-hero:    clamp(3.25rem, 6vw + 1rem, 6rem);       /* 52-96px */
  --fs-h1:      clamp(2.25rem, 3vw + 1rem, 3.75rem);    /* 36-60px */
  --fs-h2:      clamp(1.75rem, 1.6vw + 1rem, 2.5rem);   /* 28-40px */
  --fs-h3:      clamp(1.35rem, 0.6vw + 1rem, 1.625rem); /* 22-26px */
  --fs-h4:      1.125rem;                                /* 18px */
  --fs-lead:    1.1875rem;                               /* 19px */
  --fs-body:    1rem;                                    /* 16px */
  --fs-small:   0.875rem;                                /* 14px */
  --fs-xs:      0.75rem;                                 /* 12px */
  --fs-overline:0.75rem;

  /* ---------- Line heights ---------- */
  --lh-tight:   1.05;
  --lh-snug:    1.2;
  --lh-normal:  1.5;
  --lh-relaxed: 1.65;

  /* ---------- Weights ---------- */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-black:   900;

  /* ---------- Spacing — 4pt grid ---------- */
  --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;

  /* ---------- Radii ---------- */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   32px;
  --r-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-1: 0 1px 2px rgba(23, 16, 42, 0.06);
  --shadow-2: 0 4px 14px rgba(23, 16, 42, 0.08), 0 1px 3px rgba(23, 16, 42, 0.04);
  --shadow-3: 0 12px 32px rgba(23, 16, 42, 0.12), 0 2px 6px rgba(23, 16, 42, 0.05);
  --shadow-4: 0 28px 64px rgba(23, 16, 42, 0.18);
  --shadow-brand: 0 14px 30px rgba(96, 68, 135, 0.30);
  --shadow-cta:   0 10px 24px rgba(255, 77, 26, 0.35);
  --shadow-inner: inset 0 1px 0 rgba(255,255,255,0.08);

  /* ---------- Motion ---------- */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   140ms;
  --dur-base:   220ms;
  --dur-slow:   420ms;

  /* ---------- Containers ---------- */
  --container-sm: 720px;
  --container-md: 960px;
  --container-lg: 1200px;
  --container-xl: 1360px;
}

/* ---------------- Base element styles (semantic) ---------------- */

html { color-scheme: light; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--fg-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.display, .hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3, .h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}

h4, .h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semi);
  line-height: var(--lh-snug);
}

p { line-height: var(--lh-relaxed); text-wrap: pretty; }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
}

.overline {
  font-size: var(--fs-overline);
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-brand);
}

.small { font-size: var(--fs-small); }
.caption { font-size: var(--fs-xs); color: var(--fg-3); }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.95em; }

a { color: var(--fg-brand); text-underline-offset: 3px; }
a:hover { color: var(--purple-700); }

/* Italic serif for editorial accents (e.g. "ensemble") */
.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}
