/* ============================================================================
   Seneweb Eco — "African economic intelligence" design system.
   Loaded AFTER v1 style.css so it owns the look. Palette: deep ink + brass gold
   + market green/red on cool paper. Type: Lora (display) / Outfit (UI) / mono
   (data). Signature: the ink ticker strip. Built per the frontend-design skill.
   ========================================================================== */

:root{
  --ink:#0C1A2B; --ink-soft:#16293D; --ink-line:#23364C;
  --paper:#F6F7F9; --surface:#FFFFFF;
  --gold:#C2912B; --gold-bright:#D8A737; --gold-deep:#977019;
  --up:#138A56; --down:#CE3B2D;
  --text:#16222F; --muted:#5C6B7A; --faint:#8A97A5;
  --line:#E5E8EC; --line-2:#D2D8DF;
  --serif:'Lora',Georgia,'Times New Roman',serif;
  --sans:'Outfit',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:ui-monospace,'SF Mono','SFMono-Regular',Menlo,Consolas,monospace;
  --wrap:1240px;
}

/* base ------------------------------------------------------------------- */
body.eco{ background:var(--paper); color:var(--text); font-family:var(--sans);
  font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased; margin:0; }
.eco *{ box-sizing:border-box; }
.eco img{ max-width:100%; display:block; }
.eco a{ color:inherit; text-decoration:none; }
.eco-wrap{ max-width:var(--wrap); margin:0 auto; padding:0 24px; }
.eco h1,.eco h2,.eco h3,.eco h4,.eco h5{ font-family:var(--serif); color:var(--ink);
  line-height:1.18; letter-spacing:-.012em; margin:0; font-weight:600; }
.eco .num{ font-family:var(--mono); font-variant-numeric:tabular-nums; letter-spacing:-.02em; }

/* eyebrow / section label ------------------------------------------------ */
.eco-eyebrow{ font-family:var(--sans); font-weight:700; font-size:11px; text-transform:uppercase;
  letter-spacing:.14em; color:var(--gold-deep); display:inline-flex; align-items:center; gap:8px; }
.eco-eyebrow::before{ content:""; width:16px; height:2px; background:var(--gold); display:inline-block; }

/* ===== TICKER (signature) ============================================== */
.eco-ticker{ background:var(--ink); color:#E7ECF2; border-bottom:1px solid var(--ink-line);
  font-family:var(--mono); font-size:12.5px; overflow:hidden; position:relative; }
.eco-ticker__rail{ display:flex; align-items:center; }
.eco-ticker__fixed{ flex:none; display:flex; align-items:center; gap:8px; padding:9px 18px;
  background:linear-gradient(90deg,var(--ink-soft),transparent); border-right:1px solid var(--ink-line);
  white-space:nowrap; z-index:2; }
.eco-ticker__fixed .k{ color:var(--gold-bright); font-family:var(--sans); font-weight:700;
  font-size:10px; letter-spacing:.12em; text-transform:uppercase; }
