/* ==========================================================================
   Association Jeunesse Solidarité SINIGNANSIGI — feuille de style
   Palette tirée du logo : vert profond, vert feuille, brun des mains,
   soleil jaune-orangé, crème.
   ========================================================================== */
:root {
  --green-950: #062a0e;
  --green-900: #0b3a16;
  --green-700: #0a5519;   /* texte du logo */
  --green-500: #3d8b37;   /* feuilles */
  --green-200: #cfe3c4;
  --green-50:  #eef5e8;
  --brown-900: #3b1a08;
  --brown-700: #7c3508;   /* mains */
  --brown-500: #a65a26;
  --brown-100: #f3e3d3;
  --sun-400:   #f7ca35;   /* soleil */
  --sun-500:   #f2a91e;
  --sun-100:   #fff4cf;
  --cream:     #fbf6ea;
  --sand:      #f4ead6;
  --white:     #ffffff;
  --ink:       #2a1a0e;
  --muted:     #6e5f50;
  --line:      #e7dcc6;

  --radius-lg: 28px;
  --radius:    20px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px -6px rgba(59, 26, 8, .18);
  --shadow:    0 22px 50px -24px rgba(59, 26, 8, .35);
  --blob:      62% 38% 55% 45% / 48% 58% 42% 52%;

  --f-title:  "Nunito", system-ui, sans-serif;
  --f-body:   "Inter", system-ui, sans-serif;
  --f-script: "Dancing Script", cursive;

  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.7;
  color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3, h4 { font-family: var(--f-title); line-height: 1.12; margin: 0 0 .55em; color: var(--green-900); }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 900; letter-spacing: -.015em; }
