/*
Theme Name: AMPFESR Mali
Theme URI: https://ampfesr-mali.org
Author: Awtaya Services
Author URI: https://ampfesr-mali.org
Description: Thème WordPress pour l'Association Malienne pour la Protection des Filles et des Enfants en Situation de Rue (AMPFESR Mali). Design sobre et moderne, palette verte et or, pages Accueil, À propos, Nos actions, Faire un don et Contact.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ampfesr
Tags: nonprofit, charity, one-column, two-columns, custom-menu, custom-logo, featured-images, translation-ready, block-styles
*/

/* ==========================================================================
   1. Variables de thème
   ========================================================================== */

:root {
	--radius: 0.625rem;
	--background: #fcfcfa;
	--foreground: #08120c;
	--card: #ffffff;
	--card-foreground: #08120c;
	--primary: #004122;
	--primary-dark: #00572f;
	--primary-foreground: #fcfcfc;
	--secondary: #f4f2ec;
	--muted: #f3f2ee;
	--muted-foreground: #57605a;
	--accent: #e2a520;
	--destructive: #d40924;
	--border: #e3e1dd;

	--amber: #d97706;
	--emerald: #059669;
	--rose: #f43f5e;
	--violet: #7c3aed;
	--sky: #0284c7;

	--container: 72rem;
	--font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
	border-color: var(--border);
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--foreground);
}

p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button:not([disabled]),
[role="button"]:not([disabled]) {
	cursor: pointer;
}

