/* ==========================================================================
   ONG Amis Missionnaires — feuille de style unique
   Réalisation : KAIROS-MD
   ========================================================================== */

/* ---------- Polices (hébergées localement, licence SIL OFL) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/open-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/open-sans-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/open-sans-latin-600-normal.woff2") format("woff2");
}

/* ---------- Variables ---------- */
:root {
  /* Charte (à confirmer à la pipette sur le logo) */
  --red: #E30A0A;          /* fonds de boutons, filets, accents */
  --red-text: #C20808;     /* texte rouge sur fond clair (AA) */
  --red-dark: #A80606;     /* survol */
  --yellow: #FCD116;       /* bandeaux, accents — jamais de texte blanc dessus */
  --yellow-soft: #FFF3C4;
  --green: #0A7F14;        /* icônes, accents */
  --green-text: #08690F;   /* liens (AA sur blanc cassé et beige) */
  --green-soft: #E4F2E2;

  --bg: #FBF8F2;           /* blanc cassé */
  --bg-alt: #F3EDE1;       /* beige */
  --surface: #FFFFFF;
  --text: #1F1F1F;
  --text-muted: #555049;
  --border: #E2D8C6;
  --footer-bg: #24211C;
  --footer-text: #F3EDE1;

  --font-title: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow: 0 2px 6px rgba(60, 45, 20, .06), 0 8px 24px rgba(60, 45, 20, .07);
  --shadow-hover: 0 4px 10px rgba(60, 45, 20, .08), 0 14px 34px rgba(60, 45, 20, .11);

  --container: 1120px;
  --gutter: 1.25rem;
  --section-space: clamp(3rem, 7vw, 5.5rem);
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .75em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li + li { margin-top: .35em; }
strong { font-weight: 600; }

a { color: var(--green-text); text-underline-offset: .18em; }
a:hover { color: var(--red-text); }

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

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

/* ---------- Liseré tricolore ---------- */
.flag-stripe {
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0 33.33%, var(--yellow) 33.33% 66.66%, var(--red) 66.66% 100%);
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, .96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}
.brand picture { flex: none; display: block; }
/* Logo fluide : la hauteur suit la largeur d'écran, la largeur suit le ratio du fichier (jamais déformé) */
.brand img {
  width: auto;
  height: clamp(40px, 9vw, 52px);
  max-width: 100%;
  object-fit: contain;
}
.brand__name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.15;
}
.brand__name small {
  display: block;
  font-weight: 600;
  font-size: .64rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--red-text);
}

.nav-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text);
  font: 600 .9rem var(--font-title);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sélecteur de langue ---------- */
.lang-switch { position: relative; flex: none; margin-left: auto; }
.lang-switch__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .82rem;
}
.lang-switch__list li + li { margin-top: 0; }
.lang-switch__list li + li::before { content: "|"; color: #B9AD98; }
.lang-switch__btn {
  min-width: 34px;
  min-height: 40px;
  padding: .25rem .35rem;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}
.lang-switch__btn:hover { color: var(--red-text); }
.lang-switch__btn[aria-pressed="true"] {
  color: var(--green-text);
  text-decoration: underline 3px var(--yellow);
  text-underline-offset: .3em;
}
.lang-switch__note {
  position: absolute;
  top: calc(100% - .35rem);
  right: .35rem;
  margin: 0;
  font-size: .68rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--text-muted);
}
/* Google Traduction : masquer la barre, l'infobulle et le décalage de page */
#google_translate_element,
.goog-te-banner-frame,
.skiptranslate > iframe,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: .5rem var(--gutter) 1.25rem;
}
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: block;
  padding: .8rem .25rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}
.site-nav a:hover { color: var(--red-text); }
.site-nav a[aria-current="page"] { color: var(--red-text); }
.site-nav .nav-cta {
  margin-top: 1rem;
  border: 0;
  text-align: center;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--secondary { background: transparent; color: var(--green-text); border-color: var(--green-text); }
.btn--secondary:hover { background: var(--green-text); color: #fff; }
.btn--light { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--light:hover { border-color: var(--text); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-space); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin-bottom: 2.25rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--text-muted); font-size: 1.08rem; }

.eyebrow {
  display: inline-block;
  margin-bottom: .75rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-text);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  margin-right: .6rem;
  vertical-align: middle;
  background: var(--yellow);
  border-radius: 2px;
}

.lead { font-size: 1.15rem; color: var(--text); }

/* ---------- Bandeau d'accueil ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero::before {
  /* grand disque jaune en écho au logo */
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -140px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: .35;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--yellow);
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero__motto {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  margin: 0 0 1.25rem;
  padding: .45rem 1rem;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-text);
}
/* Puce après chaque mot : si la devise passe sur deux lignes (mobile), aucune ligne ne commence par une puce */
.hero__motto span:not(:last-child)::after {
  content: "•";
  margin-left: .9rem;
  color: var(--red);
}
@media (max-width: 479px) {
  .hero__motto { gap: .2rem .6rem; border-radius: var(--radius); font-size: .78rem; letter-spacing: .06em; }
  .hero__motto span:not(:last-child)::after { margin-left: .6rem; }
}
.hero h1 { margin-bottom: .6em; }
.hero h1 em { font-style: normal; color: var(--red-text); }
.hero__text p { font-size: 1.12rem; max-width: 36em; }
.hero__quote {
  margin: 0 0 1.75rem;
  padding-left: 1rem;
  border-left: 4px solid var(--yellow);
  font-style: italic;
  color: var(--text-muted);
}

/* Visuel d'accueil : mosaïque de 8 vignettes (photos basse définition : tuiles ≈ 125 px, jamais de plein écran) */
.hero__visual { width: 100%; max-width: 520px; margin: 0 auto; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: .5rem;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mosaic li + li { margin-top: 0; }
.mosaic__item { overflow: hidden; border-radius: var(--radius-s); box-shadow: var(--shadow); background: var(--bg-alt); }
.mosaic__item--big { grid-column: span 2; grid-row: span 2; }
.mosaic__item--wide { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- En-tête de page intérieure ---------- */
.page-hero {
  position: relative;
  background: var(--bg-alt);
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  border-bottom: 6px solid var(--yellow);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  right: -110px; top: -150px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: .3;
}
.page-hero .container { position: relative; }
.page-hero h1 { margin-bottom: .4em; }
.page-hero p { max-width: 42em; font-size: 1.1rem; color: var(--text-muted); margin-bottom: 0; }

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.subnav li + li { margin-top: 0; }
.subnav a {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  text-decoration: none;
}
.subnav a:hover { border-color: var(--green-text); color: var(--green-text); }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 1.5rem; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card__media { height: 190px; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--text-muted); font-size: 1rem; }
.card__body h3 { margin-bottom: .45em; }
.card__link { margin-top: auto; font-family: var(--font-title); font-weight: 600; font-size: .95rem; }

a.card { color: inherit; text-decoration: none; transition: box-shadow .25s ease, transform .25s ease; }
a.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); color: inherit; }
a.card:hover .card__media img { transform: scale(1.03); }
a.card .card__link { color: var(--green-text); }
a.card .card__link::after { content: " →"; }

.card__tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: .6rem;
  padding: .15rem .65rem;
  border-radius: 999px;
  background: var(--yellow-soft);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}

/* ---------- Chiffres clés ---------- */
.stats {
  display: grid;
  gap: 1rem;
}
.stat {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 1.3rem;
  border-top: 4px solid var(--green);
}
.stat__value {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--green-text);
}
.stat__label { display: block; font-size: .98rem; color: var(--text-muted); line-height: 1.55; }
.stat--featured {
  border-top: 0;
  background: var(--yellow);
  position: relative;
  overflow: hidden;
}
.stat--featured .stat__value { color: var(--text); font-size: 2.1rem; }
.stat--featured .stat__label { color: var(--text); font-size: 1.02rem; }
.stat--featured .stat__kicker {
  display: inline-block;
  margin-bottom: .6rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Mise en avant (loi, encadrés) ---------- */
.callout {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: var(--radius-l);
  background: var(--yellow-soft);
  border-left: 6px solid var(--red);
}
.callout h3 { margin-bottom: .4em; }
.callout p:last-child { margin-bottom: 0; }
.callout__badge {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--green-text);
}

.note {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  font-size: .98rem;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- Mise en page texte + média ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
.split__media { justify-self: center; }
.split__media figure { margin: 0; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }

.figure-caption,
figcaption {
  margin-top: .55rem;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- Galeries : vignettes homogènes 4:3, recadrées (object-fit) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li + li { margin-top: 0; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}
.gallery figcaption { font-size: .85rem; }
.credit { display: block; font-size: .78rem; color: var(--text-muted); }
.gallery-more { margin-top: 1.5rem; }

/* ≥ 600 px : colonnes de 170 à 200 px (vignettes ≈ 200 × 150 px, proches de la taille d'origine des photos) */
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(170px, 200px)); gap: 1.1rem; }
}

