/*
 * Sylmanolo, direction « Plein jour » : un reportage.
 * Photos pleine largeur suivies de leur légende (qui, où, quand), colonne de lecture
 * étroite, une seule couleur d'action (le jaune, toujours avec du texte noir).
 *
 * Ce fichier sert au site ET à l'éditeur de blocs (add_editor_style).
 * Interdits : surtitres en capitales espacées, ombres portées de cartes, tuiles de
 * gros chiffres, flèches, dégradés sur les photos.
 *
 * Sommaire
 * 1. Variables et base
 * 2. Utilitaires (gouttières, conteneur, accessibilité)
 * 3. Boutons
 * 4. En-tête et menu
 * 5. Contenu des pages (blocs)
 * 6. Motifs Sylmanolo
 * 7. Module de don
 * 8. Gabarits : pages, nouvelles, listes, recherche
 * 9. Pied de page
 * 10. Mouvement réduit
 */

/* 1. Variables et base =================================================== */
:root {
	--blanc: #FFFFFF;
	--noir: #121212;
	--gris: #6B6B6B;
	--filet: #E4E2DD;
	--kaki: #C9B48A;
	--jaune: #F2C318;
	--jaune-fonce: #D9AE0C;
	--texte-doux: #333333;
	--bord: #BDBBB5;
	--f-titre: "Newsreader", Georgia, "Times New Roman", serif;
	--f-texte: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
	--largeur: 1180px;
	--lecture: 38rem;
	--gouttiere: max(16px, env(safe-area-inset-left, 0px));
	--cote: max(var(--gouttiere), calc((100% - var(--largeur)) / 2));
	--entete: 4.5rem;
	color-scheme: light;
}

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

html { scroll-padding-top: calc(var(--entete) + 1rem); -webkit-text-size-adjust: 100%; }

body {
	background: var(--blanc);
	color: var(--noir);
	font: 400 18px/1.68 var(--f-texte);
	margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
img:not([src]),
img[src=""] { display: none; }
figure { margin: 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-titre);
	font-weight: 400;
	margin: 0;
	text-wrap: balance;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6.6vw, 5.2rem); line-height: 1; font-variation-settings: "opsz" 72; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.05; font-variation-settings: "opsz" 60; }
h3 { font-size: 1.45rem; line-height: 1.2; }
h4 { font-size: 1.2rem; line-height: 1.25; }
h1 em, h2 em { font-style: italic; }

a { color: var(--noir); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--noir); outline-offset: 3px; }
.pied :focus-visible { outline-color: var(--blanc); }

figcaption,
.wp-element-caption { font-size: .84rem; color: var(--gris); margin-top: .5rem; }

/* 2. Utilitaires ========================================================= */
.g { padding-left: var(--gouttiere); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.l { max-width: var(--largeur); margin-inline: auto; }
.lecture { max-width: var(--lecture); }
.colonne { display: flex; flex-direction: column; gap: 1.1rem; }
.chapo { font-size: 1.18rem; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
}

/* Lien d'évitement : visible dès qu'il reçoit le focus clavier. */
.evitement {
	position: absolute;
	left: 1rem;
	top: -10rem;
	z-index: 100;
	background: var(--noir);
	color: var(--blanc);
	padding: .8rem 1.1rem;
	font-weight: 600;
}
.evitement:focus { top: 1rem; outline-color: var(--jaune); }

/* Classes exigées par WordPress. */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption, .gallery-caption { font-size: .84rem; color: var(--gris); }
.sticky, .bypostauthor { /* aucun traitement particulier */ }

/* 3. Boutons ============================================================= */
/* Bouton jaune « Action » : texte noir sur jaune (contraste 11,6:1). Jamais de texte blanc sur jaune. */
.btn,
.wp-block-button.is-style-action .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	background: var(--jaune);
	color: var(--noir);
	font: 600 1.02rem/1.15 var(--f-texte);
	padding: 1rem 1.35rem;
	text-decoration: none;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}
