/* =========================================================================
   SAPV-CONGO · Feuille de style du site public
   Les couleurs (--primary, --accent, --highlight) et la police sont
   définies depuis l'administration (Paramètres > Couleurs et apparence).
   ========================================================================= */

:root {
    --primary: #0B3A82;
    --primary-dark: #07255A;
    --primary-soft: #E7EEF8;
    --accent: #D62828;
    --accent-dark: #AB2020;
    --highlight: #F2B705;
    --ink: #0F172A;
    --text: #334155;
    --muted: #64748B;
    --line: #E2E8F0;
    --bg: #FFFFFF;
    --bg-soft: #F6F8FB;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .30);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .78em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer;
    transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .95em 1.7em; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px var(--accent); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-highlight { background: var(--highlight); color: var(--ink); }
.btn-highlight:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; color: #fff; }

.kicker {
    display: inline-flex; align-items: center; gap: .5em;
    font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
    color: var(--accent); margin-bottom: .9em;
}
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--highlight); }
.kicker-light { color: #fff; }

/* ---------- Barre d'administration ---------- */
.adminbar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #0F172A; color: #CBD5E1; font-size: .82rem; padding: 7px 20px;
}
.adminbar a { color: #fff; font-weight: 600; margin-left: 16px; }
.adminbar a:hover { color: var(--highlight); }
.edit-pin {
    position: absolute; right: 16px; top: 16px; z-index: 5;
    background: #0F172A; color: #fff !important; font-size: .78rem; font-weight: 700;
    padding: 6px 12px; border-radius: 999px; opacity: .85; box-shadow: var(--shadow);
}
.edit-pin:hover { opacity: 1; background: var(--accent); }
section { position: relative; }

/* ---------- Barre du haut ---------- */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,.85); font-size: .84rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.topbar a, .topbar span { color: rgba(255,255,255,.88); }
.topbar a:hover { color: var(--highlight); }
.topbar-contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contacts i { color: var(--highlight); margin-right: 5px; }
.topbar-social { display: flex; gap: 6px; }
.topbar-social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.topbar-social a:hover { background: rgba(255,255,255,.12); }

