/* ==========================================================================
   Essomé — feuille de style principale
   ========================================================================== */
:root {
	--green: #006A4E;
	--green-700: #00523C;
	--green-900: #062A1E;
	--yellow: #FECE00;
	--red: #D21035;
	--cream: #FBF7EE;
	--sand: #F3EADA;
	--ink: #14201B;
	--muted: #55625B;
	--line: rgba(20, 32, 27, .12);
	--serif: var(--wp--preset--font-family--serif, "Fraunces", Georgia, serif);
	--sans: var(--wp--preset--font-family--sans, "Figtree", system-ui, sans-serif);
	--radius: 22px;
	--gutter: clamp(20px, 4vw, 40px);
	--wide: 1200px;
	--header-h: 84px;
	--shadow: 0 1px 2px rgba(6, 42, 30, .06), 0 12px 32px -12px rgba(6, 42, 30, .18);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-700); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--green-900); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-optical-sizing: auto; }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 1000;
	background: var(--green-900); color: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none;
	transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Boutons ---------- */
.btn,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--sans); font-weight: 650; font-size: 1rem; line-height: 1.2;
	padding: .95em 1.6em; border-radius: 999px; border: 2px solid transparent;
	background: var(--green); color: #fff; text-decoration: none; cursor: pointer;
	transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover,
