/* ============================================================
   BLV TECH — blog (liste des articles + mise en page d'un article)
   Complète assets/site.css : à charger après lui.
   ============================================================ */
.page { max-width: 760px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .page { padding: 0 16px; } }

.crumbs { font-size: 0.86rem; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--indigo); }

code {
  font-family: Consolas, 'SF Mono', monospace; font-size: 0.86em;
  background: rgba(70,65,148,0.07); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--indigo); white-space: nowrap;
}

/* ── Liste des articles ── */
.blog-hero { padding: 64px 0 56px; }
.blog-hero .container { max-width: 820px; }
.blog-hero .label { display: block; margin-bottom: 14px; }
.blog-hero h1 { margin-bottom: 18px; }
.post-list { display: grid; gap: 18px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit;
  border-top: 3px solid var(--green); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); border-top-color: var(--green); }
.post-meta { font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.post-card h2 { font-size: 1.35rem; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: 0.95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.74rem; color: var(--indigo); background: rgba(70,65,148,0.07); border-radius: 999px; padding: 3px 10px; }
.post-card .go { color: var(--indigo); font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; }
.post-card .go svg { width: 16px; height: 16px; transition: transform .2s; }
.post-card:hover .go svg { transform: translateX(3px); }

/* ── Article ── */
.article-hero { padding: 36px 0 44px; }
.article-hero .label { display: block; margin-bottom: 14px; }
.article-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 18px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 0.88rem; color: var(--muted); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow); }
.byline b { color: var(--ink); font-weight: 600; display: block; }

.prose { padding-bottom: 72px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 56px; }
.prose h3 { font-size: 1.12rem; margin-top: 32px; }
.prose p, .prose li { font-size: 1.02rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { font-weight: 600; }
.prose a { text-underline-offset: 3px; }

.video-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); background: #fff; aspect-ratio: 16 / 9; }
.video-card video { display: block; width: 100%; height: 100%; }

.tldr { border-left: 4px solid var(--green); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; }
.tldr .label { display: block; margin-bottom: 10px; }
.tldr ul { padding-left: 18px; }
.tldr li { font-size: 0.96rem; }

/* Schéma du flux */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 26px; }
.flow .node {
  position: relative; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 14px 10px; text-align: center; margin: 0 10px; box-shadow: var(--shadow);
}
.flow .node.key { border: 2px solid var(--green); }
.flow .node + .node::before {
  content: ''; position: absolute; left: -21px; top: 50%; width: 12px; height: 12px;
  border-top: 2px solid var(--indigo); border-right: 2px solid var(--indigo); transform: translateY(-50%) rotate(45deg);
}
.flow .n { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.7rem; color: var(--indigo); letter-spacing: .12em; }
.flow .t { font-weight: 700; font-size: 0.92rem; margin: 4px 0 2px; }
.flow .d { font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.flow-caption { font-size: 0.82rem; color: var(--muted); text-align: center; }
@media (max-width: 700px) {
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow .node { margin: 0; }
  .flow .node + .node::before { left: 50%; top: -17px; transform: translateX(-50%) rotate(135deg); }
}

/* Blocs de code */
.code {
  background: #1e1e2a; color: #cdd3de; border-radius: 12px; padding: 16px 18px; overflow-x: auto;
  font-family: Consolas, 'SF Mono', monospace; font-size: 0.82rem; line-height: 1.7; white-space: pre; box-shadow: var(--shadow-lg);
}
.code .c { color: #7a7a95; } .code .k { color: #c9b8ff; } .code .s { color: #e2c08d; } .code .f { color: #a6d3b4; }
.code-title { font-size: 0.78rem; color: var(--muted); margin-bottom: -10px; font-family: 'Montserrat', sans-serif; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: #fff; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: none; }
.prose th { background: var(--bg-soft); font-weight: 600; font-size: 0.82rem; }
.prose td:first-child { font-weight: 600; white-space: nowrap; }

/* Contraintes */
.limits { display: grid; gap: 14px; }
.limit { display: flex; gap: 16px; padding: 20px 22px; }
.limit .icon-box { width: 38px; height: 38px; }
.limit .icon-box svg { width: 19px; height: 19px; }
.limit h3 { margin: 2px 0 6px; font-size: 1.02rem; }
.limit p { font-size: 0.94rem; line-height: 1.65; color: var(--muted); }
.limit p + p { margin-top: 8px; }
.limit p b { color: var(--ink); font-weight: 600; }
.limit.warn { border-left: 4px solid var(--indigo); }

.quote { border-left: 3px solid var(--indigo); padding: 4px 0 4px 18px; color: var(--muted); font-style: italic; }
.quote cite { display: block; font-style: normal; font-size: 0.84rem; margin-top: 6px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border-top: 4px solid var(--green); margin-top: 48px; }
.cta h2 { margin: 6px 0 8px !important; font-size: 1.35rem; }
.cta p { color: var(--muted); max-width: 470px; font-size: 0.95rem; }
