:root {
  --bg: #0f111a;
  --surface: #1a1d2e;
  --border: #2a2e42;
  --text: #d4d4dc;
  --text-muted: #8888a0;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f59e0b;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --radius: 10px;
}

body {
  font-family: 'Segoe UI', Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}

/* ── Navigation ── */
.site-nav {
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.site-nav a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  border: none;
}
.site-nav a:hover {
  color: var(--cyan);
}

/* ── Titres ── */
h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
}

h2 {
  color: var(--accent-light);
  font-size: 1.5rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.8rem;
  margin-top: 2.5rem;
}

h3 {
  color: var(--cyan);
  font-size: 1.2rem;
  margin-top: 2rem;
}

h4 {
  color: var(--blue);
  font-size: 1.05rem;
}

/* ── Séparateurs ── */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 2.5rem 0;
}

/* ── Liens ── */
a {
  color: var(--accent-light);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-light);
  transition: color 0.2s, border-color 0.2s;
}
a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ── Code inline ── */
code:not(pre code) {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--pink);
  padding: 0.15em 0.45em;
  border-radius: 5px;
  font-size: 0.9em;
  font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
}

/* ── Blocs de code ── */
pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.88em;
  line-height: 1.7;
  position: relative;
}
pre code {
  color: var(--green);
  font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
}

/* ── Blockquotes / Callouts ── */
blockquote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  color: var(--text);
}
.callout-title {
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 1.05em;
}
.callout-note       { border-left-color: var(--blue); }
.callout-note .callout-title { color: var(--blue); }
.callout-tip        { border-left-color: var(--green); }
.callout-tip .callout-title  { color: var(--green); }
.callout-warning    { border-left-color: var(--orange); }
.callout-warning .callout-title { color: var(--orange); }
.callout-important  { border-left-color: var(--red); }
.callout-important .callout-title { color: var(--red); }
.callout-question   { border-left-color: var(--cyan); }
.callout-question .callout-title { color: var(--cyan); }
.callout-caution    { border-left-color: var(--pink); }
.callout-caution .callout-title  { color: var(--pink); }

/* ── Tableaux ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95em;
}
thead {
  background: var(--accent);
  color: #fff;
}
th, td {
  padding: 0.65rem 1rem;
  text-align: left;
}
th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82em;
  letter-spacing: 0.05em;
}
tbody tr {
  border-bottom: 1px solid var(--border);
}
tbody tr:nth-child(even) {
  background: var(--surface);
}
tbody tr:hover {
  background: #252840;
}

/* ── Listes ── */
ul, ol {
  padding-left: 1.5rem;
}
li {
  margin-bottom: 0.35rem;
}
li::marker {
  color: var(--accent-light);
}

/* ── Images & Vidéos ── */
img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
video {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin: 1rem 0;
}

/* ── Strong / Bold ── */
strong {
  color: #ebebf0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* ── Index — Lab cards ── */
.lab-list {
  list-style: none;
  padding: 0;
}
.lab-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.lab-list li:hover {
  border-left-color: var(--cyan);
}
.lab-list a {
  font-weight: 700;
  font-size: 1.1em;
  border: none;
}
.lab-list small {
  color: var(--text-muted);
  display: block;
  margin-top: 0.3rem;
}
