/*
Theme Name: ILF Mali
Theme URI: https://ilfmali.com
Author: Nanbal Levi — ILF Nigeria
Description: Custom bilingual (Français / English) theme for International Leadership Foundation — Mali. Colours drawn from the Malian flag, with a bogolan-inspired pattern, ILF signature structure. Upload the logo under Appearance → Customize → Site Identity; contact details under "ILF Mali — Contact & Social".
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ilf-mali
*/

/* ---------- Tokens ---------- */
:root {
	--navy: #13261c;        /* deep Sahel green-black */
	--navy-2: #1f3d2b;
	--blue: #0f8a3c;        /* Mali flag green (deepened for contrast) */
	--blue-soft: #e8f5ec;
	--red: #ce1126;         /* flag red */
	--gold: #fcd116;        /* flag gold */
	--gold-deep: #e6bb00;
	--ink: #1b2620;
	--muted: #5c6a61;
	--line: #e5e8e2;
	--paper: #ffffff;
	--tint: #f6f4ee;        /* banco / sand */
	--radius: 14px;
	--shadow: 0 10px 30px rgba(19, 38, 28, .08);
	--font-head: "Lexend", system-ui, sans-serif;
	--font-body: "Source Sans 3", system-ui, sans-serif;
	--tricolor: linear-gradient(90deg, #14b53a 0 33.34%, var(--gold) 33.34% 66.67%, var(--red) 66.67% 100%);
	--tricolor-v: linear-gradient(180deg, #14b53a 0 33.34%, var(--gold) 33.34% 66.67%, var(--red) 66.67% 100%);
	--bogolan: none;
}

/* ---------- Language visibility ---------- */
html[data-lang="fr"] .l-en,
html[data-lang="en"] .l-fr { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 999; border-radius: 6px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.icon { display: inline-flex; width: 1.1em; height: 1.1em; flex: none; }
.icon svg { width: 100%; height: 100%; fill: currentColor; }

.kicker {
	font-family: var(--font-head); font-size: .78rem; font-weight: 700;
	letter-spacing: .16em; text-transform: uppercase; color: var(--red);
	margin-bottom: .9em; display: inline-flex; align-items: center; gap: .6em;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--tricolor); border-radius: 2px; }
.kicker.light { color: var(--gold); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	font-family: var(--font-head); font-weight: 700; font-size: .95rem;
	padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s;
	text-decoration: none !important; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #0b7331; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--blue); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Flag band motif ---------- */
.flag-band {
	height: 8px;
	background: var(--tricolor);
}
.flag-band.thin { height: 5px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.75); font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.topbar-link { color: var(--gold); font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(19,38,28,.08); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { flex: none; }
.brand .custom-logo { max-height: 58px; width: auto; }
.text-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none !important; }
.text-logo .mark { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--blue); position: relative; overflow: hidden; }
.text-logo .mark::after { content: ""; position: absolute; width: 140%; height: 9px; background: var(--red); box-shadow: 0 -2px 0 var(--gold), 0 2px 0 var(--gold); transform: rotate(-35deg); top: 60%; left: -20%; }
.text-logo .mark .icon { color: var(--gold); width: 18px; height: 18px; position: absolute; top: 6px; left: 6px; z-index: 1; }
.text-logo .words { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.text-logo strong { font-size: 1.45rem; font-weight: 800; letter-spacing: .02em; }
.text-logo em { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-top: 3px; }

.main-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav ul a { display: block; padding: 8px 12px; font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--ink); border-radius: 8px; position: relative; }
.main-nav ul a:hover { text-decoration: none; color: var(--blue); }
.main-nav ul a[aria-current="page"] { color: var(--blue); }
.main-nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--red); }
.nav-cta { padding: .7em 1.2em; }

.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { font-family: var(--font-head); font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.lang-switch a:hover { text-decoration: none; color: var(--navy); }
.lang-switch a.is-active { background: var(--navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px 8px; cursor: pointer; }
.nav-toggle span:not(.screen-reader-text) { display: block; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Stats ---------- */
.stats { background: var(--paper); position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -52px; border: 1px solid var(--line); }
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat:nth-child(2) strong { color: var(--blue); }
.stat:nth-child(3) strong { color: var(--red); }
.stat > span { font-size: .95rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tinted { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }

.vision-card { position: relative; background: linear-gradient(150deg, var(--blue) 0%, #0a6b2e 100%); color: #fff; border-radius: 22px; padding: 48px 40px; overflow: hidden; box-shadow: var(--shadow); }
.vision-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: var(--bogolan); opacity: .28; -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); }
.vision-star { position: absolute; top: 24px; right: 28px; width: 46px; height: 46px; color: var(--gold); }
.vision-star .icon { width: 100%; height: 100%; }
.vision-text { position: relative; z-index: 1; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; line-height: 1.4; margin-bottom: 40px; }

.values { background: var(--tint); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); border-top: 4px solid var(--blue); transition: transform .2s, box-shadow .2s; }
.value:nth-child(2) { border-top-color: var(--red); }
.value:nth-child(3) { border-top-color: var(--gold); }
.value:nth-child(4) { border-top-color: var(--navy); }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value .num { font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--muted); display: block; margin-bottom: 14px; }
.value p { color: var(--muted); margin: 0; font-size: 1rem; }

.prog-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.prog-card { grid-column: span 2; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.prog-card:nth-child(4), .prog-card:nth-child(5) { grid-column: span 3; }
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.prog-card p { color: var(--muted); font-size: 1rem; flex: 1; }
.prog-tag { display: inline-block; align-self: flex-start; font-family: var(--font-head); font-size: .75rem; font-weight: 800; letter-spacing: .08em; background: var(--blue-soft); color: var(--blue); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.prog-for { font-size: .85rem; font-weight: 600; color: var(--red); }

.spheres { background: var(--navy); color: rgba(255,255,255,.82); position: relative; overflow: hidden; }
.spheres h2 { color: #fff; }
.sphere-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sphere-list li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 16px 18px 16px 44px; position: relative; font-family: var(--font-head); font-weight: 600; color: #fff; font-size: .98rem; }
.sphere-list li::before { content: "◆"; position: absolute; left: 16px; top: 15px; color: var(--gold); }
.sphere-list li:last-child { grid-column: 1 / -1; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card-media { aspect-ratio: 16/10; background: var(--blue-soft); display: block; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover img { transform: scale(1.04); }
.post-card-ph { display: grid; place-items: center; height: 100%; color: var(--blue); }
.post-card-ph .icon { width: 48px; height: 48px; opacity: .5; }
.post-card-body { padding: 22px 24px 26px; }
.post-card time { font-size: .85rem; color: var(--red); font-weight: 600; }
.post-card h3 { margin: 6px 0 8px; }
.post-card h3 a { color: var(--navy); }
.post-card p { color: var(--muted); font-size: 1rem; margin: 0; }
.empty { text-align: center; padding: 40px; color: var(--muted); background: var(--tint); border-radius: var(--radius); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; }

.cta { background: linear-gradient(120deg, var(--red) 0%, #a50d1a 100%); color: #fff; position: relative; overflow: hidden; padding: 80px 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--bogolan); opacity: .14; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: rgba(255,255,255,.88); max-width: 56ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 80px 0 72px; overflow: hidden; }
.page-hero .flag-band { position: absolute; left: 0; right: 0; bottom: 0; }
.page-hero::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 38%; background: var(--bogolan); opacity: .22; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: rgba(255,255,255,.8); max-width: 60ch; }
.page-hero .kicker { color: var(--gold); }

.timeline { border-left: 3px solid var(--line); padding-left: 28px; display: grid; gap: 26px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -37px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tl-item.is-now::before { background: var(--gold); border-color: var(--red); }
.tl-year { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.tl-item p { margin: 4px 0 0; color: var(--muted); }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 44px 40px; }
.mv-card.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.mv-text { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1.4; margin: 0; color: var(--navy); }
.mv-card.blue .mv-text { color: #fff; }

.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.approach-grid article { padding: 32px 28px; border-radius: var(--radius); background: var(--tint); }
.step { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-head); font-weight: 800; margin-bottom: 16px; }
.approach-grid p { color: var(--muted); margin: 0; }

.prog-jump { position: sticky; top: 78px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.prog-jump .wrap { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; }
.prog-jump a { flex: none; font-family: var(--font-head); font-weight: 700; font-size: .85rem; padding: 7px 14px; border-radius: 999px; background: var(--tint); color: var(--navy); }
.prog-jump a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.prog-list { display: grid; gap: 28px; }
.prog-row { display: grid; grid-template-columns: 180px 1fr; gap: 36px; padding: 40px; border: 1px solid var(--line); border-radius: 20px; scroll-margin-top: 150px; }
.prog-row:nth-child(even) { background: var(--tint); }
.prog-index { display: block; font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--line); line-height: 1; margin-bottom: 10px; }
.prog-row:nth-child(even) .prog-index { color: #d6deea; }
.prog-desc { font-size: 1.15rem; color: var(--ink); }
.prog-row-body p { color: var(--muted); }
.prog-row-body .prog-desc { color: var(--ink); }
.prog-meta strong { color: var(--navy); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 14px 50px; position: relative; font-weight: 600; }
.check-list li::before { content: "✓"; position: absolute; left: 16px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .8rem; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.contact-list .icon svg { fill: none; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--navy); }
.contact-note { margin-top: 28px; padding: 20px; border-radius: 12px; background: var(--tint); font-size: .95rem; color: var(--muted); }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); scroll-margin-top: 110px; }
.contact-form { display: grid; gap: 18px; }
.contact-form label span { display: block; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15,138,60,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .btn { justify-self: start; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.notice.ok { background: #e7f8ee; color: #136c3a; }
.notice.err { background: #fde8ea; color: var(--red); }

.prose { max-width: 780px; }
.prose h2 { margin-top: 1.4em; }
.prose img { border-radius: 12px; }
.feature-img { margin: 0 0 32px; }

/* ---------- Socials ---------- */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--blue); }
.socials .icon { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #0d1b14; color: rgba(255,255,255,.72); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 72px 0 48px; }
.site-footer h3 { color: #fff; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-brand .text-logo { color: #fff; }
.footer-brand .custom-logo { max-height: 56px; filter: none; }
.footer-about p { margin: 18px 0 22px; }
.footer-about .socials a { background: rgba(255,255,255,.1); }
.footer-about .socials a:hover { background: var(--blue); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 4px; }
.footer-contact .icon svg { fill: none; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 30px; font-size: .88rem; }
.footer-base p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.nav-toggle { display: block; }
	.main-nav { position: fixed; inset: 0; top: 0; background: var(--navy); flex-direction: column; justify-content: center; gap: 30px; transform: translateX(100%); transition: transform .3s; z-index: -1; padding: 80px 24px; }
	.nav-open .main-nav { transform: none; z-index: 60; }
	.nav-open .header-tools { position: relative; z-index: 61; }
	.nav-open .nav-toggle span:not(.screen-reader-text) { background: #fff; }
	.nav-open .lang-switch { border-color: rgba(255,255,255,.3); }
	.main-nav ul { flex-direction: column; align-items: center; gap: 6px; }
	.main-nav ul a { color: #fff; font-size: 1.35rem; }
	.main-nav ul a[aria-current="page"] { color: var(--gold); }
	.header-inner { justify-content: space-between; }
				.values-grid { grid-template-columns: 1fr 1fr; }
	.prog-grid { grid-template-columns: 1fr 1fr; }
	.prog-card, .prog-card:nth-child(4) { grid-column: span 1; }
	.prog-card:nth-child(5) { grid-column: 1 / -1; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	body { font-size: 17px; }
	.section { padding: 70px 0; }
	.split, .mv-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
	.stats-grid { grid-template-columns: 1fr 1fr; }
	.stat:nth-child(2) { border-right: 0; }
	.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.post-grid, .approach-grid { grid-template-columns: 1fr; }
	.prog-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 24px; }
	.prog-index { font-size: 2.2rem; }
	.topbar-note { display: none; }
	.topbar .wrap { justify-content: flex-end; }
}
@media (max-width: 560px) {
	.wrap { width: calc(100% - 32px); }
	.values-grid, .prog-grid, .sphere-list, .field-row, .footer-grid { grid-template-columns: 1fr; }
	.prog-card:nth-child(5), .sphere-list li:last-child { grid-column: auto; }
	.stat strong { font-size: 1.8rem; }
	.stat { padding: 20px 12px; }
			.contact-form-wrap { padding: 26px 20px; }
	.text-logo strong { font-size: 1.25rem; }
}

/* ---------- v1.1: logo, slider, founder, resources ---------- */
.site-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; }
.site-logo .custom-logo { height: 52px; width: auto; max-height: none; }
.country-tag { font-family: var(--font-head); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); padding: 6px 0 6px 12px; border-left: 3px solid var(--red); line-height: 1.2; white-space: nowrap; }
.footer-brand .site-logo .custom-logo { background: #fff; border-radius: 10px; padding: 6px 10px; height: 56px; box-sizing: content-box; }
.footer-brand .country-tag { color: #fff; }
.topbar-right { display: inline-flex; gap: 18px; }
.topbar-right a { color: rgba(255,255,255,.85); }

.hero-slider { position: relative; z-index: 1; background: var(--navy); color: #fff; overflow: hidden; }
.hero-slider .slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; min-height: clamp(540px, 78vh, 760px); display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.slide.is-active .slide-img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.slide-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(19,38,28,.62) 0%, rgba(19,38,28,.35) 75%), linear-gradient(180deg, rgba(19,38,28,.15) 0%, rgba(19,38,28,.7) 100%); }
.slide-copy { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 100px 0 140px; }
.slide-copy .kicker { justify-content: center; }
.slide-copy .kicker::after { content: ""; width: 26px; height: 3px; background: var(--tricolor); border-radius: 2px; }
.slide-copy h1, .slide-copy .slide-title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.9rem); font-weight: 800; max-width: 18ch; text-wrap: balance; margin-bottom: .45em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.slide-copy .hl { color: var(--gold); }
.slide-copy .lead { color: rgba(255,255,255,.9); max-width: 58ch; margin-inline: auto; }
.slide-copy .hero-actions { justify-content: center; }
.slide.is-active .slide-copy > * { animation: rise .8s ease both; }
.slide.is-active .slide-copy > *:nth-child(2) { animation-delay: .12s; }
.slide.is-active .slide-copy > *:nth-child(3) { animation-delay: .24s; }
.slide.is-active .slide-copy > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.slider-arrow { position: absolute; top: 50%; z-index: 5; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: rgba(19,38,28,.35); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.prev .icon { transform: rotate(180deg); }
.slider-arrow.next { right: 24px; }
.slider-dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: 66px; display: flex; justify-content: center; gap: 10px; }
.slider-dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.slider-dots button.is-active { width: 36px; background: var(--gold); }
.hero-slider .flag-band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; }
.slide-overlay::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: var(--bogolan); opacity: .18; -webkit-mask-image: linear-gradient(180deg, transparent, #000); mask-image: linear-gradient(180deg, transparent, #000); }
.hero-slider + .stats .stats-grid { margin-top: -40px; }

.founder-row { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.founder-row.large { grid-template-columns: 340px 1fr; align-items: start; }
.founder-photo { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: linear-gradient(150deg, var(--blue), var(--navy)); position: relative; box-shadow: var(--shadow); max-width: 100%; }
.founder-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--tricolor); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.founder-initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 4.5rem; color: rgba(255,255,255,.9); letter-spacing: .04em; }
.founder-role { font-family: var(--font-head); font-weight: 600; color: var(--red); margin-top: -.3em; }
.founder-teaser { background: var(--paper); }

.photo-band { height: clamp(260px, 42vw, 480px); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.where-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 22px; }
.where-grid article { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.where-grid article:first-child { background: var(--blue-soft); border-color: transparent; }
.where-grid p { color: var(--muted); font-size: 1rem; margin: 0; }
.where-grid strong { color: var(--red); }

.prog-links, .btn-row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.link-arrow.muted { color: var(--muted); font-weight: 600; }
.muted-text { color: var(--muted); margin: 0; }

.poem { margin: 0; position: relative; background: var(--navy); color: #fff; border-radius: 22px; padding: 56px 44px; overflow: hidden; }
.poem p { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.2; margin: 0 0 18px; color: var(--gold); }
.poem cite { font-style: normal; color: rgba(255,255,255,.75); }
.poem-star { position: absolute; right: 28px; top: 24px; width: 54px; height: 54px; color: var(--gold); opacity: .35; }
.poem-star .icon { width: 100%; height: 100%; }

@media (max-width: 1080px) {
	.where-grid { grid-template-columns: 1fr 1fr; }
		.slider-arrow { display: none; }
}
@media (max-width: 820px) {
	.founder-row, .founder-row.large { grid-template-columns: 1fr; gap: 28px; }
	.founder-photo { max-width: 300px; }
		.topbar-right a:first-child { display: none; }
}
@media (max-width: 560px) {
	.where-grid, 	.site-logo .custom-logo { height: 40px; }
	.country-tag { font-size: .62rem; padding-left: 9px; }
	.slide { min-height: 560px; }
	.slide-copy { padding: 72px 0 128px; }
}


/* ---------- v1.2: polish, image headers, shelf, chat ---------- */
::selection { background: var(--gold); color: var(--navy); }
body { text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.section-head h2 { margin-bottom: .35em; }

.page-hero.has-image { padding: 120px 0 104px; isolation: isolate; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.page-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(19,38,28,.94) 0%, rgba(19,38,28,.78) 45%, rgba(19,38,28,.35) 100%); }
.page-hero.has-image::after { z-index: 0; opacity: .3; }
.page-hero.has-image .wrap { z-index: 1; }
.page-hero.has-image .lead { color: rgba(255,255,255,.88); }

.value, .prog-card, .post-card, .where-grid article, .approach-grid article, .mv-card { border-radius: 18px; }
.prog-card { position: relative; overflow: hidden; }
.prog-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--red), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.prog-card:hover::after { transform: scaleX(1); }
.prog-card:hover, .value:hover, .post-card:hover, .post-card { transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); }
.post-card-media { position: relative; }
.post-card-body { display: flex; flex-direction: column; flex: 1; }
.post-card-body p { flex: 1; }

.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; counter-reset: none; }
.shelf-item a { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none !important; position: relative; overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.shelf-item a::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--tricolor-v); }
.shelf-item a:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(19,38,28,.1); }
.shelf-num { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue); min-width: 2.2ch; transition: color .25s; }
.shelf-item a:hover .shelf-num { color: var(--blue); }
.shelf-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shelf-tag { font-family: var(--font-head); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.shelf-title { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); line-height: 1.3; }
.shelf-alt { font-size: .92rem; color: var(--muted); font-style: italic; }
.shelf-langs { display: flex; gap: 6px; }
.shelf-langs span { font-family: var(--font-head); font-size: .7rem; font-weight: 800; padding: 4px 8px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); }
.shelf-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--navy); transition: background .25s, color .25s, transform .25s; }
.shelf-item a:hover .shelf-go { background: var(--gold); transform: rotate(-35deg); }

/* Chat assistant */
#ilf-chat { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 90; font-family: var(--font-body); }
.chat-toggle { width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(15,138,60,.4); transition: transform .2s, background .2s; position: relative; }
.chat-toggle::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; animation: chatPulse 2.6s ease-out infinite; }
#ilf-chat.open .chat-toggle::before { animation: none; }
@keyframes chatPulse { 0% { transform: scale(.9); opacity: .6; } 100% { transform: scale(1.35); opacity: 0; } }
.chat-toggle:hover { transform: scale(1.06); background: var(--navy); }
.chat-toggle svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; grid-area: 1 / 1; transition: transform .25s, opacity .25s; }
.chat-toggle .i-close { opacity: 0; transform: rotate(-90deg); }
#ilf-chat.open .chat-toggle .i-chat { opacity: 0; transform: rotate(90deg); }
#ilf-chat.open .chat-toggle .i-close { opacity: 1; transform: none; }
.chat-badge { position: absolute; right: 74px; bottom: 14px; white-space: nowrap; background: #fff; color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: .85rem; padding: 9px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(19,38,28,.15); opacity: 0; transform: translateX(10px); transition: opacity .3s, transform .3s; pointer-events: none; }
#ilf-chat.nudge .chat-badge { opacity: 1; transform: none; }
#ilf-chat.open .chat-badge { opacity: 0; }
.chat-panel { position: absolute; right: 0; bottom: 78px; width: 370px; max-width: calc(100vw - 32px); height: min(560px, calc(100vh - 140px)); background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(19,38,28,.28); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.97); transform-origin: bottom right; transition: opacity .25s, transform .25s, visibility 0s .25s; }
#ilf-chat.open .chat-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; position: relative; }
.chat-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tricolor); }
.chat-av { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 6px; flex: none; }
.chat-av img { width: 100%; height: auto; }
.chat-id { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.chat-id b { font-family: var(--font-head); font-size: .98rem; }
.chat-id small { font-size: .8rem; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 6px; }
.dot-online { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.25); }
.chat-close { background: rgba(255,255,255,.1); border: 0; width: 34px; height: 34px; border-radius: 50%; color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--tint); overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.5; animation: msgIn .25s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot { background: #fff; color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 2px 8px rgba(19,38,28,.06); }
.msg.me { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: var(--blue); font-weight: 600; }
.dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; animation: blink 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; } }
.chat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; background: var(--tint); scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button { flex: none; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: .8rem; padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.chat-chips button:hover { background: var(--blue); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 999px; outline: none; }
.chat-form input:focus { border-color: var(--blue); }
.chat-form button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.chat-form button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.chat-foot { padding: 0 14px 12px; font-size: .8rem; color: var(--muted); text-align: center; background: #fff; }
.chat-foot a { color: var(--blue); font-weight: 600; }

/* Mobile optimisation */
@media (max-width: 820px) {
	.page-hero.has-image { padding: 88px 0 76px; }
	.page-hero-shade { background: linear-gradient(180deg, rgba(19,38,28,.7) 0%, rgba(19,38,28,.9) 100%); }
	.page-hero::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 38%; background: var(--bogolan); opacity: .22; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
	.shelf { grid-template-columns: 1fr; }
	.section-head { margin-bottom: 32px; }
}
@media (max-width: 560px) {
	body { font-size: 16.5px; }
	.topbar { display: none; }
	.header-inner { min-height: 64px; gap: 12px; }
	.prog-jump { top: 64px; }
	.section { padding: 56px 0; }
	.cta { padding: 56px 0; }
	h2 { font-size: 1.6rem; }
	.page-hero h1 { font-size: 2rem; }
	.page-hero .lead, .slide-copy .lead { font-size: 1.05rem; }
	.slide-copy h1, .slide-copy .slide-title { font-size: 2.05rem; }
	.slide-copy .hero-actions { flex-direction: column; width: 100%; max-width: 320px; gap: 10px; }
	.slide-copy .hero-actions .btn { justify-content: center; }
	.slider-dots { bottom: 58px; }
	.lang-switch a { padding: 5px 8px; }
	.stats-grid { margin-top: -28px !important; }
	.stat strong { font-size: 1.6rem; }
	.stat > span { font-size: .85rem; }
	.value, .prog-card, 	.prog-row { padding: 24px 20px; }
	.cta-actions { width: 100%; }
	.cta-actions .btn { flex: 1; justify-content: center; }
	.shelf-item a { grid-template-columns: auto 1fr auto; gap: 14px; padding: 18px 16px 18px 20px; }
	.shelf-langs { display: none; }
	.shelf-num { font-size: 2rem; }
	.founder-photo { max-width: 260px; margin-inline: auto; }
	.footer-grid { gap: 28px; padding: 48px 0 32px; }
	.chat-badge { display: none; }
	#ilf-chat { right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
	.chat-toggle { width: 56px; height: 56px; }
	.chat-panel { position: fixed; left: 10px; right: 10px; bottom: 82px; width: auto; max-width: none; height: min(70vh, 560px); }
}


/* =========================================================================
   ILF Mali — home layout, dropdown, inner headers
   ========================================================================= */
.kicker::before { display: none; }
.kicker { letter-spacing: .12em; }
.site-header { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.topbar { border-bottom: 3px solid transparent; border-image: var(--tricolor) 1; }

/* Dropdown */
.main-nav .has-sub { position: relative; }
.sub-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px 12px; font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--ink); border-radius: 8px; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.sub-toggle:hover, .sub-toggle.is-current { color: var(--blue); }
.has-sub.open .sub-toggle svg, .has-sub:hover .sub-toggle svg { transform: rotate(180deg); }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(19,38,28,.16); border: 1px solid var(--line); display: block; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s .18s; z-index: 70; }
.main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.main-nav .sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: .92rem; }
.main-nav .sub-menu a:hover { background: var(--blue-soft); color: var(--blue); }
.main-nav .sub-menu a[aria-current="page"]::after { display: none; }
.main-nav .sub-menu a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }

/* Inner page header */
.page-hero.has-image { padding: 110px 0 90px; }
.page-hero-shade { background: linear-gradient(90deg, rgba(19,38,28,.55) 0%, rgba(19,38,28,.2) 100%); }
.page-hero-panel { max-width: 720px; background: rgba(19,38,28,.86); border-left: 6px solid var(--gold); padding: 40px 44px 36px; border-radius: 0 22px 22px 0; backdrop-filter: blur(2px); }
.page-hero-panel .lead { margin-bottom: 0; }
.page-hero-panel h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.page-hero.has-image::after { width: 30%; opacity: .35; }

/* Hero */
.ml-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: 88px 0 0; }
.ml-hero-pattern { position: absolute; inset: 0 auto 0 0; width: 46%; background: var(--bogolan); opacity: .05; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }
.ml-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: end; }
.ml-hero-copy { padding-bottom: 96px; }
.ml-eyebrow { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.ml-eyebrow.dark { color: var(--red); }
.ml-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: .4em; }
.ml-hero h1 em { font-style: normal; color: var(--gold); position: relative; white-space: nowrap; }
.ml-hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; background: var(--tricolor); border-radius: 2px; }
.ml-lead { font-size: 1.2rem; color: rgba(255,255,255,.84); max-width: 50ch; }
.ml-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.ml-places { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-head); font-size: .92rem; color: rgba(255,255,255,.7); }
.tri { width: 36px; height: 5px; border-radius: 3px; background: var(--tricolor); flex: none; }
.ml-collage { position: relative; height: 540px; }
.ml-arch { margin: 0; overflow: hidden; border-radius: 999px 999px 20px 20px; background: var(--navy-2); }
.ml-arch img { width: 100%; height: 100%; object-fit: cover; }
.ml-arch-main { position: absolute; right: 0; bottom: 0; width: 60%; height: 94%; border-radius: 999px 999px 0 0; }
.ml-arch-small { position: absolute; border: 6px solid var(--navy); }
.ml-arch-small.one { left: 2%; top: 4%; width: 36%; height: 46%; }
.ml-arch-small.two { left: 12%; bottom: 0; width: 32%; height: 40%; border-radius: 999px 999px 0 0; border-bottom: 0; }
.ml-collage::before { content: ""; position: absolute; width: 120px; height: 120px; right: 52%; top: 46%; background: var(--bogolan); background-size: 36px 36px; opacity: .55; border-radius: 50%; }

