/* ===== BLOG STYLES — uses ../style.css for base ===== */
:root {
  --bg: #050505;
  --bg2: #0a0a0f;
  --bg3: #0d0d14;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(124,111,205,0.4);
  --text: #e8e8f0;
  --text-muted: #9090a8;
  --accent: #7c6fcd;
  --accent2: #60A5FA;
  --max-w: 900px;
}

/* ===== BLOG INDEX ===== */

.blog-index-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

/* Hero */
.blog-index-header {
  padding: 4rem 0 3rem;
  position: relative;
}
.blog-index-header::before {
  content: "";
  position: absolute;
  top: 0; left: -2rem; right: -2rem; bottom: 0;
  background: radial-gradient(ellipse 70% 80% at 20% 50%, rgba(124,111,205,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.blog-index-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  font-family: aeonik, "aeonik Fallback", -apple-system, Arial, sans-serif;
}
.blog-index-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  line-height: 1.65;
}

/* Article list */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Each row */
.article-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: #030303;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  margin-bottom: 1rem;
  position: relative;
}
.article-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 180ms ease;
  border-radius: 0;
}
.article-row:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-2px);
}
.article-row:hover::before {
  opacity: 1;
}

/* Thumbnail */
.article-row-thumb {
  overflow: hidden;
  line-height: 0;
  flex-shrink: 0;
}
.article-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}
.article-row:hover .article-row-thumb img {
  transform: scale(1.03);
}

/* Body */
.article-row-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

/* Meta row */
.article-row-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}
.article-row-cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: rgba(124,111,205,0.1);
  border: 1px solid rgba(124,111,205,0.2);
  padding: .15rem .55rem;
  border-radius: 20px;
}
.article-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  padding: .15rem .55rem;
  border-radius: 20px;
}
.article-row-time {
  font-size: .72rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Title */
.article-row-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: .5rem;
  font-family: aeonik, "aeonik Fallback", -apple-system, Arial, sans-serif;
  transition: color 180ms ease;
}
.article-row:hover .article-row-title {
  color: var(--accent2);
}

/* Excerpt */
.article-row-excerpt {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .75rem;
}

/* Footer */
.article-row-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.article-row-date {
  font-size: .75rem;
  color: var(--text-muted);
}
.article-row-cta {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent2);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.article-row:hover .article-row-cta {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 640px) {
  .article-row {
    grid-template-columns: 1fr;
  }
  .article-row-thumb {
    height: 140px;
  }
  .article-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .article-row-time { margin-left: 0; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 1.25rem 2rem 0; font-size: .82rem; color: var(--text-muted); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent2); }

