/* ============================================================
   blog.css : feuille partagee par /blog et les articles.
   Les variables reprennent la charte definie dans index.html.
   Toute evolution de charte doit etre repercutee aux deux endroits.
   ============================================================ */

:root{
  --ink: #16233B;
  --ink-2: #202F4C;
  --paper: #F6F4EF;
  --paper-2: #EDEAE0;
  --line: rgba(22,35,59,0.14);
  --line-soft: rgba(22,35,59,0.08);
  --amber: #C97A2E;
  --amber-soft: #F1E0C8;
  --red: #A9432F;
  --red-soft: #F1DCD6;
  --green: #4B6E52;
  --green-soft: #DCE6DB;
  --white: #FFFDF9;
  --shadow: 0 20px 50px -25px rgba(22,35,59,0.35);
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'IBM Plex Sans', sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:'Fraunces', serif;
  font-weight:600;
  letter-spacing:-0.01em;
  color:var(--ink);
}
a{color:inherit;}
img,svg{display:block; max-width:100%;}
.wrap{ max-width:1120px; margin:0 auto; padding:0 28px; }
@media(max-width:720px){ .wrap{padding:0 20px;} }

/* ---------- HEADER ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(246,244,239,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-soft);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 28px; max-width:1120px; margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family:'Fraunces', serif; font-weight:600; font-size:1.05rem;
  text-decoration:none;
}
.brand .mark{
  width:32px; height:32px; border-radius:7px;
  background:var(--ink);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.brand .mark svg{ width:17px; height:17px; }
.brand .mark svg .shackle{ stroke:var(--amber); }
.brand .mark svg .body{ fill:var(--paper); }
.nav-links{display:none; gap:32px; font-size:0.92rem;}
.nav-links a{text-decoration:none; color:var(--ink); opacity:0.75; transition:opacity .2s;}
.nav-links a:hover{opacity:1;}
.nav-links a.on{opacity:1; color:var(--amber);}
@media(min-width:840px){ .nav-links{display:flex;} }

/* ---------- BOUTONS ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 22px; border-radius:8px;
  font-size:0.92rem; font-weight:600;
  text-decoration:none; cursor:pointer; border:none;
  transition:transform .15s ease, box-shadow .15s ease;
  font-family:'IBM Plex Sans', sans-serif;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--ink); color:var(--white); box-shadow:var(--shadow); }
.btn-primary:hover{ box-shadow:0 24px 46px -20px rgba(22,35,59,0.5); }
.btn-sm{ padding:9px 16px; font-size:0.85rem; }

/* ---------- EN-TETE DE PAGE ---------- */
.page-head{ padding:72px 0 44px; border-bottom:1px solid var(--line-soft); }
.eyebrow{
  display:inline-block; font-family:'IBM Plex Mono',monospace;
  font-size:0.72rem; text-transform:uppercase; letter-spacing:0.1em;
  color:var(--amber); margin-bottom:14px;
}
.page-head h1{ font-size:clamp(2rem, 4.4vw, 3rem); line-height:1.14; max-width:20ch; }
.page-head p{ margin-top:16px; max-width:64ch; color:rgba(22,35,59,0.72); }

/* ---------- LISTE D'ARTICLES ---------- */
.post-list{ padding:52px 0 88px; display:grid; gap:22px; }
@media(min-width:900px){ .post-list{ grid-template-columns:repeat(2,1fr); } }
.post-card{
  background:var(--white); border:1px solid var(--line);
  border-radius:12px; padding:28px 30px;
  text-decoration:none; display:flex; flex-direction:column; gap:12px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.post-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow); }
.post-card .tag{
  font-family:'IBM Plex Mono',monospace; font-size:0.66rem;
  text-transform:uppercase; letter-spacing:0.08em; color:var(--amber);
}
.post-card h2{ font-size:1.32rem; line-height:1.28; }
.post-card p{ font-size:0.93rem; color:rgba(22,35,59,0.7); }
.post-card .meta{
  font-family:'IBM Plex Mono',monospace; font-size:0.72rem;
  color:rgba(22,35,59,0.5); margin-top:auto; padding-top:6px;
}

