/* Africa For Future – v1.3.2
   Palette volontairement réduite : vert, or, blanc, crème. */

:root {
	color-scheme: only light; /* empêche l’assombrissement automatique par le navigateur */
	--green-950: #06260e;
	--green-900: #0b3d19;
	--green-800: #11521f;
	--green-700: #1a6b2c;
	--gold-500: #c98a06;
	--gold-400: #e8ac1a;
	--gold-300: #f2c34a;
	--cream: #f5f4ef;          /* fond de l’en-tête et des sections .aff-section-cream */
	--cream-section: #f5f4ef;
	--line-grey: #d9d8d1;      /* séparateur de l’en-tête */
	--sep: #cfcdc3;            /* séparateurs fins entre sections */
	--white: #fff;
	--ink: #14230f;
	--muted: #4d5a47;
	--line: rgba(11, 61, 25, .14);

	--font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius: 14px;
	--shadow: 0 1px 2px rgba(11, 61, 25, .06), 0 8px 24px rgba(11, 61, 25, .08);
	--shadow-lg: 0 2px 4px rgba(11, 61, 25, .08), 0 18px 40px rgba(11, 61, 25, .14);
	--maxw: 1180px;
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--white); color: var(--ink);
	font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--green-800); text-underline-offset: .18em; }
a:hover { color: var(--green-700); }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.15; margin: 0 0 .5em; color: var(--green-950); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 1000;
	left: 12px; top: 12px; padding: 12px 18px; background: var(--gold-400); color: var(--green-950); font-weight: 700; border-radius: 8px; text-decoration: none;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 780px; }

/* =====================================================================
   HEADER + MENU PRINCIPAL
   ===================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #f5f4ef;
	border-bottom: 1px solid var(--line-grey);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { max-width: 1400px; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); padding-block: 8px; }
.site-branding { flex: 0 0 auto; line-height: 0; }
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { height: 58px; width: auto; max-width: min(78vw, 300px); object-fit: contain; display: block; }

.site-nav { display: flex; align-items: center; margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.site-nav li { position: relative; }
/* Éléments du menu : majuscules, sans fond ni bouton, séparés par une barre verticale */
.site-nav ul a {
	display: block; padding: 10px 16px; background: none; border-radius: 0;
	color: var(--green-950); font-weight: 600; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
	transition: color .2s;
}
.site-nav ul a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a { background: none; color: var(--green-700); }
.site-nav > ul > li + li:not(.menu-cta)::before {
	content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; background: var(--green-800); transform: translateY(-50%);
}
.site-nav .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 240px; display: none; flex-direction: column; align-items: stretch; gap: 0;
	background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 6px 0; z-index: 5;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: flex; }
.site-nav .sub-menu a { padding: 11px 18px; }

/* >>> Classe à ajouter à l’élément de menu « Nous contacter » (menu principal ou pied de page) <<< */
.site-nav .menu-cta > a,
.footer-menu .menu-cta > a {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 8px 17px; border-radius: 999px; background: var(--gold-400); color: var(--green-950);
	font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; box-shadow: none;
	transition: background .2s;
}
.site-nav .menu-cta > a:hover,
.site-nav .menu-cta.current-menu-item > a,
.footer-menu .menu-cta > a:hover {
	background: var(--gold-300); color: var(--green-950); box-shadow: none;
}
.site-nav .menu-cta { margin-left: 18px; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; cursor: pointer; padding: 0; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--green-900); border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-toggle__bars { top: 22px; }
.nav-toggle__bars::before { left: 0; right: 0; top: -7px; }
.nav-toggle__bars::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 901px) and (max-width: 1320px) { .site-nav ul a { white-space: normal; padding: 10px 12px; } }