.btn:hover,
.wp-block-button.is-style-action .wp-block-button__link:hover { background: var(--jaune-fonce); color: var(--noir); }

/* Bouton par défaut : contour noir, pour les actions secondaires. */
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	background: var(--blanc);
	color: var(--noir);
	border: 1px solid var(--noir);
	border-radius: 0;
	font: 500 1rem/1.15 var(--f-texte);
	padding: .9rem 1.25rem;
	text-decoration: none;
}
.wp-block-button__link:hover { background: var(--noir); color: var(--blanc); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }

.sous-btn { color: var(--gris); font-size: .92rem; margin-top: .6rem; }
.wp-block-buttons + .sous-btn { margin-top: .6rem !important; }

/* 4. En-tête et menu ===================================================== */
.bandeau { background: var(--jaune); color: var(--noir); }
.bandeau__texte { margin: 0; padding-block: .55rem; font-size: .95rem; line-height: 1.4; text-align: center; }
.bandeau a { color: var(--noir); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bandeau a:hover, .bandeau a:focus-visible { text-decoration-thickness: 2px; }
.bandeau__sep { margin-inline: .35rem; }

.entete {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--blanc);
	border-bottom: 1px solid var(--filet);
}
.admin-bar .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete { top: 0; } }

.entete__barre { display: flex; align-items: center; gap: 1.6rem; padding-block: .6rem; }

.marque { display: flex; align-items: center; gap: .65rem; text-decoration: none; min-height: 44px; }
.marque__logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.marque__nom { font: 500 1.35rem/1 var(--f-titre); }

