/* ═══════════════════════════════════════════════════════════════════
   Sections de page
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero éditorial : texte sur papier, photo en vis-à-vis ─────── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--papier);
  border-bottom: 1px solid var(--bordure);
}

.hero__scene {
  position: relative;
  grid-row: 1;
  overflow: hidden;
  min-height: clamp(240px, 42vw, 400px);
  background: var(--papier-creux);
}

.hero__diapo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--sortie);
}

.hero__diapo.est-active { opacity: 1; }

.hero__diapo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Lent zoom arrière pendant l'affichage */
  transform: scale(1.09);
  transition: transform 9s linear;
}

.hero__diapo.est-active img { transform: scale(1); }

/* Fondu de la photo vers le papier, du côté du texte */
.hero__voile {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--papier) 0%,
    rgba(250, 248, 243, 0.35) 26%,
    transparent 60%
  );
}

.hero .enveloppe {
  grid-row: 2;
  display: flex;
  align-items: center;
}

.hero__contenu {
  padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem);
  max-width: 44rem;
}

.hero__titre {
  margin-block: 1.1rem 1.25rem;
  font-size: var(--titre-lg);
  line-height: var(--interligne-serre);
}

.hero__titre em {
  display: block;
  font-style: normal;
  color: var(--rouge-600);
}

.hero__texte {
  max-width: 46ch;
  font-size: var(--texte-lg);
  color: var(--texte-doux);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--gap-lg);
}

/* Puces du diaporama, posées sur la photo */
.hero__puces {
  position: absolute;
  z-index: 2;
  left: var(--gouttiere);
  bottom: 1.25rem;
  display: flex;
  gap: 0.45rem;
}

.hero__puce {
  width: 34px;
  height: 3px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 99px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: background-color var(--duree) var(--sortie);
}

.hero__puce[aria-current="true"] { background: var(--or-500); }
.hero__puce:hover { background: #fff; }

@media (min-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    min-height: min(84vh, 780px);
  }

  .hero__scene {
    grid-row: 1;
    grid-column: 2;
    min-height: 0;
  }

  /* Le fondu passe à l'horizontale pour fusionner avec la colonne texte */
  .hero__voile {
    background: linear-gradient(
      to right,
      var(--papier) 0%,
      rgba(250, 248, 243, 0.55) 14%,
      transparent 42%
    );
  }

  .hero .enveloppe {
    grid-row: 1;
    grid-column: 1;
    max-width: none;
    /* Aligne le texte du hero sur la grille du reste du site */
    padding-left: max(
      var(--gouttiere),
      calc((100vw - var(--largeur-max)) / 2 + var(--gouttiere))
    );
    padding-right: var(--gap-lg);
  }

  .hero__puces { right: var(--gouttiere); left: auto; bottom: 1.75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   En-tête officiel — reprend le papier à en-tête de la fédération
   ═══════════════════════════════════════════════════════════════ */

.bandeau-officiel {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--bordure);
}

/* Coin au drapeau, comme sur le papier officiel : bandes diagonales
   vert, rouge, jaune, étoile d'or dans le vert. */
.bandeau-officiel__drapeau {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(70px, 9vw, 130px);
  aspect-ratio: 1;
  background: linear-gradient(
    135deg,
    var(--vert-600) 0 34%,
    var(--rouge-600) 34% 52%,
    var(--or-500) 52% 70%,
    transparent 70%
  );
  pointer-events: none;
}

.bandeau-officiel__drapeau::after {
  content: "★";
  position: absolute;
  top: 18%;
  left: 16%;
  color: var(--or-500);
  font-size: clamp(0.9rem, 1.4vw, 1.4rem);
  line-height: 1;
}

.bandeau-officiel__grille {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--gap-md);
  padding-block: clamp(1rem, 0.6rem + 1.4vw, 1.6rem);
}

.bandeau-officiel__texte {
  text-align: center;
  padding-left: clamp(60px, 8vw, 120px);
}

.bandeau-officiel__texte p { margin: 0; }

.bandeau-officiel__tutelle {
  font-size: clamp(0.72rem, 0.6rem + 0.45vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-900);
}

.bandeau-officiel__nom {
  margin-top: 0.2rem !important;
  font-size: clamp(0.85rem, 0.7rem + 0.6vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--vert-800);
}

.bandeau-officiel__nom span { display: block; }

.bandeau-officiel__sigle {
  margin-top: 0.15rem !important;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.35rem);
  letter-spacing: 0.08em;
  color: var(--rouge-600);
}

