/* ==========================================================================
   MAE Niger – Ministère de l'Agriculture et de l'Élevage
   Feuille de styles principale
   ========================================================================== */

/* ---------- 1. Jetons de design ---------- */
:root {
	--mae-primary: #0e5a36;
	--mae-accent: #e8761c;
	--primary-dark: color-mix(in srgb, var(--mae-primary) 72%, #000);
	--primary-deep: color-mix(in srgb, var(--mae-primary) 55%, #000);
	--primary-tint: color-mix(in srgb, var(--mae-primary) 9%, #fff);
	--accent-dark: color-mix(in srgb, var(--mae-accent) 82%, #000);
	--accent-tint: color-mix(in srgb, var(--mae-accent) 12%, #fff);
	--gold: #c9a227;

	--ink: #14251b;
	--text: #2c3b32;
	--muted: #5d6d63;
	--line: #dde6e0;
	--bg: #ffffff;
	--bg-soft: #f2f6f3;

	--font-head: "Lexend", "Segoe UI", system-ui, sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

	--fs-xs: .8125rem;
	--fs-sm: .9375rem;
	--fs-base: 1.0625rem;
	--fs-md: 1.25rem;
	--fs-lg: 1.5rem;
	--fs-xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.375rem);
	--fs-hero: clamp(2rem, 1.1rem + 3.4vw, 3.75rem);

	--radius-sm: 6px;
	--radius: 10px;
	--radius-lg: 18px;
	--shadow: 0 1px 2px rgba(14, 40, 26, .06), 0 8px 24px -12px rgba(14, 40, 26, .18);
	--shadow-lg: 0 24px 48px -24px rgba(14, 40, 26, .35);

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 88px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--mae-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--mae-accent); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--mae-accent); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.center { text-align: center; }
.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: 12px; top: -60px; z-index: 1000; padding: 10px 16px;
	background: var(--mae-accent); color: #fff; font-weight: 700; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.icon { flex-shrink: 0; }

/* ---------- 3. Boutons & liens ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .8em 1.4em; border: 2px solid transparent; border-radius: 999px;
	font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm); line-height: 1.2;
	text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--mae-primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--accent { background: var(--mae-accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { border-color: var(--mae-primary); color: var(--mae-primary); background: transparent; }
.btn--outline:hover { background: var(--mae-primary); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--mae-primary); border-color: #fff; }
.btn--lg { padding: 1em 1.8em; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.link-arrow {
	display: inline-flex; align-items: center; gap: .4em;
	font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm);
	color: var(--mae-primary); text-decoration: none;
}
.link-arrow::after {
	content: ""; width: 1.1em; height: 2px; background: currentColor;
	transition: width .25s var(--ease);
}
.link-arrow:hover { color: var(--accent-dark); }
.link-arrow:hover::after { width: 1.7em; }
.link-arrow--back::after { display: none; }
.link-arrow--back::before { content: "←"; }

.tag {
	display: inline-block; padding: .2em .7em; border-radius: 999px;
	background: var(--accent-tint); color: var(--accent-dark);
	font-size: var(--fs-xs); font-weight: 700; text-decoration: none; line-height: 1.5;
}
.tag:hover { background: var(--mae-accent); color: #fff; }

/* ---------- 4. Bande tricolore (signature) ---------- */
.flagband { display: flex; height: 5px; }
.flagmark { display: block; width: 54px; height: 5px; margin-bottom: 18px; border-radius: 3px; background: linear-gradient(90deg, var(--mae-accent) 0 33.33%, #fff 0 66.66%, #0a9a48 0); }
.flagband span { flex: 1; }
.flagband span:nth-child(1) { background: var(--mae-accent); }
.flagband span:nth-child(2) { background: #fff; }
.flagband span:nth-child(3) { background: #0a9a48; }

/* ---------- 5. Barre supérieure ---------- */
.topbar { background: var(--primary-deep); color: rgba(255,255,255,.82); font-size: var(--fs-xs); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.topbar__info li, .topbar__info a { display: inline-flex; align-items: center; gap: 7px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__info .icon { color: var(--mae-accent); }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__menu ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar__menu li { position: relative; }
.topbar__menu .sub-menu {
	position: absolute; right: 0; top: 100%; z-index: 120; min-width: 200px; display: block;
	padding: 8px 0; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.topbar__menu li:hover > .sub-menu, .topbar__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.topbar__menu .sub-menu a { display: block; padding: 8px 16px; color: var(--ink); }
.topbar__menu .sub-menu a:hover { background: var(--bg-soft); color: var(--mae-primary); }
.socials { display: flex; gap: 6px; }
.socials a {
	display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	transition: background-color .2s, color .2s;
}
.socials--top a:hover { background: var(--mae-accent); color: #fff; }

/* ---------- 6. En-tête ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97);
	backdrop-filter: saturate(1.4) blur(10px);
	transition: box-shadow .25s;
}
.site-header.is-stuck { box-shadow: 0 6px 24px -14px rgba(14,40,26,.45); }
.topbar .container, .site-header .container { max-width: 1440px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); transition: min-height .25s; }
.site-header.is-stuck .site-header__inner { min-height: 72px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 58px; height: 58px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand__country { font-size: .72rem; color: var(--mae-accent); font-weight: 700; letter-spacing: .02em; margin-bottom: 3px; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--mae-primary); }
.brand__name span { display: block; }

.primary-nav { margin-left: auto; min-width: 0; }
.primary-nav > .menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	white-space: nowrap;
	display: flex; align-items: center; gap: 4px; padding: 30px 12px; color: var(--ink);
	font-family: var(--font-head); font-size: .94rem; font-weight: 500; text-decoration: none;
	position: relative; transition: color .2s, padding .25s;
}
.site-header.is-stuck .primary-nav .menu > li > a { padding-block: 24px; }
.primary-nav .menu > li > a::before {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 18px; height: 2px;
	background: var(--mae-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-header.is-stuck .primary-nav .menu > li > a::before { bottom: 14px; }
.primary-nav .menu > li:hover > a,
.primary-nav .menu > li:focus-within > a,
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a { color: var(--mae-primary); }
.primary-nav .menu > li:hover > a::before,
.primary-nav .menu > .current-menu-item > a::before,
.primary-nav .menu > .current-menu-ancestor > a::before { transform: scaleX(1); }
.primary-nav .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin-left: 3px; margin-top: -3px;
	border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(45deg); opacity: .6;
}
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 110; min-width: 270px; margin: 0; padding: 10px;
	list-style: none; background: #fff; border-radius: 0 0 var(--radius) var(--radius);
	border-top: 3px solid var(--mae-primary); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.primary-nav .sub-menu .sub-menu { top: -13px; left: calc(100% + 10px); border-radius: var(--radius); }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu li { position: relative; }
.primary-nav .sub-menu a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text);
	font-size: .95rem; line-height: 1.35; text-decoration: none;
}
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu li:focus-within > a, .primary-nav .sub-menu .current-menu-item > a { background: var(--primary-tint); color: var(--mae-primary); }
.primary-nav .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin: 0; }
.primary-nav .sub-menu .sub-menu .sub-menu { min-width: 340px; }
/* Ouverture vers la gauche pour les derniers menus */
.primary-nav .menu > li:nth-last-child(-n+4) .sub-menu .sub-menu { left: auto; right: calc(100% + 10px); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
	transition: background-color .2s, color .2s, border-color .2s;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--mae-primary); border-color: var(--mae-primary); color: #fff; }
.icon-btn--menu { display: none; }

.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 22px 0; }
.search-panel[hidden] { display: none; }

/* Recherche */
.search-form { display: flex; position: relative; max-width: 720px; margin-inline: auto; }
.search-form__input {
	flex: 1; min-width: 0; height: 54px; padding: 0 60px 0 22px; border: 2px solid var(--line);
	border-radius: 999px; font: inherit; color: var(--ink); background: var(--bg-soft); transition: border-color .2s, background-color .2s;
}
.search-form__input:focus { outline: none; border-color: var(--mae-primary); background: #fff; }
.search-form__btn {
	position: absolute; right: 6px; top: 6px; width: 42px; height: 42px; border: 0; border-radius: 50%;
	background: var(--mae-primary); color: #fff; display: grid; place-items: center;
}
.search-form__btn:hover { background: var(--mae-accent); }

/* ---------- 7. Tiroir mobile ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 30, 18, .55); opacity: 0; transition: opacity .3s; }
.drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 92vw);
	display: flex; flex-direction: column; background: #fff;
	transform: translateX(100%); transition: transform .35s var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer__head .brand__logo { width: 46px; height: 46px; }
.drawer__head .brand__name { font-size: .92rem; }
.drawer__nav { flex: 1; overflow-y: auto; padding: 10px 10px 20px; }
.drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.drawer__nav li { position: relative; }
.drawer__nav a {
	display: block; padding: 12px 52px 12px 12px; color: var(--ink); text-decoration: none;
	font-family: var(--font-head); font-weight: 500; border-radius: var(--radius-sm);
}
.drawer__nav .sub-menu a { font-family: var(--font-body); font-weight: 400; padding-block: 9px; }
.drawer__nav a:hover, .drawer__nav .current-menu-item > a { background: var(--primary-tint); color: var(--mae-primary); }
.drawer__nav .sub-menu { display: none; margin-left: 12px; padding-left: 10px; border-left: 2px solid var(--line); }
.drawer__nav li.is-open > .sub-menu { display: block; }
.drawer__nav .sub-toggle {
	position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: var(--radius-sm);
	background: transparent; color: var(--muted); display: grid; place-items: center;
}
.drawer__nav .sub-toggle:hover { background: var(--bg-soft); color: var(--mae-primary); }
.drawer__nav .sub-toggle .icon { transition: transform .25s; }
.drawer__nav li.is-open > .sub-toggle .icon { transform: rotate(180deg); }
.drawer__foot { padding: 16px 18px 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer__foot .socials a { background: var(--bg-soft); color: var(--mae-primary); }
body.drawer-open { overflow: hidden; }

/* ---------- 8. Slider ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--primary-deep); overflow: hidden; }
.hero__slides { display: grid; }
.hero__slide {
	grid-area: 1 / 1; position: relative; min-height: clamp(520px, 78vh, 760px);
	display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 70% 30%, var(--mae-primary), var(--primary-deep)); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s linear; }
.hero__slide.is-active .hero__media img { transform: scale(1); }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(5, 32, 17, .9) 0%, rgba(5, 32, 17, .65) 42%, rgba(5, 32, 17, .15) 100%),
		linear-gradient(0deg, rgba(5, 32, 17, .55) 0%, transparent 40%);
}
.hero__content { padding-block: 120px 170px; }
.hero__kicker {
	display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
	font-family: var(--font-head); font-size: var(--fs-md); font-weight: 400; color: rgba(255,255,255,.9);
}
.hero__kicker::before { content: ""; width: 40px; height: 3px; background: var(--mae-accent); border-radius: 2px; }
.hero__title {
	max-width: 16ch; margin-bottom: 20px; color: #fff;
	font-size: var(--fs-hero); font-weight: 700; line-height: 1.06; letter-spacing: -.02em;
	text-wrap: balance;
}
.hero__text { max-width: 52ch; margin-bottom: 32px; font-size: var(--fs-md); color: rgba(255,255,255,.88); }
.hero__slide.is-active .hero__kicker,
.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__text,
.hero__slide.is-active .btn { animation: hero-in .9s var(--ease) both; }
.hero__slide.is-active .hero__title { animation-delay: .08s; }
.hero__slide.is-active .hero__text { animation-delay: .16s; }
.hero__slide.is-active .btn { animation-delay: .24s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero__controls {
	position: absolute; left: 0; right: 0; bottom: 116px; z-index: 3;
	display: flex; align-items: center; justify-content: space-between; margin-inline: auto;
}
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.hero__dot::after { content: ""; position: absolute; inset: 0; background: var(--mae-accent); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { transform: scaleX(1); transition: transform var(--hero-delay, 7s) linear; }
.hero.is-paused .hero__dot.is-active::after, .hero[data-autoplay="0"] .hero__dot.is-active::after { transition: none; }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrow {
	width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
	background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: background-color .2s, border-color .2s;
}
.hero__arrow:hover { background: var(--mae-accent); border-color: var(--mae-accent); }
.hero__pause-icon { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.hero.is-paused .hero__pause-icon { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; border-right: 0; }

/* ---------- 9. Bandeau des dernières actualités ---------- */
.ticker { position: relative; z-index: 5; margin-top: -86px; }
.ticker__box {
	display: grid; grid-template-columns: 210px 1fr; overflow: hidden;
	background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.ticker__title {
	display: flex; align-items: center; margin: 0; padding: 26px; background: var(--mae-accent); color: #fff;
	font-size: 1.15rem; line-height: 1.25;
}
.ticker__list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.ticker__item { padding: 22px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ticker__item:first-child { border-left: 0; }
.ticker__item time { font-size: var(--fs-xs); color: var(--accent-dark); font-weight: 700; }
.ticker__item a {
	color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; font-size: .98rem;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ticker__item a:hover { color: var(--mae-primary); text-decoration: underline; }

/* ---------- 10. Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 110px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head > div { max-width: 640px; }
.section-title { font-size: var(--fs-xl); font-weight: 700; margin-bottom: .35em; position: relative; text-wrap: balance; }
.section-title--sm { font-size: var(--fs-lg); }
.section-lead { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 60ch; }
.section-head--light .section-title { color: #fff; }
.section-head--light .section-lead { color: rgba(255,255,255,.78); }

/* Mot du ministre */
.minister { padding-top: clamp(80px, 9vw, 120px); }
.minister__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.minister__figure { position: relative; margin: 0; padding: 0 0 36px 24px; }
.minister__figure::before {
	content: ""; position: absolute; left: 0; top: 36px; bottom: 0; right: 36px;
	border-radius: var(--radius-lg); background: var(--primary-tint);
	background-image: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--mae-primary) 7%, transparent) 14px 15px);
}
.minister__frame {
	position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg);
	background: linear-gradient(160deg, var(--mae-primary), var(--primary-deep)); box-shadow: var(--shadow-lg);
}
.minister__frame > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.minister__placeholder { height: 100%; display: grid; place-items: center; }
.minister__placeholder img { width: 46%; filter: drop-shadow(0 12px 24px rgba(0,0,0,.3)); }
.minister__badge {
	position: absolute; right: -12px; bottom: 0; max-width: 84%;
	padding: 16px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
	border-left: 4px solid var(--mae-accent);
}
.minister__badge strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }
.minister__badge span { font-size: var(--fs-sm); color: var(--muted); }
.minister__lead { font-family: var(--font-head); font-size: var(--fs-md); color: var(--mae-primary); margin-bottom: 18px; }
.minister__quote {
	position: relative; margin: 0 0 28px; padding: 0 0 0 28px; border-left: 3px solid var(--mae-accent);
	font-size: 1.14rem; line-height: 1.7; color: var(--text);
}
.minister__quote p:last-child { margin-bottom: 0; }
.minister__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.minister__sign { max-height: 64px; width: auto; }

/* Stratégie */
.strategy { background: var(--bg-soft); }
.strategy__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 44px; }
.strategy__head .section-title { margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0 0 24px; padding: 0; }
.pillar { padding: 32px 30px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.pillar__icon {
	display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 20px;
	border-radius: 16px; background: var(--mae-primary); color: #fff;
}
.pillar:nth-child(2) .pillar__icon { background: var(--mae-accent); }
.pillar:nth-child(3) .pillar__icon { background: var(--gold); }
.pillar__title { font-size: var(--fs-md); margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--muted); }
.programmes { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--mae-primary); border-radius: var(--radius-lg); overflow: hidden; color: rgba(255,255,255,.82); }
.programme { padding: 32px 30px; border-left: 1px solid rgba(255,255,255,.14); }
.programme:first-child { border-left: 0; }
.programme__num { margin-bottom: 8px; font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 500; color: #ffc58e; }
.programme__title { color: #fff; font-size: 1.12rem; line-height: 1.3; margin-bottom: 10px; }
.programme p:last-child { margin: 0; font-size: var(--fs-sm); line-height: 1.6; }
.programmes--page { margin-top: 48px; }

/* Projets */
.projects { position: relative; background: var(--primary-deep); overflow: hidden; }
.projects::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background:
		radial-gradient(800px 400px at 100% 0%, color-mix(in srgb, var(--mae-primary) 70%, transparent), transparent 70%),
		radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--mae-accent) 22%, transparent), transparent 70%);
}
.projects .container { position: relative; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.project-grid li { display: flex; }
.project-tile {
	flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 108px;
	padding: 20px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
	background: rgba(255,255,255,.04); color: #fff; text-decoration: none;
	transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.project-tile:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-3px); }
.project-tile__acr { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.project-tile__name { font-size: var(--fs-sm); line-height: 1.4; color: rgba(255,255,255,.7); }
.project-tile:hover .project-tile__name { color: var(--muted); }
.project-tile--light { background: #fff; color: var(--ink); border-color: var(--line); }
.project-tile--light .project-tile__acr { color: var(--mae-primary); }
.project-tile--light .project-tile__name { color: var(--muted); }
.project-tile--light:hover { border-color: var(--mae-primary); box-shadow: var(--shadow); }
.project-tile__logo img { max-height: 56px; width: auto; margin-bottom: 8px; }

/* Actualités */
.news__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.news__main { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.news__main .card--lead { grid-row: span 2; }
.communiques { padding: 28px; border-radius: var(--radius-lg); background: var(--bg-soft); border-top: 4px solid var(--mae-accent); }
.communiques__title { font-size: var(--fs-md); margin-bottom: 14px; }
.communiques ul { list-style: none; margin: 0 0 18px; padding: 0; }
.communique { padding: 14px 0; border-bottom: 1px solid var(--line); }
.communique time { display: block; font-size: var(--fs-xs); color: var(--accent-dark); font-weight: 700; margin-bottom: 4px; }
.communique a { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4; }
.communique a:hover { color: var(--mae-primary); text-decoration: underline; }

/* Cartes */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.card:hover { box-shadow: var(--shadow); border-color: transparent; }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--primary-tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--fs-xs); color: var(--muted); }
.card__title { font-size: 1.12rem; line-height: 1.35; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--mae-primary); }
.card__excerpt { color: var(--muted); margin: 0; font-size: var(--fs-sm); }
.card .link-arrow { margin-top: auto; padding-top: 4px; }
.card--lead .card__media { aspect-ratio: 16 / 11; }
.card--lead .card__title { font-size: var(--fs-lg); }
.card--compact { flex-direction: row; }
.card--compact .card__media { width: 38%; flex-shrink: 0; aspect-ratio: auto; }
.card--compact .card__body { padding: 18px 20px; }
.card--compact .card__title { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card--compact .link-arrow { display: none; }
.thumb-fallback {
	width: 100%; height: 100%; min-height: 100px; display: grid; place-items: center; color: color-mix(in srgb, var(--mae-primary) 45%, #fff);
	background: var(--primary-tint);
	background-image: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--mae-primary) 6%, transparent) 12px 13px);
}
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--3 .card--compact { flex-direction: column; }
.card-grid--3 .card--compact .card__media { width: 100%; aspect-ratio: 3 / 2; }

/* Documents */
.docs { background: var(--bg-soft); }
.docs__grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.docs__intro .section-lead { margin-bottom: 24px; }
.docs__types { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.docs__types a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.docs__types a:hover { color: var(--mae-primary); padding-left: 10px; }
.docs__types em { font-style: normal; font-size: var(--fs-xs); min-width: 28px; text-align: center; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--muted); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
	padding: 18px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
	transition: border-color .2s, box-shadow .2s;
}
.doc:hover { border-color: var(--mae-primary); box-shadow: var(--shadow); }
.doc__icon { position: relative; display: grid; place-items: center; width: 52px; height: 58px; border-radius: 8px; background: var(--primary-tint); color: var(--mae-primary); }
.doc__icon em {
	position: absolute; bottom: -6px; right: -8px; padding: 1px 6px; border-radius: 4px;
	background: #c62f2f; color: #fff; font-size: .62rem; font-style: normal; font-weight: 700;
}
.doc__icon--lg { width: 84px; height: 96px; }
.doc__title { font-family: var(--font-body); font-size: 1.04rem; font-weight: 700; line-height: 1.4; margin: 0 0 4px; }
.doc__title a { color: var(--ink); text-decoration: none; }
.doc__title a:hover { color: var(--mae-primary); text-decoration: underline; }
.doc__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.doc__meta span { color: var(--accent-dark); font-weight: 700; }
.doc__dl { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); color: var(--mae-primary); transition: .2s; }
.doc__dl:hover { background: var(--mae-primary); color: #fff; }
.doc-sheet { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; padding: 28px; margin-bottom: 32px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.doc-sheet__meta { display: flex; gap: 32px; margin: 0; flex: 1; }
.doc-sheet__meta dt { font-size: var(--fs-xs); color: var(--muted); }
.doc-sheet__meta dd { margin: 0; font-weight: 700; color: var(--ink); }

/* Structures & partenaires */
.structure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.structure-grid li { display: flex; }
.structure {
	flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 18px 22px;
	border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none;
	position: relative; transition: border-color .2s, box-shadow .2s;
}
.structure::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mae-accent); }
a.structure:hover { border-color: var(--mae-primary); box-shadow: var(--shadow); color: var(--text); }
.structure strong { font-family: var(--font-head); font-weight: 600; color: var(--mae-primary); font-size: 1.05rem; }
.structure span { font-size: var(--fs-sm); line-height: 1.4; color: var(--muted); }
.partners { margin-top: 64px; }
.partners__title { text-align: center; font-size: var(--fs-md); color: var(--muted); font-weight: 500; margin-bottom: 24px; }
.partners__track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners__list { display: flex; gap: 20px; width: max-content; list-style: none; margin: 0; padding: 0; }
.partners__track.is-animated .partners__list { animation: marquee var(--marquee-duration, 40s) linear infinite; }
.partners__track:hover .partners__list { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner { display: grid; place-items: center; width: 190px; height: 104px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.partner a { display: grid; place-items: center; width: 100%; height: 100%; }
.partner img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .3s; }
.partner:hover img { filter: none; opacity: 1; }
.partner span { font-family: var(--font-head); font-weight: 600; color: var(--mae-primary); text-align: center; }

/* ---------- 11. Pied de page ---------- */
.site-footer { background: var(--primary-deep); color: rgba(255,255,255,.74); font-size: var(--fs-sm); }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-strip { border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.14); }
.footer-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; list-style: none; margin: 0; padding: 18px 0; }
.footer-strip a { font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 40px; padding-block: 64px 48px; }
.footer-col__title { color: #fff; font-size: 1.05rem; margin-bottom: 18px; padding-bottom: 12px; position: relative; }
.footer-col__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--mae-accent); }
.footer-col .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col .menu a { position: relative; display: inline-block; padding-left: 16px; }
.footer-col .menu a::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--mae-accent); }
.footer-col--about p { margin: 18px 0 20px; max-width: 46ch; line-height: 1.65; }
.brand--footer .brand__logo { background: #fff; border-radius: 50%; padding: 3px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__country { color: #ffb066; }
.socials--footer a { background: rgba(255,255,255,.08); color: #fff; width: 38px; height: 38px; }
.socials--footer a:hover { background: var(--mae-accent); text-decoration: none; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.contact-list .icon { color: var(--mae-accent); margin-top: 1px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-xs); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; }
.footer-bottom p { margin: 0; }
.footer-bottom__motto { font-family: var(--font-head); color: #ffb066; }

.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
	display: grid; place-items: center; background: var(--mae-accent); color: #fff; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s;
}
.to-top .icon { transform: rotate(180deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--mae-primary); color: #fff; }

/* ---------- 12. Pages intérieures ---------- */
.page-head { position: relative; background: var(--mae-primary); color: #fff; overflow: hidden; }
.page-head::before {
	content: ""; position: absolute; inset: 0; opacity: .9; pointer-events: none;
	background:
		radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--mae-accent) 25%, transparent), transparent 70%),
		linear-gradient(120deg, var(--primary-deep), transparent 70%);
}
.page-head .container { position: relative; padding-block: 44px 52px; }
.page-head__title { color: #fff; font-size: var(--fs-xl); font-weight: 700; max-width: 26ch; margin: 0; text-wrap: balance; }
.page-head__title--article { max-width: 34ch; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); }
.page-head__lead { margin: 12px 0 0; max-width: 62ch; color: rgba(255,255,255,.82); font-size: 1.1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 16px; padding: 0; font-size: var(--fs-xs); color: rgba(255,255,255,.7); }
.crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; opacity: .5; }
.crumbs a { color: rgba(255,255,255,.88); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 14px; font-size: var(--fs-xs); color: rgba(255,255,255,.82); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .tag { background: var(--mae-accent); color: #fff; }

.layout { display: grid; gap: clamp(32px, 4vw, 56px); padding-block: clamp(40px, 5vw, 64px); align-items: start; }
.layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
.layout--page { grid-template-columns: 290px minmax(0, 1fr); }
.layout__aside { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.layout-full { padding-block: clamp(40px, 5vw, 64px); }

/* Contenu éditorial */
.entry { font-size: 1.1rem; line-height: 1.75; color: var(--text); }
.entry > * { max-width: 72ch; }
.entry > .alignwide, .entry > .alignfull, .entry > figure, .entry > .wp-block-gallery, .entry > .wp-block-table, .entry > .wp-block-columns { max-width: none; }
.entry h2 { font-size: var(--fs-lg); margin-top: 1.8em; }
.entry h3 { font-size: var(--fs-md); margin-top: 1.6em; }
.entry ul li::marker { color: var(--mae-accent); }
.entry blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--mae-accent); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; }
.entry table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.entry th, .entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry th { background: var(--bg-soft); color: var(--ink); }
.entry img { border-radius: var(--radius); }
.entry figcaption, .article__cover figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
.entry--letter p:first-child { font-size: 1.25rem; }
.article__cover { margin: 0 0 32px; }
.article__cover img { width: 100%; border-radius: var(--radius-lg); }
.article__cover--logo img { width: auto; max-height: 160px; }
.article__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--text); font-size: var(--fs-xs); text-decoration: none; }
.share { display: flex; align-items: center; gap: 6px; margin-top: 24px; }
.article__foot .share { margin: 0; }
.share__label { font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm); margin-right: 6px; color: var(--ink); }
.share a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-soft); color: var(--mae-primary); transition: .2s; }
.share a:hover { background: var(--mae-primary); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav__link { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.post-nav__link span { font-size: var(--fs-xs); color: var(--muted); }
.post-nav__link strong { color: var(--ink); line-height: 1.35; font-size: .98rem; }
.post-nav__link:hover { border-color: var(--mae-primary); }
.post-nav__link--next { text-align: right; grid-column: 2; }
.related { margin-top: 56px; }
.related__title { font-size: var(--fs-lg); }

/* Barre latérale */
.widget { padding: 24px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.widget__title { font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line); position: relative; }
.widget__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 36px; height: 2px; background: var(--mae-accent); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget .search-form__input { height: 48px; background: #fff; font-size: var(--fs-sm); padding-left: 16px; }
.widget .search-form__btn { width: 36px; height: 36px; }
.widget h2, .widget .wp-block-heading { font-size: 1.05rem; margin: 0 0 14px; }
.widget .wp-block-search__label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.widget .wp-block-search__input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; }
.widget .wp-block-search__button { height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--mae-primary); color: #fff; font-family: var(--font-head); }
.widget .wp-block-latest-posts li, .widget .wp-block-archives li, .widget .wp-block-categories li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.widget .wp-block-latest-posts a, .widget .wp-block-archives a, .widget .wp-block-categories a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); line-height: 1.4; }
.widget .wp-block-latest-posts a:hover, .widget .wp-block-archives a:hover, .widget .wp-block-categories a:hover { color: var(--mae-primary); }
.widget .wp-block-latest-comments { padding: 0; font-size: var(--fs-sm); }
.mini-posts { display: grid; gap: 14px; }
.mini-post { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; text-decoration: none; }
.mini-post__img { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; display: block; }
.mini-post__img img { width: 100%; height: 100%; object-fit: cover; }
.mini-post__img .thumb-fallback { min-height: 0; }
.mini-post__title { display: block; color: var(--ink); font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; }
.mini-post:hover .mini-post__title { color: var(--mae-primary); }
.mini-post time { font-size: var(--fs-xs); color: var(--muted); }
.cat-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.cat-list a { color: var(--ink); text-decoration: none; font-weight: 600; }

.section-nav { border-radius: var(--radius-lg); background: var(--bg-soft); overflow: hidden; }
.section-nav .section-nav__title { display: block; padding: 18px 22px; background: var(--mae-primary); color: #fff; font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.section-nav .section-nav__title:hover { color: #fff; background: var(--primary-dark); }
.section-nav ul { list-style: none; margin: 0; padding: 8px; }
.section-nav ul ul { padding: 0 0 0 14px; }
.section-nav a { display: block; padding: 9px 14px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: var(--fs-sm); line-height: 1.35; }
.section-nav a:hover { background: #fff; color: var(--mae-primary); }
.section-nav .current_page_item > a { background: #fff; color: var(--mae-primary); font-weight: 700; box-shadow: inset 3px 0 0 var(--mae-accent); }

.minister-card { margin: 0; }
.minister-card figcaption { padding: 16px 4px 0; }
.minister-card strong { display: block; font-family: var(--font-head); color: var(--ink); }
.minister-card span { font-size: var(--fs-sm); color: var(--muted); }

.child-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; list-style: none; margin: 40px 0 0; padding: 0; }
.child-grid li { display: flex; }
.child-tile {
	flex: 1; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; column-gap: 12px; align-items: start;
	padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: .2s;
}
.child-tile strong { font-family: var(--font-head); color: var(--mae-primary); font-weight: 600; line-height: 1.3; }
.child-tile span { grid-column: 1; font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; margin-top: 4px; }
.child-tile .icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--mae-accent); transition: transform .2s; }
.child-tile:hover { border-color: var(--mae-primary); box-shadow: var(--shadow); }
.child-tile:hover .icon { transform: translateX(4px); }

