/* ==========================================================================
   AMFIAA — Système de design
   Association Marocaine des Fournisseurs d'Intrants
   destinés à l'Alimentation Animale
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Couleurs institutionnelles (charte AMFIAA) */
  --green:        #1F7A3D;
  --green-dark:   #16592C;
  --green-light:  #E8F3EC;
  --navy:         #123A6B;
  --navy-dark:    #0C2748;
  --navy-light:   #E8EEF6;
  --red:          #C8102E;
  --red-dark:     #9E0C24;
  --red-light:    #FBEAED;

  /* Neutres */
  --ink:          #1E2529;
  --ink-soft:     #495057;
  --muted:        #6B7580;
  --line:         #E3E8ED;
  --bg:           #FFFFFF;
  --bg-soft:      #F7F9FA;
  --bg-softer:    #EEF2F5;
  --white:        #FFFFFF;

  /* Typographie */
  --font-title: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body:  "Inter", "Segoe UI", system-ui, sans-serif;

  /* Rythme & formes */
  --radius:      14px;
  --radius-sm:   9px;
  --radius-lg:   22px;
  --shadow-sm:   0 1px 3px rgba(18, 58, 107, .08);
  --shadow:      0 8px 30px rgba(18, 58, 107, .10);
  --shadow-lg:   0 18px 50px rgba(18, 58, 107, .16);
  --container:   1200px;
  --gutter:      clamp(1rem, 4vw, 2.5rem);
  --header-h:    76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); font-weight: 700; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. Utilitaires de mise en page ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-title); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green); border-radius: 2px; }
.section--navy .eyebrow { color: #7FD69B; }
.section--navy .eyebrow::before { background: #7FD69B; }
.h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.section--navy .lead { color: rgba(255,255,255,.82); }

/* ---------- 4. Boutons ---------- */
.btn {
  --btn-bg: var(--green); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border: 2px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-title); font-weight: 600; font-size: .98rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31,122,61,.28); }
.btn svg { width: 18px; height: 18px; }
.btn--navy { --btn-bg: var(--navy); }
.btn--navy:hover { box-shadow: 0 10px 22px rgba(18,58,107,.30); }
.btn--red { --btn-bg: var(--red); }
.btn--red:hover { box-shadow: 0 10px 22px rgba(200,16,46,.28); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); box-shadow: none; }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { border-color: #fff; box-shadow: none; }

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

/* ==========================================================================
   5. HEADER + MÉGA-MENU  (injecté par main.js)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand__text { display: none; }

.main-nav > ul { display: flex; align-items: center; gap: .25rem; }
.main-nav a { display: block; }
.nav-link {
  padding: .6rem .85rem; border-radius: 8px;
  font-family: var(--font-title); font-weight: 500; font-size: .95rem; color: var(--ink);
  transition: color .2s, background .2s;
}
.nav-item { position: relative; }
.nav-link:hover, .nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link { color: var(--green); background: var(--green-light); }
.nav-link.has-caret::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .45rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.nav-item:hover .nav-link.has-caret::after { transform: translateY(0) rotate(225deg); }

/* Méga-menu */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  min-width: 560px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.6rem;
  opacity: 0; visibility: hidden; translate: -50% 8px;
  transition: opacity .2s var(--ease), translate .2s var(--ease), visibility .2s;
}
.nav-item:hover > .mega, .nav-item:focus-within > .mega { opacity: 1; visibility: visible; translate: -50% 0; }
.mega::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.mega-link { display: flex; gap: .85rem; padding: .7rem .8rem; border-radius: var(--radius-sm); transition: background .18s; }
.mega-link:hover { background: var(--bg-soft); }
.mega-link .ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--green-light); color: var(--green); }
.mega-link:nth-child(3n+2) .ic { background: var(--navy-light); color: var(--navy); }
.mega-link:nth-child(3n) .ic { background: var(--red-light); color: var(--red); }
.mega-link .ic svg { width: 20px; height: 20px; }
.mega-link b { font-family: var(--font-title); font-size: .95rem; color: var(--navy); display: block; }
.mega-link span { font-size: .84rem; color: var(--muted); }

.header-cta { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.header-cta .btn { padding: .6rem 1.2rem; font-size: .9rem; }

.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px;
  background: var(--navy); border-radius: 2px; translate: -50% -50%; transition: .25s var(--ease);
}
.burger span::before { translate: -50% -7px; }
.burger span::after  { translate: -50% 5px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { translate: -50% -50%; rotate: 45deg; }
body.nav-open .burger span::after  { translate: -50% -50%; rotate: -45deg; }

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .30; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(31,122,61,.55), transparent 60%),
    linear-gradient(120deg, rgba(12,39,72,.96) 0%, rgba(18,58,107,.82) 55%, rgba(200,16,46,.35) 130%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 10vw, 7rem); max-width: 780px; }
