/* ============================================================
   CodePro IPTV — Article / Blog Page Styles
   ============================================================ */

/* ── Breadcrumb ── */
.breadcrumb-bar {
  padding: 90px 0 0;
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 14px 0;
  font-size: 13px;
  flex-wrap: wrap;
}
.breadcrumb li { display: flex; align-items: center; color: var(--text-muted); }
.breadcrumb li + li::before { content: ' › '; margin: 0 8px; color: rgba(255,255,255,.3); }
.breadcrumb a { color: var(--text-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--red); }

/* ── Article Header ── */
.article-header {
  background: linear-gradient(to bottom, rgba(230,57,70,.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 48px;
}
.article-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230,57,70,.1);
  border: 1px solid rgba(230,57,70,.3);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.article-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 820px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.article-meta-item {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-intro {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 820px;
  margin-top: 8px;
}

/* ── Layout ── */
.article-main { padding: 48px 0 80px; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* ── Article Body ── */
.article-body h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 40px 0 16px;
  padding-top: 16px;
  line-height: 1.3;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 12px;
}
.article-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: rgba(255,255,255,.9);
}
.article-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}
.article-body strong { color: #fff; }
.article-body a { color: var(--red); text-decoration: underline; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 16px 0; display: block; }
.article-body iframe, .article-body video { max-width: 100%; border-radius: 12px; }
.article-body { overflow-wrap: break-word; word-break: break-word; }

/* ── Table of Contents ── */
.toc {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 36px;
}
.toc-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.toc-list {
  list-style: decimal;
  padding-left: 20px;
  counter-reset: none;
}
.toc-list li { margin-bottom: 8px; }
.toc-list a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none !important;
  transition: color .2s;
}
.toc-list a:hover { color: var(--red); }

/* ── Lists ── */
.article-list {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 20px;
}
.article-list li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 8px;
}
.article-list.numbered { list-style: decimal; }

/* ── Info / Warning Boxes ── */
.info-box, .warning-box, .success-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 10px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.75;
}
.info-box { background: rgba(37,117,252,.08); border: 1px solid rgba(37,117,252,.25); color: rgba(255,255,255,.8); }
.warning-box { background: rgba(255,152,0,.08); border: 1px solid rgba(255,152,0,.25); color: rgba(255,255,255,.8); }
.success-box { background: rgba(37,211,102,.08); border: 1px solid rgba(37,211,102,.25); color: rgba(255,255,255,.8); }
.info-box-icon, .warning-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