.icon {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

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

.skip-link:focus {
	position: absolute;
	left: 1rem;
	top: 1rem;
	z-index: 100;
	background: var(--card);
	padding: 0.75rem 1.25rem;
	border-radius: var(--radius);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
}

/* ==========================================================================
   3. Mise en page
   ========================================================================== */

.site {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

.site-main {
	flex: 1 0 auto;
}

.container {
	margin-inline: auto;
	width: 100%;
	max-width: var(--container);
	padding-inline: 1.5rem;
}

.section {
	padding-block: 5rem;
}

.section--muted {
	background-color: rgba(243, 242, 238, 0.4);
}

.section--bordered {
	border-block: 1px solid rgba(227, 225, 221, 0.6);
	background-color: rgba(243, 242, 238, 0.3);
	padding-block: 4rem;
}

@media (min-width: 768px) {
	.section {
		padding-block: 7rem;
	}
}

/* ==========================================================================
   4. Boutons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 1px solid transparent;
	border-radius: 0.75rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease,
		border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn .icon {
	width: 1rem;
	height: 1rem;
}

.btn--primary {
	background-color: var(--primary);
	color: var(--primary-foreground);
}

.btn--primary:hover {
	background-color: var(--primary-dark);
	color: var(--primary-foreground);
}

.btn--outline {
	background-color: transparent;
	border-color: var(--border);
	color: var(--foreground);
}

.btn--outline:hover {
	background-color: var(--muted);
	color: var(--foreground);
}

.btn--white {
	background-color: #fff;
	color: var(--primary);
}

.btn--white:hover {
	background-color: rgba(255, 255, 255, 0.9);
	color: var(--primary);
}

.btn--ghost-white {
	background-color: transparent;
	color: #fff;
}

.btn--ghost-white:hover {
	background-color: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.btn--lg {
	padding: 0.75rem 1.75rem;
}

.btn--block {
	width: 100%;
}

/* ==========================================================================
   5. En-tête / Navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	width: 100%;
	border-bottom: 1px solid rgba(227, 225, 221, 0.5);
	background-color: rgba(252, 252, 250, 0.8);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.site-header__inner {
	display: flex;
	height: 4rem;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.brand__mark {
	display: flex;
	height: 2.25rem;
	width: 2.25rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	background-color: var(--primary);
	color: var(--primary-foreground);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	overflow: hidden;
}

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

.brand__text {
	display: none;
}

.brand__name {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--foreground);
}

.brand__sub {
	display: block;
	font-size: 11px;
	line-height: 1.2;
	color: var(--muted-foreground);
}

@media (min-width: 640px) {
	.brand__text {
		display: block;
	}
}

.nav-desktop {
	display: none;
	align-items: center;
	gap: 0.25rem;
}

.nav-desktop ul {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
}

.nav-desktop a {
	position: relative;
	display: block;
	border-radius: 0.5rem;
	padding: 0.5rem 0.875rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--muted-foreground);
	transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-desktop a:hover {
	color: var(--foreground);
	background-color: rgba(243, 242, 238, 0.6);
}

.nav-desktop .current-menu-item > a,
.nav-desktop .current_page_item > a,
.nav-desktop .is-active > a {
	color: var(--primary);
}

.nav-desktop .current-menu-item > a::after,
.nav-desktop .current_page_item > a::after,
.nav-desktop .is-active > a::after {
	content: "";
	position: absolute;
	left: 0.25rem;
	right: 0.25rem;
	bottom: -1px;
	height: 2px;
	border-radius: 9999px;
	background-color: var(--primary);
}

@media (min-width: 768px) {
	.nav-desktop {
		display: flex;
	}
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.header-actions .btn {
	display: none;
}

@media (min-width: 640px) {
	.header-actions .btn {
		display: inline-flex;
	}
}

.nav-toggle {
	display: inline-flex;
	height: 2.25rem;
	width: 2.25rem;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 0.5rem;
	background: transparent;
	color: var(--foreground);
	transition: background-color 0.2s ease;
}

.nav-toggle:hover {
	background-color: var(--muted);
}

.nav-toggle .icon-close {
	display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

.nav-toggle[aria-expanded="true"] .icon-open {
	display: none;
}

@media (min-width: 768px) {
	.nav-toggle {
		display: none;
	}
}

.nav-mobile {
	display: none;
	overflow: hidden;
	border-top: 1px solid rgba(227, 225, 221, 0.5);
	background-color: rgba(252, 252, 250, 0.97);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.nav-mobile.is-open {
	display: block;
	animation: ampfesr-slide-down 0.2s ease-in-out;
}

@keyframes ampfesr-slide-down {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nav-mobile ul {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	list-style: none;
	padding: 1rem 1.5rem;
}

.nav-mobile a {
	display: block;
	border-radius: 0.5rem;
	padding: 0.625rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--muted-foreground);
}

.nav-mobile a:hover {
	color: var(--foreground);
	background-color: rgba(243, 242, 238, 0.6);
}

.nav-mobile .current-menu-item > a,
.nav-mobile .current_page_item > a,
.nav-mobile .is-active > a {
	color: var(--primary);
	background-color: rgba(0, 65, 34, 0.05);
}

.nav-mobile__cta {
	padding: 0 1.5rem 1rem;
}

@media (min-width: 768px) {
	.nav-mobile,
	.nav-mobile.is-open {
		display: none;
	}
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
}

.hero__bg {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(
		to bottom right,
		rgba(0, 65, 34, 0.04),
		transparent 50%,
		rgba(226, 165, 32, 0.03)
	);
	pointer-events: none;
}

.hero__blob {
	position: absolute;
	border-radius: 9999px;
	filter: blur(64px);
	pointer-events: none;
}

.hero__blob--tr {
	top: 0;
	right: 0;
	width: 600px;
	height: 600px;
	background-color: rgba(0, 65, 34, 0.03);
	transform: translate(33%, -50%);
}

.hero__blob--bl {
	bottom: 0;
	left: 0;
	width: 400px;
	height: 400px;
	background-color: rgba(226, 165, 32, 0.04);
	transform: translate(-33%, 50%);
}

.hero__inner {
	position: relative;
	padding-block: 6rem 7rem;
	max-width: 48rem;
}

.hero__inner--compact {
	padding-block: 6rem 5rem;
}

@media (min-width: 768px) {
	.hero__inner {
		padding-block: 8rem 9rem;
	}
	.hero__inner--compact {
		padding-block: 8rem 6rem;
	}
}

.badge-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid rgba(0, 65, 34, 0.15);
	background-color: rgba(0, 65, 34, 0.05);
	border-radius: 9999px;
	padding: 0.375rem 1rem;
	margin-bottom: 2rem;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--primary);
}

.badge-pill .icon {
	width: 0.875rem;
	height: 0.875rem;
}

.hero h1 {
	font-size: 2.25rem;
	line-height: 1.1;
}

.hero__lead {
	margin-top: 1.5rem;
	max-width: 42rem;
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--muted-foreground);
}

.hero__actions {
	margin-top: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.hero h1 {
		font-size: 3rem;
	}
	.hero__actions {
		flex-direction: row;
	}
}

@media (min-width: 768px) {
	.hero h1 {
		font-size: 3.75rem;
	}
	.hero__lead {
		font-size: 1.25rem;
	}
}

.text-primary {
	color: var(--primary);
}

/* ==========================================================================
   7. Titres de section
   ========================================================================== */

.eyebrow {
	margin-bottom: 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--primary);
}

.section-head {
	margin-inline: auto;
	margin-bottom: 3.5rem;
	max-width: 42rem;
	text-align: center;
}

.section-head h2,
.section-title {
	font-size: 1.875rem;
	line-height: 1.25;
}

.section-head p:not(.eyebrow) {
	margin-top: 1rem;
	color: var(--muted-foreground);
	line-height: 1.7;
}

@media (min-width: 768px) {
	.section-head h2,
	.section-title {
		font-size: 2.25rem;
	}
}

/* ==========================================================================
   8. Grilles et cartes
   ========================================================================== */

.grid {
	display: grid;
	gap: 1.25rem;
}

.grid--2 {
	grid-template-columns: 1fr;
}

.grid--4 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
}