.wp-block-button__link:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(6, 42, 30, .5); }
.btn svg { width: 1.05em; height: 1.05em; }
.btn--donate { background: var(--red); color: #fff; }
.btn--donate:hover { background: #A90C2A; color: #fff; }
.btn--primary { background: var(--green); }
.wp-block-button.is-style-outline > .wp-block-button__link,
.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--green-900); border-color: currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.wp-block-buttons { gap: 12px; }
.wp-block-buttons.center { justify-content: center; margin-top: 2.5rem; }

/* ---------- Eyebrow (sur-titre) avec les couleurs du Togo ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before {
	content: ""; width: 30px; height: 6px; border-radius: 3px; flex: none;
	background: linear-gradient(90deg, var(--green) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%);
}

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(251, 247, 238, .92);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(6, 42, 30, .35); }
.site-header__inner {
	max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
	height: var(--header-h); display: flex; align-items: center; gap: 28px;
}
.site-logo { display: block; flex: none; line-height: 0; }
.site-logo__img { height: 58px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav .menu a {
	position: relative; display: block; padding: 10px 12px; border-radius: 10px;
	color: var(--ink); font-weight: 600; font-size: .97rem; text-decoration: none; white-space: nowrap;
	transition: color .2s, background-color .2s;
}
.site-nav .menu a:hover { color: var(--green); background: rgba(0, 106, 78, .06); }
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current_page_item > a { color: var(--green); }
.site-nav .menu .current-menu-item > a::after,
.site-nav .menu .current_page_item > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--yellow);
}
.site-nav .sub-menu { display: none; }
.site-nav__donate { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__donate { padding: .75em 1.25em; font-size: .95rem; white-space: nowrap; flex: none; }
.site-header__actions { flex: none; }

/* ---------- Sélecteur de langue à drapeaux ---------- */
.lang-switch { position: relative; }
.lang-switch .flag {
	width: 24px; height: 16px; border-radius: 3px; flex: none; display: block;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.lang-switch__btn {
	display: inline-flex; align-items: center; gap: 8px;
	font: 700 .88rem/1 var(--sans); letter-spacing: .04em; color: var(--ink);
	background: #fff; border: 1px solid var(--line); border-radius: 999px;
	padding: 9px 12px 9px 10px; cursor: pointer;
	transition: border-color .2s, box-shadow .2s;
}
.lang-switch__btn:hover { border-color: rgba(0, 106, 78, .4); }
.lang-switch__chev { width: 11px; height: 8px; transition: transform .25s var(--ease); }
.lang-switch.is-open .lang-switch__chev { transform: rotate(180deg); }
.lang-switch__menu {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 20;
	min-width: 200px; list-style: none; margin: 0; padding: 6px;
	background: #fff; border-radius: 16px; border: 1px solid var(--line);
	box-shadow: 0 24px 48px -20px rgba(6, 42, 30, .35);
	opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
	transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.lang-switch.is-open .lang-switch__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.lang-switch__menu a {
	display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
	color: var(--ink); text-decoration: none; font-weight: 550; font-size: .97rem;
}
.lang-switch__menu a:hover, .lang-switch__menu a:focus-visible { background: var(--sand); color: var(--ink); }
.lang-switch__menu a[aria-current] { font-weight: 750; color: var(--green-900); }
.lang-switch__check { width: 16px; height: 16px; margin-left: auto; color: var(--green); }
.lang-switch--footer .lang-switch__menu { top: auto; bottom: calc(100% + 10px); transform-origin: bottom right; }

/* ---------- Bouton menu mobile ---------- */
.nav-toggle {
	display: none; width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0;
	align-items: center; justify-content: center;
}
.nav-toggle__bars { position: relative; width: 20px; height: 14px; display: block; }
.nav-toggle__bars span {
	position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ink);
	transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 1140px) {
	:root { --header-h: 74px; }
	.site-logo__img { height: 50px; }
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
	.nav-toggle { display: inline-flex; }
	.site-header__donate { display: none; }
	.site-header__actions { margin-left: auto; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; margin: 0;
		background: var(--cream); padding: 24px var(--gutter) 40px; overflow-y: auto;
		display: flex; flex-direction: column; gap: 24px;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu li { border-bottom: 1px solid var(--line); }
	.site-nav .menu a { font-family: var(--serif); font-size: 1.6rem; font-weight: 550; padding: 16px 4px; border-radius: 0; }
	.site-nav .menu a:hover { background: transparent; }
	.site-nav .menu .current-menu-item > a::after,
	.site-nav .menu .current_page_item > a::after { left: 4px; right: auto; width: 34px; bottom: 10px; }
	.site-nav__donate { display: inline-flex; align-self: flex-start; font-size: 1.05rem; }
	body.nav-open { overflow: hidden; }
}
/* ---------- Menu replié automatiquement quand il ne tient pas sur une ligne (ajouté par JS) ---------- */
html.nav-collapsed { --header-h: 74px; }
html.nav-collapsed .site-logo__img { height: 50px; }
html.nav-collapsed .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
html.nav-collapsed .nav-toggle { display: inline-flex; }
html.nav-collapsed .site-header__donate { display: none; }
html.nav-collapsed .site-header__actions { margin-left: auto; }
html.nav-collapsed .site-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; margin: 0;
		background: var(--cream); padding: 24px var(--gutter) 40px; overflow-y: auto;
		display: flex; flex-direction: column; gap: 24px;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
	}
html.nav-collapsed .admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
html.nav-collapsed .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
html.nav-collapsed .site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
html.nav-collapsed .site-nav .menu li { border-bottom: 1px solid var(--line); }
html.nav-collapsed .site-nav .menu a { font-family: var(--serif); font-size: 1.6rem; font-weight: 550; padding: 16px 4px; border-radius: 0; }
html.nav-collapsed .site-nav .menu a:hover { background: transparent; }
html.nav-collapsed .site-nav .menu .current-menu-item > a::after,
html.nav-collapsed .site-nav .menu .current_page_item > a::after { left: 4px; right: auto; width: 34px; bottom: 10px; }
html.nav-collapsed .site-nav__donate { display: inline-flex; align-self: flex-start; font-size: 1.05rem; }
html.nav-collapsed body.nav-open { overflow: hidden; }

@media (min-width: 1141px) and (max-width: 1480px) {
	.site-nav .menu a { padding: 10px 8px; font-size: .92rem; }
	.site-header__inner { gap: 16px; }
}

/* ==========================================================================
   Contenu & sections
   ========================================================================== */
.entry-content > * { margin-block: 0; }
.entry-content .alignfull { width: 100%; max-width: none; margin-inline: 0; }

.section {
	padding: clamp(64px, 9vw, 128px) var(--gutter);
	position: relative;
}
.section > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.section > .eyebrow { display: flex; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); text-wrap: balance; }
.section > .section-title { max-width: 20ch; margin-left: max(0px, calc((100% - var(--wide)) / 2)); margin-bottom: 3rem; }
.section-who .section-title, .contact-grid .section-title { margin-bottom: .5em; }

.lead, .page-intro { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; color: var(--ink); }
.page-intro { font-family: var(--serif); font-weight: 400; color: var(--green-900); }

/* ---------- Hero (couverture) ---------- */
.wp-block-cover.hero { padding: 0 var(--gutter) clamp(56px, 10vh, 120px); align-items: flex-end; overflow: hidden; }
.wp-block-cover.hero .wp-block-cover__background {
	background: linear-gradient(15deg, rgba(6, 42, 30, .96) 8%, rgba(6, 42, 30, .62) 48%, rgba(6, 42, 30, .12) 100%) !important;
	opacity: 1 !important;
}
.wp-block-cover.hero .wp-block-cover__image-background { animation: essome-zoom 18s ease-out both; }
@keyframes essome-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.wp-block-cover.hero .wp-block-cover__inner-container { max-width: var(--wide); width: 100%; margin: 0 auto; color: #fff; }
.wp-block-cover.hero .wp-block-cover__inner-container > * { max-width: 760px; margin-left: 0; margin-right: auto; }
.hero .eyebrow { color: var(--yellow); }
.hero-title {
	color: #fff !important; font-size: clamp(2.6rem, 6.4vw, 5.4rem) !important; line-height: 1.02 !important;
	letter-spacing: -.025em; font-weight: 600; margin-bottom: 1.5rem !important; max-width: 14ch !important; text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--yellow); font-weight: 500; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .88); max-width: 560px !important; margin-bottom: 2rem; }
