/* TunerHub — feuille de style du site public.
   Conforme à BRAND.md : fond #0E0E11, or #D4AF37 réservé aux signaux,
   aucune ombre portée, aucun dégradé, trois graisses maximum.
   Aucune ressource externe : pas de Google Fonts, pas de CDN, pas de tracker. */

:root {
  --page: #0E0E11;
  --card: #17171C;
  --border: #22222A;
  --border-strong: #33333C;
  --text: #F2F2F5;
  --text-secondary: #9A9AA4;
  --text-muted: #82828A;
  --accent: #D4AF37;
  --accent-soft: #E7D391;
  --tint-soft: #262116;
  --tint-border: #51451E;
  --measure: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- En-tête ---- */

header.site {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand svg { display: block; width: 26px; height: 26px; }

nav.site a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .95rem;
  margin-left: 1.25rem;
}

nav.site a:hover, nav.site a:focus-visible { color: var(--text); }

/* ---- Contenu ---- */

main { padding: 3.5rem 0 4rem; }

.hero { text-align: center; padding-bottom: 1rem; }

.hero svg.mark { width: 84px; height: 84px; display: block; margin: 0 auto 1.5rem; }

h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 .75rem;
}

.lede {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 34rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 3rem 0 .85rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

h2:first-of-type { border-top: 0; padding-top: 0; }

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 1.85rem 0 .4rem;
}

p { margin: 0 0 1rem; }

a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--accent); }

ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .5rem; }
li::marker { color: var(--text-muted); }

strong { font-weight: 600; }

.muted { color: var(--text-muted); font-size: .92rem; }

/* ---- Blocs ---- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin: 1.5rem 0;
}

.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.notice {
  background: var(--tint-soft);
  border: 1px solid var(--tint-border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin: 1.5rem 0;
}

.notice p:last-child { margin-bottom: 0; }

.badge {
  display: inline-block;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: .25rem .8rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 1.75rem;
}

dl { margin: 0; }
dt { font-weight: 600; margin-top: 1.5rem; }
dd { margin: .25rem 0 0; color: var(--text-secondary); }

/* ---- Pied de page ---- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  color: var(--text-muted);
  font-size: .9rem;
}

footer.site a { color: var(--text-secondary); text-decoration: none; }
footer.site a:hover, footer.site a:focus-visible { color: var(--text); }
footer.site .links a { margin-right: 1.25rem; }
footer.site .links { margin-bottom: .75rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

@media (max-width: 34rem) {
  body { font-size: 16px; }
  main { padding: 2.5rem 0 3rem; }
  nav.site a { margin-left: 0; margin-right: 1.1rem; }
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .1em .4em;
}

.lede-left { margin: 0 0 2rem; max-width: 34rem; }
.tight { margin-bottom: .35rem; }
