/*
 * Charte reprise du template Gantry 5 "Helium" du site d'origine
 * (templates/g5_helium/custom/config/17 et 18) :
 *   texte #304e59 · navigation #f08441 · pages intérieures #66aa58
 *   accueil : « l'essentiel » #86bc7b · « les services » #e9d87a
 *   accent #02a4e0 · pied #304e59
 *   Montserrat (courant) + Roboto Slab (titres) + Bungee (titres de bloc)
 *   + Dancing Script (accroche du bandeau)
 */

/* Les familles étaient chargées depuis Google Fonts par Gantry.
   La règle @import doit rester la toute première du fichier. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto+Slab:wght@300;400&family=Bungee&family=Dancing+Script:wght@700&display=swap');

:root {
  --texte:      #304e59;
  --orange:     #f08441;
  --vert:       #66aa58;
  --vert-clair: #86bc7b;
  --jaune:      #e9d87a;
  --bleu:       #02a4e0;
  --violet:     #8f4dae;
  --gris-fond:  #f4f5f7;
  --bordure:    #dfe3e6;
  --largeur:    80rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--texte);
  background: #fff;
}

h1, h2, h3, h4 { font-family: "Roboto Slab", Georgia, serif; font-weight: 300; line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 1rem; }

/* Titre de page et titre de bloc : le libellé en Bungee au centre, encadré de
   deux filets. C'est la mise en forme que le site d'origine donne à tous ses
   titres (règle `h2` de son custom.scss), aussi bien sur l'accueil que sur les
   pages intérieures. */
.titre-bloc, .contenu h1 {
  display: flex; align-items: center; gap: 1.25rem;
  font-family: Bungee, "Roboto Slab", Georgia, serif; font-weight: 400;
  line-height: 1.3; text-align: center;
}
.titre-bloc::before, .titre-bloc::after,
.contenu h1::before, .contenu h1::after {
  content: ''; flex: 1; height: 1px; background: currentColor; opacity: .45;
}
.titre-bloc { font-size: clamp(1.15rem, 2.2vw, 1.6rem); margin: 3rem 0 2.5rem; }
.contenu h1 { font-size: clamp(1.3rem, 2.6vw, 2rem); margin: 2.5rem 0 2.5rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .75rem; }

a { color: var(--bleu); text-decoration: none; }
a:hover { color: var(--texte); text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #111; outline-offset: 3px;
}

.evitement {
  position: fixed; z-index: 1000; top: .5rem; left: .5rem;
  padding: .65rem 1rem; background: #fff; color: #111;
  border: 2px solid #111; border-radius: 3px;
  transform: translateY(-160%);
}
.evitement:focus { transform: translateY(0); }

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

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 1.25rem; }

/* ------------------------------------------------------- barre d'administration */

/* Réservée à l'administrateur connecté. Fixée en haut de l'écran, dans un gris
   sombre qui ne ressemble à rien du site : on doit voir d'un coup d'œil que ce
   bandeau n'appartient pas à la page publique. Le corps est décalé d'autant. */