/* ---------- Listes ---------- */
.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%230A7F14' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.mission-list { counter-reset: mission; list-style: none; padding: 0; display: grid; gap: 1rem; }
.mission-list li {
  counter-increment: mission;
  position: relative;
  margin: 0;
  padding: 1.25rem 1.3rem 1.25rem 4.2rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mission-list li::before {
  content: counter(mission);
  position: absolute;
  left: 1.2rem;
  top: 1.15rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text);
}
.mission-list strong { display: block; font-family: var(--font-title); margin-bottom: .2rem; }

/* ---------- Frise chronologique ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: .5rem; bottom: .5rem;
  width: 3px;
  background: linear-gradient(var(--green), var(--yellow), var(--red));
  border-radius: 3px;
}
.timeline li { position: relative; padding: 0 0 1.4rem 2.2rem; margin: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: .4rem;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--green);
}
.timeline time {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--green-text);
}
.timeline p { margin: 0; }

/* ---------- Équipe ---------- */
.person {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.35rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.person__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--green-text);
}
.person__photo {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
  object-fit: cover;
  object-position: center 20%;
  background: var(--bg-alt);
}
.person h3 { margin: 0 0 .15rem; font-size: 1.08rem; }

/* Coordination Générale : pyramide 1 / 6 / 7 / 2 (grille simple sur mobile) */
.pyramid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 104px));
  justify-content: center;
  gap: .75rem;
}
.pyramid__row { display: contents; }
.pyramid li { margin: 0; list-style: none; }
.pyramid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  border: 3px solid var(--surface);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}
@media (min-width: 480px) {
  .pyramid { grid-template-columns: repeat(4, minmax(0, 104px)); }
}
.person p { margin: 0; color: var(--red-text); font-family: var(--font-title); font-weight: 600; font-size: .92rem; }

/* ---------- Domaines ---------- */
.domain + .domain { border-top: 1px solid var(--border); }
.domain__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.domain__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.domain__head h2 { margin: 0; }
.subdomains { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.subdomain {
  padding: 1.35rem 1.4rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.subdomain h3 { color: var(--green-text); }
.subdomain p:last-child { margin-bottom: 0; }
.subdomain .means { font-size: .98rem; color: var(--text-muted); }
.subdomain .means strong { color: var(--text); }
.block-title {
  margin: 2.25rem 0 1rem;
  font-size: 1.25rem;
}
.venture {
  margin-top: 1.5rem;
  padding: 1.35rem 1.4rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
}
.venture h4 { font-size: 1.15rem; color: var(--green-text); margin-bottom: .5em; }
.venture p { max-width: 52em; }

/* ---------- Contact ---------- */
.contact-card {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--yellow);
}
.contact-card h3 { display: flex; align-items: center; gap: .6rem; }
.contact-card ul { list-style: none; padding: 0; margin: 0; }
.contact-card li { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; padding: .45rem 0; border-bottom: 1px dashed var(--border); margin: 0; }
.contact-card li:last-child { border-bottom: 0; }
.tel { font-weight: 600; color: var(--text); text-decoration: none; }
.tel:hover { color: var(--red-text); text-decoration: underline; }
.wa {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .15rem .6rem;
  border-radius: 999px;
  background: var(--green-soft);
  font-size: .82rem;
  font-weight: 600;
  color: var(--green-text);
  text-decoration: none;
}
.wa:hover { background: var(--green-text); color: #fff; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Formulaires ---------- */
.form-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label,
.fieldset legend {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .95rem;
}
.req { color: var(--red-text); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  border: 1.5px solid #CFC3AE;
  border-radius: var(--radius-s);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 127, 20, .2);
  background: #fff;
}
.field .hint { font-size: .85rem; color: var(--text-muted); }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: .5rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem .75rem; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border: 1.5px solid #CFC3AE;
  border-radius: 999px;
  background: var(--bg);
  font-size: .98rem;
  cursor: pointer;
}
.choice input { width: 1.1rem; height: 1.1rem; accent-color: var(--green); margin: 0; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .93rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.consent input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--green); }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .5rem; }
.form-footer small { color: var(--text-muted); }
.hidden-field { display: none; }

/* ---------- Bandeau appel à l'action ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: var(--radius-l);
  background: var(--yellow);
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  right: -80px; bottom: -120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: .4em; }
.cta-band p { max-width: 40em; }

/* ---------- Pages simples (merci, 404, légal) ---------- */
.simple-page { padding-block: clamp(3rem, 8vw, 6rem); text-align: center; }
.simple-page .big-mark {
  display: grid;
  place-items: center;
  width: 96px; height: 96px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--green-text);
}
.simple-page p { max-width: 36em; margin-inline: auto; }
.simple-page .btn-row { justify-content: center; margin-top: 1.75rem; }

