/* =========================================================
   AMDMP — Feuille de style principale
   ========================================================= */

:root {
  --green: #1d8a4b;
  --green-600: #176f3c;
  --green-700: #125a31;
  --green-900: #0b3320;
  --green-50: #edf7f0;
  --orange: #ea5a1f;
  --orange-600: #cf4a13;
  --orange-50: #fff1ea;
  --ink: #101c15;
  --ink-2: #2c3a32;
  --muted: #5f6f66;
  --line: #e2e9e4;
  --bg: #f6f8f6;
  --surface: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 28, 21, .06), 0 2px 8px rgba(16, 28, 21, .05);
  --shadow-md: 0 8px 24px rgba(16, 28, 21, .08), 0 2px 6px rgba(16, 28, 21, .05);
  --shadow-lg: 0 24px 60px rgba(11, 51, 32, .18);
  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 1000;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(234, 90, 31, .28); }
.btn-primary:hover { background: var(--orange-600); color: #fff; box-shadow: 0 10px 22px rgba(234, 90, 31, .34); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(29, 138, 75, .25); }
.btn-green:hover { background: var(--green-600); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--green); color: var(--green-700); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .04em; color: var(--green-700); }
.brand-text small { font-size: .68rem; color: var(--muted); max-width: 230px; }

.nav > ul { display: flex; align-items: center; gap: .25rem; }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .85rem; border-radius: 10px;
  color: var(--ink-2); font-weight: 500; font-size: .95rem;
  background: none; border: 0;
  transition: background .2s, color .2s;
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { background: var(--green-50); color: var(--green-700); }
.nav a[aria-current="page"] { font-weight: 600; }
.nav .has-sub.is-active > button { color: var(--green-700); font-weight: 600; }
.sub a[aria-current="page"] { background: var(--green-50); }
.nav .chev { width: 16px; height: 16px; transition: transform .2s; }
.has-sub { position: relative; }
.has-sub > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-sub > button[aria-expanded="true"] + .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a { display: flex; width: 100%; padding: .6rem .8rem; border-radius: 9px; font-size: .92rem; }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  /* Pas de flou d'arrière-plan sur mobile : il ferait de l'en-tête le bloc conteneur
     du menu en position fixe, qui deviendrait alors invisible. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .brand-text small { display: none; }
  .nav-toggle { display: grid; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--surface); padding: 1rem 1.25rem 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s var(--ease);
    border-top: 1px solid var(--line);
  }
  .nav.is-open { transform: none; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav a, .nav button { width: 100%; justify-content: space-between; padding: .85rem 1rem; font-size: 1.05rem; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; display: none;
  }
  .has-sub > button[aria-expanded="true"] + .sub { display: block; }
  .nav .mobile-cta { margin-top: 1rem; }
  .nav .mobile-cta .btn { display: inline-flex; width: 100%; justify-content: center; background: var(--orange); color: #fff; font-weight: 600; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1025px) { .nav .mobile-cta { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.center .eyebrow::before { display: none; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: min(88vh, 760px); display: flex; align-items: center;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 51, 32, .94) 0%, rgba(11, 51, 32, .78) 45%, rgba(11, 51, 32, .35) 100%),
    linear-gradient(0deg, rgba(11, 51, 32, .6), transparent 45%);
}
.hero-inner { padding: clamp(4rem, 10vw, 7rem) 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3rem; align-items: end; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .eyebrow { color: #a6e3bd; }
.hero .eyebrow::before { background: var(--orange); }
.hero p { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; }
.hero-tags span {
  font-size: .8rem; padding: .35rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #e8f5ec;
}

.stats-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem;
  justify-self: end; width: min(100%, 360px);
}
.stat { display: flex; gap: 1rem; align-items: center; padding: .6rem 0; }
.stat + .stat { border-top: 1px solid rgba(255,255,255,.12); }
.stat b { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: #fff; min-width: 2.2ch; line-height: 1; }
.stat span { font-size: .92rem; color: rgba(255,255,255,.82); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .stats-card { justify-self: start; }
}

/* ---------- Bandeau partenaires ---------- */
.partners-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.partners-strip .container { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; padding: 1.25rem 0; }
.partners-strip p { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; }
.partners-strip ul { display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; margin-left: auto; }
.partners-strip img { height: 40px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.partners-strip img:hover { filter: none; opacity: 1; }

/* ---------- Grilles / cartes ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe3d6; }
.card h3 { margin-top: 1rem; }
.card p { color: var(--muted); font-size: .97rem; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green);
}
.icon svg { width: 26px; height: 26px; }
.icon.orange { background: var(--orange-50); color: var(--orange); }
.card-num { font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--orange); letter-spacing: .1em; }

/* ---------- Split (texte + visuel) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.visual { position: relative; }
.visual img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.visual-badge {
  position: absolute; left: -1rem; bottom: -1rem;
  background: var(--surface); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .9rem; max-width: 300px;
}
.visual-badge img { width: 48px; height: auto; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.visual-badge b { display: block; font-family: var(--font-head); color: var(--ink); }
.visual-badge small { color: var(--muted); font-size: .82rem; }
@media (max-width: 640px) { .visual-badge { left: .75rem; bottom: -1rem; } }

.brand-card {
  position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; display: grid; place-content: center; padding: 2rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(234, 90, 31, .18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(29, 138, 75, .22), transparent 45%),
    linear-gradient(160deg, #ffffff, var(--green-50));
  border: 1px solid var(--line);
}
.brand-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(29, 138, 75, .14) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.brand-card img { position: relative; width: min(52%, 250px); margin-inline: auto; border-radius: 0; box-shadow: none; aspect-ratio: auto; mix-blend-mode: multiply; }

.checklist { display: grid; gap: .75rem; margin-top: 1.5rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: .1rem; }

/* ---------- Métiers (secteur) ---------- */
.metier {
  display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.metier::after {
  content: ""; position: absolute; inset: auto -30px -30px auto; width: 110px; height: 110px;
  border-radius: 50%; background: radial-gradient(circle, rgba(29,138,75,.12), transparent 70%);
}
.metier h3 { margin: 0; }
.metier p { color: var(--muted); font-size: .95rem; margin: 0; }

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: .75rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .55rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
}
.marquee-track span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  padding: .6rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .93rem; font-weight: 500; display: inline-flex; align-items: center; gap: .5rem;
}
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- Valeurs ---------- */
.values { background: var(--green-900); color: #d9eee1; }
.values h2, .values h3 { color: #fff; }
.values .section-head p { color: #a6c9b4; }
.values .eyebrow { color: #8fd8ab; }
.value-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.75rem; }
.value-card .icon { background: rgba(255,255,255,.08); color: #8fd8ab; }
.value-card h3 { margin-top: 1rem; }
.value-card p { color: #b8d5c4; font-size: .97rem; }

/* ---------- Partenaires ---------- */
.partner-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.partner-logo {
  display: grid; place-items: center; padding: 2rem 1.5rem; min-height: 150px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.partner-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.partner-logo img { max-height: 64px; width: auto; }
.partner-logo span { margin-top: .9rem; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Citation président ---------- */
.quote-block {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start;
}
.quote-mark { font-family: Georgia, serif; font-size: 6rem; line-height: .7; color: var(--orange); opacity: .8; }
.quote-block blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; color: var(--ink); line-height: 1.45; }
.quote-block figcaption { margin-top: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--orange)); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); flex: none; }
img.avatar { object-fit: cover; object-position: center top; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--green-100), var(--shadow-sm); }
.president-card {
  display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; padding: 1.25rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); max-width: 560px;
}
.president-card img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; object-position: center top; flex: none; border: 4px solid var(--surface); box-shadow: 0 0 0 3px var(--green-100), var(--shadow-md); }
.president-card .eyebrow { margin-bottom: .4rem; }
.president-card h3 { margin: 0 0 .2rem; font-size: 1.4rem; }
.president-card p { margin: 0; color: var(--muted); }
@media (max-width: 480px) { .president-card { flex-direction: column; text-align: center; } .president-card .eyebrow::before { display: none; } }
.quote-block figcaption b { display: block; color: var(--ink); }
.quote-block figcaption span { font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) { .quote-block { grid-template-columns: 1fr; } .quote-mark { font-size: 4rem; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff;
  background: linear-gradient(120deg, var(--green-700), var(--green) 60%, #2aa35d);
  padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center;
}
.cta::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* ---------- Page header ---------- */
.page-head {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-head h1 { max-width: 20ch; }
.page-head .lead { max-width: 64ch; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }

.page-visual { margin-top: -2.5rem; position: relative; z-index: 1; }
.page-visual img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.page-visual + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 640px) { .page-visual img { aspect-ratio: 16 / 10; border-radius: var(--radius); } }

.prose { max-width: 72ch; font-size: 1.05rem; }
.prose p { margin-bottom: 1.2em; }
.prose strong { color: var(--ink); }

/* ---------- Liste de missions ---------- */
.mission-list { display: grid; gap: 1rem; }
.mission-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
  padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.mission-item .num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); font-family: var(--font-head); font-weight: 800;
}
.mission-item p { margin: 0; color: var(--ink-2); }

