/* Thème « ONG » — ORCAPE
   Aucune dépendance externe : polices système, pas de CDN (RGPD, performance). */

:root {
    --c-primary: #0f5c4d;
    --c-primary-dark: #0a4036;
    --c-primary-soft: #dcefe9;
    --c-accent: #b94a17;
    --c-accent-dark: #973a0f;
    --c-cream: #fbf6ee;
    --c-bg: #fffdf9;
    --c-surface: #ffffff;
    --c-tint: #f3efe6;
    --c-text: #1d2b27;
    --c-muted: #55645f;
    --c-border: #e2dccf;
    --shadow: 0 1px 2px rgb(29 43 39 / .06), 0 8px 24px rgb(29 43 39 / .06);
    --radius: 14px;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --c-primary: #4fbfa6;
        --c-primary-dark: #7fd6c2;
        --c-primary-soft: #16332d;
        --c-accent: #f0844d;
        --c-accent-dark: #f59b6c;
        --c-cream: #0f1a17;
        --c-bg: #0f1a17;
        --c-surface: #16241f;
        --c-tint: #13211c;
        --c-text: #e8f0ed;
        --c-muted: #a5b6b0;
        --c-border: #263832;
        --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--c-primary); text-underline-offset: .2em; }
a:hover { color: var(--c-primary-dark); }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--c-text); }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 2rem); margin-inline: auto; }

.sr-only {
    position: absolute; 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: 1rem; top: -4rem; z-index: 100;
    background: var(--c-primary); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* En-tête ------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--c-bg) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--c-primary); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; color: var(--c-text); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a:not(.btn) {
    display: block; padding: .5rem .8rem; border-radius: 8px;
    color: var(--c-text); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.site-nav a:not(.btn):hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }

.site-nav { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
    display: none; width: 2.75rem; height: 2.75rem; padding: 0;
    background: transparent; border: 1px solid var(--c-border); border-radius: 10px; cursor: pointer; color: var(--c-text);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 1.25rem; height: 2px; background: currentColor; margin-inline: auto; position: relative; border-radius: 2px;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-block; }
    .site-nav {
        display: none; position: absolute; inset: 100% 0 auto 0;
        flex-direction: column; align-items: stretch; gap: .75rem;
        background: var(--c-bg); border-bottom: 1px solid var(--c-border);
        padding: 1rem; box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; }
    .nav-cta { text-align: center; }
}

