/* 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 { width: min(1440px, 100% - 2rem); 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); white-space: nowrap; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { 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; }
/* Un libellé de menu ne se coupe jamais sur deux lignes ; en dessous de 1100 px le menu passe en bouton. */
.site-nav a, .sub-toggle, .nav-cta { white-space: nowrap; }

.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: 1100px) {
    .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; }
    .site-nav { max-height: calc(100vh - 4.25rem); overflow-y: auto; }
}

/* Sous-menus ---------------------------------------------------------- */
.has-sub { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.sub-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    background: transparent; border: 0; padding: .5rem .45rem; margin-left: -.35rem; border-radius: 8px;
    color: var(--c-text); font: inherit; font-weight: 500; font-size: .98rem; cursor: pointer;
}
.sub-toggle:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.sub-toggle-label { margin-left: 0; padding: .5rem .8rem; }
.caret {
    width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px); transition: transform .15s;
}
.sub-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg) translateY(-2px); }

.submenu { display: none; }
.has-sub.is-open > .submenu { display: block; }

@media (min-width: 1101px) {
    .submenu {
        position: absolute; top: 100%; left: 0; z-index: 60; min-width: 14rem; padding: .4rem;
        background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--shadow);
    }
    .submenu a:not(.btn) { white-space: nowrap; }
    /* Ouverture au survol (souris) ; le bouton et le clavier passent par la classe is-open. */
    .has-sub:hover > .submenu { display: block; }
    .has-sub:last-child > .submenu { left: auto; right: 0; }
}

/* En colonne (mobile, menu latéral) : le sous-menu se déplie dans le flux, sans survol. */
@media (max-width: 1100px) {
    .submenu { flex-basis: 100%; padding-left: 1rem; border-left: 2px solid var(--c-primary-soft); margin: .1rem 0 .4rem .8rem; }
    .has-sub > a:first-child { flex: 1; }
    .sub-toggle-label { flex: 1; justify-content: space-between; }
}

