/* Blog RSS Indexer - Style */

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-card: #18181b;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --border: #27272a;
  --border-light: #3f3f46;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

/* Background effects */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.1), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

/* Header Blog */
.header-blog {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-blog .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.header-blog nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-blog nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.header-blog nav a:hover {
  color: var(--accent);
}

/* Language Selector */
.lang-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-selector-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-selector-btn:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.lang-selector-btn .flag {
  font-size: 1rem;
}

.lang-selector-btn .arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.lang-selector:hover .arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lang-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.lang-dropdown a:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.lang-dropdown a.active {
  color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}

.lang-dropdown a:first-child {
  border-radius: 8px 8px 0 0;
}

.lang-dropdown a:last-child {
  border-radius: 0 0 8px 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* Hero */
.hero {
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 3rem 0 5rem;
}

/* Article Card */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.article-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-secondary);
}

.article-card-content {
  padding: 1.5rem;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-card-tag {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.article-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-card h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.article-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.read-more:hover {
  gap: 0.75rem;
}

/* Article Page */
.article-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.article-header .article-card-meta {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.article-header .lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.article-cover {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  margin: 2rem 0;
}

.article-content {
  padding: 2rem 0 5rem;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--accent-light);
}

.article-content ul,
.article-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content code {
  background: var(--bg-card);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.9em;
}

.article-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .nav {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

/* Breadcrumb / Fil d'Ariane */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb li:last-child {
  color: var(--text-secondary);
}

/* Table of Contents / Sommaire */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.toc h2 {
  font-size: 1.1rem !important;
  margin: 0 0 1rem 0 !important;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc h2::before {
  content: "📑";
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: block;
  padding: 0.25rem 0;
}

.toc a:hover {
  color: var(--accent);
}

.toc a::before {
  content: "→ ";
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.toc a:hover::before {
  opacity: 1;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.cta-box h3 {
  font-size: 1.35rem !important;
  margin: 0 0 0.75rem 0 !important;
  color: var(--text-primary);
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem !important;
  font-size: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
  color: white;
}

.cta-final {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  margin: 3rem 0;
  text-align: center;
}

.cta-final h3 {
  font-size: 1.5rem !important;
  margin: 0 0 1rem 0 !important;
}

/* Stats Box */
.stats-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stats-box strong {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
}

.stats-box span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Info Box */
.info-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.info-box::before {
  content: "💡 ";
}

.warning-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.warning-box::before {
  content: "⚠️ ";
}

/* Quote / Blockquote enhanced */
.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-card);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content blockquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-content blockquote cite::before {
  content: "— ";
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-content th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
}

.article-content td {
  color: var(--text-secondary);
}

.article-content tr:hover td {
  background: var(--bg-card);
}

/* Pros/Cons List */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pros, .cons {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.25rem;
}

.pros {
  border-top: 3px solid #22c55e;
}

.cons {
  border-top: 3px solid #ef4444;
}

.pros h4, .cons h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.pros h4 { color: #22c55e; }
.cons h4 { color: #ef4444; }

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros li::before { content: "✓ "; color: #22c55e; }
.cons li::before { content: "✗ "; color: #ef4444; }

/* Related Articles */
.related-articles {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 2rem;
  margin: 3rem 0;
}

.related-articles h2 {
  font-size: 1.35rem !important;
  margin: 0 0 1.5rem 0 !important;
  text-align: center;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s;
}

.related-article-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.related-article-card h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.related-article-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer Blog Enhanced */
.footer-blog {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.footer-blog-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

/* Category Page */
.category-header {
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.category-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.category-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.category-count {
  display: inline-block;
  background: var(--bg-card);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Intro text styling */
.article-content .intro {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .cta-box, .cta-final {
    padding: 1.5rem;
  }

  .stats-box {
    flex-direction: column;
    text-align: center;
  }

  .footer-blog-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Utility classes */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Blog Homepage */
.blog-home {
  padding: 2rem 0;
}

.blog-hero {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Categories Section */
.categories-section {
  margin-bottom: 4rem;
}

.categories-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.2s;
  display: block;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.category-card .category-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.category-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.category-card .article-count {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

/* Latest Articles Section */
.latest-articles {
  margin-bottom: 4rem;
}

.latest-articles h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.article-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-content {
  padding: 1.25rem;
}

.article-card-content .category-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.article-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-card-content h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.article-card-content h3 a:hover {
  color: var(--accent);
}

.article-card-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.article-card-content .article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Article Card Horizontal (Category pages) */
.article-card-horizontal {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: all 0.2s;
}

.article-card-horizontal:hover {
  border-color: var(--accent);
}

.article-card-horizontal .article-card-image {
  aspect-ratio: 4/3;
}

.article-card-horizontal .article-card-content {
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-card-horizontal h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.article-card-horizontal h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.article-card-horizontal h2 a:hover {
  color: var(--accent);
}

.article-card-horizontal p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Coming Soon Box */
.coming-soon-box {
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 1.5rem;
}

.coming-soon-box h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.coming-soon-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Articles List (Category pages) */
.articles-list {
  padding: 2rem 0;
}

/* Category Page */
.category-page {
  padding: 2rem 0;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.btn-footer {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-footer:hover {
  background: var(--accent-light);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2rem;
  }

  .article-card-horizontal {
    grid-template-columns: 1fr;
  }

  .article-card-horizontal .article-card-content {
    padding: 1.25rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Article template v2 (used by /blog/fr/articles/*)
   Some newer articles use different class names than the initial
   blog template (e.g. header-blog, article-container).
------------------------------------------------------------ */

.header-blog {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-blog .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.header-blog nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-blog nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.header-blog nav a:hover {
  color: var(--accent);
}

/* v2 articles often use `.btn-primary` without the `.btn` base */
.header-blog nav a.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  color: #fff;
}

.article-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* Constrain content width for v2 articles (they don't wrap with container-narrow) */
.article-container .article-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 0 2rem;
}

.article-container .article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.category-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-light);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-meta .separator {
  color: var(--text-muted);
}

.featured-image {
  margin-top: 2rem;
}

.featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

.article-content .intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Stats box v2 markup */
.stats-box .stat {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-number {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .article-container {
    padding: 0 1.25rem 4rem;
  }

  .article-container .article-header {
    padding: 2.5rem 0 1.5rem;
  }

  .header-blog nav {
    gap: 0.75rem;
  }
}
