/* style.css - feuille externe : requis par la CSP (style-src 'self', pas d'inline) */

:root {
  color-scheme: light dark;
  --fg: #1a1a1a;
  --bg: #ffffff;
  --muted: #595959;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f0f0f0;
    --bg: #121212;
    --muted: #a8a8a8;
  }
}

body, h1, p {
  margin: 0;
}

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

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;   /* repli navigateurs anciens */
  min-height: 100svh;  /* gère la barre d'adresse mobile dynamique */
  text-align: center;
  padding: 1rem;
}

main {
  margin: auto;
  max-width: 40rem;
}

h1 {
  margin-bottom: .5rem;
}

/* Flux normal (pas de position:fixed) : ne recouvre jamais le contenu */
footer {
  font-size: .8rem;
  color: var(--muted);
  padding: .5rem;
}