.bandeau-officiel__decision {
  margin-top: 0.3rem !important;
  font-size: clamp(0.72rem, 0.64rem + 0.3vw, 0.875rem);
  font-weight: 600;
  color: var(--texte-doux);
}

.bandeau-officiel__logo {
  width: clamp(76px, 6rem + 2vw, 128px);
  height: auto;
  border-radius: 50%;
}

@media (max-width: 640px) {
  .bandeau-officiel__grille { grid-template-columns: 1fr; justify-items: center; }
  .bandeau-officiel__logo { order: -1; }
  .bandeau-officiel__texte { padding-left: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   Pied officiel — siège et affiliations
   ═══════════════════════════════════════════════════════════════ */

.bandeau-officiel-bas {
  background: #fff;
  border-top: 1px solid var(--bordure);
}

.bandeau-officiel-bas__grille {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gap-md);
  padding-block: var(--gap-md);
}

.bandeau-officiel-bas__logo {
  display: block;
  transition: transform var(--duree) var(--sortie);
}

a.bandeau-officiel-bas__logo:hover { transform: scale(1.05); }

.bandeau-officiel-bas__logo img {
  width: auto;
  height: clamp(72px, 5rem + 1.5vw, 104px);
}

.bandeau-officiel-bas__centre {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
}

.bandeau-officiel-bas__centre p { margin: 0; }

.bandeau-officiel-bas__siege {
  font-weight: 800;
  font-size: var(--texte-lg);
  letter-spacing: 0.04em;
  color: var(--encre-900);
}

.bandeau-officiel-bas__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.25rem;
  font-size: var(--texte-sm);
  color: var(--texte-doux);
}

.bandeau-officiel-bas__contacts a {
  color: var(--encre-900);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.bandeau-officiel-bas__contacts a:hover { color: var(--vert-700); }

.bandeau-officiel-bas__ama img { width: auto; height: 46px; }

@media (max-width: 720px) {
  .bandeau-officiel-bas__grille {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "centre centre"
      "gauche droite";
    justify-items: center;
  }
  .bandeau-officiel-bas__centre { grid-area: centre; }
  .bandeau-officiel-bas__logo:first-child { grid-area: gauche; }
  .bandeau-officiel-bas__logo:last-child  { grid-area: droite; }
}

/* ═══════════════════════════════════════════════════════════════
   Document officiel — liste du bureau sur l'accueil
   ═══════════════════════════════════════════════════════════════ */

/* Fond blanc : sépare la section du papier (mission) au-dessus et du
   papier alterné (actualités) en dessous, sans toucher à leur rythme. */
.document-officiel {
  background: #fff;
  border-block: 1px solid var(--bordure);
}

.document-officiel__grille {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 1rem + 5vw, 5rem);
}

.document-officiel__texte > * + * { margin-top: 1.1rem; }
.document-officiel__texte p:not(.eyebrow) { color: var(--texte-doux); max-width: 50ch; }

.document-officiel__ref {
  font-size: var(--texte-sm);
  font-weight: 600;
  color: var(--vert-700) !important;
}

.document-officiel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: var(--gap-lg) !important;
}

/* La feuille : le document entier, jamais recadré */
.document-officiel__feuille {
  justify-self: center;
  width: 100%;
  max-width: 420px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--radius-sm);
  box-shadow: var(--ombre-lg);
  cursor: zoom-in;
  transition:
    transform var(--duree) var(--sortie),
    box-shadow var(--duree) var(--sortie);
}

.document-officiel__feuille:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(13, 26, 21, 0.08), 0 36px 70px rgba(13, 26, 21, 0.16);
}

.document-officiel__feuille img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
  .document-officiel__grille { grid-template-columns: 1fr; }
  .document-officiel__feuille { max-width: 360px; }
}

/* ── Bandeau de chiffres ───────────────────────────────────────── */
.hero__chiffres {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--papier-alt);
  border-bottom: 1px solid var(--bordure);
}

.chiffre {
  padding: 1.5rem var(--gouttiere);
  border-right: 1px solid var(--bordure);
}
.chiffre:last-child { border-right: none; }

.chiffre__valeur {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem);
  line-height: 1;
  color: var(--rouge-600);
}

.chiffre__label {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--texte-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

@media (max-width: 760px) {
  .hero__chiffres { grid-template-columns: repeat(2, 1fr); }
  .chiffre:nth-child(2) { border-right: none; }
  .chiffre:nth-child(-n + 2) { border-bottom: 1px solid var(--bordure); }
}

/* ═══════════════════════════════════════════════════════════════
   Section mission — texte + image décalée
   ═══════════════════════════════════════════════════════════════ */

.mission {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 1rem + 5vw, 5rem);
}

