/* AVEA TOGO : page d'accueil (refonte). Autonome : n'utilise ni Bootstrap, ni jQuery, ni bibliothèque d'icônes.
   Palette tirée du logo : vert AVEA, vert profond, et le dégradé rouge > orangé > jaune du contour de l'Afrique,
   utilisé uniquement en filet fin. Typographie : Archivo (variable, largeur et graisse) pour les titres, Newsreader pour la lecture. */

:root {
  --vert: #1b5e2b;
  --vert-profond: #0e3a1f;
  --vert-nuit: #0a2a17;
  --brume: #f1f4ee;
  --blanc: #ffffff;
  --encre: #16281c;
  --encre-douce: #4a5a4f;
  --soleil: #f5b700;
  --soleil-vif: #ffc61a;
  --braise: #c8321e;
  --ligne: linear-gradient(90deg, #b3261e 0%, #e0731a 55%, #f2c200 100%);

  --titre: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --texte: "Newsreader", Georgia, "Times New Roman", serif;

  --gouttiere: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 8rem);
  --entete: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 12px); }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font: 400 1.0625rem/1.65 var(--texte);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 2px; }
.sur-fond-sombre :focus-visible, .hero-texte :focus-visible, .pied :focus-visible { outline-color: var(--soleil); }

.saut {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--vert-profond); color: #fff; padding: .75rem 1rem; font: 600 .95rem var(--titre); text-decoration: none;
}
.saut:focus { top: 1rem; }

.cadre { width: min(100% - 2 * var(--gouttiere), 1240px); margin-inline: auto; }
.bloc { padding-block: var(--section); }
.ui { font-family: var(--titre); }

