/* =============================================================
   Claire & François — UI kit
   Chrome partagé + composants réutilisables sur toutes les pages.
   ----------------------------------------------------------------
   IMPORTANT : ne pas hardcoder de hex ou de px — utiliser les
   variables définies dans tokens.css. Conventions de breakpoints
   (sm/md/lg/xl = 480/720/980/1240) documentées dans tokens.css §6.

   Sommaire :
     1. Reset & layout
     2. Chrome — header, nav-toggle + mobile-drawer, footer, breadcrumb
     3. Boutons
     4. Section head (eyebrow + h2 + desc, variante .dark)
     5. Formulaires
     6. Patterns de page — page-hero, intro, editorial, manifesto,
        project-card, quote, cta, bridge, page-frame, factbox
     7. Responsive — cascades 3/2/1 col, footer minimal mobile
   ============================================================= */



/* =========================================================
   1. RESET & LAYOUT
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Utilitaire a11y : masque visuellement mais reste accessible aux lecteurs d'écran */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}


/* =========================================================
   2. CHROME — Header, Footer, Breadcrumb
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding-block: 18px;
}
/* Lockup typographique du logo :
   "Claire & François" en Fraunces italique + filet vertical +
   tagline "FONDS DE / DOTATION" en Public Sans small-caps */
.site-logo {
  display: inline-flex; align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  text-decoration: none; color: var(--marine);
}
.site-logo .logo-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--marine);
  white-space: nowrap;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.site-logo .logo-name .amp {
  color: var(--ocher);
  font-style: italic;
  margin: 0 1px;
}
.site-logo .logo-sep {
  display: inline-block;
  width: 1px;
  height: clamp(28px, 3vw, 36px);
  background: var(--rule-strong);
  flex: none;
}
.site-logo .logo-tagline {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marine);
  line-height: 1.4;
}
/* Sur mobile, on masque la tagline pour gagner de la place */
@media (max-width: 640px) {
  .site-logo .logo-sep,
  .site-logo .logo-tagline { display: none; }
}
.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
  position: relative; font-size: 14px; font-weight: 500; color: var(--ink); padding-block: 6px;
  transition: color var(--t-fast) var(--ease-out);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--ocher); transition: width var(--t-base) var(--ease-out);
}
.site-nav a:hover { color: var(--ocher-deep); }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }
.site-nav a.active { color: var(--ocher-deep); }

/* --- Menu mobile : bouton hamburger + drawer plein écran -----
   Markup attendu dans .site-header-inner :
     <button class="nav-toggle" aria-label="Ouvrir le menu"
             aria-expanded="false" aria-controls="mobile-drawer">
       <span></span><span></span><span></span>
     </button>
   Et en fin de <body> :
     <div class="mobile-drawer" id="mobile-drawer" hidden>
       <nav>… liens …</nav>
     </div>
   Script d'ouverture/fermeture inline dans chaque page (cf. index.html).
   ============================================================= */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  position: relative;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--marine);
  transition: transform var(--t-base) var(--ease-out),
              opacity var(--t-fast) var(--ease-out);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: clamp(80px, 14vw, 120px) var(--gutter) 48px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base) var(--ease-out),
              visibility 0s linear var(--t-base);
}
.mobile-drawer.open {
  opacity: 1; visibility: visible;
  transition: opacity var(--t-base) var(--ease-out), visibility 0s linear 0s;
}
.mobile-drawer nav {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: clamp(24px, 5vh, 48px);
}
.mobile-drawer nav a {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 6vw, 40px);
  color: var(--marine); letter-spacing: -0.012em;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  transition: color var(--t-fast) var(--ease-out);
}
.mobile-drawer nav a::after {
  content: "→";
  font-family: var(--sans); font-style: normal;
  font-size: 0.5em; color: var(--ocher);
  transition: transform var(--t-base) var(--ease-out);
}
.mobile-drawer nav a:hover,
.mobile-drawer nav a.active { color: var(--ocher-deep); }
.mobile-drawer nav a.active::after { color: var(--ocher-deep); }
.mobile-drawer nav a:hover::after { transform: translateX(6px); }
.mobile-drawer .drawer-cta {
  margin-top: clamp(32px, 6vh, 56px);
}