.eco-ticker__fixed .v{ color:#fff; font-weight:600; }
.eco-ticker__scroll{ flex:1; overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); }
.eco-ticker__track{ display:inline-flex; align-items:center; white-space:nowrap; animation:eco-marq 48s linear infinite; }
.eco-ticker__track:hover{ animation-play-state:paused; }
.eco-ticker__item{ display:inline-flex; align-items:center; gap:9px; padding:9px 22px; color:#C3CDD8; }
.eco-ticker__item .dot{ width:5px; height:5px; border-radius:50%; background:var(--gold); flex:none; }
.eco-ticker__item .up{ color:#42C28A; } .eco-ticker__item .down{ color:#F0796D; }
.eco-ticker__item:hover{ color:#fff; }
@keyframes eco-marq{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* ===== HEADER ========================================================== */
.eco-header{ background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:40; }
.eco-head{ display:flex; align-items:center; gap:22px; padding:16px 0; }
.eco-brand{ display:flex; align-items:baseline; gap:9px; flex:none; }
.eco-brand b{ font-family:var(--serif); font-weight:700; font-size:25px; color:var(--ink); letter-spacing:-.02em; }
.eco-brand b i{ font-style:normal; color:var(--gold); }
.eco-brand span{ font-family:var(--sans); font-weight:600; font-size:10px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--muted); border-left:1px solid var(--line-2); padding-left:9px; }
.eco-date{ font-family:var(--mono); font-size:12px; color:var(--faint); margin-left:auto; text-transform:uppercase; letter-spacing:.04em; }
.eco-search{ display:flex; align-items:center; gap:8px; border:1px solid var(--line-2); border-radius:999px;
  padding:8px 14px; min-width:230px; background:#fff; }
.eco-search input{ border:0; outline:0; font-family:var(--sans); font-size:14px; width:100%; background:transparent; color:var(--text); }
.eco-search i{ color:var(--faint); font-size:15px; }
/* sector bar */
.eco-sectorbar{ border-top:1px solid var(--line); }
.eco-sectors{ display:flex; align-items:stretch; gap:0; overflow-x:auto; scrollbar-width:none; }
.eco-sectors::-webkit-scrollbar{ display:none; }
.eco-sectors a{ font-family:var(--sans); font-weight:600; font-size:13.5px; color:var(--text);
  padding:12px 16px; white-space:nowrap; border-bottom:2px solid transparent; transition:.15s; }
.eco-sectors a:first-child{ padding-left:0; }
.eco-sectors a:hover{ color:var(--ink); border-bottom-color:var(--gold); }
.eco-sectors a.live{ color:var(--ink); }

/* ===== HOMEPAGE ======================================================== */
.eco-main{ padding:30px 0 64px; }
.eco-shead{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 0 16px; padding-bottom:10px; border-bottom:2px solid var(--ink); }
.eco-shead h2{ font-size:19px; } .eco-shead a{ font-family:var(--sans); font-size:12.5px; font-weight:600; color:var(--gold-deep); }

/* lead band: hero + rail */
.eco-lead{ display:grid; grid-template-columns:1.65fr 1fr; gap:36px; padding-bottom:30px; margin-bottom:30px; border-bottom:1px solid var(--line); }
.eco-hero .ph{ position:relative; border-radius:4px; overflow:hidden; aspect-ratio:16/9; background:var(--ink-soft); margin-bottom:16px; }
.eco-hero .ph img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.eco-hero a:hover .ph img{ transform:scale(1.03); }
.eco-hero h1{ font-size:clamp(28px,3.4vw,42px); font-weight:700; margin:10px 0 12px; }
.eco-hero p{ font-size:16.5px; color:#33414F; max-width:60ch; }
.eco-meta{ font-family:var(--sans); font-size:12.5px; color:var(--muted); display:flex; gap:10px; align-items:center; margin-top:12px; }
.eco-meta .num{ color:var(--faint); }

.eco-rail .eco-eyebrow{ margin-bottom:14px; }
.eco-rail ol{ list-style:none; margin:0; padding:0; counter-reset:rail; }
.eco-rail li{ display:flex; gap:14px; padding:14px 0; border-top:1px solid var(--line); counter-increment:rail; }
.eco-rail li:first-child{ border-top:0; padding-top:0; }
.eco-rail li::before{ content:counter(rail,decimal-leading-zero); font-family:var(--mono); font-size:13px;
  color:var(--gold); font-weight:600; flex:none; width:24px; padding-top:2px; }
.eco-rail h4{ font-size:15px; font-weight:600; line-height:1.3; }
.eco-rail h4:hover{ color:var(--gold-deep); }
.eco-rail time{ font-family:var(--mono); font-size:11px; color:var(--faint); display:block; margin-top:5px; }

/* repères (indicators) module */
.eco-reperes{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line);
  border:1px solid var(--line); border-radius:4px; overflow:hidden; margin-bottom:34px; }
.eco-rep{ background:var(--surface); padding:16px 18px; }
.eco-rep .k{ font-family:var(--sans); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); margin-bottom:7px; }
.eco-rep .v{ font-family:var(--mono); font-size:21px; font-weight:600; color:var(--ink); }
.eco-rep .n{ font-family:var(--sans); font-size:11.5px; color:var(--faint); margin-top:3px; }
.eco-rep .v small{ font-size:12px; color:var(--muted); }

/* body grid: stories + sidebar */
.eco-cols{ display:grid; grid-template-columns:1fr 320px; gap:40px; }
.eco-stories{ display:grid; grid-template-columns:1fr 1fr; gap:28px 30px; }
.eco-card{ display:flex; flex-direction:column; }
.eco-card .ph{ aspect-ratio:16/10; overflow:hidden; border-radius:3px; background:var(--ink-soft); margin-bottom:11px; }
.eco-card .ph img{ width:100%; height:100%; object-fit:cover; transition:transform .45s; }
.eco-card:hover .ph img{ transform:scale(1.04); }
.eco-card .tag{ font-family:var(--sans); font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--gold-deep); }
.eco-card h3{ font-size:18px; font-weight:600; margin:7px 0 0; line-height:1.28; }
.eco-card:hover h3{ color:var(--gold-deep); }
.eco-card time{ font-family:var(--mono); font-size:11px; color:var(--faint); margin-top:8px; }

/* sidebar: le fil */
.eco-side{ border-left:1px solid var(--line); padding-left:30px; }
.eco-side .eco-eyebrow{ margin-bottom:14px; }
.eco-fil{ list-style:none; margin:0 0 30px; padding:0; }
.eco-fil li{ padding:13px 0; border-top:1px solid var(--line); display:flex; gap:12px; }
.eco-fil li:first-child{ border-top:0; padding-top:0; }
.eco-fil time{ font-family:var(--mono); font-size:11px; color:var(--gold); flex:none; padding-top:2px; }
.eco-fil h4{ font-size:14px; font-weight:600; line-height:1.32; }
.eco-fil h4:hover{ color:var(--gold-deep); }
.eco-topics{ display:flex; flex-wrap:wrap; gap:8px; }
.eco-topics a{ font-family:var(--sans); font-size:12.5px; font-weight:600; color:var(--ink-soft);
  border:1px solid var(--line-2); border-radius:999px; padding:6px 13px; transition:.15s; }
.eco-topics a:hover{ border-color:var(--gold); color:var(--gold-deep); background:#fff; }

/* ===== FOOTER ========================================================== */
.eco-footer{ background:var(--ink); color:#AEBCCB; margin-top:0; padding:48px 0 26px; }
.eco-footer .eco-brand b{ color:#fff; } .eco-footer .eco-brand span{ color:#7E8FA0; border-color:var(--ink-line); }
.eco-fgrid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:34px; padding:30px 0; border-top:1px solid var(--ink-line); margin-top:24px; }
.eco-fgrid h5{ font-family:var(--sans); color:#fff; font-size:12px; text-transform:uppercase; letter-spacing:.12em; margin:0 0 14px; }
.eco-fgrid ul{ list-style:none; margin:0; padding:0; }
.eco-fgrid li{ margin-bottom:9px; } .eco-fgrid a{ font-size:14px; color:#AEBCCB; } .eco-fgrid a:hover{ color:var(--gold-bright); }
.eco-fnote{ font-family:var(--mono); font-size:11.5px; color:#6F8090; padding-top:18px; border-top:1px solid var(--ink-line); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.eco-fintro{ font-size:14px; max-width:38ch; color:#9FB0C0; margin:10px 0 0; }

/* ===== ARTICLE + CATEGORY overrides (match the system) ================= */
.eco .post, .eco .category-page{ background:var(--paper); }
.eco .post__inner{ max-width:760px; margin:0 auto; padding:34px 0 56px; }
.eco .post__label, .eco .news__label{ font-family:var(--sans); font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.12em; color:var(--gold-deep); background:none; padding:0; }
.eco .post__title{ font-family:var(--serif); font-size:clamp(28px,4vw,40px); font-weight:700; color:var(--ink); margin:12px 0 14px; line-height:1.16; }
.eco .post__text, .eco .post__description{ font-family:var(--serif); font-size:18px; line-height:1.72; color:#26323F; }
.eco .post__info{ font-family:var(--mono); font-size:12px; color:var(--muted); border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:12px 0; margin:18px 0; display:flex; gap:18px; align-items:center; }
.eco .post__img-main{ border-radius:4px; overflow:hidden; margin:8px 0 22px; }
.eco .post__content{ font-family:var(--serif); font-size:18px; line-height:1.78; color:#26323F; }
.eco .post__content p{ margin:0 0 1.1em; }
.eco .ao-share, .eco .post__act{ font-family:var(--sans); }
.eco .category__title, .eco .news__title--xl{ font-family:var(--serif); color:var(--ink); }
.eco .news__title{ font-family:var(--serif); color:var(--ink); }
.eco .breadcrumbs, .eco .breadcrumbs a{ font-family:var(--mono); font-size:11.5px; color:var(--faint); text-transform:uppercase; letter-spacing:.04em; }

/* ===== responsive ====================================================== */
@media (max-width:1000px){
  .eco-lead{ grid-template-columns:1fr; gap:26px; }
  .eco-cols{ grid-template-columns:1fr; gap:34px; }
  .eco-side{ border-left:0; padding-left:0; border-top:1px solid var(--line); padding-top:24px; }
  .eco-reperes{ grid-template-columns:repeat(2,1fr); }
  .eco-fgrid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:620px){
  .eco-wrap{ padding:0 16px; }
  .eco-stories{ grid-template-columns:1fr; }
  .eco-search{ display:none; }
  .eco-brand b{ font-size:21px; }
  .eco-reperes{ grid-template-columns:1fr 1fr; }
  .eco-fgrid{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce){
  .eco-ticker__track{ animation:none; }
  .eco-hero a:hover .ph img,.eco-card:hover .ph img{ transform:none; }
}
