/* =====================================================================
   DOPAL · Blog
   Feuille partagée par /blog/index.html et tous les articles.
   Tokens identiques au site (index.html :root). Ne pas dupliquer
   dans les articles : un article = du HTML, zéro CSS inline.
   ===================================================================== */

:root {
  --bg:#070908; --bg2:#0e1210; --bg3:#111116;
  --lime:#C8F400; --cyan:#22d3ee; --violet:#a78bfa; --amber:#f59e0b;
  --green:#22c55e; --red:#ef4444;
  --w:#fff; --w9:rgba(255,255,255,.9); --w7:rgba(255,255,255,.7);
  --w5:rgba(255,255,255,.5); --w3:rgba(255,255,255,.3);
  --w1:rgba(255,255,255,.1); --w05:rgba(255,255,255,.05);
  --card:rgba(255,255,255,.035); --border:rgba(255,255,255,.08);
  --lime-dim:rgba(200,244,0,.1); --lime-border:rgba(200,244,0,.18);
  --ease:cubic-bezier(.16,1,.3,1);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background:var(--bg); color:var(--w9);
  font-family:'Albert Sans',sans-serif; font-weight:500;
  -webkit-font-smoothing:antialiased; line-height:1.7;
  overflow-x:hidden;
}
body::before {
  content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(200,244,0,.07), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(34,211,238,.04), transparent 60%);
}
img, svg { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
:focus-visible { outline:2px solid var(--lime); outline-offset:3px; border-radius:6px; }

.wrap { width:100%; max-width:1180px; margin:0 auto; padding:0 clamp(16px,4vw,32px); }
.wrap-narrow { max-width:740px; }

/* ---------- Barre de lecture ---------- */
.read-bar { position:fixed; top:0; left:0; height:2px; width:0; z-index:60;
  background:var(--lime); box-shadow:0 0 12px var(--lime); }

/* ---------- Header ---------- */
.b-top {
  position:sticky; top:0; z-index:50;
  background:rgba(8,12,10,.88); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  border-bottom:1px solid var(--border);
}
.b-top .wrap { display:flex; align-items:center; justify-content:space-between; gap:16px; height:68px; }
.b-logo { display:flex; align-items:center; gap:11px; }
.b-logo svg { width:30px; height:30px; }
.b-logo span { font-family:'Lexend',sans-serif; font-weight:800; font-size:20px; color:var(--w); letter-spacing:-1px; }
.b-logo span i { color:var(--lime); font-style:normal; }
.b-nav { display:flex; align-items:center; gap:clamp(12px,2.6vw,28px); }
.b-nav a { font-size:14px; color:var(--w5); transition:color .25s; }
.b-nav a:hover, .b-nav a[aria-current="page"] { color:var(--w); }
.b-nav .b-cta {
  font-family:'Lexend',sans-serif; font-weight:700; font-size:13px; color:var(--bg);
  background:var(--lime); padding:10px 18px; border-radius:100px; transition:transform .25s var(--ease), box-shadow .25s;
}
.b-nav .b-cta:hover { color:var(--bg); transform:translateY(-1px); box-shadow:0 8px 24px rgba(200,244,0,.25); }
@media (max-width:620px) { .b-nav .b-hide-sm { display:none; } }

/* ---------- Eléments communs ---------- */
.overline {
  font-family:'Albert Sans',sans-serif; font-weight:600; font-size:11px;
  letter-spacing:1.5px; text-transform:uppercase; color:var(--lime);
}
.pill {
  display:inline-flex; align-items:center; gap:6px; border-radius:100px;
  padding:5px 12px; font-size:12px; font-weight:600; line-height:1;
  background:var(--lime-dim); border:1px solid var(--lime-border); color:var(--lime);
}
.pill.cyan   { background:rgba(34,211,238,.1);  border-color:rgba(34,211,238,.18);  color:var(--cyan); }
.pill.violet { background:rgba(167,139,250,.1); border-color:rgba(167,139,250,.2);  color:var(--violet); }
.meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; font-size:13px; color:var(--w5); font-weight:400; }
.meta .dot { width:3px; height:3px; border-radius:50%; background:var(--w3); }

/* ---------- Page liste : hero ---------- */
.bl-hero { padding:clamp(56px,9vw,112px) 0 clamp(32px,5vw,56px); }
.bl-hero h1 {
  font-family:'Lexend',sans-serif; font-weight:800; color:var(--w);
  font-size:clamp(38px,7vw,76px); line-height:1; letter-spacing:-.04em; margin:16px 0 20px; max-width:14ch;
}
.bl-hero h1 em { font-style:normal; color:var(--lime); }
.bl-hero p { max-width:560px; font-size:clamp(16px,1.6vw,18px); color:var(--w7); }

.bl-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; }
.bl-tags span { font-size:13px; color:var(--w5); border:1px solid var(--border); border-radius:100px; padding:6px 14px; }

