/* ============================================================
   Qualify CRM — Pages statiques CSS (legal, about, how-it-works)
   ============================================================ */

@import url('./landing.css');

/* ─── Layout page statique ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.page-hero__eyebrow { margin-bottom: 0.75rem; }
.page-hero__title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.page-hero__subtitle { font-size: 1rem; color: var(--text-muted); max-width: 560px; }
.page-hero__meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; }

.page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding: 3rem 0 5rem;
  align-items: start;
}

/* ─── Sidebar / Table of Contents ────────────────────────── */
.page-sidebar {
  position: sticky;
  top: 84px;
}
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.toc__list { display: flex; flex-direction: column; gap: 0.15rem; }
.toc__list a {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  display: block;
  transition: color 0.15s, background 0.15s;
  line-height: 1.4;
}
.toc__list a:hover,
.toc__list a.active { color: var(--primary); background: var(--primary-light); }
.toc__list a.sub { padding-left: 1.25rem; font-size: 0.79rem; }

/* ─── Contenu principal ──────────────────────────────────── */
.page-content { min-width: 0; }
.page-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.5rem;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}
.page-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.9rem;
}
.page-content ul, .page-content ol {
  margin: 0.75rem 0 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.page-content li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.page-content ul li { list-style: disc; }
.page-content ol li { list-style: decimal; }
.page-content a { color: var(--primary); text-decoration: underline; }
.page-content a:hover { color: var(--primary-dark); }
.page-content strong { color: var(--text); font-weight: 600; }
.page-content .divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.page-content .callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.page-content .callout p { color: var(--primary-dark); margin-bottom: 0; font-size: 0.9rem; }

/* ─── How it Works — étapes détaillées ───────────────────── */
.steps-detailed { display: flex; flex-direction: column; gap: 2.5rem; margin: 1.5rem 0; }
.step-detail {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.step-detail__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(99,102,241,0.30);
}
.step-detail__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.step-detail__desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }
.step-detail__code {
  margin-top: 0.75rem;
  background: #1e1b4b;
  color: #c7d2fe;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.82rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  line-height: 1.5;
}

/* ─── About — équipe ─────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.team-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.team-card__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}
.team-card__name { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.15rem; }
.team-card__role { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 0.4rem; }
.team-card__bio { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Responsive pages ───────────────────────────────────── */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
  .toc { display: none; }
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .step-detail { grid-template-columns: 1fr; }
  .step-detail__num { width: 44px; height: 44px; font-size: 1rem; }
}