/* Empêche le scroll du body quand le drawer est ouvert */
body.drawer-open { overflow: hidden; }

.site-footer {
  background: var(--marine);
  color: var(--paper-72);
  padding-block: 80px 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid var(--paper-12);
}
.footer-logo {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 22px; color: var(--paper);
  letter-spacing: -0.01em;
}
.footer-logo .amp { color: var(--ocher); }
.footer-about {
  margin-top: 18px; line-height: 1.7; color: var(--paper-60);
  font-size: 13px; max-width: 32ch;
}
/* Contact dans le footer (adresse + email) — texte sobre sur fond marine,
   utilisé sur toutes les pages. Évite les style="..." inline. */
.footer-contact {
  color: var(--paper-72);
  font-size: 13px;
  line-height: 1.7;
}
.site-footer h4 {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ocher); margin-bottom: 20px;
}
.site-footer li { margin-bottom: 10px; }
.site-footer a { transition: color var(--t-fast) var(--ease-out); }
.site-footer a:hover { color: var(--ocher); }
.footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--paper-40);
}

.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 12px; color: var(--stone-500);
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--stone-700); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--ocher-deep); }
.breadcrumb .sep { color: var(--stone-300); }
.breadcrumb .current { color: var(--ink); }


/* =========================================================
   3. BOUTONS
   ----------------------------------------------------------
   Patterns :
     .btn .btn-primary             → marine plein (CTA principal)
     .btn .btn-secondary           → contour discret
     .btn .btn-accent              → ocre plein (action forte)
     .btn .header-cta-primary      → variante du CTA dans le header
     .btn.sm                       → version compacte (header, etc.)
     .btn ... <span class="arrow"></span>  → flèche animée au hover
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: var(--r-2);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; line-height: 1;
  transition: all var(--t-base) var(--ease-out);
}
.btn.sm { padding: 10px 18px; font-size: 13px; }
.btn-primary { background: var(--marine); color: var(--paper); border-color: var(--marine); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 2px solid var(--ocher); outline-offset: 3px; }
.btn-secondary { background: transparent; color: var(--marine); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--marine); background: var(--marine); color: var(--paper); }
.btn-accent { background: var(--ocher); color: var(--ink); border-color: var(--ocher); }
.btn-accent:hover { background: var(--ocher-deep); border-color: var(--ocher-deep); color: var(--paper); }
.btn .arrow { position: relative; width: 14px; height: 1px; background: currentColor; transition: width var(--t-base) var(--ease-out); }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { width: 22px; }

.header-cta-primary { background: var(--marine); color: var(--paper); border-color: var(--marine); }
.header-cta-primary:hover { background: var(--ink); border-color: var(--ink); }


/* =========================================================
   4. SECTION HEAD
   ----------------------------------------------------------
   Bloc d'introduction de section (eyebrow + h2 + desc).
   Ajouter .dark si la section est sur fond marine/encre — les
   couleurs basculent en crème.
   Markup attendu :
     <div class="section-head">
       <div>
         <span class="eyebrow">…</span>
         <h2>… <em>mot ocre</em>.</h2>
       </div>
       <p class="desc">Texte optionnel à droite.</p>
     </div>
   ========================================================= */
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end;
  margin-bottom: 64px;
}
.section-head h2 { margin-top: 18px; max-width: 18ch; }
.section-head .desc {
  font-size: 16px; color: var(--stone-700); max-width: 46ch; line-height: 1.7;
}
.section-head.dark h2 { color: var(--paper); }
.section-head.dark .desc { color: var(--paper-72); }

/* Eyebrow on-dark — variante contextuelle (base de .eyebrow dans tokens.css) */
.eyebrow.on-dark { color: var(--paper-72); }


/* =========================================================
   5. FORMULAIRES
   ========================================================= */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field .helper { font-size: 12px; color: var(--stone-500); }