/* Sélecteur de langue Polylang (drapeaux FR / EN) */
.lang-switch { list-style: none; display: flex; align-items: center; gap: 14px; margin: 0 0 0 14px; padding: 0; flex-shrink: 0; }
.lang-nav { flex-shrink: 0; }
.site-nav { flex-shrink: 1; }
.lang-switch li { margin: 0; }
.lang-switch a {
	display: inline-flex; align-items: center; gap: 6px; color: var(--green-950); text-decoration: none;
	font: 700 .8rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; opacity: .6; transition: opacity .2s;
}
.lang-switch a:hover, .lang-switch .current-lang a { opacity: 1; }
.lang-switch .current-lang a { border-bottom: 2px solid var(--gold-400); padding-bottom: 3px; }
.lang-switch img { width: 26px !important; height: auto !important; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 61, 25, .18); }
.lang-switch .lang-code { font-weight: 700; font-size: .85rem; letter-spacing: .06em; }

/* =====================================================================
   BOUTONS  (classes : btn btn--gold | btn--ghost | btn--green)
   Dans Gutenberg (bloc Bouton) : aff-btn-gold | aff-btn-ghost | aff-btn-green
   ===================================================================== */
.btn,
.wp-block-button.aff-btn-gold .wp-block-button__link,
.wp-block-button.aff-btn-ghost .wp-block-button__link,
.wp-block-button.aff-btn-green .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
	font: 700 1rem/1.1 var(--font-sans); text-decoration: none; cursor: pointer;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover,
.wp-block-button.aff-btn-gold .wp-block-button__link:hover,
.wp-block-button.aff-btn-ghost .wp-block-button__link:hover,
.wp-block-button.aff-btn-green .wp-block-button__link:hover { transform: translateY(-2px); }
.btn--sm { padding: 11px 20px; font-size: .92rem; }
.btn--gold,
.wp-block-button.aff-btn-gold .wp-block-button__link { background: var(--gold-400); color: var(--green-950); box-shadow: 0 6px 18px rgba(201, 138, 6, .3); }
.btn--gold:hover,
.wp-block-button.aff-btn-gold .wp-block-button__link:hover { background: var(--gold-300); color: var(--green-950); box-shadow: 0 10px 26px rgba(201, 138, 6, .4); }
.btn--ghost,
.wp-block-button.aff-btn-ghost .wp-block-button__link { border-color: rgba(255, 255, 255, .6); color: var(--white); background: transparent; }
.btn--ghost:hover,
.wp-block-button.aff-btn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, .12); color: var(--white); border-color: var(--white); }
.btn--green,
.wp-block-button.aff-btn-green .wp-block-button__link { background: var(--green-800); color: var(--white); }
.btn--green:hover,
.wp-block-button.aff-btn-green .wp-block-button__link:hover { background: var(--green-700); color: var(--white); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 1em; }

/* =====================================================================
   SECTIONS GUTENBERG  (Groupe > Classes CSS additionnelles)
   aff-hero | aff-section (blanc) | aff-section-cream | aff-section-dark
   ===================================================================== */
.entry-sections { width: 100%; }
.entry-sections > * { margin-block: 0; }
.aff-hero, .aff-section, .aff-section-cream, .aff-section-dark {
	position: relative;
	padding-block: clamp(56px, 8vw, 104px);
	padding-inline: max(20px, calc((100% - var(--maxw)) / 2 + 20px));
}
.aff-section { background: var(--white); }
.aff-section-cream { background: var(--cream-section); }
.aff-section-dark { background: var(--green-900); color: rgba(255, 255, 255, .88); }
.aff-section-dark h2, .aff-section-dark h3, .aff-section-dark h4 { color: var(--white); }
.aff-section-dark a:not(.wp-block-button__link) { color: var(--gold-300); }

