/* ═══════════════════════════════════════════════════════════
   Securit Expert — Styles articles de blog
   ═══════════════════════════════════════════════════════════ */

.article-container {
  max-width: 800px;
  padding: 32px 24px;
}
.article-header {
  text-align: center;
  margin-bottom: 48px;
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.article-meta time { font-weight: 600; color: var(--ink) }
.article-meta .sep { margin: 0 8px }
.article-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.article-lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 24px;
}
.article-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.article-tag {
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* Body (Markdown rendered) */
.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.article-body h2 {
  font-size: 26px;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-body h3 {
  font-size: 20px;
  margin: 32px 0 12px;
  font-weight: 600;
}
.article-body p { margin-bottom: 1.2em }
.article-body strong { color: var(--ink); font-weight: 700 }
.article-body em { font-style: italic }
.article-body ul, .article-body ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}
.article-body li { margin-bottom: 0.6em }
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.article-body a:hover { color: var(--ink) }
.article-body blockquote {
  border-left: 3px solid var(--blue);
  background: var(--blue-tint);
  padding: 16px 24px;
  margin: 24px 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  color: var(--ink);
}
.article-body blockquote p:last-child { margin-bottom: 0 }
.article-body code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--ink);
}
.article-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* CTA fin d'article */
.article-footer { margin-top: 64px }
.article-cta {
  background: linear-gradient(135deg, var(--blue-tint) 0%, var(--blue-soft) 100%);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  text-align: center;
}
.article-cta h2 {
  font-size: 24px;
  border: none;
  padding: 0;
  margin: 0 0 12px;
}
.article-cta p {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 24px;
}
.article-cta .btn { margin: 6px }

/* ─── Blog index (cards) ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 32px 0 64px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr } }

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-fast);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-soft);
}
.blog-card-img-link { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg) }
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.04) }
.blog-card-body { padding: 24px }
.blog-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.blog-card-title a {
  color: var(--ink);
  text-decoration: none;
}
.blog-card-title a:hover { color: var(--blue) }
.blog-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}
