/* ============================================================
   guide.css — Screener Small Caps FR
   Styles partagés pour toutes les pages /guides/
   Autonome : contient :root + reset (extrait de app.css)
   — app.css n'est plus nécessaire sur les guides
   ============================================================ */

/* ── Variables (design system) ──────────────────────────────── */
:root {
  --bg:              #080c10;
  --bg2:             #0d1218;
  --bg3:             #111820;
  --surface:         #141d27;
  --surface2:        #1a2535;
  --surface-overlay: rgba(255,255,255,0.03);
  --surface-ov2:     rgba(255,255,255,0.055);
  --border:          #1e2d3d;
  --border2:         #243344;

  --green:       #00e87a;
  --green2:      #00c463;
  --green-dim:   rgba(0,232,122,0.12);
  --green-glow:  rgba(0,232,122,0.06);

  --amber:       #f5a623;
  --amber-dim:   rgba(245,166,35,0.12);

  --red:         #ff4d4d;
  --red-dim:     rgba(255,77,77,0.10);

  --blue:        #4d9fff;
  --blue-dim:    rgba(77,159,255,0.12);

  --text:        #e8edf2;
  --text2:       #8fa3b8;
  --text3:       #6b7f94;

  --radius:      6px;
  --radius-lg:   10px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}
@media (min-width: 1024px) { body { font-size: 16px; } }

/* ── Nav ────────────────────────────────────────────────────── */
.guide-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(8,12,16,0.92); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.guide-nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 15px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.guide-nav-logo span { color: var(--green); }
.guide-nav-right { display: flex; align-items: center; gap: 16px; }
.guide-nav-link {
  color: var(--text2); font-size: 13px; text-decoration: none;
  transition: color 0.2s;
}
.guide-nav-link:hover { color: var(--green); }
.guide-nav-cta {
  background: var(--green); color: #080c10;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: 0.06em;
  padding: 8px 16px; border-radius: var(--radius);
  text-decoration: none; transition: opacity 0.2s;
}
.guide-nav-cta:hover { opacity: 0.85; }
.guide-nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: 1px solid var(--border2);
  border-radius: var(--radius); cursor: pointer; padding: 7px 8px;
}
.guide-nav-hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text2); border-radius: 1px; transition: all 0.25s;
}
.guide-nav-drawer {
  display: none; flex-direction: column; gap: 4px;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 16px 24px 20px;
}
.guide-nav-drawer a {
  color: var(--text2); text-decoration: none; font-size: 14px;
  padding: 8px 0; display: block;
  border-bottom: 1px solid var(--border);
}
.guide-nav-drawer a:last-child { border-bottom: none; }
.guide-nav-drawer.open { display: flex; }

@media (max-width: 768px) {
  .guide-nav-right { display: none; }
  .guide-nav-hamburger { display: flex; }
  .guide-nav { padding: 0 20px; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.guide-hero {
  padding: 120px 40px 64px; max-width: 860px;
  margin: 0 auto; border-bottom: 1px solid var(--border);
}
.guide-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: var(--text3); margin-bottom: 24px;
}
.guide-breadcrumb a { color: var(--text3); text-decoration: none; transition: color 0.2s; }
.guide-breadcrumb a:hover { color: var(--green); }
.guide-breadcrumb span { color: var(--border2); }
.guide-label {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 16px;
}
.guide-h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(28px, 4.5vw, 48px); line-height: 1.08;
  letter-spacing: -0.025em; color: var(--text); margin-bottom: 20px;
}
.guide-intro {
  font-size: 17px; color: var(--text2); line-height: 1.75;
  max-width: 680px; margin-bottom: 32px;
}
.guide-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.guide-meta-item {
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: var(--text3); display: flex; align-items: center; gap: 6px;
}
.guide-meta-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--green);
}

/* ── Layout 2 colonnes ──────────────────────────────────────── */
/* IMPORTANT : content (article) en PREMIER dans le HTML, sidebar en SECOND */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 260px;  /* content | sidebar */
  gap: 60px;
  max-width: 1100px; margin: 0 auto;
  padding: 60px 40px 100px;
  align-items: start;
}
@media (max-width: 960px) {
  .guide-layout {
    grid-template-columns: 1fr;
    padding: 40px 24px 80px;
  }
  /* Sur mobile la sidebar passe en dessous du contenu */
  .guide-sidebar { order: 2; position: static; }
  .guide-content { order: 1; }
}

/* ── Sidebar ────────────────────────────────────────────────── */
.guide-sidebar { position: sticky; top: 84px; }
.sidebar-box {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
.sidebar-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 16px;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 8px; }
.toc-list a {
  color: var(--text2); text-decoration: none; font-size: 13px;
  line-height: 1.4; display: block; padding: 4px 0 4px 10px;
  border-left: 2px solid transparent; transition: all 0.2s;
}
.toc-list a:hover, .toc-list a.active {
  color: var(--green); border-left-color: var(--green);
}
.sidebar-cta {
  background: var(--green-dim); border: 1px solid rgba(0,232,122,0.2);
  border-radius: var(--radius-lg); padding: 20px; text-align: center;
}
.sidebar-cta-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 14px; color: var(--text); margin-bottom: 8px;
}
.sidebar-cta-body {
  font-size: 12px; color: var(--text2); line-height: 1.5; margin-bottom: 16px;
}
.sidebar-cta-btn {
  display: block; background: var(--green); color: #080c10;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 12px;
  padding: 10px; border-radius: var(--radius);
  text-decoration: none; transition: opacity 0.2s;
}
.sidebar-cta-btn:hover { opacity: 0.85; }