@media (min-width: 640px) {
	.grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 3rem;
	}
}

.card {
	height: 100%;
	border: 1px solid rgba(227, 225, 221, 0.6);
	border-radius: 1rem;
	background-color: var(--card);
	padding: 1.75rem;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card--hover:hover {
	border-color: var(--border);
	box-shadow: 0 10px 30px rgba(0, 65, 34, 0.05);
}

.card--sm {
	padding: 1.5rem;
}

.card h3 {
	margin-bottom: 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
}

.card p {
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--muted-foreground);
}

.icon-badge {
	display: flex;
	height: 2.75rem;
	width: 2.75rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	margin-bottom: 1rem;
	background-color: rgba(0, 65, 34, 0.08);
	color: var(--primary);
}

.icon-badge--sm {
	height: 2.5rem;
	width: 2.5rem;
	margin-bottom: 0;
}

.icon-badge--amber {
	background-color: rgba(217, 119, 6, 0.08);
	color: var(--amber);
}

.icon-badge--emerald {
	background-color: rgba(5, 150, 105, 0.08);
	color: var(--emerald);
}

.icon-badge--rose {
	background-color: rgba(244, 63, 94, 0.08);
	color: var(--rose);
}

.icon-badge--violet {
	background-color: rgba(124, 58, 237, 0.08);
	color: var(--violet);
}

.icon-badge--sky {
	background-color: rgba(2, 132, 199, 0.08);
	color: var(--sky);
}

/* ==========================================================================
   9. Statistiques
   ========================================================================== */

.stat {
	text-align: center;
}

.stat__icon {
	margin-inline: auto;
	margin-bottom: 0.75rem;
	display: flex;
	height: 2.5rem;
	width: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	background-color: rgba(0, 65, 34, 0.08);
	color: var(--primary);
}