.hero .wp-block-button__link { background: var(--yellow); color: var(--green-900); }
.hero .wp-block-button__link:hover { background: #fff; color: var(--green-900); }
.hero .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--green-900); border-color: #fff; }

/* ---------- Bloc texte + image ---------- */
.split { gap: clamp(32px, 6vw, 88px) !important; align-items: center !important; }
.split > .wp-block-column { min-width: 0; }
.img-frame { position: relative; isolation: isolate; margin: 0 18px 18px 0; }
.img-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; }
.img-frame::before {
	content: ""; position: absolute; inset: 28px -18px -18px 28px; z-index: -1;
	background: var(--yellow); border-radius: var(--radius);
}
.split-reverse .img-frame::before { background: var(--green); inset: 28px 28px -18px -18px; }
.split-reverse .img-frame { margin: 0 0 18px 18px; }
.section-who .wp-block-column > h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
.essome-word {
	background: #fff; border-radius: 16px; padding: 18px 22px; border-left: 5px solid var(--red);
	font-size: 1.05rem; box-shadow: var(--shadow); margin: 1.75rem 0;
}
.essome-word strong { color: var(--green); }

/* ---------- Vision ---------- */
.section-vision { background: var(--green-900); color: rgba(251, 247, 238, .86); overflow: hidden; }
.section-vision::before {
	content: "“"; position: absolute; right: max(var(--gutter), calc((100% - var(--wide)) / 2)); top: -.12em;
	font: italic 600 clamp(14rem, 28vw, 26rem)/1 var(--serif); color: var(--yellow); opacity: .1; pointer-events: none;
}
.section-vision .eyebrow { color: var(--yellow); }