/* Filtres & pagination */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-tabs a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.filter-tabs a em { font-style: normal; margin-left: 4px; color: var(--muted); font-weight: 400; }
.filter-tabs a:hover { border-color: var(--mae-primary); color: var(--mae-primary); }
.filter-tabs a[aria-current] { background: var(--mae-primary); border-color: var(--mae-primary); color: #fff; }
.filter-tabs a[aria-current] em { color: rgba(255,255,255,.75); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination .page-numbers:hover { border-color: var(--mae-primary); color: var(--mae-primary); }
.pagination .page-numbers.current { background: var(--mae-primary); border-color: var(--mae-primary); color: #fff; }
.pagination .dots { border: 0; }

/* Recherche & vide */
.search-again { margin-bottom: 32px; }
.results { list-style: none; margin: 0; padding: 0; }
.result { padding: 24px 0; border-bottom: 1px solid var(--line); }
.result__type { margin: 0 0 4px; font-size: var(--fs-xs); font-weight: 700; color: var(--accent-dark); }
.result__title { font-size: var(--fs-md); margin-bottom: 6px; }
.result__title a { color: var(--ink); text-decoration: none; }
.result__title a:hover { color: var(--mae-primary); text-decoration: underline; }
.result p:last-child { margin: 0; color: var(--muted); }
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 48px 24px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.empty h2 { font-size: var(--fs-md); margin: 0; }
.empty p { color: var(--muted); margin: 0; max-width: 52ch; }
.empty .search-form { width: 100%; margin: 8px 0; }
.empty__icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; color: var(--mae-primary); }
.empty__code { font-family: var(--font-head); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; line-height: 1; color: var(--mae-primary); margin: 0 !important; }

/* Contact */
.contact { padding-block: clamp(40px, 5vw, 64px); }
.contact__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 48px; }
.contact-card { padding: 26px 24px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.contact-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px; background: var(--mae-primary); color: #fff; }
.contact-card h2 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); word-break: break-word; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.contact__map { min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Formulaires */
.form { display: grid; gap: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { margin: 0 0 12px; display: grid; gap: 6px; }
.form label, .comment-form label { font-weight: 600; color: var(--ink); font-size: var(--fs-sm); }
.form input, .form select, .form textarea,
.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: var(--radius-sm);
	font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus, .comment-form input:focus, .comment-form textarea:focus {
	outline: none; border-color: var(--mae-primary); box-shadow: 0 0 0 4px var(--primary-tint);
}
.form__hp { position: absolute; left: -9999px; }
.form__note { font-size: var(--fs-xs); color: var(--muted); }
.form .btn { justify-self: start; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.notice--ok { background: #e3f4e9; color: #135c33; }
.notice--error { background: #fdeaea; color: #8f1d1d; }

/* Commentaires */
.comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: var(--fs-sm); }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }

/* Blocs Gutenberg */
.wp-block-button__link { border-radius: 999px; background: var(--mae-primary); font-family: var(--font-head); font-weight: 500; }
.wp-block-file { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wp-block-file .wp-block-file__button { background: var(--mae-primary); border-radius: 999px; padding: .5em 1.2em; }
.wp-block-gallery img { border-radius: var(--radius-sm); }

/* ---------- 13. Adaptations ---------- */
@media (max-width: 1540px) {
	.site-header__cta { display: none; }
}
@media (max-width: 1280px) {
	.primary-nav .menu > li > a { padding-inline: 9px; font-size: .9rem; }
	.primary-nav .menu > li > a::before { left: 9px; right: 9px; }
	.brand__name { font-size: .94rem; }
}
@media (max-width: 1200px) {
	:root { --header-h: 76px; }
	.primary-nav { display: none; }
	.icon-btn--menu { display: inline-grid; }
	.site-header__actions { margin-left: auto; }
	.site-header__cta { display: inline-flex; }
}
@media (max-width: 1120px) {
	.ticker__box { grid-template-columns: 1fr; }
	.ticker__title { padding: 16px 24px; }
	.ticker__list { grid-template-columns: repeat(2, 1fr); }
	.ticker__item:nth-child(3) { border-left: 0; }
	.ticker__item:nth-child(n+3) { border-top: 1px solid var(--line); }
	.news__grid { grid-template-columns: 1fr; }
	.docs__grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.contact__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.minister__grid { grid-template-columns: 1fr; }
	.minister__figure { max-width: 440px; }
	.strategy__head { grid-template-columns: 1fr; }
	.pillars, .programmes { grid-template-columns: 1fr; }
	.programme { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
	.programme:first-child { border-top: 0; }
	.layout--sidebar, .layout--page { grid-template-columns: 1fr; }
	.layout__aside { position: static; }
	.layout__aside--left { order: 2; }
	.news__main { grid-template-columns: 1fr; }
	.news__main .card--lead { grid-row: auto; }
	.card-grid--3 { grid-template-columns: 1fr 1fr; }
	.contact__grid { grid-template-columns: 1fr; }
	.section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
	body { font-size: 1rem; }
	.topbar__info .topbar__date, .topbar__info .topbar__phone, .topbar__menu { display: none; }
	.site-header__cta { display: none; }
	.brand__logo { width: 46px; height: 46px; }
	.brand__name { font-size: .86rem; }
	.brand__country { font-size: .66rem; }
	.hero__slide { min-height: 560px; }
	.hero__content { padding-block: 72px 150px; }
	.hero__controls { bottom: 104px; }
	.ticker { margin-top: -78px; }
	.ticker__list { grid-template-columns: 1fr; }
	.ticker__item { border-left: 0 !important; border-top: 1px solid var(--line); }
	.ticker__item:first-child { border-top: 0; }
	.ticker__item:nth-child(n+4) { display: none; }
	.card-grid, .card-grid--3 { grid-template-columns: 1fr; }
	.card--compact { flex-direction: column; }
	.card--compact .card__media { width: 100%; aspect-ratio: 3 / 2; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.contact__cards { grid-template-columns: 1fr; }
	.form__row { grid-template-columns: 1fr; gap: 0; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: auto; }
	.doc { grid-template-columns: auto 1fr; }
	.doc__dl { display: none; }
	.minister__badge { right: 0; }
	.project-grid { grid-template-columns: 1fr 1fr; }
	.project-tile { min-height: 92px; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.hero__media img { transform: none !important; }
}

@media print {
	.topbar, .site-header, .site-footer, .to-top, .layout__aside, .share, .post-nav, .related, .comments { display: none !important; }
	.page-head { background: none; color: #000; }
	.page-head__title { color: #000; }
}

.doc-list--cat { margin-bottom: 32px; }
