/* ═══════════════════════════════════════════════════════════════
   ABCD RESUME — OFFICIAL BLOG DESIGN SYSTEM (FIXED STICKY SIDEBARS)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F1F5F9;
  --text-heading: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --primary: #FF5E62;
  --primary-gradient: linear-gradient(135deg, #FF5E62 0%, #FF9966 100%);
  --primary-hover: #E0484C;
  --primary-light: #FFF5F5;
  --primary-border: #FECDD3;
  --accent-emerald: #10B981;
  --accent-emerald-light: #ECFDF5;
  --border-color: #E2E8F0;
  --border-subtle: #CBD5E1;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.06);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* IMPORTANT : Pas d'overflow sur html/body pour préserver le STICKY */
html, body {
  margin: 0; padding: 0;
  box-sizing: border-box;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

*, *:before, *:after { box-sizing: inherit; }

a { color: inherit; text-decoration: none; }

/* Conteneur élargi à 1340px sur PC pour aérer le contenu */
.container { 
  max-width: 1340px; 
  margin: 0 auto; 
  padding: 0 2rem; 
  width: 100%; 
}

/* ── NAVBAR ── */
.navbar {
  position: -webkit-sticky;
  position: sticky; 
  top: 0; 
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 800;
  color: var(--text-heading); letter-spacing: -0.5px;
}
.brand-logo .accent { color: var(--primary); }
.btn-nav {
  background: var(--primary-gradient); color: #FFF;
  padding: 0.6rem 1.35rem; border-radius: 99px;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 94, 98, 0.3); transition: transform 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { transform: translateY(-1px); }

/* ── HEADER ARTICLE ── */
.article-header-section {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  padding: 2.75rem 0 2.25rem;
}
.breadcrumbs {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem;
}
.breadcrumbs a:hover { color: var(--primary); }
.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800; color: var(--text-heading);
  line-height: 1.2; letter-spacing: -0.8px; margin-bottom: 1.25rem;
  max-width: 1050px; word-wrap: break-word; word-break: break-word;
}
.article-meta {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--text-muted); font-weight: 500;
}
.author-badge { display: flex; align-items: center; gap: 0.55rem; color: var(--text-heading); font-weight: 700; }
.author-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-gradient); color: #FFF; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 800; flex-shrink: 0; }

/* ── LAYOUT PRINCIPAL (3 COLONNES - STICKY FIX) ── */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr 310px;
  gap: 2.75rem;
  padding: 3rem 0 5rem;
  align-items: start; /* Règle indispensable pour que les enfants sticky glissent */
  position: relative;
}

/* SIDEBAR GAUCHE : Sticky Table des matières */
.toc-sidebar { 
  position: -webkit-sticky;
  position: sticky; 
  top: 100px; /* Se bloque sous la navbar sticky (80px + 20px d'espace) */
  align-self: start;
  z-index: 10;
}
.toc-title { font-family: var(--font-display); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 1rem; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.88rem; border-left: 2px solid var(--border-color); padding-left: 1rem; }
.toc-list a { color: var(--text-muted); transition: color 0.2s, font-weight 0.2s; }
.toc-list a:hover, .toc-list a.active { color: var(--primary); font-weight: 700; }

/* ARTICLE BODY (COLONNE CENTRALE) */
.article-body {
  background: #FFFFFF; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 2.75rem 3rem; box-shadow: var(--shadow-sm);
  min-width: 0;
}

/* Image principale / Illustrations */
.article-featured-image,
.article-image-box {
  margin: 0 0 2rem 0;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface-subtle);
}

.article-featured-image img,
.article-image-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 480px;
}

figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  font-style: italic;
}

.lead-paragraph { font-size: 1.18rem; color: var(--text-heading); font-weight: 500; line-height: 1.8; margin-bottom: 2rem; }

/* Typographie */
.article-body h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--text-heading); margin: 2.5rem 0 1.1rem; letter-spacing: -0.5px; line-height: 1.3; word-wrap: break-word; }
.article-body h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--text-heading); margin: 1.75rem 0 0.85rem; word-wrap: break-word; }
.article-body p { font-size: 1.02rem; color: var(--text-body); margin-bottom: 1.4rem; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.5rem; color: var(--text-body); }
.article-body li { margin-bottom: 0.6rem; font-size: 1.02rem; }
.article-body strong { color: var(--text-heading); font-weight: 700; }

/* Key Takeaways Box */
.takeaways-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.5rem; margin: 2rem 0;
}
.takeaways-title { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--text-heading); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }

/* Before / After IA Component */
.before-after-card {
  background: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  overflow: hidden; margin: 2.25rem 0; box-shadow: var(--shadow-sm);
}
.ba-header { background: var(--text-heading); color: #FFF; padding: 0.85rem 1.25rem; font-family: var(--font-display); font-size: 0.85rem; font-weight: 800; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ba-col { padding: 1.25rem; }
.ba-before { background: #FEF2F2; border-right: 1px solid var(--border-color); }
.ba-after { background: var(--accent-emerald-light); }
.ba-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 0.5rem; }
.ba-before .ba-label { color: #DC2626; }
.ba-after .ba-label { color: #047857; }
.ba-text { font-size: 0.92rem; line-height: 1.6; color: var(--text-heading); }

/* Banner CTA Produit Intégré */
.inline-cta-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF; border-radius: var(--radius-md); padding: 2.25rem 2rem;
  margin: 2.5rem 0; text-align: center; position: relative; overflow: hidden;
}
.inline-cta-banner h3 { color: #FFFFFF; font-size: 1.45rem; margin-bottom: 0.5rem; }
.inline-cta-banner p { color: #94A3B8; font-size: 0.95rem; max-width: 520px; margin: 0 auto 1.35rem; }
.btn-inline-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  background: var(--primary-gradient); color: #FFF;
  padding: 0.85rem 1.85rem; border-radius: 99px; font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 800; box-shadow: 0 6px 20px rgba(255, 94, 98, 0.4);
  transition: transform 0.2s;
}
.btn-inline-cta:hover { transform: translateY(-2px); }

/* SIDEBAR DROITE : Sticky Promo Outil */
.product-sidebar { 
  position: -webkit-sticky;
  position: sticky; 
  top: 100px; /* Se bloque sous la navbar sticky */
  align-self: start;
  z-index: 10;
}
.sidebar-promo-card {
  background: #FFFFFF; border: 2px solid var(--primary-border);
  border-radius: var(--radius-md); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-md); text-align: center;
}
.promo-badge { background: var(--primary-light); color: var(--primary); font-size: 0.75rem; font-weight: 800; padding: 0.25rem 0.7rem; border-radius: 99px; display: inline-block; margin-bottom: 0.85rem; }
.promo-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--text-heading); margin-bottom: 0.45rem; }
.promo-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.2rem; line-height: 1.5; }
.btn-sidebar-cta {
  display: block; width: 100%; background: var(--primary-gradient); color: #FFF;
  padding: 0.8rem 1rem; border-radius: 99px; font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 800; text-align: center; box-shadow: 0 4px 14px rgba(255, 94, 98, 0.3);
}

/* FAQ Section */
.article-faq-section { margin-top: 3rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.faq-item { border-bottom: 1px solid var(--border-color); padding: 1rem 0; }
.faq-q { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-heading); margin-bottom: 0.4rem; }
.faq-a { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* Sticky CTA mobile */
.mobile-bottom-cta { display: none; }

/* Footer */
.footer { background: var(--text-heading); color: #94A3B8; padding: 3rem 0 1.5rem; font-size: 0.88rem; text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE MOBILE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1120px) {
  .article-layout { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 0 3rem; }
  .toc-sidebar, .product-sidebar { display: none; }
  .article-body { padding: 2rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .navbar { padding: 0.7rem 0; }
  .brand-logo { font-size: 1.15rem; }
  .btn-nav { padding: 0.45rem 0.85rem; font-size: 0.8rem; }

  .article-header-section { padding: 1.5rem 0 1.25rem; }
  .breadcrumbs { font-size: 0.78rem; margin-bottom: 0.75rem; }
  .article-title { font-size: 1.65rem; margin-bottom: 0.85rem; letter-spacing: -0.3px; }
  .article-meta { gap: 0.6rem 1rem; font-size: 0.8rem; }

  .article-body { padding: 1.25rem 1rem; border-radius: var(--radius-sm); border: none; background: transparent; box-shadow: none; }
  .article-featured-image, .article-image-box { margin-bottom: 1.25rem; border-radius: var(--radius-sm); }
  .article-featured-image img, .article-image-box img { max-height: 260px; }
  figcaption { font-size: 0.78rem; padding: 0.5rem 0.75rem; }

  .lead-paragraph { font-size: 1rem; margin-bottom: 1.25rem; }
  .article-body h2 { font-size: 1.35rem; margin: 1.5rem 0 0.65rem; }
  .article-body h3 { font-size: 1.1rem; margin: 1.2rem 0 0.5rem; }
  .article-body p, .article-body li { font-size: 0.92rem; line-height: 1.65; }
  .article-body ul, .article-body ol { margin-left: 1.1rem; }

  .takeaways-box { padding: 1rem; margin: 1.25rem 0; }
  .before-after-card { margin: 1.25rem 0; }
  .ba-header { padding: 0.65rem 0.85rem; font-size: 0.75rem; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-before { border-right: none; border-bottom: 1px solid var(--border-color); }
  .ba-col { padding: 0.85rem; }
  .ba-text { font-size: 0.82rem; }

  .inline-cta-banner { padding: 1.5rem 1rem; margin: 1.5rem 0; border-radius: var(--radius-sm); }
  .inline-cta-banner h3 { font-size: 1.2rem; }
  .inline-cta-banner p { font-size: 0.85rem; margin-bottom: 1rem; }
  .btn-inline-cta { width: 100%; font-size: 0.88rem; padding: 0.75rem 1rem; }

  .mobile-bottom-cta {
    display: block; position: sticky; bottom: 0; left: 0; right: 0;
    background: #0F172A; border-top: 1px solid #334155; padding: 0.75rem 1rem;
    z-index: 999; box-shadow: 0 -4px 15px rgba(0,0,0,0.25);
  }
  .mobile-bottom-cta a {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--primary-gradient); color: #FFF; padding: 0.7rem 1rem;
    border-radius: 99px; font-family: var(--font-display); font-size: 0.88rem; font-weight: 800;
  }
}