/* ==========================================================================
   AFY — Refonte actionforyouths.com
   Design system « Direction A · Récit & Impact » (validée client, mai 2026).
   Refonte progressive : ce fichier ne sert que les pages déjà refondues.
   Sobriété / bas-débit : polices système, zéro dépendance externe (cf. CdC).
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, p,
figure, blockquote,
ul, ol, dl, dd { margin: 0; }

ul[class],
ol[class] { list-style: none; padding: 0; }

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

/* --- Tokens -------------------------------------------------------------- */
:root {
  --paper:      #fbf7f1;
  --paper-2:    #f3ebdd;
  --ink:        #241d18;
  --muted:      #6f6155;
  --accent:     #df6420;
  --accent-700: #b94e12;
  --accent-800: #933d0d;
  --terra:      #9c4a26;
  --deep:       #2c241d;
  --line:       #e7ddca;
  --ph:         #e4d8c2;
  --ph-ink:     #998963;
  --ok:         #3f7d3a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(36, 29, 24, .12);
}

/* --- Base ---------------------------------------------------------------- */
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.18;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 200;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Champ-piège anti-robot (honeypot) — invisible pour les humains. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* --- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .97rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
/* Fond bouton : --accent-700 (texte blanc ≈ 5:1, conforme WCAG AA).
   L'orange vif --accent reste réservé au décoratif (chiffres, icônes, focus). */
.btn-accent { background: var(--accent-700); color: #fff; }
.btn-accent:hover { background: var(--accent-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.nav-cta { display: none; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-weight: 600;
  /* AF-51 : --accent-800 (et non -700) pour atteindre 4.5:1 sur fond
     --paper-2 (#f3ebdd) des sections alternees. Ratio 4.26 -> 6.09. */
  color: var(--accent-800);
  text-decoration: none;
}
.arrow-link:hover { text-decoration: underline; }

/* --- En-tête ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.05;
}
.brand-tag {
  display: block;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.primary-nav > ul { display: flex; gap: 2px; list-style: none; }
.primary-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 12px;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  border-radius: var(--radius);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.primary-nav .nav-link:hover { background: var(--paper-2); }
.primary-nav .nav-link.is-active { color: var(--accent-700); font-weight: 700; }
.caret { width: .6em; height: .6em; display: inline-block; }

/* Sous-menus */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: .92rem;
}
.dropdown a:hover { background: var(--paper-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-switch a {
  padding: 6px 10px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
}
.lang-switch a.is-active { background: var(--ink); color: #fff; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle .bar::before { position: absolute; top: -6px; }
.nav-toggle .bar::after  { position: absolute; top: 6px; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--deep);
  overflow: hidden;
}
.hero-media {
  /* AF-50 : devient un <picture class="hero-media"> contenant un <img>.
     position absolute + inset 0 + l'img remplit avec object-fit: cover. */
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,15,11,.35) 0%, rgba(20,15,11,.82) 100%);
}
.hero-inner { position: relative; padding-block: 64px 52px; }
.hero--page .hero-inner { padding-block: 52px 44px; }
.hero-eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f2c9a4;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  max-width: 17ch;
}
.hero-sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,.85);
  max-width: 52ch;
  margin-top: 16px;
}
.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 26px 0;
}
.hero-stat .num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 12vw, 4.6rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stat .label {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  max-width: 15ch;
  color: rgba(255,255,255,.85);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.breadcrumb { font-size: .85rem; margin-bottom: 14px; color: rgba(255, 255, 255, .72); }
.breadcrumb a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .current { color: #fff; font-weight: 600; }

/* --- Sections ------------------------------------------------------------ */
.section { padding-block: 56px; }
.section-alt { background: var(--paper-2); }
.section-deep { background: var(--deep); color: #fff; }

.eyebrow {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  /* AF-51 : --accent-800 pour 4.5:1 sur fond --paper-2 (#f3ebdd). 4.26 -> 6.09. */
  color: var(--accent-800);
  margin-bottom: 8px;
}
.section-deep .eyebrow { color: #f2c9a4; }

.section-title {
  font-size: clamp(1.6rem, 4.6vw, 2.4rem);
  max-width: 24ch;
}
.section-head { margin-bottom: 32px; }
.section-head.with-link {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
  margin-top: 12px;
}

.mission-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  line-height: 1.3;
  max-width: 26ch;
}

/* --- Statistiques -------------------------------------------------------- */
.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 22px;
  border-radius: var(--radius);
}
.stat-card .num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--terra);
  line-height: 1;
}
.stat-card .stat-label { margin-top: 8px; font-weight: 600; }
.stat-card .stat-sub { color: var(--muted); font-size: .92rem; }

/* --- Grilles & cartes ---------------------------------------------------- */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ph); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-700);
}
.card-title { font-size: 1.3rem; }
.card-body p { color: var(--muted); }
.card .arrow-link { margin-top: auto; padding-top: 8px; }

.news-date {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-700);
}
.news-card h3 { font-size: 1.12rem; }