/* 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 {
    --f-bg: #0a4036; --f-text: #eaf3ef; --f-muted: #b9d0c8; --f-title: #ffcfae; --f-line: rgb(255 255 255 / .16);
    position: relative; margin-top: 3rem; padding-top: 3.2rem;
    background: linear-gradient(180deg, #0c493e 0%, var(--f-bg) 100%); color: var(--f-text);
}
/* Filet orangé : rappelle le bouton d'action et sépare nettement le pied de page du contenu. */
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--c-accent), #f0a36f 55%, var(--c-accent)); }
@media (prefers-color-scheme: dark) {
    .site-footer { --f-bg: #071f19; --f-text: #e3efe9; --f-muted: #a5bdb4; background: linear-gradient(180deg, #0a2a22 0%, var(--f-bg) 100%); }
}
.site-footer a { color: var(--f-text); text-decoration-color: rgb(255 255 255 / .35); }
.site-footer a:hover { color: #fff; text-decoration-color: var(--c-accent); }
.site-footer :focus-visible { outline-color: #ffcfae; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 620px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-about { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr repeat(5, 1fr); gap: 1.6rem; } .footer-about { grid-column: auto; } }
.footer-brand { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; margin-bottom: .4rem; color: #fff; }
.footer-text { color: var(--f-muted); max-width: 26em; }
.footer-title { font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--f-title); 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(--f-line); color: var(--f-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); }
.report-grid .card-meta span:first-child { font-weight: 700; color: var(--c-accent); }
.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; }

/* Position du menu (réglage Administration › Paramètres › Mise en page) ------ */
.no-sticky .site-header { position: static; }

/* Menu centré : logo au-dessus, menu centré en dessous (ordinateur uniquement). */
@media (min-width: 1101px) {
    .menu-centered .header-inner { flex-direction: column; justify-content: center; gap: .5rem; padding-block: .9rem; }
    .menu-centered .site-nav { flex-wrap: wrap; justify-content: center; }
    .menu-centered .site-nav > ul { flex-wrap: wrap; justify-content: center; }
}

/* Menu latéral : colonne fixe à gauche sur grand écran ; retombe en menu du haut en dessous. */
@media (min-width: 1101px) {
    .menu-sidebar { padding-left: 17rem; }
    .menu-sidebar .site-header {
        position: fixed; inset: 0 auto 0 0; width: 17rem; overflow-y: auto;
        border-bottom: 0; border-right: 1px solid var(--c-border); background: var(--c-bg);
    }
    .menu-sidebar .header-inner {
        width: 100%; margin: 0; padding: 1.6rem 1.1rem; min-height: 0;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.6rem;
    }
    .menu-sidebar .nav-toggle { display: none; }
    .menu-sidebar .site-nav { flex-direction: column; align-items: stretch; gap: 1rem; }
    .menu-sidebar .site-nav > ul { flex-direction: column; }
    .menu-sidebar .nav-cta { text-align: center; }
    /* Le panneau latéral défile : le sous-menu se déplie dans le flux plutôt qu'en fenêtre flottante. */
    .menu-sidebar .has-sub > a:first-child, .menu-sidebar .sub-toggle-label { flex: 1; }
    .menu-sidebar .sub-toggle-label { justify-content: space-between; }
    .menu-sidebar .submenu {
        position: static; flex-basis: 100%; min-width: 0; padding: 0 0 0 1rem; margin: .1rem 0 .4rem .8rem;
        background: transparent; border: 0; border-left: 2px solid var(--c-primary-soft); border-radius: 0; box-shadow: none;
    }
    .menu-sidebar .has-sub:hover > .submenu { display: none; }
    .menu-sidebar .has-sub.is-open > .submenu { display: block; }
    .menu-sidebar { scroll-padding-top: 1rem; }
}

/* Bande d'annonces ---------------------------------------------------- */
.topbar { --tb-bg: var(--c-primary); --tb-fg: #fff; background: var(--tb-bg); color: var(--tb-fg); font-size: .92rem; }
.topbar-accent { --tb-bg: var(--c-accent); }
.topbar-dark { --tb-bg: #14201c; }
.topbar-light { --tb-bg: var(--c-primary-soft); --tb-fg: var(--c-primary-dark); border-bottom: 1px solid var(--c-border); }
.topbar-inner { display: flex; align-items: center; gap: .75rem; min-height: 2.5rem; }
.topbar[hidden] { display: none; }

.ticker {
    flex: 1; min-width: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.ticker-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: ticker var(--ticker-duration, 30s) linear infinite; }
.ticker-track li { flex: none; padding: .55rem 0; white-space: nowrap; }
.ticker-track li::after { content: "•"; display: inline-block; margin: 0 1.6rem; opacity: .6; }
.ticker-track a { color: inherit; font-weight: 600; text-underline-offset: .2em; }
.ticker-track a:hover { color: inherit; text-decoration-thickness: 2px; }
.topbar :focus-visible { outline-color: var(--tb-fg); }
.ticker-hover-pause:hover .ticker-track, .ticker:focus-within .ticker-track, .topbar.is-paused .ticker-track { animation-play-state: paused; }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.topbar-actions { display: flex; align-items: center; gap: .35rem; flex: none; }
.topbar-btn {
    background: transparent; color: inherit; border: 1px solid color-mix(in srgb, var(--tb-fg) 45%, transparent);
    border-radius: 999px; padding: .15rem .7rem; font: inherit; font-size: .82rem; cursor: pointer; line-height: 1.5;
}
.topbar-btn:hover { background: color-mix(in srgb, var(--tb-fg) 16%, transparent); }
.topbar-close { border-color: transparent; font-size: 1.3rem; padding: 0 .55rem; line-height: 1.3; }

/* Mouvement réduit : pas de défilement automatique, les annonces s'affichent en liste lisible. */
@media (prefers-reduced-motion: reduce) {
    .ticker { -webkit-mask-image: none; mask-image: none; }
    .ticker-track { animation: none; width: auto; flex-wrap: wrap; column-gap: 0; }
    .ticker-track li[aria-hidden="true"] { display: none; }
    .ticker-track li::after { margin: 0 1rem; }
    .topbar-pause { display: none; }
}

/* Mode sombre : les couleurs vives deviennent claires, le texte de la bande passe en foncé pour rester lisible. */
@media (prefers-color-scheme: dark) {
    .topbar { --tb-fg: #062a23; }
    .topbar-dark { --tb-fg: #fff; }
    .topbar-light { --tb-fg: var(--c-primary-dark); }
}

.section-more { margin: 1.6rem 0 0; text-align: center; font-weight: 600; }

/* Réalisations (rapports publics) ------------------------------------ */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin: 0 0 2rem; }
.filters label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 600; }
.filters select {
    min-width: 12rem; padding: .55rem .8rem; border: 1px solid var(--c-border); border-radius: 10px;
    background: var(--c-surface); color: var(--c-text); font: inherit;
}
.figures { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.figures li { padding: 1rem; background: var(--c-primary-soft); border-radius: var(--radius); text-align: center; }
.figure-value { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--c-primary-dark); line-height: 1.1; }
.figure-label { display: block; margin-top: .3rem; font-size: .9rem; color: var(--c-muted); }

/* Grille des réalisations : centrée ; cartes de largeur homogène, autant par ligne que la place le permet. */
.report-grid { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.report-grid > li { flex: 1 1 19rem; max-width: 24rem; }
@media (max-width: 640px) { .report-grid > li { flex-basis: 100%; max-width: none; } }
.report-grid .card { height: 100%; }
/* Titres de la page « Nos réalisations » : centrés. */
.section-head:has(#rapports-titre), .article-head:has(#page-titre) { margin-inline: auto; text-align: center; }
.article-head:has(#page-titre) .lead { margin-inline: auto; }
.filters { justify-content: center; }
/* Tableaux des contenus (pages, actualités, rapports) : en-tête coloré, lignes alternées, coins arrondis. ----- */
.prose table {
    --t-head-bg: #0f5c4d; --t-head-fg: #fff; --t-row-alt: var(--c-tint); --t-row-hover: var(--c-primary-soft);
    width: 100%; margin: 1.8em 0; border-collapse: separate; border-spacing: 0; font-size: .97rem; line-height: 1.45;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { .prose table { --t-head-bg: #17493f; --t-head-fg: #e8f0ed; } }
.prose table caption { caption-side: top; padding: .9rem 1rem; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; text-align: center; color: var(--c-text); }
.prose table th, .prose table td { padding: .85rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); }
/* L'éditeur produit souvent un tableau sans <th> : sa première ligne (en gras) fait alors office d'en-tête. */
.prose table thead th, .prose table tr:first-child > th, .prose table:not(:has(th)) tr:first-child > td {
    background: var(--t-head-bg); color: var(--t-head-fg); font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; border-bottom: 0;
}
.prose table tbody tr:nth-child(even) > td, .prose table tbody tr:nth-child(even) > th { background: var(--t-row-alt); }
.prose table:not(:has(th)) tr:nth-child(even) > td { background: transparent; }
.prose table:not(:has(th)) tr:nth-child(odd):not(:first-child) > td { background: var(--t-row-alt); }
.prose table tbody tr:not(:first-child):hover > td, .prose table tbody tr:hover > th { background: var(--t-row-hover); }
.prose table:not(:has(th)) tr:first-child > td strong, .prose table:not(:has(th)) tr:first-child > td p { color: inherit; }
.prose table tbody tr:last-child > td, .prose table tbody tr:last-child > th { border-bottom: 0; }
/* Première colonne (numéro, date) : mise en avant. */
.prose table tbody tr:not(:first-child) td:first-child { width: 1%; white-space: nowrap; font-weight: 700; color: var(--c-accent); }
.prose table tbody tr:not(:first-child) td:nth-child(2) { white-space: nowrap; font-weight: 600; }
.prose table p { margin: 0; }
@media (max-width: 700px) {
    /* Sur téléphone, le tableau défile horizontalement plutôt que d'écraser ses colonnes. */
    .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .prose table th, .prose table td { padding: .7rem .8rem; }
}

/* Entre 1101 et 1360 px : espacements resserrés pour que tout le menu tienne sur une ligne. */
@media (min-width: 1101px) and (max-width: 1360px) {
    .site-nav { gap: .6rem; }
    .site-nav > ul { gap: 0; }
    .site-nav a:not(.btn), .sub-toggle { padding-inline: .55rem; font-size: .94rem; }
    .nav-cta { padding: .65rem 1.05rem; font-size: .95rem; }
    .brand-name { font-size: 1.2rem; }
}
