/* Base : remise à zéro légère, typographie, focus, réglages « natif mobile ». */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  background: var(--c-page);
  color: var(--c-page-ink);
  font-family: var(--font-ui);
  font-size: 100%;
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
}
body { margin: 0; min-height: 100dvh; background: var(--c-page); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-tight); margin: 0; letter-spacing: -.01em; font-weight: 650; }
p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea, select { font-size: max(16px, 1rem); }   /* pas de zoom iOS à la saisie */
button, a, [role="button"], summary { touch-action: manipulation; }
button, [role="button"] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: pointer; }
button:disabled { cursor: not-allowed; }

/* Focus toujours visible : double anneau (clair + foncé) lisible sur tous les fonds */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--c-focus-halo);
  border-radius: inherit;
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* Étiquette « LCD » : intertitre en casse normale, ≥ 14 px (la police mono reste réservée aux chiffres) */
.lcd { font-family: var(--font-ui); font-size: var(--fs-s); font-weight: 650; letter-spacing: .01em; }

/* Survols : uniquement quand la souris existe (évite le survol collant au tactile) */
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) *, :root:not([data-motion="full"]) *::before, :root:not([data-motion="full"]) *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important;
  }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after {
  animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important;
}
