/* Base : remise à zéro légère, typographie Montserrat, focus visible.
   Charte : pas d'ombres, pas de dégradés, coins de 4 px maximum. */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-page);
  color: var(--c-text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
}

#app { display: flex; flex-direction: column; flex: 1; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--space-4); color: var(--c-text); }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.375rem; font-weight: 600; margin-top: var(--space-6); }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 var(--space-4); }

a { color: var(--c-link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; }

code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.95em; }

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

/* Micro-interactions : 150 à 200 ms, supprimées si l’appareil demande moins d’animations. */
a, button, input, select, .app-card, .filter, .btn {
  transition: background-color var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease;
}

::selection { background: var(--c-action); color: var(--c-on-action); }

.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;
}

.skip-link {
  border-radius: var(--radius-control);
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--c-action);
  color: var(--c-on-action);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-2); }

.help { font-size: 0.9375rem; color: var(--c-text-secondary); margin: var(--space-1) 0 var(--space-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