h3 { font-size: 1.22rem; font-weight: 800; }
h4 { font-size: 1.02rem; font-weight: 800; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
::selection { background: var(--sun-400); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun-500); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--green-700); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brown-700); margin-bottom: 1em;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--sun-500); }
.eyebrow--light { color: var(--sun-400); }
.script { font-family: var(--f-script); font-weight: 700; color: var(--brown-700); font-size: 1.5em; line-height: 1; }
.accent { color: var(--brown-700); }
.swash { position: relative; white-space: nowrap; z-index: 0; }
.swash::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .32em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C40 4 90 2 198 10' stroke='%23f7ca35' stroke-width='9' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--green-700); --fg: #fff; --bd: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.55em; border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 700 .98rem/1.2 var(--f-title); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--brown { --bg: var(--brown-700); --bd: var(--brown-700); }
.btn--brown:hover { --bg: var(--brown-900); --bd: var(--brown-900); }
.btn--sun { --bg: var(--sun-400); --bd: var(--sun-400); --fg: var(--brown-900); }
.btn--sun:hover { --bg: var(--sun-500); --bd: var(--sun-500); }
.btn--ghost { --bg: transparent; --fg: var(--green-900); --bd: var(--green-900); }
.btn--ghost:hover { --bg: var(--green-900); --fg: #fff; }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.55); }
.btn--ghost-light:hover { --bg: #fff; --fg: var(--green-900); --bd: #fff; }
.btn--sm { padding: .6em 1.15em; font-size: .9rem; }
.btn--full { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-family: var(--f-title); color: var(--brown-700); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Barre utilitaire + en-tête ---------- */
.topbar { background: var(--green-900); color: rgba(255,255,255,.85); font-size: .84rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--sun-400); }
.topbar svg { width: 15px; height: 15px; }
.topbar__group { display: flex; gap: 22px; flex-wrap: wrap; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 120; background: linear-gradient(90deg, var(--sun-400), var(--sun-500)); }

.header {
  position: sticky; top: 0; z-index: 90; background: rgba(251, 246, 234, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(59,26,8,.35); border-color: var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; transition: height .3s; }
.header.is-scrolled .header__inner { height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 58px; width: auto; transition: height .3s; }
.header.is-scrolled .brand img { height: 48px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__txt strong { font: 900 1.2rem var(--f-title); color: var(--green-700); letter-spacing: -.01em; }
.brand__txt span { font: 700 .95rem var(--f-script); color: var(--brown-700); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: .55em .62em; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 700 .92rem var(--f-title); color: var(--ink); transition: background .2s, color .2s;
}
.nav__link:hover { background: var(--green-50); color: var(--green-700); }
.nav__link.is-active { color: var(--green-700); }
.nav__link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--sun-500); }
.nav__cta { display: flex; gap: 8px; margin-left: 8px; }
.nav__cta .btn { white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 1241px) { .brand__txt { display: none; } }

.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--green-700); cursor: pointer; padding: 13px 12px; position: relative; z-index: 110; }
.burger span { display: block; height: 2px; border-radius: 2px; background: #fff; margin: 4px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero d'accueil ---------- */
.hero { position: relative; padding: 70px 0 120px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 30%, rgba(247,202,53,.35), transparent 70%),
    radial-gradient(500px 380px at 0% 100%, rgba(61,139,55,.12), transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero__rotator { font: 800 1.2rem var(--f-title); color: var(--green-500); margin-bottom: 1.1em; min-height: 1.6em; }
.hero__rotator [data-rotator] { color: var(--brown-700); border-bottom: 3px solid var(--sun-400); display: inline-block; transition: opacity .35s, transform .35s; }
.hero__rotator [data-rotator].is-out { opacity: 0; transform: translateY(8px); }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.hero .btns { margin-top: 28px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: .88rem; color: var(--muted); }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 17px; height: 17px; color: var(--green-500); }

.hero__art { position: relative; aspect-ratio: 1; max-width: 540px; justify-self: center; width: 100%; }
.sun-disc {
  position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fffbe9 0%, var(--sun-100) 45%, #fde9a6 100%);
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.6), 0 30px 80px -30px rgba(242,169,30,.6);
}
.sun-rays { position: absolute; inset: 0; animation: spin 80s linear infinite; }
.sun-rays svg { width: 100%; height: 100%; }
.hero__emblem { position: absolute; inset: 17% 12% 22%; display: grid; place-items: center; }
.hero__emblem img { width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(59,26,8,.18)); animation: floaty 7s ease-in-out infinite; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow); white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}
.chip__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--green-700); flex: none; }
.chip__ico svg { width: 22px; height: 22px; }
.chip strong { display: block; font: 900 1.25rem/1 var(--f-title); color: var(--green-900); }
.chip small { color: var(--muted); font-size: .8rem; }
.chip--1 { top: 8%; left: -4%; animation-delay: -1s; }
.chip--2 { bottom: 16%; right: -6%; animation-delay: -3s; }
.chip--2 .chip__ico { background: var(--brown-700); }
.chip--3 { bottom: 2%; left: 6%; animation-delay: -4.5s; }
.chip--3 .chip__ico { background: var(--sun-500); color: var(--brown-900); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.wave { display: block; width: 100%; height: 70px; }
.wave--bottom { position: absolute; left: 0; right: 0; bottom: -1px; }

/* ---------- Bandeau chiffres ---------- */
.stats { background: var(--green-700); color: #fff; position: relative; padding: 10px 0 64px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 20px 10px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -9px; top: 22%; bottom: 22%; width: 1px; background: rgba(255,255,255,.18); }
.stat__num { display: block; font: 900 clamp(2.3rem, 4.6vw, 3.4rem)/1 var(--f-title); color: var(--sun-400); }
.stat__label { display: block; margin-top: .55em; font-weight: 600; font-size: .98rem; }
.stat__sub { display: block; font-size: .84rem; opacity: .75; margin-top: .25em; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }
.section--green { background: var(--green-900); color: rgba(255,255,255,.88); }
.section--green h2, .section--green h3, .section--green h4 { color: #fff; }
.section--tight { padding: 70px 0; }
.section__head { max-width: 700px; margin-bottom: 52px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::after { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--sun-500); }
.section__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head p { color: var(--muted); font-size: 1.06rem; }
.section--green .section__head p { color: rgba(255,255,255,.75); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; }
.split--60 { grid-template-columns: 1.2fr .8fr; }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 30px 28px;
  border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: .45em; }
.card .link-arrow { margin-top: 18px; }
.ico {
  width: 62px; height: 62px; border-radius: var(--blob); display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); margin-bottom: 22px; transition: border-radius .6s, transform .4s;
}
.ico svg { width: 28px; height: 28px; }
.card:hover .ico { border-radius: 45% 55% 40% 60% / 60% 40% 60% 40%; transform: rotate(-6deg) scale(1.05); }
.ico--brown { background: var(--brown-100); color: var(--brown-700); }
.ico--sun { background: var(--sun-100); color: #9a6205; }
.ico--leaf { background: #e3f0d7; color: var(--green-500); }
.ico--solid { background: var(--green-700); color: #fff; }

.card--domain { padding-top: 34px; overflow: hidden; }
.card--domain::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--sun-100); opacity: 0; transition: opacity .3s; }
.card--domain:hover::after { opacity: 1; }
.card--domain > * { position: relative; z-index: 1; }

.quote-card {
  position: relative; background: var(--brown-700); color: #fff; border-radius: var(--radius-lg);
  padding: 44px 40px; overflow: hidden;
}
.quote-card::before { content: "“"; position: absolute; top: -30px; right: 24px; font: 900 11rem/1 var(--f-title); color: rgba(255,255,255,.1); }
.quote-card p { font: 800 1.35rem/1.45 var(--f-title); margin: 0 0 18px; position: relative; }
.quote-card span { font-family: var(--f-script); font-size: 1.5rem; color: var(--sun-400); }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.facts svg { width: 22px; height: 22px; color: var(--green-500); flex: none; margin-top: 2px; }
.facts strong { display: block; font-family: var(--f-title); color: var(--green-900); }
.facts span { font-size: .92rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section--green .checklist li::before { background-color: var(--sun-500); }

.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: .38em .95em; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-size: .86rem; font-weight: 600; }
.pills--brown li { background: var(--brown-100); color: var(--brown-700); }

/* ---------- Placeholders photo ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius); min-height: 200px; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  color: rgba(255,255,255,.95); font-size: .85rem; font-weight: 600; padding: 18px;
  background: linear-gradient(140deg, var(--green-700), var(--green-500));
}
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(circle at 80% 15%, rgba(247,202,53,.8), transparent 45%),
              repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px);
}
.ph svg { width: 40px; height: 40px; opacity: .9; }
.ph small { font-weight: 500; opacity: .8; font-size: .75rem; }
.ph--brown { background: linear-gradient(140deg, var(--brown-700), var(--brown-500)); }
.ph--sun { background: linear-gradient(140deg, var(--sun-500), #d77f12); }
.ph--dark { background: linear-gradient(140deg, var(--green-950), var(--green-700)); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ---------- Bloc centre (accueil) ---------- */
.centre-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.centre-figure { position: relative; }
.centre-figure .ph { aspect-ratio: 4/3.2; border-radius: var(--radius-lg); }
.big-badge {
  position: absolute; right: -18px; bottom: -24px; width: 158px; height: 158px; border-radius: 50%;
  background: var(--sun-400); color: var(--brown-900); display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow); font-family: var(--f-title); border: 6px solid var(--green-900);
}
.big-badge strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.big-badge span { font-size: .8rem; font-weight: 700; }

/* ---------- Actualités ---------- */
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card .ph { border-radius: 0; aspect-ratio: 16/10; min-height: 0; }
.news-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: .78rem; }
.tag { padding: .28em .8em; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-weight: 700; letter-spacing: .03em; }
.tag--brown { background: var(--brown-100); color: var(--brown-700); }
.tag--sun { background: var(--sun-100); color: #8a5703; }
.news-card time { color: var(--muted); font-weight: 600; }
.news-card h3 { font-size: 1.15rem; }
.news-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter {
  font: 700 .88rem var(--f-title); padding: .55em 1.15em; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); transition: all .2s;
}
.filter:hover { border-color: var(--green-500); color: var(--green-700); }
.filter.is-active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.section--green .filter { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.section--green .filter.is-active { background: var(--sun-400); color: var(--brown-900); border-color: var(--sun-400); }
.is-filtered-out { display: none !important; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; grid-auto-flow: dense; }
.gallery__item { margin: 0; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery__item .ph { height: 100%; min-height: 0; border-radius: 0; transition: transform .5s; }
.gallery__item:hover .ph { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; z-index: 2; color: #fff; font-size: .88rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(6,42,14,.85)); transform: translateY(100%); transition: transform .3s;
}
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { transform: none; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

/* ---------- Lightbox & modal ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 150; background: rgba(6, 22, 9, .9); display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { width: min(960px, 100%); aspect-ratio: 16/10; }
.lightbox__stage > * { width: 100%; height: 100%; border: 0; border-radius: 16px; object-fit: contain; }
.lightbox__stage .ph { font-size: 1.1rem; }
.lightbox__caption { color: #fff; text-align: center; margin: 14px 0 0; font-weight: 600; }
.ov-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background .2s;
}
.ov-btn:hover { background: var(--sun-500); color: var(--brown-900); }
.ov-btn svg { width: 24px; height: 24px; }
.ov-close { top: 18px; right: 18px; }
.ov-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.ov-next { right: 18px; top: 50%; transform: translateY(-50%); }

.modal { background: var(--cream); border-radius: var(--radius-lg); width: min(760px, 100%); max-height: 88vh; overflow: auto; position: relative; transform: translateY(20px); transition: transform .3s; }
.overlay.is-open .modal { transform: none; }
.modal__head { background: var(--green-900); color: #fff; padding: 34px 36px 28px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal__head h3 { color: #fff; font-size: 1.6rem; margin: 10px 0 0; }
.modal__body { padding: 30px 36px 36px; }
.modal .ov-close { background: rgba(255,255,255,.15); }
.def { display: grid; grid-template-columns: 170px 1fr; gap: 12px 20px; margin: 0; }
.def dt { font: 800 .85rem var(--f-title); text-transform: uppercase; letter-spacing: .06em; color: var(--brown-700); }
.def dd { margin: 0; }

/* ---------- Bandeau inner page ---------- */
.page-hero { position: relative; background: var(--green-900); color: rgba(255,255,255,.85); padding: 80px 0 130px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -160px; top: -160px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,202,53,.45), rgba(247,202,53,0) 65%);
}
.page-hero__rays { position: absolute; right: -140px; top: -140px; width: 520px; height: 520px; opacity: .22; animation: spin 90s linear infinite; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 18ch; margin-bottom: .3em; }
.page-hero p { max-width: 62ch; font-size: 1.12rem; margin: 0; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a { color: var(--sun-400); text-decoration: none; }
.crumbs span { opacity: .6; }

/* ---------- Timeline ---------- */
.timeline { position: relative; list-style: none; padding: 0; margin: 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--line); }
.timeline__fill { position: absolute; left: 50%; top: 0; width: 3px; margin-left: -1.5px; background: linear-gradient(var(--sun-500), var(--green-500)); height: 0; transition: height .2s linear; }
.tl-item { position: relative; width: 50%; padding: 0 50px 46px 0; }
.tl-item:nth-of-type(even) { margin-left: 50%; padding: 0 0 46px 50px; }
.tl-item::before {
  content: ""; position: absolute; right: -11px; top: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cream); border: 4px solid var(--green-500); z-index: 1; transition: background .3s, transform .3s;
}
.tl-item:nth-of-type(even)::before { right: auto; left: -11px; }
.tl-item.is-visible::before { background: var(--sun-400); transform: scale(1.15); }
.tl-card { background: var(--white); border-radius: var(--radius); padding: 24px 26px; border: 1px solid var(--line); }
.tl-year { font: 900 1.6rem var(--f-title); color: var(--brown-700); display: block; margin-bottom: 4px; }
.tl-card p { margin: 0; color: var(--muted); }
.tl-item:nth-of-type(odd) { text-align: right; }
.tl-item:nth-of-type(odd) .tl-card { text-align: left; }