.entete__panneau { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 1.4rem; font-size: .95rem; }
.nav li { position: relative; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover,
.nav .current-menu-item > a,
.nav .current-menu-ancestor > a,
.nav a[aria-current="page"] { text-decoration: underline; }

/* Sous-menus : ouverts au survol et au clavier (focus dans le menu). */
.nav .sub-menu {
	display: none;
	position: absolute;
	left: -1rem;
	top: 100%;
	min-width: 16rem;
	background: var(--blanc);
	border: 1px solid var(--filet);
	padding: .4rem 1rem;
	z-index: 30;
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { display: block; }
.nav .sub-menu a { width: 100%; }

.langue { font-size: .85rem; color: var(--gris); display: flex; align-items: center; }
.langue a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 32px; color: var(--gris); text-decoration: none; }
.langue a:hover { text-decoration: underline; }
.langue b { color: var(--noir); font-weight: 600; }

.entete__don { padding: .75rem 1rem; font-size: .95rem; }

.menu-bouton {
	min-height: 44px;
	padding: .5rem 1rem;
	background: var(--blanc);
	color: var(--noir);
	border: 1px solid var(--noir);
	font: 500 .95rem var(--f-texte);
	cursor: pointer;
	margin-left: auto;
}
.menu-bouton[aria-expanded="true"] { background: var(--noir); color: var(--blanc); }

@media (max-width: 960px) {
	.entete__barre { flex-wrap: wrap; gap: .8rem; }
	.entete__panneau {
		order: 3;
		flex-basis: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: .4rem;
		margin-left: 0;
		padding-bottom: .8rem;
	}
	.nav, .nav > ul { width: 100%; }
	.nav > ul { flex-direction: column; gap: 0; font-size: 1.05rem; }
	.nav > ul > li { border-top: 1px solid var(--filet); }
	.nav .sub-menu { display: block; position: static; border: 0; padding: 0 0 .4rem 1rem; min-width: 0; }
	/* Avec JavaScript, le panneau est replié derrière le bouton « Menu ». */
	.js .entete__panneau { display: none; }
	.js .entete__panneau.est-ouvert { display: flex; max-height: calc(100vh - 5rem); overflow-y: auto; }
	/* Une seule ligne sur mobile : logo, bouton jaune, puis bouton Menu. Le panneau s'ouvre dessous. */
	.entete__barre { flex-wrap: wrap; gap: .5rem; }
	.entete__don { order: 2; margin-left: auto; padding: .7rem .8rem; font-size: .92rem; }
	.menu-bouton { order: 3; margin-left: 0; }
	.entete__panneau { order: 4; }
}
@media (max-width: 400px) {
	.marque { gap: .45rem; }
	.marque__logo { width: 38px; height: 38px; }
	.marque__nom { font-size: 1.15rem; }
	.entete__don { padding: .65rem .7rem; font-size: .88rem; }
}
@media (min-width: 961px) {
	.menu-bouton { display: none; }
}

/* 5. Contenu des pages (blocs) ========================================== */
/*
 * Chaque bloc est aligné sur le conteneur de 1180 px. Le texte courant garde une
 * colonne de lecture de 38rem, calée à gauche comme sur la maquette.
 * « Pleine largeur » (alignfull) va d'un bord à l'autre.
 */
.entree { padding-bottom: clamp(3rem, 7vw, 5rem); }
.entree::after { content: ""; display: table; clear: both; }
.entree > * { margin-left: var(--cote); margin-right: var(--cote); }
.entree > * + * { margin-top: 1.1rem; }
.entree > :where(p, ul, ol, dl, blockquote, h2, h3, h4, h5, h6, pre, .wp-block-list, .wp-block-quote, .wp-block-details, .wp-block-pullquote, .wp-block-file, .is-style-encart) {
	max-width: var(--lecture);
	margin-right: var(--gouttiere);
}
.entree > :where(h2, h3, h4) { margin-top: 2.4rem; }
.entree > .alignfull { margin-left: 0; margin-right: 0; max-width: none; }
.entree > .alignfull + *,
.entree > * + .alignfull { margin-top: 0; }
.entree > .photo-pleine + .legende { margin-top: 0; }
.entree > :first-child { margin-top: 0; }
.entree ul, .entree ol { padding-left: 1.2em; }
.entree li + li { margin-top: .35rem; }
.entree hr, .wp-block-separator { border: 0; border-top: 1px solid var(--filet); }

.wp-block-image img { width: 100%; }
.wp-block-image.alignfull img { width: 100%; }
.wp-block-embed iframe { max-width: 100%; }
.wp-block-video video { width: 100%; }

.wp-block-quote { margin: 0; padding: 0; border: 0; }
.wp-block-quote cite { display: block; font-size: .88rem; font-style: normal; color: var(--gris); margin-top: .7rem; }

.wp-block-table { overflow-x: auto; margin: 0; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.wp-block-table th, .wp-block-table td { text-align: left; padding: .55rem .8rem .55rem 0; border: 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
.wp-block-table th { font-weight: 500; font-size: .85rem; color: var(--gris); border-bottom-color: var(--noir); }
.wp-block-table figcaption { text-align: left; }

.wp-block-details { border-bottom: 1px solid var(--filet); padding-block: .9rem; }
.wp-block-details summary { cursor: pointer; font-weight: 500; min-height: 28px; }
.wp-block-details > :not(summary) { margin-top: .5rem; color: var(--texte-doux); }

/* 6. Motifs Sylmanolo ==================================================== */

/* Photo pleine largeur et légende */
.photo-pleine img { width: 100%; height: clamp(320px, 62vw, 720px); object-fit: cover; }
.legende {
	display: flex;
	flex-wrap: wrap;
	gap: .2rem 1.5rem;
	font-size: .86rem;
	color: var(--gris);
	padding-block: .75rem;
	border-bottom: 1px solid var(--filet);
}
.legende > * { margin: 0 !important; }
.legende b, .legende strong { color: var(--noir); font-weight: 600; }
.legende--courte { border-bottom: 0; padding-block: 0 .4rem; }

/* Ouverture */
.ouverture {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 3rem;
	padding-block: 2.6rem 4.5rem;
	align-items: end;
}
.ouverture .chapo { max-width: 32rem; }
@media (max-width: 820px) { .ouverture { grid-template-columns: 1fr; gap: 1.4rem; } }

/* Section avec colonne « lieu » */
.section {
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
	border-top: 1px solid var(--filet);
}
/* Les enfants d'une section s'alignent sur le conteneur de 1180 px ; « 100 % » est ici la largeur de la section. */
:where(.entree, .is-root-container) > .section > * { margin-left: var(--cote); margin-right: var(--cote); }
:where(.entree, .is-root-container) > .section > * + * { margin-top: 2.6rem; }
.entree > .legende + .section,
.entree > .section:first-child { border-top: 0; }
.tete {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 2.4rem;
}
.tete .lieu, .lieu { font-size: .9rem; color: var(--gris); padding-top: .7rem; }
@media (max-width: 820px) {
	.tete { grid-template-columns: 1fr; gap: .5rem; }
	.tete .lieu { order: 2; padding-top: 0; }
}
/* Colonne décalée : commence sous le grand titre (un tiers du conteneur plus l'écart). */
.decale { margin-left: calc((100% - 2.4rem) / 3 + 2.4rem); }
:where(.entree, .is-root-container) > .section > .decale {
	margin-left: calc(var(--cote) + (100% - 2 * var(--cote) - 2.4rem) / 3 + 2.4rem);
}
.decale.lecture { max-width: var(--lecture); }
@media (max-width: 820px) {
	.decale,
	:where(.entree, .is-root-container) > .section > .decale { margin-left: var(--cote); }
	.colonne > .decale { margin-left: 0; }
}

/* Récit défilant. Sans JavaScript (ou sur téléphone), chaque étape montre sa photo. */
.recit { display: flex; flex-direction: column; }
.etape { display: flex; flex-direction: column; gap: .8rem; padding-block: 1.4rem; border-top: 1px solid var(--filet); }
.etape:first-child { border-top: 0; }
.etape > * { margin: 0 !important; }
.etape .moment { font: italic 400 1.15rem var(--f-titre); color: var(--gris); }
.etape figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.recit-fin { padding-top: 2rem; }

.recit__scene { display: none; }
@media (min-width: 821px) {
	/* Avec JavaScript (classe ajoutée par le script) : photo fixe à gauche, étapes à droite. */
	.recit.recit--anime { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; }
	.recit--anime .recit__scene {
		display: block;
		position: sticky;
		top: calc(var(--entete) + 1rem);
		align-self: start;
	}
	.admin-bar .recit--anime .recit__scene { top: calc(var(--entete) + 1rem + 32px); }
	.recit--anime .recit__scene figure { display: none; }
	.recit--anime .recit__scene figure.est-active { display: block; }
	.recit--anime .recit__scene img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
	.recit--anime .etape {
		min-height: 62vh;
		justify-content: center;
		border-top: 0;
		opacity: .35;
		transition: opacity .4s;
	}
	.recit--anime .etape.est-active { opacity: 1; }
	.recit--anime .etape figure { display: none; }
}
.editor-styles-wrapper .etape { opacity: 1 !important; min-height: 0 !important; }
/* Étape sans photo : l'année s'affiche en grand dans la scène fixe. */
.etape .annee-scene { display: none; }
.recit__carte { display: none; }
@media (min-width: 821px) {
	.recit--anime .recit__scene .recit__carte.est-active {
		display: flex;
		align-items: flex-end;
		aspect-ratio: 4 / 3;
		padding: 2rem 2.2rem;
		background: color-mix(in srgb, var(--kaki) 22%, var(--blanc));
		font: 400 clamp(6rem, 11vw, 10rem)/.85 var(--f-titre);
		font-variant-numeric: lining-nums;
		color: var(--noir);
	}
}
.editor-styles-wrapper .etape .annee-scene { display: block; color: var(--gris); }

/* Registre des preuves (style du bloc Tableau) */
.wp-block-table.is-style-registre table { font-size: .98rem; }
.wp-block-table.is-style-registre th {
	font: 500 .82rem var(--f-texte);
	color: var(--gris);
	padding: .6rem .8rem .6rem 0;
	border-bottom: 1px solid var(--noir);
}
.wp-block-table.is-style-registre td { padding: 1rem .8rem 1rem 0; border-bottom: 1px solid var(--filet); }
.wp-block-table.is-style-registre td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wp-block-table.is-style-registre td:nth-child(2) { font: 400 1.25rem/1.25 var(--f-titre); }
.wp-block-table.is-style-registre td:last-child { color: var(--gris); font-size: .9rem; }

/* Liste « Agir » */
.agir-liste { border-top: 1px solid var(--noir); }
.agir-ligne {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 2.4rem;
	padding-block: 1.2rem;
	border-bottom: 1px solid var(--filet);
}
.agir-ligne > * { margin: 0 !important; }
.agir-ligne h3 { font-size: 1.35rem; }
.agir-ligne p { color: var(--texte-doux); }
@media (max-width: 820px) { .agir-ligne { grid-template-columns: 1fr; gap: .3rem; } }
.partenaires { color: var(--gris); font-size: .95rem; line-height: 1.9; }

/* Encart « Bon à savoir » (style du bloc Groupe) */
.is-style-encart,
.encart {
	border-left: 3px solid var(--kaki);
	padding: .2rem 0 .2rem 1rem;
	color: var(--texte-doux);
}
.is-style-encart > * + * { margin-top: .4rem; }
.encart__titre { color: var(--noir); }

/* Citation d'un témoin */
.voix p,
p.voix { font: italic 400 clamp(1.5rem, 3vw, 2.1rem)/1.3 var(--f-titre); }
.voix cite, .voix-qui { font-size: .88rem; color: var(--gris); margin-top: .7rem; display: block; font-style: normal; }

/* 6 bis. Frise des années (accueil, Qui nous sommes) ========================
   Une ligne d'années que l'on fait défiler à l'horizontale (doigt, pavé,
   ou boutons ajoutés par le script). Sans script, la frise défile quand même. */
.frise-bloc { position: relative; }
.frise {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(15.5rem, 21rem);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	padding-bottom: .4rem;
	-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
	mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.frise::-webkit-scrollbar { display: none; }
.frise > *, .agir-cartes > * { margin: 0 !important; }
.frise.est-au-bout { -webkit-mask-image: none; mask-image: none; }
.frise-etape {
	position: relative;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: .7rem;
	padding: 2.2rem 2rem 1rem 0;
	border-top: 1px solid var(--noir);
}
.frise-etape > * { margin: 0 !important; }
.frise-etape::before {
	content: "";
	position: absolute;
	top: -.45rem;
	left: 0;
	width: .9rem;
	height: .9rem;
	border-radius: 50%;
	background: var(--blanc);
	border: 1px solid var(--noir);
}
.frise-etape.est-forte::before { background: var(--jaune); border-color: var(--jaune); }
.frise-etape .annee {
	font: 400 clamp(2.8rem, 5vw, 4.2rem)/1 var(--f-titre);
	color: var(--noir);
	font-variant-numeric: lining-nums;
	letter-spacing: -.01em;
}
.frise-etape .chiffre {
	font: italic 400 1.15rem var(--f-titre);
	color: var(--gris);
}
.frise-etape p:not(.annee):not(.chiffre) { font-size: 1rem; line-height: 1.5; }
.frise-etape figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.frise-commandes { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.frise-commandes button {
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--noir);
	border-radius: 50%;
	background: var(--blanc);
	color: var(--noir);
	font: 400 1.2rem/1 var(--f-texte);
	cursor: pointer;
}
.frise-commandes button:hover:not(:disabled) { background: var(--noir); color: var(--blanc); }
.frise-commandes button:disabled { opacity: .3; cursor: default; }
.editor-styles-wrapper .frise { -webkit-mask-image: none; mask-image: none; }

/* 6 ter. Cartes « Agir avec nous » =========================================
   Toute la carte est cliquable (le lien s'étend sur la carte). */
.agir-cartes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr)) repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.6rem;
}
.agir-carte {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	padding: 1.5rem 1.4rem 1.4rem;
	background: color-mix(in srgb, var(--kaki) 16%, var(--blanc));
	transition: transform .25s ease, box-shadow .25s ease;
}
.agir-carte > * { margin: 0 !important; }
.agir-carte:hover, .agir-carte:focus-within { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(18, 18, 18, .08); }
.agir-carte h3 { font: 500 1rem/1.3 var(--f-texte); }
.agir-carte .prix { font: 400 clamp(2.4rem, 4vw, 3.2rem)/1 var(--f-titre); font-variant-numeric: lining-nums; }
.agir-carte .prix-note { font-size: .92rem; color: var(--texte-doux); }
.agir-carte p:last-child { margin-top: auto !important; padding-top: .8rem; }
.agir-carte p:last-child a { font-weight: 500; text-decoration: none; }
.agir-carte p:last-child a::after { content: ""; position: absolute; inset: 0; }
.agir-carte p:last-child a:focus-visible { outline: none; }
.agir-carte:focus-within { outline: 2px solid var(--noir); outline-offset: 3px; }
.agir-carte--une {
	grid-column: span 2;
	grid-row: span 2;
	background: var(--jaune);
	padding: 0 0 1.6rem;
}
.agir-carte--une > :not(figure) { padding-inline: 1.6rem; }
.agir-carte--une figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.agir-carte--une h3 { font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.15 var(--f-titre); margin-top: 1.2rem !important; }
.agir-carte--une .prix { font-size: clamp(3.4rem, 6vw, 4.8rem); }
.agir-carte--une .prix-note { color: var(--noir); }
.agir-carte--sobre { background: var(--blanc); border: 1px solid var(--filet); }
.agir-note { margin-top: 1.2rem !important; font-size: .88rem; color: var(--gris); }
@media (max-width: 980px) {
	.agir-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agir-carte--une { grid-row: auto; }
}
@media (max-width: 560px) {
	.agir-cartes { grid-template-columns: 1fr; }
	.agir-carte--une { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.agir-carte { transition: none; }
	.agir-carte:hover, .agir-carte:focus-within { transform: none; }
}

/* 7. Module de don ======================================================= */
.module-don { display: flex; flex-direction: column; gap: 1rem; }
.module-don > * { margin: 0; }
.frequence { display: inline-flex; align-self: flex-start; border: 1px solid var(--noir); }
.frequence button {
	min-height: 44px;
	font: 500 1rem var(--f-texte);
	padding: .8rem 1.3rem;
	background: var(--blanc);
	color: var(--noir);
	border: 0;
	cursor: pointer;
}
.frequence button[aria-pressed="true"] { background: var(--noir); color: var(--blanc); }
.module-don__texte { color: var(--texte-doux); }
.montants { display: flex; flex-wrap: wrap; gap: .5rem; }
.montants button {
	min-height: 44px;
	font: 500 1.05rem var(--f-texte);
	padding: .75rem 1.1rem;
	background: var(--blanc);
	color: var(--noir);
	border: 1px solid var(--bord);
	cursor: pointer;
	font-variant-numeric: tabular-nums;
}
.montants button[aria-pressed="true"] { border-color: var(--noir); box-shadow: inset 0 0 0 1px var(--noir); background: #FAFAF8; }
.cout { margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--filet); }
.cout__intro, .cout__note { color: var(--gris); font-size: .9rem; }
.cout__chiffre { font: 400 2.8rem/1 var(--f-titre); font-variant-numeric: tabular-nums; margin: .3rem 0 .5rem; }
.formulaire { margin-top: .6rem; }
.formulaire__consigne { color: var(--gris); font-size: .9rem; margin-bottom: .6rem; }
/* Cadre HelloAsso à la hauteur de l'écran : le widget fixe ses boutons « Continuer » en bas du cadre,
   ils restent donc visibles à chaque étape (retour de l'exploitant, 13/11/2026). */
.formulaire__iframe {
	display: block; width: 100%; border: 0;
	height: calc(100vh - var(--entete) - 4.5rem);
	height: calc(100svh - var(--entete) - 4.5rem);
	min-height: 480px; max-height: 860px;
	scroll-margin-top: calc(var(--entete) + 1rem);
}
.formulaire__vide { border: 1px solid var(--bord); padding: 2rem 1.4rem; color: var(--gris); text-align: center; }
.formulaire__vide b { display: block; color: var(--noir); font: 400 1.3rem var(--f-titre); margin-bottom: .3rem; }

/* Gabarit « Faire un don » : module à gauche, contenu de la page à droite. */
.section--don { padding-top: 2.6rem; }
.don { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.don__contenu > * { margin: 0; }
.don__contenu .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .don { grid-template-columns: 1fr; } }

/* 8. Gabarits ============================================================ */
.page-tete { padding-block: 1.6rem 2.4rem; }
.page-tete h1 { margin-top: 1rem; }
.page-tete .chapo { margin-top: 1rem; }
.principal--pleine .entree { padding-top: 0; }

.fil { font-size: .85rem; color: var(--gris); padding-top: .4rem; }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.fil li + li::before { content: "/"; padding-inline: .4rem; }
.fil a { color: var(--gris); display: inline-block; padding-block: .6rem; }

.nouvelle__publiee { color: var(--gris); font-size: .9rem; margin-top: .8rem; }
.sans-photo .nouvelle .legende { border-top: 1px solid var(--filet); }
.nouvelle .legende { margin-bottom: 2.4rem; }
.nouvelle__suite { border-top: 1px solid var(--filet); padding-block: 1.6rem 3rem; }
.nouvelle__suite .nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.nouvelle__sens { display: block; font-size: .85rem; color: var(--gris); }
.nouvelle__suite a { text-decoration: none; font: 400 1.2rem/1.3 var(--f-titre); display: block; padding-block: .3rem; }
.nouvelle__suite a:hover { text-decoration: underline; }

.liste-nouvelles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--noir); }
.liste-nouvelles__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 2.4rem;
	padding-block: 1.6rem;
	border-bottom: 1px solid var(--filet);
}
.liste-nouvelles__item:not(:has(.liste-nouvelles__photo)) .liste-nouvelles__texte { grid-column: 2; }
.liste-nouvelles__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.liste-nouvelles__texte { display: flex; flex-direction: column; gap: .5rem; }
.liste-nouvelles__titre { font-size: 1.6rem; line-height: 1.15; }
.liste-nouvelles__titre a { text-decoration: none; }
.liste-nouvelles__titre a:hover { text-decoration: underline; }
@media (max-width: 820px) {
	.liste-nouvelles__item { grid-template-columns: 1fr; gap: .8rem; }
	.liste-nouvelles__item:not(:has(.liste-nouvelles__photo)) .liste-nouvelles__texte { grid-column: auto; }
}

