/* ==========================================================================
   AVUDS — feuille de style unique
   Pour changer l'apparence du site, modifiez d'abord les VARIABLES ci-dessous.
   ========================================================================== */

/* Police des titres, hébergée sur le site (aucune requête vers Google) */
@font-face {
  font-family: "Lora Titres";
  src: url("../fonts/lora-titres.woff") format("woff");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

/* Police du texte, hébergée sur le site (Inter, licence SIL OFL) */
@font-face { font-family: "Inter Texte"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Texte"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Texte"; src: url("../fonts/inter-700.woff") format("woff"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  --nuit: #0d2745;        /* bleu nuit : fonds sombres et titres */
  --lac: #0a63a3;         /* bleu principal : liens et survols */
  --lac-fonce: #084c7d;   /* bleu foncé : bandeau d'appel au don */
  --ciel: #e8f1f7;        /* fond clair des sections en alternance */
  --soleil: #f4b71f;      /* jaune : réservé au bouton « Faire un don » */
  --soleil-clair: #ffca4d;
  --texte: #1b2b3c;
  --gris: #54657a;
  --filet: #d3dee7;       /* traits de séparation décoratifs */
  --champ: #748799;       /* bordure des champs de formulaire (contraste ≥ 3:1) */
  --erreur: #a92d17;
  --blanc: #ffffff;

  --titres: "Lora Titres", Lora, Georgia, "Times New Roman", serif;
  --corps: "Inter Texte", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --largeur: 1180px;
  --rayon: 16px;          /* arrondi des cartes et photos */
  --rayon-champ: 12px;    /* arrondi des boutons-touches et champs */
  --ombre: 0 1px 2px rgba(13, 39, 69, .06), 0 8px 24px rgba(13, 39, 69, .07);
  --ombre-haute: 0 2px 4px rgba(13, 39, 69, .06), 0 18px 40px rgba(13, 39, 69, .14);
  --fond-nuit: radial-gradient(900px 520px at 88% -10%, rgba(10, 99, 163, .55), transparent 62%), linear-gradient(135deg, #0a1f3b 0%, #0d2745 55%, #0b3a66 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 1rem/1.72 var(--corps);
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--titres);
  font-weight: 700;
  line-height: 1.14;
  margin: 0 0 .5em;
  color: var(--nuit);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.05; letter-spacing: -.015em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.008em; }
h3 { font-size: 1.25rem; line-height: 1.28; }
::selection { background: var(--soleil); color: var(--nuit); }
p { margin: 0 0 1em; }
a { color: var(--lac); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
address { font-style: normal; }

/* Focus clavier visible partout (accessibilité) */
:focus-visible { outline: 3px solid var(--lac); outline-offset: 3px; border-radius: 2px; }
.sur-fonce :focus-visible { outline-color: var(--soleil); }

.conteneur { width: min(var(--largeur), 100% - 40px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lien-evitement {
  position: absolute; left: 12px; top: -80px; z-index: 30;
  background: var(--blanc); color: var(--nuit); padding: 10px 16px; font-weight: 700;
}
.lien-evitement:focus { top: 12px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 28px;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 .98rem/1.2 var(--corps); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.bouton:hover { transform: translateY(-2px); }
.bouton--don { background: var(--soleil); color: var(--nuit); box-shadow: 0 6px 18px rgba(244, 183, 31, .38); }
.bouton--don:hover { background: var(--soleil-clair); box-shadow: 0 10px 24px rgba(244, 183, 31, .5); }
.bouton--contour { border-color: currentColor; color: var(--nuit); background: transparent; }
.bouton--contour:hover { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.sur-fonce .bouton--contour { color: var(--blanc); }
.sur-fonce .bouton--contour:hover { background: var(--blanc); border-color: var(--blanc); color: var(--nuit); }
.bouton--petit { min-height: 44px; padding: 8px 20px; font-size: .92rem; }
.bouton--plein { width: 100%; }
.bouton[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- En-tête et navigation ---------- */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--filet); box-shadow: 0 4px 18px rgba(13, 39, 69, .05); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; min-height: 76px; padding-block: 8px; }
.marque { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--nuit); text-decoration: none; }
.marque img { flex: none; width: 44px; height: 54px; object-fit: contain; }
.marque__nom { max-width: 17.5em; font: 700 .84rem/1.25 var(--titres); text-wrap: balance; }
@media (min-width: 480px) { .marque__nom { font-size: .95rem; } }
@media (max-width: 479px) {
  .entete__barre { column-gap: 12px; }
  .marque { flex: 1 1 0; }
  .marque__nom { max-width: none; }
}
@media (max-width: 359px) {
  .entete__barre { gap: 8px 12px; }
  .marque { gap: 10px; }
  .marque img { width: 38px; height: 47px; }
  .marque__nom { font-size: .74rem; }
}
@media (min-width: 1240px) {
  .entete__barre { min-height: 86px; }
  .marque img { width: 54px; height: 66px; }
  .marque__nom { max-width: 19em; font-size: 1.02rem; }
}
.menu { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.menu a:not(.bouton) {
  padding: 6px 0; color: var(--nuit); font-size: .94rem; font-weight: 600;
  text-decoration: none; border-bottom: 3px solid transparent; transition: border-color .15s, color .15s;
}
.menu a:not(.bouton):hover { border-color: var(--lac); color: var(--lac); }
.menu a:not(.bouton)[aria-current="page"] { border-color: var(--soleil); }
.menu-bouton {
  display: none; align-items: center; gap: 8px; padding: 8px 14px;
  background: none; border: 2px solid var(--champ); border-radius: 999px;
  font: 600 .95rem var(--corps); color: var(--nuit); cursor: pointer;
}
@media (max-width: 1239px) {
  .js .menu-bouton { display: inline-flex; }
  .js .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px; background: var(--blanc); border-bottom: 1px solid var(--filet);
  }
  .js .menu.est-ouvert { display: flex; }
  .js .menu a:not(.bouton) { padding: 15px 0; font-size: 1.1rem; border-bottom: 1px solid var(--filet); }
  .js .menu a:not(.bouton)[aria-current="page"] { color: var(--lac); border-bottom-color: var(--filet); }
  .js .menu .bouton { margin-top: 20px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--ciel { background: linear-gradient(180deg, #eef5fa 0%, #e2edf5 100%); }
.section__tete { max-width: 46rem; margin-bottom: 48px; }
.section__tete::before { content: ""; display: block; width: 52px; height: 5px; margin-bottom: 20px; border-radius: 5px; background: var(--soleil); }
.section__tete p { color: var(--gris); }
.chapeau { font-size: 1.18rem; line-height: 1.65; }
.texte { max-width: 44rem; }
.texte p { max-width: 40rem; }
.texte h2 { margin-top: 1.4em; }
.texte h2:first-child { margin-top: 0; }
.lien-fleche { font-weight: 700; }

.liste { list-style: none; margin: 0 0 1.2em; padding: 0; }
.liste li { position: relative; margin: .75em 0; padding-left: 28px; }
.liste li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 10px; height: 10px; border-radius: 50%; background: var(--lac); box-shadow: 0 0 0 4px rgba(10, 99, 163, .14); }
.sur-fonce .liste li::before { background: var(--soleil); box-shadow: 0 0 0 4px rgba(244, 183, 31, .22); }

.deux-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .deux-col { grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; } }
.deux-col--photo img { width: 100%; border-radius: var(--rayon); }

/* ---------- Bandeau d'ouverture : accueil ---------- */
.hero { position: relative; overflow: hidden; background: var(--fond-nuit); color: var(--blanc); }
.hero h1 { color: var(--blanc); }
.hero__grille { display: grid; gap: 44px; align-items: center; padding: 56px 0 72px; }
.hero .chapeau { max-width: 34em; color: #d6e4f0; font-size: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin: 28px 0 22px; }
.hero__note { margin: 0; font-size: .92rem; color: #b9cde0; }
@media (min-width: 960px) {
  .hero__grille { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 72px; padding: 96px 0 108px; }
}

/* ---------- En-tête des pages intérieures ---------- */
.entete-page { padding: 72px 0 32px; background: linear-gradient(180deg, #eaf3f9 0%, var(--blanc) 100%); border-bottom: 1px solid var(--filet); }
.entete-page h1::before { content: ""; display: block; width: 52px; height: 5px; margin-bottom: 22px; border-radius: 5px; background: var(--soleil); }
.entete-page h1 { max-width: 20em; margin-bottom: .4em; }
.entete-page .chapeau { max-width: 38em; margin: 0; color: var(--gris); }

.projet-hero__grille { display: grid; gap: 32px; align-items: center; }
.projet-hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--ombre-haute); }
.theme { display: inline-block; margin-bottom: 14px; font-size: .95rem; font-weight: 700; color: var(--soleil); }
.projet-hero .bouton { margin-top: 26px; }
.projet-hero .theme { color: var(--lac); }
@media (min-width: 960px) {
  .projet-hero__grille { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
}

.faits { display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 0; padding: 22px 0; border-bottom: 1px solid var(--filet); }
.faits dt { font-size: .85rem; color: var(--gris); }
.faits dd { margin: 0; font-weight: 700; color: var(--nuit); }

/* ---------- Partenaires : défilement continu ----------
   Sans JavaScript ou avec « réduire les animations » activé, les logos restent fixes (grille centrée). */
.partenaires { padding: 72px 0 76px; background: var(--blanc); border-top: 1px solid var(--filet); }
.partenaires__tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 30px; }
.partenaires__tete h2 { margin-bottom: 6px; }
.partenaires__tete p { margin: 0; max-width: 34em; color: var(--gris); }
.defile { overflow: hidden; }
.defile__piste { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 44px; margin: 0; padding: 0 20px; list-style: none; }
.defile__piste img { width: auto; max-width: 150px; height: 50px; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .js .defile {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
  .js .defile__piste { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; padding: 0; animation: defiler 50s linear infinite; }
  .js .defile__piste li { flex: none; padding: 0 30px; }
  .js .defile:hover .defile__piste { animation-play-state: paused; }
}
@keyframes defiler { to { transform: translateX(-50%); } }

/* ---------- Cartes cliquables : domaines et projets ---------- */
.grille { display: grid; gap: 20px; }
@media (min-width: 640px) { .grille--4, .grille--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grille--4 { grid-template-columns: repeat(4, 1fr); } .grille--3 { grid-template-columns: repeat(3, 1fr); } }

.carte {
  display: flex; flex-direction: column; padding: 30px 28px 26px;
  background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre);
  color: var(--texte); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.carte:hover { border-color: var(--lac); transform: translateY(-5px); box-shadow: var(--ombre-haute); }
.carte h3 { margin-bottom: 10px; }
.carte p { flex: 1; color: var(--gris); font-size: .98rem; }
.carte__lien { margin-top: 6px; font-size: .95rem; font-weight: 700; color: var(--lac); }
.carte__lien::after { content: "\2192"; display: inline-block; margin-left: 8px; transition: transform .2s; }
.carte:hover .carte__lien::after, .projet:hover .carte__lien::after { transform: translateX(5px); }
.carte:hover h3, .projet:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }

.projet {
  display: flex; flex-direction: column; overflow: hidden; background: var(--blanc);
  border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre);
  color: var(--texte); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.projet:hover { border-color: var(--lac); transform: translateY(-5px); box-shadow: var(--ombre-haute); }
.projet img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.projet:hover img { transform: scale(1.04); }
.projet__corps { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; background: var(--blanc); }
.projet__theme { align-self: flex-start; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--ciel); font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--lac); }
.projet h3 { margin-bottom: 8px; font-size: 1.4rem; }
.projet p { flex: 1; color: var(--gris); font-size: .98rem; }
.projet .carte__lien { margin-top: 6px; }
.section__pied { margin-top: 36px; }

/* ---------- Principes (À propos) ---------- */
.principes { display: grid; gap: 20px; margin: 0; }
.principes div { padding: 26px 28px; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre); }
.principes dt { margin-bottom: 6px; font: 700 1.2rem/1.25 var(--titres); color: var(--nuit); }
.principes dd { margin: 0; color: var(--gris); }
@media (min-width: 800px) { .principes { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact ---------- */
.coordonnees { display: grid; gap: 28px; }
@media (min-width: 700px) { .coordonnees { grid-template-columns: repeat(3, 1fr); } }
.coordonnees h2 { margin-bottom: 8px; font: 700 1rem var(--corps); color: var(--gris); }
.coordonnees p { margin: 0 0 .3em; font-size: 1.08rem; }

/* ---------- Pied de page ---------- */
.pied { padding: 72px 0 28px; background: linear-gradient(180deg, #0b2240 0%, #07162a 100%); border-top: 5px solid var(--soleil); color: #c3d3e3; font-size: .96rem; }
.pied a { color: var(--blanc); text-decoration-color: rgba(255, 255, 255, .4); }
.pied a:not(.bouton):hover { color: var(--soleil-clair); }
.pied__grille { display: grid; gap: 36px; }
@media (min-width: 800px) { .pied__grille { grid-template-columns: 1.4fr .8fr 1fr; gap: 56px; } }
/* Le logo AVUDS (bleu et vert) est illisible sur fond sombre : il est posé sur une plaque blanche */
.pied__marque { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.pied__logo { flex: none; display: inline-block; padding: 10px 12px; background: var(--blanc); border-radius: 12px; line-height: 0; }
.pied__logo img { width: 62px; height: auto; }
.pied__slogan { max-width: 15em; margin: 0; font: 700 1.3rem/1.3 var(--titres); color: var(--blanc); text-wrap: balance; }
@media (max-width: 479px) { .pied__slogan { font-size: 1.12rem; } }
.pied h2 { margin-bottom: 14px; font: 700 .8rem var(--corps); letter-spacing: .12em; text-transform: uppercase; color: var(--soleil); }
.pied ul { margin: 0; padding: 0; list-style: none; }
.pied li { margin: 7px 0; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .88rem; }
.pied__bas p { margin: 0; }

/* ==========================================================================
   PAGE DE DONS
   ========================================================================== */
.don-hero { padding: 48px 0 72px; background: var(--fond-nuit); color: var(--blanc); }
.don-hero h1 { color: var(--blanc); font-size: clamp(2rem, 3.6vw, 3rem); }
.don-hero .chapeau { color: #d6e4f0; }
.don-hero__grille { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "carte" "plus"; }
.don-hero__grille > * { min-width: 0; }
.don-hero .intro { grid-area: intro; }
.don-hero .plus { grid-area: plus; }
.don-hero .plus img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 26px; border-radius: var(--rayon); box-shadow: 0 18px 44px rgba(2, 10, 24, .4); }
@media (min-width: 1000px) {
  .don-hero { padding: 56px 0 80px; }
  .don-hero__grille {
    grid-template-columns: minmax(0, 1fr) 470px; grid-template-rows: auto 1fr; column-gap: 72px; row-gap: 8px; align-items: start;
    grid-template-areas: "intro carte" "plus carte";
  }
}

.carte-don { grid-area: carte; padding: 32px 28px 28px; background: var(--blanc); color: var(--texte); border-radius: 22px; border-top: 6px solid var(--soleil); box-shadow: 0 24px 60px rgba(3, 14, 30, .45); }
@media (min-width: 1000px) { .carte-don { position: sticky; top: 96px; } }
.carte-don h2 { margin-bottom: 18px; font-size: 1.6rem; }

.groupe { min-inline-size: 0; margin: 0 0 22px; padding: 0; border: 0; }
.groupe legend, .etiquette { display: block; margin-bottom: 10px; padding: 0; font-weight: 700; color: var(--nuit); }
.segments { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grille-montants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 439px) { .grille-montants { grid-template-columns: repeat(2, 1fr); } }

/* Boutons radio présentés comme des touches : l'input recouvre l'étiquette (clavier et lecteurs d'écran OK) */
.choix { position: relative; }
.choix input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choix label {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 10px;
  background: var(--blanc); border: 2px solid var(--champ); border-radius: var(--rayon-champ);
  font-weight: 700; color: var(--nuit); text-align: center; transition: border-color .15s, background-color .15s, color .15s;
}
.choix:hover input:not(:checked) + label { border-color: var(--lac); }
.choix input:checked + label { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.choix input:focus-visible + label { outline: 3px solid var(--lac); outline-offset: 2px; }
.choix--large label { justify-content: flex-start; text-align: left; padding-inline: 16px; }
.choix + .choix--large { margin-top: 8px; }
.groupe .choix--large + .choix--large { margin-top: 8px; }

.libre { display: flex; overflow: hidden; margin-top: 10px; background: var(--blanc); border: 2px solid var(--champ); border-radius: var(--rayon-champ); }
.libre:focus-within { border-color: var(--lac); }
.libre input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; background: transparent; font: 600 1.05rem var(--corps); color: var(--nuit); }
.libre input:focus, .libre select:focus { outline: none; }
.libre select { padding: 0 10px; border: 0; border-left: 2px solid var(--champ); background: var(--ciel); font: 700 1rem var(--corps); color: var(--nuit); }
.select {
  width: 100%; max-width: 100%; min-height: 50px; padding: 10px 12px; background: var(--blanc);
  border: 2px solid var(--champ); border-radius: 4px; font: 500 1rem var(--corps); color: var(--nuit);
}
.select:focus { outline: 3px solid var(--lac); outline-offset: 2px; }
.erreur { margin: 8px 0 0; font-size: .92rem; font-weight: 600; color: var(--erreur); }

.recap { margin: 4px 0 16px; padding: 14px 16px; background: var(--ciel); border-left: 4px solid var(--soleil); border-radius: 0 var(--rayon-champ) var(--rayon-champ) 0; font-size: .98rem; }
.recap strong { color: var(--nuit); }
.carte-don .bouton--don { min-height: 56px; font-size: 1.1rem; }
.note { margin: 12px 0 0; font-size: .88rem; color: var(--gris); }

.panneau { margin-top: 18px; padding: 16px; background: var(--blanc); border: 1px solid var(--filet); border-left: 4px solid var(--lac); border-radius: var(--rayon-champ); }
.panneau:focus { outline: 3px solid var(--lac); outline-offset: 3px; }
.panneau h3 { margin-bottom: 10px; font: 700 1.05rem var(--corps); }
.panneau dl { margin: 0 0 12px; }
.panneau .ligne { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--filet); }
.panneau dt { grid-column: 1 / -1; font-size: .82rem; color: var(--gris); }
.panneau dd { margin: 0; font-weight: 700; word-break: break-all; }
.copier { padding: 6px 14px; border: 2px solid var(--champ); border-radius: 999px; background: var(--blanc); font: 700 .85rem var(--corps); color: var(--lac); cursor: pointer; }
.copier:hover { border-color: var(--lac); }

/* La carte de don est blanche mais posée dans une zone sombre : ses boutons à contour doivent rester foncés */
.carte-don .bouton--contour { color: var(--nuit); }
.carte-don .bouton--contour:hover { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }

/* Suivi du don (référence + « J'ai envoyé mon don ») */
.suivi { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--filet); }
.suivi__ref { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 4px; }
.suivi__ref strong { font: 700 1.2rem var(--corps); letter-spacing: .05em; color: var(--nuit); }
.annonce { margin: 14px 0 16px; padding: 14px; background: var(--ciel); border-radius: var(--rayon-champ); }
.annonce h4 { margin: 0 0 12px; font: 700 1rem var(--corps); color: var(--nuit); }
.annonce__merci { margin: 0; font-weight: 600; color: var(--nuit); }
.champ { margin: 0 0 10px; }
.champ label { display: block; margin-bottom: 4px; font-size: .88rem; font-weight: 600; color: var(--nuit); }
.champ input {
  width: 100%; min-height: 44px; padding: 8px 10px; background: var(--blanc);
  border: 2px solid var(--champ); border-radius: 10px; font: 500 1rem var(--corps); color: var(--nuit);
}
.champ input:focus { outline: 3px solid var(--lac); outline-offset: 2px; }

/* Sections sous le formulaire */
.destinations p { color: var(--gris); }
.autres { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.autres li { padding: 28px 28px 24px; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre); }
.autres h3 { margin-bottom: 6px; font-size: 1.2rem; }
.autres p { margin: 0 0 8px; color: var(--gris); }
@media (min-width: 800px) { .autres { grid-template-columns: repeat(3, 1fr); } }

.faq { max-width: 46rem; }
.faq details { margin-bottom: 12px; padding: 0 24px; background: var(--blanc); border: 1px solid var(--filet); border-radius: 14px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: var(--lac); box-shadow: var(--ombre); }
.faq summary { position: relative; padding: 20px 40px 20px 0; font-weight: 700; color: var(--nuit); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--lac); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0; padding: 0 0 20px; color: var(--gris); }

/* ---------- Mobile : ajustements ---------- */
@media (max-width: 599px) {
  .section { padding: 64px 0; }
  .entete-page { padding: 52px 0 24px; }
  .carte-don { padding: 22px 18px 22px; }
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Compléments ---------- */
.galerie { margin: 28px 0 0; }
.galerie img { width: 100%; max-width: 300px; border-radius: var(--rayon); }
.galerie figcaption { margin-top: 8px; }
.don-hero .plus a { color: var(--blanc); }
.don-hero .plus .liste { margin-top: 8px; }

/* ---------- En-tête sur petit écran (placé en fin de fichier pour l'emporter sur les règles générales) ---------- */
@media (max-width: 479px) {
  .menu-bouton { flex: none; gap: 6px; padding: 8px 11px; font-size: .9rem; }
}
@media (max-width: 359px) {
  .menu-bouton { padding: 8px 9px; }
}

/* Pages créées depuis l'administration */
.meta-date { margin: 0 0 20px; color: var(--gris); font-size: .95rem; }
.texte-riche { max-width: 46rem; }
.texte-riche > * + * { margin-top: 1em; }
.texte-riche h2 { margin-top: 1.6em; }
.texte-riche h3 { margin-top: 1.4em; }
.texte-riche ul, .texte-riche ol { padding-left: 1.4em; }
.texte-riche li + li { margin-top: .4em; }
.texte-riche blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--soleil); color: var(--gris); }
.texte-riche img { max-width: 100%; height: auto; border-radius: var(--rayon); }
.carte__date { margin-bottom: 6px; font-size: .85rem; font-weight: 700; color: var(--gris); }

/* ---------- Galeries de photos de terrain ---------- */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; margin: 0; }
.photos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photos--un { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.photos figure { margin: 0; }
.photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: var(--rayon); box-shadow: var(--ombre); background: var(--ciel); }
.photos figure.large { grid-column: 1 / -1; }
.photos figure.large img { aspect-ratio: 21 / 9; }
.photos figure.large img, .photos figure.wide img { object-position: center; }
.photos figure.wide img { aspect-ratio: 16 / 9; }
.photos figcaption { margin-top: 10px; font-size: .92rem; line-height: 1.5; color: var(--gris); }
@media (max-width: 900px) { .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .photos, .photos--2 { grid-template-columns: minmax(0, 1fr); }
  .photos figure.large img { aspect-ratio: 16 / 9; }
}

/* ---------- Icônes des cartes de domaines (ajoutées par le style, sans toucher au HTML) ---------- */
.carte::before { content: none; }
.carte[href="urgences-humanitaires.html"]::before { content: ""; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px; background: var(--ciel) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a63a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20.5s-7.5-4.6-9.5-9.4A5.2 5.2 0 0 1 12 6.4a5.2 5.2 0 0 1 9.5 4.7c-2 4.8-9.5 9.4-9.5 9.4z'/></svg>") center / 28px no-repeat; }
.carte[href="eau-hygiene-assainissement.html"]::before { content: ""; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px; background: var(--ciel) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a63a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3s6.5 6.6 6.5 11A6.5 6.5 0 0 1 5.5 14C5.5 9.6 12 3 12 3z'/><path d='M9 14.5a3 3 0 0 0 3 3'/></svg>") center / 28px no-repeat; }
.carte[href="education-protection.html"]::before { content: ""; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px; background: var(--ciel) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a63a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 19.5V5.5A2.5 2.5 0 0 1 6.5 3H20v15H6.5A2.5 2.5 0 0 0 4 20.5'/><path d='M8 7.5h8M8 11.5h5'/></svg>") center / 28px no-repeat; }
.carte[href="securite-alimentaire.html"]::before { content: ""; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px; background: var(--ciel) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a63a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M5 19C5 10.5 10 5 19.5 4.5 19 14 14 19 5 19z'/><path d='M5 19l8.5-8.5'/></svg>") center / 28px no-repeat; }
.carte[href="protection-vbg.html"]::before { content: ""; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px; background: var(--ciel) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a63a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l7.5 2.8v6c0 4.6-3.1 7.9-7.5 9.2-4.4-1.3-7.5-4.6-7.5-9.2v-6z'/><path d='M9 12l2.2 2.2L15.5 10'/></svg>") center / 28px no-repeat; }
.carte[href$="-resilience.html"]::before, .carte[href$="-developpement.html"]::before { content: none; }

/* Cinq cartes de domaines : 3 en haut, 2 plus larges en bas (aucun vide dans la grille) */
@media (min-width: 1000px) {
  .grille--3:has(> .carte:nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
  .grille--3:has(> .carte:nth-child(5):last-child) > .carte { grid-column: span 2; }
  .grille--3:has(> .carte:nth-child(5):last-child) > .carte:nth-child(n+4) { grid-column: span 3; }
}

/* ---------- Bandeau d'ouverture dynamique (diaporama) ----------
   Sans JavaScript, seule la première photo s'affiche. Le défilement est géré dans main.js. */
.carrousel__scene { position: relative; z-index: 1; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; background: #0a1f3b; box-shadow: 0 24px 60px rgba(2, 10, 24, .45); }
.carrousel__slide { position: absolute; inset: 0; margin: 0; }
.carrousel__slide:not(:first-child) { display: none; }
.carrousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carrousel__slide:nth-child(2) img { object-position: 50% 14%; }
.carrousel__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px;
  padding: 64px 150px 22px 22px; background: linear-gradient(180deg, transparent, rgba(4, 14, 30, .86));
  color: var(--blanc);
}
.carrousel__theme { font: 700 1.1rem/1.25 var(--titres); text-wrap: balance; }
.carrousel__lien { align-self: flex-start; color: var(--soleil-clair); font-size: .92rem; font-weight: 700; text-underline-offset: .2em; }
.carrousel__lien::after { content: " \2192"; }
.carrousel__lien:hover { color: var(--blanc); }
.js .carrousel__slide, .js .carrousel__slide:not(:first-child) { display: block; visibility: hidden; opacity: 0; transition: opacity .9s ease, visibility 0s linear .9s; }
.js .carrousel__slide.est-actif { visibility: visible; opacity: 1; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.carrousel__nav { position: absolute; z-index: 3; right: 14px; bottom: 16px; display: flex; align-items: center; gap: 6px; }
.carrousel__fleche {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(4, 14, 30, .5); color: var(--blanc);
  cursor: pointer; transition: background-color .15s, color .15s;
}
.carrousel__fleche:hover { background: var(--soleil); border-color: var(--soleil); color: var(--nuit); }
.carrousel__points { display: flex; align-items: center; }
.carrousel__point { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.carrousel__point::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background-color .15s, width .25s; }
.carrousel__point[aria-current="true"]::before { width: 22px; border-radius: 6px; background: var(--soleil); }
.carrousel__point:hover::before { background: var(--blanc); }
.carrousel__point[aria-current="true"]:hover::before { background: var(--soleil); }
.carrousel :focus-visible { outline-color: var(--soleil); }
@media (max-width: 599px) {
  .carrousel__slide figcaption { padding: 56px 16px 58px 16px; }
  .carrousel__nav { left: 10px; right: 10px; bottom: 8px; justify-content: space-between; }
  .carrousel__fleche { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .js .carrousel__slide, .js .carrousel__slide.est-actif { transition: none !important; } }

/* ---------- Pages de domaine : photo d'en-tête et galeries regroupées ---------- */
.entete-page--photo { padding-bottom: 56px; }
.entete-page__grille { display: grid; gap: 36px; align-items: center; }
.entete-page__photo { margin: 0; }
.entete-page__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--ombre-haute); }
.entete-page__photo figcaption { margin-top: 12px; font-size: .9rem; line-height: 1.5; color: var(--gris); }
@media (min-width: 960px) { .entete-page__grille { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; } }
.photos__titre { margin: 44px 0 20px; font-size: 1.3rem; }
.photos__titre:first-of-type { margin-top: 0; }
.photos--carre img { aspect-ratio: 1 / 1; }
.photos--carre figure:nth-child(3) img { object-position: center 4%; }

/* ---------- Mosaïque de photos (page Eau) : un seul bloc compact, sans légendes ---------- */
.mosaique { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 14px; }
.mosaique figure { margin: 0; overflow: hidden; border-radius: var(--rayon); background: var(--ciel); box-shadow: var(--ombre); }
.mosaique img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mosaique figure:hover img { transform: scale(1.05); }
.mosaique .m-a { grid-column: span 2; grid-row: span 2; }
.mosaique .m-b { grid-row: span 2; }
.mosaique .m-c img { object-position: center 38%; }
.mosaique .m-d img { object-position: center 8%; }
.mosaique .m-e, .mosaique .m-f { grid-column: span 2; }
@media (max-width: 760px) {
  .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  .mosaique .m-a { grid-column: span 2; grid-row: span 2; }
  .mosaique .m-b { grid-column: span 1; grid-row: span 2; }
}

/* ---------- Photo secondaire en médaillon, posée sur la photo principale ---------- */
.entete-page__photo--duo, .projet-hero__photo--duo { position: relative; margin-bottom: 34px; }
.photo-inset {
  position: absolute; left: 14px; bottom: -34px; width: 42%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border: 5px solid var(--blanc); border-radius: 18px; box-shadow: var(--ombre-haute);
}
.entete-page__photo .photo-inset, .projet-hero__photo .photo-inset { aspect-ratio: 4 / 3; border-radius: 18px; }
@media (min-width: 960px) { .photo-inset { left: -32px; width: 40%; } }
.projet-hero__photo--duo img:first-child { display: block; }
.entete-page__photo .photo-inset, .projet-hero__photo .photo-inset { position: absolute; left: 14px; bottom: -34px; width: 42%; height: auto; box-shadow: var(--ombre-haute); }
@media (min-width: 960px) { .entete-page__photo .photo-inset, .projet-hero__photo .photo-inset { left: -32px; width: 40%; } }
}
}
}

/* ---------- Bandeau d'ouverture de l'accueil : diaporama en pleine largeur ---------- */
.hero--photos { display: flex; align-items: center; min-height: clamp(540px, 50vw, 680px); }
.hero--photos .carrousel--fond { position: absolute; inset: 0; }
.hero--photos .carrousel__scene { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.hero--photos .carrousel__scene::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 18, 38, .88) 0%, rgba(5, 18, 38, .6) 42%, rgba(5, 18, 38, .06) 100%), linear-gradient(0deg, rgba(5, 18, 38, .5) 0%, transparent 34%);
}
.hero--photos .carrousel__slide img { object-position: center 60%; }
.hero--photos .carrousel__slide:nth-child(2) img { object-position: center 30%; }
.hero--photos .hero__grille { position: relative; z-index: 3; grid-template-columns: minmax(0, 1fr); padding: 96px 0 112px; }
.hero--photos .hero__texte { max-width: 38rem; }
.hero--photos h1 { text-shadow: 0 2px 20px rgba(2, 10, 24, .4); }
.hero--photos .carrousel__slide figcaption {
  left: auto; right: max(20px, calc((100vw - var(--largeur)) / 2)); bottom: 84px; z-index: 3; align-items: flex-end;
  max-width: 340px; padding: 10px 16px 11px; border-radius: 14px; background: rgba(5, 18, 38, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-align: right;
}
.hero--photos .carrousel__lien { align-self: flex-end; }
.hero--photos .carrousel__nav { z-index: 4; right: max(20px, calc((100vw - var(--largeur)) / 2)); bottom: 28px; }
@media (max-width: 760px) {
  .hero--photos { display: block; min-height: 0; }
  .hero--photos .carrousel--fond { position: relative; inset: auto; }
  .hero--photos .carrousel__scene { position: relative; aspect-ratio: 4 / 3; }
  .hero--photos .carrousel__scene::after { display: none; }
  .hero--photos .carrousel__slide img { object-position: center 55%; }
  .hero--photos .carrousel__slide figcaption { left: 12px; right: 12px; bottom: 56px; max-width: none; align-items: flex-start; text-align: left; padding: 8px 14px 9px; }
  .hero--photos .carrousel__lien { align-self: flex-start; }
  .hero--photos .carrousel__nav { left: 10px; right: 10px; bottom: 8px; }
  .hero--photos .hero__grille { padding: 32px 0 52px; }
}
.hero--photos .hero__grille { pointer-events: none; }
.hero--photos .hero__texte { pointer-events: auto; }
@media (max-width: 760px) { .hero--photos .carrousel__slide figcaption { display: none; } }
