/* =========================================================
   I MAÏ KOBE TI KODRO TI E — Feuille de style publique
   Couleurs tirées du logo : pétrole (anneau), or (lettrage), vert (feuillage).
   Les noms de variables (--blue, --navy, --sun) sont conservés du gabarit d'origine.
   ========================================================= */
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --brand: #1F5A5E;   /* pétrole de l'anneau du logo */
  --blue: #23615C;    /* couleur d'action : boutons, liens, accroches (contraste AA sur blanc) */
  --blue-700: #184A46;
  --blue-50: #E7F0EC;
  --navy: #15393A;    /* fonds sombres */
  --navy-2: #1D4746;
  --sun: #D7B143;     /* or du lettrage du logo */
  --sun-600: #BF9A2C;
  --leaf: #4E7D3B;    /* vert du feuillage du logo */
  --paper: #F3F6F1;
  --ink: #1A2624;
  --muted: #55645F;
  --line: #DBE3DE;
  --white: #fff;

  --f-display: "Bricolage", "Trebuchet MS", "Segoe UI", sans-serif;
  --f-body: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;
  --wrap: 1200px;
  --sec: clamp(4rem, 8vw, 7rem);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); }
a:hover { color: var(--blue); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--sun); color: var(--navy); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Typographie ---------- */
.h2, .h3, .h4, .hero-title { font-family: var(--f-display); color: var(--navy); margin: 0; letter-spacing: -.015em; }
.h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; font-weight: 800; }
.h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.15; font-weight: 800; }
.h4 { font-size: 1.22rem; line-height: 1.25; font-weight: 700; }
.kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .85rem; font-weight: 700; color: var(--blue); font-size: .98rem; }
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--sun); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin: 1rem 0 0; }
.prose p { margin: 0 0 1em; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .9rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--navy); }
.btn-sun:hover { background: var(--sun-600); color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-700); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--navy); color: #CBD8D2; font-size: .9rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; }
.topbar-reg { margin: 0; font-style: italic; }
.topbar-links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.topbar a { color: #E6EEEA; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--sun); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(21,57,58,.08); }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); flex: none; }
.brand .mark { width: 60px; height: auto; }
.site-footer .brand .mark { width: 92px; }
.site-footer .brand-txt strong { font-size: 1.3rem; max-width: 14ch; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt strong, .brand-txt small { text-wrap: balance; }
.brand-txt strong { font-family: var(--f-display); font-size: 1.12rem; font-weight: 800; line-height: 1.12; max-width: 15ch; }
.brand-txt small { font-size: .72rem; color: var(--muted); max-width: 24ch; line-height: 1.25; margin-top: .25rem; }
.brand-img { height: 52px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; white-space: nowrap; padding: .55rem .6rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; border-radius: var(--r-sm); position: relative; }
.main-nav a::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .25rem; height: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.is-current { color: var(--blue); }
.main-nav a.is-current::after { transform: scaleX(1); }
.btn-don { padding: .7rem 1.2rem; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: var(--blue-50); border: 0; color: var(--navy); width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 780px); background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active .slide-img { transform: scale(1); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,33,33,.92) 0%, rgba(12,33,33,.72) 42%, rgba(12,33,33,.15) 100%); }
.slide-body { padding-block: 5rem 7rem; }
.hero-title { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.3rem); line-height: 1.04; font-weight: 800; max-width: 17ch; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 52ch; margin: 1.4rem 0 0; color: #E4ECE8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 2rem; display: flex; align-items: center; gap: 1rem; z-index: 2; }
.hero-dots { display: flex; gap: .5rem; }
.dot { width: 12px; height: 12px; border-radius: 99px; border: 0; background: rgba(255,255,255,.45); padding: 0; transition: width .3s, background-color .3s; }
.dot.is-active { width: 34px; background: var(--sun); }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); background: transparent; color: #fff; display: grid; place-items: center; }
.hero-arrow:hover { background: #fff; color: var(--navy); }
.hero-arrow .ico { width: 20px; height: 20px; }
.hero-badge { position: absolute; right: clamp(1rem, 6vw, 7rem); bottom: clamp(5rem, 12vh, 8rem); width: 168px; height: 168px; z-index: 2; display: grid; place-items: center; }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge-ring text { fill: #fff; font-family: var(--f-body); font-weight: 700; font-size: 13.5px; letter-spacing: .18em; }
.badge-mark { width: 92px; height: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec); }
.sec-head { margin-bottom: 3rem; }
.sec-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; }

