/* ==========================================================================
   AFG Autisme — feuille de styles
   Charte : bleu marine + dégradé orange du logo, tons doux (crème, menthe, ciel)
   Typo : Nunito (titres, arrondie comme l'identité AFG) / Atkinson Hyperlegible (texte, conçue pour la lisibilité)
   Signature : formes organiques bleu ciel derrière les titres, reprises du site historique
   ========================================================================== */

/* Polices auto-hébergées : aucun appel à un service tiers, donc pas de cookie ni de bandeau de consentement */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/nunito-800.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/nunito-900.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/atkinson-400.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/atkinson-700.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/atkinson-400-italic.woff2') format('woff2'); }

:root {
  --navy-950: #0e1834;
  --navy-900: #14224a;
  --navy-800: #1c2f66;
  --navy-700: #27418a;
  --navy-200: #c9d4ee;
  --navy-100: #e8edf8;
  --orange-700: #9a3412;
  --orange-600: #c2410c;
  --orange-500: #e85d0c;
  --orange-400: #f28c1b;
  --red-500: #e2361f;
  --sun-400: #ffc93c;
  --sun-100: #fff4d8;
  --mint-600: #1f7a63;
  --mint-100: #e1f3ec;
  --sky-600: #1f6aa5;
  --sky-400: #6cbfe8;
  --sky-100: #e2effa;
  --rose-100: #fde8ec;
  --lilac-100: #eee9fb;
  --peach-100: #fde9dc;

  --ink: #17213f;
  --ink-soft: #485270;
  --line: #e2e5ee;
  --paper: #ffffff;
  --canvas: #fbf9f5;

  --brand-gradient: linear-gradient(135deg, var(--red-500), var(--orange-400));

  --font-display: 'Nunito', ui-rounded, ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --step-4: clamp(2rem, 1.5rem + 1.9vw, 3.05rem);
  --step-5: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem);

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --radius-xl: 44px;
  --shadow-s: 0 1px 2px rgba(14, 24, 52, 0.06), 0 2px 10px rgba(14, 24, 52, 0.05);
  --shadow: 0 18px 40px -18px rgba(14, 24, 52, 0.28);
  --shadow-l: 0 30px 60px -24px rgba(14, 24, 52, 0.35);

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --line-height: 1.65;
  --letter: normal;
  --word: normal;
}

/* Réglages de confort (panneau « Confort de lecture ») */
html[data-text='lg'] { font-size: 112.5%; }
html[data-text='xl'] { font-size: 125%; }
html[data-readable] {
  --line-height: 1.9;
  --letter: 0.04em;
  --word: 0.12em;
}
html[data-readable] a:not(.btn) { text-decoration: underline !important; text-underline-offset: 3px; }
html[data-readable] p, html[data-readable] li { max-width: 68ch; text-align: left; }
html[data-contrast] {
  --ink: #000;
  --ink-soft: #1f2533;
  --line: #6b7280;
  --canvas: #fff;
  --orange-600: #9a3412;
}
html[data-contrast] .card, html[data-contrast] .etab-card, html[data-contrast] .formation { border-color: #1f2533; }
html[data-calm] {
  --brand-gradient: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  --sun-100: #f4f4f1;
  --mint-100: #f1f3f2;
  --sky-100: #f0f2f5;
  --rose-100: #f4f2f2;
  --peach-100: #f4f2f0;
  --lilac-100: #f2f1f5;
  --canvas: #fafafa;
}
html[data-calm] .deco, html[data-calm] .hero__swoosh { display: none !important; }
html[data-calm] img { filter: saturate(.7); }
html[data-calm] *, html[data-calm] *::before, html[data-calm] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--line-height);
  letter-spacing: var(--letter);
  word-spacing: var(--word);
  color: var(--ink);
  background: var(--canvas);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy-800);
  margin: 0 0 .5em;
  text-wrap: balance;
}
html[data-contrast] h1, html[data-contrast] h2, html[data-contrast] h3 { color: #000; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
strong, b { font-weight: 700; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun-400); color: var(--navy-950); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons & liens ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon--move { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--navy-800); }
.btn--primary:hover { --btn-bg: var(--navy-900); }
.btn--don { --btn-bg: var(--orange-600); }
.btn--don:hover { --btn-bg: var(--orange-700); }
.btn--don .icon { color: #ffd9c2; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-800); border-color: currentColor; }
.btn--ghost:hover { --btn-bg: var(--navy-100); box-shadow: none; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.1); box-shadow: none; }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 700; color: var(--navy-800); text-decoration: none;
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: #fff; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 12px; background: transparent; color: var(--navy-800); cursor: pointer;
}
.icon-btn:hover { background: var(--navy-100); }
.icon-btn .icon { width: 24px; height: 24px; }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  margin: 0 0 1rem; font-weight: 700; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-600);
}
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--brand-gradient); }
.eyebrow--light { color: var(--sun-400); }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--ink-soft); }
.text-gradient { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-contrast] .text-gradient { color: var(--orange-700); background: none; }