/* Typographie commune aux sections */
.aff-section h2, .aff-section-cream h2, .aff-section-dark h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); max-width: 26ch; text-wrap: balance; }
.aff-section h3, .aff-section-cream h3, .aff-section-dark h3 { font-size: 1.3rem; }
.aff-eyebrow {
	display: flex; align-items: center; gap: .8em; margin: 0 0 1em;
	font: 700 1.1rem/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green-700);
}
.aff-eyebrow::before { content: ""; width: 40px; height: 3px; border-radius: 2px; background: var(--gold-400); flex: none; }
.aff-hero .aff-eyebrow, .aff-section-dark .aff-eyebrow { color: var(--gold-300); }
.aff-lead { font-size: 1.15rem; color: var(--muted); max-width: 70ch; }
.aff-section-dark .aff-lead { color: rgba(255, 255, 255, .86); }
.aff-center { text-align: center; }
.aff-center h2, .aff-center .aff-lead { margin-inline: auto; }
.aff-center .aff-eyebrow { justify-content: center; }
.aff-center .wp-block-buttons { justify-content: center; }
.aff-link { margin: 0; font-weight: 700; }
.aff-grid-2 + .aff-link, .aff-grid-3 + .aff-link, .aff-quote + .aff-link, .wp-block-buttons + .aff-link, .cards + .aff-link { margin-top: 32px; }
.aff-link.aff-center { text-align: center; }
.aff-right { text-align: right; }

/* Séparateurs fins entre sections (à ajouter sur le groupe de la section) */
.aff-sep-bottom { border-bottom: 1px solid var(--sep); }
.aff-sep-top { border-top: 1px solid var(--sep); }
.aff-link a { text-decoration: none; color: var(--green-800); border-bottom: 2px solid var(--gold-400); padding-bottom: 2px; }
.aff-link a:hover { color: var(--green-700); border-color: var(--green-700); }
.aff-quote { margin: 40px auto 0; max-width: 40ch; text-align: center; font: 600 clamp(1.15rem, 2vw, 1.5rem)/1.4 var(--font-serif); color: var(--green-900); text-wrap: balance; }
.aff-quote strong { background: linear-gradient(transparent 62%, rgba(242, 195, 74, .55) 0); }

/* Grilles */
.aff-grid-2, .aff-grid-3 { display: grid; gap: 22px; margin-top: clamp(28px, 4vw, 44px); }
.aff-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aff-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aff-grid-2 > *, .aff-grid-3 > * { margin: 0; }

/* Carte « vocation » (blanche, barre à gauche) */
.aff-card {
	padding: clamp(24px, 3vw, 38px); border-radius: var(--radius); background: var(--white);
	border: 1px solid var(--line); border-left: 6px solid var(--green-700); box-shadow: var(--shadow);
}
.aff-card-memoire { border-left-color: var(--gold-400); }
.aff-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.aff-card > :last-child { margin-bottom: 0; color: var(--muted); }
.aff-kicker { font: 700 .8rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); margin-bottom: 1em; }
.aff-card-memoire .aff-kicker { color: var(--gold-500); }

/* Carte « axe » (bordure haute : 2 couleurs seulement) */
.aff-axe {
	display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: var(--radius);
	background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green-700); box-shadow: var(--shadow);
	transition: transform .25s, box-shadow .25s;
}
.aff-axe:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.aff-axe-memoire { border-top-color: var(--gold-400); }
.aff-axe .aff-axe-num { font: 700 2.6rem/1 var(--font-serif); color: var(--green-700); margin: 0 0 14px; }
.aff-axe-memoire .aff-axe-num { color: var(--gold-500); }
.aff-axe h3 { font-size: 1.28rem; }
.aff-axe > p:not(.aff-axe-num):not(.aff-link) { color: var(--muted); font-size: .98rem; }
.aff-axe .aff-link { margin-top: auto; padding-top: .6em; font-size: .95rem; }

/* Tuiles (section sombre) */
.aff-tile { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); transition: background .25s, transform .25s; }
.aff-tile:hover { background: rgba(255, 255, 255, .11); transform: translateY(-3px); }
.aff-tile h3 { font-size: 1.3rem; }
.aff-tile p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .97rem; }

