/* AfriCortex — feuille de style principale */
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url(../fonts/dm-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url(../fonts/dm-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url(../fonts/dm-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif"; font-weight: 600; font-display: swap; src: url(../fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif"; font-weight: 700; font-display: swap; src: url(../fonts/source-serif-4-latin-700-normal.woff2) format("woff2"); }

:root {
  --navy: #0A1A3E;
  --navy-2: #13306E;
  --blue: #13408A;
  --ink: #1A2238;
  --muted: #4A5266;
  --soft: #8A8F9C;
  --gold: #A8762C;
  --gold-l: #C99A4E;
  --sky: #A9BBDF;
  --paper: #F8F6F1;
  --sand: #F0E9DF;
  --line: #E2DED5;
  --white: #FFFFFF;
  --radius: 14px;
  --wrap: 1120px;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; color: var(--navy); }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 3px; }

/* Typo */
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.h-section { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin-top: 10px; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; margin-top: 16px; }
section { scroll-margin-top: 80px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15.5px; text-decoration: none; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #946623; }
.btn-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,246,241,.94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav a:hover { color: var(--gold); }
.nav .btn { color: var(--white); padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 80% 30%, var(--navy-2) 0%, var(--navy) 58%); color: var(--white); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero .eyebrow { color: var(--gold-l); }
.hero h1 { color: var(--white); font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.08; margin-top: 16px; }
.hero h1 em { font-style: normal; color: var(--gold-l); }
.hero .lead { color: var(--sky); font-size: 20px; margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-art { justify-self: end; width: min(100%, 440px); opacity: .9; }
.tagline-bar { border-top: 1px solid rgba(255,255,255,.12); }
.tagline-bar .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; letter-spacing: .24em; color: var(--sky); }
.tagline-bar span.dot { color: var(--gold-l); }

/* Sections */
.block { padding: 96px 0; }
.block.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Piliers */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.block.alt .card { background: var(--paper); }
.card .num { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--gold); letter-spacing: .06em; }
.card h3 { font-size: 21px; margin-top: 10px; }
.card p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.icon { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; stroke: var(--white); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Domaines */
.domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.domain { padding: 26px 24px 4px 0; }
.domain + .domain { padding-left: 24px; border-left: 1px solid var(--line); }
.domain h3 { font-size: 18px; }
.domain p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }

/* Offre microfinance */
.offer { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.stat { background: var(--sand); border-radius: var(--radius); padding: 34px 32px 28px; }
.stat .big { font-family: var(--serif); font-weight: 700; font-size: 76px; line-height: 1; color: var(--gold); }
.stat .lab { margin-top: 12px; font-size: 17px; }
.trend { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid #DCCFBC; }
.trend div { font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.trend b { display: block; font-size: 21px; color: var(--navy); }
.trend .now b { color: var(--gold); }
.source { font-size: 12.5px; color: var(--soft); margin-top: 14px; }
.steps { display: grid; gap: 14px; margin-top: 28px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.step .k { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.step h3 { font-size: 19px; margin-top: 2px; }
.step p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.gets { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.gets li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--muted); font-size: 16px; }
.gets li b { color: var(--navy); }
.check { width: 22px; height: 22px; margin-top: 2px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Méthode */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; counter-reset: m; }
.method li { list-style: none; position: relative; padding-top: 26px; border-top: 2px solid var(--navy); }
.method li::before { counter-increment: m; content: "0" counter(m); position: absolute; top: -14px; left: 0; background: var(--paper); padding-right: 10px; font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 18px; }
.block.alt .method li::before { background: var(--white); }
.method h3 { font-size: 19px; }
.method p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.method ol { padding: 0; margin: 0; }

/* Engagements */
.commit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }

/* Contact */
.contact { background: var(--navy); color: var(--white); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 96px; padding-bottom: 96px; }
.contact .h-section { color: var(--white); }
.contact .lead { color: var(--sky); }
.contact .eyebrow { color: var(--gold-l); }
.contact-lines { margin-top: 30px; display: grid; gap: 10px; font-size: 16.5px; }
.contact-lines a { color: var(--white); }
.contact-lines span { color: var(--sky); }
form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--navy); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-l); outline-offset: 0; border-color: transparent; }
.form-note { font-size: 13px; color: var(--soft); }
.form-status { font-size: 14.5px; font-weight: 500; }
.form-status.ok { color: #2E7D4F; }
.form-status.err { color: #B8452F; }
.hp { position: absolute; left: -9999px; }

/* Pied de page */
.site-footer { background: #071331; color: var(--sky); font-size: 14.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 30px; }
.site-footer img { height: 26px; width: auto; }
.site-footer a { color: var(--sky); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Pages simples */
.page { padding: 72px 0 96px; }
.page h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); line-height: 1.15; }
.page h2 { font-size: 21px; margin-top: 40px; }
.page p, .page li { color: var(--muted); margin-top: 12px; max-width: 760px; }
.todo { background: #FFF3D6; color: #6B4B12; padding: 1px 6px; border-radius: 4px; font-weight: 500; }

/* Apparition douce */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn { transition: none; } }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .hero-art { justify-self: start; width: 190px; order: -1; opacity: .8; }
  .pillars, .commit { grid-template-columns: 1fr; }
  .domains { grid-template-columns: 1fr 1fr; }
  .domain + .domain { border-left: 0; padding-left: 0; }
  .domain:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .offer, .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .method { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .block { padding: 72px 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .domains, .method, .row { grid-template-columns: 1fr; }
  .domain:nth-child(2n) { padding-left: 0; border-left: 0; }
  .stat .big { font-size: 60px; }
  form { padding: 22px 18px; }
  .hero .lead { font-size: 18px; }
  .hero-art { width: 120px; }
  .hero .wrap { gap: 24px; padding-top: 44px; }
  .tagline-bar .wrap { gap: 8px; font-size: 11px; letter-spacing: .14em; }
  .brand img { height: 26px; }
}

/* ===== Ajouts v2 : pages intérieures ===== */
.nav a.active { color: var(--gold); }
.page-hero { background: radial-gradient(circle at 85% 20%, var(--navy-2) 0%, var(--navy) 60%); color: var(--white); }
.page-hero .wrap { padding-top: 72px; padding-bottom: 72px; }
.page-hero .eyebrow { color: var(--gold-l); }
.page-hero h1 { color: var(--white); font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; margin-top: 14px; max-width: 860px; }
.page-hero .lead { color: var(--sky); }

.svc { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; padding-top: 8px; }
.svc .tag { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.svc h2 { font-family: var(--serif); font-size: 30px; line-height: 1.15; margin-top: 8px; }
.svc .meta { margin-top: 18px; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.svc .meta b { color: var(--navy); }
.svc p.intro { font-size: 18px; color: var(--ink); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; }
.cols2 h3 { font-size: 15px; letter-spacing: .04em; color: var(--navy); }
.ticks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; color: var(--muted); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.cta-band { background: var(--sand); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; max-width: 680px; }

.users { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.users .card h3 { font-size: 18px; }
.users .card .who { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

.faq { margin-top: 36px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.prose p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.prose p:first-child { margin-top: 0; }
.map-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.map-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }
.map-list li span { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.map-list li.now span { color: var(--gold); }

.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--navy); color: var(--white); border-radius: 18px; padding: 48px; }
.teaser h2 { color: var(--white); font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin-top: 10px; }
.teaser .eyebrow { color: var(--gold-l); }
.teaser p { color: var(--sky); margin-top: 14px; }
.teaser .big { font-family: var(--serif); font-weight: 700; font-size: 84px; line-height: 1; color: var(--gold-l); }
.teaser .lab { color: var(--sky); margin-top: 10px; }

.contact-page { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-page form { border: 1px solid var(--line); }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 26px; display: grid; gap: 14px; }
.info-card div span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }

@media (max-width: 960px) {
  .svc, .split, .teaser, .contact-page { grid-template-columns: 1fr; gap: 28px; }
  .users { grid-template-columns: 1fr 1fr; }
  .teaser { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .cols2, .users, .values { grid-template-columns: 1fr; }
  .page-hero .wrap { padding-top: 48px; padding-bottom: 52px; }
  .teaser .big { font-size: 64px; }
  .svc h2 { font-size: 26px; }
}
.steps.three { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.step.reveal h3, .steps.three .step h3 { font-size: 19px; }
@media (max-width: 960px) { .steps.three { grid-template-columns: 1fr; } }