/* ---------- Objectifs numérotés ---------- */
.objectives { counter-reset: obj; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.objectives li {
  counter-increment: obj; position: relative; padding: 24px 22px 22px 74px; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--line); min-height: 100px; display: flex; align-items: center;
}
.objectives li::before {
  content: counter(obj, decimal-leading-zero); position: absolute; left: 20px; top: 22px;
  font: 900 1.6rem/1 var(--f-title); color: var(--sun-500);
}

/* ---------- Domaines : sommaire latéral ---------- */
.with-aside { display: grid; grid-template-columns: 290px 1fr; gap: 56px; align-items: start; }
.aside-nav { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border-radius: var(--radius); padding: 14px; border: 1px solid var(--line); }
.aside-nav p { font: 800 .78rem var(--f-title); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 8px 12px 10px; }
.aside-nav a {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none;
  font: 700 .9rem/1.3 var(--f-title); color: var(--ink); transition: background .2s, color .2s;
}
.aside-nav a span { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); font-size: .75rem; }
.aside-nav a:hover { background: var(--cream); }
.aside-nav a.is-active { background: var(--green-700); color: #fff; }
.aside-nav a.is-active span { background: var(--sun-400); color: var(--brown-900); }
.domain { padding: 40px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 76px 1fr; gap: 26px; }
.domain:first-child { padding-top: 0; }
.domain:last-child { border-bottom: 0; }
.domain .ico { width: 76px; height: 76px; margin: 0; }
.domain .ico svg { width: 34px; height: 34px; }
.domain__num { font: 800 .8rem var(--f-title); letter-spacing: .14em; color: var(--brown-700); text-transform: uppercase; }
.domain h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .2em 0 .6em; }
.domain p { color: var(--muted); }
.domain .pills { margin-top: 6px; }

