/* ============================================================
   Scooters Électriques — custom.css
   Thème Midnight Surf (dark) · paire Anton + Manrope
   ============================================================ */

:root {
  --ink: #001219;
  --surface: #0a2e38;
  --surface-2: #0c3944;
  --deep: #005f73;
  --teal: #0a9396;
  --teal-light: #94d2bd;
  --sand: #e9d8a6;
  --frost: #e7f7f6;
  --muted: #9db6b8;
  --line: rgba(148, 210, 189, 0.18);
  --radius: 14px;
  --font-display: "Anton", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* les ancres ne passent pas sous le header sticky */
[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--frost);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sand);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Typo ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--frost);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h2 { margin-top: 0.2em; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
p { margin: 0 0 1em; }
a { color: var(--teal-light); text-decoration: none; }
a:hover { color: var(--teal); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--sand);
  margin-bottom: 0.8rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 2px;
  background: var(--teal);
}

.section { padding: 4.5rem 0; }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.text-muted { color: var(--muted); }
.small { font-size: 0.9rem; }
strong { color: var(--frost); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--teal); color: #00151a; }
.btn-primary:hover { background: var(--teal-light); color: var(--ink); box-shadow: 0 8px 24px rgba(10, 147, 150, 0.35); }

.btn-ghost { background: transparent; color: var(--teal-light); border-color: var(--teal-light); }
.btn-ghost:hover { background: rgba(10, 147, 150, 0.15); color: var(--frost); }

.btn-sand { background: var(--sand); color: #1a2b10; }
.btn-sand:hover { background: #f5e8c0; color: #1a2b10; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 18, 25, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand-mark {
  color: var(--teal);
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(10, 147, 150, 0.8));
}
.brand-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--frost);
}
.brand-name span { color: var(--teal); }

.site-nav { display: flex; align-items: center; gap: 0.35rem; }
.site-nav .nav-link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--muted);
}
.site-nav .nav-link:hover { color: var(--frost); background: rgba(10, 147, 150, 0.12); }
.site-nav .nav-link.active,
.site-nav .nav-link.active-parent { color: var(--sand); }
.site-nav .nav-cta {
  color: var(--ink);
  background: var(--teal);
}
.site-nav .nav-cta:hover { color: var(--ink); background: var(--teal-light); }

.nav-item { position: relative; }
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  font-family: var(--font-body);
  cursor: pointer;
}
.caret { border: solid currentColor; border-width: 0 2px 2px 0; padding: 3px; transform: rotate(45deg); transition: transform 0.2s; display: inline-block; }
.nav-item.open .caret { transform: rotate(-135deg); }

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}
.submenu .nav-link { border-radius: 8px; padding: 0.55rem 0.85rem; }
.nav-item.open .submenu,
.nav-item:hover .submenu,
.nav-item:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Burger */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.6rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--frost); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem 4%;
    display: none;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav .nav-link { border-radius: 8px; padding: 0.75rem 1rem; }
  .nav-cta { text-align: center; }
  .nav-item.has-sub { display: flex; flex-direction: column; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--deep);
    border-radius: 0;
    margin-left: 0.5rem;
    display: none;
    padding: 0.2rem 0 0.4rem;
    background: transparent;
  }
  .nav-item.open .submenu { display: flex; }
  .nav-parent { justify-content: space-between; width: 100%; text-align: left; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(0, 18, 25, 0.94) 8%, rgba(0, 18, 25, 0.72) 45%, rgba(0, 18, 25, 0.25) 75%); }
.hero-content { max-width: 640px; padding: 5rem 0; }
.hero-content .lead { color: var(--teal-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(10, 147, 150, 0.12);
  color: var(--teal-light);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
}

/* animation d'entrée en cascade */
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-content > * { opacity: 0; animation: riseIn 0.6s ease forwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.42s; }

/* révélation au scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Bandeau statistiques ---------- */
.stats-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 1.8rem 0; text-align: center; }
.stat-value { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.6rem); color: var(--teal); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cartes éditoriales ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--teal); transform: translateY(-3px); }
.card h3 { font-size: 1.25rem; }
.card-icon { font-size: 1.8rem; line-height: 1; margin-bottom: 0.9rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Tableau comparateur ---------- */
.kat { margin-top: 2.2rem; }
.kat-title {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--sand);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.kat-count { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; color: var(--teal); letter-spacing: 0; text-transform: none; }
.kat-count::before { content: "⏻ "; }

.table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 880px;
}
table.data thead th {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--teal-light);
  text-align: left;
  padding: 0.9rem 1rem;
  background: #07313c;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 68px; /* sous le header sticky (68 px) */
  white-space: nowrap;
}
table.data thead th[data-sort] { cursor: pointer; user-select: none; }
table.data thead th[data-sort]:hover { color: var(--sand); }
table.data thead th .arrow { opacity: 0.55; font-size: 0.7em; }
table.data tbody tr { border-bottom: 1px solid rgba(148, 210, 189, 0.08); transition: background 0.15s; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td { padding: 0.75rem 1rem; vertical-align: top; }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-hide { display: none; }

.model-cell { display: flex; align-items: center; gap: 0.8rem; }
.model-avatar {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
}
.model-name { font-weight: 800; color: var(--frost); line-height: 1.25; }
.model-sub { font-size: 0.8rem; color: var(--muted); }

.pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pill-125 { background: rgba(10, 147, 150, 0.18); color: var(--teal-light); border: 1px solid rgba(148, 210, 189, 0.4); }
.pill-50 { background: rgba(233, 216, 166, 0.14); color: var(--sand); border: 1px solid rgba(233, 216, 166, 0.4); }
.pill-3r { background: rgba(10, 147, 150, 0.1); color: var(--muted); border: 1px solid var(--line); }
.pill-eco { background: rgba(10, 147, 150, 0.14); color: var(--teal-light); }
.pill-pro { background: rgba(233, 216, 166, 0.16); color: var(--sand); }

/* ---------- Filtres ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}
.filters label { font-size: 0.82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  background: var(--surface);
  color: var(--frost);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 2.2rem 0.55rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  cursor: pointer;
}
.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 0.8rem; top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  pointer-events: none;
}
.reset-link { font-size: 0.85rem; color: var(--teal-light); background: none; border: 0; cursor: pointer; text-decoration: underline; }

/* barre de recherche */
.search-wrap { position: relative; flex: 1; min-width: 220px; }
.search-wrap input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--frost);
  padding: 0.55rem 0.9rem 0.55rem 2.3rem;
  font-family: var(--font-body);
}
.search-wrap .search-ico { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--teal); }

/* ---------- Verdict / pros-cons ---------- */
.verdict-band {
  display: flex; gap: 1.4rem; align-items: center;
  background: linear-gradient(120deg, var(--deep), #0a4a55);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin: 2.4rem 0;
  flex-wrap: wrap;
}
.verdict-score {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--sand);
  line-height: 1;
  display: flex; flex-direction: column; align-items: center;
}
.verdict-score small { font-size: 0.85rem; font-family: var(--font-body); color: var(--teal-light); text-transform: uppercase; letter-spacing: 0.08em; }

