/* ==========================================================================
   Amitié Information
   Reprend le design de l'ancien site (terracotta, bleu, Poppins, bandeau photo, cartes d'activités),
   avec des textes plus grands et des contrastes suffisants : corps à 18 px, texte blanc sur terracotta
   seulement en gras à 19 px ou plus, texte foncé sur le saumon et sur les pastilles de couleur.
   ========================================================================== */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
	/* Couleurs de l'ancien site. */
	--terracotta: #db6b5a;
	--terracotta-fonce: #b9503f; /* bas de page : texte blanc courant lisible (4,9:1) */
	--saumon: #f29788;
	--bleu: #0345bf;
	--bleu-fonce: #02338e;
	--encre: #252525;
	--encre-douce: #4d4d4d;
	--papier: #ffffff;
	--gris: #f5f5f5;
	--gris-clair: #f8f8f8;
	--bord: #e4e4e4;

	/* Couleurs des catégories de l'ancien agenda, toujours avec un texte foncé. */
	--visites: #2aa84a;
	--randonnees: #ed8a11;
	--escapades: #03bcff;
	--voyages: #ffd60a;

	--texte: "Poppins", "Segoe UI", system-ui, sans-serif;
	--affiche: "Oswald", "Arial Narrow", sans-serif;
	--rayon: 4px;
	--pilule: 999px;
	--largeur: 82.5rem; /* 1320 px, comme l'ancien gabarit */
	--ombre: 0 6px 22px rgba(0, 0, 0, .09);
}

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

body {
	margin: 0;
	font-family: var(--texte);
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--encre);
	background: var(--papier);
	-webkit-text-size-adjust: 100%;
}

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

h1, h2, h3 {
	font-family: var(--texte);
	font-weight: 700;
	line-height: 1.25;
	color: var(--encre);
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 1.5em 0 .6em; }
h3 { font-size: 1.35rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }

a { color: var(--bleu); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--bleu-fonce); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 2px; }

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

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.evitement { position: absolute; left: -999rem; top: .5rem; z-index: 200; background: var(--papier); padding: .6rem 1rem; border: 2px solid var(--bleu); }
.evitement:focus { left: 1rem; }

/* ---------- Boutons : pilules bleues comme sur l'ancien site ---------- */