.hero .h1 { color: #fff; }
.hero .h1 .accent { color: #7FD69B; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.18rem; max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.hero__pills li {
  font-size: .85rem; font-weight: 500; padding: .45rem .95rem; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
}

/* ==========================================================================
   7. CHIFFRES CLÉS
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font-family: var(--font-title); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--green); line-height: 1; }
.stat:nth-child(2) .stat__num { color: var(--navy); }
.stat:nth-child(3) .stat__num { color: var(--red); }
.stat:nth-child(4) .stat__num { color: var(--green); }
.stat__num .suffix { font-size: .55em; }
.stat__label { margin-top: .6rem; font-size: .95rem; color: var(--ink-soft); }

/* ==========================================================================
   8. CARTES & GRILLES
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { aspect-ratio: 16/10; background: var(--bg-softer); position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .4s var(--ease); }
.card:hover .card__media img { scale: 1.05; }
.card__tag {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; background: #fff; color: var(--green);
}
.card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__date { font-size: .82rem; color: var(--muted); font-weight: 500; }
.card__title { font-family: var(--font-title); font-size: 1.15rem; color: var(--navy); font-weight: 600; }
.card__excerpt { font-size: .95rem; color: var(--ink-soft); flex: 1; }
.card__body .link-arrow { margin-top: .4rem; }

/* Piliers / missions */
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  border-top: 4px solid var(--green);
}
.pillar:nth-child(2) { border-top-color: var(--navy); }
.pillar:nth-child(3) { border-top-color: var(--green); }
.pillar:nth-child(4) { border-top-color: var(--red); }
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar__ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--green-light); color: var(--green); }
.pillar:nth-child(2) .pillar__ic { background: var(--navy-light); color: var(--navy); }
.pillar:nth-child(4) .pillar__ic { background: var(--red-light); color: var(--red); }
.pillar__ic svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.pillar p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* Bandeau partenaires */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem 3.5rem; }
.partners__item {
  font-family: var(--font-title); font-weight: 700; font-size: 1.1rem; color: var(--muted);
  opacity: .75; transition: opacity .2s, color .2s; letter-spacing: .02em;
}
.partners__item:hover { opacity: 1; color: var(--navy); }

/* Bloc CTA */
.cta-band {
  background: linear-gradient(120deg, var(--green) 0%, var(--navy) 70%);
  border-radius: var(--radius-lg); color: #fff; padding: clamp(2.2rem, 5vw, 3.4rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ==========================================================================
   9. FOOTER  (injecté par main.js)
   ========================================================================== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: .02em; }
.site-footer a { color: rgba(255,255,255,.72); transition: color .2s; }
.site-footer a:hover { color: #7FD69B; }
.footer-links li + li { margin-top: .6rem; }
.footer-brand img { height: 54px; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .92rem; max-width: 34ch; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .7rem; font-size: .92rem; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; color: #7FD69B; margin-top: 3px; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--green); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .86rem;
}
.footer-bottom .pillars-mini { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom .pillars-mini span { display: inline-flex; align-items: center; gap: .4rem; }
.footer-bottom .pillars-mini b { color: #fff; font-family: var(--font-title); font-weight: 600; }
.dot-g { color: var(--green); } .dot-n { color: #6FA0E0; } .dot-r { color: var(--red); }

/* Placeholder visuel (avant photos HD réelles) */
.media-ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-light), var(--green-light));
  color: var(--navy);
}
.media-ph--g { background: linear-gradient(135deg, var(--green-light), #fff); color: var(--green); }
.media-ph--r { background: linear-gradient(135deg, var(--red-light), #fff); color: var(--red); }
.media-ph svg { width: 46px; height: 46px; opacity: .55; }

/* Grille "métiers" (icône + texte) */
.metier { display: flex; gap: 1rem; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.metier:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.metier__ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green-light); color: var(--green); }
.metier:nth-child(3n+2) .metier__ic { background: var(--navy-light); color: var(--navy); }
.metier:nth-child(3n) .metier__ic { background: var(--red-light); color: var(--red); }
.metier__ic svg { width: 24px; height: 24px; }
.metier h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.metier p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   9 bis. COMPOSANTS DE PAGES INTÉRIEURES
   ========================================================================== */
/* En-tête de page */
.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 12% -20%, rgba(31,122,61,.5), transparent 60%),
    linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, rgba(200,16,46,.35) 140%);
}
.page-hero__inner { position: relative; z-index: 2; padding-block: clamp(2.6rem, 6vw, 4.2rem); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: .6rem; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 62ch; margin: 0; font-size: 1.1rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1.1rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* Texte riche */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; color: var(--navy); }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { margin: 0 0 1rem; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }

/* Mise en page 2 colonnes (contenu + aside) */
.layout-2 { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.aside-card h4 { color: var(--navy); }
.aside-card ul li + li { margin-top: .5rem; }
.aside-card a { color: var(--ink-soft); font-size: .95rem; }
.aside-card a:hover { color: var(--green); }

/* Frise historique */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding-bottom: 2rem; }
.timeline__item::before { content: ""; position: absolute; left: -1.68rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--green-light); }
.timeline__item:nth-child(2)::before { background: var(--navy); box-shadow: 0 0 0 2px var(--navy-light); }
.timeline__item:nth-child(3)::before { background: var(--red); box-shadow: 0 0 0 2px var(--red-light); }
.timeline__year { font-family: var(--font-title); font-weight: 700; color: var(--green); font-size: 1.05rem; }
.timeline__item h3 { margin: .2rem 0 .3rem; font-size: 1.15rem; }
.timeline__item p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* Gouvernance */
.person { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.person__avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto .9rem; display: grid; place-items: center; background: var(--navy-light); color: var(--navy); font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; }
.person h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.person p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Barre de filtres + recherche */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search-box input { width: 100%; padding: .8rem 1rem .8rem 2.7rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.search-box input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.search-box svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-family: var(--font-title); font-weight: 500; font-size: .88rem; color: var(--ink-soft); transition: .18s; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Liste de documents / ressources */
.doc-row { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.doc-row:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.doc-row__ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--red-light); color: var(--red); }
.doc-row__ic svg { width: 24px; height: 24px; }
.doc-row__main { flex: 1; min-width: 0; }
.doc-row__main b { display: block; font-family: var(--font-title); color: var(--navy); font-size: 1.02rem; }
.doc-row__meta { font-size: .85rem; color: var(--muted); display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .2rem; }
.doc-row .btn { flex-shrink: 0; padding: .6rem 1.1rem; font-size: .88rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 6px; background: var(--green-light); color: var(--green-dark); }
.badge--navy { background: var(--navy-light); color: var(--navy); }
.badge--red { background: var(--red-light); color: var(--red-dark); }

