/* Blog styles — extends v3-hormozi tokens */

.blog-hero {
  background: var(--bg-alt);
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.blog-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.blog-hero p {
  color: var(--text-light);
  margin-top: 8px;
  max-width: 600px;
}

/* Article grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition), transform .15s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.article-card .category {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.cat-fonctionnalite { background: #e8f0fe; color: #1a56db; }
.cat-tutoriel { background: #def7ec; color: #0e9f6e; }
.cat-comparatif { background: #fef3c7; color: #d97706; }
.cat-actualite { background: #fce8f3; color: #c026d3; }
.cat-conseil { background: #f3e8ff; color: #7c3aed; }

.article-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
}

.article-card h2 a {
  color: inherit;
  text-decoration: none;
}

.article-card h2 a:hover {
  color: var(--primary-light);
}

.article-card .excerpt {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

.article-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
}

.article-card .read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
}

/* Single article */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-content .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-content .back-link:hover {
  color: var(--primary);
}

.article-content .article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  font-size: .85rem;
  color: var(--text-muted);
}

.article-content h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--primary);
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

.article-content ul, .article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--text-light);
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.article-content code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}

/* CTA box in article */
.article-cta {
  background: var(--bg-alt);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}

.article-cta h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 8px;
}

.article-cta p {
  color: var(--text-light);
  margin-bottom: 16px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a, .pagination span {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
}

.pagination a {
  background: var(--bg-alt);
  color: var(--text-light);
}

.pagination a:hover {
  background: var(--primary);
  color: white;
}

.pagination .current {
  background: var(--primary);
  color: white;
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .article-content h1 {
    font-size: 1.5rem;
  }
  .blog-hero h1 {
    font-size: 1.5rem;
  }
}