/* ---------- Topbar ---------- */
/* En-tête en px : il reste stable quand la taille du texte est augmentée dans le panneau de confort */
.topbar { background: var(--navy-900); color: #dfe6f7; font-size: 14px; position: relative; z-index: 60; }
.topbar, .site-header { letter-spacing: normal; word-spacing: normal; }
.site-header .btn { font-size: 16px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.topbar__tagline { margin: 0; opacity: .85; }
.topbar__links { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.topbar a { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; white-space: nowrap; }
.nav__item--mobile { display: none !important; }
@media (max-width: 1180px) { .nav__item--mobile { display: flex !important; } }
@media (max-width: 400px) { .hide-xs { display: none; } }
.topbar a:hover { color: #fff; text-decoration: underline; }
.comfort-toggle {
  display: inline-flex; align-items: center; gap: .45em; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); color: #fff; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.comfort-toggle:hover, .comfort-toggle[aria-expanded='true'] { background: #fff; color: var(--navy-900); }

.comfort { position: absolute; left: 0; right: 0; top: 100%; padding-top: 8px; }
.comfort__panel {
  margin-left: auto; width: min(100%, 560px);
  background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-l);
  padding: 22px; border: 1px solid var(--line);
}
.comfort__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.comfort__title { margin: 0; font-family: var(--font-display); font-weight: 750; font-size: 1.15rem; color: var(--navy-800); }
.comfort__grid { display: grid; gap: 14px; margin-bottom: 16px; }
.comfort__field { border: 0; padding: 0; margin: 0; }
.comfort__field legend { font-weight: 700; margin-bottom: 8px; }
.segmented { display: inline-flex; background: var(--navy-100); border-radius: 999px; padding: 4px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span:first-of-type {
  display: grid; place-items: center; min-width: 52px; height: 40px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 750; color: var(--navy-800);
}
.segmented .t-lg { font-size: 1.2rem; }
.segmented .t-xl { font-size: 1.45rem; }
.segmented input:checked + span { background: var(--navy-800); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--orange-500); outline-offset: 2px; }
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  position: relative; flex: none; width: 50px; height: 30px; border-radius: 999px; background: #cfd5e3; transition: background .2s;
}
.switch__track::after {
  content: ''; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: left .2s var(--ease);
}
.switch input:checked + .switch__track { background: var(--mint-600); }
.switch input:checked + .switch__track::after { left: 24px; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--orange-500); outline-offset: 2px; }
.switch small { display: block; color: var(--ink-soft); font-size: .875rem; line-height: 1.4; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(14, 24, 52, 0.4); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 51px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: .95; font-family: var(--font-display); }
.brand__text b { font-size: 23px; font-weight: 900; letter-spacing: .06em; color: var(--navy-800); }
.brand__text span { font-size: 16px; font-weight: 700; color: var(--orange-600); letter-spacing: .01em; }
.brand--light .brand__text b { color: #fff; }
.brand--light .brand__text span { color: var(--orange-400); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; padding: 10px 11px; border-radius: 10px;
  font-weight: 700; font-size: 15.5px; color: var(--navy-800); text-decoration: none; white-space: nowrap;
}
.nav__link:hover { background: var(--navy-100); }
.nav__link[aria-current='page'] { color: var(--orange-600); }
.nav__link[aria-current='page']::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px; background: var(--brand-gradient);
}
.has-sub .nav__link { padding-right: 4px; }
.nav__sub-toggle {
  display: grid; place-items: center; width: 22px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--navy-800); cursor: pointer;
}
.nav__sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav__sub-toggle[aria-expanded='true'] .icon { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 6px); left: -8px; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.subnav::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.subnav a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; }
.subnav a:hover { background: var(--canvas); }
.subnav strong { display: block; color: var(--navy-800); }
.subnav span { display: block; font-size: .875rem; color: var(--ink-soft); }
.has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1181px) {
  .has-sub:hover .subnav { opacity: 1; visibility: visible; transform: none; }
}
.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-toggle { display: none; }
.nav-toggle .icon--close { display: none; }
.nav__don-mobile { display: none; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-grid; }
  .site-header__actions { margin-left: auto; }
  .nav {
    position: fixed; inset: 0 0 0 auto; top: 0; width: min(420px, 100%); z-index: 70;
    background: #fff; padding: 96px 20px 32px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
    box-shadow: var(--shadow-l);
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__link { flex: 1; font-size: 1.15rem; padding: 14px 6px; }
  .site-header .nav .btn { font-size: 1rem; }
  .nav__link[aria-current='page']::after { display: none; }
  .nav__sub-toggle { width: 48px; height: 48px; }
  .subnav {
    position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; padding: 0 0 10px;
    display: none; opacity: 1; visibility: visible; transform: none;
  }
  .has-sub.is-open .subnav { display: block; }
  .nav__don-mobile { display: flex; margin-top: 24px; width: 100%; }
  body.nav-open .nav-toggle { position: relative; z-index: 80; }
  body.nav-open .nav-toggle .icon--open { display: none; }
  body.nav-open .nav-toggle .icon--close { display: block; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(14, 24, 52, 0.45); z-index: 45; }
}
@media (max-width: 560px) {
  .site-header__actions .btn--don span { display: none; }
  .site-header__actions .btn--don { width: 48px; padding: 0; }
  .hide-sm { display: none; }
  .topbar__tagline { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .65); }