/* Événements */
.event { display: grid; grid-template-columns: 92px 1fr auto; gap: 1.4rem; align-items: center; padding: 1.3rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.event__date { text-align: center; background: var(--navy); color: #fff; border-radius: 12px; padding: .7rem .4rem; }
.event__date .d { font-family: var(--font-title); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.event__date .m { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.event__body h3 { margin-bottom: .3rem; font-size: 1.15rem; }
.event__body p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.event__meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* Membres / partenaires (logos) */
.logo-card { aspect-ratio: 16/10; display: grid; place-items: center; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); text-align: center; }
.logo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo-card b { font-family: var(--font-title); color: var(--navy); font-size: 1.1rem; }
.logo-card span { display: block; font-size: .82rem; color: var(--muted); margin-top: .3rem; }

/* Formulaire */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-title); font-weight: 500; font-size: .92rem; color: var(--navy); }
.field input, .field select, .field textarea { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.contact-info li { display: flex; gap: .9rem; margin-bottom: 1.3rem; align-items: flex-start; }
.contact-info .ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-light); color: var(--green); }
.contact-info .ic svg { width: 20px; height: 20px; }
.contact-info b { display: block; font-family: var(--font-title); color: var(--navy); }
.contact-info span { color: var(--ink-soft); font-size: .95rem; }
.map-embed { border: 0; width: 100%; height: 340px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

@media (max-width: 900px) {
  .layout-2 { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 72px 1fr; }
  .event__cta { grid-column: 2; }
}

/* Newsletter */
.newsletter { background: var(--bg-softer); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3rem); text-align: center; }
.newsletter h2 { margin-bottom: .4rem; }
.newsletter p { color: var(--ink-soft); margin: 0 auto 1.6rem; max-width: 52ch; }
.newsletter form { display: flex; gap: .6rem; max-width: 500px; margin-inline: auto; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 220px; padding: .85rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.newsletter input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.newsletter small { display: block; margin-top: .9rem; color: var(--muted); font-size: .82rem; }

/* ==========================================================================
   10. ANIMATIONS AU SCROLL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   11. MOBILE NAV OVERLAY
   ========================================================================== */
.nav-backdrop { position: fixed; inset: 0; background: rgba(12,39,72,.5); z-index: 90; opacity: 0; visibility: hidden; transition: .25s; }
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .header-cta .btn--ghost { display: none; }
  .main-nav {
    position: fixed; top: 0; right: 0; z-index: 95;
    width: min(340px, 88vw); height: 100dvh; background: #fff;
    padding: calc(var(--header-h) + 1rem) 1.4rem 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,.12);
  }
  body.nav-open .main-nav { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav-link { padding: .9rem .6rem; font-size: 1.05rem; border-radius: 10px; }
  .nav-link.has-caret::after { float: right; margin-top: .5rem; }
  .mega {
    position: static; translate: none; opacity: 1; visibility: visible;
    min-width: 0; grid-template-columns: 1fr; box-shadow: none; border: 0;
    border-left: 2px solid var(--green-light); border-radius: 0; padding: .2rem 0 .6rem .8rem;
    margin-left: .6rem; display: none;
  }
  .nav-item.is-open > .mega { display: grid; }
  .mega-link { padding: .55rem .5rem; }
  .mega-link span { display: none; }
}

@media (max-width: 640px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
  .brand__text { display: none; }
}