/* ---------- Accordéon (FAQ) ---------- */
.faq { display: grid; gap: .75rem; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq details[open] { border-color: #bfdccb; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.35rem; font-weight: 600; color: var(--ink); font-family: var(--font-head); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176f3c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center; transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* ---------- Actualités ---------- */
.news-article { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-sm); max-width: 980px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.news-meta time { font-weight: 600; color: var(--green-700); }
.news-meta .badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: var(--orange-50); color: var(--orange-600); font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.news-article h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 1rem; }
.news-article .prose ul { list-style: none; display: grid; gap: .5rem; margin: 0 0 1.2em; }
.news-article .prose li { padding-left: 1.4rem; position: relative; }
.news-article .prose li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.news-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.25rem; }
.news-tags span { font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-weight: 500; }
.news-source { margin-top: 1.5rem; }

/* Grille de cartes (toutes de même taille) */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  display: flex; flex-direction: column; color: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe3d6; color: inherit; }
.news-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-50); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s var(--ease); }
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-card-media.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--green-50), #fff 70%); }
.news-card-media.placeholder img { width: 36%; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.news-card-media .count {
  position: absolute; right: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(11, 51, 32, .78); color: #fff; font-size: .75rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px;
}
.news-card-media .count svg { width: 14px; height: 14px; }
.news-card-body { padding: 1.2rem 1.35rem 1.35rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.news-card-body .news-meta { margin-bottom: 0; }
.news-card-body h3 { font-size: 1.12rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-body p { color: var(--muted); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-body .link-arrow { margin-top: auto; padding-top: .6rem; color: var(--green-600); font-size: .92rem; }
.news-card:hover .link-arrow svg { transform: translateX(4px); }

/* Galerie de la fiche (vignettes identiques) */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.gallery[data-count="1"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-item {
  display: block; width: 100%; padding: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg); cursor: zoom-in; position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; background: rgba(11, 51, 32, 0); transition: background .25s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { background: rgba(11, 51, 32, .12); }
@media (max-width: 720px) { .gallery, .gallery[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Fenêtre de détail */
dialog.news-dialog { border: 0; padding: 0; background: transparent; width: min(940px, 100vw - 2rem); max-width: none; max-height: none; margin: auto; overflow: visible; }
dialog.news-dialog::backdrop { background: rgba(11, 51, 32, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dialog-panel {
  position: relative; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 2rem); overflow-y: auto; padding: clamp(1.5rem, 4vw, 2.75rem);
  animation: dialog-in .32s var(--ease);
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.dialog-close {
  position: sticky; top: 0; float: right; z-index: 2; margin: -.4rem -.4rem 0 1rem;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); color: var(--ink); transition: background .2s, transform .2s;
}
.dialog-close:hover { background: var(--green-50); transform: rotate(90deg); }
.dialog-close svg { width: 20px; height: 20px; }
.dialog-body .news-article { border: 0; box-shadow: none; padding: 0; max-width: none; }
body.dialog-open { overflow: hidden; }

/* Visionneuse de photos */
dialog.lightbox { border: 0; padding: 0; margin: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
dialog.lightbox[open] { display: grid; place-items: center; }
dialog.lightbox::backdrop { background: rgba(5, 20, 12, .93); }
.lightbox img {
  max-width: min(92vw, 1400px); max-height: 86vh; object-fit: contain; border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); opacity: 0; transform: scale(.88); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.lightbox img.is-in { opacity: 1; transform: none; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-counter { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: .85rem; opacity: .85; font-weight: 500; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: .9rem; }
.lb-caption { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1rem; opacity: .9; text-align: center; }
[data-zoom] { cursor: zoom-in; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
[data-zoom]:hover, [data-zoom]:focus-visible { transform: scale(1.06); box-shadow: 0 0 0 4px var(--green-100), 0 14px 32px rgba(11, 51, 32, .22); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 3.2rem; transform: none; } .lightbox img { max-height: 78vh; } }

.news-teaser { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); }
.news-teaser img { width: 100%; height: 100%; object-fit: cover; object-position: center top; min-height: 280px; }
.news-teaser-body { padding: clamp(1.5rem, 4vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; }
.news-teaser-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.news-teaser-body p { color: var(--muted); }
@media (max-width: 800px) { .news-teaser { grid-template-columns: 1fr; } .news-teaser img { max-height: 260px; } }

/* ---------- Ressources ---------- */
.resource-card { display: flex; flex-direction: column; gap: .5rem; }
.resource-card .meta { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.resource-card h3 { margin: 0; font-size: 1.1rem; }
.empty-state {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 2.5rem; text-align: center; color: var(--muted);
  background: var(--surface);
}
.empty-state .icon { margin: 0 auto 1rem; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; width: 100%; padding: .85rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(29,138,75,.14); }
.field textarea { min-height: 140px; resize: vertical; }
.field small { color: var(--muted); font-size: .82rem; }
.form-note { font-size: .86rem; color: var(--muted); }
.form-status { display: none; padding: 1rem 1.2rem; border-radius: 12px; background: var(--green-50); color: var(--green-700); font-weight: 500; }
.form-status.is-visible { display: block; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }

.contact-info { display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item .icon { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item b { display: block; color: var(--ink); font-family: var(--font-head); }
.contact-item a, .contact-item span { color: var(--ink-2); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--surface); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Étapes (adhérer) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.75rem 1.5rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--green-50);
  -webkit-text-stroke: 1.5px var(--green); position: absolute; top: .8rem; right: 1.2rem; line-height: 1;
}
.step h3 { font-size: 1.1rem; margin-top: .25rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #b8d5c4; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .8rem; color: #fff; margin-bottom: 1rem; }
.footer-brand img { width: 44px; background: #fff; border-radius: 10px; padding: 4px; }
.footer-brand strong { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .04em; }
.site-footer p { font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer ul li + li { margin-top: .55rem; }
.site-footer a { color: #b8d5c4; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #fff;
  transition: background .2s, transform .2s;
}
.social a:hover { background: var(--orange); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .85rem; color: #8fb39d;
}
.footer-bottom a { font-size: .85rem; }
.address { font-style: normal; line-height: 1.6; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.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; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Bouton retour haut ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 0; display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }
