/* ==========================================================================
   AHM : styles du thème
   Charte : Dosis · vert #008000 · bleu #0089A9 · gris #58585A / #9C9E9F
   ========================================================================== */

:root {
	--vert: #008000;
	--vert-clair: #00b51b;
	--vert-fonce: #006200;
	--bleu: #0089a9;
	--bleu-fonce: #006a83; /* texte bleu sur fond blanc : contraste AA */
	--gris: #58585a;
	--gris-clair: #9c9e9f;
	--gris-footer: #6e7071; /* #9C9E9F de la charte assombri : texte blanc lisible (AA) */
	--fond-clair: #f4f6f6;
	--blanc: #fff;

	--police: "Dosis", "Trebuchet MS", system-ui, sans-serif;
	--largeur: 1180px;
	--marge: clamp(1rem, 4vw, 2rem);
	--ombre: 0 6px 18px rgb(0 0 0 / .18);
	--rayon: 10px;
	--header-h: 76px;
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
	margin: 0;
	font-family: var(--police);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.6;
	color: var(--gris);
	background: var(--blanc);
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu-fonce); text-underline-offset: .15em; }
a:hover { color: var(--vert); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--police); line-height: 1.15; color: #2b2b2c; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

.container { width: min(100% - 2 * var(--marge), var(--largeur)); margin-inline: auto; }
.container--narrow { max-width: 980px; }