.barre-admin {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #2b3440; color: #fff;
  font-size: .85rem; line-height: 1.4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.barre-admin-interieur {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: .45rem; padding-bottom: .45rem;
}
.barre-admin-etat { opacity: .75; }
.barre-admin-actions { display: flex; align-items: center; gap: 1rem; }
.barre-admin a { color: #fff; }
.barre-admin a:hover { color: #fff; text-decoration: underline; }

.barre-admin-bouton {
  background: var(--orange); border-radius: 3px;
  padding: .25rem .8rem; font-weight: 600;
}
.barre-admin-bouton:hover { background: #d9722f; text-decoration: none; }

/* La barre est fixe : sans ce décalage elle couvrirait le haut de l'en-tête. */
body.avec-barre-admin { padding-top: 2.4rem; }

/* --------------------------------------------------- en-tête et navigation */
/* Le logo est blanc : il partage le bandeau orange avec le menu, comme en ligne. */

.entete { background: var(--orange); }
.entete-interieur {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem; padding-block: 1rem;
}
.logo img { max-height: 100px; width: auto; display: block; }
.menu-bouton {
  display: none; margin-left: auto; background: none; border: 0;
  font-size: 1.75rem; color: #fff; cursor: pointer;
}

/* Le menu occupe la place restante et s'y centre, en passant à la ligne
   quand les rubriques ne tiennent pas — comme le menu du site d'origine. */
.navigation { flex: 1; }
.nav-liste {
  display: flex; flex-wrap: wrap; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-liste > li { position: relative; }
.nav-liste > li > a {
  display: block; padding: .35rem .9rem;
  font-family: "Roboto Slab", Georgia, serif; font-size: 1.15rem; font-weight: 400;
  color: #fff;
}
.nav-liste > li > a:hover { background: rgba(0, 0, 0, .12); color: #fff; text-decoration: none; }
.a-sous-menu > a::after { content: " ▾"; font-size: .8em; }

/* Le déroulant du site d'origine : panneau bleu ardoise, liens blancs séparés
   d'un filet, survol en bleu clair (custom_18.css et helium_18.css). */
.sous-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 20;
  width: 220px; margin: 0; padding: 0 .9rem;
  list-style: none; background: #345460;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: .25rem;
}
.a-sous-menu:hover .sous-menu, .a-sous-menu:focus-within .sous-menu { display: block; }
.sous-menu li:not(:last-child) { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.sous-menu a {
  display: block; padding: .47rem 0; color: #fff;
  font-family: "Roboto Slab", Georgia, serif; font-size: 1.05rem; line-height: 1.3;
}
.sous-menu a:hover { color: var(--bleu); text-decoration: none; }

/* ------------------------------------------------------------------ contenu */

/* Le contenu des pages intérieures se lit sur 1024 px au plus, plus étroit que
   l'en-tête et le pied. L'accueil, lui, garde ses bandes pleine largeur. */
.conteneur.contenu { max-width: 1024px; padding: 2rem 1.25rem 3rem; }

/* Fil d'Ariane : une bande jaune pleine largeur sous le menu, comme la section
   « expanded » qui le portait dans le site d'origine. */
.fil-ariane { background: var(--jaune); color: var(--texte); }
.fil-ariane ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  max-width: 1024px; margin: 0 auto; padding: 1rem 1.25rem;
  list-style: none; font-size: .95rem;
}
.fil-ariane li { display: flex; align-items: center; gap: .5rem; }
.fil-ariane a { color: var(--texte); }
.fil-separateur { color: var(--texte); opacity: .7; }

.intro { background: var(--vert); color: var(--texte); padding: 2rem 0; margin-bottom: 2rem; }
.intro h1 { margin: 0; }

.corps :is(table) { border-collapse: collapse; max-width: 100%; }
.corps :is(td, th) { border: 1px solid var(--bordure); padding: .5rem .75rem; vertical-align: top; }
.corps img { height: auto; }
.corps iframe { max-width: 100%; }
.corps > :first-child { margin-top: 0; }
.corps > :last-child { margin-bottom: 0; }
.corps p { margin-block: 0 1rem; }
.corps :is(ul, ol) { padding-left: 1.5rem; }
.corps li + li { margin-top: .3rem; }
.corps a { overflow-wrap: anywhere; }
.corps table {
  display: block; width: max-content; min-width: 100%; height: auto !important;
  overflow-x: auto;
  margin-block: 1.5rem; -webkit-overflow-scrolling: touch;
}
.corps :is(blockquote) {
  margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem;
  border-left: 4px solid var(--vert); color: #526872;
}

/* -------------------------------------------------------------------- listes */

/*
 * Grille en maçonnerie : chaque carte s'arrête à sa hauteur propre, la suivante
 * vient s'y coller. Les descriptifs des guides vont d'une ligne à dix ; alignés
 * sur la plus haute de leur rangée, ils laissaient de grands vides.
 *
 * Colonnes CSS et non `grid-template-rows: masonry`, que les navigateurs ne
 * savent pas encore lire. Contrepartie : la lecture suit les colonnes, de haut
 * en bas, et non les rangées — l'ordre alphabétique se parcourt donc colonne
 * par colonne.
 */
.grille {
  columns: 3 240px; column-gap: 1.5rem;
  list-style: none; margin: 2rem 0 0; padding: 0;
}
.carte {
  /* `inline-flex` et non `flex` : dans une colonne, un bloc se laisse couper
     malgré `break-inside`, un élément en ligne beaucoup moins. */
  display: inline-flex; flex-direction: column; width: 100%;
  margin-bottom: 1.5rem; overflow: hidden;
  border: 1px solid var(--bordure); border-radius: 12px; background: #fff;
  transition: box-shadow .15s, transform .15s;
  break-inside: avoid; -webkit-column-break-inside: avoid;
}
.carte:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .1); transform: translateY(-2px); }
/* Le visuel est encastré dans la carte : ses coins hauts suivent l'arrondi,
   que `overflow: hidden` seul ne rogne pas toujours proprement. */
.carte-visuel {
  aspect-ratio: 4 / 3; background: var(--gris-fond); overflow: hidden;
  border-radius: 11px 11px 0 0;
}
.carte-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carte-texte { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
/* Le nom de l'association ou du moniteur reprend la police du titre de page —
   Bungee, celle des titres du site d'origine — et gagne en corps : c'est lui
   qu'on cherche en parcourant la liste. Sans les filets latéraux du h1, qui
   n'ont de sens qu'en tête de page. */
.carte-titre {
  margin: 0 0 .5rem;
  font-family: Bungee, "Roboto Slab", Georgia, serif; font-weight: 400;
  font-size: 1.3rem; line-height: 1.3;
  color: var(--bleu);
}
/* Le titre est bleu, qu'il mène quelque part ou non : sur la liste des guides
   il n'est pas cliquable, et une carte à l'autre ne doit pas changer de teinte. */
.carte-titre a { color: inherit; }
.carte-titre a:hover { color: var(--texte); text-decoration: none; }
/* Plus de `flex: 1` : le résumé ne pousse plus le bas de carte vers le pied
   d'une rangée qui n'existe plus. */
.carte-resume { margin: 0; font-size: .88rem; color: #5c6b74; }
.carte-lien { margin-top: .75rem; font-size: .85rem; font-weight: 600; }

.etiquettes { display: flex; flex-wrap: wrap; gap: .3rem; margin: .6rem 0 0; padding: 0; list-style: none; }
/* Pastilles au trait : un contour arrondi, sans aplat de couleur. Elles se
   posent ainsi sur n'importe quel fond — carte blanche ou bande grise — sans
   alourdir la page, nombreuses comme elles le sont sur une fiche de guide. */
.etiquette {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .02em;
  color: var(--texte); padding: .15rem .55rem;
  border: 1px solid var(--bordure); border-radius: 50px;
}
/* Quand l'étiquette porte un lien, c'est lui qui prend le remplissage : la
   pastille entière devient cliquable, et non son seul texte. */
.etiquette:has(a) { padding: 0; }
.etiquette a { display: block; padding: .15rem .55rem; color: var(--texte); }
.etiquette a:hover { text-decoration: none; }

/* Sur une fiche AAPPMA, les catégories précèdent directement le descriptif. */
.fiche-aappma > .etiquettes { margin-bottom: 1.5rem; }
.fiche-aappma > .corps > table:first-of-type img {
  width: 3rem !important; max-width: 100%;
}

/* ------------------------------------------- filtre par tag d'un module */
/* Une liste de liens, « Tous » en tête, comme sur le site d'origine. Chaque
   filtre a son adresse : elle se partage, se met en favori, et la page reste
   utilisable sans JavaScript. */

.filtre-tags { margin: 1.75rem 0 0; }
.filtre-tags .etiquettes { gap: .35rem; margin: 0; }
.filtre-tags .etiquette:hover { border-color: var(--texte); }

/* Le filtre en cours : contour plein et texte gras. Sans aplat, ce sont eux qui
   doivent le distinguer — et le gras s'ajoute à la couleur, qui ne saurait
   porter seule l'information. */
.filtre-tags .etiquette-active { border-color: var(--texte); }
.filtre-tags .etiquette-active a { font-weight: 600; }

.filtre-vide { margin: 1.5rem 0 0; color: #5c6b74; }

/* Sur une carte, l'étiquette du tag filtré rappelle pourquoi la fiche est là. */
.carte .etiquette-active { border-color: var(--texte); }
.carte .etiquette-active a { font-weight: 600; }

/* ------------------------------------------------------- cartes de pêche */
/* Une fiche par carte, en grille de trois : c'est la présentation du module
   « Tables » du site d'origine — visuel, descriptif, tarif détaché, achat. */

.titre-cartes { margin: 2.5rem 0 1rem; font-size: 1.4rem; }

/* Trois par ligne, comme le module d'origine. */
.cartes {
  display: grid; gap: 1.25rem; list-style: none; margin: 0 0 2.5rem; padding: 0;
  grid-template-columns: repeat(3, 1fr); align-items: start;
}
.carte-tarif {
  border: 1px solid var(--bordure); background: #fff; text-align: center;
  overflow: hidden;
}
.carte-tarif > * { margin: 0; }
.carte-tarif-visuel { display: block; width: 100%; }
.carte-tarif-texte { padding: 1rem .9rem; font-size: .88rem; }
.carte-tarif-prix {
  padding: .8rem .9rem; border-block: 1px solid var(--bordure);
  background: var(--gris-fond); font-size: 1.9rem; font-weight: 300; white-space: nowrap;
}
.carte-tarif-complement { padding: .8rem .9rem; font-size: .85rem; }
.carte-tarif-lien { padding: .8rem .9rem; }
.bouton-achat {
  display: inline-block; padding: .35rem 1rem; border-radius: 3px;
  background: #8a949a; color: #fff; font-size: .82rem;
}
.bouton-achat:hover { background: var(--texte); color: #fff; text-decoration: none; }

.bouton {
  display: inline-block; padding: .5rem 1rem; border-radius: 3px;
  background: var(--orange); color: #fff; font-size: .85rem; font-weight: 600;
}
.bouton:hover { background: var(--texte); color: #fff; text-decoration: none; }

/* -------------------------------------------------------------------- blog */

.articles { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.article-ligne { display: flex; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--bordure); }
.article-visuel { flex: 0 0 200px; }
.article-visuel img { width: 200px; height: 130px; object-fit: cover; border-radius: 3px; }
.article-ligne h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.article-ligne h2 a { color: var(--texte); }
.date { font-size: .8rem; color: #6b7a83; text-transform: uppercase; letter-spacing: .03em; }

.actions-actualites { margin: 2rem 0 0; text-align: center; }
.bouton-afficher-plus {
  min-height: 44px; padding: .7rem 1.5rem; border: 0; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 600;
}

/* ----------------------------------------------------------------- onglets */

.onglet { border: 1px solid var(--bordure); border-radius: 4px; margin-bottom: .75rem; }
.onglet > summary {
  padding: .9rem 1.1rem; cursor: pointer; font-weight: 600;
  background: var(--gris-fond); border-radius: 4px;
}
.onglet[open] > summary { border-bottom: 1px solid var(--bordure); border-radius: 4px 4px 0 0; }
.onglet-corps { padding: 1rem 1.1rem; }

/* -------------------------------------------------------------- partage */

.partage {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .75rem 1.25rem; margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--bordure);
}
.partage-titre { margin: 0; font-weight: 600; }
.partage-liens { display: flex; flex-wrap: wrap; gap: .65rem; }
.partage-bouton {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 42px; padding: .45rem .9rem; border-radius: 3px;
  color: #fff; font-size: .85rem; font-weight: 600;
  transition: filter .15s, transform .15s;
}
.partage-bouton:hover {
  color: #fff; text-decoration: none; filter: brightness(.86);
  transform: translateY(-1px);
}
.partage-facebook { background: #1877f2; }
.partage-x { background: #111; }
.partage-icone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15rem; height: 1.15rem; font-size: 1rem; font-weight: 700;
  line-height: 1;
}

/* ---------------------------------------------------------------- galeries */

.photos { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); list-style: none; padding: 0; }
.photos figure { margin: 0; }
.photos figcaption { margin-top: .35rem; font-size: .8rem; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; display: block; cursor: zoom-in; }

/* --------------------------------------------------------- visionneuse photo */

/* Empêche le fond de défiler pendant que la visionneuse est ouverte. */
body.visionneuse-ouverte { overflow: hidden; }
.visionneuse {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .9);
  display: flex; align-items: center; justify-content: center; padding: 3rem 1rem;
}
.visionneuse-figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.visionneuse-image { max-width: 100%; max-height: calc(100vh - 8rem); display: block; margin: 0 auto; }
.visionneuse-legende { color: #fff; margin-top: .75rem; font-size: .9rem; }
.visionneuse-compte {
  position: absolute; left: 0; right: 0; bottom: 1rem; margin: 0;
  text-align: center; color: rgba(255, 255, 255, .8); font-size: .8rem;
}
.visionneuse-fermer {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.3rem; cursor: pointer;
}
.visionneuse-precedent, .visionneuse-suivant {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.7rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.visionneuse-precedent { left: 1rem; }
.visionneuse-suivant { right: 1rem; }
.visionneuse-fermer:hover, .visionneuse-precedent:hover, .visionneuse-suivant:hover {
  background: rgba(255, 255, 255, .3);
}

/* -------------------------------------------------------------------- pied */

.pied { background: var(--texte); color: #fff; }
.pied a { color: #fff; }
.pied-haut { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding-top: 2rem; }
.pied-logo img { max-height: 90px; width: auto; display: block; }
.pied-nom { font-family: "Roboto Slab", serif; margin: 0 0 .5rem; }
.pied-adresse { margin: 0; font-size: .85rem; opacity: .85; }
.pied-bas {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  padding: 1.5rem 0 2rem; margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .2); font-size: .85rem;
}
.pied-liens { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ================================================================== accueil */
/* Reprise de la page d'origine : une suite de bandes pleine largeur. */

.contenu-large { display: block; }
.bloc { padding: 0 0 3.5rem; }
/* Le padding retient la marge du titre, qui sans lui s'échapperait du bloc et
   collerait le titre au bord du vert. */
.bloc-essentiel { background: var(--vert-clair); padding-top: 1rem; }
.bloc-services  { background: var(--jaune); }

/* ------------------------------------------------------- bandeau défilant */

.bandeau { position: relative; overflow: hidden; }
/* Glissement horizontal comme l'Owl Carousel du site d'origine, plutôt qu'un
   changement brutal : les vues sont côte à côte, la piste se translate. */
.bandeau-piste { display: flex; transition: transform .6s ease; }
.bandeau-vue { flex: 0 0 100%; position: relative; }
/* Les visuels d'origine font 1690 × 584 : au-delà de ~500 px de haut, le
   recadrage rogne le ciel et l'eau, ce que « cover » fait proprement. */
.bandeau-vue img {
  display: block; width: 100%; height: clamp(340px, 45vw, 620px); object-fit: cover;
}
/* Le voile bleu ardoise du carrousel d'origine, pour lire le texte en blanc. */
.bandeau-vue::after { content: ''; position: absolute; inset: 0; background: var(--texte); opacity: .6; }
.bandeau-texte {
  position: absolute; inset: 0; z-index: 2; padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
}
.bandeau-titre {
  margin: 0; font-family: "Dancing Script", cursive; font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.1;
}
.bandeau-legende {
  margin: .75rem 0 0; max-width: 40ch;
  font-family: "Roboto Slab", Georgia, serif; font-size: clamp(1rem, 2vw, 1.45rem);
}
/* Une vue peut mener quelque part : le texte devient cliquable, sans changer
   d'aspect — c'est l'image entière qui se lit comme un lien. */
.bandeau-lien { color: inherit; text-decoration: none; }
.bandeau-lien:hover { color: inherit; text-decoration: underline; }
/* Flèches précédent/suivant, comme le carrousel du site d'origine — plutôt
   que des puces, qui n'y figurent pas. */
.bandeau-nav {
  position: absolute; z-index: 3; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 .75rem; pointer-events: none;
}
.bandeau-nav button {
  pointer-events: auto; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.bandeau-nav button:hover { background: rgba(0, 0, 0, .55); }
.bandeau-pause {
  position: absolute; z-index: 3; right: .75rem; bottom: .75rem;
  padding: .2rem .65rem; border: 0; border-radius: 3px; background: #fff; color: var(--texte);
  font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer;
}

/* ------------------------------------------------- dernières actualités */

.vitrine {
  display: grid; gap: 1.75rem; list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
/* Les visuels d'actualité sont des affiches : on les montre en entier,
   sans recadrage, comme le site d'origine. */
.vitrine-visuel img { display: block; width: 100%; height: auto; }
.vitrine-titre { margin: .9rem 0 .4rem; font-size: 1.15rem; }
.vitrine-texte { margin: 0; font-size: .9rem; }

.pastilles { display: flex; flex-wrap: wrap; gap: 4rem; justify-content: center; margin: 2.5rem 0 0; }
.pastille {
  border: 1px solid var(--bleu); border-radius: 5rem; padding: 1.1rem 3rem;
  font-size: .85rem; text-transform: uppercase; letter-spacing: .1rem;
  transition: background .2s, color .2s;
}
.pastille:hover { background: var(--bleu); color: #fff; text-decoration: none; }

/* --------------------------------------------------------- l'essentiel */

.pictos {
  display: grid; gap: 2rem; list-style: none; margin: 0; padding: 0; text-align: center;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pictos a { display: block; color: var(--texte); }
.pictos a:hover { text-decoration: none; }
.pictos img { max-height: 130px; width: auto; }
.picto-titre {
  display: block; margin-top: .75rem;
  font-family: "Roboto Slab", Georgia, serif; font-size: 1.35rem;
}

/* ------------------------------------------------------------- en image */

.paves { background: var(--texte); color: #fff; }
.pave { display: grid; grid-template-columns: 1fr 1fr; }
.pave-inverse .pave-visuel { order: 2; }
.pave-visuel img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.pave-texte { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem; }
/* L'étiquette est une pastille bleue, comme sur les « cubes » d'origine. */
.pave-etiquette { margin: 0 0 .9rem; }
.pave-etiquette span {
  display: inline-block; padding: .15rem .7rem; border-radius: 3px;
  background: var(--bleu); color: #fff; font-size: .8rem;
}
.pave-accroche { margin: 0; font-size: 1.05rem; line-height: 1.45; font-weight: 600; }
.pave-accroche a { color: #fff; }
.fleche { display: inline-block; transition: transform .15s; }
.pave-accroche a:hover .fleche { transform: translateX(.3rem); }

/* --------------------------------------------- services et offre junior */

.colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }

.bandes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.bande-visuel img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bande-titre { margin: .9rem 0 .4rem; font-size: 1.1rem; }
.bande-texte { margin: 0 0 .6rem; font-size: .88rem; }
.bande p:last-child { margin: 0; font-size: .88rem; }

/* ----------------------------------------------- revue et presse fédérale */

.revue-avant { max-width: 320px; margin: 0 auto; text-align: center; }
.revue-liseuse iframe { width: 100%; max-width: 280px; height: 600px; border: 0; }
.revue-legende { font-family: "Roboto Slab", Georgia, serif; margin: 1rem 0 .25rem; }
.generation { text-align: center; }
.generation img { max-width: 268px; }
.generation .etiquettes { justify-content: center; }

/* ----------------------------------------------------------- plan du site */

/* Deux niveaux : les rubriques et ce qu'elles ouvrent. Le rang se lit à la
   taille et au retrait plutôt qu'à des puces. Les rubriques se répartissent en
   colonnes, la page tenant ainsi sans défilement inutile. */

.plan-du-site .plan-niveau { list-style: none; margin: 0; padding: 0; }

.plan-niveau-0 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem 2.5rem;
}
.plan-niveau-0 > li { break-inside: avoid; }

/* Rubrique de tête : elle porte le nom d'une section, lien ou non. */
.plan-niveau-0 > li > a,
.plan-niveau-0 > li > .plan-rubrique {
  display: block;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 1.15rem;
  color: var(--texte);
  padding-bottom: .4rem;
  margin-bottom: .6rem;
  border-bottom: 2px solid var(--orange);
}
.plan-niveau-0 > li > a:hover { color: var(--bleu); text-decoration: none; }

.plan-niveau-1 > li { margin-bottom: .4rem; }

.plan-rubrique { color: var(--texte); }

/* ------------------------------------------------------------------ mobile */

@media (max-width: 60rem) {
  .menu-bouton { display: block; }
  .navigation { flex: 0 0 100%; }
  .nav-liste { display: none; flex-direction: column; padding-bottom: .5rem; }
  .navigation.ouvert .nav-liste { display: flex; }
  .sous-menu { position: static; display: block; width: auto; padding: 0; border: 0; background: transparent; }
  .sous-menu li:not(:last-child) { border: 0; }
  .sous-menu a { color: #fff; padding-left: 2rem; }
  .sous-menu a:hover { background: rgba(0, 0, 0, .12); color: #fff; }
  .article-ligne { flex-direction: column; }
  .article-visuel, .article-visuel img { width: 100%; flex: none; }
  .colonnes, .bandes, .pave { grid-template-columns: 1fr; }
  .cartes { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .pave-inverse .pave-visuel { order: 0; }
  .pave-texte { padding: 1.75rem 1.25rem; }

  /* Les 25 fiches AAPPMA partagent un ancien tableau Joomla en 3 colonnes.
     Sur petit écran, rapprocher chaque intitulé de son contenu est beaucoup
     plus lisible qu'une succession de colonnes de quelques caractères. */
  .fiche-aappma > .corps > table:first-of-type {
    display: block; width: 100% !important; min-width: 0;
    background: transparent !important;
  }
  .fiche-aappma > .corps > table:first-of-type > tbody {
    display: flex; flex-direction: column;
  }
  .fiche-aappma > .corps > table:first-of-type > tbody > tr { display: contents; }
  .fiche-aappma > .corps > table:first-of-type td {
    display: block; width: auto !important; background: #fff;
  }
  .fiche-aappma > .corps > table:first-of-type tr:first-child td {
    padding-block: .75rem; background: #f0f0f0;
  }
  .fiche-aappma > .corps > table:first-of-type tr:first-child :is(h2, h3) {
    margin: 0; font-size: 1.1rem;
  }
  .fiche-aappma > .corps > table:first-of-type tr:first-child td:nth-child(1) { order: 1; }
  .fiche-aappma > .corps > table:first-of-type tr:nth-child(2) td:nth-child(1) { order: 2; }
  .fiche-aappma > .corps > table:first-of-type tr:first-child td:nth-child(2) { order: 3; }
  .fiche-aappma > .corps > table:first-of-type tr:nth-child(2) td:nth-child(2) { order: 4; }
  .fiche-aappma > .corps > table:first-of-type tr:first-child td:nth-child(3) { order: 5; }
  .fiche-aappma > .corps > table:first-of-type tr:nth-child(2) td:nth-child(3) { order: 6; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