.stat__value {
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.stat__label {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

@media (min-width: 768px) {
	.stat__value {
		font-size: 2.25rem;
	}
}

/* ==========================================================================
   10. Section mission (2 colonnes)
   ========================================================================== */

.split {
	display: grid;
	gap: 4rem;
	align-items: center;
	grid-template-columns: 1fr;
}

.split--top {
	align-items: start;
}

@media (min-width: 768px) {
	.split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.split__body p {
	margin-top: 1.25rem;
	color: var(--muted-foreground);
	line-height: 1.75;
}

.split__body p + p {
	margin-top: 1rem;
}

.tile-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.tile-grid__col {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tile-grid__col--offset {
	margin-top: 2rem;
}

.tile {
	border-radius: 1rem;
	border: 1px solid rgba(0, 65, 34, 0.1);
	background-image: linear-gradient(
		to bottom right,
		rgba(0, 65, 34, 0.1),
		rgba(0, 65, 34, 0.05)
	);
	padding: 1.5rem;
}

.tile .icon {
	width: 2rem;
	height: 2rem;
	margin-bottom: 0.75rem;
	color: var(--primary);
}

.tile__title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--foreground);
}

.tile__sub {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	color: var(--muted-foreground);
}

.tile--emerald {
	border-color: rgba(5, 150, 105, 0.1);
	background-image: linear-gradient(
		to bottom right,
		rgba(5, 150, 105, 0.1),
		rgba(5, 150, 105, 0.05)
	);
}

.tile--emerald .icon {
	color: var(--emerald);
}

.tile--amber {
	border-color: rgba(217, 119, 6, 0.1);
	background-image: linear-gradient(
		to bottom right,
		rgba(217, 119, 6, 0.1),
		rgba(217, 119, 6, 0.05)
	);
}

.tile--amber .icon {
	color: var(--amber);
}

.tile--rose {
	border-color: rgba(244, 63, 94, 0.1);
	background-image: linear-gradient(
		to bottom right,
		rgba(244, 63, 94, 0.1),
		rgba(244, 63, 94, 0.05)
	);
}

.tile--rose .icon {
	color: var(--rose);
}

/* ==========================================================================
   11. Témoignages
   ========================================================================== */

.grid--3 {
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.testimonial {
	display: flex;
	height: 100%;
	flex-direction: column;
}

.testimonial > .icon {
	width: 2rem;
	height: 2rem;
	margin-bottom: 1rem;
	color: rgba(0, 65, 34, 0.2);
}

.testimonial__quote {
	flex: 1;
	font-style: italic;
	font-size: 0.875rem;
	line-height: 1.75;
	color: var(--muted-foreground);
}

.testimonial__meta {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(227, 225, 221, 0.5);
}

.testimonial__author {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--foreground);
}

.testimonial__location {
	margin-top: 0.125rem;
	font-size: 0.75rem;
	color: var(--muted-foreground);
}

/* ==========================================================================
   12. Bandeau d'appel à l'action
   ========================================================================== */

.cta-banner {
	position: relative;
	overflow: hidden;
	border-radius: 1.5rem;
	background-image: linear-gradient(
		to bottom right,
		var(--primary),
		var(--primary-dark)
	);
	padding: 4rem 2rem;
	text-align: center;
}

.cta-banner::before,
.cta-banner::after {
	content: "";
	position: absolute;
	border-radius: 9999px;
	pointer-events: none;
}

.cta-banner::before {
	top: 0;
	right: 0;
	width: 16rem;
	height: 16rem;
	background-color: rgba(255, 255, 255, 0.06);
	transform: translate(33%, -50%);
}

.cta-banner::after {
	bottom: 0;
	left: 0;
	width: 12rem;
	height: 12rem;
	background-color: rgba(255, 255, 255, 0.04);
	transform: translate(-33%, 50%);
}

.cta-banner__inner {
	position: relative;
	z-index: 1;
}

.cta-banner h2 {
	font-size: 1.875rem;
	color: #fff;
}

.cta-banner p {
	margin-top: 1rem;
	margin-inline: auto;
	max-width: 36rem;
	line-height: 1.7;
	color: rgba(252, 252, 252, 0.8);
}

.cta-banner__actions {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.cta-banner__actions {
		flex-direction: row;
	}
}

@media (min-width: 768px) {
	.cta-banner {
		padding: 5rem 4rem;
	}
	.cta-banner h2 {
		font-size: 2.25rem;
	}
}

/* ==========================================================================
   13. Page À propos
   ========================================================================== */

.fact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.fact {
	border: 1px solid rgba(227, 225, 221, 0.6);
	border-radius: 1rem;
	background-color: var(--card);
	padding: 1.25rem;
}

.fact .icon {
	color: var(--primary);
	margin-bottom: 0.5rem;
}

.fact__value {
	font-size: 1.5rem;
	font-weight: 700;
}

.fact__label {
	margin-top: 0.125rem;
	font-size: 0.75rem;
	color: var(--muted-foreground);
}

.fact__note {
	margin-top: 0.375rem;
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--primary);
}

.timeline {
	position: relative;
	margin-inline: auto;
	max-width: 42rem;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 19px;
	top: 0;
	bottom: 0;
	width: 1px;
	background-color: var(--border);
}

.timeline__list {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	list-style: none;
}

.timeline__item {
	display: flex;
	gap: 1.5rem;
}

.timeline__dot {
	position: relative;
	z-index: 1;
	display: flex;
	height: 2.5rem;
	width: 2.5rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--primary);
	border-radius: 9999px;
	background-color: var(--background);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--primary);
}