.pagination { padding-block: 2rem 4rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: .6rem; text-decoration: none; border: 1px solid var(--filet); }
.pagination .page-numbers.current { border-color: var(--noir); font-weight: 600; }

.recherche label { display: block; font-weight: 500; margin-bottom: .4rem; }
.recherche__ligne { display: flex; gap: .5rem; max-width: 32rem; }
.recherche input[type="search"] {
	flex: 1;
	min-height: 44px;
	font: 400 1rem var(--f-texte);
	padding: .6rem .8rem;
	border: 1px solid var(--noir);
	border-radius: 0;
	background: var(--blanc);
	color: var(--noir);
}
.recherche button {
	min-height: 44px;
	font: 500 1rem var(--f-texte);
	padding: .6rem 1.1rem;
	background: var(--noir);
	color: var(--blanc);
	border: 0;
	cursor: pointer;
}
.recherche-form { margin-top: 1.6rem; }
.page-vide { padding-bottom: 4rem; gap: 1.6rem; }
.merci__suite { padding-bottom: 4rem; }

/* 9. Pied de page ======================================================== */
.pied { background: var(--noir); color: #EDEDED; padding-block: 3.5rem 2rem; font-size: .92rem; }
.pied a { color: #EDEDED; }
.pied__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.pied__titre { font: 500 1.05rem var(--f-titre); margin: 0 0 .7rem; color: var(--blanc); letter-spacing: 0; }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pied ul a { display: inline-flex; align-items: center; min-height: 44px; }
.pied__reseaux { margin-top: .6rem; }
.pied__reseaux ul { flex-direction: row; flex-wrap: wrap; gap: 0 1rem; }
.pied__legal {
	margin-top: 2.6rem;
	padding-top: 1rem;
	border-top: 1px solid #333;
	color: #A9A9A9;
	font-size: .82rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .2rem 1.5rem;
}
.pied__legal p { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.pied__legal ul { flex-direction: row; flex-wrap: wrap; gap: 0 1.2rem; }
.pied__legal a { color: #C9C9C9; }
@media (max-width: 820px) { .pied__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pied__cols { grid-template-columns: 1fr; } }

/* 9 bis. Bannière de consentement (Complianz) ============================
   Habille la bannière aux couleurs du site, sans toucher aux réglages de
   l'extension. Accepter et Refuser ont exactement le même poids visuel,
   comme le demandent les lignes directrices de la CNIL. */
body .cmplz-cookiebanner,
body #cmplz-manage-consent .cmplz-manage-consent {
	--cmplz_banner_background_color: var(--blanc);
	--cmplz_banner_border_color: var(--noir);
	--cmplz_banner_border_width: 3px 0 0 0;
	--cmplz_banner_border_radius: 0;
	--cmplz_text_color: var(--noir);
	--cmplz_hyperlink_color: var(--noir);
	--cmplz_text_font_size: 15px;
	--cmplz_title_font_size: 19px;
	--cmplz_button_font_size: 15px;
	--cmplz_button_border_radius: 0;
	--cmplz_button_accept_background_color: var(--noir);
	--cmplz_button_accept_border_color: var(--noir);
	--cmplz_button_accept_text_color: var(--blanc);
	--cmplz_button_deny_background_color: var(--noir);
	--cmplz_button_deny_border_color: var(--noir);
	--cmplz_button_deny_text_color: var(--blanc);
	--cmplz_button_settings_background_color: var(--blanc);
	--cmplz_button_settings_border_color: var(--noir);
	--cmplz_button_settings_text_color: var(--noir);
	--cmplz_slider_active_color: var(--noir);
	--cmplz_slider_inactive_color: var(--gris);
	--cmplz_slider_bullet_color: var(--blanc);
	--cmplz_category_header_always_active_color: var(--noir);
	font-family: var(--f-texte);
}
body .cmplz-cookiebanner { box-shadow: 0 0 0 1px var(--filet), 0 18px 40px rgba(18, 18, 18, .14); }
body .cmplz-cookiebanner .cmplz-title { font-family: var(--f-titre); font-weight: 500; }
body .cmplz-cookiebanner .cmplz-btn { font-family: var(--f-texte); font-weight: 500; min-height: 44px; border-width: 1px; }
body .cmplz-cookiebanner .cmplz-links a { text-decoration: underline; text-underline-offset: 3px; }
body .cmplz-cookiebanner .cmplz-btn:focus-visible,
body .cmplz-cookiebanner a:focus-visible,
body #cmplz-manage-consent .cmplz-manage-consent:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
body #cmplz-manage-consent .cmplz-manage-consent { border-radius: 0; font-family: var(--f-texte); background: var(--noir); color: var(--blanc); }

/* 10. Mouvement réduit =================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.recit--anime .etape { opacity: 1; }
}
