/* ============================================================
   KnowWeave — Articles CSS
   Styles partagés par toutes les pages article du blog.
   Inclure après style.css :
     <link rel="stylesheet" href="../css/style.css">
     <link rel="stylesheet" href="../css/articles.css">
   ============================================================ */

/* ── Layout ──────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr min(680px, 100%) 1fr;
  gap: 0;
  padding: 4rem 1.5rem 6rem;
}
.article-layout > * { grid-column: 2; }

/* ── Header ──────────────────────────────────────────────── */
.article-header { margin-bottom: 3rem; }

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(0,200,185,0.25);
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 1.25rem;
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}
.article-header h1 em { color: var(--accent); font-style: normal; }

.article-byline {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-byline .sep { color: var(--border-strong); }

.article-share {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.article-share a {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  border: 1px solid rgba(0,200,185,0.25);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
}
.article-share a:hover { background: rgba(0,200,185,0.08); }

/* ── Divider ─────────────────────────────────────────────── */
.article-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Corps ───────────────────────────────────────────────── */
.article-body { line-height: 1.75; }

.article-body h2 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  margin: 3rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.article-body h3 {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-hi);
  margin: 2rem 0 0.75rem;
}
.article-body p { color: var(--text-mid); margin: 0 0 1.25rem; font-size: 1rem; }
.article-body strong { color: var(--text-hi); font-weight: 600; }
.article-body em { color: var(--accent); font-style: normal; }
.article-body ul,
.article-body ol {
  color: var(--text-mid);
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-body li { font-size: 0.9375rem; line-height: 1.65; }

/* ── Callout ─────────────────────────────────────────────── */
.article-callout {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.article-callout strong { color: var(--accent); }

/* ── Stats row ───────────────────────────────────────────── */
.article-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.article-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.article-stat-card .stat-val {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.article-stat-card .stat-label { font-size: 0.75rem; color: var(--text-dim); line-height: 1.4; }

/* ── Liste numérotée custom ──────────────────────────────── */
.step-list { list-style: none; padding: 0; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  padding: 0.75rem 0 0.75rem 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(245,167,35,0.12);
  border: 1px solid rgba(245,167,35,0.3);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Grille "verrou" (réponses aux objections) ───────────── */
.verrou-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin: 2rem 0; }
.verrou-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.125rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.verrou-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
  margin-top: 0.15rem;
  min-width: 7rem;
}
.verrou-answer { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }
.verrou-answer strong { color: var(--text-hi); }

/* ── Chiffre isolé ───────────────────────────────────────── */
.article-stat {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 0.25rem;
}

/* ── Navigation pied d'article ───────────────────────────── */
.article-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}
.article-footer-nav a { font-size: 0.9rem; color: var(--teal); text-decoration: none; }
.article-footer-nav a:hover { text-decoration: underline; }

/* ── Nav dropdown (articles dans sous-dossier) ───────────── */
.nav-links li.has-dropdown { position: relative; }
.nav-links li.has-dropdown > a::after { content: ' ▾'; font-size: 0.7em; opacity: 0.55; letter-spacing: 0; }
.nav-links li.has-dropdown::after {
  content: ''; position: absolute;
  bottom: -0.75rem; left: -0.5rem; right: -0.5rem;
  height: 0.75rem;
}
.nav-dropdown {
  position: absolute; top: calc(100% + 0.75rem); left: -1rem;
  background: #0F1829; border: 1px solid rgba(184,196,219,0.14);
  border-radius: 8px; padding: 0.375rem; min-width: 180px;
  display: none; z-index: 200;
  box-shadow: 0 8px 32px rgba(4,7,16,0.6);
}
.nav-links li.has-dropdown:hover .nav-dropdown,
.nav-links li.has-dropdown:focus-within .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 0.45rem 0.875rem;
  font-size: 0.8125rem; color: #8A94A6;
  border-radius: 5px; white-space: nowrap; font-weight: 500;
  text-decoration: none;
}
.nav-dropdown a:hover { background: rgba(184,196,219,0.06); color: #D2E1F8; }
.nav-dropdown a.active { color: #F5A723; }
.nav-dropdown-sep { height: 1px; background: rgba(184,196,219,0.08); margin: 0.25rem 0.5rem; }