/* --- Témoignages --------------------------------------------------------- */
.testimonial {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.testimonial .quote-mark {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: .4;
  color: var(--accent);
  display: block;
  height: 1.4rem;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 18px;
}
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .who-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  background: var(--ph);
}
.testimonial .who-name { font-weight: 700; }
.testimonial .who-meta { font-size: .85rem; color: rgba(255,255,255,.7); }

/* --- Bandeau CTA --------------------------------------------------------- */
.cta-band {
  background: var(--terra);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 28px;
}
/* AF-51 : #fadcc0 (au lieu de #f2c9a4) pour 4.5:1 sur --terra (#9c4a26). 3.99 -> 4.70. */
.cta-band .eyebrow { color: #fadcc0; }
.cta-band h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 20px; max-width: 54ch; }

/* --- Partenaires --------------------------------------------------------- */
.partners-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.partner-logo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 92px;
  display: grid;
  place-items: center;
  padding: 14px;
}
.partner-logo img { max-height: 60px; width: auto; object-fit: contain; }

.empty-state {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

/* --- Timeline (histoire) ------------------------------------------------- */
/* AF-3 : pastille (::before) ET segment de ligne (::after) portes par chaque
   <li>, tout positionne relativement au li (padding-left). Evite le rail global
   en absolu sur le padding de .timeline, qui se decalait dans le texte sous
   Safari et en colonne de grille. La ligne passe derriere les pastilles
   (z-index) et s'arrete au dernier item. */
.timeline { position: relative; }
.timeline li {
  position: relative;
  padding-left: 32px;
  padding-bottom: 28px;
}
.timeline li:last-child { padding-bottom: 0; }
/* segment de ligne verticale (gouttiere gauche) */
.timeline li::after {
  content: "";
  position: absolute;
  left: 6px; top: 4px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::after { display: none; }
/* pastille */
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--paper);
  z-index: 1;
}
.timeline .year {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--terra);
  font-size: 1.15rem;
}
.timeline .tl-title { font-weight: 700; }
.timeline p { color: var(--muted); }

/* --- Bloc média + texte -------------------------------------------------- */
.split { display: grid; gap: 28px; grid-template-columns: 1fr; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ph);
  aspect-ratio: 4 / 3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* --- Cartes valeur ------------------------------------------------------- */
.value-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.value-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--accent-700);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.value-card p { color: var(--muted); font-size: .96rem; }

/* --- Cartes équipe ------------------------------------------------------- */
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ph);
  margin-bottom: 12px;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.08rem;
}
.team-card .role { color: var(--muted); font-size: .9rem; }

/* --- Galerie ------------------------------------------------------------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ph);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* --- Alerte serveur ------------------------------------------------------ */
.alert {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.alert strong { display: block; margin-bottom: 2px; }
.alert-ok { background: #eaf3e8; border-color: #bcd9b6; color: #2c5226; }
.alert-error { background: #fbe9e3; border-color: #e9c3b3; color: #8a3115; }

/* --- Formulaire de don --------------------------------------------------- */
.don-layout { display: grid; gap: 26px; grid-template-columns: 1fr; }
.don-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.form-step-label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-700);
}
.don-form > h2 { font-size: 1.5rem; margin: 6px 0 20px; }
.fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.fieldset > legend { font-weight: 700; font-size: 1rem; margin-bottom: 12px; padding: 0; }
.req { color: var(--accent-700); }

.option-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.option-grid.cols-1 { grid-template-columns: 1fr; }
.option { position: relative; display: block; }
.option input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.option .option-face {
  display: block;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease;
}
.option input:checked + .option-face { border-color: var(--accent); background: #fdf0e6; }
.option input:focus-visible + .option-face { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt-main { font-weight: 700; display: block; }
.opt-sub { font-size: .82rem; color: var(--muted); display: block; }
.opt-tag {
  display: inline-block;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--ok);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
}
.opt-row { display: flex; align-items: center; gap: 10px; }
.opt-logo {
  width: 42px; height: 28px;
  flex: none;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: .56rem;
  font-weight: 700;
  color: var(--muted);
}

.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.input:focus { border-color: var(--accent); outline: none; }
textarea.input { resize: vertical; min-height: 150px; }
.input-suffix { display: flex; }
.input-suffix .input { border-radius: var(--radius) 0 0 var(--radius); }
.input-suffix .suffix {
  display: grid;
  place-items: center;
  padding: 0 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  font-size: .9rem;
}
.secure-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--muted);
  margin-top: 14px;
}

.don-aside { display: flex; flex-direction: column; gap: 20px; }
.aside-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.section-alt .aside-box,
.section-alt .don-form { background: var(--paper); }
.aside-box h3 { font-size: 1.15rem; margin-bottom: 14px; }
.finance-list li {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.finance-list li:first-child { border-top: 0; }
.finance-list .amount {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--terra);
  flex: none;
  width: 7.5em;
}
.finance-list .what { color: var(--muted); font-size: .93rem; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pay-logos span {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  padding: 6px 10px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
}

/* --- FAQ (accordéon natif) ---------------------------------------------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-700);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 18px 16px; color: var(--muted); }

/* --- Pagination ---------------------------------------------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}
.pagination .page-info { font-weight: 600; color: var(--muted); }

/* --- Article (contenu long) --------------------------------------------- */
.article-body { max-width: 72ch; margin-inline: auto; }
.article-figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ph);
  aspect-ratio: 16 / 9;
  margin-bottom: 28px;
}
.article-figure img { width: 100%; height: 100%; object-fit: cover; }
.article-prose p { margin-bottom: 1em; }
.article-prose p:last-child { margin-bottom: 0; }