.timeline__body {
	padding-top: 0.375rem;
}

.timeline__year {
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--primary);
}

.timeline__body h3 {
	font-size: 1.125rem;
	font-weight: 600;
}

.timeline__body p {
	margin-top: 0.375rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--muted-foreground);
}

.member__avatar {
	display: flex;
	height: 3rem;
	width: 3rem;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	border-radius: 9999px;
	background-color: rgba(0, 65, 34, 0.1);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--primary);
}

.member h3 {
	margin-bottom: 0;
	font-size: 1rem;
	font-weight: 600;
}

.member__role {
	margin-top: 0.125rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--primary);
}

.member p:last-child {
	margin-top: 0.75rem;
}

/* ==========================================================================
   14. Page Nos actions
   ========================================================================== */

.program-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	list-style: none;
}

.program {
	overflow: hidden;
	border: 1px solid rgba(0, 65, 34, 0.1);
	border-radius: 1rem;
	background-color: var(--card);
	padding: 2rem;
}

.program--amber {
	border-color: rgba(217, 119, 6, 0.12);
}
.program--emerald {
	border-color: rgba(5, 150, 105, 0.12);
}
.program--rose {
	border-color: rgba(244, 63, 94, 0.12);
}
.program--violet {
	border-color: rgba(124, 58, 237, 0.12);
}
.program--sky {
	border-color: rgba(2, 132, 199, 0.12);
}

.program__head {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.program__icon {
	display: flex;
	height: 3.5rem;
	width: 3.5rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 1rem;
	background-image: linear-gradient(
		to bottom right,
		rgba(0, 65, 34, 0.1),
		rgba(0, 65, 34, 0.05)
	);
	color: var(--primary);
}

.program__icon .icon {
	width: 1.5rem;
	height: 1.5rem;
}

.program--amber .program__icon {
	background-image: linear-gradient(
		to bottom right,
		rgba(217, 119, 6, 0.1),
		rgba(217, 119, 6, 0.05)
	);
	color: var(--amber);
}
.program--emerald .program__icon {
	background-image: linear-gradient(
		to bottom right,
		rgba(5, 150, 105, 0.1),
		rgba(5, 150, 105, 0.05)
	);
	color: var(--emerald);
}
.program--rose .program__icon {
	background-image: linear-gradient(
		to bottom right,
		rgba(244, 63, 94, 0.1),
		rgba(244, 63, 94, 0.05)
	);
	color: var(--rose);
}
.program--violet .program__icon {
	background-image: linear-gradient(
		to bottom right,
		rgba(124, 58, 237, 0.1),
		rgba(124, 58, 237, 0.05)
	);
	color: var(--violet);
}
.program--sky .program__icon {
	background-image: linear-gradient(
		to bottom right,
		rgba(2, 132, 199, 0.1),
		rgba(2, 132, 199, 0.05)
	);
	color: var(--sky);
}

.program__subtitle {
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--primary);
}

.program__title {
	margin-bottom: 0.75rem;
	font-size: 1.5rem;
}

.program__desc {
	max-width: 42rem;
	line-height: 1.75;
	color: var(--muted-foreground);
}

.program__details {
	margin-top: 2rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	list-style: none;
}

