/* ==========================================================================
   Momentum — Fondation pour la bataille culturelle
   Feuille de style commune — dérivée de la charte « Momentum id 03 » (déc. 2026)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Gamme de couleur (charte p.2) */
  --aubergine: #870d45;
  --framboise: #942461;
  --beige: #fff5e8;
  --vert-fonce: #00574d;
  --violet: #573070;
  --bleu-nuit: #03142b;
  --bleu-clair: #6ec9f2;
  --sable: #ffe8b0;
  --rose: #ff80ab;
  --vert-fluo: #75fab0;
  --cyan: #0ec2ea;   /* valeur relevée sur la charte (hex non renseigné) */
  --jaune: #f0fb5c;  /* valeur relevée sur la charte (hex non renseigné) */

  /* Rôles */
  --bg: var(--beige);
  --fg: var(--bleu-nuit);
  --accent: var(--aubergine);
  --muted: rgba(3, 20, 43, 0.62);
  --line: rgba(3, 20, 43, 0.14);

  /* Typographie (charte p.10) */
  --font-sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;

  /* Rythme */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 6px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.05vw + 12px, 19px);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.65); }

/* Surfaces (les fonds de la charte) */
.bg-nuit { background: var(--bleu-nuit); color: var(--beige); --muted: rgba(255,245,232,.68); --line: rgba(255,245,232,.18); }
.bg-aubergine { background: var(--aubergine); color: var(--beige); --muted: rgba(255,245,232,.72); --line: rgba(255,245,232,.2); }
.bg-vert { background: var(--vert-fonce); color: var(--beige); --muted: rgba(255,245,232,.72); --line: rgba(255,245,232,.2); }
.bg-violet { background: var(--violet); color: var(--beige); --muted: rgba(255,245,232,.72); --line: rgba(255,245,232,.2); }
.bg-cyan { background: var(--cyan); color: var(--bleu-nuit); }
.bg-rose { background: var(--rose); color: var(--bleu-nuit); }
.bg-beige { background: var(--beige); color: var(--bleu-nuit); }
.bg-sable { background: var(--sable); color: var(--bleu-nuit); }

/* ---------- Typographie ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--accent { color: var(--accent); }
.eyebrow::before { content: "— "; }

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
}
.display em { font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }

.h1 { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; font-size: clamp(2.4rem, 6vw, 4.6rem); }
.h2 { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.h3 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; font-size: clamp(1.25rem, 1.7vw, 1.55rem); }
.serif-title { font-family: var(--font-serif); font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; font-size: clamp(2.2rem, 5vw, 4.4rem); }

.lead { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.45; font-weight: 500; }
.lead--serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.3; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.stat { font-family: var(--font-serif); font-weight: 400; line-height: 0.9; font-size: clamp(4rem, 10vw, 8rem); letter-spacing: -0.02em; }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.25em; }
.prose p strong { font-weight: 700; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.005em;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--aubergine); color: var(--beige); border-color: var(--aubergine); }
.btn--primary:hover { background: var(--framboise); border-color: var(--framboise); }
.btn--light { background: var(--beige); color: var(--aubergine); border-color: var(--beige); }
.btn--light:hover { background: #fff; }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.bg-beige .btn--ghost:hover, .bg-sable .btn--ghost:hover { background: rgba(3,20,43,.06); }
.btn--fluo { background: var(--vert-fluo); color: var(--vert-fonce); border-color: var(--vert-fluo); }
.btn--fluo:hover { background: #8dffc2; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bleu-nuit) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--beige);
  border-bottom: 1px solid rgba(255,245,232,.1);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: .86; position: relative; padding-block: 6px; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--rose); border-radius: 2px; }
.nav .btn { padding: 0.62em 1.15em; font-size: 0.9rem; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; border-radius: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .2s, opacity .2s; }
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bleu-nuit); border-bottom: 1px solid rgba(255,245,232,.1);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,245,232,.1); font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Cercles (principe de création des fonds, charte p.3) ---------- */
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.bg-beige .orb, .bg-sable .orb { mix-blend-mode: multiply; }
.bg-nuit .orb, .bg-aubergine .orb, .bg-vert .orb, .bg-violet .orb { mix-blend-mode: normal; }
.section > .container, .hero > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .orb--drift { animation: drift 18s ease-in-out infinite alternate; }
  .orb--drift-2 { animation: drift 24s ease-in-out infinite alternate-reverse; }
  @keyframes drift { from { transform: translate(0, 0); } to { transform: translate(3%, 4%); } }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(88px, 12vw, 170px) clamp(72px, 10vw, 140px); }
