/* ============================================================
   Overdriff — styles des pages secondaires de la vitrine
   (guides, 404). Mêmes couleurs et typographie que index.html,
   qui garde ses styles en ligne.
   ============================================================ */

:root {
  --text: #9ca3af;
  --text-h: #f3f4f6;
  --text-body: #c7cad3;
  --bg: #16171d;
  --border: #2e303a;
  --code-bg: #1f2028;
  --accent: #c084fc;
  --accent-bg: rgba(192, 132, 252, 0.15);
  --accent-border: rgba(192, 132, 252, 0.5);
  --shadow: rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
  --sans: system-ui, 'Segoe UI', Roboto, sans-serif;
  --heading: 'Space Grotesk', system-ui, 'Segoe UI', Roboto, sans-serif;
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  color: var(--text);
  background: radial-gradient(1200px 500px at 50% -180px, var(--accent-bg), transparent 60%), var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 600;
  color: var(--text-h);
  margin: 0;
  line-height: 1.2;
}

p { margin: 0; }

a { color: inherit; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(22, 23, 29, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo { display: flex; align-items: center; }
.logo img { display: block; height: 34px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 24px; }

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.nav-links a:hover { color: var(--text-h); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #17101f; }

@media (max-width: 640px) {
  .nav-link-item { display: none; }
}

@media (max-width: 380px) {
  .logo img { height: 28px; }
  .nav-links .btn { padding: 10px 14px; font-size: 12px; }
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-h);
  background: transparent;
  transition: box-shadow 0.2s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { background: var(--accent-bg); border-color: var(--accent-border); }

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #17101f;
  box-shadow: 0 0 20px -4px var(--accent-border);
}

.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-bg), 0 12px 28px -10px var(--accent-border);
}

.eyebrow {
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* Fil d'Ariane */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  padding: 28px 0 0;
  color: var(--text);
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text-h); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text-h); }

/* Article */

.article-wrap { max-width: 760px; }

.article-head { padding: 36px 0 12px; }

.article-head h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.article-meta { margin-top: 16px; font-size: 14px; }

.prose { color: var(--text-body); font-size: 18px; line-height: 1.75; }

.prose > * + * { margin-top: 18px; }

.prose .lead { font-size: 20px; line-height: 1.65; color: var(--text-h); margin-top: 20px; }

.prose h2 { font-size: clamp(22px, 3.2vw, 28px); margin-top: 48px; }
.prose h3 { font-size: 20px; margin-top: 32px; }

.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--text-h); }

.prose strong { color: var(--text-h); font-weight: 600; }

.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }

.prose ul.checklist { list-style: none; padding-left: 0; }

.prose ul.checklist li {
  position: relative;
  padding-left: 34px;
}

.prose ul.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-border);
  border-radius: 5px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin-top: 22px;
  display: block;
  overflow-x: auto;
}

.prose th, .prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose th {
  color: var(--text-h);
  font-weight: 600;
  background: var(--code-bg);
}

/* Encadré d'appel à l'action */

.cta-box {
  margin: 56px 0 0;
  padding: 32px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--code-bg);
  box-shadow: var(--shadow), 0 0 40px -18px var(--accent-border);
}

.cta-box-title {
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-h);
  margin-bottom: 8px;
}

.cta-box-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 480px) {
  .cta-box { padding: 24px 20px; }
  .cta-box-actions .btn { flex: 1; }
}

/* Cartes de guides */

.related { padding: 56px 0 72px; }
.related h2 { font-size: 24px; margin-bottom: 20px; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-grid-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

@media (max-width: 860px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid-lg { grid-template-columns: 1fr; }
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--code-bg);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover { transform: translateY(-3px); border-color: var(--accent-border); }

.guide-card h2, .guide-card h3 { font-size: 18px; line-height: 1.3; }
.guide-card p { font-size: 14px; line-height: 1.6; }

.guide-card-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.guide-card-more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--text-h); }

/* Index des guides */

.guides-wrap { padding-bottom: 72px; }
.guides-head { padding: 36px 0 32px; max-width: 640px; }
.guides-head h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.12; margin-bottom: 14px; }
.guides-head p { font-size: 18px; }

/* 404 */

.notfound { padding: 96px 20px 110px; text-align: center; }
.notfound-code { font-family: var(--heading); font-size: 72px; font-weight: 700; color: var(--accent); }
.notfound h1 { font-size: clamp(26px, 4vw, 36px); margin: 8px 0 12px; }
.notfound .cta-box-actions { justify-content: center; }

/* Pied de page */

.site-footer { border-top: 1px solid var(--border); padding: 48px 0 28px; font-size: 14px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 32px;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo img { display: block; height: 30px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; line-height: 1.6; }

.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a { text-decoration: none; color: var(--text); }
.site-footer nav a:hover { color: var(--text-h); }

.footer-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-h);
  margin-bottom: 4px;
}

.footer-title a { color: var(--text-h) !important; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