/* À propos */
.about-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about-media { position: relative; padding: 0 0 4.5rem 0; }
.about-img-1 { width: 84%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: var(--r-lg); }
.about-img-2 { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--r-lg); border: 8px solid #fff; box-shadow: 0 20px 40px rgba(21,57,58,.18); }
.about-media::before { content: ""; position: absolute; left: -18px; top: -18px; width: 42%; height: 46%; border: 3px solid var(--sun); border-radius: var(--r-lg); z-index: -1; }
.about-reg { position: absolute; left: 1.2rem; bottom: 1.2rem; background: var(--navy); color: #fff; border-radius: var(--r-md); padding: .9rem 1.1rem; max-width: 46%; box-shadow: 0 14px 30px rgba(21,57,58,.25); }
.about-reg span { display: block; font-size: .78rem; color: var(--sun); font-weight: 700; }
.about-reg strong { display: block; font-size: .8rem; font-weight: 600; line-height: 1.35; margin-top: .2rem; word-break: break-word; }
.about-text .prose { margin-top: 1.3rem; color: var(--muted); }
.about-vtitle { margin-top: 2rem; }
.values { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; }
.values li { display: flex; gap: .9rem; align-items: flex-start; }
.values p { margin: .1rem 0 0; color: var(--muted); font-size: .98rem; }
.v-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-top: .1rem; }
.v-ico .ico { width: 18px; height: 18px; stroke-width: 2.5; }