.hero__inner { max-width: 900px; }
.hero__inner > * + * { margin-top: 1.4rem; }
.hero .btn-row { margin-top: 2.4rem; }
.hero--page { padding-block: clamp(72px, 9vw, 130px) clamp(56px, 7vw, 100px); }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } .split--even { grid-template-columns: 1fr 1fr; } }
/* Le collant ne vaut que sur deux colonnes : en une seule, il recouvrirait
   le contenu qui le suit. */
.sticky { position: static; }
@media (min-width: 900px) { .sticky { position: sticky; top: 96px; } }

.card {
  position: relative; overflow: hidden;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 100%;
}
.card--outline { border: 1px solid var(--line); background: transparent; }
.card .h3 { margin-top: 4px; }
.card p { color: var(--muted); }
.bg-aubergine .card p, .bg-vert .card p, .bg-violet .card p, .bg-nuit .card p { color: var(--muted); }
.card__num { font-family: var(--font-serif); font-size: 3rem; line-height: 1; font-weight: 500; opacity: .9; }
.card .orb { mix-blend-mode: normal; }
.card__link { margin-top: auto; padding-top: 12px; font-weight: 700; text-decoration: none; }
.card__link:hover { text-decoration: underline; }

/* ---------- Liste à puces éditoriales ---------- */
.list { display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.list li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; margin-top: 0.42em; background: var(--accent); }
.list--rose li::before { background: var(--rose); }
.list--fluo li::before { background: var(--vert-fluo); }
.list--cyan li::before { background: var(--cyan); }
.list--sable li::before { background: var(--sable); }

/* ---------- Citation ---------- */
.quote { position: relative; }
.quote p { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.22; }
.quote footer { margin-top: 1.4rem; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline time { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; color: var(--accent); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Équipe ---------- */
.person { display: grid; gap: 14px; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%; position: relative; overflow: hidden;
  display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; color: var(--beige);
  background: var(--bleu-nuit);
}
.avatar .orb { mix-blend-mode: normal; }
.avatar span { position: relative; z-index: 1; }
.person .h3 { font-size: 1.15rem; }
.person p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; padding: 0.8em 1em; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: rgba(255,255,255,.7); color: var(--bleu-nuit); width: 100%;
}
.bg-nuit .form input, .bg-nuit .form select, .bg-nuit .form textarea,
.bg-aubergine .form input, .bg-aubergine .form select, .bg-aubergine .form textarea,
.bg-vert .form input, .bg-vert .form select, .bg-vert .form textarea {
  background: rgba(255,245,232,.08); color: var(--beige); border-color: rgba(255,245,232,.3);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--cyan); outline-offset: 2px; border-color: transparent; }
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-success { display: none; padding: 16px 18px; border-radius: var(--radius); background: rgba(117,250,176,.18); border: 1px solid var(--vert-fluo); }
.form-success.is-visible { display: block; }

/* ---------- Bandeau (banner RS) ---------- */
.banner { display: block; border-radius: var(--radius); overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bleu-nuit); color: var(--beige); padding-block: 56px 32px; --muted: rgba(255,245,232,.6); --line: rgba(255,245,232,.14); }
.site-footer .top { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .site-footer .top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer img { height: 30px; width: auto; }
.site-footer .tagline { margin-top: 14px; font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.95rem; color: var(--muted); }
.site-footer h4 { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Divers ---------- */
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.82rem; font-weight: 600; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vert-fluo); }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 0.14em; font-size: 1.05rem; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .marquee__track { animation: marquee 40s linear infinite; } @keyframes marquee { to { transform: translateX(-50%); } } }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--rose); color: var(--bleu-nuit); padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Apparition douce */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}