.field .error { font-size: 12px; color: var(--error); display: none; }
.field.has-error .error { display: block; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-1);
  background: var(--paper); color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--marine); box-shadow: 0 0 0 3px var(--ocher-soft);
}
.checkbox, .radio { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding-block: 8px; }
.checkbox input, .radio input { margin-top: 3px; accent-color: var(--ocher-deep); }
.checkbox span, .radio span { font-size: 14px; color: var(--ink); line-height: 1.5; }


/* =========================================================
   6. PATTERNS DE PAGE — réutilisables sur les pages secondaires
   ----------------------------------------------------------
   Cf. qui-sommes-nous.html pour des exemples concrets de chaque.
   ========================================================= */

/* --- 6.1 PAGE HERO — chapeau de page secondaire --------------
   Markup :
     <section class="page-hero">
       <div class="container">
         <span class="eyebrow">…</span>
         <h1>… <em>mot ocre</em>.</h1>
         <div class="meta">…<span class="dot"></span>…</div>
       </div>
     </section>
*/
.page-hero {
  background: var(--paper);
  padding-block: clamp(96px, 12vw, 168px) clamp(56px, 7vw, 96px);
  position: relative; overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 300;   font-size: clamp(56px, 7vw, 96px);
  line-height: 1.04; letter-spacing: -0.02em;
  color: var(--marine);
  max-width: 16ch; margin: 28px 0 0;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.page-hero h1 em { font-style: italic; color: var(--ocher); font-weight: 300; }
.page-hero .meta {
  margin-top: 64px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--stone-500);
  letter-spacing: 0.04em;
}
.page-hero .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ocher); }
.page-hero::after {
  content: ""; position: absolute; top: -160px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ocher) 36%, transparent);
  pointer-events: none;
}

/* --- 6.1b INTRO — amorce minimaliste (alternative à .page-hero) ---
   Pour les pages où une amorce sobre suffit (un eyebrow + une phrase).
   Markup :
     <section class="intro">
       <div class="container">
         <span class="eyebrow">Notre fonctionnement</span>
         <p class="intro-line">Notre mode d'intervention.</p>
       </div>
     </section>
*/
.intro {
  padding-block: clamp(20px, 10vw, 128px) clamp(20px, 3vw, 80px);
}
.intro .eyebrow { margin-bottom: 24px; }
/* Accepte indifféremment <h2> (titre de page) ou <p class="intro-line">
   (phrase d'amorce) — même traitement visuel. */
.intro h2,
.intro-line {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35; color: var(--marine);
  max-width: 36ch;
  letter-spacing: -0.012em;
  text-wrap: pretty;
  margin: 0;
}

/* --- 6.2 EDITORIAL — grille label + body pour textes longs ---
   Markup :
     <section class="editorial">  (ou .editorial.warm pour fond chaud)
       <div class="container">
         <div class="grid">
           <div class="label">Origine — 2013</div>
           <div class="body">
             <p>… <em>mot ocre</em> …</p>
             <p>…</p>
           </div>
         </div>
       </div>
     </section>
*/
.editorial { padding-block: clamp(56px, 7vw, 96px); }
.editorial + .editorial { padding-top: 0; }
.editorial.warm {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.editorial .grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.editorial .grid .label {
  position: sticky; top: 100px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ocher-deep);
}
.editorial .grid .label::before {
  content: ""; display: block; width: 32px; height: 1px;
  background: var(--ocher); margin-bottom: 16px;
}
.editorial .grid .body p {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45;
  color: var(--marine); letter-spacing: -0.008em;
  max-width: 28ch;
  text-wrap: pretty;
}
.editorial .grid .body p + p { margin-top: 28px; }
.editorial .grid .body em { font-style: italic; color: var(--ocher); font-weight: 400; }

