/* =========================================
   BLOG ARTICLE PAGE – Legend Web
   ========================================= */

:root {
  --art-bg:      #ffffff;
  --art-ink:     #2c3e50;
  --art-mid:     #555555;
  --art-soft:    #888888;
  --art-border:  #e0e0e0;
  --art-accent:  #2563EB;
  --art-sidebar: #f7f7ff;
}

body { background: #fff; }

/* ---- BREADCRUMB ---- */
.article-breadcrumb {
  background: #f7f7ff;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
}

.breadcrumb-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--art-soft);
  flex-wrap: wrap;
}

.breadcrumb-inner a {
  color: var(--art-soft);
  text-decoration: none;
  transition: color .2s;
}

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

.breadcrumb-sep {
  color: #ccc;
  font-size: .7rem;
}

.breadcrumb-current {
  color: var(--art-ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

/* ---- ARTICLE HERO ---- */
.article-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.article-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
}

.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 52px;
  width: 100%;
}

.article-hero-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.article-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 760px;
  margin-bottom: 22px;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
}

.article-hero-meta .dot {
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,.3);
  border-radius: 50%;
}

/* ---- SHARE BAR ---- */
.article-share-bar {
  background: #f7f7ff;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
}

.share-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.share-bar-label {
  font-size: .78rem;
  color: var(--art-soft);
  font-weight: 500;
}

.share-links {
  display: flex;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--art-ink);
  text-decoration: none;
  transition: all .2s;
}

.share-btn:hover {
  border-color: var(--art-accent);
  color: var(--art-accent);
}

/* ---- MAIN LAYOUT ---- */
.article-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 32px 100px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

/* ---- ARTICLE CONTENT ---- */
.article-content {
  min-width: 0;
}

.article-lead {
  font-family: 'Inter', sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.78;
  color: var(--art-mid);
  border-left: 3px solid var(--art-accent);
  padding-left: 20px;
  margin-bottom: 40px;
}

.article-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--art-ink);
  letter-spacing: -.4px;
  margin: 52px 0 18px;
  line-height: 1.3;
}

.article-content h2:first-of-type { margin-top: 0; }

.article-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--art-ink);
  margin: 36px 0 14px;
  letter-spacing: -.2px;
}

.article-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.82;
  color: var(--art-mid);
  margin-bottom: 22px;
}

.article-content ul,
.article-content ol {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.82;
  color: var(--art-mid);
  margin: 0 0 24px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong { color: var(--art-ink); font-weight: 700; }

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

.article-content code {
  font-family: 'Courier New', monospace;
  font-size: .9em;
  background: #f0f4ff;
  color: #1e40af;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Tip/conseil box */
.tip-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--art-accent);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 32px 0;
}

.tip-box-title {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--art-accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.tip-box p {
  font-size: .93rem;
  color: #1e40af;
  margin: 0;
  line-height: 1.65;
  font-family: 'Inter', sans-serif;
}

/* Warning box */
.warning-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 32px 0;
}

.warning-box .tip-box-title { color: #d97706; }
.warning-box p { color: #92400e; font-size: .93rem; margin: 0; line-height: 1.65; font-family: 'Inter', sans-serif; }

/* Inline CTA in article */
.article-cta-inline {
  background: #0f172a;
  border-radius: 16px;
  padding: 36px 40px;
  margin: 44px 0;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.article-cta-inline .cta-text { flex: 1; }
.article-cta-inline .cta-text h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -.3px;
}

.article-cta-inline .cta-text p {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
}

.article-cta-inline .cta-btn {
  background: #2563EB;
  color: #fff;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}

.article-cta-inline .cta-btn:hover { background: #1d4ed8; transform: scale(1.02); }

/* Stat box */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.stat-item {
  background: var(--art-sidebar);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--art-border);
}

.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--art-accent);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: .78rem;
  color: var(--art-soft);
  font-weight: 500;
  line-height: 1.4;
}

/* ---- SIDEBAR ---- */
.article-sidebar {}

.sidebar-sticky {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-block {
  background: var(--art-sidebar);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--art-border);
}

.sidebar-block-title {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--art-soft);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-block-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--art-border);
}

/* TOC */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  color: var(--art-mid);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 7px;
  line-height: 1.4;
  transition: all .2s;
}

.toc-list a:hover,
.toc-list a.toc-active {
  background: #fff;
  color: var(--art-accent);
}

.toc-num {
  font-size: .65rem;
  font-weight: 700;
  color: var(--art-soft);
  background: var(--art-border);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Sidebar CTA */
.sidebar-cta-block {
  background: #0f172a;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.sidebar-cta-block h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: -.2px;
}

.sidebar-cta-block p {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 18px;
  line-height: 1.55;
  font-family: 'Inter', sans-serif;
}

.sidebar-cta-btn {
  display: block;
  background: #2563EB;
  color: #fff;
  padding: 11px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: .83rem;
  text-decoration: none;
  transition: background .2s;
}

.sidebar-cta-btn:hover { background: #1d4ed8; }

/* Related articles */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  align-items: flex-start;
}

.related-img {
  width: 60px;
  height: 44px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}

.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.related-item:hover .related-img img { transform: scale(1.08); }

.related-info {}

.related-cat {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--art-accent);
  margin-bottom: 4px;
}

.related-title {
  font-size: .8rem;
  font-weight: 600;
  color: var(--art-ink);
  line-height: 1.35;
  transition: color .2s;
}

.related-item:hover .related-title { color: var(--art-accent); }

/* ---- ARTICLE FOOTER ---- */
.article-footer-cta {
  background: #f7f7ff;
  border-top: 1px solid #e0e0e0;
  padding: 72px 32px;
  text-align: center;
}

.article-footer-cta-inner {
  max-width: 580px;
  margin: 0 auto;
}

.article-footer-cta h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--art-ink);
  letter-spacing: -.5px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.article-footer-cta p {
  color: var(--art-mid);
  font-size: .95rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.article-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2563EB;
  color: #fff;
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.article-footer-cta-btn:hover { background: #1d4ed8; transform: scale(1.02); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 24px 80px;
  }
  .article-sidebar { display: none; }
  .article-hero { height: 380px; }
}

@media (max-width: 640px) {
  .article-hero { height: 300px; }
  .article-hero-content { padding: 0 20px 36px; }
  .breadcrumb-inner { padding: 0 20px; }
  .stat-row { grid-template-columns: 1fr; }
  .article-cta-inline { flex-direction: column; gap: 18px; padding: 28px 24px; }
}