/* ---------- Onglets ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tabs__btn {
  display: inline-flex; align-items: center; gap: 8px; font: 800 .95rem var(--f-title); padding: .8em 1.3em;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: all .2s;
}
.tabs__btn svg { width: 18px; height: 18px; }
.tabs__btn:hover { border-color: var(--green-500); }
.tabs__btn[aria-selected="true"] { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.tabs__panel { background: var(--white); border-radius: var(--radius-lg); padding: 44px; border: 1px solid var(--line); animation: fadeUp .45s ease; }
.tabs__panel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.note { display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--sun-100); color: #6b4a07; font-size: .92rem; margin-top: 20px; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

/* ---------- Accordéon ---------- */
.acc { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.acc + .acc { margin-top: 12px; }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 22px 26px;
  font: 800 1.12rem var(--f-title); color: var(--green-900);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { width: 48px; height: 48px; margin: 0; flex: none; }
.acc summary .ico svg { width: 22px; height: 22px; }
.acc summary::after {
  content: ""; margin-left: auto; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--green-50)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a5519' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .3s;
}
.acc[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 26px 26px 90px; color: var(--muted); }

/* ---------- Projets ---------- */
.project-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card .ph { border-radius: 0; aspect-ratio: 16/9; min-height: 0; }
.project-card__body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.project-card__body p { color: var(--muted); font-size: .95rem; }
.project-card__body .btn { margin-top: auto; align-self: flex-start; }
.project-card--model { border: 2px dashed var(--brown-500); }

