/* ============================================================
   Wari Media — feuille de style du thème (design validé 2026-06-19)
   Police : Inter (UI/titres) + Roboto Mono (chiffres marché)
   ============================================================ */
:root{
 --green:#53A930;--green-d:#46901f;--green-soft:#EFF8EC;
 --black:#141414;--text:#3a3f47;--muted:#8b9099;--line:#E8EAED;--bg:#fff;
 --pos:#1A9E4B;--neg:#E03131;--gold:#C9A227;--panel:#F7F8FA;--navy:#122941
}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--black);line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.mono{font-family:'Roboto Mono',ui-monospace,monospace;font-variant-numeric:tabular-nums}
.wrap{max-width:1180px;margin:0 auto;padding:0 22px}
.up{color:var(--pos)}.dn{color:var(--neg)}
.skip{position:absolute;left:-9999px}

/* ---- En-tête ---- */
.site-head{background:#fff;position:sticky;top:0;z-index:30;border-bottom:1px solid var(--line)}
.top{display:flex;align-items:center;justify-content:space-between;height:66px}
.logo img{height:34px}
.tools{display:flex;align-items:center;gap:16px}
.iconbtn{background:none;border:0;cursor:pointer;font-size:18px;color:var(--black);display:flex;align-items:center;text-decoration:none}
.sub{background:var(--black);color:#fff;border:0;padding:11px 20px;border-radius:999px;font-weight:700;font-size:14px;cursor:pointer;display:inline-block}
.sub:hover{background:#000}

/* ---- Navigation ---- */
.nav{border-bottom:1px solid var(--line);background:#fff}
.nav .in{display:flex;gap:28px;overflow-x:auto;scrollbar-width:none;height:50px;align-items:center}
.nav .in::-webkit-scrollbar{display:none}
.nav a{font-size:15px;font-weight:600;color:#4a4f57;white-space:nowrap;height:50px;display:flex;align-items:center;border-bottom:3px solid transparent}
.nav a:hover{color:var(--black)}
.nav a.active{color:var(--black);border-bottom-color:var(--green)}

/* ---- Bandeau indices ---- */
.market{background:var(--panel);border-bottom:1px solid var(--line)}
.market .idx{display:flex;gap:30px;overflow-x:auto;scrollbar-width:none;padding:11px 0;font-size:13px}
.market .idx::-webkit-scrollbar{display:none}
.market .idx .it{white-space:nowrap}
.market .idx .k{color:var(--muted);font-weight:600;font-size:11px;letter-spacing:.03em}
.market .idx .v{font-weight:600;color:var(--black);margin-left:6px}
.submarket{border-bottom:1px solid var(--line);background:#fff}
.submarket .row{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;padding:12px 0}
.submarket .col{font-size:13px}
.submarket .h{font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--muted);margin-bottom:7px;text-transform:uppercase}
.submarket .li{display:flex;justify-content:space-between;padding:2px 0}
.submarket .li .t{font-weight:600;color:var(--black)}
.market .datel{text-align:right;color:var(--muted);font-size:11px;font-weight:500;padding:6px 0}

/* ---- Zone vedette (accueil) ---- */
.zone{display:grid;grid-template-columns:1.7fr 1fr;gap:30px;margin:24px 0 10px}
.feature .media{position:relative;border-radius:14px;overflow:hidden;height:360px;background:#eef0f3 center/cover no-repeat;display:block}
.feature .media.has-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.45))}
.live{position:absolute;top:14px;left:14px;z-index:2;background:#E0162B;color:#fff;font-size:11px;font-weight:700;letter-spacing:.05em;padding:5px 11px;border-radius:999px;display:flex;align-items:center;gap:6px}
.live .dot{width:7px;height:7px;border-radius:50%;background:#fff;animation:pulse 1.6s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,255,255,.5)}70%{box-shadow:0 0 0 9px rgba(255,255,255,0)}100%{box-shadow:0 0 0 0 rgba(255,255,255,0)}}
.feature .pill{display:inline-block;background:var(--green);color:#fff;font-size:11px;font-weight:700;letter-spacing:.04em;padding:5px 12px;border-radius:999px;margin:16px 0 0}
.feature .ago{color:var(--muted);font-size:13px;font-weight:600;margin-left:8px}
.feature h2{font-size:30px;font-weight:800;line-height:1.18;letter-spacing:-.01em;margin-top:10px}
.feature p{color:var(--text);font-size:16px;margin-top:8px;max-width:92%}
.rail{display:flex;flex-direction:column}
.rail .it{display:flex;gap:14px;padding:16px 0;border-top:1px solid var(--line)}
.rail .it:first-child{border-top:0;padding-top:0}
.rail .thumb{flex:0 0 92px;height:68px;border-radius:8px;background:#eef0f3 center/cover no-repeat}
.rail .kick{font-size:11px;font-weight:700;letter-spacing:.05em;color:var(--green);text-transform:uppercase}
.rail h3{font-size:16px;font-weight:700;line-height:1.28;margin-top:4px}

/* ---- Sections & cartes ---- */
.sec{margin:38px 0}
.sec-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;border-bottom:2px solid var(--black);padding-bottom:8px}
.sec-h h2{font-size:20px;font-weight:800;letter-spacing:-.01em}
.sec-h a{font-size:13px;color:var(--green-d);font-weight:700}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card .ph{height:170px;border-radius:12px;background:#eef0f3 center/cover no-repeat;margin-bottom:12px;display:block}
.tag{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#fff;padding:3px 9px;border-radius:5px;margin-bottom:8px}
.tag.a{background:var(--black)}.tag.d{background:var(--green)}.tag.t{background:var(--gold);color:var(--black)}
.card h3{font-size:18px;font-weight:700;line-height:1.28;margin-bottom:5px}
.card p{font-size:14px;color:var(--text)}
.card .meta{color:var(--muted);font-size:12px;font-weight:600;margin-top:9px}

/* ---- Page Article ---- */
.post{max-width:760px;margin:36px auto}
.post .ptag{margin-bottom:14px}
.post h1{font-size:38px;font-weight:800;line-height:1.15;letter-spacing:-.01em}
.post .pmeta{color:var(--muted);font-size:14px;font-weight:600;margin:14px 0 18px;display:flex;align-items:center;gap:10px}
.post .pmeta img{width:34px;height:34px;border-radius:50%}
.post .feat{border-radius:14px;margin:18px 0;width:100%}
.post-content{font-size:18px;line-height:1.75;color:#23262b}
.post-content p{margin:0 0 1.1em}
.post-content h2{font-size:26px;font-weight:800;margin:1.6em 0 .5em}
.post-content h3{font-size:21px;font-weight:700;margin:1.4em 0 .4em}
.post-content a{color:var(--green-d);text-decoration:underline}
.post-content img{border-radius:10px;margin:1.2em 0}
.post-content blockquote{border-left:4px solid var(--green);padding:4px 0 4px 18px;margin:1.2em 0;color:#444;font-style:italic}
.post-content ul,.post-content ol{margin:0 0 1.1em 1.3em}
.share{display:flex;gap:10px;margin:26px 0}
.share a{font-size:13px;font-weight:700;padding:9px 16px;border-radius:999px;border:1px solid var(--line);color:var(--black)}
.share a.wa{background:#25D366;color:#fff;border-color:#25D366}

/* ---- Archives (rubrique / auteur) ---- */
.archive-head{padding:30px 0 6px;border-bottom:1px solid var(--line);margin-bottom:8px}
.archive-head h1{font-size:30px;font-weight:800}
.archive-head .sub{background:none;color:var(--text);padding:0;font-weight:400;font-size:16px;margin-top:6px}
.author-head{display:flex;gap:18px;align-items:center}
.author-head img{width:74px;height:74px;border-radius:50%}

/* ---- Newsletter ---- */
.nl{background:var(--green-soft);border:1px solid #d6ecd0;border-radius:16px;padding:34px;text-align:center;margin:44px 0}
.nl h2{font-size:24px;font-weight:800;margin-bottom:6px}
.nl p{color:var(--text);margin-bottom:18px}
.nl form{display:flex;gap:10px;max-width:460px;margin:0 auto;flex-wrap:wrap;justify-content:center}
.nl input{flex:1;min-width:210px;padding:13px 16px;border:1px solid #cfe0c8;border-radius:999px;font-family:inherit;font-size:15px}
.btn{background:var(--green);color:#fff;border:0;padding:13px 24px;border-radius:999px;font-weight:700;cursor:pointer;font-size:14px}
.btn:hover{background:var(--green-d)}

/* ---- Pagination ---- */
.pagination{display:flex;justify-content:center;gap:14px;margin:34px 0;font-weight:700}
.pagination a{padding:10px 18px;border:1px solid var(--line);border-radius:999px}
.pagination a:hover{border-color:var(--green);color:var(--green-d)}

/* ---- Pied de page ---- */
.site-foot{background:#0a0a0c;color:#9aa3af;padding:40px 0;font-size:14px;margin-top:20px}
.site-foot .cols{display:flex;justify-content:space-between;flex-wrap:wrap;gap:24px}
.site-foot .flogo{font-weight:800;font-size:22px;color:#fff}
.site-foot .flogo .dot{color:var(--green)}
.site-foot a{color:#9aa3af;display:block;padding:3px 0}
.site-foot a:hover{color:#fff}
.site-foot .fh{color:#fff;font-weight:700;font-size:13px;margin-bottom:8px;letter-spacing:.03em}

/* ---- Responsive ---- */
/* ---- Cartes Koenig (éditeur Ghost) ---- */
.kg-card{margin:1.5em 0}
.post-content .kg-width-wide{width:min(1080px,92vw);margin-left:50%;transform:translateX(-50%)}
.post-content .kg-width-full{width:100vw;margin-left:50%;transform:translateX(-50%);border-radius:0}
.post-content .kg-width-full img{border-radius:0}

@media(max-width:880px){
 .zone{grid-template-columns:1fr}
 .feature .media{height:240px}
 .feature h2{font-size:24px}
 .grid{grid-template-columns:1fr}
 .post h1{font-size:28px}
 .submarket .col:last-child{display:none}
 .post-content .kg-width-wide{width:100%;margin-left:0;transform:none}
}