/* ===== ARTICLE HERO ===== */
.article-hero { max-width: 1200px; margin: 2rem auto 0; padding: 0 2rem; }
.article-hero-content { padding-bottom: 2rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.article-category { display: inline-block; background: rgba(124,111,205,.15); color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 20px; border: 1px solid rgba(124,111,205,.3); margin-bottom: 1.25rem; }
.article-date, .article-read { font-size: .85rem; color: var(--text-muted); }
.article-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.article-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.18; letter-spacing: -.03em; color: #fff; max-width: 820px; margin-bottom: 1.25rem; font-family: aeonik, "aeonik Fallback", -apple-system, Arial, sans-serif; }
.article-hero h1 em { font-style: normal; background: linear-gradient(135deg,#7c6fcd,#60A5FA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.article-intro { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; max-width: 760px; }

/* ===== ARTICLE LAYOUT ===== */
.article-layout { max-width: 1200px; margin: 0 auto; padding: 0 2rem 4rem; display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { display: none; } }

/* ===== ARTICLE CONTENT ===== */
.article-content { min-width: 0; }
.article-content h2 { font-size: 1.55rem; font-weight: 700; color: #fff; margin: 2.5rem 0 1rem; letter-spacing: -.02em; padding-bottom: .75rem; border-bottom: 1px solid var(--border); font-family: aeonik, "aeonik Fallback", -apple-system, Arial, sans-serif; }
.article-content h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin: 1.75rem 0 .75rem; font-family: aeonik, "aeonik Fallback", -apple-system, Arial, sans-serif; }
.article-content p { margin-bottom: 1.25rem; color: var(--text); }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-content li { margin-bottom: .5rem; color: var(--text); }
.article-content strong { color: #fff; }
.article-content a { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: #fff; }

/* ===== BOXES ===== */
.box-retenir { background: linear-gradient(135deg,rgba(124,111,205,.12),rgba(96,165,250,.08)); border: 1px solid rgba(124,111,205,.35); border-radius: 12px; padding: 1.5rem 1.75rem; margin: 2rem 0; }
.box-retenir h3, .box-retenir .box-label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; font-family: aeonik, "aeonik Fallback", -apple-system, Arial, sans-serif; }
.box-retenir p, .box-retenir li { font-size: .95rem; color: var(--text); }
.box-retenir ul { margin-left: 1.25rem; }
.box-chiffre { background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin: 2rem 0; }
.chiffre-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 1rem; text-align: center; }
.chiffre-number, .stat-val { display: block; font-size: 2rem; font-weight: 800; background: linear-gradient(135deg,#7c6fcd,#60A5FA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.chiffre-label, .stat-lbl { display: block; font-size: .8rem; color: var(--text-muted); margin-top: .25rem; text-align: center; }
.box-chiffre > div { text-align: center; }
.box-warning { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.box-warning h3, .box-warning h4, .box-warning .box-label { color: #f87171; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; font-family: aeonik, "aeonik Fallback", -apple-system, Arial, sans-serif; }

/* TABLE */
.article-content table, .comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .9rem; }
.article-content th, .comparison-table th { background: var(--bg3); color: #fff; font-weight: 700; padding: .75rem 1rem; text-align: left; border: 1px solid var(--border); }
.article-content td, .comparison-table td { padding: .7rem 1rem; border: 1px solid var(--border); color: var(--text); vertical-align: top; }
.article-content tr:nth-child(even) td, .comparison-table tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.check { color: #4ade80; font-weight: 700; }
.cross { color: #f87171; font-weight: 700; }

/* SIDEBAR */
.article-sidebar { position: sticky; top: 90px; }
.sidebar-card { background: #030303; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 4px 24px rgba(0,0,0,0.4),inset 0 1px 0 rgba(255,255,255,0.06); }
.sidebar-card h4 { font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; font-family: aeonik, "aeonik Fallback", -apple-system, Arial, sans-serif; }
.sidebar-cta a { color: var(--accent2); font-size: .88rem; }
.toc-list { list-style: none; }
.toc-list li { margin-bottom: .5rem; }
.toc-list a { color: var(--text-muted); text-decoration: none; font-size: .85rem; transition: color .2s; padding-left: .75rem; border-left: 2px solid var(--border); display: block; }
.toc-list a:hover { color: var(--accent2); border-left-color: var(--accent2); }

/* CTA */
.cta-article { background: linear-gradient(135deg,rgba(124,111,205,.15),rgba(96,165,250,.1)); border: 1px solid rgba(124,111,205,.3); border-radius: 20px; padding: 2.5rem; text-align: center; margin: 3rem 0 0; }
.cta-article h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: .75rem; font-family: aeonik, "aeonik Fallback", -apple-system, Arial, sans-serif; }
.cta-article p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: .95rem; }
.btn-cta, .cta-btn { display: inline-block; background: linear-gradient(135deg,#7c6fcd,#60A5FA); color: #fff; padding: .85rem 2rem; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 1rem; border: none; cursor: pointer; }
.cta-article a { color: var(--accent2); }
.cta-sub { margin-top: .75rem; font-size: .8rem; color: var(--text-muted); }

/* RELATED */
.related-articles { background: var(--bg); border-top: 1px solid var(--border); padding: 3rem 2rem 4rem; }
.related-articles .container { max-width: 1200px; margin: 0 auto; }
.related-articles h2 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; font-family: aeonik, "aeonik Fallback", -apple-system, Arial, sans-serif; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 1.25rem; }
.blog-card { background: #030303; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 24px rgba(0,0,0,0.5),inset 0 1px 0 rgba(255,255,255,0.05); border-radius: 16px; position: relative; overflow: hidden; padding: 1.5rem; text-decoration: none; display: flex; flex-direction: column; transition: all 200ms cubic-bezier(0.16,1,0.3,1); }
.blog-card:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-3px); }
.blog-card .card-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .5rem; }
.blog-card h2, .blog-card h3 { font-size: .95rem; font-weight: 700; color: #fff; line-height: 1.35; font-family: aeonik, "aeonik Fallback", -apple-system, Arial, sans-serif; }
.blog-card p { font-size: .85rem; color: var(--text-muted); margin-top: .4rem; }
.blog-card-meta { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-muted); margin-top: .75rem; }
.related-card { background: #030303; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 1.25rem; text-decoration: none; display: block; transition: all 200ms ease; }
.related-card:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-2px); }
.related-card .card-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .4rem; }
.related-card h3 { font-size: .9rem; font-weight: 700; color: #fff; line-height: 1.35; font-family: aeonik, "aeonik Fallback", -apple-system, Arial, sans-serif; }
.related-card p { font-size: .82rem; color: var(--text-muted); margin-top: .3rem; }
.related-card .card-time { font-size: .75rem; color: var(--text-muted); margin-top: .4rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 1rem; }

/* Fix: explicit thumb height to prevent row height collapse */
.article-row-thumb {
  height: 126px;
}
.article-row-thumb img {
  width: 100%;
  height: 126px;
  object-fit: cover;
}
/* Fix: ensure article-row is block-level link */
a.article-row {
  display: grid;
  color: inherit;
}
/* Fix: blog-index-header-inner was missing */
.blog-index-header-inner {
  max-width: 600px;
}