.bouton,
.contenu-libre .wp-block-button__link,
.contenu-libre .wp-block-file__button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 52px; padding: .75rem 1.9rem;
	border: 2px solid var(--bleu); border-radius: var(--pilule);
	background: var(--bleu); color: #fff;
	font-family: var(--texte); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; text-decoration: none; text-align: center;
	transition: background-color .2s, border-color .2s;
}
.bouton:hover,
.contenu-libre .wp-block-button__link:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; }
.bouton--majuscules { text-transform: uppercase; letter-spacing: .06em; }
.bouton--contour { background: transparent; color: var(--bleu); }
.bouton--contour:hover { background: var(--bleu); color: #fff; }
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

.agenda-suite { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 1.1rem 0 0; font-weight: 600; }

/* ---------- Barre du haut et en-tête terracotta ---------- */

.bandeau-contact { background: var(--terracotta); color: #fff; font-size: 1.1875rem; font-weight: 700; }
.bandeau-contact .cadre { display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem 2rem; padding-block: .5rem; }
.bandeau-contact a { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; }
.bandeau-contact a:hover { text-decoration: underline; color: #fff; }
.bandeau-contact svg { width: 1.05em; height: 1.05em; flex: none; fill: currentColor; }
.bandeau-contact__court { display: none; }
@media (max-width: 560px) {
	/* L'adresse e-mail ne tient pas sur un téléphone en 19 px gras : on garde le lien, avec un libellé court. */
	.bandeau-contact__long { display: none; }
	.bandeau-contact__court { display: inline; }
}

.entete {
	position: sticky; top: 0; z-index: 100;
	background: var(--terracotta);
	border-top: 1px solid rgba(255, 255, 255, .18);
	transition: background-color .3s, box-shadow .3s;
}
/* Comme sur l'ancien site, l'en-tête devient noir quand on fait défiler la page. */
.entete--defile { background: #000; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.admin-bar .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete { top: 0; } }

.entete__interieur { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 5.25rem; }
.marque { display: block; flex: none; line-height: 0; }
.marque img { width: 250px; height: auto; }

.navigation .menu { list-style: none; margin: 0; padding: 0; }
.navigation .menu > li { position: relative; }
.navigation .menu > li > a {
	display: flex; align-items: center; gap: .35rem; min-height: 5.25rem; padding: 0 .55rem;
	color: #fff; font-size: 1.1875rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.navigation .menu > li > a:hover { text-decoration: underline; text-underline-offset: .3em; }
.navigation .menu > .menu-item-has-children > a::after {
	content: ""; width: .45em; height: .45em; margin-left: .2rem; margin-top: -.2em;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.navigation .menu > .current-menu-item > a,
.navigation .menu > .current-menu-ancestor > a,
.navigation .menu > .current-menu-parent > a { box-shadow: inset 0 -4px 0 #fff; }

.navigation .sub-menu {
	list-style: none; margin: 0; padding: .5rem 0;
	background: var(--papier); box-shadow: var(--ombre); border-top: 3px solid var(--terracotta);
}
.navigation .sub-menu a { display: block; padding: .55rem 1.25rem; color: var(--encre); font-size: 1.0625rem; font-weight: 500; text-decoration: none; }
.navigation .sub-menu a:hover,
.navigation .sub-menu .current-menu-item > a { color: var(--bleu); text-decoration: underline; }

.nav-bouton { display: none; }
.sous-menu-bouton { display: none; }

@media (min-width: 1300px) {
	.navigation .menu { display: flex; align-items: stretch; }
	/* Le logo ramène déjà à l'accueil : l'entrée « Accueil » ne reste que dans le menu du téléphone. */
	.navigation .menu-accueil { display: none; }
	.navigation .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 17rem; z-index: 10;
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
	}
	.navigation .menu > li:hover > .sub-menu,
	.navigation .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.navigation .menu > li:last-child .sub-menu,
	.navigation .menu > li:nth-last-child(2) .sub-menu { left: auto; right: 0; }
}

/* Téléphone et tablette : bouton « Menu », panneau saumon comme l'ancien menu latéral. */
@media (max-width: 1299px) {
	.entete__interieur { flex-wrap: wrap; min-height: 4.5rem; padding-block: .6rem; }
	.marque img { width: 200px; }
	.nav-bouton {
		display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1rem;
		font: inherit; font-size: 1.1875rem; font-weight: 700; color: #fff; background: transparent;
		border: 2px solid #fff; border-radius: var(--rayon); cursor: pointer;
	}
	.nav-bouton__barres { display: grid; gap: 4px; }
	.nav-bouton__barres span { display: block; width: 22px; height: 2px; background: currentColor; }
	.navigation { flex-basis: calc(100% + 2.5rem); margin-inline: -1.25rem; background: var(--saumon); }
	.js .navigation { display: none; }
	.js .navigation.ouverte { display: block; }
	.navigation .menu { padding: .4rem 0 1rem; }
	.navigation .menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(37, 37, 37, .15); }
	.navigation .menu > li > a { flex: 1; min-height: 3.4rem; padding: 0 1.25rem; color: var(--encre); }
	.navigation .menu > .menu-item-has-children > a::after { display: none; }
	.navigation .menu > .current-menu-item > a,
	.navigation .menu > .current-menu-ancestor > a { box-shadow: inset 5px 0 0 var(--encre); }
	.sous-menu-bouton {
		display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-right: .5rem;
		background: transparent; border: 0; color: var(--encre); cursor: pointer;
	}
	.sous-menu-bouton::before { content: ""; width: .6rem; height: .6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -.3rem; transition: transform .2s; }
	.sous-menu-bouton[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: .3rem; }
	.navigation .sub-menu { flex-basis: 100%; padding: 0 0 .75rem; background: transparent; box-shadow: none; border: 0; }
	.js .navigation .sub-menu { display: none; }
	.js .navigation .sub-menu.ouvert { display: block; }
	.navigation .sub-menu a { padding: .5rem 1.25rem .5rem 2.25rem; color: var(--encre); }
}

/* ---------- Bandeau de titre des pages intérieures (saumon, texte foncé) ---------- */

.bandeau-titre { background: var(--saumon); color: var(--encre); padding-block: 2rem 1.6rem; }
.bandeau-titre h1 { margin: 0 0 .35rem; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); color: var(--encre); }
.ariane { display: flex; flex-wrap: wrap; gap: .1rem .45rem; font-size: 1rem; }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .45rem; }
.ariane li + li::before { content: "/"; margin-right: .45rem; }
.ariane a { color: var(--encre); }
.ariane a:hover { color: #000; }

.page-corps { padding-block: 2.75rem 4rem; }

/* ---------- Accueil : grand bandeau photo ---------- */

.affiche {
	position: relative; display: flex; align-items: center;
	min-height: clamp(26rem, 42vw, 38rem);
	background: #2d2b33 url("../images/bandeau-accueil.webp") center / cover no-repeat;
	border-bottom: 14px solid var(--terracotta);
	color: #fff;
}
.affiche__texte { width: 100%; padding-block: 3rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.affiche__appel { margin: 0 0 .9rem; font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.affiche h1 {
	margin: 0 0 .6rem; color: #fff;
	font-family: var(--affiche); font-weight: 500; font-size: clamp(2.8rem, 1.6rem + 4.5vw, 4.6rem);
	line-height: 1.05; letter-spacing: .02em; text-transform: uppercase;
}
.affiche__sous-titre { margin: 0 0 2.25rem; max-width: 26ch; font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.affiche .bouton { text-shadow: none; }
@media (max-width: 700px) {
	.affiche { background-position: 72% center; }
}

/* ---------- Accueil : sections ---------- */

.section { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section--grise { background: var(--gris); }
.section--grise-claire { background: var(--gris-clair); }
.section__entete { max-width: 52rem; margin: 0 auto 2.75rem; text-align: center; }
.section__entete h2 { margin: 0 0 .9rem; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); }
.section__entete p { margin: 0; color: var(--encre-douce); }
.sur-titre { margin: 0 0 .6rem; font-size: 1.0625rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--encre); }

.bienvenue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.bienvenue .contenu-libre { max-width: none; }
.bienvenue .contenu-libre h2 { margin: 0 0 1.1rem; font-size: clamp(2rem, 1.4rem + 2vw, 2.85rem); line-height: 1.15; }
.bienvenue__image img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
	.bienvenue { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
}

/* Cartes d'activités : blanches, icône ronde, bouton pilule. */
.cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.75rem; }
.carte {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 2.25rem 1.75rem 2rem; background: var(--papier); border: 1px solid #efefef;
	transition: box-shadow .3s, transform .3s;
}
.carte:hover { box-shadow: var(--ombre); transform: translateY(-3px); }
.carte__icone { width: 64px; height: 64px; margin-bottom: 1rem; }
.carte h3 { margin: 0 0 .7rem; font-size: 1.4rem; }
.carte h3 a { color: var(--encre); text-decoration: none; }
.carte p { margin: 0 0 1.5rem; font-size: 1.0625rem; color: var(--encre-douce); }
.carte .bouton { margin-top: auto; }
.carte--image { padding: 0; border: 0; background: transparent; justify-content: center; }
.carte--image:hover { box-shadow: none; transform: none; }
.carte--image img { display: block; width: 100%; height: auto; }

/* Bandeau « Devenez membre » : la photo s'éclaircit à gauche, sous le texte. */
.participer {
	background: #dfeff4 url("../images/bandeau-membre.webp") center / cover no-repeat;
	padding-block: clamp(4rem, 8vw, 6.5rem);
}
.participer__texte { max-width: 38rem; }
.participer h2 { margin: 0 0 1rem; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); }
.participer p { font-size: 1.125rem; }
@media (max-width: 900px) {
	.participer__texte { padding: 1.75rem; background: rgba(255, 255, 255, .9); }
}

/* Actualités : une colonne par type de sortie. */
.actualites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; }
@media (max-width: 1300px) { .actualites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .actualites { grid-template-columns: minmax(0, 1fr); } }
.actualite { display: flex; flex-direction: column; }
.actualite__image { display: block; width: 100%; aspect-ratio: 326 / 166; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
.actualite h3 { margin: 1.1rem 0 1rem; font-size: 1.45rem; text-align: center; text-transform: uppercase; }
.actualite .agenda { flex: 1; }
.actualite .agenda-vide { flex: 1; font-size: 1rem; }
.actualite .bouton { align-self: center; margin-top: 1.25rem; }

/* ---------- Agenda ---------- */

.sortie--visites, .filtre--visites { --c: var(--visites); }
.sortie--randonnees, .filtre--randonnees { --c: var(--randonnees); }
.sortie--escapades, .filtre--escapades { --c: var(--escapades); }
.sortie--voyages, .filtre--voyages { --c: var(--voyages); }

.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.sortie__lien {
	display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 1rem; align-items: start;
	padding: .75rem; background: var(--papier); border: 1px solid var(--bord); border-radius: var(--rayon);
	color: inherit; text-decoration: none;
}
.sortie__lien:hover { border-color: var(--c, var(--bleu)); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }

/* Pastille de date colorée de l'ancien agenda, texte foncé pour le contraste. */
.sortie__date {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 4.4rem; padding: .35rem .2rem; border-radius: var(--rayon);
	background: var(--c, var(--saumon)); color: #1d1d1d; line-height: 1;
}
.sortie__num { font-size: 1.9rem; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.sortie__mois { margin-top: .25rem; font-size: .95rem; font-weight: 600; text-transform: capitalize; }

.sortie__type { display: block; font-size: .95rem; font-weight: 600; color: var(--encre-douce); text-transform: uppercase; letter-spacing: .05em; }
.sortie__titre { display: block; font-weight: 700; font-size: 1.125rem; line-height: 1.35; color: var(--encre); }
.sortie__meta { display: block; margin-top: .2rem; font-size: 1rem; color: var(--encre-douce); }
.sortie__lien:hover .sortie__titre { color: var(--bleu); text-decoration: underline; text-underline-offset: .18em; }

.agenda--compact .sortie__lien { background: var(--gris); border-color: transparent; }
.agenda--compact .sortie__titre { font-size: 1.0625rem; }

.agenda-vide { padding: 1rem 1.25rem; background: var(--gris); border-radius: var(--rayon); max-width: 46rem; }

.page-agenda .agenda { max-width: 52rem; }
.chapeau { font-size: 1.2rem; color: var(--encre-douce); max-width: 44em; }

.filtres { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1rem; }
.filtre {
	display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: 0 1.25rem;
	border: 2px solid var(--bord); border-radius: var(--pilule);
	color: var(--encre); font-weight: 600; font-size: 1.0625rem; text-decoration: none; background: var(--papier);
}
.filtre::before { content: ""; width: .85rem; height: .85rem; border-radius: 50%; background: var(--c, var(--bleu)); border: 1px solid rgba(0, 0, 0, .15); }
.filtre:hover { border-color: var(--c, var(--bleu)); color: var(--encre); }
.filtre[aria-current] { border-color: var(--encre); background: var(--gris); }

/* Programme à imprimer et abonnement, sous l'agenda */
.agenda-outils { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.5rem; margin-top: 3rem; max-width: 64rem; }
.outil { padding: 1.5rem 1.75rem; background: var(--gris); border-top: 4px solid var(--terracotta); }
.outil h2 { margin: 0 0 .6rem; font-size: 1.4rem; }
.outil .boutons { margin-top: 1rem; }
.outil__adresse { margin-top: 1rem; font-size: 1rem; }
.outil__adresse summary { cursor: pointer; color: var(--bleu); text-decoration: underline; }
.outil__adresse label { display: block; margin: .75rem 0 .3rem; font-weight: 600; }
.outil__adresse input { width: 100%; padding: .6rem; font: inherit; font-size: .95rem; border: 1px solid #8c8f94; }

.mois__titre { font-size: 1.5rem; margin: 2.25rem 0 .9rem; padding-bottom: .4rem; border-bottom: 3px solid var(--terracotta); max-width: 52rem; }

/* ---------- Fiches (sortie, activité) ---------- */

.fiche__entete { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin: 0 0 2.25rem; }
.fiche__date {
	display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 6rem; min-height: 6rem;
	padding: .6rem 1rem; border-radius: var(--rayon); background: var(--c, var(--saumon)); color: #1d1d1d; line-height: 1;
}
.fiche__date .sortie__num { font-size: 2.8rem; }
.fiche__date .sortie__mois { font-size: 1.05rem; }
.fiche__quand { font-size: 1.35rem; font-weight: 600; margin: 0; }
.fiche__passee { margin: .3rem 0 0; font-weight: 700; color: #a3312a; }
.fiche__famille { margin: 0 0 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-douce); }

.fiche__grille { display: grid; grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr); gap: 2.75rem; align-items: start; }
@media (max-width: 860px) {
	.fiche__grille { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
}

.infos { margin: 0; padding: .5rem 1.5rem; background: var(--gris); border-top: 4px solid var(--terracotta); }

/* Sortie complète ou annulée, et cadre « Comment s'inscrire » */
.fiche__statut { margin: 0 0 2rem; padding: 1rem 1.25rem; background: #fff4e5; border-left: 5px solid var(--randonnees); font-size: 1.15rem; }
.fiche__statut--annulee { background: #fdecea; border-left-color: #a3312a; }
.fiche__cote { display: grid; gap: 1.5rem; align-content: start; }
.inscription { padding: 1.25rem 1.5rem 1.4rem; background: var(--papier); border: 2px solid var(--bleu); }
.inscription h2 { margin: 0 0 .6rem; font-size: 1.3rem; }
.inscription p { font-size: 1.0625rem; }
.inscription__boutons { display: grid; gap: .6rem; margin: 1rem 0 0; }
.inscription__boutons .bouton { width: 100%; padding-inline: 1rem; }
.sortie__statut { display: inline-block; margin-top: .3rem; padding: .1rem .55rem; border-radius: var(--rayon); background: #fff4e5; color: #6b3f00; font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sortie--annulee .sortie__statut { background: #fdecea; color: #8a241d; }
.sortie--annulee .sortie__titre { text-decoration: line-through; text-decoration-thickness: 2px; }
.infos div { padding: .75rem 0; border-bottom: 1px solid var(--bord); }
.infos div:last-child { border-bottom: 0; }
.infos dt { font-size: .95rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--encre-douce); }
.infos dd { margin: .1rem 0 0; font-weight: 600; }

.contenu-libre { max-width: 46em; }
.contenu-libre--large { max-width: none; }
.contenu-libre > :first-child { margin-top: 0; }
.contenu-libre img { max-width: 100%; height: auto; }
.contenu-libre h2 { font-size: 1.75rem; }
.contenu-libre h3 { font-size: 1.35rem; }

/* Calendriers de séances repris de l'ancien site : défilement horizontal sur téléphone. */
.as-tableau { overflow-x: auto; margin: 1.5rem 0; }
.as-tableau table { border-collapse: collapse; font-size: .95rem; line-height: 1.35; }
.as-tableau th, .as-tableau td { border: 1px solid #c9c9c9; padding: .35em .55em; text-align: center; }
.as-tableau th { background: var(--gris); }

.rappel { padding: .9rem 1.2rem; background: var(--gris); border-left: 4px solid var(--randonnees); }
.fiche__agenda { margin-top: 3rem; max-width: 52rem; }
.fiche__agenda h2 { margin-top: 0; padding-bottom: .4rem; border-bottom: 3px solid var(--terracotta); }

/* ---------- Activités (page de toutes les activités) ---------- */

.famille-bloc + .famille-bloc { margin-top: 3rem; }
.famille-bloc h2 { margin: 0 0 1.25rem; padding-bottom: .4rem; border-bottom: 3px solid var(--terracotta); }

/* ---------- Galeries ---------- */

.galeries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.75rem; }
.galerie a { display: block; background: var(--papier); border: 1px solid #efefef; color: var(--encre); text-decoration: none; transition: box-shadow .3s; }
.galerie a:hover { box-shadow: var(--ombre); }
.galerie img, .couverture-vide { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--gris); }
.galerie__titre { display: block; padding: .9rem 1.1rem; font-weight: 700; font-size: 1.25rem; text-align: center; }
.galerie a:hover .galerie__titre { color: var(--bleu); }
.wp-block-gallery .wp-block-image img { border-radius: 0; }
/* La dernière rangée garde la taille des autres photos au lieu de s'étirer. */
.wp-block-gallery.has-nested-images figure.wp-block-image { flex-grow: 0; }

/* ---------- Pages simples et rubriques ---------- */

.page-simple--rubrique { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 0 3.5rem; }
.rubrique ul { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--terracotta); }
.rubrique li a { display: block; padding: .7rem 1rem; color: var(--encre); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--bord); }
.rubrique li a:hover { color: var(--bleu); background: var(--gris); }
.rubrique li a[aria-current] { font-weight: 700; background: var(--gris); box-shadow: inset 4px 0 0 var(--terracotta); }
@media (max-width: 860px) {
	.page-simple--rubrique { display: block; }
	.rubrique { margin-bottom: 2rem; }
}

/* Organigramme : cartes blanches avec photo, comme l'ancien site. */
.membres { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1.5rem; }
.membre {
	display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.3;
	padding: 1.1rem 1rem 1.25rem; background: var(--papier); box-shadow: var(--ombre);
}
.membre__photo { width: 100%; max-width: 10rem; aspect-ratio: 1; height: auto; margin-bottom: .9rem; object-fit: cover; }
.membre__photo--vide { display: grid; place-items: center; background: var(--gris); color: var(--encre); font-size: 2.2rem; font-weight: 600; }
.membre__nom { font-weight: 700; font-size: 1.125rem; }
.membre__fonction { margin-top: .3rem; font-size: .95rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--encre-douce); }

/* Blocs de l'éditeur */
.contenu-libre .wp-block-file { padding: 1rem 1.2rem; background: var(--gris); }

/* ---------- Pied de page : photo sombre, puis bande terracotta ---------- */

.pied {
	position: relative; color: #fff; font-size: 1.0625rem;
	background: #2b2f33 url("../images/fond-pied.jpg") center / cover no-repeat;
}
.pied::before { content: ""; position: absolute; inset: 0; background: rgba(15, 18, 22, .58); }
.pied__grille { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem 4rem; padding-block: 4rem 3.5rem; }
.pied a { color: #fff; }
.pied__titre { margin: 0 0 1rem; font-size: 1.5rem; color: #fff; }
.pied address { font-style: normal; }
.pied p { margin: 0 0 .9rem; }

.pied__bas { position: relative; background: var(--terracotta-fonce); color: #fff; text-align: center; font-size: 1rem; line-height: 1.6; }
.pied__bas .cadre { padding-block: 1.25rem; }
.pied__bas p { margin: 0; }
.pied__bas__nom { font-weight: 700; font-size: 1.125rem; text-transform: uppercase; letter-spacing: .04em; }
.pied__bas__liens a + a { margin-left: 1.25rem; }

/* ---------- Impression (pour afficher l'agenda au local) ---------- */

@media print {
	.bandeau-contact, .navigation, .nav-bouton, .filtres, .boutons, .agenda-suite, .pied { display: none !important; }
	.entete { position: static; background: none; }
	.bandeau-titre { background: none; padding: 0; }
	body { font-size: 12pt; }
	.infos, .sortie__lien { border: 1px solid #999; }
}
