/* ===== MANUAL PAGE ===== */

.manual-hero {
  position: relative;
  z-index: 1;
  padding: 4rem 3rem 3rem;
  max-width: 900px;
}

.manual-hero .hero-desc {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 1rem;
}

/* LAYOUT */
.manual-layout {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem 6rem;
  align-items: flex-start;
}

/* SOMMAIRE */
.manual-toc {
  width: 200px;
  min-width: 200px;
  position: sticky;
  top: 2rem;
  padding-right: 2rem;
}

.toc-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.manual-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.toc-link:hover { color: var(--white); border-color: var(--border); }
.toc-link.active { color: var(--cyan); border-color: var(--cyan); }

/* CONTENT */
.manual-content { flex: 1; min-width: 0; }

/* SECTION */
.manual-section { padding-top: 1rem; margin-bottom: 1rem; }

.section-tag {
  font-size: 1.8rem;
  color: var(--cyan);
  opacity: 0.4;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.manual-section h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--white);
}

.section-intro {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

/* BLOCKS */
.manual-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.manual-block h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
  color: var(--white);
}

.manual-block p {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.manual-block p strong { color: var(--white); font-weight: 700; }

/* STEPS */
.manual-steps {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.manual-steps li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.manual-steps li::before {
  content: counter(steps);
  min-width: 20px;
  height: 20px;
  background: var(--cyan-glow);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

/* LIST */
.manual-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.manual-list li {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.manual-list li::before {
  content: '◦';
  position: absolute;
  left: 0;
  color: var(--cyan);
  opacity: 0.6;
}

.manual-list li strong { color: var(--white); }

/* TIPS */
.tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

.tip.warning {
  background: rgba(255, 77, 109, 0.05);
  border-color: rgba(255, 77, 109, 0.2);
}

.tip-icon { color: var(--cyan); font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }
.tip.warning .tip-icon { color: #ff4d6d; }

.tip p {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

/* KBD */
.kbd {
  display: inline-block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.1rem 0.4rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--white);
  white-space: nowrap;
}

.kbd.danger { border-color: rgba(255,77,109,0.3); color: #ff4d6d; }

/* BADGE */
.badge {
  display: inline-block;
  background: var(--cyan-glow);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.1rem 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
}

/* DIVIDER */
.section-divider-line {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ===== BOUTON RETOUR EN HAUT ===== */

#scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;

  width: 52px;
  height: 52px;

  border: 1px solid rgba(0,229,255,0.2);
  background: #141a1d;
  color: var(--cyan);

  border-radius: 50%;
  cursor: pointer;

  font-size: 1.2rem;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.25s,
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;

  z-index: 999;
}

#scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top-btn:hover {
  background: rgba(0,229,255,0.08);
  border-color: var(--cyan);
  transform: translateY(-3px);
}