/* --- 6.3 MANIFESTO — énoncé fort, filets ocre, sur paper -----
   Markup :
     <section class="manifesto">
       <div class="container">
         <div class="inner">
           <p class="question">Ce qui nous anime ?</p>
           <p class="answer">Aider les plus <em>vulnérables</em>.</p>
           <p class="footnote">…</p>
         </div>
       </div>
     </section>
*/
.manifesto {
  padding-block: clamp(80px, 10vw, 144px);
  background: var(--paper);
  position: relative;
}
.manifesto .inner {
  max-width: 900px; margin: 0 auto;
  border-top: 1px solid var(--ocher);
  border-bottom: 1px solid var(--rule);
  padding: clamp(48px, 6vw, 80px) clamp(20px, 3vw, 40px);
}
.manifesto .question {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(20px, 1.8vw, 24px);
  color: var(--ocher-deep); margin-bottom: 24px;
  letter-spacing: -0.005em;
}
.manifesto .answer {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.28; letter-spacing: -0.015em;
  color: var(--marine); max-width: 22ch;
  text-wrap: balance;
}
.manifesto .footnote {
  margin-top: 40px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6;
  color: var(--stone-700); max-width: 56ch;
  text-wrap: pretty;
}
.manifesto em { font-style: italic; color: var(--ocher); font-weight: 400; }

/* --- 6.3b PROJECT-CARD — carte de projet associatif ----------
   Vignette pour les listes de projets (home + page Projets).
   Markup :
     <div class="projects-grid">
       <article class="project" data-themes="enfance" data-status="en-cours">
         <div class="project-img t-enfance">  <!-- t-* fallback gradient, ou <img> -->
           <span class="project-tag">Enfance</span>
         </div>
         <div class="project-meta">
           <span class="item"><svg>…</svg>Aix-en-Provence</span>
           <span class="item"><svg>…</svg>Depuis 2021</span>
         </div>
         <h3>La Cabane bleue</h3>
         <p>Description courte…</p>
       </article>
       …
     </div>
*/
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.project { display: flex; flex-direction: column; gap: 18px; }
.project-img {
  aspect-ratio: 4/5; border-radius: var(--r-2);
  position: relative; overflow: hidden;
}
/* Toute <img> à l'intérieur remplit le cadre 4/5, recadrée si besoin */
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Fallbacks dégradés par thématique : voir .t-enfance/.t-insertion/.t-ecologie
   dans projets.css §FALLBACKS. Le rendu JS ajoute ces classes via t-{theme}. */
.project-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--paper); padding: 5px 11px; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--marine);
}
.ph-cap {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--mono); font-size: 10px; color: var(--marine);
  background: var(--paper); padding: 4px 8px; border-radius: 3px;
}
.project-meta {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--stone-700);
}
.project-meta svg { width: 12px; height: 12px; color: var(--ocher); flex: none; }
.project-meta .item { display: inline-flex; align-items: center; gap: 8px; }
.project h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; color: var(--marine); line-height: 1.2;
}
.project p { font-size: 14px; color: var(--stone-700); line-height: 1.65; }
/* Lien « Voir le projet » au bas de chaque carte — généré par
   renderProjectCard() dans projects.js. Petit CTA discret en marine. */
.project-link {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--marine);
  display: inline-flex; align-items: center; gap: 10px;
  transition: color var(--t-fast) var(--ease-out), gap var(--t-base) var(--ease-out);
}
.project-link::after {
  content: "→"; color: var(--ocher);
  transition: transform var(--t-base) var(--ease-out);
}
.project-link:hover { color: var(--ocher-deep); }
.project-link:hover::after { transform: translateX(4px); }

/* --- 6.4 QUOTE — bloc citation ------------------------------
   Markup :
     <section class="quote-band">
       <div class="container">
         <div class="quote-card">
           <span class="mark">"</span>
           <blockquote>… texte … </blockquote>
           <cite>Auteur <span>— précision</span></cite>
         </div>
       </div>
     </section>
*/
.quote-band { padding-block: var(--section-y); background: var(--paper); }
.quote-card {
  max-width: 920px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--ocher); border-bottom: 1px solid var(--rule);
  text-align: left;
}
.quote-card .mark {
  font-family: var(--serif); font-style: italic; color: var(--ocher);
  font-size: 88px; line-height: 0.6; font-weight: 300;
  margin-bottom: -10px; display: block;
}
.quote-card blockquote {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.32;
  color: var(--marine); letter-spacing: -0.012em;
  max-width: 32ch;
}
.quote-card cite {
  display: block; margin-top: 32px;
  font-family: var(--sans); font-style: normal; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-700);
}
.quote-card cite span { color: var(--stone-500); margin-left: 8px; }

