/* ============================================================
   RideComposer — Blog
   Couleurs et polices reprises du site principal.
   ============================================================ */
:root{
  --bg:#06060f;
  --surface:#0d0e1a;
  --surface-2:#11131f;
  --border:rgba(255,255,255,0.08);
  --text:#CBD5E1;
  --heading:#FFFFFF;
  --muted:#94A3B8;
  --accent:#1A56DB;
  --accent-hover:#1648C4;
  --link:#7AA2F7;
  --max:760px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'DM Sans',system-ui,-apple-system,sans-serif;
  font-weight:400;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:140px 24px 80px;
}

/* --- Libellé / méta (DM Mono) --- */
.eyebrow{
  font-family:'DM Mono',monospace;
  text-transform:uppercase;
  letter-spacing:0.18em;
  font-size:12px;
  color:var(--muted);
  margin:0 0 14px;
}

/* --- En-tête du blog --- */
.blog-head{
  margin-bottom:56px;
  padding-bottom:40px;
  border-bottom:1px solid var(--border);
}
.blog-title{
  font-family:'Bebas Neue',sans-serif;
  font-weight:400;
  line-height:0.92;
  font-size:clamp(56px,12vw,104px);
  letter-spacing:0.01em;
  color:var(--heading);
  margin:0 0 20px;
}
.blog-sub{
  font-size:18px;
  color:var(--muted);
  max-width:48ch;
  margin:0;
}

/* --- Liste des articles --- */
.post-list{display:flex;flex-direction:column;gap:14px;}
.post-card{
  display:block;
  text-decoration:none;
  color:inherit;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  transition:border-color .2s, transform .2s, background .2s;
}
.post-card:hover{
  border-color:rgba(26,86,219,0.55);
  transform:translateY(-2px);
  background:var(--surface-2);
}
.card-media{aspect-ratio:16/9;overflow:hidden;}
.card-media img{width:100%;height:100%;object-fit:cover;}
.card-body{padding:28px 30px;}
.card-title{
  font-family:'Bebas Neue',sans-serif;
  font-weight:400;
  font-size:clamp(28px,5vw,40px);
  line-height:1;
  letter-spacing:0.015em;
  color:var(--heading);
  margin:0 0 12px;
}
.card-desc{color:var(--muted);font-size:16px;margin:0 0 18px;}
.card-cta{
  font-family:'DM Mono',monospace;
  font-size:13px;
  color:#fff;
  background:var(--accent);
  padding:7px 16px;
  border-radius:6px;
  display:inline-block;
  transition:background .2s;
}
.post-card:hover .card-cta{background:var(--accent-hover);}

.empty{color:var(--muted);text-align:center;padding:60px 0;}

/* --- Article --- */
.back-link{
  font-family:'DM Mono',monospace;
  font-size:13px;
  color:var(--muted);
  text-decoration:none;
  display:inline-block;
  margin-bottom:32px;
  transition:color .2s;
}
.back-link:hover{color:#fff;}
.post-title{
  font-family:'Bebas Neue',sans-serif;
  font-weight:400;
  font-size:clamp(44px,9vw,80px);
  line-height:0.95;
  letter-spacing:0.01em;
  color:var(--heading);
  margin:0 0 20px;
}
.post-lede{font-size:20px;color:var(--muted);line-height:1.6;margin:0 0 36px;}
.post-cover{
  width:100%;
  border-radius:16px;
  border:1px solid var(--border);
  margin:0 0 44px;
}

/* --- Corps de l'article --- */
.post-body{font-size:18px;line-height:1.8;}
.post-body h2{
  font-family:'Bebas Neue',sans-serif;
  font-weight:400;
  color:var(--heading);
  font-size:34px;
  letter-spacing:0.02em;
  line-height:1.05;
  margin:52px 0 18px;
}
.post-body h3{color:var(--heading);font-size:22px;font-weight:600;margin:40px 0 14px;}
.post-body p{margin:0 0 24px;}
.post-body a{color:var(--link);text-decoration:underline;text-underline-offset:3px;}
.post-body a:hover{color:#A9C2FF;}
.post-body strong{color:#E2E8F0;font-weight:600;}
.post-body ul,.post-body ol{margin:0 0 24px;padding-left:24px;}
.post-body li{margin:0 0 10px;}
.post-body img{border-radius:12px;border:1px solid var(--border);margin:32px 0;}
.post-body blockquote{
  border-left:3px solid var(--accent);
  margin:32px 0;
  padding:6px 0 6px 24px;
  color:var(--muted);
  font-style:italic;
}
.post-body code{
  font-family:'DM Mono',monospace;
  font-size:0.88em;
  background:var(--surface-2);
  border:1px solid var(--border);
  padding:2px 7px;
  border-radius:5px;
  color:#E2E8F0;
}
.post-body pre{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:20px;
  overflow-x:auto;
  margin:0 0 28px;
}
.post-body pre code{background:none;border:none;padding:0;}
.post-body hr{border:none;border-top:1px solid var(--border);margin:48px 0;}

/* --- Pied de page --- */
.site-footer{border-top:1px solid var(--border);margin-top:80px;}
.footer-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:32px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  font-family:'DM Mono',monospace;
  font-size:13px;
  color:var(--muted);
}
.footer-links{display:flex;gap:22px;}
.footer-links a{color:var(--muted);text-decoration:none;transition:color .2s;}
.footer-links a:hover{color:#fff;}

@media(max-width:600px){
  .wrap{padding:120px 18px 60px;}
  .card-body{padding:24px 22px;}
}