.section--paper { background: var(--paper); }
.section--cream { background: var(--sun-100); }
.section--mint { background: var(--mint-100); }
.section--sky { background: var(--sky-100); }
.section--navy { background: var(--navy-900); color: #e6ebf8; overflow: hidden; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.section-head--split > div { max-width: 720px; }
.section-head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr .85fr; }
  .split--reverse > :first-child { order: 2; }
}

/* ---------- Cartes ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 32px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: var(--step-1); }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: 20px;
  background: var(--peach-100); color: var(--orange-600);
}
.card__icon .icon { width: 28px; height: 28px; }
.card__icon--sky { background: var(--sky-100); color: var(--sky-600); }
.card__icon--mint { background: var(--mint-100); color: var(--mint-600); }
.card__icon--sun { background: var(--sun-100); color: #8a5a00; }
.card__icon--navy { background: var(--navy-100); color: var(--navy-800); }
.card__icon--rose { background: var(--rose-100); color: #b4234a; }
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- Hero accueil ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); background: var(--paper); }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.02fr 1fr; } }
.hero h1 { font-size: var(--step-5); margin-bottom: .35em; }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--sun-100); color: var(--navy-800); font-weight: 700; font-size: .9375rem;
}
.hero__pill span { white-space: nowrap; flex: none; display: grid; place-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--navy-800); color: #fff; font-size: .8125rem; }
.finder {
  margin-top: 36px; padding: 18px; border-radius: var(--radius); background: var(--canvas); border: 1px solid var(--line);
  max-width: 560px;
}
.finder label { display: block; font-weight: 700; margin-bottom: 10px; color: var(--navy-800); }
.finder__row { display: flex; gap: 10px; flex-wrap: wrap; }
.finder select { flex: 1 1 220px; }
.hero__visual { position: relative; }
.hero__img {
  position: relative; z-index: 1; aspect-ratio: 5 / 5.2; width: 100%; object-fit: cover;
  border-radius: 46% 54% 42% 58% / 38% 40% 60% 62%; box-shadow: var(--shadow-l);
}
.hero__swoosh { position: absolute; z-index: 0; width: 46%; right: -6%; top: -8%; opacity: .95; transform: rotate(8deg); }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-l);
  animation: float 7s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--navy-800); }
.float-card span { font-size: .875rem; color: var(--ink-soft); line-height: 1.3; }
.float-card .card__icon { width: 46px; height: 46px; margin: 0; border-radius: 14px; }
.float-card--a { left: -4%; bottom: 12%; }
.float-card--b { right: -2%; bottom: -4%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 560px) {
  .float-card { padding: 10px 12px; }
  .float-card strong { font-size: 1.25rem; }
  .float-card--a { left: 0; }
  .float-card--b { right: 0; }
}
.deco { position: absolute; pointer-events: none; z-index: 0; }

/* ---------- Bandeau chiffres ---------- */
.stats { background: var(--navy-900); color: #fff; border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.stats__grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(2, 1fr); position: relative; z-index: 1; }
@media (max-width: 559px) { .stat { padding-left: 12px; } .stat > span { font-size: .9375rem; } }
@media (min-width: 1040px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 3px solid; border-image: var(--brand-gradient) 1; padding-left: 18px; }
.stat strong { display: block; font-family: var(--font-display); font-size: var(--step-4); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-bottom: 8px; }
.stat > span { color: #c9d4ee; line-height: 1.4; display: block; }
.stats--overlap { margin-top: calc(var(--section) * -0.55); }

/* ---------- Parcours / profils ---------- */
.paths .card { padding-bottom: 24px; }
.paths ul { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.paths li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0;
  font-weight: 700; color: var(--navy-800); text-decoration: none;
}
.paths li a:hover { color: var(--orange-600); }
.paths li a .icon { transition: transform .25s var(--ease); }
.paths li a:hover .icon { transform: translateX(4px); }

/* ---------- Média + collage ---------- */
.media-frame { position: relative; }
.media-frame img { width: 100%; border-radius: var(--radius-xl); object-fit: cover; aspect-ratio: 4 / 3.4; }
.media-frame__badge {
  position: absolute; left: clamp(-12px, -2vw, -24px); bottom: 28px; max-width: 260px;
  background: var(--brand-gradient); color: #fff; padding: 18px 20px; border-radius: 20px; box-shadow: var(--shadow-l);
}
.media-frame__badge strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.media-frame__badge span { font-size: .9375rem; line-height: 1.35; display: block; margin-top: 6px; }
@media (max-width: 560px) { .media-frame__badge { left: 12px; bottom: 12px; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: var(--navy-100); color: var(--navy-800); font-weight: 700; font-size: .8125rem; letter-spacing: .02em;
}
.method-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.method-tags .tag { font-size: .9375rem; padding: 6px 14px; background: #fff; border: 1.5px solid var(--navy-200); }

.checklist { display: grid; gap: 12px; margin: 0 0 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ''; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%231f7a63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.section--navy .checklist li::before {
  background: rgba(255, 255, 255, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23ffc93c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Types de structures ---------- */
.type-guide { display: grid; gap: 8px; }
.type-guide__item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 12px 16px; background: #fff; border-radius: 14px; border: 1px solid var(--line);
}
.type-guide__item .badge { position: static; min-width: 108px; justify-content: center; }
.type-guide__n { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--navy-800); }
@media (max-width: 480px) {
  .type-guide__item { grid-template-columns: 1fr auto; }
  .type-guide__item .badge { grid-column: 1 / -1; justify-self: start; }
}

.badge {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  font-weight: 700; font-size: .8125rem; line-height: 1.2; background: var(--navy-100); color: var(--navy-800);
}
.badge--ime { background: #ffe9b0; color: #6b4300; }
.badge--sessad { background: #d4e8f8; color: #134c7a; }
.badge--poles-et-centres { background: #dfe5f6; color: var(--navy-800); }
.badge--accueil-de-jour { background: #d8efe5; color: #165a49; }
.badge--esat { background: #ccebdc; color: #12523f; }
.badge--fam { background: #fbd9e1; color: #8a1838; }
.badge--mas { background: #fde0cc; color: #8a3a08; }
.badge--foyers { background: #e6defa; color: #4a2c94; }
.badge--samsah { background: #d6f0f2; color: #145c63; }

/* ---------- Cartes établissements ---------- */
.etab-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .etab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .etab-grid { grid-template-columns: repeat(3, 1fr); } }
.etab-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.etab-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.etab-card[hidden] { display: none; }
.etab-card__media { position: relative; aspect-ratio: 16 / 9.5; background: var(--navy-100); overflow: hidden; }
.etab-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.etab-card:hover .etab-card__media img { transform: scale(1.04); }
.etab-card__media .badge { position: absolute; left: 14px; top: 14px; box-shadow: var(--shadow-s); }
.etab-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.etab-card__dept { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .875rem; color: var(--ink-soft); font-weight: 700; }
.etab-card__title { font-size: 1.3rem; margin-bottom: 10px; }
.etab-card__addr { color: var(--ink-soft); font-size: .9375rem; line-height: 1.5; margin-bottom: 14px; }
.etab-card__contact { display: grid; gap: 6px; margin-bottom: 18px; font-size: .9375rem; }
.etab-card__contact a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy-800); font-weight: 700; min-width: 0; }
.etab-card__contact a:hover { text-decoration: underline; }
.etab-card__contact .icon { color: var(--orange-600); }
.etab-card .link-arrow { margin-top: auto; }

.filters {
  display: grid; gap: 18px; padding: clamp(18px, 3vw, 28px); margin-bottom: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
}
.filters__label { margin: 0 0 8px; font-weight: 700; color: var(--navy-800); font-size: .9375rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0; min-height: 42px; padding: 6px 8px 6px 14px; border-radius: 999px; white-space: nowrap; text-decoration: none;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy-800); font-weight: 700; font-size: .9375rem; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--navy-700); }
.chip[aria-pressed='true'] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip__count { margin-left: 8px; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--navy-100); color: var(--navy-800); font-size: .75rem; }
.chip[aria-pressed='true'] .chip__count { background: rgba(255, 255, 255, 0.18); color: #fff; }
.search { position: relative; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search input { padding-left: 46px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.results-bar p { margin: 0; font-weight: 700; color: var(--navy-800); }
.empty {
  text-align: center; padding: 48px 24px; border: 2px dashed var(--line); border-radius: var(--radius-l); background: #fff;
}

/* ---------- Formulaires ---------- */
.input, input[type='email'], input[type='text'], input[type='tel'], input[type='search'], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid #cdd3e1; border-radius: 14px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(39, 65, 138, 0.18); }
select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231c2f66' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 700; color: var(--navy-800); }
.field .hint { font-size: .875rem; color: var(--ink-soft); }
.field--error input, .field--error select, .field--error textarea { border-color: #b42318; }
.field__error { color: #b42318; font-size: .875rem; font-weight: 700; }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.form-grid .full { grid-column: 1 / -1; }
.form-msg { margin: 0; font-weight: 700; }
.form-msg:empty { display: none; }
.form-msg.is-ok { color: var(--mint-600); }
.form-msg.is-error { color: #b42318; }
.radio-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .radio-cards { grid-template-columns: repeat(3, 1fr); } }
.radio-cards label {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid #cdd3e1; background: #fff; cursor: pointer; font-weight: 700; color: var(--navy-800);
}
.radio-cards input { accent-color: var(--navy-800); width: 18px; height: 18px; }
.radio-cards label:has(input:checked) { border-color: var(--navy-800); background: var(--navy-100); }

/* ---------- Formations ---------- */
.formation-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .formation-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .formation-grid { grid-template-columns: repeat(3, 1fr); } }
.formation {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.formation:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.formation[hidden] { display: none; }
.formation__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.formation__n { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.formation__n { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.formation__title { font-size: 1.2rem; margin-bottom: 8px; }
.formation p { color: var(--ink-soft); font-size: .9375rem; }
.formation .link-arrow { margin-top: auto; font-size: .9375rem; }

/* ---------- Duo don / rejoindre ---------- */
.duo { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .duo { grid-template-columns: repeat(2, 1fr); } }
.duo__card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px;
  border-radius: var(--radius-xl); padding: clamp(26px, 4vw, 44px); color: #fff; isolation: isolate;
}
.duo__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.duo__card::before { content: ''; position: absolute; inset: 0; z-index: -1; }
.duo__card--don::before { background: linear-gradient(180deg, rgba(194, 65, 12, 0.15) 0%, rgba(154, 52, 18, 0.92) 62%); }
.duo__card--job::before { background: linear-gradient(180deg, rgba(20, 34, 74, 0.1) 0%, rgba(14, 24, 52, 0.92) 62%); }
.duo__card:hover img { transform: scale(1.04); }
.duo__card h3 { color: #fff; font-size: var(--step-3); }
.duo__card p { max-width: 460px; color: rgba(255, 255, 255, 0.92); }

/* ---------- Actualités ---------- */
.news-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-100); }
.news-card__media { position: relative; }
.news-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .875rem; color: var(--ink-soft); }
.news-card h3 { font-size: 1.25rem; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-card p { color: var(--ink-soft); font-size: .9375rem; }
.news-card .link-arrow { margin-top: auto; }
.news-card--text { background: var(--sky-100); border-color: transparent; }
.news-card--featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .news-card--featured { flex-direction: row; }
  .news-card--featured .news-card__media { flex: 1.2; aspect-ratio: auto; min-height: 380px; }
  .news-card--featured .news-card__body { flex: 1; padding: 40px; justify-content: center; }
  .news-card--featured h3 { font-size: var(--step-3); }
}

/* ---------- En-tête de page intérieure ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); background: var(--sun-100); }
.page-hero--mint { background: var(--mint-100); }
.page-hero--sky { background: var(--sky-100); }
.page-hero--navy { background: var(--navy-900); color: #e6ebf8; }
.page-hero--navy h1 { color: #fff; }
.page-hero--navy .lead { color: #c9d4ee; }
.page-hero h1 { font-size: var(--step-5); max-width: 15ch; }
.page-hero .lead { max-width: 640px; margin-bottom: 0; }
.page-hero__grid { display: grid; gap: 40px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: 1.1fr .9fr; } }
.page-hero__img { border-radius: var(--radius-xl); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow-l); }
.page-hero .deco--swoosh { right: -60px; top: -40px; width: 280px; opacity: .14; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: .9375rem; color: var(--ink-soft); }
.breadcrumb a { color: inherit; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
.page-hero--navy .breadcrumb { color: #c9d4ee; }

/* Sous-navigation d'ancres */
.anchor-nav { position: sticky; top: 80px; z-index: 40; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.anchor-nav ul { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a {
  display: inline-flex; white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9375rem; color: var(--navy-800);
}
.anchor-nav a:hover { background: var(--navy-100); }
.anchor-nav a.is-active { background: var(--navy-800); color: #fff; }

/* ---------- Frise chronologique ---------- */
.timeline { position: relative; display: grid; gap: 28px; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--orange-400), var(--navy-700)); }
.timeline li { position: relative; }
.timeline li::before {
  content: ''; position: absolute; left: -36px; top: 4px; width: 25px; height: 25px; border-radius: 50%;
  background: #fff; border: 5px solid var(--orange-500);
}
.timeline__date { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--orange-600); margin-bottom: 4px; }
.timeline h3 { font-size: 1.2rem; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--ink-soft); }

/* Citation */
.quote { position: relative; margin: 0; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-xl); background: var(--navy-900); color: #fff; }
.quote .icon { width: 44px; height: 44px; color: var(--orange-400); margin-bottom: 16px; }
.quote p { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.quote footer { color: #c9d4ee; font-weight: 700; }

/* Étapes */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 30px);
}
.step__n {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: var(--brand-gradient); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
}
.step h3 { font-size: 1.3rem; margin-bottom: 6px; }
.step p:last-child { margin-bottom: 0; }

/* Personnes / listes de membres */
.people { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.person__avatar {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-100); color: var(--navy-800); font-family: var(--font-display); font-weight: 800;
}
.person:nth-child(3n+2) .person__avatar { background: var(--peach-100); color: var(--orange-700); }
.person:nth-child(3n) .person__avatar { background: var(--mint-100); color: var(--mint-600); }
.person strong { display: block; color: var(--navy-800); line-height: 1.3; }
.person span { display: block; font-size: .875rem; color: var(--ink-soft); line-height: 1.35; }

.doc-list { display: grid; gap: 10px; }
.doc-list a {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border-radius: 16px; border: 1px solid var(--line);
  text-decoration: none; transition: border-color .2s, transform .2s var(--ease);
}
.doc-list a:hover { border-color: var(--navy-700); transform: translateX(4px); }
.doc-list .card__icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; flex: none; }
.doc-list strong { display: block; color: var(--navy-800); }
.doc-list span { display: block; font-size: .9375rem; color: var(--ink-soft); line-height: 1.4; }

/* Contact */
.contact-card { background: var(--navy-900); color: #e6ebf8; border-radius: var(--radius-xl); padding: clamp(26px, 4vw, 40px); }
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-list { display: grid; gap: 18px; margin: 24px 0; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .card__icon { width: 46px; height: 46px; margin: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.1); color: var(--orange-400); flex: none; }
.contact-list strong { display: block; color: #fff; }
.contact-list a { color: #fff; }
.map { border: 0; width: 100%; height: 280px; border-radius: var(--radius); filter: grayscale(.2); }

/* Logos partenaires */
.partner-logos { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.partner-logos > * { background: #fff; border-radius: 16px; padding: 16px 22px; display: grid; place-items: center; min-height: 84px; }
.partner-logos img { max-height: 54px; width: auto; }
.partner-logos .partner-text { font-family: var(--font-display); font-weight: 800; color: var(--navy-800); font-size: 1.1rem; text-align: center; line-height: 1.2; }
.partner-logos .partner-text small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .8125rem; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr;
  border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); background: var(--brand-gradient); color: #fff;
}
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; font-size: var(--step-3); margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.92); max-width: 640px; }
.cta-band .deco { right: -40px; bottom: -80px; width: 260px; opacity: .18; filter: brightness(0) invert(1); }
html[data-calm] .cta-band { background: var(--navy-800); }

/* Vidéos */
.video-card { position: relative; display: block; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 9 / 12; background: var(--navy-800); color: #fff; text-decoration: none; isolation: isolate; }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.video-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(14, 24, 52, 0.9)); }
.video-card:hover img { transform: scale(1.05); }
.video-card__play { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--orange-600); }
.video-card__play .icon { width: 24px; height: 24px; }
.video-card__body { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.video-card__body strong { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; margin-bottom: 4px; }
.video-card__body span { font-size: .9375rem; color: #dfe6f7; }

/* Bloc don */
.don-box { background: #fff; border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-l); border: 1px solid var(--line); }
.don-box h2 { font-size: var(--step-2); }
.secure { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .875rem; color: var(--ink-soft); }
.secure .icon { color: var(--mint-600); }

/* ---------- Newsletter & footer ---------- */
.newsletter { background: var(--sky-100); padding-block: clamp(40px, 6vw, 64px); }
.newsletter__inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 960px) { .newsletter__inner { grid-template-columns: 1.1fr 1.2fr auto; gap: 40px; } }
.newsletter__title { font-size: var(--step-2); margin-bottom: .25em; }
.newsletter p { margin: 0; color: var(--ink-soft); }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter__form input { flex: 1 1 220px; border-radius: 999px; padding-inline: 22px; }
.newsletter__form .form-msg { flex-basis: 100%; }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy-800);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.socials a:hover { background: var(--navy-800); color: #fff; transform: translateY(-2px); }
.socials .icon { width: 22px; height: 22px; }

.site-footer { background: var(--navy-950); color: #c9d4ee; padding-top: clamp(48px, 7vw, 80px); font-size: .9375rem; }
.site-footer__grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1.6fr; gap: 80px; } }
.site-footer__brand p { margin: 20px 0; max-width: 380px; }
.site-footer address { line-height: 1.9; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__nav { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .site-footer__nav { grid-template-columns: repeat(3, 1fr); } }
.site-footer__title { font-family: var(--font-display); font-weight: 750; color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer__nav li { margin-bottom: 8px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: .875rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
html[data-calm] .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Divers ---------- */
.mt-0 { margin-top: 0; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.note { padding: 16px 18px; border-radius: 14px; background: var(--sun-100); border-left: 4px solid var(--sun-400); font-size: .9375rem; }
.page-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media print {
  .topbar, .site-header, .newsletter, .anchor-nav, .site-footer__nav { display: none !important; }
  body { background: #fff; }
}

/* Liste des régions */
.region-list { display: grid; gap: 8px; }
.region-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease);
}
.region-list a:hover { border-color: var(--navy-700); transform: translateX(4px); }
.region-list strong { display: block; color: var(--navy-800); }
.region-list small { display: block; color: var(--ink-soft); font-size: .875rem; line-height: 1.4; }
.region-list__n {
  flex: none; display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px;
  background: var(--navy-800); color: #fff; font-family: var(--font-display); font-weight: 800;
}
.h-sm { font-size: 1.15rem; margin-bottom: 14px; }
.mt-1 { margin-top: 16px; }
.note a { font-weight: 700; color: var(--navy-800); }
.topbar a[aria-current='page'] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.h3 { font-size: var(--step-2); }
.news-card .h3 { font-size: 1.25rem; }
.news-card .h3 a { text-decoration: none; }
.news-card .h3 a:hover { text-decoration: underline; }
@media (min-width: 900px) { .news-card--featured .h3 { font-size: var(--step-3); } }

.type-guide--cols { grid-template-columns: 1fr; }
@media (min-width: 900px) { .type-guide--cols { grid-template-columns: repeat(2, 1fr); } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts li { background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow-s); }
.hero-facts strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; color: var(--navy-800); }
.hero-facts span { font-size: .875rem; color: var(--ink-soft); }
.stats h2, .stats h3 { color: #fff; }
.page-hero h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.9rem); max-width: 18ch; }

a.chip { padding-right: 14px; }

/* ---------- Formes organiques derrière les titres (signature du site historique) ---------- */
.hero h1, .page-hero h1, .section-head h2 { position: relative; z-index: 0; }
.hero h1::before, .page-hero h1::before, .section-head h2::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: -.42em; top: -.3em; width: 1.9em; height: 1.75em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%236cbfe8' d='M147.6 38.7c12.8 11.2 20.9 27.6 24.5 45 3.6 17.4 2.7 35.8-5.7 49.9-8.4 14.1-24.3 23.9-41.2 30.5-16.9 6.6-34.8 10-51.5 5.5-16.7-4.5-32.2-16.9-41.1-33-8.9-16.1-11.2-35.9-6.3-53.2 4.9-17.3 17-32.1 31.7-43 14.7-10.9 28.3-17.9 43.9-20.2 15.5-2.3 32.9 7.3 45.7 18.5Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.hero h1::before { width: 2.3em; height: 2.1em; left: -.5em; top: -.42em; }
.section-head--center h2::before { left: 50%; margin-left: -.2em; top: -.38em; }
.section-head h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%236cbfe8' d='M139.9 48.4c12.5 6.4 23.7 17.5 29.3 31.3 5.6 13.8 5.6 30.3-.7 43.6-6.3 13.3-18.9 23.4-32.5 32.1-13.6 8.7-28.2 16-44.1 17.5-15.9 1.5-33.1-2.8-45.3-13.4-12.2-10.6-19.4-27.5-20.2-44.1-.8-16.6 4.8-32.9 13.9-46.1 9.1-13.2 21.7-23.3 34.9-29.3 13.2-6 27-7.9 40.2-4.6 13.2 3.3 12 6.6 24.5 13Z'/%3E%3C/svg%3E"); opacity: .85; }
.section--sky .section-head h2::before, .page-hero--sky h1::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%23ffd45c' d='M147.6 38.7c12.8 11.2 20.9 27.6 24.5 45 3.6 17.4 2.7 35.8-5.7 49.9-8.4 14.1-24.3 23.9-41.2 30.5-16.9 6.6-34.8 10-51.5 5.5-16.7-4.5-32.2-16.9-41.1-33-8.9-16.1-11.2-35.9-6.3-53.2 4.9-17.3 17-32.1 31.7-43 14.7-10.9 28.3-17.9 43.9-20.2 15.5-2.3 32.9 7.3 45.7 18.5Z'/%3E%3C/svg%3E"); }
.section--cream .section-head h2::before, .page-hero h1::before { opacity: .9; }
.section--navy .section-head h2::before, .page-hero--navy h1::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%2327418a' d='M139.9 48.4c12.5 6.4 23.7 17.5 29.3 31.3 5.6 13.8 5.6 30.3-.7 43.6-6.3 13.3-18.9 23.4-32.5 32.1-13.6 8.7-28.2 16-44.1 17.5-15.9 1.5-33.1-2.8-45.3-13.4-12.2-10.6-19.4-27.5-20.2-44.1-.8-16.6 4.8-32.9 13.9-46.1 9.1-13.2 21.7-23.3 34.9-29.3 13.2-6 27-7.9 40.2-4.6 13.2 3.3 12 6.6 24.5 13Z'/%3E%3C/svg%3E"); opacity: 1; }
html[data-calm] .hero h1::before, html[data-calm] .page-hero h1::before, html[data-calm] .section-head h2::before,
html[data-contrast] .hero h1::before, html[data-contrast] .page-hero h1::before, html[data-contrast] .section-head h2::before { display: none; }
@media (max-width: 560px) {
  .hero h1::before, .page-hero h1::before, .section-head:not(.section-head--center) h2::before { left: -.25em; }
}

/* Carte chargée à la demande (pas de cookie Google avant un clic) */
.map-consent {
  display: grid; gap: 12px; align-content: center; min-height: 200px; padding: 22px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07); border: 1px dashed rgba(255, 255, 255, 0.3); font-size: .9375rem;
}
.map-consent p { margin: 0; color: #c9d4ee; }