/* Panneau (section sombre) */
.aff-panel { margin-top: 40px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .12); }
.aff-panel h3 { color: var(--gold-300); }
.aff-panel p { max-width: 80ch; }
.aff-panel .wp-block-buttons { margin: 8px 0 0; }

/* Deux colonnes : titre à gauche, contenu à droite */
.aff-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.aff-split > * { margin: 0; }

/* Section contact : texte à gauche, bouton à droite */
.aff-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 72px); align-items: center; }
.aff-cta > * { margin: 0; }
.aff-cta h2 { margin-bottom: .4em; }
.aff-cta .aff-lead { margin-bottom: 0; }
.aff-cta .wp-block-buttons { margin: 0; justify-content: flex-end; }

/* Liste numérotée */
.aff-numbered { list-style: none; padding: 0; margin: 0; counter-reset: aff; }
.aff-numbered li { counter-increment: aff; display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.aff-numbered li:first-child { border-top: 1px solid var(--line); }
.aff-numbered li::before { content: counter(aff); flex: 0 0 38px; font: 700 1.5rem/1 var(--font-serif); color: var(--gold-500); }

/* Liste à puces cochées */
.aff-checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.aff-checks li { position: relative; padding-left: 26px; }
.aff-checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px; border-left: 3px solid var(--green-700); border-bottom: 3px solid var(--green-700); transform: rotate(-45deg) scale(.8); }

