/* Kit d'interface BV : socle commun à toutes les pages. */

*, *::before, *::after { box-sizing: border-box; border-radius: var(--radius); }

html {
  font: var(--text-md)/1.6 var(--font-ui);
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--tint), transparent 70%),
    linear-gradient(var(--grid) var(--hairline), transparent var(--hairline)) 0 0 / var(--grid-step) var(--grid-step),
    linear-gradient(90deg, var(--grid) var(--hairline), transparent var(--hairline)) 0 0 / var(--grid-step) var(--grid-step),
    var(--bg);
  background-attachment: fixed;
}

h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: var(--text-2xl); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
h2 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -.005em; line-height: 1.2; }
h3 { font-size: var(--text-sm); font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--space-3); }

a { color: var(--accent); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--text); }
code, pre, kbd, samp { font-family: var(--font-mono); }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--highlight); color: var(--text); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 4px var(--tint); }

* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-track { background: transparent; }

[hidden] { display: none !important; }

.muted { color: var(--text-faint); font-size: var(--text-sm); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