/* ---------- Entête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(15,23,42,.25); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 58px; height: 58px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.22rem; font-weight: 800; color: var(--primary); letter-spacing: -.01em; }
.brand-text small { font-size: .72rem; color: var(--muted); font-weight: 600; max-width: 230px; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav ul a {
    display: block; padding: 10px 14px; border-radius: 10px;
    color: var(--ink); font-weight: 600; font-size: .95rem; position: relative;
}
.main-nav ul a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--accent); transform: scaleX(0); transition: transform .25s; border-radius: 2px;
}
.main-nav ul a:hover, .main-nav ul a.active { color: var(--primary); }
.main-nav ul a:hover::after, .main-nav ul a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; border-radius: 10px; }
.nav-toggle span { display: block; height: 2.5px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: transform .3s, opacity .3s; }
.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); }

/* ---------- Carrousel d'entête ---------- */
.hero { position: relative; height: min(88vh, 760px); min-height: 520px; overflow: hidden; background: var(--primary-dark); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5,20,50,.88) 0%, rgba(5,20,50,.62) 45%, rgba(5,20,50,.15) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; padding-bottom: 40px; }
.hero-title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.9rem); max-width: 780px; margin-bottom: .45em; }
.hero-text { font-size: clamp(1.02rem, 1.6vw, 1.22rem); max-width: 620px; color: rgba(255,255,255,.9); margin-bottom: 1.8em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-slide.is-active .kicker, .hero-slide.is-active .hero-title, .hero-slide.is-active .hero-text, .hero-slide.is-active .hero-actions { animation: rise .9s both; }
.hero-slide.is-active .hero-title { animation-delay: .12s; }
.hero-slide.is-active .hero-text { animation-delay: .24s; }
.hero-slide.is-active .hero-actions { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-arrow {
    position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.hero-dots button.is-active { width: 36px; background: var(--highlight); }

/* ---------- Bandeau défilant ---------- */
.ticker { display: flex; align-items: stretch; background: var(--primary); color: #fff; overflow: hidden; font-size: .93rem; }
.ticker-label {
    flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 12px 22px;
    background: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); padding-right: 34px;
}
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-items { display: flex; gap: 0; white-space: nowrap; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-items { animation-play-state: paused; }
.ticker-items > * { color: #fff; padding: 0 26px; position: relative; font-weight: 500; }
.ticker-items > *::after { content: "◆"; position: absolute; right: -6px; color: var(--highlight); font-size: .6em; top: 50%; transform: translateY(-50%); }
.ticker-items a:hover { color: var(--highlight); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Chiffres clés ---------- */
.stats-band { background: var(--bg-soft); padding: 0; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    transform: translateY(-46px); position: relative; z-index: 4; overflow: hidden;
}
.stat { display: flex; align-items: center; gap: 16px; padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.35rem; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat-label { font-size: .88rem; color: var(--muted); font-weight: 600; line-height: 1.35; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.stats-band + .section { padding-top: 50px; }
.ticker + .stats-band { padding-top: 44px; }
.ticker + .stats-band .stats-grid { transform: none; }
.ticker + .stats-band + .section { padding-top: 70px; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; gap: 24px; }
.section-head-row > div { max-width: 640px; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
.section-outro { text-align: center; max-width: 780px; margin: 46px auto 0; color: var(--muted); font-style: italic; }
.lead { font-size: 1.12rem; color: var(--ink); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-top { align-items: start; grid-template-columns: 1.35fr 1fr; }
.split-media { position: relative; padding: 0 40px 40px 0; }
.media-main { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.media-secondary {
    position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover;
    border-radius: var(--radius-lg); border: 7px solid #fff; box-shadow: var(--shadow-lg);
}
.media-badge {
    position: absolute; left: -16px; top: 36px; background: var(--highlight); color: var(--ink);
    font-weight: 800; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); font-size: .92rem;
}
.split-media::before { content: ""; position: absolute; left: -26px; bottom: 14px; width: 120px; height: 120px; background-image: radial-gradient(var(--primary) 2px, transparent 2px); background-size: 16px 16px; opacity: .25; z-index: -1; }

.prose { color: var(--text); }
.prose p { margin-bottom: 1.05em; }
.prose h2, .prose h3 { margin-top: 1.5em; }
.prose h3 { font-size: 1.3rem; color: var(--primary); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
    margin: 1.6em 0; padding: 1.2em 1.5em; background: var(--primary-soft); border-left: 4px solid var(--highlight);
    border-radius: 0 12px 12px 0; font-weight: 600; color: var(--primary-dark); font-size: 1.06rem;
}
.prose img { border-radius: 12px; margin: 1.2em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; margin: 1em 0; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose-lg { font-size: 1.08rem; }

/* ---------- Domaines ---------- */
.domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.domain-card {
    display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg);
    padding: 30px 26px; border: 1px solid var(--line); color: var(--text);
    transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
}
.domain-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.domain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.domain-card:hover::before { transform: scaleX(1); }
.domain-card h3 { font-size: 1.1rem; margin-bottom: .5em; }
.domain-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.domain-icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--primary-soft); color: var(--primary); font-size: 1.45rem; margin-bottom: 20px; transition: background .3s, color .3s;
}
.domain-card:hover .domain-icon { background: var(--primary); color: #fff; }
.domain-more { font-weight: 700; font-size: .88rem; color: var(--primary); }
.domain-more i { transition: transform .2s; }
.domain-card:hover .domain-more i { transform: translateX(4px); }

.domain-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.domain-detail { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.domain-detail:target { outline: 3px solid var(--highlight); }
.domain-detail-img { width: 100%; height: 200px; object-fit: cover; }
.domain-detail-body { padding: 28px; }
.domain-detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.domain-detail-head .domain-icon { margin: 0; }
.domain-detail-head h3 { margin: 0; font-size: 1.2rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.check-list li:last-child { border: 0; }
.check-list i { color: var(--accent); margin-top: 5px; }

/* ---------- Programmes ---------- */
.programs { display: flex; flex-direction: column; gap: 70px; }
.program { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.program-reverse .program-media { order: 2; }
.program-media { position: relative; }
.program-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.program-icon { position: absolute; bottom: -22px; left: 30px; width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 1.7rem; box-shadow: var(--shadow); }
.program-reverse .program-icon { left: auto; right: 30px; }
.program-body h3 { font-size: 1.85rem; }

/* ---------- Actualités ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--primary-soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card-media img { transform: scale(1.06); }
.post-card-placeholder { display: grid; place-items: center; height: 100%; font-size: 3rem; color: var(--primary); opacity: .4; }
.post-card-cat { position: absolute; left: 16px; top: 16px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.post-card-body { padding: 24px 24px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 { font-size: 1.18rem; margin-bottom: .55em; }
.post-card-body h3 a { color: var(--ink); }
.post-card-body h3 a:hover { color: var(--primary); }
.post-card-body p { font-size: .94rem; color: var(--muted); flex: 1; }
.post-meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.post-meta i { color: var(--accent); }
.post-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.read-more { font-weight: 700; font-size: .9rem; }
.post-stats { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); }
.post-stats i { color: var(--accent); opacity: .8; }

.news-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-weight: 600; font-size: .9rem; border: 1px solid var(--line); }
.chip small { color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip.active small { color: rgba(255,255,255,.7); }
.search-box { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; min-width: 280px; }
.search-box input { flex: 1; border: 0; padding: 11px 18px; font: inherit; outline: none; min-width: 0; }
.search-box button { border: 0; background: var(--primary); color: #fff; width: 48px; cursor: pointer; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; color: var(--ink); padding: 0 12px; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty i { font-size: 3rem; opacity: .3; margin-bottom: 12px; display: block; }

/* ---------- Article ---------- */
.preview-banner { background: var(--highlight); color: var(--ink); text-align: center; padding: 10px 20px; font-weight: 700; }
.article-hero { padding: 64px 0 34px; background: linear-gradient(180deg, var(--primary-soft), #fff); }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.article-meta i { color: var(--accent); margin-right: 4px; }
.article-cover { margin: 0 0 40px; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-height: 560px; object-fit: cover; }
.article-content { margin-bottom: 40px; }

.engage { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 50px; }
.like-btn, .engage-btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: .95rem; cursor: pointer; transition: all .2s;
}
.like-btn:hover, .engage-btn:hover { border-color: var(--accent); color: var(--accent); }
.like-btn i { color: var(--accent); font-size: 1.1rem; }
.like-btn.is-liked { background: var(--accent); border-color: var(--accent); color: #fff; }
.like-btn.is-liked i { color: #fff; }
.like-btn.pop i { animation: pop .45s; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.like-count { background: rgba(0,0,0,.07); border-radius: 999px; padding: 1px 9px; font-size: .85rem; }
.like-btn.is-liked .like-count { background: rgba(255,255,255,.25); }
.share { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.share-label { font-weight: 700; color: var(--ink); font-size: .92rem; margin-right: 4px; }
.share-label small { color: var(--muted); font-weight: 600; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; cursor: pointer; transition: transform .2s; font-size: 1rem; }
.share-btn:hover { transform: translateY(-3px); color: #fff; }
.share-btn.fb { background: #1877F2; } .share-btn.wa { background: #25D366; } .share-btn.x { background: #111; }
.share-btn.li { background: #0A66C2; } .share-btn.tg { background: #229ED9; } .share-btn.mail { background: #64748B; } .share-btn.copy { background: var(--primary); }

.comments h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.count-pill { background: var(--primary-soft); color: var(--primary); font-size: .9rem; padding: 2px 12px; border-radius: 999px; }
.comment-list { margin-bottom: 40px; }
.comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment.is-new { animation: rise .5s; }
.comment-reply { margin-left: 58px; padding-top: 12px; border-bottom: 0; }
.comment-reply + .comment:not(.comment-reply) { border-top: 1px solid var(--line); }
.comment-body { flex: 1; min-width: 0; }
.comment-body p { margin: 4px 0 6px; overflow-wrap: anywhere; }
.comment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comment-head strong { color: var(--ink); }
.comment-head time { color: var(--muted); font-size: .82rem; }
.badge-team { background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.comment-team > .avatar-initials { background: var(--primary); color: #fff; }
.comment-reply-btn { background: none; border: 0; color: var(--primary); font-weight: 700; font-size: .84rem; cursor: pointer; padding: 0; }
.avatar-initials { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .95rem; }
.avatar-xl { width: 100%; height: 100%; border-radius: 0; font-size: 3rem; }
.comment-form { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line); }
.comment-form h3 { font-size: 1.2rem; }
.replying-to { background: var(--primary-soft); padding: 8px 14px; border-radius: 10px; margin-bottom: 14px; font-size: .9rem; }
.cancel-reply { background: none; border: 0; color: var(--accent); cursor: pointer; font-weight: 700; }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form .field { margin-bottom: 0; }
.field span { font-weight: 600; font-size: .88rem; color: var(--ink); }
.field input, .field textarea, .field select, .newsletter-form input {
    font: inherit; padding: 12px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field textarea:focus, .newsletter-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-feedback { margin: 10px 0 0; font-weight: 600; font-size: .92rem; min-height: 1em; }
.form-feedback.ok { color: #15803D; }
.form-feedback.err { color: var(--accent); }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.alert-success { background: #DCFCE7; color: #166534; }
.alert-error { background: #FEE2E2; color: #991B1B; }

/* ---------- Bandeau d'appel au don ---------- */
.cta-band { position: relative; padding: 100px 0; background-size: cover; background-position: center; background-attachment: fixed; background-color: var(--primary); color: #fff; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(110deg, var(--primary-dark) 10%, color-mix(in srgb, var(--primary) 75%, transparent)); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 680px; }
.cta-inner p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0; font-size: 1.05rem; }
.cta-compact { padding: 70px 0; background: linear-gradient(110deg, var(--primary-dark), var(--primary)); }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Témoignages ---------- */
.testimonials { overflow: hidden; }
.testimonials-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 3); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 20px; }
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial { scroll-snap-align: start; margin: 0; background: #fff; border-radius: var(--radius-lg); padding: 34px 30px 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.testimonial-quote { font-size: 2.2rem; color: var(--highlight); margin-bottom: 14px; }
.testimonial blockquote { margin: 0 0 24px; font-size: 1.04rem; color: var(--ink); flex: 1; font-weight: 500; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.testimonial figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption span { display: flex; flex-direction: column; line-height: 1.3; }
.testimonial figcaption strong { color: var(--ink); }
.testimonial figcaption small { color: var(--muted); }

/* ---------- Partenaires ---------- */
.partners { padding: 60px 0; border-top: 1px solid var(--line); }
.partners-title { text-align: center; font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 30px; }
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 56px; }
.partners-row img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .7; transition: all .3s; }
.partners-row a:hover img, .partners-row span:hover img { filter: none; opacity: 1; }

/* ---------- Bandeau des pages intérieures ---------- */
.page-hero { position: relative; padding: 110px 0 90px; background-size: cover; background-position: center; color: #fff; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5,20,50,.9), rgba(5,20,50,.55)); }
.page-hero-inner { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 800px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.88); max-width: 680px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; margin-bottom: 18px; color: rgba(255,255,255,.75); font-weight: 600; }
.breadcrumb a { color: var(--highlight); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-dark { color: var(--muted); }
.breadcrumb-dark a { color: var(--primary); }

/* ---------- À propos ---------- */
.about-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.rounded-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 26px; }
.mvv { display: flex; flex-direction: column; gap: 14px; }
.mvv-item { display: flex; gap: 16px; background: var(--bg-soft); padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); }
.mvv-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.mvv-item h3 { font-size: 1.02rem; margin-bottom: .25em; }
.mvv-item p { margin: 0; font-size: .93rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-size: 1.4rem; margin-bottom: 20px; box-shadow: 0 10px 20px -8px var(--primary); }
.feature h3 { font-size: 1.15rem; }
.feature p { margin: 0; font-size: .95rem; color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-photo { aspect-ratio: 1/1; overflow: hidden; background: var(--primary-soft); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.team-body h3 { font-size: 1.2rem; margin-bottom: .2em; }
.team-role { display: inline-block; color: var(--accent); font-weight: 700; font-size: .88rem; margin-bottom: 12px; }
.team-body p { font-size: .93rem; color: var(--muted); flex: 1; }
.team-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.team-links a:not(.team-more) { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.team-links a:not(.team-more):hover { background: var(--primary); color: #fff; }
.team-more { margin-left: auto; font-weight: 700; font-size: .9rem; }
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.profile-card { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; gap: 10px; }
.profile-card img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; object-position: top; width: 100%; margin-bottom: 8px; }
.profile-card h2 { font-size: 1.35rem; margin: 0; }
.profile-card p { font-size: .93rem; color: var(--muted); margin: 0 0 6px; }
.profile-card .btn { font-size: .85rem; white-space: normal; overflow-wrap: anywhere; }

/* ---------- Contact & don ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 18px; }
.info-list li { display: flex; gap: 16px; }
.info-list strong { color: var(--ink); }
.info-list p { margin: 2px 0 0; }
.info-icon { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.15rem; }
.donate-box { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 20px; border-radius: var(--radius); background: linear-gradient(110deg, var(--accent), var(--accent-dark)); color: #fff; }
.donate-box:hover { color: #fff; transform: translateY(-2px); }
.donate-box > i:first-child { font-size: 1.8rem; }
.donate-box span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.donate-box small { opacity: .85; }
.contact-form-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact-form-card h2 { font-size: 1.7rem; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.9); }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 36px 0; }
.donate-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.donate-card h2 { font-size: 1.3rem; margin-bottom: .2em; }
.donate-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 1.5rem; margin-bottom: 18px; }
.copy-list { list-style: none; padding: 0; margin: 0; }
.copy-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-soft); border-radius: 10px; margin-bottom: 8px; font-weight: 700; color: var(--ink); font-size: .95rem; overflow-wrap: anywhere; }
.copy-btn { border: 0; background: #fff; color: var(--primary); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.copy-btn.copied { background: #16A34A; color: #fff; }
.other-help { background: var(--primary-soft); border-radius: var(--radius-lg); padding: 34px; }
.notfound { text-align: center; }
.notfound-code { font-size: 7rem; font-weight: 800; color: var(--primary-soft); line-height: 1; display: block; -webkit-text-stroke: 2px var(--primary); }
.notfound .cta-buttons { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: #071B3D; background: color-mix(in srgb, var(--primary-dark) 80%, #000); color: rgba(255,255,255,.72); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 44px; padding-top: 76px; padding-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--highlight); border-radius: 3px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--highlight); }
.brand-footer { margin-bottom: 18px; }
.brand-footer .brand-logo { background: #fff; border-radius: 50%; padding: 3px; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links i { font-size: .7em; color: var(--highlight); margin-right: 6px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact i { color: var(--highlight); margin-top: 5px; width: 16px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.newsletter-form input { flex: 1; min-width: 0; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form .btn { padding: .78em 1.1em; }
.newsletter-form .form-feedback { flex-basis: 100%; margin: 0; }
.newsletter-form .form-feedback.ok { color: #86EFAC; }
.newsletter-form .form-feedback.err { color: #FCA5A5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 10px 25px -6px rgba(37,211,102,.6); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.to-top { position: fixed; right: 30px; bottom: 92px; z-index: 60; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Adaptation tablette / mobile ---------- */
@media (max-width: 1100px) {
    .domain-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hide-md { display: none; }
    .main-nav ul a { padding: 10px 9px; }
}
@media (max-width: 960px) {
    :root { --header-h: 72px; }
    .brand-logo { width: 48px; height: 48px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
        padding: 20px; gap: 14px; opacity: 0; visibility: hidden; transform: translateY(-12px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s; overflow-y: auto;
        height: calc(100vh - var(--header-h));
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open { overflow: hidden; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a { font-size: 1.1rem; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav ul a::after { display: none; }
    .nav-cta { justify-content: center; }
    .split, .split-top, .program, .contact-layout, .profile { grid-template-columns: 1fr; gap: 40px; }
    .program-reverse .program-media { order: 0; }
    .about-aside, .profile-card { position: static; }
    .post-grid, .feature-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .testimonials-track { grid-auto-columns: calc((100% - 28px) / 2); }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
    .cta-band { background-attachment: scroll; }
    .domain-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .section { padding: 64px 0; }
    .topbar-contacts a:nth-child(2) { display: none; }
    .brand-text small { display: none; }
    .hero { min-height: 560px; height: 82vh; }
    .hero-arrow { display: none; }
    .hero-actions .btn { width: 100%; }
    .domain-grid, .post-grid, .feature-grid, .team-grid, .donate-grid, .form-row { grid-template-columns: 1fr; }
    .stats-grid { transform: translateY(-30px); }
    .stat { padding: 20px 16px; flex-direction: column; text-align: center; gap: 10px; }
    .stat-value { font-size: 1.6rem; }
    .testimonials-track { grid-auto-columns: 88%; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 56px; }
    .split-media { padding: 0 24px 24px 0; }
    .media-badge { left: 8px; top: 12px; font-size: .8rem; }
    .share { margin-left: 0; }
    .comment-reply { margin-left: 24px; }
    .contact-form-card, .comment-form { padding: 24px; }
    .page-hero { padding: 80px 0 60px; }
    .search-box { min-width: 0; width: 100%; }
    .ticker-label { padding: 10px 26px 10px 14px; }
    .to-top { right: 29px; }
}