/* --- Pied de page -------------------------------------------------------- */
.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,.78);
  padding-block: 48px 28px;
}
.footer-top {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin: 14px 0 18px; font-size: .94rem; max-width: 40ch; }
.footer-cols {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, 1fr);
}
/* AF-51 : titres de colonnes en <h2> (et non <h4>) pour eviter le saut de
   niveau h2 -> h4 (heading-order WCAG) ; style visuel inchange. */
.footer-cols h2 {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f2c9a4;
  margin-bottom: 12px;
}
.footer-cols ul { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.footer-cols a, .footer-cols li {
  text-decoration: none;
  font-size: .94rem;
  color: rgba(255,255,255,.78);
}
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}

/* AF-49 — bandeau réseaux + carte newsletter (position milieu) */
.footer-middle {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: center;
}
.social-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.social-bar .social-label {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f2c9a4;
}
.social-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  transition: background .15s ease, color .15s ease;
}
.social-bar a:hover { background: var(--terra); color: #fff; }
.social-bar svg { width: 20px; height: 20px; display: block; }
.newsletter-stub {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.newsletter-stub h2 {
  font-family: var(--sans);
  font-size: .92rem;
  color: #fff;
  margin-bottom: 6px;
}
.newsletter-stub p { font-size: .9rem; color: rgba(255,255,255,.7); margin: 0; }

/* --- Utilitaires --------------------------------------------------------- */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.flow > * + * { margin-top: 16px; }

/* ==========================================================================
   Tablette  ≥ 680px
   ========================================================================== */
@media (min-width: 680px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { padding-block: 88px 72px; }
  .hero--page .hero-inner { padding-block: 68px 56px; }
}

/* ==========================================================================
   Bureau  ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  body { font-size: 17px; }
  .nav-toggle { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .section { padding-block: 80px; }
  .footer-top { grid-template-columns: 1.1fr 2fr; }
  .footer-cols { grid-template-columns: repeat(5, 1fr); }
  .footer-middle { grid-template-columns: 1.4fr 1fr; }
  .hero-inner { padding-block: 120px 96px; }
  .hero h1 { font-size: clamp(2.6rem, 4vw, 3.6rem); }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  /* AF-3 : section histoire = intro a gauche (sticky) + timeline a droite,
     alignees en haut (et non centrees) pour eviter le grand vide a droite. */
  .split.timeline-split { grid-template-columns: .85fr 1.15fr; align-items: start; }
  .timeline-split .section-head { position: sticky; top: 90px; margin-bottom: 0; }
  .don-layout { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .don-aside { position: sticky; top: 90px; }
}

/* ==========================================================================
   Navigation mobile (drawer)  < 1024px
   ========================================================================== */
@media (max-width: 1023px) {
  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 320px);
    background: var(--paper);
    border-left: 1px solid var(--line);
    padding: 80px 18px 24px;
    transform: translateX(100%);
    transition: transform .22s ease;
    box-shadow: var(--shadow);
    overflow-y: auto;
    z-index: 110;
  }
  .primary-nav[data-open="true"] { transform: translateX(0); }
  .primary-nav > ul { flex-direction: column; gap: 2px; }
  .primary-nav .nav-link { padding: 12px 14px; font-size: 1.05rem; width: 100%; }

  .header-cta { display: none; }
  .nav-cta { display: flex; margin-top: 16px; }

  .dropdown {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding: 0 0 6px 14px;
    min-width: 0;
  }
  .caret { display: none; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20,15,11,.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
    z-index: 90;
  }
  .nav-backdrop[data-open="true"] { opacity: 1; visibility: visible; }

  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   AF-48 — Erreurs de formulaire par champ (contact.php)
   ========================================================================== */
.field-error {
  margin-top: 6px;
  font-size: .88rem;
  color: #b3261e;
}
.field.has-error .input,
.field.has-error textarea.input {
  border-color: #b3261e;
  background-color: #fff5f5;
}
.field.has-error label { color: #b3261e; }

/* ==========================================================================
   AF-47 — Filtre catégorie, métadonnées article, boutons de partage
   ========================================================================== */

/* Barre de filtre par catégorie (liste actualites). */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter-bar a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-bar a:hover { border-color: var(--ink); }
.filter-bar a.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Métadonnées article (date + auteur) en tête du corps. */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.article-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .meta-label { font-weight: 600; color: var(--ink); }

/* Boutons de partage social (page détail). */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.share-buttons .share-title {
  width: 100%;
  font-weight: 600;
  margin-bottom: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: .92rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.share-btn:hover { border-color: var(--ink); background: var(--paper-2); }
.share-btn--copy.is-copied {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}

/* ==========================================================================
   Préférence : animations réduites
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