.mission__texte > * + * { margin-top: 1.15rem; }
.mission__texte p:not(.eyebrow) { color: var(--texte-doux); max-width: 52ch; }

.mission__liste {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  margin-top: var(--gap-md);
}

.mission__liste li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: var(--texte-sm);
}

.mission__liste strong { display: block; color: var(--texte); font-size: var(--texte-base); }
.mission__liste span:last-child { color: var(--texte-doux); }

.mission__puce {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  background: var(--vert-100);
  border: 1px solid var(--vert-200);
  border-radius: 50%;
  color: var(--vert-700);
  font-size: 0.7rem;
  font-weight: 700;
}

.mission__visuel { position: relative; }

.mission__visuel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* Sur mobile le visuel passe en 16/10 : garder les visages, en haut de l'image */
  object-position: center 22%;
  border-radius: var(--radius-md);
  box-shadow: var(--ombre-md);
}

/* Variante carrée : photo de groupe qu'un format vertical rognerait */
.mission__visuel--carre img { aspect-ratio: 1; }

/* Cadre décalé derrière l'image */
.mission__visuel::before {
  content: "";
  position: absolute;
  inset: -18px -18px 18px 18px;
  border: 1px solid var(--vert-200);
  border-radius: var(--radius-md);
  z-index: -1;
}

.mission__badge {
  position: absolute;
  left: -22px;
  bottom: 28px;
  padding: 1rem 1.25rem;
  background: var(--or-500);
  color: var(--encre-900);
  border-radius: var(--radius-sm);
  box-shadow: var(--ombre-md);
  max-width: 210px;
}

.mission__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}

.mission__badge span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .mission { grid-template-columns: 1fr; }
  .mission__visuel { order: -1; }
  .mission__visuel img { aspect-ratio: 16 / 10; }
  .mission__badge { left: auto; right: 16px; bottom: -18px; }
}

/* ═══════════════════════════════════════════════════════════════
   Bande d'appel à l'action — bloc vert profond
   ═══════════════════════════════════════════════════════════════ */

.appel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--vert-900);
  color: var(--sur-fonce);
}

.appel__fond {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.28;
}

.appel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, var(--vert-900) 22%, rgba(4, 38, 27, 0.62) 100%);
}

.appel__grille {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--gap-lg);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

.appel .eyebrow { color: var(--or-500); }
.appel .eyebrow::before { background: var(--or-500); }
.appel h2 { max-width: 18ch; }
.appel p:not(.eyebrow) { margin-top: 0.9rem; max-width: 48ch; color: var(--sur-fonce-doux); }

@media (max-width: 780px) {
  .appel__grille { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   Partenaires
   ═══════════════════════════════════════════════════════════════ */

.partenaires {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.partenaire {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  min-width: 190px;
  padding: 1.15rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  transition:
    border-color var(--duree) var(--sortie),
    box-shadow var(--duree) var(--sortie),
    transform var(--duree) var(--sortie);
}

.partenaire:hover {
  border-color: var(--vert-600);
  box-shadow: var(--ombre-sm);
}

.partenaire strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--texte);
}

.partenaire span {
  font-size: 0.6875rem;
  color: var(--texte-faible);
  line-height: 1.4;
}

/* Tuile portant le logo officiel de l'organisation : l'image remplace
   le sigle en gros caractères, qui redevient une légende. */
.partenaire--logo { min-width: 210px; padding-top: 1rem; }

.partenaire__logo {
  width: auto;
  height: clamp(56px, 4rem + 1vw, 72px);
  object-fit: contain;
}

.partenaire__sigle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--texte);
}

.partenaires-groupe + .partenaires-groupe { margin-top: var(--gap-lg); }

.partenaires-groupe__titre {
  display: flex;
  justify-content: center;
  margin-bottom: var(--gap-md);
}

/* Une organisation peut avoir plusieurs adresses : la tuile n'est donc
   pas un lien, elle en contient. */
.partenaire--liens { padding-bottom: 0.9rem; }

.partenaire__liens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.9rem;
  margin-top: 0.5rem;
}

.partenaire__liens a {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vert-700);
  text-decoration: none;
  white-space: nowrap;
}

