/*
Theme Name: APE Maroc
Theme URI: https://apemaroc.velixdigital.com
Author: VELIX Digital
Author URI: https://velixdigital.com
Description: Thème sur mesure de l'Association Marocaine des Entreprises faisant Appel Public à l'Épargne (APE). Direction artistique validée V3 — bleu APE, accents rouge action, or institutionnel et vert fonctionnel.
Version: 1.4.1
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: ape-maroc
*/

/* Typographie de marque — Inter variable auto-hébergée (latin ~48 Ko préchargé) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #17385f;
  --navy-900: #061a2d;
  --navy-800: #0e2b48;
  --blue: #2f74a6;
  --red: #bd2438;
  --green: #12795d;
  --gold: #c19b57;
  --paper: #f4f7fa;
  --mist: #e8eff5;
  --white: #ffffff;
  --ink: #121f2f;
  --muted: #5b6b7c; /* assombri : 4,9:1 sur --paper (l'ancien #657483 tombait à ~4,3:1) */
  --line: #dbe4ed;
  --max: 1180px;
  --section-y: clamp(72px, 8vw, 124px); /* rythme vertical fluide des sections */
  --radius: 8px;
}
/* RÈGLE COULEUR DES ACCENTS (labels, kickers, filets, métadonnées) — validée le 9 sept. 2026
   - Fond clair (blanc / --paper)   : ROUGE --red  → 6,0:1 sur blanc, 5,6:1 sur --paper (WCAG AA texte 12 px gras)
   - Fond bleu (--navy / --navy-900): DORÉ  --gold → 4,6:1 sur --navy, 6,8:1 sur --navy-900 (WCAG AA)
   Jamais l'inverse : doré sur blanc = 2,6:1, rouge sur bleu = 2,0 à 2,9:1 (non conformes).
   - UN SEUL ACCENT PAR BLOC : un bloc bleu qui porte le CTA rouge (hero, panneau Adhésion) n'utilise pas de doré ;
     un bloc clair n'utilise jamais de doré, même en filet (numéros de la méthode, citations). */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Focus clavier visible sur tous les fonds */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hero :focus-visible, .feature :focus-visible, .footer :focus-visible,
.split-panel :focus-visible, .proof-card.big :focus-visible, .topbar :focus-visible { outline-color: var(--gold); }