.program__details li {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

.program__details li::before {
	content: "";
	margin-top: 0.5rem;
	height: 6px;
	width: 6px;
	flex-shrink: 0;
	border-radius: 9999px;
	background-color: rgba(0, 65, 34, 0.4);
}

@media (min-width: 640px) {
	.program__details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.program {
		padding: 2.5rem;
	}
	.program__head {
		flex-direction: row;
		align-items: flex-start;
	}
	.program__details {
		margin-left: 76px;
	}
}

.impact-stat {
	text-align: center;
	padding: 1.5rem;
}

.impact-stat__value {
	font-size: 1.875rem;
	font-weight: 700;
}

.impact-stat__label {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

.impact-area {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.5rem;
}

.impact-area h3 {
	margin-bottom: 0;
	font-size: 1rem;
	font-weight: 600;
}

.impact-area p {
	margin-top: 0.25rem;
}

/* ==========================================================================
   15. Page Don
   ========================================================================== */

.donate-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.donate-layout {
		grid-template-columns: 3fr 2fr;
	}
}

.tier-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.tier-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tier {
	position: relative;
	width: 100%;
	text-align: left;
	border: 1px solid rgba(227, 225, 221, 0.6);
	border-radius: 1rem;
	background-color: var(--card);
	padding: 1.5rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.tier:hover {
	border-color: var(--border);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tier.is-selected {
	border-color: var(--primary);
	background-color: rgba(0, 65, 34, 0.03);
	box-shadow: 0 4px 16px rgba(0, 65, 34, 0.06);
}

.tier__flag {
	position: absolute;
	top: -10px;
	right: 1rem;
	display: inline-flex;
	align-items: center;
	border-radius: 9999px;
	background-color: var(--primary);
	padding: 0.125rem 0.625rem;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--primary-foreground);
}

.tier__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.tier__icon {
	display: flex;
	height: 2.5rem;
	width: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	background-color: rgba(0, 65, 34, 0.08);
	color: var(--primary);
}

.tier.is-selected .tier__icon {
	background-color: var(--primary);
	color: var(--primary-foreground);
}

.tier__radio {
	display: flex;
	height: 1.25rem;
	width: 1.25rem;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--border);
	border-radius: 9999px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tier.is-selected .tier__radio {
	border-color: var(--primary);
	background-color: var(--primary);
}

.tier__radio .icon {
	width: 0.75rem;
	height: 0.75rem;
	color: var(--primary-foreground);
	opacity: 0;
}

.tier.is-selected .tier__radio .icon {
	opacity: 1;
}

.tier__amount {
	font-size: 1.5rem;
	font-weight: 700;
}

.tier__desc {
	margin-top: 0.375rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--muted-foreground);
}

.custom-amount {
	margin-top: 1.5rem;
	border: 1px solid rgba(227, 225, 221, 0.6);
	border-radius: 1rem;
	background-color: var(--card);
	padding: 1.5rem;
}

.custom-amount__row {
	display: flex;
	gap: 0.75rem;
}

.field-label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--foreground);
}

.field {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: 0.75rem;
	background-color: var(--background);
	padding: 0.625rem 1rem;
	font-size: 0.875rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field::placeholder {
	color: var(--muted-foreground);
}

.field:focus {
	outline: none;
	border-color: rgba(0, 65, 34, 0.4);
	box-shadow: 0 0 0 3px rgba(0, 65, 34, 0.12);
}

textarea.field {
	resize: vertical;
}

.donate-side {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.side-card h3 {
	margin-bottom: 1.25rem;
	font-size: 1rem;
	font-weight: 600;
}

.breakdown {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	list-style: none;
}

.breakdown li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.breakdown__icon {
	display: flex;
	height: 2rem;
	width: 2rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 0.5rem;
	background-color: rgba(0, 65, 34, 0.08);
	color: var(--primary);
}

.breakdown__icon .icon {
	width: 1rem;
	height: 1rem;
}

.breakdown__body {
	flex: 1;
	min-width: 0;
}

.breakdown__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.125rem;
}

.breakdown__title {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--foreground);
}

.breakdown__pct {
	margin-left: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--primary);
}

.breakdown__desc {
	font-size: 0.75rem;
	color: var(--muted-foreground);
}

.trust-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	list-style: none;
}

.trust-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

.trust-list .icon {
	width: 1rem;
	height: 1rem;
	margin-top: 0.25rem;
	color: var(--emerald);
}

/* ==========================================================================
   16. Page Contact
   ========================================================================== */

.contact-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.contact-layout {
		grid-template-columns: 2fr 3fr;
	}
}

.contact-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	list-style: none;
}

.contact-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	border: 1px solid rgba(227, 225, 221, 0.6);
	border-radius: 1rem;
	background-color: var(--card);
	padding: 1.25rem;
}

.contact-item__title {
	margin-bottom: 0.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--foreground);
}