.partenaire__liens a:hover { color: var(--rouge-600); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   Galerie
   ═══════════════════════════════════════════════════════════════ */

.mosaique {
  display: grid;
  /* auto-fill et non auto-fit : un album d'une seule photo garde la largeur
     d'une colonne au lieu de s'étirer sur toute la rangée. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0.75rem;
}

.mosaique__item {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--papier-creux);
  border: 1px solid var(--bordure);
  border-radius: var(--radius-sm);
}

/* Une vignette sur trois est plus haute : casse la régularité de la grille */
.mosaique__item:nth-child(3n + 1) { aspect-ratio: 3 / 4; }

.mosaique__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duree-lente) var(--sortie);
}

.mosaique__item:hover img { transform: scale(1.07); }

.mosaique__legende {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.5rem 0.9rem 0.8rem;
  background: linear-gradient(to top, rgba(4, 12, 9, 0.92), transparent);
  color: var(--sur-fonce);
  font-size: var(--texte-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--duree) var(--sortie),
    transform var(--duree) var(--sortie);
}

.mosaique__item:hover .mosaique__legende,
.mosaique__item:focus-visible .mosaique__legende {
  opacity: 1;
  transform: none;
}

/* ── Visionneuse ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: grid;
  place-items: center;
  padding: var(--gouttiere);
  background: rgba(8, 14, 11, 0.93);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__legende {
  margin-top: 1rem;
  text-align: center;
  font-size: var(--texte-sm);
  color: var(--sur-fonce-doux);
}

.lightbox__fermer {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  color: var(--sur-fonce);
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox__fermer:hover { border-color: var(--or-500); color: var(--or-500); }

/* ═══════════════════════════════════════════════════════════════
   En-tête de page interne
   ═══════════════════════════════════════════════════════════════ */

.entete-page {
  position: relative;
  padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem) var(--gap-lg);
  border-bottom: 1px solid var(--bordure);
  background:
    radial-gradient(760px 300px at 8% 0%, rgba(0, 122, 94, 0.1), transparent 68%),
    var(--papier-alt);
}

.entete-page h1 { margin-block: 0.9rem 0.9rem; }
.entete-page p:not(.eyebrow) { max-width: 58ch; color: var(--texte-doux); }

.fil {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--texte-xs);
  color: var(--texte-doux);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fil a { text-decoration: none; }
.fil a:hover { color: var(--vert-700); }

/* ── Filtres de catégorie ──────────────────────────────────────── */
.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: var(--gap-lg);
}

.filtre {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 99px;
  font-size: var(--texte-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texte-doux);
  transition:
    border-color var(--duree-rapide) var(--sortie),
    color var(--duree-rapide) var(--sortie);
}

.filtre:hover { border-color: var(--bordure-forte); color: var(--texte); }

.filtre.est-actif {
  background: var(--encre-900);
  border-color: var(--encre-900);
  color: var(--sur-fonce);
}

/* Renvoi vers les actualités de la fédération internationale */
.encart-ifma {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm) var(--gap-md);
  margin-bottom: var(--gap-lg);
  padding: 1rem 1.25rem;
  background: var(--vert-100);
  border: 1px solid var(--vert-200);
  border-left: 3px solid var(--vert-600);
  border-radius: var(--radius-sm);
}

.encart-ifma span {
  max-width: 62ch;
  font-size: var(--texte-sm);
  color: var(--vert-800);
}

/* ═══════════════════════════════════════════════════════════════
   Article — corps rédactionnel
   ═══════════════════════════════════════════════════════════════ */

.article__media {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--gap-lg);
  box-shadow: var(--ombre-md);
}

.article__media img { width: 100%; height: 100%; object-fit: cover; }

.prose {
  max-width: var(--largeur-texte);
  font-size: var(--texte-lg);
  color: var(--encre-700);
}

.prose > * + * { margin-top: 1.4rem; }

.prose h2,
.prose h3 {
  margin-top: 2.6rem;
  color: var(--texte);
  text-transform: none;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.prose h3 { font-size: var(--texte-xl); }

.prose strong { color: var(--texte); }

.prose em { color: var(--vert-700); font-style: italic; }

.prose ul,
.prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.5rem; }
.prose ul { list-style: none; padding-left: 0; }

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--rouge-600);
}

.prose a { color: var(--vert-700); }

.prose blockquote {
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--rouge-600);
  font-size: var(--texte-xl);
  color: var(--texte);
}

/* Partage */
.partage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--gap-lg);
  padding-top: var(--gap-md);
  border-top: 1px solid var(--bordure);
}

