/* JRC – Jeunesse de la Renaissance au Congo */
:root{--bg:#fff;--soft:#f5f8f5;--mint:#e5f1e9;--ink:#15251b;--muted:#516157;--green:#2c6a47;--btn:#2c6a47;--btn-ink:#fff;--gold:#f2b705;--line:#e1e8e2;
box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#0f1a14;--soft:#14221a;--mint:#1b2f23;--ink:#eef3ec;--muted:#a8b8ad;--green:#86cfa1;--btn:#3f8f61;--line:#26382d}}
:root[data-theme="dark"]{--bg:#0f1a14;--soft:#14221a;--mint:#1b2f23;--ink:#eef3ec;--muted:#a8b8ad;--green:#86cfa1;--btn:#3f8f61;--line:#26382d}
html{scroll-behavior:smooth;scroll-padding-top:env(safe-area-inset-top,0px)}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1.05rem/1.65 "DM Sans",system-ui,sans-serif}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);background:var(--bg);z-index:20}
h1,h2,h3{font-family:Outfit,"DM Sans",sans-serif;font-weight:500;margin:0;line-height:1.1;letter-spacing:-.01em}
a{color:inherit}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.wrap{max-width:72rem;margin:0 auto;padding:0 max(1.25rem,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))}
header{position:sticky;top:env(safe-area-inset-top,0px);z-index:10;background:var(--bg);border-bottom:1px solid var(--line)}
header .wrap{display:flex;align-items:center;gap:1.5rem;height:76px}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;margin-right:auto}
.brand img{height:46px;width:auto}
.brand b{display:block;font:600 1.3rem Outfit,sans-serif;line-height:1}
.brand small{display:block;color:var(--muted);font-size:.78rem;line-height:1.2}
nav{display:flex;align-items:center;gap:.3rem}
nav a{text-decoration:none;padding:.5rem .8rem;border-radius:999px;font-weight:500;font-size:.96rem;color:var(--muted)}
nav a:hover{background:var(--soft);color:var(--ink)}
nav a[aria-current=page]{background:var(--mint);color:var(--ink)}
.btn{display:inline-block;background:var(--btn);color:var(--btn-ink);padding:.8rem 1.5rem;border-radius:999px;font-weight:600;text-decoration:none;border:1.5px solid var(--btn)}
.btn.alt{background:transparent;color:var(--ink);border-color:var(--line)}
.btn.alt:hover{border-color:var(--ink)}
.burger{display:none;background:none;border:1px solid var(--line);border-radius:10px;width:44px;height:44px;color:var(--ink);cursor:pointer}
.burger svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
@media(max-width:1060px){.burger{display:grid;place-items:center}header .btn{display:none}
nav{position:absolute;left:0;right:0;top:76px;background:var(--bg);border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;padding:.6rem 1.25rem 1rem;display:none}
nav.open{display:flex}nav a{padding:.8rem 1rem}}
.hero{padding:3.5rem 0 3rem}
.hero .wrap{display:grid;grid-template-columns:1fr 1.05fr;gap:3rem;align-items:center}
@media(max-width:900px){.hero .wrap{grid-template-columns:1fr;gap:2rem}}
.hero h1{font-size:clamp(2.6rem,6vw,4.4rem);margin-bottom:1.2rem}
.hero p{color:var(--muted);font-size:1.15rem;max-width:34rem;margin:0 0 2rem}
.row{display:flex;gap:.8rem;flex-wrap:wrap}
.slider{position:relative;border-radius:26px;overflow:hidden;aspect-ratio:4/3.4;background:var(--mint)}
.slider figure{position:absolute;inset:0;margin:0;opacity:0;transition:opacity .9s ease}
.slider figure.on{opacity:1}
.slider img{width:100%;height:100%;object-fit:cover}
.slider figcaption{position:absolute;left:1rem;right:1rem;bottom:3.6rem;background:rgba(15,30,21,.62);color:#fff;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);padding:.8rem 1.1rem;border-radius:14px;font-size:.96rem}
.ctl{position:absolute;left:1rem;right:1rem;bottom:1rem;display:flex;align-items:center;justify-content:space-between}
.dots{display:flex;gap:.45rem}
.dots button{width:10px;height:10px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.55);cursor:pointer}
.dots button[aria-current=true]{background:#fff;width:26px;border-radius:6px}
.arrows{display:flex;gap:.4rem}
.arrows button{width:38px;height:38px;border-radius:50%;border:0;background:#fff;color:#15251b;cursor:pointer;display:grid;place-items:center}
.arrows svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.stats{background:var(--soft);border-block:1px solid var(--line)}
.stats .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;padding-block:2rem}
@media(max-width:700px){.stats .wrap{grid-template-columns:1fr 1fr}}
.stats b{display:block;font:500 2.3rem Outfit,sans-serif;color:var(--green)}
.stats span{color:var(--muted);font-size:.95rem}
section.s{padding:4.5rem 0}
.s.tint{background:var(--soft)}
h2{font-size:clamp(1.9rem,4vw,2.8rem);margin-bottom:1rem}
.lead{color:var(--muted);max-width:44rem;margin:0 0 1rem}
.split{display:grid;grid-template-columns:1fr 1fr;gap:3.5rem;align-items:center}
@media(max-width:900px){.split{grid-template-columns:1fr;gap:2rem}}
.split .slider{aspect-ratio:1/1}
blockquote{margin:1.6rem 0;padding-left:1.1rem;border-left:4px solid var(--gold);font:500 1.3rem/1.4 Outfit,sans-serif}
.head{display:flex;justify-content:space-between;align-items:end;gap:1rem;flex-wrap:wrap;margin-bottom:2rem}
.head h2{margin:0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem}
.card{background:var(--bg);border:1px solid var(--line);border-radius:20px;padding:1.6rem}
.tint .card{background:var(--bg)}
.card svg{width:34px;height:34px;stroke:var(--green);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin-bottom:1rem}
.card h3{font-size:1.2rem;margin-bottom:.4rem}
.card p{margin:0;color:var(--muted)}
.cta{background:var(--mint);border-radius:28px;padding:clamp(2rem,5vw,3.5rem);display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap}
.cta h2{margin:0;max-width:32rem}
.ph{background:var(--mint);padding:3.5rem 0 3rem}
.ph h1{font-size:clamp(2.2rem,5vw,3.6rem);margin-bottom:.8rem}
.ph p{margin:0;color:var(--muted);max-width:42rem;font-size:1.1rem}
.mv{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media(max-width:800px){.mv{grid-template-columns:1fr}}
.mv .card{padding:2rem;background:var(--soft);border:0}
.mv h3{font-size:1.7rem;margin-bottom:.6rem}
.steps{list-style:none;margin:2rem 0 0;padding:0;border-top:1px solid var(--line)}
.steps li{display:grid;grid-template-columns:minmax(0,17rem) 1fr;gap:.3rem 2.5rem;padding:1.3rem 0;border-bottom:1px solid var(--line)}
@media(max-width:760px){.steps li{grid-template-columns:1fr}}
.steps b{font:500 1.25rem Outfit,sans-serif;color:var(--green)}
.steps span{color:var(--muted)}
.zone{margin-top:1.5rem;padding:1.3rem 1.6rem;border-radius:18px;background:var(--mint)}
.cgrid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
@media(max-width:800px){.cgrid{grid-template-columns:1fr}}
.cgrid .card h3{margin-bottom:.5rem}
.big{font:500 clamp(1.4rem,3vw,2rem) Outfit,sans-serif;color:var(--green);text-decoration:none;overflow-wrap:anywhere}
footer{background:var(--soft);border-top:1px solid var(--line);padding:3rem 0 1.5rem;margin-top:0}
footer .wrap{display:grid;grid-template-columns:1.4fr 1fr 1.2fr;gap:2rem}
@media(max-width:800px){footer .wrap{grid-template-columns:1fr}}
footer h3{font-size:1.05rem;margin-bottom:.7rem}
footer p,footer a{color:var(--muted);font-size:.96rem;margin:0 0 .4rem;display:block;text-decoration:none}
footer a:hover{color:var(--ink)}
.legal{text-align:center;color:var(--muted);font-size:.88rem;margin-top:2rem;padding-top:1.2rem;border-top:1px solid var(--line)}
.news .card{padding:0;overflow:hidden}
.news img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}
.news .body{padding:1.4rem}
.tag{display:inline-block;background:var(--mint);color:var(--ink);font-size:.82rem;font-weight:600;padding:.2rem .7rem;border-radius:999px;margin-bottom:.7rem}
.note{margin-top:1.5rem;color:var(--muted);font-size:.95rem}
.gal{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1rem}
.gal button{border:0;padding:0;border-radius:20px;overflow:hidden;cursor:pointer;aspect-ratio:4/3;background:var(--mint)}
.gal img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.gal button:hover img{transform:scale(1.04)}
dialog{border:0;border-radius:20px;padding:0;max-width:min(92vw,980px);background:var(--bg);color:var(--ink)}
dialog::backdrop{background:rgba(10,20,14,.75)}
dialog img{display:block;width:100%;max-height:78vh;object-fit:contain}
dialog p{margin:0;padding:1rem 1.3rem}
dialog form{position:absolute;top:.7rem;right:.7rem}
dialog form button{width:40px;height:40px;border-radius:50%;border:0;background:#fff;color:#15251b;font-size:1.2rem;cursor:pointer}
.give .card .btn{margin-top:1.2rem}
.stripe{height:5px;background:linear-gradient(90deg,#2c6a47 0 33.3%,var(--gold) 33.3% 66.6%,#3f7fd9 66.6%)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.slider figure{transition:none}}

/* Adaptation à tous les écrans */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img{max-width:100%}
body{overflow-x:hidden}
.btn,.burger{min-height:44px}
dialog img{max-height:78vh;max-height:78dvh}
@media (min-width:1600px){html{font-size:18px}}
@media (min-width:2200px){html{font-size:22px}}
@media (min-width:3000px){html{font-size:28px}}
@media (max-width:1060px){nav.open{max-height:calc(100vh - 76px);max-height:calc(100dvh - 76px - env(safe-area-inset-top,0px));overflow-y:auto}footer .wrap{grid-template-columns:1fr 1fr}}
@media (max-width:900px){.hero{padding:2rem 0}section.s{padding:3rem 0}.ph{padding:2.5rem 0 2rem}.slider,.split .slider{aspect-ratio:4/3}}
@media (max-width:600px){header .wrap{height:68px;gap:.8rem}nav,nav.open{top:68px}.brand img{height:40px}
.row .btn{flex:1 1 100%;text-align:center}
.cta{flex-direction:column;align-items:flex-start}.cta .btn{width:100%;text-align:center}
.slider figcaption{font-size:.85rem;padding:.6rem .85rem;bottom:3.4rem}
.stats b{font-size:1.9rem}.card{padding:1.3rem}.mv .card{padding:1.4rem}
footer .wrap{grid-template-columns:1fr}.zone{padding:1.1rem}}
@media (max-width:420px){.brand small{display:none}.brand b{font-size:1.2rem}.arrows button{width:34px;height:34px}.hero h1{font-size:2.3rem}}
@media (max-width:340px){.stats .wrap{grid-template-columns:1fr}}
@media (max-height:480px) and (orientation:landscape){.hero{padding:1.5rem 0}.slider,.split .slider{aspect-ratio:16/9}}
@media (hover:none){.gal button:hover img{transform:none}}
@media print{header,.stripe,.ctl,.burger{display:none}}

/* Réseaux sociaux et drapeau (pied de page) */
.social{display:flex;gap:.6rem;margin-top:1rem}
.social a{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;color:var(--ink);margin:0;background:var(--bg)}
.social a:hover{background:var(--green);border-color:var(--green);color:var(--bg)}
.social svg{width:18px;height:18px;fill:currentColor}
.flag{width:24px;height:16px;vertical-align:-3px;margin-right:.5rem;border-radius:2px;box-shadow:0 0 0 1px var(--line)}

/* Barre du haut toujours blanche */
header{--bg:#fff;--ink:#15251b;--muted:#516157;--soft:#f5f8f5;--mint:#e5f1e9;--green:#2c6a47;--line:#e1e8e2;--btn:#2c6a47;--btn-ink:#fff;background:#fff;color:#15251b}
body::before{background:#fff}