.vision-quote {
	font-family: var(--serif); font-style: italic; font-weight: 400;
	font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.14; letter-spacing: -.015em;
	color: #fff; max-width: 22ch; margin: 0 0 3rem; text-wrap: balance;
}
.section-vision > .vision-quote { max-width: 22ch; margin-left: max(0px, calc((100% - var(--wide)) / 2)); }
.vision-cols { gap: clamp(24px, 5vw, 64px) !important; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.vision-cols p { font-size: 1.1rem; }
.vision-cols strong { color: var(--yellow); font-weight: 650; }

/* ---------- Cartes ---------- */
.section-domains { background: var(--sand); }
.cards { gap: 24px !important; }
.card {
	background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
	display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(6, 42, 30, .06), 0 28px 48px -20px rgba(6, 42, 30, .32); }
.card > .wp-block-image { margin: 0; overflow: hidden; }
.card > .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.card:hover > .wp-block-image img { transform: scale(1.04); }
.card > :not(.wp-block-image) { padding-inline: 28px; }
.card > h3 { font-size: 1.55rem; margin: 26px 0 10px; }
.card > p { color: var(--muted); }
.card .card-link { margin-top: auto; padding-bottom: 26px; }
.card .card-link a { font-weight: 700; text-decoration: none; }
.card .card-link a:hover { text-decoration: underline; }
.card-plain { padding-top: 8px; border-top: 6px solid var(--green); }
.card-plain:nth-child(2) { border-top-color: var(--yellow); }
.card-plain:nth-child(3) { border-top-color: var(--red); }
.card-plain > p:last-child { padding-bottom: 26px; }
.section-domains .cards-3 > .card:nth-child(1) h3 { color: var(--green); }

/* ---------- Chiffres clés ---------- */
.section-stats { background: var(--green); color: #fff; }
.section-stats .eyebrow { color: var(--yellow); }
.section-stats .eyebrow::before { background: linear-gradient(90deg, #fff 0 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%); }
.stats-wrap { gap: clamp(32px, 6vw, 80px) !important; align-items: center !important; }
.stats-intro { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; color: #fff; }
.stats-grid { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 0 !important; margin: 0 !important; }
.stats-grid > .stat { padding: 28px 24px; border-top: 1px solid rgba(255, 255, 255, .22); }
.stats-grid > .stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .22); }
.stat-number {
	font-family: var(--serif); font-weight: 600; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1;
	color: var(--yellow); margin: 0 0 .35rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.stat-label { margin: 0; font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }

/* ---------- Dernières actions ---------- */
.card-action { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.card-action:hover { transform: none; box-shadow: none; }
.card-action > .wp-block-image { border-radius: var(--radius); }
.card-action > .wp-block-image img { aspect-ratio: 3 / 4; }
.card-action > :not(.wp-block-image) { padding-inline: 0; }
.card-meta { margin: 18px 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.card-action h3 { font-size: 1.3rem; margin: 0; }
.card-action h3 a { color: var(--green-900); text-decoration: none; background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 3px no-repeat; transition: background-size .35s var(--ease); }
.card-action h3 a:hover { background-size: 100% 3px; }

/* ---------- Appel à l'action ---------- */
.section-cta { background: var(--yellow); text-align: center; overflow: hidden; }
.section-cta > * { max-width: 820px; }
.cta-title { font-size: clamp(1.9rem, 4vw, 3rem); text-wrap: balance; }
.section-cta p { font-size: 1.15rem; color: var(--green-900); }
.section-cta .wp-block-buttons { justify-content: center; margin-top: 2rem; }
.section-cta .wp-block-button__link { background: var(--green-900); }
.section-cta .wp-block-button__link:hover { background: var(--green); }
.section-cta .is-style-outline .wp-block-button__link { background: transparent; color: var(--green-900); }
.section-cta .is-style-outline .wp-block-button__link:hover { background: var(--green-900); color: var(--yellow); }

/* ---------- En-tête des pages intérieures ---------- */
.page-hero { position: relative; background: var(--green-900); color: #fff; padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(48px, 6vw, 80px); overflow: hidden; }
.page-hero::after {
	content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%;
	background: radial-gradient(circle, rgba(254, 206, 0, .22), rgba(254, 206, 0, 0) 70%); pointer-events: none;
}
.page-hero__inner { max-width: var(--wide); margin: 0 auto; position: relative; z-index: 1; }
.page-hero__title { color: #fff; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; margin: 0; max-width: 16ch; }
.page-hero__crumbs { display: flex; gap: 10px; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .65); margin-bottom: 18px; }
.page-hero__crumbs a { color: var(--yellow); text-decoration: none; }
.page-hero__stripe, .site-footer__stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; display: flex; }
.page-hero__stripe span, .site-footer__stripe span { flex: 1; }
.page-hero__stripe span:nth-child(1), .site-footer__stripe span:nth-child(1) { background: var(--green); }
.page-hero__stripe span:nth-child(2), .site-footer__stripe span:nth-child(2) { background: var(--yellow); }
.page-hero__stripe span:nth-child(3), .site-footer__stripe span:nth-child(3) { background: var(--red); }

/* ---------- Équipe ---------- */
.section-team { background: var(--cream); }
.team { gap: 28px !important; }
.team-member { text-align: left; }
.team-photo { margin: 0 0 18px; }
.team-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% var(--radius) var(--radius); filter: grayscale(.15); transition: filter .4s, border-radius .5s var(--ease); }
.team-member:hover .team-photo img { filter: none; border-radius: var(--radius); }
.team-member h3 { font-size: 1.3rem; margin: 0 0 4px; }
.team-role { color: var(--red); font-weight: 650; font-size: .95rem; margin: 0; }

/* ---------- Missions ---------- */
.section-mission:nth-of-type(even) { background: var(--sand); }
.mission-num {
	font-family: var(--serif); font-size: 4.5rem; line-height: 1; font-weight: 700; margin: 0 0 .25rem;
	color: transparent; -webkit-text-stroke: 1.5px var(--green); letter-spacing: -.02em;
}
.section-mission h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.section-mission .lead { font-family: var(--serif); color: var(--green); font-size: 1.3rem; }

/* ---------- Actions ---------- */
.section-intro { padding-bottom: 0; }
.section-intro .page-intro { font-size: clamp(1.3rem, 2.4vw, 1.75rem); max-width: 760px; }
.section-action { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.section-action + .section-action { border-top: 1px solid var(--line); }
.section-action > p:not(.action-meta), .section-action > h2, .section-action > h3, .section-action > .wp-block-list, .section-action > .wp-block-buttons {
	max-width: 760px; margin-left: max(0px, calc((100% - var(--wide)) / 2)); margin-right: auto;
}
.section-action > h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.action-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; color: var(--muted); font-size: .95rem; }
.action-meta .tag { background: var(--green); color: #fff; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.section-action .wp-block-gallery { margin-top: 2.5rem; gap: 14px !important; }
.section-action .wp-block-gallery .wp-block-image img { border-radius: 16px; }
.wp-block-gallery.has-nested-images figure.wp-block-image { border-radius: 16px; overflow: hidden; }

/* ---------- Pages de texte (adhésion, FAQ, mentions) ---------- */
.section-text > * { max-width: 760px; }
.section-text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.5rem; }
.section-text h2:first-child { margin-top: 0; }
.section-legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem auto 2rem; }
ol.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 64px; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
ol.steps li::before {
	content: counter(s); position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
	background: var(--green); color: #fff; font: 600 1.15rem/1 var(--serif);
}
.note { background: var(--sand); border-radius: 14px; padding: 16px 20px; font-size: .97rem; color: var(--green-900); }
.section-who .note { background: transparent; padding: 0; margin-top: 1.5rem; }

/* FAQ */
.section-faq .wp-block-details { border-bottom: 1px solid var(--line); padding: 0; margin: 0 auto; }
.section-faq .wp-block-details:first-child { border-top: 1px solid var(--line); }
.wp-block-details summary {
	list-style: none; cursor: pointer; position: relative; padding: 24px 56px 24px 0;
	font: 600 1.2rem/1.35 var(--serif); color: var(--green-900);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: ""; position: absolute; right: 4px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
	background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23062A1E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
	transition: transform .3s var(--ease), background-color .2s;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); }
.wp-block-details summary:hover { color: var(--green); }
.wp-block-details > p { padding: 0 56px 24px 0; color: var(--muted); margin: 0; }
.faq-ask { margin-top: 4rem; background: var(--green-900); color: #fff; border-radius: var(--radius); padding: 40px; text-align: center; }
.faq-ask h2 { color: #fff; margin: 0 0 .4rem !important; }
.faq-ask .wp-block-buttons { justify-content: center; margin-top: 1.25rem; }
.faq-ask .wp-block-button__link { background: var(--yellow); color: var(--green-900); }

/* ---------- Contact ---------- */
.contact-grid { gap: 28px !important; align-items: stretch !important; }
.contact-info { background: var(--green-900); color: rgba(255, 255, 255, .86); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.contact-info .section-title { color: #fff; font-size: clamp(2rem, 3.5vw, 2.6rem); }
.contact-info a { color: var(--yellow); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; color: var(--yellow); }
.contact-label { font: 700 .78rem/1 var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow) !important; margin: 2rem 0 .6rem !important; }
.contact-form-col { background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.contact-form-col .section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Formulaire */
.essome-form .hp { position: absolute; left: -9999px; }
.essome-form .form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.essome-form .field { margin: 0 0 18px; }
.essome-form label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 6px; color: var(--green-900); }
.essome-form .req { color: var(--red); }
.essome-form input[type=text], .essome-form input[type=email], .essome-form textarea {
	width: 100%; font: inherit; color: var(--ink); background: var(--cream);
	border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.essome-form input:focus, .essome-form textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(0, 106, 78, .12); }
.essome-form textarea { resize: vertical; min-height: 150px; }
.essome-form .field--check { display: flex; gap: 12px; align-items: flex-start; }
.essome-form .field--check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green); }
.essome-form .field--check label { font-weight: 500; color: var(--muted); margin: 0; }
.essome-form button { border: 0; }
.form-notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.form-notice--ok { background: rgba(0, 106, 78, .1); color: var(--green-700); }
.form-notice--err { background: rgba(210, 16, 53, .08); color: #A90C2A; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: clamp(80px, 14vw, 160px) var(--gutter); max-width: 640px; margin: 0 auto; }
.error-404__code { font: 700 clamp(6rem, 18vw, 11rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 2px var(--green); margin: 0; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { position: relative; background: var(--sand); color: var(--ink); }
.site-footer .site-footer__stripe { position: static; }
.site-footer__main {
	max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(56px, 7vw, 88px) var(--gutter) 48px;
	display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1fr; gap: 40px;
}
.site-footer__brand .site-logo__img { height: 72px; }
.site-footer__motto { font: italic 500 1.25rem/1.3 var(--serif); color: var(--green); margin: 18px 0 8px; }
.site-footer__brand p:last-child { color: var(--muted); max-width: 36ch; font-size: .97rem; }
.site-footer__title { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 8px 0 18px; }
.site-footer .menu, .site-footer__contact { list-style: none; margin: 0; padding: 0; }
.site-footer .menu li, .site-footer__contact li { margin-bottom: 10px; }
.site-footer .menu a, .site-footer__contact a { color: var(--ink); text-decoration: none; }
.site-footer .menu a:hover, .site-footer__contact a:hover { color: var(--green); text-decoration: underline; }
.site-footer__contact li { color: var(--muted); }
.site-footer__social { display: flex; gap: 10px; margin-bottom: 22px; }
.site-footer__social a {
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	background: #fff; color: var(--green-900); border: 1px solid var(--line); transition: background-color .2s, color .2s, transform .2s;
}
.site-footer__social a:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.site-footer__social svg { width: 20px; height: 20px; }
.site-footer__bottom {
	background: var(--green-900); color: rgba(255, 255, 255, .7); font-size: .9rem;
	padding: 18px max(var(--gutter), calc((100% - var(--wide)) / 2));
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom-links { display: flex; align-items: center; gap: 20px; }
.site-footer__bottom a { color: #fff; text-decoration: none; }
.site-footer__bottom a:hover { color: var(--yellow); }
.site-footer__bottom .lang-switch__btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.site-footer__bottom .lang-switch__menu a { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.site-footer__main { grid-template-columns: 1fr 1fr; }
	.cards-4 { flex-wrap: wrap !important; }
	.cards-4 > .wp-block-column { flex-basis: calc(50% - 12px) !important; flex-grow: 0 !important; }
}
@media (max-width: 781px) {
	.stats-wrap > .wp-block-column { flex-basis: 100% !important; }
	.stats-grid { grid-template-columns: 1fr 1fr; }
	.stats-grid > .stat { padding: 22px 16px; }
	.img-frame { margin-right: 14px; }
	.split-reverse { flex-direction: column-reverse; }
	.team { display: grid !important; grid-template-columns: 1fr 1fr; }
	.essome-form .form-row--2 { grid-template-columns: 1fr; }
	.section-action .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(50% - 7px) !important; }
}
@media (max-width: 600px) {
	.site-footer__main { grid-template-columns: 1fr; gap: 32px; }
	.cards-4 > .wp-block-column { flex-basis: 100% !important; }
	.site-header__actions { gap: 8px; }
	.lang-switch--header .lang-switch__code { display: none; }
	.stat-number { font-size: 2.8rem; }
	.wp-block-details summary { font-size: 1.08rem; }
	.wp-block-details > p { padding-right: 0; }
}

/* ---------- Animations d'apparition (désactivées si l'utilisateur préfère moins d'animations) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js-reveal .reveal { opacity: 1; transform: none; }
}
.section-intro > .page-intro { margin-left: max(0px, calc((100% - var(--wide)) / 2)); }

/* ---------- Bouton « remonter en haut » ---------- */
.to-top {
	position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 80;
	width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
	display: grid; place-items: center; color: var(--green-900); background: var(--yellow);
	box-shadow: 0 10px 24px -8px rgba(6, 42, 30, .45), inset 0 0 0 2px rgba(6, 42, 30, .08);
	opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
	transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s, background-color .2s, color .2s;
}
.to-top svg { width: 22px; height: 22px; transition: transform .25s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .35s var(--ease), background-color .2s, color .2s; }
.to-top:hover { background: var(--green-900); color: var(--yellow); }
.to-top:hover svg { transform: translateY(-3px); }
.nav-open .to-top { opacity: 0; visibility: hidden; }

/* ---------- Programme Esgenius ---------- */
.esg-title { font-size: clamp(2.3rem, 4.6vw, 3.6rem) !important; }
.esg-photo img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.section-esg .lead { font-family: var(--serif); color: var(--green-900); }
.section-ambassador { background: var(--green-900); color: rgba(255, 255, 255, .86); overflow: hidden; }
.section-ambassador::before {
	content: ""; position: absolute; left: -160px; bottom: -200px; width: 520px; height: 520px; border-radius: 50%;
	background: radial-gradient(circle, rgba(254, 206, 0, .18), rgba(254, 206, 0, 0) 70%); pointer-events: none;
}
.section-ambassador .eyebrow { color: var(--yellow); }
.section-ambassador .ambassador-quote {
	font: italic 500 clamp(2.4rem, 5vw, 4rem)/1.05 var(--serif); color: #fff; letter-spacing: -.02em; margin: 0 0 1.75rem;
}
.section-ambassador p { font-size: 1.12rem; }
.ambassador-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.75rem; }
.ambassador-tags span {
	font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(254, 206, 0, .55); color: var(--yellow);
}
.ambassador-tags span:first-child { background: var(--yellow); color: var(--green-900); border-color: var(--yellow); }
.ambassador-photo::before { background: var(--red); }
.ambassador-photo img { aspect-ratio: 4 / 5; object-position: 50% 25%; }
.crit-intro { color: var(--muted); font-size: 1.1rem; margin-left: max(0px, calc((100% - var(--wide)) / 2)) !important; max-width: 640px !important; margin-top: -2rem; margin-bottom: 3rem; }
.crit-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px clamp(20px, 4vw, 48px); }
.crit-row { gap: clamp(20px, 4vw, 56px) !important; padding: clamp(24px, 3vw, 36px) 0; margin: 0 !important; border-top: 1px solid var(--line); align-items: flex-start !important; }
.crit-row:first-child { border-top: 0; }
.crit-head { display: flex; flex-direction: column; }
.crit-letter { font: 700 3.2rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1.5px var(--green); margin: 0 0 8px; }
.crit-row:nth-child(2) .crit-letter, .crit-row:nth-child(5) .crit-letter { -webkit-text-stroke-color: #C9A200; }
.crit-row:nth-child(3) .crit-letter { -webkit-text-stroke-color: var(--red); }
.crit-head h3 { font-size: clamp(1.3rem, 2vw, 1.6rem) !important; margin: 0 !important; max-width: 16ch; }
.crit-list { margin: 0; padding-left: 2.2em; display: grid; gap: 14px; }
.crit-list li { padding-left: .4em; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.crit-list li::marker { font: 700 1.15rem var(--serif); color: var(--green); }
.crit-list strong { color: var(--green-900); font-weight: 700; }
@media (max-width: 781px) {
	.crit-row > .wp-block-column { flex-basis: 100% !important; }
	.crit-row { gap: 12px !important; }
	.crit-letter { font-size: 2.4rem; }
	.section-ambassador .split { flex-direction: column-reverse; }
}

/* ---------- Contacts Allemagne / Togo ---------- */
.site-footer__tel-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 2px; }
.contact-note { font-size: .92rem; color: rgba(255, 255, 255, .7); margin-top: -.4rem; }
.esg-apply { margin-top: 28px !important; background: var(--green-900); color: rgba(255, 255, 255, .86); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px) clamp(20px, 4vw, 48px); }
.esg-apply h3 { color: #fff; font-size: 1.4rem; margin: 0 0 .4rem; }
.esg-apply p { margin: 0 0 .6rem; }
.esg-apply .apply-contact { font-size: 1.15rem; margin: .6rem 0 0; }
.esg-apply a { color: var(--yellow); text-decoration: none; }
.esg-apply a:hover { text-decoration: underline; }

/* Tablette portrait : photos empilées moins hautes */
@media (min-width: 560px) and (max-width: 781px) {
	.img-frame img, .esg-photo img, .ambassador-photo img { aspect-ratio: 4 / 3; object-position: 50% 22%; }
}

/* Bannière : cadrage de la photo (l'élève reste visible à droite du titre) */
.wp-block-cover.hero .wp-block-cover__image-background { object-position: 50% 40%; }