.partage span {
  font-size: var(--texte-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

/* ═══════════════════════════════════════════════════════════════
   Clubs
   ═══════════════════════════════════════════════════════════════ */

.region + .region { margin-top: var(--gap-lg); }

.region__titre {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: var(--gap-md);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--bordure);
}

.region__titre span {
  font-family: var(--font-texte);
  font-size: var(--texte-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--texte-faible);
}

.grille-clubs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--gap-sm);
}

.club {
  padding: 1.2rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--duree) var(--sortie),
    box-shadow var(--duree) var(--sortie);
}

.club:hover { border-color: var(--vert-600); box-shadow: var(--ombre-sm); }

.club__nom { font-size: 1rem; line-height: 1.3; }

.club__ville {
  margin-top: 0.3rem;
  font-size: var(--texte-sm);
  color: var(--rouge-600);
  font-weight: 600;
}

.club__infos {
  margin-top: 0.75rem;
  font-size: var(--texte-sm);
  color: var(--texte-doux);
  font-style: normal;
}
.club__infos > * + * { margin-top: 0.25rem; }
.club__infos a { color: inherit; }

/* ═══════════════════════════════════════════════════════════════
   Pages institutionnelles
   ═══════════════════════════════════════════════════════════════ */

.grille-valeurs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--gap-sm);
}

.valeur {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--ombre-sm);
}

.valeur::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--vert-600);
}

.valeur:nth-child(3n + 2)::before { background: var(--rouge-600); }
.valeur:nth-child(3n)::before { background: var(--or-500); }

.valeur__numero {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--papier-creux);
}

.valeur h3 { margin-block: 0.7rem 0.5rem; font-size: var(--texte-lg); }
.valeur p { font-size: var(--texte-sm); color: var(--texte-doux); }

/* ── Bureau de la fédération ───────────────────────────────────── */
/* Trombinoscope : peu de membres ont une photo, la liste reste donc
   compacte et le monogramme tient la place du portrait manquant. */
.bureau {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 0.5rem var(--gap-md);
  max-width: 1000px;
}

.dirigeant { border-bottom: 1px solid var(--bordure); }

/* Toutes les lignes ont la même forme ; le détail s'ouvre dans une fiche */
.dirigeant__carte {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.75rem;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: inherit;
  font: inherit;
  text-align: left;
}

.dirigeant__carte--cliquable {
  cursor: pointer;
  transition: background-color var(--duree-rapide) var(--sortie);
}

.dirigeant__carte--cliquable:hover { background: var(--papier-alt); }

.dirigeant__voir {
  font-size: var(--texte-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vert-700);
  white-space: nowrap;
}

.dirigeant__voir span {
  display: inline-block;
  transition: transform var(--duree) var(--sortie);
}

.dirigeant__carte--cliquable:hover .dirigeant__voir span { transform: translateX(3px); }

.dirigeant__portrait,
.dirigeant__monogramme {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
}

.dirigeant__monogramme {
  display: grid;
  place-items: center;
  background: var(--vert-100);
  border: 1px solid var(--vert-200);
  color: var(--vert-700);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

/* Anneau discret aux couleurs du drapeau autour des portraits réels */
.dirigeant__portrait {
  border: 2px solid var(--or-500);
  box-shadow: 0 0 0 1px var(--bordure);
}

.dirigeant__corps { display: grid; gap: 0.15rem; min-width: 0; }

.dirigeant__nom {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.dirigeant__fonction {
  font-size: var(--texte-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vert-700);
}

/* ── Fiche détaillée d'un membre (fenêtre modale) ──────────────── */
.fiche {
  /* Le reset « * { margin: 0 } » supprime le margin:auto qui centre
     nativement un <dialog> modal : on le rétablit explicitement. */
  margin: auto;
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--texte);
  box-shadow: var(--ombre-lg);
  overflow: auto;
}

/* display n'est posé qu'à l'ouverture : sinon la fiche fermée s'afficherait */
.fiche[open] {
  display: grid;
  grid-template-columns: 280px 1fr;
  animation: fiche-entree var(--duree) var(--sortie);
}

.fiche::backdrop {
  background: rgba(4, 12, 9, 0.6);
  backdrop-filter: blur(3px);
}

@keyframes fiche-entree {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

/* La page ne défile pas sous une fiche ouverte */
html:has(.fiche[open]) { overflow: hidden; }

.fiche__visuel {
  position: relative;
  min-height: 100%;
  background: var(--papier-creux);
}

.fiche__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.fiche__monogramme {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 260px;
  background: var(--vert-100);
  color: var(--vert-700);
  font-family: var(--font-display);
  font-size: 4.5rem;
}

/* Le triband referme le visuel, comme sur les cartes d'actualité */
.fiche__visuel::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--vert-600) 0 33.33%,
    var(--rouge-600) 33.33% 66.66%,
    var(--or-500) 66.66% 100%
  );
}