/* ---------- Impact ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.impact-tile { background: var(--white); border-radius: var(--radius-lg); padding: 32px 26px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.impact-tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--sun-100); }
.impact-tile > * { position: relative; z-index: 1; }
.impact-tile .stat__num { color: var(--green-700); font-size: clamp(2.2rem, 3.8vw, 3rem); }
.impact-tile h3 { font-size: 1.05rem; margin: .7em 0 .4em; }
.impact-tile p { font-size: .9rem; color: var(--muted); margin: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.mini-stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--green-50); border-radius: var(--radius); }
.mini-stat strong { font: 900 1.8rem/1 var(--f-title); color: var(--brown-700); }
.mini-stat span { font-size: .88rem; line-height: 1.35; }
.result-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 50px 0; border-bottom: 1px solid var(--line); }
.result-row:last-child { border-bottom: 0; }
.result-row:nth-child(even) .result-row__media { order: 2; }
.result-row .ph { aspect-ratio: 4/3; }
.highlight { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; padding: 14px 20px; border-radius: var(--radius-sm); background: var(--green-700); color: #fff; font-weight: 700; }
.highlight strong { font: 900 1.5rem var(--f-title); color: var(--sun-400); }

.testimonials { position: relative; }
.t-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.t-card { flex: 0 0 min(420px, 85%); scroll-snap-align: start; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.35); border-radius: var(--radius-lg); padding: 32px; }
.t-card p { font-style: italic; color: rgba(255,255,255,.8); }
.t-card .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.t-card .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--sun-400); color: var(--brown-900); display: grid; place-items: center; font: 900 1.1rem var(--f-title); }
.t-card .who strong { display: block; color: #fff; font-family: var(--f-title); }
.t-card .who span { font-size: .85rem; opacity: .7; }
.t-nav { display: flex; gap: 10px; }
.t-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.t-nav button:hover { background: var(--sun-400); color: var(--brown-900); border-color: var(--sun-400); }
.t-nav svg { width: 20px; height: 20px; }

/* ---------- Partenaires ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner {
  display: flex; align-items: center; gap: 14px; padding: 18px 26px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); white-space: nowrap; font: 800 1.05rem var(--f-title); color: var(--green-900);
}
.partner__mono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-700); color: var(--sun-400); font-weight: 900; font-size: .95rem; }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner-grid .partner { flex-direction: column; text-align: center; white-space: normal; padding: 30px 20px; }
.partner-grid .partner__mono { width: 64px; height: 64px; font-size: 1.2rem; border-radius: var(--blob); }
.partner-grid small { font: 500 .85rem var(--f-body); color: var(--muted); }

/* ---------- Bandeau CTA ---------- */
.cta-band { position: relative; background: var(--sun-400); overflow: hidden; padding: 80px 0; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.25); }
.cta-band::before { width: 380px; height: 380px; left: -120px; top: -180px; }
.cta-band::after { width: 260px; height: 260px; right: 8%; bottom: -170px; background: rgba(242,169,30,.5); }
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--brown-900); max-width: 22ch; margin: 0; }
.cta-band .script { color: var(--green-700); display: block; margin-bottom: 10px; }