/* ---------- Hero ---------- */
.aff-hero {
	display: flex; flex-direction: column; justify-content: center; min-height: 600px; overflow: hidden; color: var(--white);
	border-bottom: 3px solid var(--gold-400);
	background:
		radial-gradient(900px 520px at 88% 105%, rgba(242, 117, 26, .55), transparent 62%),
		radial-gradient(620px 420px at 92% 8%, rgba(242, 195, 74, .2), transparent 62%),
		linear-gradient(160deg, var(--green-950) 0%, var(--green-900) 55%, var(--green-800) 100%);
}
.aff-hero { --hero-col: min(640px, calc(100% - min(40vw, 440px) - 48px)); }
.aff-hero > * { position: relative; z-index: 1; max-width: var(--hero-col); margin-block: 0; }
.aff-hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.04; margin-bottom: .4em; text-wrap: balance; }
.aff-hero .aff-eyebrow { margin-bottom: 1.3rem; }
.aff-hero .aff-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .88); max-width: min(56ch, var(--hero-col)); margin-bottom: 1.6em; }
.aff-hero .wp-block-buttons { margin-bottom: 2.2em; }
.aff-hero::before { /* médaillon avec la carte de l’Afrique */
	content: ""; position: absolute; z-index: 0; top: 50%; transform: translateY(-50%);
	right: max(20px, calc((100% - var(--maxw)) / 2 + 20px));
	width: min(40vw, 440px); aspect-ratio: 1; border-radius: 50%;
	background: url("../img/logo-icon.png") center / 82% no-repeat, radial-gradient(circle at 35% 30%, #fffdf6, var(--cream) 55%, #efe5c8 100%);
	box-shadow: 0 0 0 5px rgba(242, 195, 74, .16), 0 0 0 6px rgba(242, 195, 74, .45), 0 30px 80px rgba(0, 0, 0, .35);
}
.aff-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 20px 44px; padding: 28px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.aff-facts li { display: flex; flex-direction: column; gap: 6px; max-width: 13ch; font-size: 1.15rem; color: rgba(255, 255, 255, .9); line-height: 1.25; }
.aff-facts strong { font: 700 3rem/1 var(--font-serif); color: var(--gold-300); }

/* =====================================================================
   ACTUALITÉS (shortcode [aff_actualites]) / ARTICLES
   ===================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(24px, 3vw, 36px); }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__media { display: block; aspect-ratio: 3 / 2; background: var(--cream-section); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--cream-section); }
.post-card__media .post-card__placeholder img { width: 38%; height: auto; object-fit: contain; }
.post-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .85rem; color: var(--muted); margin-bottom: .5em; }
.post-card__title { font-size: 1.25rem; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--green-700); }
.post-card__excerpt { color: var(--muted); font-size: .98rem; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--green-800); border-bottom: 2px solid var(--gold-400); padding-bottom: 2px; }
.link-arrow:hover { color: var(--green-700); border-color: var(--green-700); }
.post-card .link-arrow { margin-top: auto; align-self: flex-start; }
.empty-note { padding: 28px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: rgba(255, 255, 255, .6); }

/* Coordonnées (shortcode [aff_contact]) */
.aff-contact { list-style: none; display: grid; gap: 14px; }
.aff-contact li { display: grid; gap: 2px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.aff-contact strong { font: 700 .78rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); }
.aff-contact a { word-break: break-word; }

/* =====================================================================
   PAGES INTÉRIEURES (modèles PHP)
   ===================================================================== */
.eyebrow { display: inline-flex; align-items: center; gap: .8em; margin: 0 0 1em; font: 700 1.1rem/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.eyebrow::before { content: ""; width: 40px; height: 3px; border-radius: 2px; background: var(--gold-400); }
.section { padding-block: clamp(56px, 8vw, 104px); background: var(--white); }
.section--cream { background: var(--cream-section); }
.section--tight { padding-block: 40px 0; }
.page-hero { color: var(--white); padding-block: clamp(44px, 7vw, 88px); background: linear-gradient(160deg, var(--green-950), var(--green-900) 70%, var(--green-800)); border-bottom: 3px solid var(--gold-400); }
.page-hero__title { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: .3em; text-wrap: balance; }
.page-hero__lead { color: rgba(255, 255, 255, .85); font-size: 1.15rem; margin: 0; max-width: 62ch; }

.axes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.axe-card { --accent: var(--green-700); display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--accent); box-shadow: var(--shadow); }
.axe-card.is-memoire { --accent: var(--gold-400); }
.axe-card.is-memoire .axe-card__num { color: var(--gold-500); }
.axe-card__top { margin-bottom: 14px; }
.axe-card__num { font: 700 2.6rem/1 var(--font-serif); color: var(--green-700); }
.axe-card__title { font-size: 1.28rem; margin-bottom: .6em; }
.axe-card__lead { color: var(--muted); font-size: .98rem; margin-bottom: 1em; }
.axe-card__more { border-top: 0; padding-top: 0; }
.axe-card__more summary { display: none; }
.check-list { list-style: none; margin: 4px 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; font-size: .95rem; line-height: 1.5; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px; border-left: 3px solid var(--accent, var(--green-700)); border-bottom: 3px solid var(--accent, var(--green-700)); transform: rotate(-45deg) scale(.8); }
.group-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 26px; }