.fiche__corps { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

.fiche__nom {
  margin-block: 0.35rem 0.9rem;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  line-height: 1.05;
}

.fiche__bio {
  margin-top: 1.2rem;
  color: var(--texte-doux);
  line-height: 1.7;
}

.fiche__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.fiche__fermer {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--bordure);
  border-radius: 50%;
  color: var(--texte);
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: var(--ombre-sm);
}

.fiche__fermer:hover { color: var(--rouge-600); border-color: var(--rouge-600); }

.fiche__fermer-bas { display: none; margin-top: var(--gap-md); }

@media (max-width: 640px) {
  .fiche__fermer-bas { display: flex; }
  .fiche[open] { grid-template-columns: 1fr; }
  .fiche__visuel { min-height: 0; max-height: 300px; overflow: hidden; }
  .fiche__portrait { height: 300px; }
  .fiche__monogramme { min-height: 160px; font-size: 3.5rem; }
}

/* ── Accordéon FAQ ─────────────────────────────────────────────── */
.faq { max-width: 860px; }

.faq__item {
  border-bottom: 1px solid var(--bordure);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--texte-lg);
  text-transform: uppercase;
  transition: color var(--duree-rapide) var(--sortie);
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--vert-700); }

.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--rouge-600);
  transition: transform var(--duree) var(--sortie);
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__reponse {
  padding-bottom: 1.4rem;
  max-width: var(--largeur-texte);
  color: var(--texte-doux);
}

/* ── Chronologie ───────────────────────────────────────────────── */
.chrono { position: relative; padding-left: 2rem; }

.chrono::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--bordure-forte);
}

.chrono__etape { position: relative; }
.chrono__etape + .chrono__etape { margin-top: var(--gap-md); }

.chrono__etape::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 11px;
  height: 11px;
  background: var(--rouge-600);
  border-radius: 50%;
}

.chrono__annee {
  font-family: var(--font-display);
  font-size: var(--texte-lg);
  color: var(--vert-700);
}

.chrono__etape p { font-size: var(--texte-sm); color: var(--texte-doux); max-width: 56ch; }

/* Sur un panneau vert */
.panneau--vert .chrono::before { background: rgba(255, 255, 255, 0.24); }
.panneau--vert .chrono__etape::before { background: var(--or-500); }
.panneau--vert .chrono__annee { color: var(--or-500); }
.panneau--vert .chrono__etape p { color: var(--sur-fonce-doux); }

/* ═══════════════════════════════════════════════════════════════
   Formulaires en deux colonnes
   ═══════════════════════════════════════════════════════════════ */

.duo-formulaire {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

.panneau {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--radius-md);
  box-shadow: var(--ombre-sm);
}

.panneau--vert {
  /* Bordures claires sur ce fond sombre : la variable est redéfinie ici,
     y compris pour les séparateurs stylés en ligne qui s'en servent. */
  --bordure: rgba(255, 255, 255, 0.18);
  --bordure-forte: rgba(255, 255, 255, 0.32);
  background: var(--vert-900);
  border-color: transparent;
  color: var(--sur-fonce);
}

.panneau h3 { margin-bottom: 0.9rem; }
.panneau p:not(.eyebrow) { font-size: var(--texte-sm); color: var(--texte-doux); }
.panneau--vert p:not(.eyebrow) { color: var(--sur-fonce-doux); }
.panneau--vert .eyebrow { color: var(--or-500); }
.panneau--vert .eyebrow::before { background: var(--or-500); }
.panneau--vert a { color: var(--or-500); }
.panneau--vert .champ__aide { color: rgba(244, 247, 245, 0.6); }

@media (max-width: 900px) {
  .duo-formulaire { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   Pages d'erreur
   ═══════════════════════════════════════════════════════════════ */

.erreur {
  display: grid;
  place-items: center;
  min-height: 70vh;
  text-align: center;
  padding: var(--section) var(--gouttiere);
}

.erreur__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 14vw, 12rem);
  line-height: 0.85;
  color: var(--papier-creux);
}

.erreur h1 { margin-block: 1rem 0.75rem; }
.erreur p { color: var(--texte-doux); max-width: 46ch; margin-inline: auto; }
.erreur .btn { margin-top: var(--gap-md); }
