/* ==========================================================================
   Eurêka Soutient le Bonheur — feuille de style du site public
   Palette : bleu nuit du logo, bleu action, ciel (accents sur fond sombre), blanc.
   Typo : Poppins (titres, interface — celle du logo) + Lora (lecture).
   ========================================================================== */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff") format("woff"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff") format("woff"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic-var.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --night: #000441;        /* bleu nuit du logo */
  --night-2: #0B1660;
  --blue: #1747D6;         /* bleu action */
  --blue-dark: #0F33A3;
  --sky: #3BD3F7;          /* ciel — seulement sur fond sombre */
  --ice: #EEF4FC;
  --ice-2: #E2ECFA;
  --line: #D5E1F2;
  --white: #FFFFFF;
  --text: #141B3D;
  --muted: #55607E;
  --ok: #157A4F;
  --err: #B42318;

  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r: 14px;
  --r-lg: 28px;
  --shadow: 0 18px 40px -22px rgba(0, 4, 65, .35);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 1.0625rem/1.7 var(--serif);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sky); color: var(--night); }

h1, h2, h3, h4 { font-family: var(--sans); color: var(--night); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.6; color: var(--muted); max-width: 38em; }
.sans { font-family: var(--sans); }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: var(--section) 0; }
.section--ice { background: var(--ice); }
.section--night { background: var(--night); color: #D9E2FF; }
.section--night h2, .section--night h3, .section--night h4 { color: var(--white); }
.section-head { display: flex; gap: 24px; align-items: end; justify-content: space-between; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > div { flex: 1 1 520px; max-width: 720px; }
.section-head h2 { margin: 0; }
.section-head > p { margin: 0; flex: 0 1 380px; color: var(--muted); }
.section--night .section-head p { color: #AEBBE6; }
.kicker { font-family: var(--sans); font-weight: 500; font-size: .95rem; color: var(--blue); margin: 0 0 .9rem; display: inline-flex; align-items: center; gap: .55em; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; }
.section--night .kicker { color: var(--sky); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-family: var(--sans); }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff; --bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 500 1rem/1 var(--sans); padding: 1em 1.6em; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap;
}
.btn:hover { --bg: var(--blue-dark); --bd: var(--blue-dark); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --bg: transparent; --fg: var(--night); --bd: var(--line); }
.btn--ghost:hover { --bg: var(--ice); --bd: var(--ice-2); --fg: var(--night); }
.btn--white { --bg: #fff; --fg: var(--night); --bd: #fff; }
.btn--white:hover { --bg: var(--sky); --bd: var(--sky); --fg: var(--night); }
.btn--line-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .35); }
.btn--line-light:hover { --bg: rgba(255, 255, 255, .1); --bd: #fff; --fg: #fff; }
.btn--sm { padding: .7em 1.15em; font-size: .92rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link { font-family: var(--sans); font-weight: 500; text-decoration: none; display: inline-flex; gap: .45em; align-items: center; }
.link:hover { text-decoration: underline; }

/* ---------- En-tête ---------- */
.topbar { background: var(--night); color: #C6D2FA; font: 400 .85rem/1 var(--sans); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 40px; }
.topbar a { color: #C6D2FA; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; gap: 22px; }
.topbar__info span, .topbar__info a { display: inline-flex; gap: .5em; align-items: center; }
.topbar__social { display: flex; gap: 16px; align-items: center; }
.topbar__docs { display: inline-flex; gap: .5em; align-items: center; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.18); }
@media (max-width: 760px) { .topbar__info .hide-sm { display: none; } }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0, 4, 65, .5); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }
.brand { flex: none; display: block; line-height: 0; }
.brand img { height: 46px; width: auto; max-width: none; aspect-ratio: 640 / 153; object-fit: contain; }
.lbl-xs { display: none; }
@media (max-width: 420px) { .lbl-lg { display: none; } .lbl-xs { display: inline; } }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { font: 500 .93rem/1 var(--sans); color: var(--night); text-decoration: none; padding: .75em .75em; white-space: nowrap; border-radius: 999px; position: relative; }
.nav a:hover { background: var(--ice); color: var(--night); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: .85em; right: .85em; bottom: .3em; height: 2px; background: var(--blue); border-radius: 2px; }
.header__cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--night); font-size: 1.1rem; cursor: pointer; }
@media (max-width: 1180px) {
  .burger { display: inline-grid; place-items: center; }
  .nav { position: fixed; inset: 84px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 28px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; max-height: calc(100vh - 84px); overflow: auto; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 1em; border-radius: var(--r-sm); font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: var(--ice); }
  .header__cta .btn--ghost { display: none; }
}
@media (max-width: 480px) { .brand img { height: 38px; } .header__cta .btn { padding: .8em 1.1em; font-size: .92rem; } }

