/* ============================================
   PRODUCT NOVA - Blog (public)
   Réutilise les design tokens de style.css (:root)
   ============================================ */

.blog-section { padding: 56px 0 96px; background: var(--cream); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 8px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.blog-card-media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--teal-light), var(--cyan)); overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-meta { font-size: 0.82rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; }
.blog-card-title { font-family: var(--font-display); font-size: 1.25rem; margin: 0; color: var(--ink); }
.blog-card-title a { text-decoration: none; color: inherit; }
.blog-card-excerpt { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin: 0; flex: 1; }
.blog-card-readmore { font-weight: 600; color: var(--teal-text); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }

.blog-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--ink-soft);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ---- Page article ---- */
.article-hero { background: var(--navy-deep); color: var(--white); padding: 140px 0 40px; }
/* Le menu est fixe (env. 82 px de haut) : on laisse assez d'espace pour que
   « Retour au blog » et le titre ne passent jamais dessous. */
@media (max-width: 900px) { .article-hero { padding-top: 116px; } }
.article-hero .container { max-width: 760px; }
.article-hero .back-link { color: var(--cyan); font-weight: 600; display: inline-block; margin-bottom: 18px; }
.article-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 16px; }
.article-hero .article-meta { color: rgba(255,255,255,0.75); font-size: 0.92rem; display: flex; gap: 14px; flex-wrap: wrap; }

.article-cover { max-width: 900px; margin: -36px auto 0; padding: 0 24px; }
.article-cover img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-soft); display: block; }

.article-body-section { background: var(--white); padding: 48px 0 32px; }
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-content h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 40px 0 16px; color: var(--navy-deep); }
.article-content h3 { font-family: var(--font-display); font-size: 1.22rem; margin: 32px 0 12px; color: var(--navy-deep); }
.article-content p { margin: 0 0 20px; }
.article-content a { color: var(--teal-text); text-decoration: underline; text-underline-offset: 2px; }
.article-content ul, .article-content ol { margin: 0 0 20px; padding-left: 1.4em; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: var(--radius-sm); margin: 8px 0 24px; box-shadow: var(--shadow-card); }
.article-content blockquote {
  margin: 24px 0; padding: 4px 22px; border-left: 4px solid var(--teal-light);
  color: var(--ink-soft); font-style: italic;
}
.article-content code { background: var(--cream); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }
.article-content pre { background: var(--navy-deep); color: var(--white); padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; }
.article-content hr { border: none; border-top: 1px solid #e2e8ea; margin: 32px 0; }

.article-share {
  max-width: 720px; margin: 8px auto 64px; padding: 0 24px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.article-share span { font-weight: 600; color: var(--ink-soft); font-size: 0.92rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  background: var(--cream); color: var(--ink); border: 1px solid #e2e8ea;
  cursor: pointer; text-decoration: none; transition: background 0.2s ease, transform 0.2s ease;
}
.share-btn:hover { background: var(--teal-light); color: var(--white); transform: translateY(-1px); }
.share-btn svg { width: 16px; height: 16px; }
.share-btn.copied { background: var(--teal); color: var(--white); }

.article-cta {
  max-width: 720px; margin: 0 auto 80px; padding: 32px 28px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid-2));
  color: var(--white); border-radius: var(--radius); text-align: center;
}
.article-cta h3 { font-family: var(--font-display); margin: 0 0 8px; }
.article-cta p { color: rgba(255,255,255,0.8); margin: 0 0 18px; }

.blog-pagination { display: flex; gap: 10px; justify-content: center; margin-top: 48px; }
.blog-pagination .btn { padding: 8px 16px; }

@media (max-width: 640px) {
  .article-cover { margin-top: -24px; }
}