/* ---------- Soutien ---------- */
.support-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.support-item { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: background .3s, transform .3s; }
.support-item:hover { background: rgba(255,255,255,.14); transform: translateY(-4px); }
.support-item .ico { margin: 0 auto 14px; background: var(--sun-400); color: var(--brown-900); }
.support-item h3 { font-size: 1rem; margin: 0; }
.needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.need { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.need .ico { width: 46px; height: 46px; margin: 0; flex: none; }
.need .ico svg { width: 22px; height: 22px; }
.need p { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.45; }

/* ---------- Compte à rebours ---------- */
.countdown { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: var(--green-700); color: #fff; border-radius: var(--radius-lg); padding: 40px 44px; position: relative; overflow: hidden; }
.countdown::before { content: "20"; position: absolute; right: 30%; top: 50%; transform: translateY(-50%); font: 900 14rem/1 var(--f-title); color: rgba(255,255,255,.05); }
.countdown h3 { color: #fff; font-size: 1.6rem; }
.countdown p { margin: 0; opacity: .85; }
.cd { display: flex; gap: 12px; position: relative; }
.cd div { min-width: 86px; padding: 14px 10px; text-align: center; background: rgba(255,255,255,.1); border-radius: 16px; }
.cd strong { display: block; font: 900 2.2rem/1 var(--f-title); color: var(--sun-400); font-variant-numeric: tabular-nums; }
.cd span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }

/* ---------- Vidéos & documents ---------- */
.video-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.video-card .ph { aspect-ratio: 16/9; min-height: 0; border-radius: 0; cursor: pointer; }
.video-card .ph .play { width: 66px; height: 66px; border-radius: 50%; background: var(--sun-400); color: var(--brown-900); display: grid; place-items: center; transition: transform .3s; }
.video-card .ph .play svg { width: 26px; height: 26px; opacity: 1; margin-left: 4px; }
.video-card:hover .play { transform: scale(1.1); }
.video-card__body { padding: 18px 22px 22px; }
.video-card__body h3 { font-size: 1.05rem; margin-bottom: .3em; }
.video-card__body p { margin: 0; font-size: .9rem; color: var(--muted); }

.search { position: relative; max-width: 440px; margin-bottom: 24px; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { width: 100%; padding: .95em 1.2em .95em 48px; border-radius: 999px; border: 1px solid var(--line); font: inherit; background: var(--white); }
.docs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .2s; }
.doc:hover { border-color: var(--green-500); }
.doc__type { flex: none; width: 48px; height: 58px; border-radius: 10px; background: var(--brown-700); color: #fff; display: grid; place-items: center; font: 900 .72rem var(--f-title); position: relative; }
.doc__type::after { content: ""; position: absolute; top: 0; right: 0; border-width: 0 12px 12px 0; border-style: solid; border-color: var(--cream) var(--cream) rgba(0,0,0,.25) rgba(0,0,0,.25); border-radius: 0 10px 0 4px; }
.doc__info { flex: 1; min-width: 0; }
.doc__info h3 { font-size: 1rem; margin: 0 0 .15em; }
.doc__info p { margin: 0; font-size: .85rem; color: var(--muted); }
.doc__dl { display: inline-flex; align-items: center; gap: 6px; font: 800 .86rem var(--f-title); color: var(--green-700); text-decoration: none; white-space: nowrap; }
.doc__dl svg { width: 16px; height: 16px; }
.doc__soon { font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--sand); padding: .3em .8em; border-radius: 999px; white-space: nowrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 16px; padding: 20px 22px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.c-card .ico { width: 50px; height: 50px; margin: 0; flex: none; }
.c-card .ico svg { width: 22px; height: 22px; }
.c-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 2px 0 4px; font-weight: 800; }
.c-card a, .c-card p { display: block; margin: 0; font-weight: 600; color: var(--ink); text-decoration: none; }
.c-card a:hover { color: var(--green-700); }
.form { background: var(--white); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; gap: 18px; }
.form h2 { font-size: 1.7rem; margin: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font: 700 .88rem var(--f-title); color: var(--green-900); }
.field label em { font-style: normal; color: var(--brown-700); }
.field input, .field select, .field textarea {
  font: inherit; padding: .85em 1.05em; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink);
  transition: border-color .2s, background .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); background: #fff; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c0392b; background: #fff6f4; }
.field__err { font-size: .8rem; color: #c0392b; min-height: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green-700); flex: none; }
.consent.is-invalid { color: #c0392b; }
.hp { position: absolute; left: -9999px; }
.form__status { display: none; gap: 12px; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.form__status.ok { display: flex; background: var(--green-50); color: var(--green-700); }
.form__status.err { display: flex; background: #fdecea; color: #a5281b; }
.form__status svg { width: 22px; height: 22px; flex: none; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sand); aspect-ratio: 16/7; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Pied de page ---------- */
.footer { background: var(--green-950); color: rgba(255,255,255,.72); padding: 80px 0 0; position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; }
.footer__brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; margin-bottom: 18px; }
.footer__badge { width: 76px; height: 76px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; padding: 8px; flex: none; }
.footer__badge img { width: 100%; height: auto; }
.footer__brand strong { display: block; font: 900 1.15rem/1.15 var(--f-title); color: #fff; }
.footer__brand span { font: 700 1.05rem var(--f-script); color: var(--sun-400); }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: inherit; text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--sun-400); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--sun-400); flex: none; margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--sun-400); color: var(--brown-900); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.footer__bottom p { margin: 0; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-700); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brown-700); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  /* backdrop-filter créerait un bloc conteneur pour le menu fixe : on le retire en mobile */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 100; width: min(360px, 88vw); height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 100px 24px 30px; overflow-y: auto;
    background: var(--cream); box-shadow: -20px 0 50px rgba(0,0,0,.18);
    transform: translateX(105%); visibility: hidden; transition: transform .4s cubic-bezier(.2,.7,.2,1), visibility .4s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__link { font-size: 1.08rem; padding: .8em 1em; border-radius: 14px; }
  .nav__link.is-active { background: var(--green-50); }
  .nav__link.is-active::after { display: none; }
  .nav__cta { flex-direction: column; margin: 16px 0 0; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 85; background: rgba(6,22,9,.45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  .support-list { grid-template-columns: repeat(3, 1fr); }
  .needs, .partner-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .grid-4, .impact-grid, .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .objectives { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .with-aside { grid-template-columns: 1fr; }
  .aside-nav { position: static; display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .countdown { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .topbar__group--right, .topbar a[href^="mailto"] { display: none; }
  .stat__num { font-size: 2rem; }
  .brand img { height: 48px; }
  .brand__txt strong { font-size: 1.05rem; }
  .hero { padding: 40px 0 100px; }
  .hero__inner, .split, .split--60, .centre-teaser, .contact-grid, .result-row { grid-template-columns: 1fr; gap: 40px; }
  .result-row:nth-child(even) .result-row__media { order: 0; }
  .hero__art { max-width: 420px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .section { padding: 72px 0; }
  .page-hero { padding: 60px 0 110px; }
  .grid-2, .docs { grid-template-columns: 1fr; }
  .timeline::before, .timeline__fill { left: 11px; }
  .tl-item, .tl-item:nth-of-type(even) { width: 100%; margin-left: 0; padding: 0 0 34px 46px; text-align: left; }
  .tl-item::before, .tl-item:nth-of-type(even)::before { left: 0; right: auto; }
  .tabs__panel { padding: 28px 24px; }
  .big-badge { right: 10px; width: 130px; height: 130px; }
  .map { aspect-ratio: 4/3; }
}

@media (max-width: 600px) {
  .grid-3, .grid-4, .objectives, .impact-grid, .mini-stats, .needs, .partner-grid, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .support-list { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--wide { grid-column: span 2; }
  .brand__txt { display: none; }
  .chip { padding: 9px 14px 9px 9px; }
  .chip__ico { width: 34px; height: 34px; }
  .chip strong { font-size: 1.05rem; }
  .chip--1 { left: 0; }
  .chip--2 { right: 0; }
  .domain { grid-template-columns: 1fr; gap: 14px; }
  .acc__body { padding: 0 22px 22px; }
  .acc summary { padding: 18px 20px; font-size: 1rem; }
  .form { padding: 26px 20px; }
  .def { grid-template-columns: 1fr; gap: 4px; }
  .def dd { margin-bottom: 12px; }
  .modal__head, .modal__body { padding-left: 22px; padding-right: 22px; }
  .cd div { min-width: 0; flex: 1; }
  .cd strong { font-size: 1.7rem; }
  .countdown { padding: 30px 22px; }
  .doc { flex-wrap: wrap; }
  .ov-prev { left: 6px; } .ov-next { right: 6px; }
}