.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;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--vert); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- Boutons ------------------------------------------------------------- */
.btn, .wp-block-button__link, .wpcf7-submit {
	display: inline-block;
	padding: .8rem 1.4rem;
	border: 0;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--vert-clair) -40%, var(--vert-fonce));
	color: #fff;
	font: 600 .95rem/1.2 var(--police);
	text-transform: uppercase;
	letter-spacing: .03em;
	text-decoration: none;
	cursor: pointer;
	transition: filter .2s, transform .2s;
}
.btn:hover, .wp-block-button__link:hover, .wpcf7-submit:hover { color: #fff; filter: brightness(1.12); }
.btn--small { padding: .35rem .8rem; font-size: .8rem; }
.btn--light { background: #fff; color: var(--gris); }
.btn--light:hover { color: var(--vert); }
.btn--blue, .is-style-bleu .wp-block-button__link { background: var(--bleu-fonce); }

/* --- En-tête ------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	box-shadow: 0 3px 8px rgb(0 0 0 / .25);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: stretch; gap: 1rem; min-height: var(--header-h); }
.site-header__brand { display: flex; align-items: center; margin-right: auto; padding-block: .5rem; }
.site-header__brand img { width: 170px; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; }
.site-nav a {
	display: block;
	color: var(--gris);
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_parent > a { color: var(--vert); }

.btn-don {
	display: flex; flex-direction: column; justify-content: center; align-items: center;
	padding: 0 .9rem;
	background: linear-gradient(180deg, var(--vert-clair) -30%, var(--vert-fonce));
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	line-height: .95;
}
.btn-don:hover { color: #fff; filter: brightness(1.12); }
.btn-don__small { font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
.btn-don__big { font-weight: 700; font-size: 2.1rem; letter-spacing: .04em; }

.site-header__tools { display: flex; align-items: center; gap: .9rem; }
.search-toggle, .nav-toggle {
	display: grid; place-items: center;
	padding: .4rem; border: 0; background: none; color: var(--gris); cursor: pointer;
}
.search-toggle:hover, .nav-toggle:hover { color: var(--vert); }
.search-toggle .icon { width: 22px; height: 22px; }

.socials { display: flex; gap: .7rem; list-style: none; margin: 0; padding: 0; }
.socials a { display: block; color: var(--gris-clair); }
.socials .icon { width: 20px; height: 20px; }
.socials--header { padding-left: .9rem; border-left: 1px solid var(--gris); align-self: stretch; align-items: center; }
.socials--header a:hover, .socials--header a:focus-visible { color: var(--vert); } /* cahier des charges : survol vert */

.site-search { background: var(--fond-clair); padding: 1rem 0; border-top: 1px solid #e3e5e5; }

/* Formulaire de recherche */
.search-form { display: flex; gap: .5rem; max-width: 560px; }
.search-form label { flex: 1; }
.search-field {
	width: 100%; padding: .7rem .9rem;
	border: 1px solid var(--gris-clair); border-radius: 4px;
	font: inherit;
}
.search-submit { padding: .7rem 1.1rem; border: 0; border-radius: 4px; background: var(--vert); color: #fff; font: 600 .95rem var(--police); text-transform: uppercase; cursor: pointer; }

/* Navigation bureau */
@media (min-width: 1081px) {
	.nav-toggle { display: none; }
	.site-nav { display: flex; align-items: stretch; }
	.site-nav .menu { display: flex; align-items: stretch; gap: clamp(1rem, 2.6vw, 2.8rem); margin-right: 1.2rem; }
	.site-nav .menu > li { position: relative; display: flex; align-items: center; }
	.site-nav .sub-menu {
		position: absolute; top: 100%; left: -1.2rem; min-width: 230px;
		list-style: none; margin: 0; padding: .5rem 0;
		background: #fff; box-shadow: var(--ombre); border-top: 3px solid var(--vert);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.site-nav li:hover > .sub-menu,
	.site-nav li:focus-within > .sub-menu,
	.site-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.site-nav .sub-menu a { padding: .6rem 1.2rem; font-size: .9rem; }
	.site-nav .sub-menu a:hover { background: var(--fond-clair); }
	.submenu-toggle { display: none; }
}

/* Navigation mobile */
@media (max-width: 1080px) {
	:root { --header-h: 64px; }
	.site-header__brand img { width: 140px; }
	.site-header__inner { gap: .4rem; }
	.nav-toggle { order: 4; }
	.site-header__tools { order: 3; }
	.btn-don { order: 2; padding: 0 .7rem; }
	.btn-don__big { font-size: 1.6rem; }
	.btn-don__small { font-size: .75rem; }
	.socials--header { display: none; }

	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		background: #fff; box-shadow: 0 8px 12px rgb(0 0 0 / .15);
		display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav .menu { padding: .5rem var(--marge) 1rem; }
	.site-nav .menu > li { border-bottom: 1px solid #e6e8e8; position: relative; }
	.site-nav a { padding: .9rem 0; }
	.site-nav .sub-menu { list-style: none; margin: 0; padding: 0 0 .6rem 1rem; display: none; }
	.site-nav li.is-open > .sub-menu { display: block; }
	.site-nav .sub-menu a { padding: .5rem 0; font-weight: 500; }
	.submenu-toggle {
		position: absolute; right: 0; top: .35rem;
		width: 44px; height: 44px; border: 0; background: none; color: var(--gris); cursor: pointer;
	}
	.submenu-toggle .icon { transform: rotate(90deg); margin: auto; transition: transform .2s; }
	.is-open > .submenu-toggle .icon { transform: rotate(-90deg); }
}
/* Téléphone : pas de recherche dans l'en-tête (logo, bouton Don et menu suffisent). */
@media (max-width: 767px) {
	.search-toggle, .site-search { display: none !important; }
}
@media (max-width: 420px) {
	.site-header__brand img { width: 112px; }
}

/* --- Bandeaux (hero) ----------------------------------------------------- */
.hero {
	position: relative;
	display: flex; align-items: center;
	min-height: clamp(220px, 32vw, 380px);
	background: #2b2b2c var(--hero-img) center / cover no-repeat;
	color: #fff;
}
@media (max-width: 900px) {
	.hero { background-image: var(--hero-img-sm, var(--hero-img)); }
}
.hero__title {
	margin: 0;
	color: #fff;
	font-weight: 700;
	font-size: clamp(2.2rem, 6vw, 4rem);
	text-transform: uppercase;
	letter-spacing: .04em;
	text-shadow: 3px 4px 6px rgb(0 0 0 / .55);
}
.hero--photo { text-align: center; }
.hero--photo::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .25); }
.hero--photo .container, .hero--home .container { position: relative; }
/* Bannières illustrées : le bandeau garde les proportions du dessin (1280×400), comme la maquette.
   Sans cela, « cover » agrandit l'image sur les écrans larges et coupe les personnages. */
.hero--illustration { min-height: 0; aspect-ratio: 1280 / 400; max-height: 640px; background-position: center; }
.hero--illustration .hero__title { max-width: 45%; }
@media (max-width: 700px) {
	.hero--illustration { aspect-ratio: auto; min-height: 220px; align-items: flex-end; padding-bottom: 1.2rem; background-position: 88% center; }
	.hero--illustration .hero__title { max-width: none; font-size: 2rem; }
}

.hero--home { min-height: clamp(380px, 42vw, 520px); align-items: flex-end; padding-bottom: 2.5rem; }
.hero--home::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .45), transparent 70%); }
.hero__box { max-width: 560px; padding: 1.2rem 1.4rem; background: rgb(60 60 60 / .82); }
.hero--home .hero__title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-shadow: none; }
.hero__text { margin: .6rem 0 0; font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }

/* --- Sections ------------------------------------------------------------ */
.section { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section--blue {
	background: linear-gradient(180deg, var(--bleu) 0%, #00566b 100%);
}
.section-title {
	display: flex; align-items: center; gap: 1rem;
	margin-bottom: 1.6rem;
	color: var(--vert);
	font-size: clamp(1.6rem, 3vw, 2rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.section-title a { color: inherit; text-decoration: none; }
.section-title::after { /* ligne pointillée + flèche de la maquette */
	content: ""; flex: 1; height: 8px;
	background:
		radial-gradient(circle, var(--bleu) 1.2px, transparent 1.6px) left center / 6px 8px repeat-x;
	mask: linear-gradient(90deg, #000 calc(100% - 10px), transparent 0);
}
.section-title--light { color: #fff; }
.section-title--light::after { background-image: radial-gradient(circle, #fff 1.2px, transparent 1.6px); }

/* --- Cartes actualités (accueil) ----------------------------------------- */
.news-cards { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.news-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.news-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .9rem; }
.news-card__title { font-size: 1.35rem; font-weight: 700; text-transform: uppercase; margin: .1rem 0 .5rem; }
.news-card__title a { color: #1c1c1c; text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; } /* carte entièrement cliquable */
.news-card:hover .news-card__title a { color: var(--vert); }
.news-card__excerpt { font-size: .95rem; flex: 1; }
.post-cat {
	position: relative; z-index: 1;
	display: inline-block; padding-block: .35rem; min-height: 24px;
	color: var(--bleu-fonce); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
}

/* --- Cartes actions ------------------------------------------------------ */
.action-cards {
	display: grid; gap: 1.4rem;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	list-style: none; margin: 0; padding: 0;
}
.action-card {
	position: relative;
	display: flex; flex-direction: column; align-items: center;
	padding: 1.4rem 1.2rem 1.4rem;
	background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre);
	text-align: center; font-size: .95rem;
	transition: transform .2s;
}
.action-card:hover { transform: translateY(-4px); }
.action-card img { height: 150px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.action-card__title { font-size: 1.2rem; font-weight: 700; text-transform: uppercase; margin-bottom: .5rem; }
.action-card__title a { color: #1c1c1c; text-decoration: none; }
.action-card__title a::after { content: ""; position: absolute; inset: 0; }
.action-card p { flex: 1; }
.entry-content .action-cards { margin-top: 2.5rem; }

/* --- Contenu éditeur (pages) --------------------------------------------- */
.entry-content > * + * { margin-top: 1.2rem; }
.entry-content h2 { color: var(--vert); font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 2.4rem); text-transform: uppercase; }
.entry-content h3 { color: var(--bleu-fonce); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; }
.entry-content ul { padding-left: 1.2rem; }
.entry-content li { margin-bottom: .3rem; }
.entry-content li::marker { color: var(--vert); }
.entry-content img { border-radius: 4px; }
.entry-content .wp-block-column > .wp-block-image img { width: 100%; max-height: 460px; object-fit: cover; }
.ahm-pictos { align-items: flex-end; }
.entry-content .ahm-pictos .wp-block-image img { height: 80px; width: auto; max-height: none; object-fit: contain; margin-inline: auto; border-radius: 0; }
.ahm-pictos p { margin-top: .5rem; color: var(--bleu-fonce); font-size: .85rem; text-transform: uppercase; }
@media (max-width: 781px) { .wp-block-columns.ahm-pictos { flex-direction: row; flex-wrap: wrap; } .ahm-pictos .wp-block-column { flex-basis: 45% !important; } }
.entry-content .wp-block-image figcaption { font-size: .85rem; color: var(--gris); }

.entry-content .lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: #2b2b2c; }

/* Ligne « titre vert à gauche / texte à droite » de la maquette */
.wp-block-columns.ahm-row { gap: 2rem 3rem; margin-block: 0 clamp(2rem, 5vw, 3.5rem); }
.wp-block-columns.ahm-row h2 { margin: 0; line-height: 1.12; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 2rem; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) {
	.wp-block-columns { flex-direction: column; }
	.wp-block-column { flex-basis: 100% !important; }
	.wp-block-columns.ahm-row { gap: 1rem; }
}

/* Citations mises en avant (cahier des charges) */
.entry-content .wp-block-quote, .entry-content .wp-block-pullquote {
	position: relative;
	margin: 2.5rem 0;
	padding: 1.6rem 1.6rem 1.4rem 4.2rem;
	border: 0; border-left: 5px solid var(--vert);
	background: var(--fond-clair);
	color: var(--bleu-fonce);
	font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.35;
}
.entry-content .wp-block-quote::before {
	content: "“";
	position: absolute; left: 1rem; top: .2rem;
	color: var(--vert); font-size: 5rem; line-height: 1; font-weight: 700;
}
.entry-content .wp-block-quote p { margin: 0; }
.entry-content .wp-block-quote cite {
	display: block; margin-top: .8rem;
	color: var(--gris); font-size: .95rem; font-weight: 500; font-style: normal;
}
.entry-content .wp-block-quote.is-style-proverbe { border-left-color: var(--bleu); text-align: center; padding-inline: 2rem; }
.entry-content .wp-block-quote.is-style-proverbe::before { display: none; }

/* Chiffres clés */
.ahm-stats { margin-block: 0 2.5rem !important; text-align: center; }
/* Thème classique : WordPress ajoute un conteneur intérieur aux groupes. */
.ahm-stats > .wp-block-group__inner-container {
	display: grid; gap: 1.5rem 1rem;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.ahm-stats .wp-block-group__inner-container > * { margin: 0; }
.ahm-stats .ahm-stat {
	margin: 0;
	color: var(--gris);
	font-size: .85rem; font-weight: 700; line-height: 1.25; text-transform: uppercase;
}
.ahm-stats .ahm-stat strong {
	display: block;
	color: var(--bleu-fonce);
	font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.05;
}
.ahm-stats--bleu {
	padding: 2rem 1rem;
	background: linear-gradient(180deg, var(--bleu), #00566b);
	border-radius: var(--rayon);
}
.ahm-stats--bleu .ahm-stat, .ahm-stats--bleu .ahm-stat strong { color: #fff; }

/* Encadrés */
.ahm-encart, .is-style-encart {
	padding: 1.5rem 1.6rem !important;
	border-radius: var(--rayon);
	background: var(--fond-clair);
}
.ahm-encart--vert { background: linear-gradient(135deg, var(--vert), var(--vert-fonce)); color: #fff; }
.ahm-encart--vert h2, .ahm-encart--vert h3, .ahm-encart--vert a { color: #fff; }

/* Carte OpenStreetMap */
.ahm-map iframe { width: 100%; height: 340px; border: 0; border-radius: 4px; }

/* Formulaires (Contact Form 7) */
.wpcf7-form p { margin: 0 0 1rem; }
.wpcf7-form label { display: block; font-weight: 600; font-size: .9rem; color: #2b2b2c; }
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]), .wpcf7-form textarea, .wpcf7-form select {
	width: 100%; margin-top: .3rem; padding: .75rem .9rem;
	border: 1px solid var(--gris); border-radius: 4px;
	font: inherit; color: #2b2b2c; background: #fff;
}
.wpcf7-form textarea { height: 9rem; resize: vertical; }
.ahm-form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.wpcf7-acceptance label { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; }
.wpcf7-not-valid-tip { font-size: .85rem; color: #b00020; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .7rem 1rem; border-radius: 4px; }

/* --- Liste des actualités ------------------------------------------------ */
.news-list { display: grid; gap: 2rem; }
.news-row {
	display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
	background: #fff; box-shadow: var(--ombre);
}
.news-row__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.news-row__media:empty { background: var(--fond-clair) url("../img/logos/logo-rond.webp") center / 40% no-repeat; }
.news-row__body { padding: 1.2rem 1.4rem; display: flex; flex-direction: column; }
.news-row__title { font-size: 1.4rem; text-transform: uppercase; margin: .5rem 0; }
.news-row__title a { color: #1c1c1c; text-decoration: none; }
.news-row__title a:hover { color: var(--vert); }
.news-row__excerpt { font-size: .95rem; flex: 1; }
@media (max-width: 640px) { .news-row { grid-template-columns: 1fr; } }

.post-meta {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .4rem 0; border-block: 1px solid #2b2b2c;
	font-size: .85rem;
}
.share { display: flex; gap: .6rem; align-items: center; }
.share a, .share button { display: grid; place-items: center; padding: .2rem; border: 0; background: none; color: var(--gris-clair); cursor: pointer; }
.share a:hover, .share button:hover { color: var(--vert); }
.share .icon { width: 18px; height: 18px; }
.share__copy.is-copied { color: var(--vert); }
.share__copy .icon--check, .copy__btn .icon--check { display: none; }
.is-copied .icon--check { display: block; }
.is-copied .icon--link, .is-copied .icon--copy { display: none; }

/* [ahm_copie] : valeur + bouton de copie (IBAN, BIC…) */
.copy { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.copy__value { font-variant-numeric: tabular-nums; }
.copy__btn {
	display: inline-grid; place-items: center;
	width: 32px; height: 32px; padding: 0;
	border: 1px solid transparent; border-radius: 4px;
	background: none; color: var(--bleu-fonce); cursor: pointer;
}
.copy__btn:hover { background: #fff; border-color: #cfd4d4; }
.copy__btn .icon { width: 17px; height: 17px; }
.copy__btn.is-copied { color: var(--vert); }

.pagination .nav-links, .post-nav { display: flex; justify-content: center; align-items: center; gap: .6rem; margin-top: 2.5rem; }
.page-numbers, .post-nav__arrow {
	display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .4rem;
	border: 1px solid var(--gris); color: var(--gris); text-decoration: none;
}
.page-numbers.current { background: var(--vert); border-color: var(--vert); color: #fff; }
.page-numbers .icon, .post-nav__arrow .icon { width: 18px; height: 18px; }
.post-nav a:not(.post-nav__arrow) { margin-inline: 1rem; color: var(--gris); font-size: .9rem; }

/* --- Article ------------------------------------------------------------- */
.single-cover img { width: 100%; height: clamp(220px, 32vw, 400px); object-fit: cover; }
.single__grid { display: grid; gap: 2rem; grid-template-columns: 160px minmax(0, 1fr); max-width: 980px; }
.single__caption { font-size: .8rem; color: var(--gris-clair); }
.single__caption span { display: block; text-transform: uppercase; }
.single__caption p::before { content: ""; display: block; width: 0; height: 0; margin-bottom: .4rem; border: 8px solid transparent; border-bottom-color: var(--vert); border-top: 0; }
.single__title { font-size: clamp(1.8rem, 4vw, 2.4rem); text-transform: uppercase; margin: .4rem 0 1rem; }
.single .post-meta { margin-bottom: 1.6rem; }
.single .entry-content > p:first-child { font-weight: 700; color: #2b2b2c; }
/* Photos de téléphone (format portrait) : hauteur limitée, centrées. */
.single .entry-content .wp-block-image img { width: auto; max-height: 520px; margin-inline: auto; }
@media (max-width: 760px) {
	.single__grid { grid-template-columns: 1fr; }
	.single__caption { order: 2; }
}

/* --- Pied de page -------------------------------------------------------- */
.site-footer { background: var(--gris-footer); color: #fff; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #d7ffd7; }
.site-footer__grid {
	display: grid; gap: 2rem;
	grid-template-columns: 1fr 1.1fr 1.2fr 1.2fr;
	padding-top: 2rem;
}
.site-footer__brand img { width: 170px; }
.site-footer__title { display: block; margin: 0 0 .4rem; color: #fff; font-size: 1.2rem; font-weight: 700; text-transform: uppercase; }
.site-footer p { margin: 0 0 .6rem; line-height: 1.4; }
.site-footer__follow { display: flex; align-items: center; gap: 1rem; margin-top: .8rem; }
.site-footer__follow .site-footer__title { margin: 0; }
.socials--footer a { color: #fff; }
.socials--footer a:hover { color: #d7ffd7; }
.socials--footer .icon { width: 18px; height: 18px; }

.newsletter {
	align-self: start;
	padding: 1.2rem 1.2rem 1.4rem;
	background: linear-gradient(180deg, var(--bleu), #00566b);
	text-align: center;
}
.newsletter__title { margin: 0; color: #fff; font-size: 1.6rem; font-weight: 600; text-transform: uppercase; }
.newsletter__sub { text-transform: uppercase; font-size: .85rem; }
.newsletter .wpcf7-form p { margin: 0; }
.newsletter .ahm-newsletter p { display: flex; }
.newsletter .ahm-newsletter .wpcf7-form-control-wrap { flex: 1; }
.newsletter input[type="email"] { margin: 0 !important; border: 0 !important; border-radius: 0 !important; padding: .55rem .7rem !important; font-size: .9rem !important; }
.newsletter .wpcf7-submit { padding: .55rem .8rem; border-radius: 0; background: #e3e5e5; color: #2b2b2c; font-weight: 700; }
.newsletter .wpcf7-response-output { color: #fff; font-size: .85rem; }
.newsletter .wpcf7-spinner { position: absolute; }

.site-footer__bottom { margin-top: 2rem; background: var(--gris); font-size: .82rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; padding-block: .7rem; }
.site-footer__bottom p { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.legal-menu a { text-decoration: none; }
.legal-menu a:hover { text-decoration: underline; }

@media (max-width: 960px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* --- Alignements Gutenberg ---------------------------------------------- */
.alignwide { width: min(100vw - 2 * var(--marge), 1400px); margin-inline: calc(50% - min(50vw - var(--marge), 700px)); }
.alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.aligncenter { margin-inline: auto; }
.has-text-align-center { text-align: center; }
.has-vert-color { color: var(--vert); }
.has-bleu-color { color: var(--bleu-fonce); }
.has-gris-color { color: var(--gris); }
.has-blanc-color { color: #fff; }
.has-vert-background-color { background-color: var(--vert); }
.has-bleu-background-color { background-color: var(--bleu); }
.has-gris-background-color { background-color: var(--gris); }
.has-gris-clair-background-color { background-color: var(--gris-clair); }

/* --- Fenêtre du formulaire de don ---------------------------------------- */
/* Le formulaire GiveWP (iframe) placé après l'ancre #don-en-ligne devient une fenêtre, fermée au chargement.
   On le met en forme sur place : déplacer une iframe la rechargerait. Sans JavaScript, il reste visible dans la page. */
.js #don-en-ligne + .give-embed-form-wrapper {
	position: fixed;
	inset: 0;
	margin: 0 !important; /* sinon la marge entre blocs du contenu décale la fenêtre vers le bas */
	z-index: 1000;
	align-items: flex-start;
	padding: 4rem 1rem 2rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: rgb(15 25 25 / .72);
	visibility: hidden;
	opacity: 0;
	transition: opacity .2s, visibility .2s;
}
.js #don-en-ligne + .give-embed-form-wrapper.is-open { visibility: visible; opacity: 1; }
/* Fenêtre fermée : rien à l'intérieur ne doit être visible ni cliquable. GiveWP rend l'iframe visible une fois
   chargée ; invisible mais présente, elle captait les touchers sur mobile à la place du bouton. */
.js #don-en-ligne + .give-embed-form-wrapper:not(.is-open),
.js #don-en-ligne + .give-embed-form-wrapper:not(.is-open) * {
	visibility: hidden !important;
	pointer-events: none !important;
}
.js #don-en-ligne + .give-embed-form-wrapper iframe {
	background: #fff;
	border-radius: var(--rayon);
	box-shadow: 0 20px 50px rgb(0 0 0 / .35);
}
.don-modal__close {
	position: fixed;
	top: .9rem;
	right: .9rem;
	z-index: 1001;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #2b2b2c;
	box-shadow: var(--ombre);
	cursor: pointer;
}
.don-modal__close:hover { color: var(--vert); }
.don-modal__close .icon { width: 22px; height: 22px; }
body.has-modal { overflow: hidden; }
@media (max-width: 600px) {
	.js #don-en-ligne + .give-embed-form-wrapper { padding: 3.75rem .5rem 1rem; }
}
