/* =============================================
   NexusIA — article.css — Styles des guides
   ============================================= */

.article-main {
  padding: clamp(2rem, 5vw, 4rem) 0 4rem;
}

.article-container {
  max-width: 820px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--c-muted);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--c-muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--c-accent); }

/* Article Header */
.article-header {
  margin-bottom: 2.5rem;
}
.article-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin: .75rem 0 1rem;
}
.article-intro {
  font-size: 1.1rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: var(--c-muted);
}

/* TOC */
.toc {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.toc h2 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--c-text);
}
.toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.toc a {
  color: var(--c-muted);
  font-size: .92rem;
  transition: color .15s;
}
.toc a:hover { color: var(--c-accent); }

/* Article Content */
.article-content h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  padding-top: .5rem;
  border-top: 1px solid var(--c-border);
  color: var(--c-white);
}
.article-content h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5rem 0 .75rem;
  color: var(--c-text);
}
.article-content p {
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: .98rem;
}
.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { color: var(--c-muted); line-height: 1.7; font-size: .98rem; }
.article-content strong { color: var(--c-text); font-weight: 600; }

/* Info / Warning / CTA boxes */
.info-box, .warning-box, .cta-box {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box {
  background: rgba(0,229,192,.06);
  border: 1px solid rgba(0,229,192,.2);
}
.info-box strong { color: var(--c-accent); display: block; margin-bottom: .4rem; }
.info-box p { color: var(--c-muted); margin: 0; }

.warning-box {
  background: rgba(255,180,0,.06);
  border: 1px solid rgba(255,180,0,.2);
}
.warning-box strong { color: #ffb400; display: block; margin-bottom: .4rem; }
.warning-box p { color: var(--c-muted); margin: 0; }

.cta-box {
  background: linear-gradient(135deg, rgba(108,99,255,.1), rgba(0,229,192,.05));
  border: 1px solid rgba(108,99,255,.3);
  text-align: center;
}
.cta-box h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: .5rem; color: var(--c-white); }
.cta-box p { color: var(--c-muted); margin-bottom: 1rem; }

/* Prompt boxes */
.prompt-box {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: .75rem 0;
}
.prompt-box.bad {
  background: rgba(255,80,80,.06);
  border: 1px solid rgba(255,80,80,.2);
}
.prompt-box.good {
  background: rgba(0,229,192,.06);
  border: 1px solid rgba(0,229,192,.2);
}
.prompt-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
  color: var(--c-muted);
}
.prompt-box p { color: var(--c-text); font-family: monospace; font-size: .92rem; margin: 0; }

/* Use cases */
.use-cases { display: flex; flex-direction: column; gap: .75rem; margin: 1rem 0; }
.use-case {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.uc-num {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(0,229,192,.3);
  min-width: 2rem;
}
.use-case strong { display: block; margin-bottom: .3rem; color: var(--c-text); }
.use-case p { font-size: .88rem; color: var(--c-muted); margin: 0; font-family: monospace; }

/* Tips */
.tip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.tip {
  display: flex;
  gap: .75rem;
  padding: 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 1.5rem;
}
.tip strong { display: block; font-size: .92rem; margin-bottom: .25rem; color: var(--c-text); }
.tip p { font-size: .85rem; color: var(--c-muted); margin: 0; }

/* Revenue cards */
.revenue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.revenue-card {
  padding: 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.revenue-card strong { display: block; margin-bottom: .4rem; color: var(--c-text); }
.revenue-card p { font-size: .88rem; color: var(--c-muted); margin-bottom: .75rem; }
.revenue-tag {
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-accent);
  padding: .2rem .6rem;
  border: 1px solid rgba(0,229,192,.3);
  border-radius: 999px;
}

/* Step list */
.step-list { display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0; }
.step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.step-num {
  width: 32px; height: 32px;
  background: var(--c-accent);
  color: #000;
  font-weight: 800;
  font-family: var(--font-head);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
}
.step strong { display: block; margin-bottom: .3rem; color: var(--c-text); }
.step p { font-size: .88rem; color: var(--c-muted); margin: 0; }

/* Tool comparison */
.tool-compare { margin: 1rem 0; overflow-x: auto; }
.tool-compare table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tool-compare th {
  background: var(--c-surface);
  padding: .75rem 1rem;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  border-bottom: 2px solid var(--c-border);
  color: var(--c-text);
}
.tool-compare td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-muted);
}
.tool-compare tr:hover td { background: rgba(255,255,255,.02); }

/* Guide navigation */
.guide-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}
.guide-nav-btn {
  padding: .75rem 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-muted);
  font-size: .9rem;
  transition: border-color .15s, color .15s;
}
.guide-nav-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }

@media (max-width: 640px) {
  .tip-grid { grid-template-columns: 1fr; }
  .revenue-grid { grid-template-columns: 1fr; }
  .guide-nav { flex-direction: column; }
}