.entry__content { font-size: 1.1rem; }
.entry__content > * + * { margin-top: 1.1em; }
.entry__content h2 { font-size: 1.9rem; margin-top: 1.6em; }
.entry__content h3 { font-size: 1.45rem; margin-top: 1.4em; }
.entry__content ul, .entry__content ol { padding-left: 1.4em; }
.entry__content li + li { margin-top: .4em; }
.entry__content blockquote { margin-inline: 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--gold-400); font-family: var(--font-serif); font-size: 1.25rem; color: var(--green-900); }
.entry__content img { border-radius: 10px; }
.entry__thumb { margin: 0 0 32px; }
.entry__thumb img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.entry__footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.nav-links { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pagination { margin-top: 48px; }
.pagination .nav-links { justify-content: center; align-items: center; }
.page-numbers { display: inline-block; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 1.5px solid var(--line); background: var(--white); }
.page-numbers.current, .page-numbers:hover { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.not-found { text-align: center; }
.search-form { display: flex; gap: 10px; margin-bottom: 24px; }
.search-form label { flex: 1; }
.search-field, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: var(--white); color: var(--ink);
}
.search-submit, .comment-form .submit { padding: 13px 22px; border: 0; border-radius: 999px; background: var(--green-800); color: #fff; font: 700 1rem var(--font-sans); cursor: pointer; }
.search-submit:hover, .comment-form .submit:hover { background: var(--green-700); }
.comments { margin-top: 56px; }
.comment-list { list-style: none; display: grid; gap: 20px; margin: 20px 0 32px; }
.comment-body { padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.comment-list .children { list-style: none; margin: 16px 0 0 24px; padding: 0; display: grid; gap: 16px; }
.comment-meta .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { border-top: 1px solid var(--cream-section); background: var(--green-950); color: rgba(255, 255, 255, .8); font-size: .98rem; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 64px); padding-block: 56px 40px; }
.site-footer__logo { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.site-footer__mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--cream); flex: none; }
.site-footer__mark img { width: 74%; height: auto; }
.site-footer__name { font: 700 1.5rem/1.05 var(--font-serif); color: var(--white); display: flex; flex-direction: column; }
.site-footer__name small { font: 600 .7rem/1 var(--font-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-300); margin-top: 6px; }
.site-footer__title { font: 700 .8rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 18px; }
.footer-menu { list-style: none; display: grid; gap: 10px; justify-items: start; padding: 0; margin: 0; }
.footer-menu .menu-cta > a { color: var(--green-950); text-transform: none; letter-spacing: 0; }
.footer-menu .menu-cta > a:hover { text-decoration: none; }
.social-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; }
.social-list a { display: inline-block; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; font-size: .88rem; }
.social-list a:hover { border-color: var(--gold-300); text-decoration: none; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px; font-size: .88rem; }
.site-footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1020px) {
	.aff-grid-3, .axes-grid, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aff-split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	:root { --header-h: 68px; }
	.nav-toggle { display: block; order: 3; }
	.lang-nav { order: 2; margin-left: auto; }
	.lang-switch { margin: 0; gap: 12px; }
	.site-branding { order: 1; }
	.custom-logo { height: 46px; }
	.site-nav { margin-left: 0;
		position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
		background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
		padding: 8px 20px 20px; max-height: calc(100vh - var(--header-h)); overflow: auto; display: none;
	}
	.site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav ul a { padding: 14px 6px; border-bottom: 1px solid var(--line); }
	.site-nav > ul > li + li:not(.menu-cta)::before { display: none; }
	.site-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 14px; background: transparent; }
	.site-nav .menu-cta { margin: 16px 0 0; }
	.site-nav .menu-cta > a { display: flex; width: 100%; border-bottom: 0; padding: 12px 20px; border-radius: 999px; }

}

@media (max-width: 900px) {
	/* Hero : médaillon au-dessus du texte */
	.aff-hero { min-height: 0; }
	.aff-hero::before { position: relative; top: auto; right: auto; transform: none; width: min(60vw, 260px); margin: 0 auto 32px; flex: none; }
	.aff-hero { --hero-col: 100%; }
	.aff-grid-2, .aff-cta { grid-template-columns: 1fr; }
	.aff-cta .wp-block-buttons { justify-content: flex-start; }
	.site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.aff-grid-3, .axes-grid, .cards { grid-template-columns: 1fr; }
	.aff-facts { gap: 14px 24px; }
	.aff-facts strong { font-size: 2.4rem; }
	.aff-facts li { font-size: 1.05rem; }
	.aff-hero .wp-block-buttons, .aff-section-dark .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.wp-block-button.aff-btn-gold .wp-block-button__link,
	.wp-block-button.aff-btn-ghost .wp-block-button__link,
	.wp-block-button.aff-btn-green .wp-block-button__link { width: 100%; }
	.search-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
	.site-header, .site-footer, .nav-toggle { display: none !important; }
}