.procons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 1.6rem 0; }
.pros-list, .cons-list { list-style: none; margin: 0; padding: 0; }
.pros-list li, .cons-list li { padding-left: 1.8rem; position: relative; margin-bottom: 0.6rem; }
.pros-list li::before { content: "+"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--teal); }
.cons-list li::before { content: "−"; position: absolute; left: 0; top: 0; font-weight: 800; color: #e0755f; }
@media (max-width: 700px) { .procons { grid-template-columns: 1fr; } }

/* ---------- Spécifications liste ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.4rem 0; }
.spec-item { background: var(--surface); padding: 0.8rem 1.1rem; display: flex; justify-content: space-between; gap: 1rem; }
.spec-item dt { color: var(--muted); font-size: 0.85rem; }
.spec-item dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 640px) { .spec-grid { grid-template-columns: 1fr; } }

/* ---------- Alternance / bandes ---------- */
.alt { background: #021820; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }

.notice {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: rgba(233, 216, 166, 0.08);
  border: 1px solid rgba(233, 216, 166, 0.35);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  color: var(--sand);
  margin: 1.6rem 0;
}
.notice-teal { background: rgba(10, 147, 150, 0.1); border-color: rgba(148, 210, 189, 0.4); color: var(--teal-light); }

/* ---------- Simulateur ---------- */
.sim-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
.sim-form { display: grid; gap: 1.3rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--teal-light); margin-bottom: 0.4rem; }
.field select, .field input[type="number"], .field input[type="range"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--frost);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
}
.field input[type="range"] { accent-color: var(--teal); padding: 0; }
.field-range { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }

.sim-output { position: sticky; top: 90px; }
.res-card { background: linear-gradient(140deg, var(--surface), #07323c); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.res-big { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); color: var(--sand); line-height: 1.1; }
.res-big span { font-size: 1.1rem; letter-spacing: 0.02em; color: var(--teal-light); font-family: var(--font-body); font-weight: 700; }
.res-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px dashed rgba(148, 210, 189, 0.2); font-size: 0.95rem; }
.res-row:last-child { border-bottom: 0; }
.res-row b { color: var(--frost); }
.bar-track { height: 10px; background: #052630; border-radius: 999px; overflow: hidden; margin-top: 0.5rem; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--teal-light)); border-radius: 999px; transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.bar-fill.sand { background: linear-gradient(90deg, var(--deep), var(--sand)); }
.mini-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.2rem; }

.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-weight: 800;
  font-size: 0.92rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--frost); border-color: var(--teal); }
.tab.active { background: var(--teal); color: #00151a; border-color: var(--teal); }

/* ---------- Formulaire contact ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; max-width: 640px; }
.form-card .field { margin-bottom: 1.2rem; }
.form-card textarea { width: 100%; background: #05252d; border: 1px solid var(--line); border-radius: 10px; color: var(--frost); padding: 0.7rem 0.9rem; font-family: var(--font-body); min-height: 130px; }
.form-card input { width: 100%; background: #05252d; border: 1px solid var(--line); border-radius: 10px; color: var(--frost); padding: 0.65rem 0.9rem; font-family: var(--font-body); }
.form-ok {
  display: none;
  margin-top: 1rem;
  border: 1px solid rgba(148, 210, 189, 0.5);
  background: rgba(10, 147, 150, 0.15);
  color: var(--teal-light);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer { background: #00151c; border-top: 1px solid var(--line); padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.4rem; }
.footer-brand { font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; color: var(--frost); }
.footer-brand span { color: var(--teal); }
.footer-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--sand); font-weight: 800; margin: 0 0 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--muted); font-size: 0.93rem; }
.site-footer a:hover { color: var(--teal-light); }
.footer-about p { color: var(--muted); font-size: 0.93rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.2rem 0 1.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; color: var(--muted); font-size: 0.8rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Breadcrumb ---------- */
.crumbs { padding: 1.1rem 0 0; font-size: 0.85rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 0.35rem; color: var(--deep); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--teal-light); }

/* ---------- Media éditorial ---------- */
.figure { margin: 1.8rem 0; }
.figure img { border-radius: var(--radius); }
.figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; font-style: italic; }

/* ---------- Article long ---------- */
.article { max-width: 760px; }
.article h2 { margin-top: 2.2rem; }
.article h3 { margin-top: 1.8rem; }
.article ul, .article ol { padding-left: 1.2rem; }
.article li { margin-bottom: 0.5rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.6rem; margin: 1.6rem 0; }
.toc strong { display: block; margin-bottom: 0.5rem; color: var(--sand); }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: 0.3rem; font-size: 0.95rem; }

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }

::selection { background: var(--teal); color: #00151a; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .hero-content > *, .reveal { opacity: 1 !important; transform: none !important; }
}