/* ---------- Page liste : cartes ---------- */
.bl-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:20px; padding-bottom:clamp(64px,9vw,120px); }
.bl-card {
  position:relative; display:flex; flex-direction:column; overflow:hidden;
  background:var(--card); border:1px solid var(--border); border-radius:20px;
  transition:transform .4s var(--ease), border-color .3s, background .3s;
}
.bl-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px; z-index:2;
  background:linear-gradient(90deg, var(--accent,var(--lime)), transparent 80%); opacity:.8;
}
.bl-card:hover { transform:translateY(-4px); border-color:rgba(255,255,255,.16); background:rgba(255,255,255,.05); }
.bl-card .bl-visual { aspect-ratio:2/1; background:var(--bg2); border-bottom:1px solid var(--border); overflow:hidden; }
.bl-card .bl-visual svg { width:100%; height:100%; transition:transform .6s var(--ease); }
.bl-card:hover .bl-visual svg { transform:scale(1.03); }
.bl-card .bl-body .pill { align-self:flex-start; }
.bl-card .bl-body { display:flex; flex-direction:column; gap:12px; padding:22px 22px 24px; flex:1; }
.bl-card h2, .bl-card h3 {
  font-family:'Lexend',sans-serif; font-weight:700; font-size:clamp(18px,1.7vw,21px);
  line-height:1.25; letter-spacing:-.02em; color:var(--w);
}
.bl-card p { font-size:14.5px; color:var(--w7); line-height:1.6; }
.bl-card .meta { margin-top:auto; padding-top:6px; }
.bl-card > a.bl-link { position:absolute; inset:0; z-index:3; }
.bl-card > a.bl-link span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* 1re carte en vedette */
.bl-card.is-featured { grid-column:1 / -1; flex-direction:row; }
.bl-card.is-featured .bl-visual { flex:1.15; aspect-ratio:auto; display:flex; align-items:center; border-bottom:none; border-right:1px solid var(--border); }
.bl-card.is-featured .bl-visual svg { height:auto; aspect-ratio:2/1; }
.bl-card.is-featured .bl-body { flex:1; padding:clamp(24px,3.5vw,44px); justify-content:center; }
.bl-card.is-featured h2, .bl-card.is-featured h3 { font-size:clamp(24px,3vw,34px); font-weight:800; }
.bl-card.is-featured p { font-size:16px; }
.bl-card.is-featured .meta { margin-top:8px; }

@media (max-width:980px) {
  .bl-card.is-featured { flex-direction:column; }
  .bl-card.is-featured .bl-visual { aspect-ratio:2/1; border-right:none; border-bottom:1px solid var(--border); }
}
@media (max-width:640px) { .bl-grid { grid-template-columns:minmax(0,1fr); } }

/* ---------- Article : en-tête ---------- */
.crumb { display:flex; flex-wrap:wrap; gap:8px; font-size:13px; color:var(--w3); padding-top:clamp(32px,5vw,56px); }
.crumb a { color:var(--w5); }
.crumb a:hover { color:var(--lime); }
.ar-head { padding:22px 0 clamp(24px,4vw,40px); max-width:820px; }
.ar-head h1 {
  font-family:'Lexend',sans-serif; font-weight:800; color:var(--w);
  font-size:clamp(32px,5.4vw,54px); line-height:1.06; letter-spacing:-.035em; margin:16px 0 18px;
}
.ar-head .ar-lead { font-size:clamp(17px,1.9vw,20px); color:var(--w7); line-height:1.6; margin-bottom:22px; }
.ar-cover {
  border-radius:22px; overflow:hidden; border:1px solid var(--border); background:var(--bg2);
  aspect-ratio:2/1; margin-bottom:clamp(36px,5vw,56px);
}
.ar-cover svg { width:100%; height:100%; }

/* ---------- Article : corps ---------- */
.ar-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:clamp(32px,5vw,64px); align-items:start; }
.toc { position:sticky; top:96px; font-size:13.5px; }
.toc p { margin-bottom:12px; }
.toc ol { list-style:none; display:flex; flex-direction:column; gap:2px; border-left:1px solid var(--border); }
.toc a { display:block; padding:6px 0 6px 14px; margin-left:-1px; border-left:1px solid transparent; color:var(--w5); line-height:1.4; transition:color .2s, border-color .2s; }
.toc a:hover { color:var(--w); }
.toc a.is-active { color:var(--lime); border-left-color:var(--lime); }
@media (max-width:980px) { .ar-layout { grid-template-columns:minmax(0,1fr); } .toc { display:none; } }