/* Ancres de sections : compensation du header sticky */
section[id], footer[id] { scroll-margin-top: 140px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap, .topbar-inner, .nav, .footer-inner { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }
.topbar { background: var(--navy-900); color: rgba(255,255,255,.84); font-size: 12px; font-weight: 700; }
.topbar-inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.topbar p { margin: 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(23,56,95,.12); box-shadow: 0 10px 30px rgba(8,28,48,.06); backdrop-filter: blur(16px); }
.admin-bar .site-header { top: 32px; }
.nav { min-height: 106px; display: grid; grid-template-columns: 250px 1fr auto; align-items: center; gap: 24px; }
.brand img { width: 218px; height: auto; }
.menu { display: flex; justify-content: center; align-items: center; gap: 12px; color: #203850; font-size: 14px; font-weight: 800; margin: 0; padding: 0; list-style: none; }
.menu-item { position: relative; }
.menu-link, .submenu a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 6px; }
.menu-link.active, .menu-link:hover { color: var(--red); background: rgba(189,36,56,.08); }
.menu-item.has-submenu > .menu-link::after { content: "▾"; margin-left: 7px; color: var(--red); font-size: 10px; }
.submenu { position: absolute; top: calc(100% + 16px); left: 0; width: 318px; display: grid; gap: 2px; padding: 12px; background: var(--white); border: 1px solid rgba(23,56,95,.12); border-radius: 8px; box-shadow: 0 24px 70px rgba(7,27,49,.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: 180ms ease; }
.menu-item:hover .submenu, .menu-item:focus-within .submenu, .menu-item.submenu-open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { justify-content: space-between; color: #263d53; }
.submenu a:hover { color: var(--red); background: var(--paper); }
.submenu a::after { content: "→"; color: var(--red); }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; cursor: pointer; }
.nav-cta, .button.primary { background: var(--red); color: var(--white); box-shadow: 0 8px 22px rgba(189,36,56,.22); }
.nav-cta:hover, .button.primary:hover { background: #a71f31; box-shadow: 0 12px 30px rgba(189,36,56,.30); }
.button.secondary { background: var(--white); border-color: rgba(23,56,95,.24); color: var(--navy); }
.button.secondary:hover { border-color: var(--navy); }
.button.light { background: var(--white); color: var(--navy); }
.button.gold { background: var(--gold); color: var(--navy-900); }
.nav-cta:hover, .button:hover { transform: translateY(-2px); }
.nav-cta:active, .button:active { transform: translateY(0); }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: 5px; padding: 10px 13px; font-size: 13px; font-weight: 850; }
.hero { position: relative; min-height: 600px; overflow: hidden; background: var(--navy-900); color: var(--white); }
.hero.small { min-height: 480px; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,26,45,.91), rgba(6,26,45,.64) 45%, rgba(6,26,45,.12)), linear-gradient(0deg, rgba(6,26,45,.38), transparent 42%); }
.hero-content { position: relative; z-index: 1; width: min(var(--max), calc(100% - 44px)); min-height: inherit; margin: 0 auto; padding: 84px 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow, .section-label, .kicker { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.section-label { display: inline-flex; align-items: center; gap: 10px; }
.section-label::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; color: rgba(255,255,255,.88); }
.hero .eyebrow::before { content: ""; width: 34px; height: 2px; background: rgba(255,255,255,.6); } /* hero = CTA rouge, donc pas de doré */
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 880px; margin: 18px 0 26px; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.03em; }
.hero.small h1 { font-size: clamp(32px, 3.8vw, 50px); }
.hero p { max-width: 640px; color: rgba(255,255,255,.82); font-size: 17px; }
.hero-actions, .action-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 22px; }
.section { padding: var(--section-y) 0; }
.section.white, .band.white { background: var(--white); }
.section-head { max-width: 900px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head-main { min-width: 0; }
/* Tête de section éditoriale : titre à gauche, chapeau calé en bas à droite (≥ 1081 px) */
.section-head.split-head { max-width: none; }
.section-head.split-head .lead { max-width: 62ch; margin: 26px 0 0; }
.section-head.compact h2 { font-size: clamp(22px, 2vw, 30px); }
.subsection { margin-top: clamp(48px, 5vw, 72px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2, .split-copy h2, .feature-copy h2, .contact-card h2 { margin: 16px 0 0; color: var(--navy); font-size: clamp(26px, 2.6vw, 40px); line-height: 1.12; letter-spacing: -.03em; }
.lead { color: var(--muted); font-size: 17px; }
/* Espace titre → sous-titre agrandi (remarque client) */
.section-head h2 + .lead, .section-head h2 + p, .feature-copy h2 + p, .split-panel h2 + p, .split-copy h2 + p { margin-top: 26px; }
.split-panel h2, .proof-card h2 { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card, .metric, .person, .article-card, .step-card, .content-block, .proof-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.card { padding: 30px; min-height: 245px; position: relative; overflow: hidden; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; background: var(--mist); color: var(--navy); border-radius: 10px; }
.block-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; background: var(--mist); color: var(--navy); border-radius: 9px; }
.content-block { display: flex; gap: 18px; align-items: flex-start; background: transparent; border: 0; border-radius: 0; padding: 26px 0; }
.content-block + .content-block { border-top: 1px solid var(--line); }
.content-block p { margin-bottom: 0; }

/* Colonnes éditoriales (Vision) : filets verticaux, pas de boîtes */
.edit-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.edit-item { padding: 6px 40px 6px 0; }
.edit-item + .edit-item { border-left: 1px solid var(--line); padding-left: 40px; }
.edit-item strong { display: block; margin: 12px 0 12px; color: var(--navy); font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.edit-item p { color: var(--muted); margin-bottom: 0; }
.edit-item .number { display: block; }

/* Bande de chiffres sur fond navy */
.section.dark { background: var(--navy-900); color: var(--white); }
.section.dark .section-head h2 { color: var(--white); }
.section.dark .section-label { color: var(--gold); }
.section.dark .lead { color: rgba(255,255,255,.7); }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.stat { padding: 40px 36px 8px 0; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.14); padding-left: 36px; }
.stat strong { display: block; color: var(--white); font-size: clamp(38px, 3.2vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat strong::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 18px; background: var(--gold); }
.stat span { display: block; margin-top: 14px; color: rgba(255,255,255,.68); font-size: 15px; font-weight: 600; line-height: 1.5; }

/* Timeline de processus (Méthode) */
.process { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px; }
.process::before { content: ""; position: absolute; top: 21px; left: 0; right: 0; height: 1px; background: var(--line); }
.process-step { position: relative; }
.process-num { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 1px solid var(--navy); color: var(--navy); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.process-step strong { display: block; margin: 20px 0 8px; color: var(--navy); font-size: 19px; letter-spacing: -.02em; }
.process-step p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card strong { display: block; color: var(--navy); font-size: 23px; line-height: 1.14; }
.card p, .metric span, .person p, .article-card p, .step-card p, .content-block p, .proof-card p { color: var(--muted); }
.number, .article-meta { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

/* Chiffres clés : valeur en grand corps, règle or, libellé en dessous */
.metric { padding: 32px 28px 30px; }
.metric strong { display: block; color: var(--navy); font-size: clamp(40px, 3.6vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metric strong::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 16px; background: var(--red); }
.metric span { display: block; margin-top: 13px; font-size: 15px; font-weight: 600; line-height: 1.45; }

/* Micro-interactions — cartes (annulées par prefers-reduced-motion plus bas) */
.card, .article-card, .step-card, .flow-step, .content-block, .metric { transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
@media (hover: hover) {
  .card:hover, .article-card:hover, .step-card:hover, .flow-step:hover, .metric:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(12,35,58,.10); border-color: rgba(23,56,95,.22); }
}
.feature { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 610px; background: var(--navy-900); color: var(--white); border-top: 1px solid rgba(255,255,255,.14); }
.feature-media { min-height: 460px; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding: 72px max(22px, calc((100vw - var(--max)) / 2)) 72px 64px; display: flex; flex-direction: column; justify-content: center; }
.feature-copy h2 { color: var(--white); }
.feature-copy p { color: rgba(255,255,255,.76); }
/* Fonds bleus : accents dorés (voir règle en tête de fichier) */
.feature-copy .section-label, .proof-card.big .kicker { color: var(--gold); }
.split-panel .kicker { color: rgba(255,255,255,.88); } /* panneau Adhésion = CTA rouge, donc pas de doré */
.feature-note { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.06); border-radius: 0 6px 6px 0; }
.feature-note p { margin: 0; color: rgba(255,255,255,.86); font-size: 15px; }
.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 58px; align-items: center; }
.split-panel { background: var(--navy); color: var(--white); padding: 44px; border-radius: 8px; box-shadow: 0 28px 80px rgba(12,35,58,.18); }
.split-panel h2 { color: var(--white); }
.split-panel p { color: rgba(255,255,255,.76); }
.image-card { position: relative; min-height: 430px; overflow: hidden; border-radius: 8px; background: var(--navy-900); }
.image-card img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.image-card figcaption { position: absolute; left: 22px; right: 22px; bottom: 22px; padding: 18px; border-radius: 6px; background: rgba(6,26,45,.82); color: white; backdrop-filter: blur(12px); }
.side-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.side-nav { position: sticky; top: 132px; display: grid; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.side-nav a { padding: 15px 18px; border-bottom: 1px solid var(--line); color: #31495f; font-size: 14px; font-weight: 800; }
.side-nav a:last-child { border-bottom: 0; }
.side-nav a:hover { color: var(--red); background: var(--paper); }
.content-stack { display: grid; gap: 24px; }
.content-block { padding: 34px; }
.content-block h2 { margin-bottom: 12px; color: var(--navy); font-size: 28px; letter-spacing: -.03em; }
.policy-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.flow-step { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.flow-step strong { display: block; color: var(--navy); margin: 14px 0 8px; }
.proof-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.proof-card { padding: 32px; }
.proof-title { display: block; color: var(--navy); font-size: 21px; line-height: 1.2; margin: 14px 0 16px; }
.proof-card.big { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.proof-card.big::before { content: "«"; position: absolute; top: -34px; right: 14px; font-family: Georgia, "Times New Roman", serif; font-size: 230px; line-height: 1; color: rgba(193,155,87,.15); pointer-events: none; }
.proof-card.big p, .proof-card.big .lead { color: rgba(255,255,255,.78); }
.proof-card.big h2 { color: var(--white); font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -.04em; }
.proof-card.big blockquote { margin: 16px 0 24px; padding: 0; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.32; letter-spacing: -.02em; color: var(--white); font-style: italic; }
.proof-author { display: block; color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.proof-author small { display: block; margin-top: 4px; color: rgba(255,255,255,.62); font-weight: 700; letter-spacing: .02em; text-transform: none; font-size: 13px; }
.article-card { overflow: hidden; }
.article-card { display: flex; flex-direction: column; }
.article-media { position: relative; overflow: hidden; }
.article-media a { display: block; }
.article-card img { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; transition: transform 400ms ease; }
@media (hover: hover) { .article-card:hover img { transform: scale(1.035); } }
.article-body { padding: 24px; }
.article-body h3 { margin: 10px 0 12px; color: var(--navy); font-size: 20px; line-height: 1.22; }
.article-body h3 a:hover { color: var(--red); }
.article-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { padding: 28px; }
.step-card h3 { color: var(--navy); margin: 34px 0 12px; font-size: 24px; }
/* Mur de logos : grille à filets (une bordure extérieure, cellules séparées par 1 px), logos en couleur */
.logo-wall { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.logo-wall.institutions-wall { max-width: 860px; }
.partner-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; }
.partner-strip.members { grid-template-columns: repeat(4, 1fr); }
.partner-strip.institutions { grid-template-columns: repeat(3, 1fr); }
.partner { min-height: 128px; display: grid; place-items: center; padding: 22px 26px; background: var(--white); color: var(--navy); font-weight: 900; text-align: center; transition: background 220ms ease; }
.partner img { max-height: 56px; width: auto; max-width: min(74%, 200px); object-fit: contain; }
.partner-strip.institutions .partner { min-height: 150px; }
.partner-strip.institutions .partner img { max-height: 78px; }
@media (hover: hover) { .partner:hover { background: var(--paper); } }
.form-shell { display: grid; grid-template-columns: 1fr .75fr; gap: 28px; align-items: start; }
.form-card, .contact-card { padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 22px 60px rgba(12,35,58,.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; padding: 12px 13px; background: var(--paper); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.contact-list { display: grid; gap: 12px; }
.contact-list a, .contact-list span { padding: 16px; background: var(--paper); border-radius: 6px; color: var(--navy); font-weight: 800; }
.footer { background: var(--navy-900); color: rgba(255,255,255,.72); }
.footer-inner { display: grid; grid-template-columns: 1.2fr repeat(3,.7fr); gap: 34px; padding: 58px 0; }
.footer img { width: 190px; margin-bottom: 16px; }
.footer h4 { margin: 0 0 14px; color: var(--white); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer a, .footer p { color: rgba(255,255,255,.72); }
.footer a:hover { color: var(--white); }
.footer-links { display: grid; gap: 8px; font-size: 14px; }
.copyright { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 12px; }
.copyright .credit { color: rgba(255,255,255,.5); }
.copyright .credit strong { color: rgba(255,255,255,.78); font-weight: 800; }
.copyright .credit:hover strong { color: var(--gold); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms ease; }
.stagger.show > * { opacity: 1; transform: translateY(0); }
.stagger.show > *:nth-child(2) { transition-delay: 80ms; }
.stagger.show > *:nth-child(3) { transition-delay: 160ms; }
.stagger.show > *:nth-child(4) { transition-delay: 240ms; }
.stagger.show > *:nth-child(5) { transition-delay: 320ms; }

/* Contenu éditorial (pages / articles) */
.entry-content { max-width: 820px; }
.entry-content h2 { color: var(--navy); font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; margin: 38px 0 14px; }
.entry-content h3 { color: var(--navy); font-size: 23px; margin: 30px 0 10px; }
.entry-content p, .entry-content li { color: #3a4a5c; font-size: 17px; }
.entry-content ul { padding-left: 22px; }
.entry-content blockquote { margin: 26px 0; padding: 20px 26px; border-left: 3px solid var(--navy); background: var(--white); border-radius: 0 8px 8px 0; font-style: italic; color: var(--navy); }
.entry-content img { border-radius: 8px; }
.entry-meta { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

/* Accessibilité */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); word-wrap: normal !important; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; padding: 12px 18px; background: var(--navy); color: var(--white); font-weight: 800; }
.skip-link:focus { left: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } .reveal, .stagger > * { opacity: 1; transform: none; } }
@media (max-width: 1080px) {
  .nav { min-height: 78px; grid-template-columns: auto auto; }
  .brand img { width: 168px; }
  .menu-toggle { display: inline-flex; justify-self: end; }
  .nav-cta { display: none; }
  .menu { grid-column: 1 / -1; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 0 18px; border-top: 1px solid var(--line); }
  .menu.open { display: flex; }
  .menu-link { width: 100%; }
  .menu-item.has-submenu .submenu { display: none; }
  .menu-item.has-submenu.submenu-open .submenu { display: grid; }
  .submenu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 10px 16px; }
  .grid-4, .steps, .partner-strip, .policy-flow { grid-template-columns: 1fr 1fr; }
  .partner-strip.members { grid-template-columns: repeat(4, 1fr); } /* 16 logos = 4 rangées pleines */
  .partner { min-height: 104px; padding: 18px 18px; }
  .partner img { max-height: 46px; max-width: 80%; }
  /* Actualités : cartes horizontales pour éviter la carte orpheline (2 + 1) ; l'image remplit la hauteur du texte */
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .article-card { display: grid; grid-template-columns: minmax(220px, 38%) 1fr; min-height: 236px; }
  .article-media { min-height: 100%; }
  .article-media a, .article-card img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .article-body { padding: 26px 28px; align-self: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; max-width: 520px; }
  .feature, .split, .side-layout, .proof-grid, .form-shell { grid-template-columns: 1fr; }
  .edit-grid { grid-template-columns: 1fr; }
  .edit-item { padding: 0 0 24px; }
  .edit-item strong { margin: 8px 0 8px; }
  .edit-item + .edit-item { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 22px 12px 0; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.14); padding-left: 26px; }
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { top: 0; bottom: 0; left: 21px; right: auto; width: 1px; height: auto; }
  .process-step { padding-left: 66px; padding-bottom: 34px; }
  .process-step:last-child { padding-bottom: 0; }
  .process-num { position: absolute; left: 0; top: 0; }
  .process-step strong { margin-top: 8px; }
  .side-nav { position: static; }
  .feature-copy { padding: 56px 22px; }
}
@media (max-width: 680px) {
  .topbar { display: none; }
  .brand img { width: 150px; }
  .hero, .hero.small { min-height: 680px; }
  .hero::after { background: linear-gradient(180deg, rgba(6,26,45,.78), rgba(6,26,45,.52), rgba(6,26,45,.88)); }
  h1 { font-size: clamp(32px, 10vw, 40px); }
  .grid-2, .grid-3, .grid-4, .steps, .footer-inner, .policy-flow, .form-grid { grid-template-columns: 1fr; }
  .article-card { display: flex; flex-direction: column; min-height: 0; }
  .article-media { min-height: 0; }
  .article-media a, .article-card img { position: static; height: auto; aspect-ratio: 16 / 10; }
  .article-body { padding: 22px; }
  /* Logos : 2 colonnes (membres), 3 sur une rangée (institutionnels), cellules compactes */
  .partner-strip, .partner-strip.members { grid-template-columns: 1fr 1fr; }
  .partner-strip.institutions { grid-template-columns: repeat(3, 1fr); }
  .partner, .partner-strip.institutions .partner { min-height: 88px; padding: 14px 16px; }
  .partner img { max-height: 40px; max-width: 82%; }
  .partner-strip.institutions .partner img { max-height: 48px; }
  /* Chiffres clés : 2 × 2 (hérité de la règle 1080 px) */
  .stat { padding: 24px 14px 10px 0; }
  .stat:nth-child(even) { padding-left: 18px; }
  .stat strong { font-size: clamp(36px, 11vw, 44px); }
  .stat span { font-size: 14px; }
  .feature-media { min-height: 360px; }
  .content-block, .contact-card, .split-panel, .form-card, .proof-card { padding: 26px; }
}

/* Header responsive — réglages validés V3 */
:root { --max: 1560px; }
.topbar-inner { min-height: 38px; gap: 24px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.social-icons { display: flex; align-items: center; gap: 7px; }
.social-icons a { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: rgba(255,255,255,.86); line-height: 0; transition: 160ms ease; }
.social-icons svg { display: block; }
.social-icons a:hover { background: rgba(255,255,255,.14); color: #fff; transform: translateY(-1px); }
a[aria-disabled="true"] { cursor: default; }
.nav { min-height: 76px; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 2vw, 34px); padding: 8px 0; }
.brand { display: flex; align-items: center; align-self: stretch; padding: 12px 0; }
.brand img { width: auto; height: clamp(36px, 2.9vw, 44px); object-fit: contain; }
.menu { justify-content: center; gap: clamp(4px, .75vw, 12px); min-width: 0; }
.menu-link { min-height: 44px; padding: 0 clamp(9px, .75vw, 14px); white-space: nowrap; font-size: clamp(12px, .82vw, 14px); }
.nav-cta { min-width: 172px; white-space: nowrap; }
.hero-content { width: min(var(--max), calc(100% - 44px)); }
@media (min-width: 1600px) {
  :root { --max: 1680px; }
  .nav { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) auto; }
  .brand img { height: 46px; width: auto; }
  .menu-link { font-size: 15px; padding: 0 16px; }
}
@media (max-width: 1320px) {
  :root { --max: 1180px; }
  .nav { min-height: 70px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; }
  .brand img { height: 36px; width: auto; }
  .menu { gap: 2px; }
  .menu-link { font-size: 12px; padding: 0 9px; }
  .nav-cta { min-width: 150px; padding-inline: 14px; }
}
@media (max-width: 1180px) {
  .nav { min-height: 62px; grid-template-columns: auto auto; padding: 8px 0; }
  .brand { padding: 8px 0; }
  .brand img { height: 32px; width: auto; }
  .menu-toggle { display: inline-flex; justify-self: end; align-items: center; gap: 8px; }
  .menu-toggle::before { content: "☰"; font-size: 16px; line-height: 1; }
  .nav-cta { display: none; }
  .menu { grid-column: 1 / -1; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 0 18px; border-top: 1px solid var(--line); }
  .menu.open { display: flex; }
  .menu-link { width: 100%; min-height: 46px; justify-content: space-between; padding: 0 14px; font-size: 14px; white-space: normal; }
  .submenu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 10px 16px; display: none; }
  .menu-item.has-submenu.submenu-open .submenu { display: grid; }
  .submenu a { min-height: 42px; }
}
@media (max-width: 820px) {
  .topbar-inner { min-height: auto; padding: 8px 0; align-items: flex-start; }
  .topbar-inner p { max-width: 56ch; font-size: 11px; line-height: 1.35; }
  .topbar-actions { gap: 10px; }
  .topbar-actions > a { display: none; }
  .nav, .wrap, .footer-inner { width: min(var(--max), calc(100% - 28px)); }
  .hero-content { width: min(100% - 28px, 100%); }
}
@media (max-width: 680px) {
  .topbar { display: block; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-inner p { display: none; }
  .social-icons a { width: 28px; height: 28px; }
  .nav { min-height: 78px; padding: 8px 0; }
  .brand img { height: 28px; width: auto; }
  .menu-toggle { padding: 9px 11px; font-size: 12px; }
  h1 { font-size: clamp(32px, 10vw, 40px); }
  .hero p { font-size: 16px; }
  .hero-actions .button { width: 100%; }
}
@media (max-width: 420px) {
  .brand img { height: 26px; }
  .menu-toggle { min-height: 40px; }
}

/* Têtes de section éditoriales — desktop : le label occupe une colonne de marge, le titre la colonne principale,
   le chapeau (s'il existe) une troisième colonne. Plus de moitié droite vide sous les titres. */
@media (min-width: 1081px) {
  .section-head:not(.center) { display: grid; grid-template-columns: 224px minmax(0, 1fr); column-gap: 40px; align-items: start; max-width: none; }
  .section-head:not(.center) .section-label { grid-column: 1; grid-row: 1; align-self: start; align-items: flex-start; padding-top: 9px; line-height: 1.35; }
  .section-head:not(.center) .section-label::before { flex-shrink: 0; margin-top: 7px; } /* filet calé sur la première ligne, même si le label en fait deux */
  .section-head:not(.center) h2 { grid-column: 2; grid-row: 1; margin-top: 0; max-width: 24ch; }
  .section-head:not(.center).compact h2 { max-width: 34ch; }
  .section-head:not(.center) .lead { grid-column: 2; }
  .section-head.split-head { grid-template-columns: 224px minmax(0, 1.05fr) minmax(0, .95fr); column-gap: clamp(40px, 4vw, 72px); align-items: start; }
  .section-head.split-head .section-head-main { display: contents; }
  .section-head.split-head .lead { grid-column: 3; grid-row: 1; margin-top: 0; padding-top: 10px; } /* label, titre et chapeau partent de la même ligne */
}