/* Boutons ------------------------------------------------------------ */
.btn {
    display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
    font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; line-height: 1.2;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn-ghost { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn-ghost:hover { background: var(--c-primary); color: #fff; }
.btn-light { background: #fff; color: var(--c-primary-dark); }
.btn-light:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }

@media (prefers-color-scheme: dark) {
    .btn-accent, .btn-accent:hover { color: #1a0d05; }
    .btn-ghost:hover { color: #0f1a17; }
}

/* Bandeau d'accueil ------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-bg) 100%); padding: clamp(2.5rem, 7vw, 5.5rem) 0; }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.hero-art { width: 100%; max-width: 380px; margin-inline: auto; }
.hero-art svg { width: 100%; height: auto; }
.eyebrow {
    display: inline-block; margin: 0 0 .9rem; font-size: .82rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent);
}
.lead { font-size: 1.2rem; color: var(--c-muted); max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

@media (min-width: 900px) {
    .hero-inner { grid-template-columns: 1.15fr .85fr; }
}

/* Sections ---------------------------------------------------------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-tinted { background: var(--c-tint); }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-lead { color: var(--c-muted); font-size: 1.1rem; }

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .card-grid-4, .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
    .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
    .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start;
}
.card h3 { margin-top: .2rem; }
.card p { color: var(--c-muted); flex: 1; }

.card-icon {
    display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1rem;
    border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary);
}
.card-icon-accent { background: color-mix(in srgb, var(--c-accent) 14%, transparent); color: var(--c-accent); }
.card-icon-light { background: rgb(255 255 255 / .16); color: #fff; margin: 0; }

.badge {
    display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: var(--c-primary-soft); color: var(--c-primary-dark);
}
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.empty-state {
    border: 2px dashed var(--c-border); border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; color: var(--c-muted);
}
.empty-title { font-family: var(--font-head); font-size: 1.3rem; color: var(--c-text); margin-bottom: .4rem; }
.empty-state p:last-child { margin-bottom: 0; }

/* Bandeau transparence ---------------------------------------------- */
.section-band { background: var(--c-primary); color: #fff; }
.section-band h2, .section-band p { color: #fff; }
.section-band p { opacity: .92; margin-bottom: 0; }
.transparency { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 800px) { .transparency { grid-template-columns: auto 1fr auto; gap: 2rem; } }
@media (prefers-color-scheme: dark) {
    .section-band { background: #123f36; }
}

/* Pied de page ------------------------------------------------------ */
.site-footer { background: var(--c-tint); border-top: 1px solid var(--c-border); padding-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; margin-bottom: .4rem; }
.footer-text { color: var(--c-muted); max-width: 26em; }
.footer-title { font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); margin-bottom: .8rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-bottom { margin-top: 2.5rem; padding: 1.2rem 0 1.6rem; border-top: 1px solid var(--c-border); color: var(--c-muted); font-size: .92rem; }
.footer-bottom p { margin: 0; }

/* Actualités et articles ---------------------------------------------- */
.card-article { padding: 0; overflow: hidden; }
.card-article .card-cover { display: block; width: 100%; aspect-ratio: 16 / 10; background: var(--c-primary-soft); }
.card-article .card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-article .card-body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.card-article h3 a { color: var(--c-text); text-decoration: none; }
.card-article h3 a:hover { color: var(--c-primary); text-decoration: underline; }
.card-meta { margin: 0 0 .4rem; font-size: .88rem; color: var(--c-muted); }
.section-more { margin: 2rem 0 0; text-align: center; }

.container-narrow { width: min(760px, 100% - 2rem); }
.breadcrumb { margin-bottom: 1.5rem; font-size: .95rem; }
.article-head { margin-bottom: 1.6rem; }
.article-cover { width: 100%; border-radius: var(--radius); margin: 0 0 2rem; aspect-ratio: 16 / 9; object-fit: cover; }

.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2 { margin-top: 2em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6em; }
.prose img { border-radius: 10px; height: auto; }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--c-accent); color: var(--c-muted); font-style: italic; }

.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.pager-info { color: var(--c-muted); font-size: .95rem; }

/* Page d'accueil institutionnelle -------------------------------------- */
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }

.mission { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .mission { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }
.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.goal {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); font-weight: 500;
}
.goal-code {
    flex: none; display: inline-grid; place-items: center; min-width: 4.2rem; padding: .35rem .6rem;
    border-radius: 8px; background: var(--c-primary); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .04em;
}
@media (prefers-color-scheme: dark) { .goal-code { color: #0f1a17; } }

.stats-band { background: var(--c-primary); color: #fff; padding: clamp(2rem, 5vw, 3.2rem) 0; }
@media (prefers-color-scheme: dark) { .stats-band { background: #123f36; } }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; gap: .15rem; }
.stat-value { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; font-weight: 700; }
.stat-label { font-weight: 600; font-size: 1.05rem; }
.stat-note { font-size: .88rem; opacity: .85; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; border-left: 3px solid var(--c-primary-soft); padding-left: 1.4rem; }
.timeline-item { position: relative; display: grid; gap: .3rem; }
.timeline-item::before {
    content: ""; position: absolute; left: calc(-1.4rem - 8px); top: .55rem; width: 13px; height: 13px;
    border-radius: 50%; background: var(--c-accent); border: 3px solid var(--c-tint);
}
.timeline-period { font-weight: 700; color: var(--c-accent); font-size: .92rem; letter-spacing: .04em; }
.timeline-item h3 { margin-bottom: .25em; }
.timeline-item p { margin: 0; color: var(--c-muted); }
@media (min-width: 800px) {
    .timeline-item { grid-template-columns: 8.5rem 1fr; gap: 1.5rem; }
}

.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.partner-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .9rem; }
.partner-list li { display: grid; gap: .1rem; padding-left: 1rem; border-left: 4px solid var(--c-primary); }
.partner-list strong { font-family: var(--font-head); font-size: 1.15rem; }
.partner-list span { color: var(--c-muted); }
.chips { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { padding: .45rem 1rem; border-radius: 999px; background: var(--c-primary-soft); color: var(--c-primary-dark); font-weight: 600; font-size: .95rem; }

.footer-slogan { font-style: italic; }
.footer-legal { margin-top: .4rem !important; font-size: .85rem; }