/* ---------- ARTICLE ---------- */
.article{ padding:52px 0 40px; }
.article .wrap{ max-width:760px; }
.article .meta-line{
  font-family:'IBM Plex Mono',monospace; font-size:0.74rem;
  color:rgba(22,35,59,0.5); margin-bottom:34px;
  padding-bottom:20px; border-bottom:1px solid var(--line-soft);
}
.article h2{ font-size:1.62rem; margin:44px 0 14px; line-height:1.26; }
.article h3{ font-size:1.14rem; margin:28px 0 10px; }
.article p{ margin-bottom:16px; }
.article ul,.article ol{ margin:0 0 18px 22px; }
.article li{ margin-bottom:8px; }
.article strong{ font-weight:600; }
.article a{ color:var(--amber); text-decoration:underline; text-underline-offset:2px; }
.lede{ font-size:1.12rem; color:rgba(22,35,59,0.82); }

.toc{
  background:var(--paper-2); border:1px solid var(--line-soft);
  border-radius:10px; padding:22px 26px; margin:0 0 36px;
}
.toc h2{
  font-family:'IBM Plex Mono',monospace; font-size:0.72rem; font-weight:500;
  text-transform:uppercase; letter-spacing:0.1em; color:rgba(22,35,59,0.6);
  margin:0 0 12px;
}
.toc ol{ margin:0 0 0 18px; font-size:0.92rem; }
.toc li{ margin-bottom:5px; }
.toc a{ color:var(--ink); text-decoration:none; }
.toc a:hover{ color:var(--amber); }

.callout{
  border-left:3px solid var(--amber); background:var(--amber-soft);
  border-radius:0 8px 8px 0; padding:18px 22px; margin:26px 0;
  font-size:0.95rem;
}
.callout strong{ display:block; margin-bottom:5px; }
.warn{ border-left-color:var(--red); background:var(--red-soft); }

.delays{ width:100%; border-collapse:collapse; margin:20px 0 26px; font-size:0.92rem; }
.delays th,.delays td{ text-align:left; padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
.delays th{
  font-family:'IBM Plex Mono',monospace; font-size:0.7rem;
  text-transform:uppercase; letter-spacing:0.06em; color:rgba(22,35,59,0.6); font-weight:500;
}
.delays td:last-child{ white-space:nowrap; }

.article-cta{
  background:var(--white); border:1px solid var(--line); border-radius:12px;
  padding:30px 32px; margin:40px 0 0;
}
.article-cta h2{ margin:0 0 10px; font-size:1.3rem; }
.article-cta p{ font-size:0.95rem; color:rgba(22,35,59,0.72); }
.article-cta .btn{ margin-top:14px; }

/* ---------- FOOTER ---------- */
footer{
  background:var(--ink); color:rgba(246,244,239,0.7);
  padding:56px 0 32px; font-size:0.86rem; margin-top:60px;
}
.foot-top{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:32px;
  padding-bottom:36px; margin-bottom:28px;
  border-bottom:1px solid rgba(246,244,239,0.12);
}
.foot-brand{ max-width:320px; }
.foot-brand .brand{ color:var(--paper); margin-bottom:14px; }
.foot-cols{ display:flex; gap:56px; flex-wrap:wrap; }
.foot-col h4{
  color:var(--paper); font-size:0.78rem; text-transform:uppercase;
  letter-spacing:0.08em; margin-bottom:14px; font-family:'IBM Plex Mono',monospace; font-weight:500;
}
.foot-col a{ display:block; text-decoration:none; padding:5px 0; color:rgba(246,244,239,0.68); }
.foot-col a:hover{ color:var(--paper); }
.foot-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:0.78rem; color:rgba(246,244,239,0.45); }
.disclaimer{
  margin-top:24px; padding-top:24px; border-top:1px solid rgba(246,244,239,0.12);
  font-size:0.76rem; color:rgba(246,244,239,0.4); max-width:760px;
}