.contact-item p {
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

.form-card {
	border: 1px solid rgba(227, 225, 221, 0.6);
	border-radius: 1rem;
	background-color: var(--card);
	padding: 2rem;
}

.form-card__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.form-card__head h2 {
	font-size: 1.125rem;
	font-weight: 600;
}

.form-card__head p {
	font-size: 0.75rem;
	color: var(--muted-foreground);
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.form-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.form-notice {
	border-radius: 0.75rem;
	padding: 0.875rem 1rem;
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
}

.form-notice--ok {
	background-color: rgba(5, 150, 105, 0.08);
	color: #04704b;
	border: 1px solid rgba(5, 150, 105, 0.2);
}

.form-notice--error {
	background-color: rgba(212, 9, 36, 0.06);
	color: var(--destructive);
	border: 1px solid rgba(212, 9, 36, 0.2);
}

.honeypot {
	position: absolute !important;
	left: -9999px;
}

/* ==========================================================================
   17. Pied de page
   ========================================================================== */

.site-footer {
	border-top: 1px solid rgba(227, 225, 221, 0.5);
	background-color: rgba(243, 242, 238, 0.3);
}

.site-footer__inner {
	padding-block: 4rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

@media (min-width: 768px) {
	.footer-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.footer-about {
	margin-top: 1rem;
	max-width: 20rem;
	font-size: 0.875rem;
	line-height: 1.75;
	color: var(--muted-foreground);
}

.footer-col h2 {
	margin-bottom: 1rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.footer-col ul {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	list-style: none;
}

.footer-col a {
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

.footer-col a:hover {
	color: var(--primary);
}

.footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 0.875rem;
	color: var(--muted-foreground);
	margin-bottom: 0.75rem;
}

.footer-contact .icon {
	width: 1rem;
	height: 1rem;
	margin-top: 0.125rem;
	color: rgba(0, 65, 34, 0.7);
}

.footer-bottom {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(227, 225, 221, 0.5);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.footer-bottom p {
	font-size: 0.75rem;
	color: var(--muted-foreground);
	text-align: center;
}

@media (min-width: 640px) {
	.footer-bottom {
		flex-direction: row;
	}
	.footer-bottom p {
		text-align: left;
	}
}

/* ==========================================================================
   18. Contenu éditorial (pages/articles WordPress)
   ========================================================================== */

.entry {
	max-width: 48rem;
	margin-inline: auto;
}

.entry__title {
	font-size: 2.25rem;
	margin-bottom: 1.5rem;
}

.entry-content > * {
	margin-bottom: 1.25rem;
}

.entry-content h2 {
	margin-top: 2.5rem;
	font-size: 1.5rem;
}

.entry-content h3 {
	margin-top: 2rem;
	font-size: 1.25rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5rem;
}

.entry-content li {
	margin-bottom: 0.5rem;
}

.entry-content blockquote {
	margin-inline: 0;
	border-left: 3px solid var(--primary);
	padding-left: 1.25rem;
	font-style: italic;
	color: var(--muted-foreground);
}

.entry-content img {
	border-radius: 1rem;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--border);
	padding: 0.5rem 0.75rem;
	text-align: left;
}

.post-card {
	margin-bottom: 2rem;
}

.post-card h2 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.post-card__meta {
	font-size: 0.75rem;
	color: var(--muted-foreground);
	margin-bottom: 0.75rem;
}

.pagination {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 2rem;
}

.pagination .page-numbers {
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
}

.pagination .current {
	background-color: var(--primary);
	color: var(--primary-foreground);
	border-color: var(--primary);
}

.error-404 {
	text-align: center;
	padding-block: 6rem;
}

.error-404 h1 {
	font-size: 4rem;
	color: var(--primary);
}

.error-404 p {
	margin-block: 1rem 2rem;
	color: var(--muted-foreground);
}

/* Alignements WordPress */
.alignleft {
	float: left;
	margin-right: 1.5rem;
}
.alignright {
	float: right;
	margin-left: 1.5rem;
}
.aligncenter {
	margin-inline: auto;
	display: block;
}
.wp-caption-text {
	font-size: 0.75rem;
	color: var(--muted-foreground);
}

/* ==========================================================================
   19. Réseaux sociaux
   ========================================================================== */

.footer-follow {
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted-foreground);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
	list-style: none;
}

.social-link {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	border: 1px solid var(--border);
	border-radius: 0.75rem;
	background-color: var(--card);
	color: var(--muted-foreground);
	transition: color 0.2s ease, background-color 0.2s ease,
		border-color 0.2s ease, transform 0.2s ease;
}

.social-link__icon {
	display: flex;
	height: 2.5rem;
	width: 2.5rem;
	align-items: center;
	justify-content: center;
}

.social-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.social-link:hover,
.social-link:focus-visible {
	transform: translateY(-2px);
	outline: none;
}

.social-link--facebook:hover,
.social-link--facebook:focus-visible {
	color: #fff;
	background-color: #1877f2;
	border-color: #1877f2;
}

.social-link--tiktok:hover,
.social-link--tiktok:focus-visible {
	color: #fff;
	background-color: #010101;
	border-color: #010101;
}

.social-link--youtube:hover,
.social-link--youtube:focus-visible {
	color: #fff;
	background-color: #ff0000;
	border-color: #ff0000;
}

/* Variante avec libellé (page Contact) */
.social-links--labelled {
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
}

.social-links--labelled .social-link {
	width: 100%;
	padding-right: 1rem;
}

.social-link__label {
	font-size: 0.875rem;
	font-weight: 500;
}

/* Variante menu mobile */
.social-links--nav {
	margin-top: 0.75rem;
	justify-content: center;
}

/* ==========================================================================
   20. Galerie photo
   ========================================================================== */

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.gallery-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (min-width: 1024px) {
	.gallery-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.gallery-item {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	padding: 0;
	border: 1px solid rgba(227, 225, 221, 0.6);
	border-radius: 1rem;
	background-color: var(--muted);
	transition: box-shadow 0.25s ease, border-color 0.25s ease,
		transform 0.25s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
	border-color: rgba(0, 65, 34, 0.25);
	box-shadow: 0 12px 32px rgba(0, 65, 34, 0.1);
	transform: translateY(-2px);
	outline: none;
}

.gallery-item__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-item:hover .gallery-item__img,
.gallery-item:focus-visible .gallery-item__img {
	transform: scale(1.05);
}

.gallery-item__caption {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 2rem 0.875rem 0.75rem;
	background-image: linear-gradient(
		to top,
		rgba(8, 18, 12, 0.75),
		transparent
	);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-item__caption,
.gallery-item:focus-visible .gallery-item__caption {
	opacity: 1;
}

@media (hover: none) {
	.gallery-item__caption {
		opacity: 1;
	}
}

/* ── Visionneuse plein écran ─────────────────────────────────── */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.lightbox[hidden] {
	display: none;
}

.lightbox__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(8, 18, 12, 0.92);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: ampfesr-fade 0.2s ease;
}

@keyframes ampfesr-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.lightbox__figure {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: min(1100px, 100%);
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.lightbox__img {
	max-width: 100%;
	max-height: 78vh;
	width: auto;
	border-radius: 0.75rem;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	animation: ampfesr-zoom 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes ampfesr-zoom {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.lightbox__caption {
	max-width: 42rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.875rem;
	line-height: 1.6;
	text-align: center;
}

.lightbox__caption:empty {
	display: none;
}

.lightbox__btn {
	position: absolute;
	z-index: 2;
	display: flex;
	height: 2.75rem;
	width: 2.75rem;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 9999px;
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: background-color 0.2s ease;
}

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
	background-color: rgba(255, 255, 255, 0.22);
	outline: none;
}

.lightbox__btn--close {
	top: 1.25rem;
	right: 1.25rem;
}

.lightbox__btn--prev {
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__btn--next {
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__btn[hidden] {
	display: none;
}

@media (min-width: 768px) {
	.lightbox__btn--prev {
		left: 2rem;
	}
	.lightbox__btn--next {
		right: 2rem;
	}
}

body.lightbox-open {
	overflow: hidden;
}

/* ==========================================================================
   21. Animations d'apparition
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
		transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
	will-change: opacity, transform;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	html {
		scroll-behavior: auto;
	}
}

/* Barre d'administration WordPress */
.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}