/* Vision, mission, objectifs (reprend la mise en page du flyer) */
.vm { padding-top: 0; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.vm-card { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.vm-head { display: flex; align-items: center; gap: .9rem; padding: 1.6rem 1.8rem 0; }
.vm-ico { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.vm-ico .ico { width: 26px; height: 26px; }
.vm-card p { margin: .9rem 1.8rem 1.6rem; color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.vm-card img { margin-top: auto; width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.obj { margin-top: 1.8rem; background: var(--blue); color: #fff; border-radius: var(--r-lg); padding: clamp(1.8rem, 4vw, 3rem); display: grid; grid-template-columns: .7fr 2fr; gap: 2rem 3rem; }
.obj-head .h2 { color: #fff; }
.obj-head p { margin: .8rem 0 0; color: #E9F2EE; font-size: 1.08rem; }
.obj-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.obj-list li { display: flex; gap: 1rem; align-items: flex-start; }
.obj-ico { flex: none; width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; }
.obj-ico .ico { width: 24px; height: 24px; }
.obj-list .h4 { color: #fff; font-size: 1.1rem; }
.obj-list p { margin: .35rem 0 0; color: #EDF4F0; font-size: .98rem; line-height: 1.5; }

/* Chiffres */
.stats { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.stats::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid rgba(255,255,255,.07); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem; padding-block: 3.2rem; }
.stat { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .2rem; }
.stat-num { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; line-height: 1; color: var(--sun); font-variant-numeric: tabular-nums; }
.stat-suf { font-family: var(--f-display); font-size: 1.8rem; font-weight: 800; color: var(--sun); }
.stat-lbl { flex-basis: 100%; margin-top: .4rem; font-weight: 600; color: #E3EEE9; }

/* Domaines */
.domains { background: var(--paper); }
.domains .sec-head { text-align: center; }
.domains .sec-head .lead { margin-inline: auto; }
.domains .kicker { justify-content: center; }
.dom-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6rem; }
.dom-grid > .dom-card { grid-column: span 2; }
/* Dernière rangée incomplète centrée (ex. 5 domaines = 3 + 2) */
.dom-grid > .dom-card:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
.dom-grid > .dom-card:nth-child(3n+1):last-child { grid-column: 3 / span 2; }
.dom-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.dom-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(21,57,58,.1); }
.dom-img { aspect-ratio: 16/10; background: var(--blue-50); overflow: hidden; }
.dom-img img { width: 100%; height: 100%; object-fit: cover; }
.dom-body { position: relative; padding: 2.4rem 1.6rem 1.8rem; }
.dom-ico { position: absolute; top: -30px; left: 1.6rem; width: 60px; height: 60px; border-radius: 50%; background: var(--sun); color: var(--navy); display: grid; place-items: center; border: 5px solid #fff; }
.dom-ico .ico { width: 26px; height: 26px; }
.dom-body p { margin: .6rem 0 0; color: var(--muted); font-size: 1rem; }

/* Coordinatrice */
.coord { background: var(--navy); color: #D4E0DA; position: relative; overflow: hidden; }
.coord::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 20%, rgba(35,97,92,.45), transparent 45%); pointer-events: none; }
.coord-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.q-ico { width: 56px; height: 56px; color: var(--sun); fill: var(--sun); stroke: none; }
.coord blockquote { margin: 1.2rem 0 0; }
.coord blockquote p { font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; font-weight: 700; color: #fff; margin: 0; letter-spacing: -.015em; }
.coord-sign { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.18); }
.coord-sign strong { display: block; color: #fff; font-size: 1.1rem; }
.coord-sign span { color: var(--sun); font-weight: 600; }
.coord-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sun); }
.coord .kicker { color: var(--sun); }
.coord .kicker::before { background: var(--blue); }
.coord-text .prose p { color: #D4E0DA; }

/* Réalisations */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.proj-card { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.proj-card[hidden], .gal-item[hidden] { display: none; }
.proj-card.is-wide { grid-column: span 2; }
.proj-card.is-wide .proj-img { aspect-ratio: auto; height: 100%; max-height: 330px; min-height: 240px; }
.proj-cta { border-radius: var(--r-lg); background: var(--navy); color: #D4E0DA; padding: 2rem 1.7rem; display: flex; flex-direction: column; justify-content: center; gap: .8rem; }
.proj-cta .h4 { color: #fff; font-size: 1.4rem; }
.proj-cta p { margin: 0; }
.proj-cta .btn { align-self: flex-start; margin-top: .4rem; }
.proj-img { position: relative; aspect-ratio: 4/3; background: var(--blue-50); overflow: hidden; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.proj-card:hover .proj-img img { transform: scale(1.04); }
.tag { position: absolute; left: 1rem; top: 1rem; background: var(--sun); color: var(--navy); font-size: .8rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; max-width: calc(100% - 2rem); }
.proj-body { padding: 1.4rem 1.5rem 1.7rem; }
.proj-body p { margin: .55rem 0 0; color: var(--muted); font-size: 1rem; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0 0 .6rem !important; font-size: .9rem !important; color: var(--blue-700) !important; font-weight: 600; }
.meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* Actualités */
.news-lead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2.2rem); }
.news-lead.has-video { grid-template-columns: minmax(220px, 340px) 1fr; }
.news-media video { display: block; width: 100%; height: auto; max-height: 78vh; background: #000; border-radius: var(--r-md); }
.news-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-md); }
.news-body .h3 { margin: .2rem 0 0; }
.tag.tag-inline { position: static; display: inline-block; margin-bottom: .7rem; }
.news-summary { font-weight: 600; color: var(--ink); margin: .9rem 0 1rem; max-width: 62ch; }
.news-body .prose { color: var(--muted); }
.news-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 1.5rem; max-width: 560px; }
.news-photos a { display: block; border-radius: var(--r-sm); overflow: hidden; }
.news-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.news-photos a:hover img { transform: scale(1.06); }
.news-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.6rem; }
.news-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.news-card > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.news-card > div { padding: 1.1rem 1.3rem 1.4rem; }
.news-card p { color: var(--muted); margin: .5rem 0 0; }
.news-more-txt summary { cursor: pointer; color: var(--blue); font-weight: 700; margin-top: .7rem; }
.news-more-txt video { width: 100%; margin-top: .8rem; border-radius: var(--r-sm); background: #000; }

/* Zones */
.zones { background: var(--paper); }
.zones-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.zone-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.4rem; }
.zone-list li { display: flex; gap: .7rem; align-items: flex-start; }
.zone-list strong { font-size: 1.08rem; color: var(--navy); }
.zone-list em { color: var(--muted); font-size: .9rem; }
.zone-list p { margin: .1rem 0 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.zl-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); border: 3px solid var(--navy); margin-top: .35rem; }
.zone-list .is-planned .zl-dot { background: #fff; border-color: var(--blue); border-style: dashed; }
.ambition { margin-top: 2rem; padding: 1.3rem 1.5rem; border-left: 4px solid var(--sun); background: #fff; border-radius: 0 var(--r-md) var(--r-md) 0; }
.ambition strong { color: var(--navy); font-family: var(--f-display); font-size: 1.1rem; }
.ambition p { margin: .35rem 0 0; color: var(--muted); }
.map { margin: 0; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map-country { fill: var(--brand); stroke: #fff; stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 18px 30px rgba(24,74,70,.28)); }
.map-pt .pt { fill: var(--sun); stroke: var(--navy); stroke-width: 3.5; }
.map-pt.is-planned .pt { fill: #fff; stroke-dasharray: 3 3; }
.map-pt .pulse { fill: var(--sun); opacity: .5; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.map-pt .leader { fill: none; stroke: var(--navy); stroke-width: 2; }
.map-pt text { font-family: var(--f-display); font-weight: 700; font-size: 27px; fill: #fff; paint-order: stroke; stroke: var(--navy); stroke-width: 5px; stroke-linejoin: round; }
.map figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: .8rem; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.2); opacity: 0; } }

/* Galerie */
.gal-grid { columns: 4 240px; column-gap: 1rem; }
.gal-item { display: block; position: relative; break-inside: avoid; margin-bottom: 1rem; border-radius: var(--r-md); overflow: hidden; background: var(--blue-50); }
.gal-item img { width: 100%; transition: transform .5s; }
.gal-item:hover img { transform: scale(1.05); }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .8rem; color: #fff; font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(12,33,33,.85)); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.gal-item:hover .gal-cap, .gal-item:focus-visible .gal-cap { opacity: 1; transform: none; }

/* Partenaires */
.partners { padding-top: 0; }
.partners .sec-head { text-align: center; }
.partners .kicker { justify-content: center; }
.partners .lead { margin-inline: auto; }
.part-grid { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.part-card { flex: 1 1 320px; max-width: 460px; }
.part-card, .part-link { display: flex; align-items: center; gap: 1.1rem; text-decoration: none; color: inherit; }
.part-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.5rem; background: #fff; }
.part-link { width: 100%; }
.part-logo { flex: none; width: 70px; height: 70px; border-radius: var(--r-md); background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; overflow: hidden; }
.part-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.part-name strong { display: block; color: var(--navy); font-size: 1.05rem; line-height: 1.3; }
.part-name small { color: var(--muted); font-size: .9rem; }

/* Rejoindre / Don */
.join { background: var(--paper); }
.join .form { margin-top: 2rem; }
.join-grid { display: grid; grid-template-columns: 1.25fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.mtypes { border: 0; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.mtypes legend { font-weight: 700; margin-bottom: .7rem; color: var(--navy); padding: 0; }
.mtype { position: relative; cursor: pointer; }
.mtype input { position: absolute; opacity: 0; inset: 0; }
.mtype-box { display: block; height: 100%; padding: 1.1rem 1rem; border: 2px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .2s, background-color .2s; }
.mtype-box strong { display: block; color: var(--navy); font-family: var(--f-display); font-size: 1.05rem; margin-bottom: .3rem; }
.mtype-box span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.mtype input:checked + .mtype-box { border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); }
.mtype input:focus-visible + .mtype-box { outline: 3px solid var(--sun); outline-offset: 2px; }
.don-card { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--navy); color: #D4E0DA; border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: 0 30px 60px rgba(21,57,58,.25); }
.don-card .h3 { color: #fff; margin-top: 1rem; }
.don-card > p { margin: .7rem 0 1.4rem; }
.don-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--sun); color: var(--navy); display: grid; place-items: center; }
.don-ico .ico { width: 26px; height: 26px; }
.don-ways { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.don-ways > div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md); padding: .9rem 1rem; font-size: .95rem; }
.don-ways strong { color: var(--sun); }
.don-ways p { margin: .2rem 0 0; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; }
.amt { border: 1.5px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: var(--r-sm); padding: .6rem .2rem; font-weight: 700; font-size: .9rem; }
.amt:hover, .amt.is-active { background: var(--sun); color: var(--navy); border-color: var(--sun); }

/* Formulaires */
.form { display: grid; gap: 1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field > span { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(35,97,92,.15); }
.form-dark .field > span { color: #E4ECE8; }
.form-dark .field input, .form-dark .field select { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.form-dark .field select option { color: var(--ink); }
.form-dark .field input:focus, .form-dark .field select:focus { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(215,177,67,.25); }
.form .btn { justify-self: start; }
.form .btn-block { justify-self: stretch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .9rem 1.1rem; border-radius: var(--r-sm); margin-bottom: 1rem; font-weight: 600; font-size: .96rem; }
.alert-success { background: #E6F5EC; color: #145C32; border: 1px solid #A9DDBE; }
.alert-error { background: #FDECEA; color: #8A1F12; border: 1px solid #F3B8AE; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); }
.c-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.3rem; }
.c-list li { display: flex; gap: 1rem; }
.c-list strong { color: var(--navy); }
.c-list p { margin: .1rem 0 0; color: var(--muted); }
.c-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.c-ico .ico { width: 22px; height: 22px; }
.c-follow { margin: 2rem 0 .6rem; font-weight: 700; color: var(--navy); }
.socials { list-style: none; padding: 0; margin: 0; display: flex; gap: .6rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; }
.socials a:hover { background: var(--sun); color: var(--navy); }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.4rem); }

/* Pied de page */
.site-footer { background: var(--navy); color: #B3C4BD; font-size: .96rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; gap: 2.5rem; padding-block: 4.5rem 3rem; }
.brand-light { color: #fff; }
.brand-light .brand-txt small { color: #B3C4BD; }
.foot-brand p { max-width: 38ch; margin: 1.2rem 0 0; }
.foot-reg { font-size: .82rem; color: #91A69E; }
.foot-col h3 { font-family: var(--f-display); color: #fff; font-size: 1.15rem; margin: 0 0 1rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot-col a { color: #B3C4BD; text-decoration: none; }
.foot-col a:hover { color: var(--sun); }
.socials-light { margin-top: 1.2rem !important; display: flex !important; }
.socials-light a { background: rgba(255,255,255,.1); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.3rem; font-size: .88rem; text-align: center; }

/* Retour en haut */
.to-top { position: fixed; right: 1.2rem; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; border-radius: 50%; background: var(--sun); color: var(--navy); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(21,57,58,.25); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s; z-index: 40; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top .ico { width: 22px; height: 22px; stroke-width: 2.5; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,22,22,.94); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .8rem; min-width: 0; }
.lightbox img { max-height: 80vh; max-width: 100%; width: auto; border-radius: var(--r-sm); }
.lightbox figcaption { color: #E4ECE8; text-align: center; }
.lb-close, .lb-nav { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.lb-close:hover, .lb-nav:hover { background: var(--sun); color: var(--navy); }
.lb-close { position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; }

/* ---------- Adaptatif ---------- */
/* En-tête : le nom de l'association est long. Le menu complet tient dès 1180 px ; en dessous il passe en mode « hamburger »,
   ou dès qu'il ne tient pas (zoom du navigateur, mise à l'échelle Windows) grâce à la classe .nav-collapsed posée par main.js */
.site-header .wrap { width: min(100% - 2.5rem, 1320px); }
@media (max-width: 1440px) { .site-header .brand-txt small { display: none; } }
@media (max-width: 1179px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 20px 40px rgba(21,57,58,.15); max-height: calc(100vh - var(--header-h)); overflow: auto; display: none; margin: 0; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: .8rem 1.25rem 1.4rem; }
  .main-nav a { padding: .85rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a::after { display: none; }
  .btn-don { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}
.nav-collapsed .nav-toggle { display: inline-flex; }
.nav-collapsed .main-nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 20px 40px rgba(21,57,58,.15); max-height: calc(100vh - var(--header-h)); overflow: auto; display: none; margin: 0; }
.nav-collapsed .main-nav.is-open { display: block; }
.nav-collapsed .main-nav ul { flex-direction: column; padding: .8rem 1.25rem 1.4rem; }
.nav-collapsed .main-nav a { padding: .85rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
.nav-collapsed .main-nav a::after { display: none; }
.nav-collapsed .btn-don { margin-left: auto; }
.nav-collapsed .nav-toggle { margin-left: 0; }
@media (max-width: 1024px) {
  .dom-grid, .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .dom-grid > .dom-card, .dom-grid > .dom-card:nth-child(3n+1):nth-last-child(2), .dom-grid > .dom-card:nth-child(3n+1):last-child { grid-column: auto; }
  .dom-grid > .dom-card:nth-child(odd):last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - .8rem); }
  .proj-card.is-wide { grid-column: auto; }
  .proj-card.is-wide .proj-img { aspect-ratio: 4/3; height: auto; min-height: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .don-card { position: static; }
}
@media (max-width: 860px) {
  .news-lead, .news-lead.has-video, .news-more { grid-template-columns: 1fr; }
  .news-media video { max-width: 380px; margin-inline: auto; }
  .vm-grid, .obj, .obj-list { grid-template-columns: 1fr; }
  .about-grid, .coord-grid, .zones-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .mtypes { grid-template-columns: 1fr; }
  .topbar-reg { display: none; }
  .topbar-in { justify-content: center; }
}
@media (max-width: 600px) {
  :root { --header-h: 66px; }
  .topbar-links li:first-child { display: none; }
  .slide::before { background: linear-gradient(180deg, rgba(12,33,33,.55) 0%, rgba(12,33,33,.85) 60%, rgba(12,33,33,.92) 100%); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-block: 2.4rem; }
  .stat-num { font-size: 2.3rem; }
  .stat-lbl { font-size: .85rem; line-height: 1.3; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1.25rem; padding: 0 1.25rem .4rem; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .gal-grid { columns: 2; column-gap: .6rem; }
  .gal-item { margin-bottom: .6rem; }
  .map-pt text { font-size: 34px; }
  body { font-size: 1rem; }
  .brand .mark { width: 48px; }
  .site-header .brand-txt strong { font-size: .98rem; }
  .btn-don span { display: none; }
  .btn-don { padding: .7rem; width: 46px; height: 46px; }
  .dom-grid, .proj-grid, .row2, .zone-list { grid-template-columns: 1fr; }
  .dom-grid > .dom-card:nth-child(odd):last-child { width: auto; justify-self: stretch; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { min-height: 640px; }
  .slide-body { padding-block: 3rem 6.5rem; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .about-reg { position: static; max-width: none; margin-top: 1rem; }
  .about-media { padding-bottom: 0; }
  .about-img-1 { width: 100%; }
  .about-img-2 { display: none; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
  .lb-prev { left: 1rem; } .lb-next { right: 1rem; }
  .topbar-links { gap: .9rem; font-size: .85rem; }
}

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