/* ══════════════════════════════════════════════
   article.css — CyberFamille article pages
   ══════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.article-breadcrumb {
  padding: 20px 0 0;
  font-size: .84rem;
  color: var(--cf-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--cf-blue); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb .sep { opacity: .35; font-size: .8rem; }

/* ── Article header ── */
.article-header { padding: 28px 0 36px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.article-read { font-size: .8rem; color: var(--cf-muted); }
.article-header h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.7rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--cf-navy);
  margin: 0 0 18px;
}
.article-lead {
  font-size: 1.08rem;
  color: var(--cf-muted);
  max-width: 680px;
  line-height: 1.7;
  margin: 0;
}
.article-divider {
  width: 100%;
  height: 1px;
  background: var(--cf-line);
  margin: 32px 0 0;
}

/* ── Two-column layout ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 284px;
  gap: 56px;
  align-items: start;
  padding: 44px 0 72px;
}

/* ── Body ── */
.article-body {
  font-size: 1.03rem;
  line-height: 1.82;
  color: var(--cf-ink);
}
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--cf-navy);
  margin: 44px 0 14px;
  padding-top: 2px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--cf-navy);
  margin: 30px 0 10px;
}
.article-body p { margin: 0 0 18px; }
.article-body ul,
.article-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
  display: grid;
  gap: 9px;
  color: var(--cf-muted);
}
.article-body ul li::marker { color: var(--cf-blue); }
.article-body strong { color: var(--cf-navy); font-weight: 700; }

/* Callout / tip / warning */
.article-callout,
.article-tip,
.article-warning {
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  margin: 26px 0;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--cf-muted);
}
.article-callout { background: rgba(10,140,255,.07); border-left: 3px solid var(--cf-blue); }
.article-tip     { background: rgba(20,184,122,.07); border-left: 3px solid var(--cf-green); }
.article-warning { background: rgba(255,59,95,.07);  border-left: 3px solid var(--cf-red); }
.article-callout strong,
.article-tip strong,
.article-warning strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
  color: var(--cf-navy);
}
.article-warning strong { color: var(--cf-red); }
.article-tip strong     { color: var(--cf-green); }

/* Numbered step list */
.article-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 18px;
}
.article-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cf-gradient-action);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.step-content { flex: 1; font-size: .97rem; color: var(--cf-muted); line-height: 1.65; }
.step-content strong { display: block; color: var(--cf-navy); margin-bottom: 4px; font-size: 1rem; }

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

.sidebar-cta {
  background: var(--cf-navy);
  border-radius: 18px;
  padding: 28px 22px;
  color: #fff;
  margin-bottom: 22px;
}
.sidebar-cta .eyebrow { color: rgba(255,255,255,.5); font-size: .7rem; margin-bottom: 10px; }
.sidebar-cta h3 { font-size: 1.08rem; font-weight: 900; margin: 0 0 10px; color: #fff; }
.sidebar-cta p { font-size: .88rem; opacity: .7; margin: 0 0 20px; line-height: 1.6; }
.sidebar-cta .button { width: 100%; justify-content: center; text-align: center; }

.sidebar-related { }
.sidebar-related h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--cf-muted);
  font-weight: 700;
  margin: 0 0 12px;
}
.sidebar-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.sidebar-related-list a {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--cf-navy);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--cf-soft);
  border: 1px solid var(--cf-line);
  transition: background .18s, color .18s, border-color .18s;
  line-height: 1.4;
}
.sidebar-related-list a:hover {
  background: rgba(10,140,255,.06);
  color: var(--cf-blue);
  border-color: rgba(10,140,255,.25);
}

/* ── Related articles (bottom) ── */
.related-section {
  border-top: 1px solid var(--cf-line);
  padding-top: 48px;
  margin-top: 8px;
}
.related-section h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--cf-navy);
  margin-bottom: 28px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 60px;
}
.related-card {
  background: var(--cf-soft);
  border: 1px solid var(--cf-line);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: box-shadow .2s, transform .2s;
}
.related-card:hover {
  box-shadow: 0 6px 24px rgba(10,140,255,.1);
  transform: translateY(-2px);
}
.related-card .conseil-tag { margin-bottom: 10px; }
.related-card h3 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--cf-navy);
  line-height: 1.35;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 0 56px;
  }
  .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .sidebar-cta { margin-bottom: 0; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .article-header h1 { font-size: 1.55rem; }
  .article-sidebar { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .article-body { font-size: .97rem; }
  .article-body h2 { font-size: 1.2rem; }
}