/* ---------- Hero accueil ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .soft { color: var(--blue); display: block; }
.hero .lead { margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note { margin-top: 2rem; display: flex; gap: 14px; align-items: center; font: 400 .92rem/1.4 var(--sans); color: var(--muted); }
.hero__note strong { color: var(--night); font-weight: 600; }
.hero__faces { display: flex; flex: none; }
.hero__faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin-left: -12px; }
.hero__faces img:first-child { margin-left: 0; }
.heart-photo { position: relative; aspect-ratio: 1 / .93; }
.heart-photo svg { width: 100%; height: 100%; overflow: visible; display: block; }
.heart-photo__badge {
  position: absolute; left: -4%; bottom: 8%; background: #fff; border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow);
  font: 400 .9rem/1.35 var(--sans); color: var(--muted); max-width: 230px; display: flex; gap: 12px; align-items: center;
}
.heart-photo__badge b { display: block; font-size: 1.5rem; color: var(--night); line-height: 1.1; letter-spacing: -.02em; }
.heart-photo__badge i { color: var(--blue); font-size: 1.4rem; }
.heart-reveal { animation: heartIn 1.1s cubic-bezier(.2, .7, .1, 1) both; transform-origin: 50% 60%; }
@keyframes heartIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .heart-photo { max-width: 520px; width: 100%; margin: 0 auto; }
  .heart-photo__badge { left: 0; }
}

/* ---------- Bande d'impact ---------- */
.impact { background: var(--night); color: #C9D4FB; padding: clamp(36px, 5vw, 56px) 0; }
.impact ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.impact li { padding: 4px 28px; border-left: 1px solid rgba(255, 255, 255, .14); font: 400 .95rem/1.45 var(--sans); }
.impact li:first-child { border-left: 0; padding-left: 0; }
.impact strong { display: block; font: 700 clamp(2.2rem, 4vw, 3.2rem)/1 var(--sans); color: #fff; letter-spacing: -.04em; margin-bottom: .3em; }
.impact strong span { color: var(--sky); }
@media (max-width: 820px) {
  .impact ul { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .impact li:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- Mission / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.split__media .inset { position: absolute; width: 46%; right: -6%; bottom: -8%; border: 8px solid #fff; border-radius: var(--r); aspect-ratio: 1; box-shadow: var(--shadow); }
.section--ice .split__media .inset { border-color: var(--ice); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split--reverse > :first-child { order: 0; } .split__media .inset { right: 4%; } }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks li i { width: 28px; height: 28px; border-radius: 50%; background: var(--ice); color: var(--blue); display: grid; place-items: center; font-size: .8rem; margin-top: .2em; }
.section--ice .checks li i { background: #fff; }
.checks b { font-family: var(--sans); font-weight: 600; color: var(--night); display: block; }

/* ---------- Programmes ---------- */
.programs { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 32px); }
.program-feature { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; }
.program-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.program-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 4, 65, 0) 30%, rgba(0, 4, 65, .88) 100%); }
.program-feature:hover img { transform: scale(1.03); }
.program-feature__body { position: relative; z-index: 1; padding: clamp(24px, 3vw, 40px); }
.program-feature h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.program-feature p { color: #D7E0FF; margin: 0; max-width: 30em; }
.program-feature .tag { display: inline-flex; gap: .5em; align-items: center; font: 500 .85rem/1 var(--sans); background: var(--sky); color: var(--night); padding: .55em .9em; border-radius: 999px; margin-bottom: 1rem; }
.program-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.program-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background .2s, padding .2s; }
.program-row:hover { background: var(--ice); padding-left: 14px; padding-right: 14px; color: var(--text); }
.section--ice .program-row:hover { background: #fff; }
.program-row .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--ice); color: var(--blue); display: grid; place-items: center; font-size: 1.25rem; }
.section--ice .program-row .ico { background: #fff; }
.program-row h3 { font-size: 1.12rem; margin: 0 0 .2em; }
.program-row p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.program-row .go { color: var(--blue); font-size: .95rem; }
@media (max-width: 900px) { .programs { grid-template-columns: minmax(0, 1fr); } .program-feature { min-height: 380px; } }

/* Grille programmes (page dédiée) */
.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.program-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.program-card figure { margin: 0 0 18px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 11; background: var(--ice); }
.program-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.program-card:hover img { transform: scale(1.04); }
.program-card h3 { display: flex; gap: .55em; align-items: center; }
.program-card h3 i { color: var(--blue); font-size: .9em; }
.program-card p { color: var(--muted); margin: 0 0 .8em; }
.program-card:hover h3 { color: var(--blue); }

/* ---------- 1722-Event bloc ---------- */
.event { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.event__media { position: relative; }
.event__media img { border-radius: var(--r-lg); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.event__quote { position: absolute; right: -4%; bottom: -10%; max-width: 330px; background: #fff; color: var(--text); border-radius: var(--r); padding: 20px 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); font: italic 400 1rem/1.5 var(--serif); }
.event__quote cite { display: block; margin-top: .7em; font: 500 .85rem/1.3 var(--sans); font-style: normal; color: var(--blue); }
.event__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 2rem 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.event__facts div { padding: 18px 16px 0 0; }
.event__facts b { display: block; font: 700 2rem/1 var(--sans); color: #fff; letter-spacing: -.03em; }
.event__facts span { font: 400 .88rem/1.35 var(--sans); color: #AEBBE6; }
@media (max-width: 900px) { .event { grid-template-columns: minmax(0, 1fr); } .event__quote { position: static; margin: -40px 16px 0; position: relative; } }

/* ---------- Actualités ---------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 3vw, 40px); }
.news-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-content: start; }
.post-card { display: block; text-decoration: none; color: var(--text); }
.post-card figure { margin: 0 0 16px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--ice); }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover img { transform: scale(1.03); }
.post-card h3 { margin: .35em 0 .4em; }
.post-card:hover h3 { color: var(--blue); }
.post-card p { color: var(--muted); margin: 0; }
.post-card--big h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.post-card--row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: start; }
.post-card--row figure { margin: 0; aspect-ratio: 1 / .8; }
.post-card--row h3 { font-size: 1.08rem; margin-top: .25em; }
.meta { font: 400 .85rem/1.4 var(--sans); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.meta .cat { color: var(--blue); font-weight: 500; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .post-card--row { grid-template-columns: 110px minmax(0, 1fr); } }

/* ---------- Témoignage ---------- */
.quote-block { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.quote-block img { width: 220px; height: 260px; object-fit: cover; border-radius: 110px 110px var(--r) var(--r); }
.quote-block blockquote { margin: 0; font: italic 400 clamp(1.35rem, 2.6vw, 2.05rem)/1.45 var(--serif); color: var(--night); }
.quote-block cite { display: block; margin-top: 1.2rem; font: 500 1rem/1.4 var(--sans); font-style: normal; color: var(--night); }
.quote-block cite span { display: block; color: var(--muted); font-weight: 400; font-size: .92rem; }
.quote-nav { display: flex; gap: 8px; margin-top: 1.6rem; }
.quote-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--night); cursor: pointer; }
.quote-nav button:hover { background: var(--ice); }
@media (max-width: 720px) { .quote-block { grid-template-columns: minmax(0, 1fr); } .quote-block img { width: 160px; height: 190px; } }

/* ---------- Galerie ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; }
.mosaic a { position: relative; overflow: hidden; border-radius: var(--r); display: block; background: var(--ice); }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(4) { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; font: 500 .85rem/1.3 var(--sans); color: #fff; background: rgba(0, 4, 65, .7); padding: .5em .8em; border-radius: 8px; opacity: 0; transform: translateY(6px); transition: .25s; }
.mosaic a:hover figcaption, .mosaic a:focus-visible figcaption { opacity: 1; transform: none; }
@media (max-width: 820px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } .mosaic a:nth-child(4) { grid-row: auto; } }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.album { text-decoration: none; color: var(--text); display: block; }
.album__cover { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; margin-bottom: 14px; background: var(--ice); }
.album__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album:hover .album__cover img { transform: scale(1.04); }
.album__count { position: absolute; right: 12px; top: 12px; background: #fff; color: var(--night); font: 500 .8rem/1 var(--sans); padding: .6em .8em; border-radius: 999px; display: inline-flex; gap: .4em; align-items: center; }
.album h3 { margin: 0 0 .2em; }
.album:hover h3 { color: var(--blue); }
.photo-grid { columns: 3 280px; column-gap: 14px; }
.photo-grid a { display: block; margin-bottom: 14px; border-radius: var(--r-sm); overflow: hidden; break-inside: avoid; }
.photo-grid img { width: 100%; transition: opacity .2s; }
.photo-grid a:hover img { opacity: .88; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 4, 65, .94); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 84vh; max-width: min(1200px, 100%); border-radius: var(--r-sm); }
.lightbox p { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #D7E0FF; font: 400 .95rem var(--sans); margin: 0; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; }
.lb-next { right: 14px; top: 50%; }

/* ---------- Partenaires ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.logos a, .logos span { flex: 1 1 180px; display: grid; place-items: center; height: 110px; padding: 18px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.logos img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .25s; }
.logos a:hover img { filter: none; opacity: 1; }
.partner-list { display: grid; gap: 22px; }
.partner { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.partner__logo { height: 110px; display: grid; place-items: center; background: var(--ice); border-radius: var(--r-sm); padding: 14px; }
.partner__logo img { max-height: 80px; object-fit: contain; }
.partner h3 { margin: 0 0 .3em; }
.partner p { margin: 0 0 .5em; color: var(--muted); }
@media (max-width: 640px) { .partner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Comment aider ---------- */
.ways { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.way { border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; background: var(--ice); color: var(--text); }
.way h3 { margin: 0; }
.way p { margin: 0 0 auto; color: var(--muted); }
.way .btn { align-self: flex-start; margin-top: 18px; }
.way__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; background: #fff; color: var(--blue); margin-bottom: 8px; }
.way--main { background: var(--blue); color: #E3EAFF; }
.way--main h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.way--main p { color: #DCE5FF; }
.way--main .way__ico { background: rgba(255, 255, 255, .14); color: #fff; }
.amounts-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.amounts-mini span { font: 500 .85rem/1.35 var(--sans); background: rgba(255, 255, 255, .14); color: #fff; padding: .6em .9em; border-radius: 999px; }
@media (max-width: 900px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bandeau de page ---------- */
.page-hero { background: var(--night); color: #C9D4FB; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -140px; width: 460px; height: 460px; border-radius: 50%; border: 70px solid rgba(59, 211, 247, .08); }
.page-hero h1 { color: #fff; max-width: 15em; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.page-hero .lead { color: #B9C6F2; margin: 0; }
.crumbs { font: 400 .88rem/1 var(--sans); margin-bottom: 1.4rem; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #AEBBE6; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: var(--sky); }
.page-hero--image { min-height: 440px; display: flex; align-items: flex-end; }
.page-hero--image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero--image .wrap { position: relative; z-index: 1; }

/* ---------- Article ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); }
.article__cover { border-radius: var(--r-lg); overflow: hidden; margin: calc(-1 * clamp(40px, 6vw, 72px)) 0 40px; aspect-ratio: 16 / 9; background: var(--ice); box-shadow: var(--shadow); position: relative; z-index: 2; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.12rem; line-height: 1.8; max-width: 70ch; }
.prose h2 { font-size: 1.7rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--blue); font-style: italic; font-size: 1.25rem; color: var(--night); }
.prose img { border-radius: var(--r); margin: 1.6em 0; }
.prose a { color: var(--blue); }
.prose > :first-child { margin-top: 0; }
.aside-box { background: var(--ice); border-radius: var(--r); padding: 26px; margin-bottom: 22px; }
.aside-box h4 { margin-bottom: .8em; }
.aside-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.aside-box li a { font: 500 .95rem/1.35 var(--sans); color: var(--night); text-decoration: none; }
.aside-box li a:hover { color: var(--blue); }
.aside-box li span { display: block; font: 400 .8rem/1.4 var(--sans); color: var(--muted); margin-top: 2px; }
.aside-box--blue { background: var(--blue); color: #E3EAFF; }
.aside-box--blue h4 { color: #fff; }
.share { display: flex; gap: 10px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font: 500 .92rem var(--sans); flex-wrap: wrap; }
.share a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--night); text-decoration: none; }
.share a:hover { background: var(--blue); color: #fff; }
@media (max-width: 960px) { .article { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Filtres / pagination ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chips a { font: 500 .9rem/1 var(--sans); padding: .75em 1.1em; border-radius: 999px; border: 1px solid var(--line); color: var(--night); text-decoration: none; background: #fff; }
.chips a:hover { border-color: var(--blue); color: var(--blue); }
.chips a[aria-current="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 56px; font-family: var(--sans); }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; color: var(--night); border: 1px solid var(--line); padding: 0 8px; }
.pager span[aria-current] { background: var(--night); border-color: var(--night); color: #fff; }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); font-family: var(--sans); }
.empty i { font-size: 2rem; color: var(--blue); margin-bottom: 14px; display: block; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 640px) { .form .row, .form .row-3 { grid-template-columns: minmax(0, 1fr); } }
.field label, .field .label { display: block; font: 500 .92rem/1.3 var(--sans); color: var(--night); margin-bottom: 8px; }
.field .req { color: var(--blue); }
.field small { display: block; margin-top: 6px; font: 400 .82rem/1.4 var(--sans); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: .9em 1em; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23, 71, 214, .14); }
.input[aria-invalid="true"] { border-color: var(--err); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--night) 50%), linear-gradient(135deg, var(--night) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.6em; }
.check { display: flex; gap: 12px; align-items: flex-start; font: 400 .92rem/1.5 var(--sans); color: var(--muted); }
.check input { width: 20px; height: 20px; accent-color: var(--blue); margin-top: 2px; flex: none; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.2em; border: 1.5px solid var(--line); border-radius: 999px; font: 500 .95rem/1 var(--sans); color: var(--night); background: #fff; transition: .15s; }
.choice input:checked + span { background: var(--night); border-color: var(--night); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.choice--amount span { min-width: 84px; justify-content: center; font-size: 1.05rem; font-weight: 600; }
.form-card { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2, .form-card h3 { margin-bottom: .3em; }
.notice { padding: 16px 18px; border-radius: 12px; font: 400 .95rem/1.5 var(--sans); display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.notice i { margin-top: .25em; }
.notice--ok { background: #E7F6EE; color: var(--ok); }
.notice--error { background: #FDECEA; color: var(--err); }
.notice--info { background: var(--ice); color: var(--night); }
.file-drop { border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; display: flex; gap: 16px; align-items: center; background: var(--ice); font: 400 .92rem/1.4 var(--sans); }
.file-drop img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #fff; }

/* Onglets */
.tabs { display: inline-flex; padding: 6px; background: var(--ice); border-radius: 999px; gap: 4px; margin-bottom: 32px; flex-wrap: wrap; }
.tabs button { font: 500 .95rem/1 var(--sans); border: 0; background: transparent; color: var(--night); padding: .85em 1.3em; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--blue); box-shadow: 0 4px 14px -8px rgba(0, 4, 65, .4); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- Don ---------- */
.donate { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.donate__impact { display: grid; gap: 14px; margin: 1.8rem 0; }
.impact-line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.impact-line b { font: 700 1.5rem/1 var(--sans); color: var(--blue); letter-spacing: -.02em; }
.impact-line span { font: 400 .95rem/1.45 var(--sans); color: var(--text); }
.pay-methods { display: grid; gap: 12px; }
.pay { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--ice); font: 400 .92rem/1.45 var(--sans); }
.pay i { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--blue); display: grid; place-items: center; }
.pay b { color: var(--night); font-weight: 600; display: block; }
@media (max-width: 960px) { .donate { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Équipe / valeurs / timeline ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 36px; }
.value h3 { display: flex; gap: .6em; align-items: center; font-size: 1.15rem; }
.value h3 i { color: var(--blue); }
.value p { color: var(--muted); margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 36px; padding-bottom: 34px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 86px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline time { font: 700 1.05rem/1.5 var(--sans); color: var(--night); text-align: right; }
.timeline h3 { font-size: 1.1rem; margin-bottom: .25em; }
.timeline p { margin: 0; color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.member img, .member .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); margin-bottom: 14px; background: var(--ice); }
.member .ph { display: grid; place-items: center; font: 700 2.4rem var(--sans); color: var(--blue); }
.member h3 { font-size: 1.08rem; margin: 0 0 .15em; }
.member p { margin: 0; font: 400 .9rem/1.4 var(--sans); color: var(--muted); }
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.place { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.place img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.place div { padding: 26px 28px 30px; }
.place b { font: 700 2.4rem/1 var(--sans); color: var(--blue); letter-spacing: -.03em; display: block; margin-bottom: .2em; }
.place h3 { margin-bottom: .4em; }
.place p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .places { grid-template-columns: minmax(0, 1fr); } }

/* Sommaire programme 1722 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; counter-reset: s; border-top: 2px solid var(--night); }
.steps li { padding: 22px 22px 6px 0; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 700 .95rem/1 var(--sans); color: var(--blue); margin-bottom: 12px; }
.steps h3 { font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.track { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font: 500 .98rem/1.35 var(--sans); color: var(--night); }
.track i { color: var(--blue); width: 22px; text-align: center; }
.countdown { display: flex; gap: 10px; margin: 1.4rem 0; flex-wrap: wrap; }
.countdown div { min-width: 78px; text-align: center; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 10px; font: 400 .8rem/1.2 var(--sans); color: #AEBBE6; }
.countdown b { display: block; font: 700 1.8rem/1.1 var(--sans); color: #fff; }

/* Documents */
.docs { display: grid; gap: 12px; }
.doc { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--text); }
.doc:hover { border-color: var(--blue); color: var(--text); }
.doc i.fa-file-pdf { font-size: 1.6rem; color: var(--blue); }
.doc h3 { font-size: 1.05rem; margin: 0 0 .15em; }
.doc p { margin: 0; color: var(--muted); font: 400 .88rem/1.4 var(--sans); }
@media (max-width: 600px) { .doc { grid-template-columns: 32px minmax(0, 1fr); gap: 12px 14px; padding: 16px; align-items: start; } .doc .link { grid-column: 2; } .doc i.fa-file-pdf { font-size: 1.4rem; margin-top: 2px; } }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 20px; }
.contact-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center; font: 400 1rem/1.45 var(--sans); }
.contact-list i { width: 52px; height: 52px; border-radius: 16px; background: var(--ice); color: var(--blue); display: grid; place-items: center; font-size: 1.1rem; }
.contact-list b { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }
.contact-list a { color: var(--night); text-decoration: none; }
.contact-list a:hover { color: var(--blue); }
.map { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 7; background: var(--ice); border: 0; width: 100%; }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } .map { aspect-ratio: 4 / 3; } }

/* ---------- Pied de page ---------- */
.cta-band { background: var(--blue); color: #E3EAFF; padding: clamp(48px, 6vw, 72px) 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .25em; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-band p { margin: 0; color: #DCE5FF; max-width: 34em; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer { background: var(--night); color: #AEBBE6; padding: clamp(56px, 7vw, 88px) 0 0; font: 400 .95rem/1.6 var(--sans); }
.footer a { color: #D7E0FF; text-decoration: none; }
.footer a:hover { color: var(--sky); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__brand img { height: 52px; width: auto; max-width: none; aspect-ratio: 640 / 153; margin-bottom: 18px; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; }
.footer__social a:hover { background: var(--sky); color: var(--night); }
.newsletter { display: flex; gap: 8px; margin-top: 12px; background: rgba(255, 255, 255, .07); padding: 6px; border-radius: 999px; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 400 .95rem var(--sans); padding: 0 14px; }
.newsletter input::placeholder { color: #8E9CCB; }
.newsletter input:focus { outline: none; }
.newsletter button { border: 0; background: var(--sky); color: var(--night); font: 600 .9rem/1 var(--sans); padding: .9em 1.2em; border-radius: 999px; cursor: pointer; }
.newsletter button:hover { background: #fff; }
.footer__bottom { margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

.toast { position: fixed; z-index: 300; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .3s; background: var(--night); color: #fff; padding: 14px 20px; border-radius: 12px; font: 400 .95rem var(--sans); box-shadow: var(--shadow); max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: var(--err); }
.toast i { color: var(--sky); }
.toast--error i { color: #fff; }

.error-page { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.error-page b { display: block; font: 700 clamp(5rem, 14vw, 9rem)/1 var(--sans); color: var(--ice-2); letter-spacing: -.05em; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .center { text-align: center; }
.quote-mark { width: 220px; height: 220px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font: 700 9rem/1 var(--serif); padding-top: .35em; }
@media (max-width: 720px) { .quote-mark { width: 96px; height: 96px; font-size: 4.5rem; } }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }

[hidden] { display: none !important; }