.prose { max-width:700px; font-size:17px; color:var(--w7); }
.prose > * + * { margin-top:1.1em; }
.prose h2 {
  font-family:'Lexend',sans-serif; font-weight:700; color:var(--w);
  font-size:clamp(23px,2.6vw,29px); line-height:1.2; letter-spacing:-.025em;
  margin-top:2.2em; scroll-margin-top:96px;
}
.prose h3 { font-family:'Lexend',sans-serif; font-weight:600; font-size:19px; color:var(--w); margin-top:1.8em; line-height:1.3; }
.prose strong { color:var(--w); font-weight:600; }
.prose a { color:var(--lime); border-bottom:1px solid var(--lime-border); transition:border-color .2s; }
.prose a:hover { border-bottom-color:var(--lime); }
.prose ul, .prose ol { padding-left:1.3em; }
.prose li + li { margin-top:.45em; }
.prose li::marker { color:var(--lime); }
.prose sup a { border:none; font-size:.72em; font-weight:600; padding:0 1px; }

/* L'essentiel */
.tldr { background:var(--card); border:1px solid var(--lime-border); border-radius:16px; padding:22px 24px; position:relative; overflow:hidden; }
.tldr::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,var(--lime),transparent 80%); }
.tldr .overline { display:block; margin-bottom:10px; }
.tldr ul { padding-left:1.1em; font-size:15.5px; }

/* Encadrés */
.callout { border-radius:14px; padding:18px 20px; background:var(--w05); border:1px solid var(--border); font-size:15.5px; }
.callout strong:first-child { display:block; font-family:'Lexend',sans-serif; font-weight:700; font-size:14px; color:var(--w); margin-bottom:6px; }
.callout.warn { background:rgba(245,158,11,.06); border-color:rgba(245,158,11,.26); }
.callout.warn strong:first-child { color:var(--amber); }

/* Chiffre clé */
.stat-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
.stat { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:18px; }
.stat b { display:block; font-family:'Lexend',sans-serif; font-weight:800; font-size:30px; line-height:1.1; letter-spacing:-.03em; color:var(--lime); }
.stat span { display:block; font-size:13px; color:var(--w5); margin-top:6px; line-height:1.45; }

/* Tableaux */
.tbl { overflow-x:auto; border:1px solid var(--border); border-radius:14px; }
.tbl table { width:100%; border-collapse:collapse; font-size:15px; min-width:480px; }
.tbl th, .tbl td { text-align:left; padding:12px 16px; border-bottom:1px solid var(--border); vertical-align:top; }
.tbl tr:last-child td { border-bottom:none; }
.tbl th { font-size:11px; font-weight:600; letter-spacing:1.5px; text-transform:uppercase; color:var(--w5); background:var(--w05); }
.tbl td:first-child { color:var(--w); font-weight:600; }
.tbl .hl { color:var(--lime); font-family:'Lexend',sans-serif; font-weight:700; }

/* CTA waitlist */
.ar-cta {
  margin-top:2.6em !important; border-radius:20px; padding:clamp(24px,4vw,36px);
  background:linear-gradient(135deg, rgba(200,244,0,.1), rgba(200,244,0,.02) 60%), var(--bg2);
  border:1px solid var(--lime-border);
}
.ar-cta h2 { margin-top:0 !important; font-size:clamp(22px,2.6vw,28px) !important; }
.ar-cta p { margin-top:10px; }
.ar-cta .btn {
  display:inline-flex; align-items:center; gap:8px; margin-top:18px; border:none !important;
  font-family:'Lexend',sans-serif; font-weight:700; font-size:15px; color:var(--bg) !important;
  background:var(--lime); padding:14px 22px; border-radius:14px; transition:transform .25s var(--ease), box-shadow .25s;
}
.ar-cta .btn:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(200,244,0,.28); }
.ar-cta .btn svg { width:16px; height:16px; }

/* Sources */
.sources { margin-top:3em !important; padding-top:28px; border-top:1px solid var(--border); }
.sources h2 { margin-top:0 !important; font-size:20px !important; }
.sources ol { font-size:14px; color:var(--w5); padding-left:1.4em; margin-top:14px; }
.sources li { line-height:1.55; }
.sources li + li { margin-top:.7em; }
.sources a { word-break:break-word; }
.disclaimer { font-size:13.5px; color:var(--w5); line-height:1.6; margin-top:20px; }

/* A lire aussi */
.related { padding:clamp(56px,8vw,96px) 0; border-top:1px solid var(--border); margin-top:clamp(56px,8vw,96px); }
.related h2 { font-family:'Lexend',sans-serif; font-weight:800; font-size:clamp(24px,3vw,32px); letter-spacing:-.03em; color:var(--w); margin-bottom:28px; }
.related .bl-grid { padding-bottom:0; }

/* ---------- Footer ---------- */
.b-foot { border-top:1px solid var(--border); padding:32px 0 44px; }
.b-foot .wrap { display:flex; flex-wrap:wrap; gap:12px 24px; justify-content:space-between; align-items:center; }
.b-foot span, .b-foot a { font-size:13px; color:var(--w5); }
.b-foot a:hover { color:var(--lime); }
.b-foot nav { display:flex; flex-wrap:wrap; gap:18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration:.01ms !important; animation-duration:.01ms !important; }
  html { scroll-behavior:auto; }
}