/* Figures */
.ml-figures { background: var(--tint); border-bottom: 1px solid var(--line); }
.ml-figures-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.ml-figures-row > div { padding: 30px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.ml-figures-row > div:first-child { border-left: 0; padding-left: 0; }
.ml-figures strong { font-family: var(--font-head); font-size: 2.5rem; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.ml-figures strong span { font: inherit; color: inherit; }
.ml-figures-row > div > span { color: var(--muted); font-size: .98rem; }

/* Who we are */
.ml-who-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.ml-mission { margin: 0; padding: 40px 36px; background: var(--tint); border-left: 6px solid var(--gold); border-radius: 0 20px 20px 0; position: relative; overflow: hidden; }
.ml-mission::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 130px; height: 130px; background: var(--bogolan); background-size: 40px 40px; opacity: .22; filter: brightness(.55) saturate(1.4); border-radius: 50%; }
.ml-mission-label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--blue); margin-bottom: 12px; }
.ml-mission p { position: relative; z-index: 1; font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; line-height: 1.3; color: var(--navy); margin: 0; }

.ml-head { max-width: 680px; margin-bottom: 40px; }
.ml-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.ml-head.center { margin-inline: auto; text-align: center; }

/* Initiatives tabs */
.ml-init { background: var(--paper); }
.ml-tabs { display: grid; grid-template-columns: 360px 1fr; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.ml-tablist { background: var(--navy); display: flex; flex-direction: column; padding: 10px 0; }
.ml-tablist button { text-align: left; background: none; border: 0; cursor: pointer; padding: 18px 26px; color: rgba(255,255,255,.72); display: flex; flex-direction: column; gap: 3px; border-left: 5px solid transparent; transition: background .2s, color .2s; }
.ml-tablist button:hover { color: #fff; background: rgba(255,255,255,.04); }
.ml-tablist button[aria-selected="true"] { background: var(--navy-2); color: #fff; border-left-color: var(--gold); }
.ml-tab-tag { font-family: var(--font-head); font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: var(--gold); }
.ml-tab-name { font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.ml-panels { padding: 48px 52px; position: relative; }
.ml-panels::after { content: ""; position: absolute; right: 0; top: 0; width: 180px; height: 100%; background: var(--bogolan); background-size: 40px 40px; opacity: .25; filter: brightness(.5); -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.ml-panel { position: relative; z-index: 1; max-width: 60ch; animation: msgIn .3s ease both; }
.ml-panel h3 { font-size: 1.7rem; margin-bottom: .5em; }
.ml-panel-lead { font-size: 1.15rem; color: var(--ink); }
.ml-panel p { color: var(--muted); }
.ml-panel .ml-panel-lead { color: var(--ink); }
.ml-panel-for { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink) !important; font-weight: 600; margin: 22px 0 28px; }
.ml-panel-for span { font-family: var(--font-head); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--blue-soft); color: var(--blue); padding: 5px 10px; border-radius: 999px; }

/* Values */
.ml-values { background: var(--navy); color: rgba(255,255,255,.78); position: relative; overflow: hidden; }
.ml-values::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: var(--bogolan); background-size: 36px 36px; opacity: .25; }
.ml-values h2, .ml-values h3 { color: #fff; }
.ml-values-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.ml-values-row li { padding: 8px 30px; border-left: 1px solid rgba(255,255,255,.14); }
.ml-values-row li:first-child { border-left: 0; padding-left: 0; }
.ml-values-row p { margin: 0; font-size: 1rem; }
.ml-motif { width: 46px; height: 46px; color: var(--gold); margin-bottom: 16px; }
.ml-values-row li:nth-child(2) .ml-motif { color: #3fd16a; }
.ml-values-row li:nth-child(4) .ml-motif { color: #ff5a6a; }

/* Founder */
.ml-founder { background: var(--paper); }
.ml-founder-grid { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center; }
.ml-founder-photo { aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; box-shadow: 0 0 0 10px var(--tint), 0 0 0 14px var(--gold); max-width: 100%; }
.ml-founder-photo img { object-position: center 15%; }
.ml-founder-text { font-size: 1.25rem; line-height: 1.6; color: var(--ink); max-width: 56ch; }

/* Spheres */
.ml-spheres { background: var(--tint); position: relative; }
.ml-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.ml-tags li { font-family: var(--font-head); font-weight: 600; padding: 13px 22px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--navy); transition: transform .2s, border-color .2s; }
.ml-tags li:hover { transform: translateY(-2px); }
.ml-tags li:nth-child(3n+1) { border-color: #14b53a; }
.ml-tags li:nth-child(3n+2) { border-color: var(--gold); }
.ml-tags li:nth-child(3n) { border-color: var(--red); }

/* Join */
.ml-join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ml-join-item { display: flex; flex-direction: column; gap: 10px; padding: 34px 30px 30px; background: #fff; border: 1px solid var(--line); border-top: 6px solid #14b53a; border-radius: 6px 6px 20px 20px; color: var(--muted); text-decoration: none !important; transition: transform .25s, box-shadow .25s; }
.ml-join-item:nth-child(2) { border-top-color: var(--gold); }
.ml-join-item:nth-child(3) { border-top-color: var(--red); }
.ml-join-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(19,38,28,.12); }
.ml-join-verb { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; }
.ml-join-verb::after { content: "→"; color: var(--blue); transition: transform .2s; }
.ml-join-item:hover .ml-join-verb::after { transform: translateX(4px); }

/* About: vision band, steps */
.ml-vision-band { background: var(--blue); color: #fff; text-align: center; position: relative; overflow: hidden; }
.ml-vision-band::before { content: ""; position: absolute; inset: 0; background: var(--bogolan); opacity: .14; }
.ml-vision-band .wrap { position: relative; }
.ml-vision-band .ml-mission-label { color: var(--gold); }
.ml-vision-text { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.4; max-width: 900px; margin: 0 auto; }
.ml-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ml-steps article { padding-top: 22px; border-top: 4px solid #14b53a; }
.ml-steps article:nth-child(2) { border-top-color: var(--gold); }
.ml-steps article:nth-child(3) { border-top-color: var(--red); }
.ml-steps p { color: var(--muted); margin: 0; }
ol.timeline { list-style: none; margin: 0; padding-left: 28px; }

/* Footer band */
.ml-footer-band { height: 5px; background: var(--tricolor); }

@media (max-width: 1080px) {
	.ml-hero-grid { grid-template-columns: 1fr; gap: 0; }
	.ml-hero-copy { padding-bottom: 48px; }
	.ml-collage { height: 420px; max-width: 620px; }
	.ml-tabs { grid-template-columns: 1fr; }
	.ml-tablist { flex-direction: row; overflow-x: auto; padding: 0; scrollbar-width: none; }
	.ml-tablist::-webkit-scrollbar { display: none; }
	.ml-tablist button { flex: none; border-left: 0; border-bottom: 4px solid transparent; padding: 16px 20px; max-width: 240px; }
	.ml-tablist button[aria-selected="true"] { border-bottom-color: var(--gold); }
	.ml-values-row { grid-template-columns: 1fr 1fr; row-gap: 36px; }
	.ml-values-row li:nth-child(3) { border-left: 0; padding-left: 0; }
	.main-nav .has-sub { display: flex; flex-direction: column; align-items: center; }
	.sub-toggle { color: #fff; font-size: 1.35rem; padding: 8px 12px; }
	.sub-toggle.is-current { color: var(--gold); }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: rgba(255,255,255,.06); border: 0; box-shadow: none; min-width: 0; margin-top: 4px; text-align: center; }
	.has-sub.open .sub-menu { display: block; }
	.has-sub:hover .sub-menu { display: none; }
	.has-sub.open:hover .sub-menu { display: block; }
	.main-nav .sub-menu a { color: #fff; font-size: 1.05rem; }
	.main-nav .sub-menu a:hover, .main-nav .sub-menu a[aria-current="page"] { background: rgba(255,255,255,.08); color: var(--gold); }
}
@media (max-width: 820px) {
	.ml-who-grid, .ml-founder-grid { grid-template-columns: 1fr; gap: 36px; }
	.ml-founder-photo { max-width: 280px; }
	.ml-figures-row { grid-template-columns: 1fr 1fr; }
	.ml-figures-row > div { padding: 22px 16px; }
	.ml-figures-row > div:nth-child(3) { border-left: 0; padding-left: 0; }
	.ml-figures-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.ml-join-grid, .ml-steps { grid-template-columns: 1fr; }
	.ml-panels { padding: 32px 26px; }
	.page-hero-panel { padding: 28px 24px; border-radius: 0 18px 18px 0; }
}
@media (max-width: 560px) {
	.ml-hero { padding-top: 56px; }
	.ml-hero h1 { font-size: 2.2rem; }
	.ml-hero h1 em { white-space: normal; }
	.ml-lead { font-size: 1.05rem; }
	.ml-actions { flex-direction: column; }
	.ml-actions .btn { justify-content: center; }
	.ml-collage { height: 300px; }
	.ml-arch-small { border-width: 4px; }
	.ml-figures strong { font-size: 1.9rem; }
	.ml-values-row { grid-template-columns: 1fr; }
	.ml-values-row li { border-left: 0; padding: 0; }
	.ml-mission { padding: 30px 24px; }
	.ml-mission p { font-size: 1.3rem; }
	.ml-tags li { padding: 10px 16px; font-size: .92rem; }
	.page-hero.has-image { padding: 70px 0 56px; }
	.page-hero-panel { margin-right: -4px; }
}

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

/* Clean version: no decorative patterns */
.vision-card::after, .cta::before, .page-hero::after, .slide-overlay::after, .ml-hero-pattern, .ml-collage::before, .ml-mission::after, .ml-panels::after, .ml-values::before, .ml-vision-band::before { display: none !important; content: none !important; }

/* Mali hero slider: left-aligned copy over photos */
.ml-slider .slide { min-height: clamp(560px, 82vh, 740px); }
.ml-slider .slide-overlay { background: linear-gradient(90deg, rgba(19,38,28,.94) 0%, rgba(19,38,28,.78) 38%, rgba(19,38,28,.2) 75%, rgba(19,38,28,.1) 100%), linear-gradient(0deg, rgba(19,38,28,.6) 0%, transparent 35%); }
.ml-slider .slide-copy { text-align: left; align-items: flex-start; padding: 96px 0 150px; }
.ml-slider .slide-copy .ml-eyebrow { color: var(--gold); margin-bottom: 16px; }
.ml-slider .slide-copy h1, .ml-slider .slide-copy .slide-title { max-width: 15ch; font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.08; letter-spacing: -.02em; text-shadow: none; margin-bottom: .45em; }
.ml-slider .slide-copy em { font-style: normal; color: var(--gold); }
.ml-slider .ml-lead { margin: 0; }
.ml-slider .ml-actions { margin: 30px 0 0; justify-content: flex-start; }
.ml-slider-bar { position: absolute; left: 0; right: 0; bottom: 44px; z-index: 6; display: flex; align-items: center; justify-content: flex-start; gap: 28px; }
.ml-slider .slider-dots { position: static; display: flex; gap: 10px; justify-content: flex-start; }
.ml-slider .slider-dots button { width: 64px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; padding: 0; }
.ml-slider .slider-dots button.is-active { width: 64px; background: rgba(255,255,255,.3); }
.ml-slider .slider-dots button span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.ml-slider .slider-dots button.is-active span { animation: slideFill 6.5s linear forwards; }
.ml-slider:hover .slider-dots button.is-active span { animation-play-state: paused; }
@keyframes slideFill { to { transform: scaleX(1); } }
.ml-arrows { display: flex; gap: 10px; }
.ml-slider .slider-arrow { position: static; margin: 0; width: 46px; height: 46px; display: grid; }
.ml-slider .flag-band { height: 6px; background: var(--tricolor); }
.ml-slider + .ml-figures { border-top: 0; }
@media (max-width: 1080px) { .ml-slider .slider-arrow { display: grid; } }
@media (max-width: 560px) {
	.ml-slider .slide { min-height: 600px; }
	.ml-slider .slide-overlay { background: linear-gradient(0deg, rgba(19,38,28,.95) 0%, rgba(19,38,28,.8) 55%, rgba(19,38,28,.45) 100%); }
	.ml-slider .slide-copy { padding: 64px 0 120px; }
	.ml-slider .slide-copy h1, .ml-slider .slide-copy .slide-title { font-size: 2.15rem; }
	.ml-slider .ml-actions { flex-direction: column; width: 100%; }
	.ml-slider .ml-actions .btn { justify-content: center; }
	.ml-slider .slider-dots button, .ml-slider .slider-dots button.is-active { width: 40px; }
	.ml-arrows { display: none; }
	.ml-slider-bar { bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) { .ml-slider .slider-dots button.is-active span { animation: none; transform: scaleX(1); } }