/* ---------- Titres ---------- */
.titre-section {
  font: 800 clamp(1.9rem, 3.1vw + .5rem, 3.1rem)/1.06 var(--titre);
  font-stretch: 108%;
  letter-spacing: -.018em;
  color: var(--encre);
  text-wrap: balance;
}
.chapeau { font: 400 clamp(1.2rem, 1.1vw + .9rem, 1.5rem)/1.55 var(--texte); color: var(--encre); max-width: 58ch; }
.petit { font: 500 .9rem/1.5 var(--titre); color: var(--encre-douce); }
.lien {
  display: inline-block; font: 700 1rem/1.2 var(--titre); color: var(--vert); text-decoration: none; padding-block: .35rem;
  background: var(--ligne) left bottom / 0 2px no-repeat; transition: background-size .35s ease; padding-bottom: .5rem;
}
.lien:hover, .lien:focus-visible { background-size: 100% 2px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.4rem;
  font: 700 1rem/1 var(--titre); text-decoration: none; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bouton:hover { transform: translateY(-2px); }
.bouton-soleil { background: var(--soleil); color: var(--vert-nuit); }
.bouton-soleil:hover { background: var(--soleil-vif); }
.bouton-contour { border-color: rgba(255, 255, 255, .55); color: #fff; }
.bouton-contour:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.bouton-vert { background: var(--vert); color: #fff; }
.bouton-vert:hover { background: var(--vert-profond); }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; height: var(--entete); background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .25s ease; }
.entete.ombre { box-shadow: 0 1px 0 rgba(22, 40, 28, .1), 0 8px 24px -16px rgba(22, 40, 28, .25); }
.entete-in { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.marque { display: block; flex: none; }
.marque-logo { position: relative; display: block; }
.marque img { height: 52px; width: auto; }
.marque .bonnet { position: absolute; left: -1px; top: 2px; width: 34px; height: auto; transform: rotate(-9deg); transform-origin: 50% 90%; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(10, 42, 23, .25)); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); margin-left: auto; font: 600 .95rem/1 var(--titre); }
.nav a { text-decoration: none; white-space: nowrap; padding: .5rem 0; background: var(--ligne) left bottom / 0 2px no-repeat; transition: background-size .3s ease; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { background-size: 100% 2px; }
.nav .bouton { padding: .6rem 1.1rem; min-height: 42px; background-image: none; font-size: .95rem; }
.nav .bouton-soleil { background-color: var(--soleil); }
.nav .bouton-soleil:hover, .nav .bouton-soleil:focus-visible { background-color: var(--soleil-vif); }
.nav form { margin: 0; }
.nav-compte { color: var(--encre-douce); font-weight: 500; }
.nav-bouton-lien { background: none; border: 0; padding: .5rem 0; cursor: pointer; font: 500 .95rem/1 var(--titre); color: var(--encre-douce); }
.menu-bouton { display: none; margin-left: auto; min-height: 44px; padding: 0 1rem; background: transparent; border: 2px solid var(--encre); border-radius: 10px; font: 700 .95rem var(--titre); cursor: pointer; }

/* ---------- Héros ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); min-height: clamp(560px, calc(100svh - var(--entete)), 800px); background: var(--vert-profond); color: #fff; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--ligne); z-index: 2; }
.hero-texte { display: flex; flex-direction: column; justify-content: center; gap: 1.75rem; padding: clamp(2.25rem, 4.5vw, 4.5rem) clamp(1.5rem, 4vw, 4.25rem); }
.titre-hero { font: 800 clamp(2rem, 4.5vw, 5.2rem)/1 var(--titre); font-stretch: 112%; letter-spacing: -.02em; }
.titre-hero .ligne { display: block; white-space: nowrap; }
.js .titre-hero { font-stretch: 64%; letter-spacing: .01em; }
.js .titre-hero.ouvre { font-stretch: 112%; letter-spacing: -.02em; transition: font-stretch 1.7s cubic-bezier(.16, .8, .22, 1), letter-spacing 1.7s cubic-bezier(.16, .8, .22, 1); }
.hero-sous { font: 400 clamp(1.1rem, .5vw + 1rem, 1.3rem)/1.55 var(--texte); max-width: 34ch; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-note { font: 500 .88rem/1.5 var(--titre); color: rgba(255, 255, 255, .72); max-width: 40ch; }
.hero-photo { position: relative; overflow: hidden; min-height: 320px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 34%; }
@supports (animation-timeline: scroll()) {
  @keyframes deriver { to { transform: translateY(5%) scale(1.06); } }
  .hero-photo img { transform: scale(1.03); animation: deriver linear both; animation-timeline: scroll(root); animation-range: 0 85vh; }
}

/* ---------- Chiffres ---------- */
.chiffres { background: var(--blanc); padding-block: clamp(2.5rem, 5vw, 4rem); }
.chiffres-liste { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2rem clamp(2rem, 6vw, 5.5rem); }
.chiffres-liste > div { display: flex; flex-direction: column; gap: .4rem; }
.chiffres-liste dd { order: -1; }
.chiffres-liste dd { font: 800 clamp(2.4rem, 4.4vw, 3.6rem)/1 var(--titre); font-stretch: 114%; letter-spacing: -.02em; color: var(--vert); font-variant-numeric: tabular-nums; }
.chiffres-liste dt { font: 500 .95rem/1.35 var(--titre); color: var(--encre-douce); max-width: 15ch; }

/* ---------- Qui sommes-nous ---------- */
.asso-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.asso-texte { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.asso-texte p:not(.chapeau):not(.petit) { max-width: 60ch; color: var(--encre); }
.asso-photos { position: relative; padding-bottom: 12%; }
.asso-photos .grande { width: 80%; aspect-ratio: 3 / 4; object-fit: cover; }
.asso-photos .petite { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 3 / 4; object-fit: cover; border: .6rem solid var(--blanc); }

/* ---------- Domaines ---------- */
.domaines { background: var(--brume); }
.domaines-tete { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 62ch; }
.domaines-corps { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.domaines-liste { border-bottom: 1px solid rgba(22, 40, 28, .18); }
.domaine { border-top: 1px solid rgba(22, 40, 28, .18); }
.domaine h3 { margin: 0; }
.domaine-titre {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.35rem 0; text-align: left;
  background: none; border: 0; cursor: pointer; font: 800 clamp(1.5rem, 2.2vw + .6rem, 2.3rem)/1.1 var(--titre); font-stretch: 106%; letter-spacing: -.015em;
  color: var(--encre-douce); transition: color .25s ease;
}
.domaine-titre::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform .35s ease; }
.domaine-titre:hover { color: var(--encre); }
.domaine.est-actif .domaine-titre { color: var(--vert); }
.domaine.est-actif .domaine-titre::after { background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; transform: rotate(180deg); }
.domaine-texte { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2, .8, .2, 1); }
.domaine.est-actif .domaine-texte { grid-template-rows: 1fr; }
.domaine-texte > div { overflow: hidden; }
.domaine-texte p { padding-bottom: 1.6rem; max-width: 52ch; }
.domaine-image { position: absolute; top: 0; right: 0; width: calc(41.6% - 1.5rem); height: 100%; max-height: 640px; object-fit: cover; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.domaine.est-actif .domaine-image { opacity: 1; }

/* ---------- Agir ---------- */
.agir { background: var(--vert-profond); color: #fff; position: relative; }
.agir::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--ligne); }
.agir .titre-section { color: #fff; }
.agir-tete { display: grid; gap: 1.1rem; margin-bottom: clamp(2.25rem, 4vw, 3.75rem); max-width: 56ch; }
.agir-tete p { color: rgba(255, 255, 255, .85); font-size: 1.2rem; }
.agir-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.voie { padding-block: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .22); display: grid; gap: .75rem; justify-items: start; }
.voie:last-child { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.voie h3 { font: 800 clamp(1.4rem, 1.6vw + .8rem, 2rem)/1.15 var(--titre); font-stretch: 106%; }
.voie p { color: rgba(255, 255, 255, .86); max-width: 46ch; }
.voie .bouton { margin-top: .4rem; }
.don { background: var(--blanc); color: var(--encre); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.25rem; }
.don h3 { font: 800 clamp(1.5rem, 1.6vw + .9rem, 2.1rem)/1.1 var(--titre); font-stretch: 106%; }
.don-ligne { display: grid; gap: .35rem; padding-top: 1.1rem; border-top: 1px solid rgba(22, 40, 28, .16); }
.don-ligne dt { font: 600 .88rem/1.2 var(--titre); color: var(--encre-douce); }
.don-ligne dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.don-valeur { font: 700 clamp(1.05rem, .9vw + .8rem, 1.3rem)/1.25 var(--titre); letter-spacing: .01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-wrap: balance; }
.copier { min-height: 40px; padding: 0 .95rem; background: var(--brume); color: var(--vert); border: 2px solid transparent; border-radius: 8px; font: 700 .9rem var(--titre); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.copier:hover { background: var(--vert); color: #fff; }
.copier.est-copie { background: var(--vert); color: #fff; }

/* ---------- Actualités et évènements ---------- */
.tete-rail { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.tete-rail > div { display: grid; gap: 1rem; max-width: 60ch; }
.defilement { display: flex; gap: .6rem; }
.defilement button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--encre); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background-color .2s ease, color .2s ease; }
.defilement button:hover { background: var(--encre); color: #fff; }
.defilement svg { width: 20px; height: 20px; }
.actus-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.actu-une { display: grid; gap: 1.1rem; }
.actu-une img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.actu-une h3, .actu-liste h3 { font: 800 clamp(1.4rem, 1.6vw + .8rem, 2rem)/1.15 var(--titre); font-stretch: 104%; letter-spacing: -.01em; }
.actu-liste li { padding-block: 1.4rem; border-top: 1px solid rgba(22, 40, 28, .18); display: grid; gap: .5rem; }
.actu-liste li:first-child { border-top: 0; padding-top: 0; }
.actu-liste h3 { font-size: clamp(1.15rem, .9vw + .9rem, 1.4rem); }
.rail { display: flex; gap: clamp(1rem, 2vw, 1.75rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.25rem; scrollbar-width: thin; scrollbar-color: var(--vert) transparent; }
.evt { flex: 0 0 min(78vw, 330px); scroll-snap-align: start; display: grid; gap: .85rem; align-content: start; }
.evt img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.evt h3 { font: 800 1.25rem/1.2 var(--titre); font-stretch: 104%; }
.evt p { font-size: 1rem; line-height: 1.55; color: var(--encre-douce); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.date { font: 600 .88rem/1 var(--titre); color: var(--vert); }
.fond-brume { background: var(--brume); }

/* ---------- Témoignages ---------- */
.temoins-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
.temoin { display: grid; gap: 1.25rem; align-content: start; }
.temoin blockquote { margin: 0; font: italic 400 clamp(1.15rem, .8vw + 1rem, 1.4rem)/1.5 var(--texte); }
.temoin-qui { display: flex; align-items: center; gap: .85rem; font: 700 1rem/1.2 var(--titre); }
.temoin-qui img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

/* ---------- Équipe ---------- */
.equipe-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.equipe-texte { display: grid; gap: 1.4rem; justify-items: start; }
.visages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.visage { display: grid; gap: .7rem; }
.visage img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; background: var(--brume); }
.visage strong { font: 800 1.05rem/1.2 var(--titre); }
.visage span { font: 500 .88rem/1.3 var(--titre); color: var(--encre-douce); }

/* ---------- Galerie ---------- */
.galerie-grille { columns: 3 240px; column-gap: 1rem; }
.galerie-grille button { display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; overflow: hidden; }
.galerie-grille img { width: 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.galerie-grille button:hover img { transform: scale(1.04); }
.visionneuse { padding: 0; border: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 92vh; }
.visionneuse::backdrop { background: rgba(10, 42, 23, .88); }
.visionneuse img { max-height: 88vh; width: auto; margin: auto; }
.visionneuse form { position: absolute; top: .5rem; right: .5rem; margin: 0; }
.visionneuse button { min-height: 44px; padding: 0 1rem; border-radius: 8px; border: 0; background: var(--blanc); font: 700 .95rem var(--titre); cursor: pointer; }

/* ---------- Pied de page ---------- */
.pied { position: relative; background: var(--vert-nuit); color: rgba(255, 255, 255, .86); padding-top: clamp(3.5rem, 7vw, 6rem); }
.pied::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--ligne); }
.pied-haut { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
/* Salutation « Woezon / Bienvenue / Welcome » : un même composant, deux tailles */
.bienvenue { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0; font-family: var(--titre); color: #fff; }
.bienvenue-mot { font-weight: 800; }
.bienvenue-trad { font-weight: 500; }
.bienvenue-petit { font-size: 1.05rem; line-height: 1.3; }
.bienvenue-petit .bienvenue-mot { color: var(--soleil); }
.bienvenue-petit .bienvenue-trad { margin-left: .85rem; padding-left: .85rem; border-left: 2px solid rgba(255, 255, 255, .4); color: rgba(255, 255, 255, .9); }
.bienvenue-grand { display: grid; grid-template-columns: auto auto 1fr; justify-content: start; align-items: baseline; row-gap: 1rem; }
.bienvenue-grand .bienvenue-mot { grid-column: 1 / -1; font-size: clamp(3rem, 7vw, 6.2rem); line-height: .95; font-stretch: 118%; letter-spacing: -.03em; }
.bienvenue-grand .bienvenue-mot::after { content: "."; }
.bienvenue-grand .bienvenue-trad { font: 700 clamp(1.25rem, 1.2vw + 1rem, 1.7rem)/1.1 var(--titre); color: var(--soleil); }
.bienvenue-grand .bienvenue-trad + .bienvenue-trad { margin-left: 1.1rem; padding-left: 1.1rem; border-left: 2px solid rgba(255, 255, 255, .35); }
.pied-signature { margin-top: 1.25rem; max-width: 30ch; }
.pied-colonnes { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 2rem; font: 400 1rem/1.6 var(--titre); }
.pied h3 { font: 700 .95rem/1.2 var(--titre); color: #fff; margin-bottom: .9rem; }
.pied li { margin-bottom: .45rem; }
.pied a { text-decoration: none; background: var(--ligne) left bottom / 0 1px no-repeat; transition: background-size .3s ease; }
.pied a:hover, .pied a:focus-visible { background-size: 100% 1px; }
.nowrap { white-space: nowrap; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .16); font: 500 .88rem/1.4 var(--titre); color: rgba(255, 255, 255, .7); }

/* ---------- Adaptation ---------- */
@media (max-width: 1040px) {
  .pied-haut { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .menu-bouton { display: inline-flex; align-items: center; }
  .nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: .5rem var(--gouttiere) 1.5rem;
    background: var(--blanc); box-shadow: 0 24px 32px -24px rgba(22, 40, 28, .4); display: none; font-size: 1.1rem;
  }
  .entete.menu-ouvert .nav { display: flex; }
  .nav a, .nav .nav-bouton-lien { padding: 1rem 0; border-bottom: 1px solid rgba(22, 40, 28, .1); background-image: none; text-align: left; }
  .nav a[aria-current="page"] { color: var(--vert); }
  .nav .bouton { margin-top: 1rem; border-bottom: 0; min-height: 52px; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; aspect-ratio: 4 / 3; min-height: 0; }
  .hero-texte { padding-block: 2.5rem 3rem; }
  .titre-hero { font-size: clamp(2rem, 10.4vw, 4.2rem); }
  .asso-grille, .domaines-corps, .agir-grille, .actus-grille, .equipe-grille { grid-template-columns: 1fr; }
  .asso-photos { max-width: 520px; }
  .domaine-image { position: static; display: none; width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: none; margin-bottom: 1.5rem; opacity: 1; }
  .domaine.est-actif .domaine-image { display: block; }
  .domaine-texte > div { display: flex; flex-direction: column-reverse; }
  .temoins-grille { grid-template-columns: 1fr; }
  .pied-colonnes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pied-colonnes { grid-template-columns: 1fr; }
  .chiffres-liste { gap: 1.75rem 2.5rem; }
  .hero-actions .bouton { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .titre-hero, .js .titre-hero.ouvre { font-stretch: 112%; letter-spacing: -.02em; transition: none; }
  .hero-photo img { animation: none; transform: none; }
  .domaine-texte, .domaine-image, .galerie-grille img, .bouton, .lien, .nav a { transition: none; }
}


/* ---------- Messages d'alerte ---------- */
.alertes { display: grid; gap: .6rem; padding-top: 1.1rem; }
.alerte { margin: 0; padding: .9rem 1.1rem; border: 2px solid; border-radius: 10px; font: 600 1rem/1.4 var(--titre); }
.alerte-succes { background: #e7f3e9; border-color: var(--vert); color: var(--vert-profond); }
.alerte-erreur { background: #fdecea; border-color: #b42318; color: #7a1710; }
.suite { margin-top: 2rem; }
.prose p + p { margin-top: 1.1rem; }

/* ---------- Pages intérieures : bandeau de titre ---------- */
.page-tete { position: relative; background: var(--vert-profond); color: #fff; padding-block: clamp(3rem, 7vw, 6rem) clamp(2.75rem, 6vw, 5rem); }
.page-tete::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--ligne); }
.page-tete .cadre { display: grid; gap: 1.4rem; }
.titre-page { font: 800 clamp(2.1rem, 4.4vw, 4.2rem)/1.03 var(--titre); font-stretch: 112%; letter-spacing: -.02em; text-wrap: balance; max-width: 22ch; }
.page-tete .chapeau { color: rgba(255, 255, 255, .9); max-width: 62ch; }
.vide-etat { padding-block: 2rem; max-width: 56ch; }
.vide-etat p { font: 500 1.1rem/1.6 var(--titre); color: var(--encre-douce); }

/* À propos */
.titre-section + .liste-fils { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.liste-fils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.liste-fils li { padding-block: 1.6rem; border-top: 1px solid rgba(22, 40, 28, .18); display: grid; gap: .5rem; align-content: start; }
.liste-fils h3 { font: 800 clamp(1.25rem, 1vw + 1rem, 1.6rem)/1.15 var(--titre); font-stretch: 106%; }
.liste-fils p { color: var(--encre-douce); max-width: 46ch; }

/* Équipe */
.groupe { margin-top: clamp(2.5rem, 5vw, 4rem); }
.groupe:first-child { margin-top: 0; }
.groupe h2 { font: 800 clamp(1.4rem, 1.6vw + .9rem, 2rem)/1.1 var(--titre); font-stretch: 106%; margin-bottom: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(22, 40, 28, .18); }
.equipe-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2.25rem 1.5rem; }
.equipe-liste.direction { grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); }
.membre { display: grid; gap: .25rem; align-content: start; }
.membre img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; background: var(--brume); margin-bottom: .6rem; }
.membre strong { font: 800 1.05rem/1.2 var(--titre); }
.membre span { font: 500 .9rem/1.35 var(--titre); color: var(--encre-douce); }

/* Domaines */
.domaine-bloc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid rgba(22, 40, 28, .18); }
.domaine-bloc:first-of-type { border-top: 0; padding-top: 0; }
.domaine-bloc:nth-of-type(even) .domaine-bloc-photo { order: 2; }
.domaine-bloc-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.domaine-bloc-texte { display: grid; gap: 1.25rem; justify-items: start; }
.domaine-bloc-texte h2 { font: 800 clamp(1.9rem, 3vw + .5rem, 3rem)/1.05 var(--titre); font-stretch: 108%; letter-spacing: -.018em; }

/* Actualités et évènements en pages */
.articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem); }
.article { display: grid; gap: .85rem; align-content: start; }
.article img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article h2, .article h3 { font: 800 clamp(1.3rem, 1.2vw + 1rem, 1.8rem)/1.15 var(--titre); font-stretch: 104%; letter-spacing: -.01em; }
.article.une { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.article.une img { aspect-ratio: 4 / 3; }
.article .corps { display: grid; gap: .6rem; align-content: start; }
.article.une .corps { gap: .85rem; align-content: center; }
.grille-evt { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2.75rem 1.75rem; }
.grille-evt .evt { flex: initial; }
.temoins-page { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.temoin-grand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid rgba(22, 40, 28, .18); }
.temoin-grand:first-child { border-top: 0; padding-top: 0; }
.temoin-grand blockquote { margin: 0; font: italic 400 clamp(1.3rem, 1.4vw + 1rem, 1.9rem)/1.45 var(--texte); }
.temoin-grand .temoin-qui { margin-top: .25rem; }
.temoin-grand .temoin-qui img { width: 84px; height: 84px; }
.temoin-grand .temoin-qui { align-items: center; }

/* Parrainages */
.enfants-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2.5rem 1.5rem; }
.enfant { display: grid; gap: .35rem; align-content: start; }
.enfant img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--brume); margin-bottom: .6rem; }
.enfant h2 { font: 800 1.25rem/1.15 var(--titre); font-stretch: 104%; }
.enfant p { font: 500 .95rem/1.4 var(--titre); color: var(--encre-douce); }
.enfant .bouton { margin-top: .7rem; }

/* Compléments : évènements en pages, enfants sans photo */
.grille-evt .evt p { display: block; -webkit-line-clamp: unset; overflow: visible; }
.grille-evt .evt h2 { font: 800 1.25rem/1.2 var(--titre); font-stretch: 104%; }
.agrandir { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.agrandir img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.agrandir:hover img { transform: scale(1.04); }
.note-parrain { margin: 0 0 2.25rem; max-width: 64ch; padding: .9rem 1.1rem; border-left: 4px solid var(--soleil); background: var(--brume); font: 500 1rem/1.5 var(--titre); }
.enfant-sans-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin-bottom: .6rem; background: var(--vert-profond); color: #fff; font: 800 clamp(3rem, 8vw, 5rem)/1 var(--titre); font-stretch: 118%; }

/* ---------- Formulaires (connexion, inscription, mot de passe) ---------- */
.connexion { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.connexion-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.connexion-photo { position: sticky; top: calc(var(--entete) + 24px); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.connexion-corps { display: grid; gap: 1.25rem; max-width: 600px; }
.connexion-corps h1 { font: 800 clamp(2rem, 3.4vw + .5rem, 3.2rem)/1.05 var(--titre); font-stretch: 108%; letter-spacing: -.018em; text-wrap: balance; }
.formulaire { display: grid; gap: 1.2rem; margin-top: .5rem; }
.champ { display: grid; gap: .4rem; }
.champ label, .champ-etiquette { font: 700 .95rem/1.2 var(--titre); }
.champ input:not([type="checkbox"]):not([type="file"]), .champ select {
  width: 100%; min-height: 50px; padding: .7rem .95rem; font: 400 1.05rem/1.3 var(--titre); color: var(--encre); background: #fff;
  border: 2px solid rgba(22, 40, 28, .3); border-radius: 10px; transition: border-color .2s ease, box-shadow .2s ease;
}
.champ input[type="file"] { font: 500 .95rem var(--titre); padding: .6rem 0; }
.champ input:focus-visible, .champ select:focus-visible { outline: none; border-color: var(--vert); box-shadow: 0 0 0 4px rgba(27, 94, 43, .2); }
.champ .est-invalide, .champ input[aria-invalid="true"] { border-color: #b42318; }
.erreur { font: 600 .92rem/1.35 var(--titre); color: #a1190f; margin: 0; }
.coche { display: flex; align-items: center; gap: .7rem; font: 600 1rem var(--titre); }
.coche input { width: 22px; height: 22px; accent-color: var(--vert); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire-pied { display: grid; gap: .75rem; margin-top: .5rem; font: 500 1rem/1.5 var(--titre); }
.formulaire-pied .lien { justify-self: start; }
.formulaire .bouton { justify-self: start; min-width: 200px; }
.note-form { font: 500 .95rem/1.5 var(--titre); color: var(--encre-douce); }

.connexion-corps.large { max-width: 780px; }
.formulaire-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.25rem; }
.formulaire-grille .pleine { grid-column: 1 / -1; }
.champ label span { color: #a1190f; }
.bouton-contour-fonce { border-color: var(--encre); color: var(--encre); }
.bouton-contour-fonce:hover { background: var(--brume); }
@media (max-width: 700px) { .formulaire-grille { grid-template-columns: 1fr; } }

/* ---------- Adaptation des pages intérieures ---------- */
@media (max-width: 960px) {
  .liste-fils, .articles { grid-template-columns: 1fr; }
  .article.une, .domaine-bloc, .temoin-grand, .connexion-in { grid-template-columns: 1fr; }
  .domaine-bloc:nth-of-type(even) .domaine-bloc-photo { order: 0; }
  .domaine-bloc-photo { aspect-ratio: 4 / 3; }
  .connexion-photo { display: none; }
}
