/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--paper);
}

body {
  min-height: 100dvh;
  font-family: var(--font-text);
  font-size: var(--fs-md);
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-appearance: none; appearance: none; }
img, svg { display: block; max-width: 100%; }

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

/* Texte réservé aux lecteurs d'écran */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Conteneur d'écran */
.screen {
  min-height: 100dvh;
  padding: calc(var(--safe-top) + var(--s6)) var(--s5) calc(var(--safe-bottom) + var(--s8));
  max-width: 560px;
  margin: 0 auto;
  animation: screen-in var(--t-slow) var(--ease-out) backwards;
}
@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