.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 1.5rem; font-size: 1.08rem; }
.legal code { font-size: .92em; padding: .05em .35em; border-radius: 4px; background: var(--bg-alt); }
.legal dl { display: grid; gap: .25rem 1rem; margin: 0 0 1rem; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0 0 .5rem; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: .95rem;
}
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--yellow); }
.footer-main { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 1rem; }
.footer-motto {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: .35rem;
}
.footer-brand p { color: #D8D0C0; }
.social-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.social-links li + li { margin-top: 0; }
.social-links a {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(243, 237, 225, .1);
  color: var(--footer-text);
  transition: background-color .2s ease, color .2s ease;
}
.social-links a:hover { background: var(--yellow); color: var(--footer-bg); }
.social-links .icon { width: 1.25rem; height: 1.25rem; }
.site-footer h2 {
  margin-bottom: .9rem;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .4rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact p { margin-bottom: .5rem; color: #D8D0C0; }
.footer-contact strong { color: var(--footer-text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(243, 237, 225, .18);
  font-size: .88rem;
  color: #D8D0C0;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.footer-bottom li + li { margin-top: 0; }

/* ---------- Compléments ---------- */
.icon--xl { width: 2rem; height: 2rem; }
.big-mark .icon--xl { width: 2.8rem; height: 2.8rem; }
.person__avatar .icon--xl { width: 2.1rem; height: 2.1rem; }

.site-nav .nav-cta a,
.site-nav .nav-cta a:hover,
.site-nav .nav-cta a[aria-current="page"] { color: #fff; }
.site-nav .nav-cta a { display: flex; border-bottom: 0; }

.stat__more { margin: .9rem 0 0; font-weight: 600; font-size: .95rem; }
.stat--featured a { color: var(--text); }
.stat--featured a:hover { color: var(--red-dark); }

.cta-band--light { background: var(--surface); box-shadow: var(--shadow); }
.cta-band--light::after { background: var(--yellow-soft); }

.identity { margin-top: 2.5rem; }
.identity .card__body { align-items: center; justify-content: center; text-align: center; }
.identity__logo { width: 180px; margin: .25rem auto 0; }
.identity__quote {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--text) !important;
}

.products { max-width: 700px; margin-top: 1rem; }
.products .card__media { height: 240px; }
.products .card__media img { object-position: center 30%; }

.ways { margin-top: 2.5rem; }
.ways .card { border-top: 4px solid var(--yellow); }
.ways h3 { color: var(--red-text); }
.ways p { margin: 0; }

.contact-card--mail { margin-top: 1.5rem; text-align: center; }
.contact-card--mail h3 { justify-content: center; }
.mail-link { font-family: var(--font-title); font-weight: 600; font-size: clamp(1.05rem, 3.5vw, 1.35rem); overflow-wrap: anywhere; }
.contact-card h3 .icon { color: var(--green); }

.social-block {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  text-align: center;
}
.social-grid {
  display: grid;
  gap: .75rem;
  max-width: 680px;
  margin: 1rem auto 0;
  padding: 0;
  list-style: none;
}
.social-grid li + li { margin-top: 0; }
.social-grid { max-width: 340px; } /* un seul réseau (TikTok) */
.social-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 64px;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.social-card:hover { border-color: var(--green-text); color: var(--text); transform: translateY(-2px); }
.social-card .icon { color: var(--green); }
.social-card strong { display: block; font-family: var(--font-title); }
.social-card small { display: block; font-size: .85rem; color: var(--text-muted); overflow-wrap: anywhere; }

/* ---------- Actualité : documents et vidéos ---------- */
.doc-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.doc-list li + li { margin-top: 0; }
.doc-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
}
.doc-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: var(--red-text);
}
.doc-card__body { flex: 1 1 14rem; }
.doc-card h3 { margin: 0 0 .2rem; font-size: 1.08rem; }
.doc-card__meta { margin: 0; font-size: .92rem; color: var(--text-muted); }
.doc-empty { color: var(--text-muted); font-style: italic; }

.article-list { display: grid; gap: 1rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.article-list li + li { margin-top: 0; }
.article-card {
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}
.article-card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--red-text); text-decoration: underline; }
.article-card p { margin: 0; color: var(--text-muted); font-size: .98rem; }
.article-card .article-card__meta { margin-bottom: .35rem; font-size: .88rem; }

/* Réunion du 28 octobre 2013 : synthèse */
.synthese { max-width: 52em; margin-bottom: 1.5rem; }

/* Partenaires : logos de taille modeste, badge texte pour le PDARP */
.partners { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.partners li + li { margin-top: 0; }
.partner {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .35rem;
  width: 170px;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.partner img { width: auto; max-width: 130px; height: 56px; object-fit: contain; }
.partner__badge {
  display: grid;
  place-items: center;
  height: 56px;
  padding: 0 1rem;
  border-radius: var(--radius-s);
  background: var(--green-soft);
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--green-text);
  letter-spacing: .06em;
}
.partner__name { font-family: var(--font-title); font-weight: 600; }
.partner__years { font-size: .88rem; color: var(--text-muted); }

/* Dons */
.don-list { list-style: none; padding: 0; margin: 0 0 1.1em; }
.don-list li { padding: .45rem 0; border-bottom: 1px dashed rgba(31, 31, 31, .2); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.video { margin: 0; }
.video__play,
.video iframe {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--footer-bg);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.video__play img { width: 100%; height: 100%; object-fit: cover; }
.video__icon { position: absolute; inset: 0; display: grid; place-items: center; }
.video__icon svg { transition: transform .2s ease; }
.video__play:hover .video__icon svg { transform: scale(1.08); }

.footer-bottom p { margin: 0; }

/* ==========================================================================
   Petits écrans : le logo, la langue et le burger tiennent sur une ligne dès 320 px
   ========================================================================== */
@media (max-width: 559px) {
  .site-header__inner { gap: .5rem; }
  .brand__name { display: none; }
}
@media (max-width: 399px) {
  .nav-toggle { padding: .55rem .7rem; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ==========================================================================
   Tablette (≥ 768 px)
   ========================================================================== */
@media (min-width: 768px) {
  :root { --gutter: 2rem; --header-h: 76px; }


  .pyramid { display: flex; flex-direction: column; align-items: center; }
  .pyramid__row { display: flex; justify-content: center; gap: .75rem; margin: 0; padding: 0; }
  .pyramid__row li { width: 84px; }

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat--featured { grid-column: 1 / -1; }

  .callout { grid-template-columns: auto 1fr; align-items: start; }

  .subdomains { grid-template-columns: repeat(2, 1fr); }
  .subdomains > :only-child,
  .subdomains > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  .form-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-main { grid-template-columns: 1.3fr 1fr 1.3fr; }

  .legal dl { grid-template-columns: 220px 1fr; }
  .legal dd { margin: 0; }
}

/* ==========================================================================
   Bureau (≥ 1024 px)
   ========================================================================== */
@media (min-width: 1024px) {
  /* Logo complet sur grand écran */
  .brand img { height: clamp(50px, 4.6vw, 60px); }
  .brand__name { display: none; }

  .pyramid__row li { width: 100px; }

  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
  .hero__visual { margin-inline: 0; justify-self: end; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat--featured { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
  .stats--five .stat--featured { grid-column: 3 / span 2; grid-row: 1 / span 2; }

  .split { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; }
  .split--reverse .split__media { order: -1; }
}

/* ==========================================================================
   Menu horizontal (≥ 1200 px) — en dessous, menu burger
   7 entrées + sélecteur de langue : le sélecteur passe sur une ligne fine au-dessus du menu
   ========================================================================== */
@media (min-width: 1200px) {
  :root { --header-h: 84px; }
  .nav-toggle { display: none; }

  .site-header__inner { flex-wrap: wrap; row-gap: 0; }
  .lang-switch { order: -1; flex-basis: 100%; display: flex; justify-content: flex-end; margin: .15rem 0 -.55rem; }
  .lang-switch__list { font-size: .76rem; }
  .lang-switch__btn { min-height: 28px; }
  .lang-switch { align-items: center; }
  .lang-switch__note { position: static; order: -1; margin-right: .6rem; }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
  }
  .site-nav a {
    padding: .5rem .45rem;
    border: 0;
    border-radius: var(--radius-s);
    font-size: .84rem;
    position: relative;
  }
  .site-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: .45rem; right: .45rem; bottom: .15rem;
    height: 3px;
    border-radius: 2px;
    background: var(--yellow);
  }
  .site-nav .nav-cta { margin: 0 0 0 .4rem; }
  .site-nav .nav-cta a { padding: .55rem .95rem; }
  .site-nav .nav-cta a::after { display: none; }
}
