/* ============================================================
   CHATIVA — blog.css
   Styles spécifiques au blog (liste + articles) — thème clair
   ============================================================ */

/* ── Blog Layout (sidebar + main) ───────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .blog-sidebar { grid-template-columns: 1fr; }
}

/* ── Blog Card (list page) ───────────────────────────────── */
.blog-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover {
  border-color: rgba(245,158,11,0.3);
  background: #FFFBF0;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.blog-card--soon {
  opacity: 0.55;
  pointer-events: none;
}
.blog-card--soon:hover {
  transform: none;
  box-shadow: none;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.blog-card-meta time {
  font-size: 12px;
  color: var(--text-muted-dark);
  font-weight: 600;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}
.blog-card-title a {
  color: var(--text-dark);
  transition: color 0.2s;
}
.blog-card-title a:hover { color: var(--accent); }

.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted-dark);
  margin-bottom: 20px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.blog-kw {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Inter', sans-serif;
}

.blog-read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  transition: opacity 0.2s;
}
.blog-read-more:hover { opacity: 0.75; }

.blog-soon-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted-dark);
  border: 1px solid var(--border-light);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── Category Pills ──────────────────────────────────────── */
.blog-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 20px;
}
.blog-cat--setup       { background: rgba(16,185,129,0.12); color: #059669; border: 1px solid rgba(16,185,129,0.25); }
.blog-cat--comparisons { background: rgba(99,102,241,0.12); color: #4F46E5; border: 1px solid rgba(99,102,241,0.25); }
.blog-cat--privacy     { background: rgba(245,158,11,0.12); color: var(--accent-dark); border: 1px solid rgba(245,158,11,0.25); }
.blog-cat--features    { background: rgba(236,72,153,0.12); color: #DB2777; border: 1px solid rgba(236,72,153,0.25); }

/* ── Sidebar ─────────────────────────────────────────────── */
.blog-sidebar { position: sticky; top: 88px; }
.sidebar-widget {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-cta {
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.04);
}
.sidebar-cta h3 { font-size: 16px; margin-bottom: 8px; color: var(--text-dark); }
.sidebar-cta p  { font-size: 13px; line-height: 1.6; color: var(--text-muted-dark); }
.sidebar-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted-dark);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.sidebar-cats { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sidebar-cats li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted-dark);
  transition: color 0.2s;
}
.sidebar-cats li a:hover { color: var(--text-dark); }
.sidebar-cats li a span:last-child { font-size: 11px; color: var(--text-muted-dark); }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sidebar-links a { font-size: 13px; color: var(--text-muted-dark); transition: color 0.2s; }
.sidebar-links a:hover { color: var(--accent); }
.sidebar-toc { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-toc a { font-size: 13px; color: var(--text-muted-dark); transition: color 0.2s; line-height: 1.4; }
.sidebar-toc a:hover { color: var(--accent); }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted-dark);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted-dark); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted-dark); }

/* ── Article Body ────────────────────────────────────────── */
.article-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}
.article-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.article-lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-muted-dark);
}

.article-body h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-dark);
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.article-body h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted-dark);
  margin-bottom: 18px;
}
.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.article-body li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted-dark);
  margin-bottom: 6px;
}
.article-body strong {
  color: var(--text-dark);
  font-weight: 700;
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { opacity: 0.8; }

/* ── Code block ──────────────────────────────────────────── */
.code-block {
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 20px 0;
  overflow-x: auto;
}
.code-block code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: #92400E;
  line-height: 1.7;
  white-space: pre;
}
.article-body code {
  background: rgba(245,158,11,0.1);
  color: var(--accent-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
}

/* ── Tip / Warning boxes ─────────────────────────────────── */
.article-tip,
.article-warning {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.7;
}
.article-tip {
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.25);
  border-left: 3px solid #10B981;
  color: #065F46;
}
.article-tip strong { color: #059669; }
.article-warning {
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.25);
  border-left: 3px solid var(--accent);
  color: #92400E;
}
.article-warning strong { color: var(--accent-dark); }

/* ── Figure / Screenshot ─────────────────────────────────── */
.article-figure {
  margin: 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  background: #F8FAFC;
  min-height: 120px;
}
.article-figure figcaption {
  font-size: 13px;
  color: var(--text-muted-dark);
  padding: 10px 16px;
  background: #F8FAFC;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

/* ── Article CTA ─────────────────────────────────────────── */
.article-cta {
  background: linear-gradient(135deg, #0F172A 0%, #020617 100%);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 48px 0 32px;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.article-cta h3 { font-size: 20px; margin-bottom: 8px; color: white; }
.article-cta p  { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 20px; }

/* ── Related Articles ────────────────────────────────────── */
.article-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.article-related h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 700px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.25s;
}
.related-card:hover {
  border-color: rgba(245,158,11,0.3);
  background: #FFFBF0;
  transform: translateY(-2px);
}
.related-card p {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--text-muted-dark) !important;
  margin: 0 !important;
}