/* --- 6.5 CTA — callout sand, h2 marine, bouton ocre ---------
   Markup :
     <section class="cta-band">
       <div class="container">
         <div class="cta-card">
           <div>
             <span class="eyebrow">Vous portez un projet ?</span>
             <h2>Nous lisons <em>attentivement</em>.</h2>
             <p>Description courte.</p>
           </div>
           <div class="cta-actions">
             <ul class="cta-list">
               <li class="cta-bullet">Critère 1</li>
               …
             </ul>
             <a href="…" class="btn btn-accent">Nous écrire <span class="arrow"></span></a>
           </div>
         </div>
       </div>
     </section>
*/
.cta-band { padding-block: var(--section-y); }
.cta-card {
  background: var(--sand); color: var(--ink);
  border-radius: var(--r-3); padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  position: relative; overflow: hidden;
}
.cta-card::after {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ocher) 55%, transparent); pointer-events: none;
}
.cta-card h2 { color: var(--marine); max-width: 18ch; margin-top: 18px; }
.cta-card p { color: var(--stone-700); margin-top: 18px; max-width: 44ch; }
.cta-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.cta-bullet {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: var(--stone-700); line-height: 1.55;
}
.cta-bullet::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ocher); margin-top: 7px;
}
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 1; }

/* --- 6.6 BRIDGE — ponts éditoriaux vers d'autres pages ------
   Markup :
     <section class="bridge">
       <div class="container">
         <div class="links">
           <a href="…">
             <span class="k">Surtitre court</span>
             <span class="t">Titre du lien</span>
           </a>
           …
         </div>
       </div>
     </section>
*/
.bridge { padding-block: clamp(64px, 8vw, 112px); background: var(--paper); }
.bridge .links {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
  max-width: 880px; margin: 0 auto;
}
/* Variante .solo : un seul lien, colonne unique centrée */
.bridge.solo .links { grid-template-columns: 1fr; max-width: 600px; }
.bridge a {
  display: flex; flex-direction: column; gap: 10px;
  padding-block: 28px;
  border-top: 1px solid var(--rule-strong);
  transition: border-color var(--t-base) var(--ease-out);
}
.bridge a:hover { border-top-color: var(--ocher); }
.bridge .k {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ocher-deep);
}
.bridge .t {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(22px, 2vw, 28px); color: var(--marine);
  letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 12px;
}
.bridge .t::after {
  content: "→"; font-style: normal; color: var(--ocher);
  transition: transform var(--t-base) var(--ease-out);
}
.bridge a:hover .t::after { transform: translateX(6px); }

/* --- 6.7 PAGE FRAME — sidebar sticky (sommaire) + colonne contenu
   ----------------------------------------------------------
   Pattern pour les pages secondaires structurées en 3 sections
   (qui-sommes-nous, fonctionnement). Un scrollspy léger inline
   met à jour .active selon la section en vue.
   Markup :
     <div class="page-frame container">
       <aside class="page-sidenav">
         <nav aria-label="Sommaire de la page">
           <a href="#section-1">…</a>
           …
         </nav>
       </aside>
       <div class="page-content">
         <section id="section-1">…</section>
         …
       </div>
     </div>
   ========================================================= */
.page-frame {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
}
.page-sidenav {
  position: sticky;
  top: clamp(96px, 12vh, 128px);
  align-self: start;
  padding-top: clamp(56px, 7vw, 96px);
}
.page-sidenav nav { display: flex; flex-direction: column; }
.page-sidenav a {
  display: block;
  padding: 12px 0 12px 18px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  color: var(--stone-700);
  border-left: 2px solid transparent;
  transition: color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
  line-height: 1.4;
}
.page-sidenav a:hover { color: var(--marine); }
.page-sidenav a.active {
  color: var(--marine);
  border-left-color: var(--ocher);
}
/* Réserve d'espace pour que le header sticky ne cache pas le début
   d'une section quand on clique sur un lien du sommaire. */