/* ── Contenu article ────────────────────────────────────────── */
.guide-content h2 {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px;
  color: var(--text); margin: 56px 0 16px; padding-top: 20px;
  border-top: 1px solid var(--border); scroll-margin-top: 84px;
}
.guide-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.guide-content h3 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px;
  color: var(--text); margin: 32px 0 12px;
}
.guide-content p {
  color: var(--text2); font-size: 15px; line-height: 1.8; margin-bottom: 18px;
}
.guide-content ul, .guide-content ol {
  color: var(--text2); font-size: 15px; line-height: 1.8;
  padding-left: 24px; margin-bottom: 18px;
}
.guide-content li { margin-bottom: 8px; }
.guide-content a {
  color: var(--green); text-decoration: none;
  border-bottom: 1px solid rgba(0,232,122,0.3); transition: border-color 0.2s;
}
.guide-content a:hover { border-bottom-color: var(--green); }
.guide-content strong { color: var(--text); font-weight: 600; }

/* ── Encarts ────────────────────────────────────────────────── */
.info-block {
  background: var(--surface); border: 1px solid var(--border2);
  border-left: 3px solid var(--green);
  border-radius: var(--radius); padding: 20px 24px; margin: 28px 0;
}
.info-block p { margin-bottom: 0; }
.info-block.amber { border-left-color: var(--amber); }
.info-block.red   { border-left-color: var(--red); }

/* ── Tableaux ───────────────────────────────────────────────── */
.guide-table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px;
}
.guide-table th {
  text-align: left; padding: 10px 14px;
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text3); border-bottom: 1px solid var(--border2);
}
.guide-table td {
  padding: 12px 14px; color: var(--text2);
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.guide-table tr:last-child td { border-bottom: none; }
.guide-table td:first-child { color: var(--text); font-weight: 500; }
.tag {
  display: inline-flex; align-items: center; padding: 3px 8px;
  border-radius: 4px; font-family: 'Space Mono', monospace; font-size: 11px;
}
.tag-green { background: var(--green-dim); color: var(--green); }
.tag-amber { background: var(--amber-dim); color: var(--amber); }
.tag-blue  { background: var(--blue-dim);  color: var(--blue); }
.tag-red   { background: var(--red-dim);   color: var(--red); }

/* ── Cluster satellites ─────────────────────────────────────── */
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin: 24px 0;
}
.cluster-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 16px;
  text-decoration: none; transition: border-color 0.2s; display: block;
}
.cluster-card:hover { border-color: var(--green); }
.cluster-card-label {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 8px;
}
.cluster-card-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 13px; color: var(--text); line-height: 1.3;
}
.cluster-card-soon { opacity: 0.4; cursor: default; }
.cluster-card-soon:hover { border-color: var(--border2); }

/* ── CTA bannière ───────────────────────────────────────────── */
.cta-banner {
  background: var(--green-dim); border: 1px solid rgba(0,232,122,0.2);
  border-radius: var(--radius-lg); padding: 32px; margin: 48px 0; text-align: center;
}
.cta-banner h3 {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px;
  color: var(--text); margin-bottom: 10px;
}
.cta-banner p {
  color: var(--text2); font-size: 14px; margin-bottom: 24px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.cta-banner a {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #080c10;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px;
  padding: 12px 28px; border-radius: var(--radius);
  text-decoration: none; border: none; transition: opacity 0.2s;
}
.cta-banner a:hover { opacity: 0.85; }

/* ── FAQ accordion ──────────────────────────────────────────── */
.faq-list { margin: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 18px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question-text {
  font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: 15px; color: var(--text);
}
.faq-chevron { font-size: 18px; color: var(--text3); transition: transform 0.25s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner {
  padding-bottom: 18px; color: var(--text2);
  font-size: 15px; line-height: 1.75;
}

/* ── Footer ─────────────────────────────────────────────────── */
.guide-footer { border-top: 1px solid var(--border); padding: 32px 40px; }
.guide-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap;
}
.guide-footer-legal { font-size: 12px; color: var(--text3); }
.guide-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.guide-footer-links a {
  font-size: 12px; color: var(--text3); text-decoration: none; transition: color 0.2s;
}
.guide-footer-links a:hover { color: var(--text2); }

@media (max-width: 600px) {
  .guide-hero   { padding: 100px 24px 48px; }
  .guide-footer { padding: 24px 20px; }
  .guide-footer-inner { flex-direction: column; align-items: flex-start; }
}