/* ── App Card ── */
.app-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin: 24px 0;
  transition: border-color .25s;
}
.app-card:hover { border-color: rgba(230,57,70,.3); }
.app-rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.app-card h3 { font-family: 'Inter', sans-serif; font-size: 19px; font-weight: 700; margin: 0 0 12px; }
.app-card p { font-size: 14px; color: var(--text-muted); line-height: 1.75; margin-bottom: 12px; }
.app-specs { display: flex; gap: 20px; flex-wrap: wrap; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin: 14px 0; }
.app-spec { font-size: 13px; color: var(--text-muted); }
.app-spec strong { color: #fff; }

/* ── Comparison Table ── */
.comparison-table { overflow-x: auto; margin: 24px 0; border-radius: 12px; border: 1px solid var(--border); }
.comparison-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparison-table th { background: rgba(230,57,70,.08); color: #fff; font-family: 'Inter', sans-serif; font-weight: 700; padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table td { padding: 13px 16px; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,.05); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,255,255,.02); }

/* ── Steps ── */
.step-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step-block:last-of-type { border-bottom: none; }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h3 { font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.step-content p { font-size: 14px; color: var(--text-muted); line-height: 1.75; margin: 0; }

/* ── Article CTA ── */
.article-cta {
  background: linear-gradient(135deg, rgba(230,57,70,.1) 0%, rgba(37,117,252,.1) 100%);
  border: 1px solid rgba(230,57,70,.25);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  margin: 40px 0;
}
.article-cta h3 { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.article-cta p { font-size: 15px; color: var(--text-muted); margin-bottom: 0; }

/* ── Sidebar ── */
.article-sidebar { position: sticky; top: 92px; }

.sidebar-cta {
  background: var(--dark3);
  border: 1px solid rgba(230,57,70,.3);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.sidebar-cta-badge {
  display: inline-block;
  background: rgba(230,57,70,.1);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.sidebar-cta h4 { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.sidebar-cta p { font-size: 13px; color: var(--text-muted); margin-bottom: 0; line-height: 1.6; }
.sidebar-trust { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.sidebar-trust span { font-size: 12px; color: var(--text-muted); }

.sidebar-plans { background: var(--dark3); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.sidebar-plans h4 { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.sidebar-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: all .25s;
  position: relative;
}
.sidebar-plan:hover { border-color: rgba(230,57,70,.4); background: rgba(230,57,70,.04); }
.popular-plan { border-color: var(--red) !important; background: rgba(230,57,70,.05); }
.sp-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.sp-duration { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); }
.sp-price { font-size: 14px; font-weight: 700; color: #fff; }
.sp-price small { font-size: 11px; color: var(--text-muted); font-weight: 400; }

.sidebar-related { background: var(--dark3); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.sidebar-related h4 { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.related-article { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--border); transition: .2s; }
.related-article:last-child { border-bottom: none; padding-bottom: 0; }
.related-article:hover .ra-title { color: var(--red); }
.ra-cat { font-size: 11px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.ra-title { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.4; transition: .2s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .sidebar-cta, .sidebar-plans, .sidebar-related { max-width: 560px; }
}

@media (max-width: 768px) {
  /* Header & breadcrumb */
  .breadcrumb-bar { padding-top: 72px; }
  .article-header { padding: 28px 0 36px; }
  .article-title { font-size: 22px; letter-spacing: -.5px; }
  .article-intro { font-size: 14px; }
  .article-meta { gap: 12px; }

  /* Body */
  .article-main { padding: 32px 0 56px; }
  .article-body h2 { font-size: 20px; margin: 28px 0 12px; }
  .article-body h3 { font-size: 17px; margin: 20px 0 10px; }
  .article-body p { font-size: 14px; }

  /* TOC */
  .toc { padding: 16px 18px; }
  .toc-list a { font-size: 13px; }

  /* Info/warning boxes */
  .info-box, .warning-box, .success-box {
    gap: 10px;
    padding: 14px 16px;
    font-size: 13px;
    flex-direction: column;
  }
  .info-box-icon, .warning-icon { margin-top: 0; font-size: 20px; }

  /* App cards */
  .app-specs { flex-direction: column; gap: 6px; }
  .app-spec { font-size: 12px; }
  .app-card { padding: 20px 16px; }

  /* Comparison tables */
  .comparison-table { border-radius: 8px; }
  .comparison-table table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 9px 10px; }

  /* Step blocks */
  .step-block { gap: 14px; padding: 16px 0; }
  .step-num { width: 36px; height: 36px; font-size: 15px; flex-shrink: 0; }

  /* Article CTA */
  .article-cta { padding: 24px 16px; }
  .article-cta h3 { font-size: 18px; }
  .article-cta p { font-size: 13px; }
  .article-cta div[style*="display:flex"] { flex-direction: column; align-items: stretch !important; }
  .article-cta .btn { width: 100%; justify-content: center; }

  /* FAQ */
  .faq-wrap { margin-top: 28px; }
  .faq-question { font-size: 14px; padding: 16px 18px; }
  .faq-answer-inner { font-size: 13px; padding: 0 18px 16px; }

  /* Sidebar */
  .sidebar-cta, .sidebar-plans, .sidebar-related { max-width: 100%; }
  .sidebar-cta { padding: 20px; }
  .sidebar-cta h4 { font-size: 17px; }
  .sidebar-plans, .sidebar-related { padding: 16px; }

  /* Related articles grid (inline style override) */
  .blog-grid { grid-template-columns: 1fr !important; }

  /* Dynamic template-article */
  .article-wrap { padding: 80px 0 40px !important; }
  .article-wrap .container { max-width: 100% !important; }
  .article-wrap h1 { font-size: clamp(22px, 5vw, 32px) !important; }
  .article-wrap p[style*="font-size:18px"] { font-size: 15px !important; }
  .article-wrap div[style*="padding:32px"] { padding: 20px 16px !important; }
  .article-wrap div[style*="padding:32px"] h3 { font-size: 18px !important; }
}

@media (max-width: 480px) {
  .article-title { font-size: 20px; }
  .article-cat-badge { font-size: 11px; }
  .article-meta-item { font-size: 12px; }

  /* Boutons CTA en pleine largeur */
  .btn-lg { padding: 14px 20px; font-size: 15px; }

  /* Tables ultra-compactes */
  .comparison-table th, .comparison-table td { padding: 8px 8px; font-size: 11px; }

  /* Info boxes encore plus compactes */
  .info-box, .warning-box, .success-box { padding: 12px 14px; font-size: 12px; }

  /* Step blocks */
  .step-block { gap: 12px; }
  .step-content h3 { font-size: 15px; }
  .step-content p { font-size: 13px; }

  /* App cards */
  .app-card { padding: 16px 14px; }
  .app-card h3 { font-size: 16px; }
  .app-card p { font-size: 13px; }
}