.page-content > section { scroll-margin-top: clamp(88px, 12vh, 120px); }

/* Mobile : sidenav masquée entièrement.
   Raison : sur un écran étroit, le sommaire en barre horizontale fait
   redondance avec le défilement naturel de la page (l'utilisateur va
   scroller, pas naviguer par sections). On gagne en fluidité et on
   évite la surcharge visuelle en haut de page. La sidenav reste utile
   en desktop (sticky, repère de lecture). */
@media (max-width: 720px) {
  .page-frame { grid-template-columns: 1fr; gap: 0; }
  .page-sidenav { display: none; }
}


/* --- 6.8 FACTBOX — module key/value pour repères -------------
   Markup :
     <aside class="factbox">
       <div class="row"><span class="k">Clé</span><span class="v">Valeur</span></div>
       <div class="row"><span class="k">Présence</span><span class="v">15<span class="unit">ans</span></span></div>
       …
     </aside>
*/
.factbox {
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-2);
  padding: clamp(24px, 3vw, 32px);
  background: var(--paper);
  display: flex; flex-direction: column; gap: 20px;
}
.factbox .row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--rule);
}
.factbox .row:last-child { padding-bottom: 0; border-bottom: 0; }
.factbox .k {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-700);
}
.factbox .v {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 22px; color: var(--marine); letter-spacing: -0.01em;
}
.factbox .v .unit { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--stone-500); margin-left: 6px; letter-spacing: 0.04em; }


/* =========================================================
   7. RESPONSIVE
   ----------------------------------------------------------
   Breakpoints normalisés (cf. tokens.css §6) :
     lg ≤ 980 → nav desktop bascule en hamburger, section-head/cta 2col → 1col
     md ≤ 720 → grilles éditoriales 5/7 → 1col, cartes 3col → 2col puis 1col
     sm ≤ 480 → ajustements paddings extrêmes (header, cta-card)
   Règle générale : on cascade 3-4 cols → 2 cols intermédiaire → 1 col,
   plutôt qu'un saut brutal vers 1 col qui produit de grandes colonnes molles.
   ========================================================= */
@media (max-width: 980px) {
  .section-head, .cta-card { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 860px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
  .editorial .grid,
  .bridge .links { grid-template-columns: 1fr; }
  .editorial .grid .label { position: static; }
  /* Quote & manifesto : paddings resserrés */
  .quote-card { padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 32px); }
  .quote-card .mark { font-size: 64px; }
  .manifesto .inner { padding: clamp(36px, 6vw, 56px) clamp(16px, 3vw, 28px); }
  /* CTA-card : padding allégé */
  .cta-card { padding: clamp(28px, 5vw, 48px); }
  .cta-card::after { display: none; }  /* cercle décoratif → masqué, gain de respiration */

  /* --- Footer minimal sur mobile -----------------------------
     On masque les deux colonnes de liens internes ("Le fonds" et
     "Projets") — déjà accessibles via le menu hamburger. On garde
     uniquement : logo + about + contact (email) + copyright.
     Cela évite un mur de liens redondants en bas de page.
     -------------------------------------------------------- */
  .site-footer { padding-block: 48px 24px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3) { display: none; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 20px;
  }
}
@media (max-width: 560px) {
  .projects-grid { grid-template-columns: 1fr; gap: 32px; }
  /* En 1 colonne, la photo pleine largeur en 4/5 devient trop massive.
     On la limite à ~280 px et on la centre — look "polaroid". Le texte
     en dessous reste pleine largeur pour la lisibilité. */
  .project-img { max-width: 280px; margin-inline: auto; width: 100%; }
}
@media (max-width: 480px) {
  .site-header-inner { gap: 12px; padding-block: 14px; }
  /* Sur très petit écran on cache le CTA du header — il reste accessible
     dans le drawer mobile */
  .site-header .header-cta-primary { display: none; }
  /* Page hero : padding top encore plus court */
  .page-hero { padding-block: clamp(64px, 14vw, 96px) clamp(40px, 8vw, 64px); }
  .page-hero::after { width: 320px; height: 320px; top: -100px; right: -90px; }
}
