/* ========================
   VARIABLES & THÈMES
======================== */
:root {
  --max-w: 900px;
  --bg: #ffffff;
  --text: #222222;
  --muted: #555555;
  --link: currentColor;

  /* variantes de section */
  --section-light-bg: #ffffff;
  --section-dark-bg: #111111;
  --section-dark-text: #f5f5f5;
}

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

/* ========================
   RESET LÉGER & BASE
======================== */
*,
*::before,
*::after { box-sizing: border-box; }
html { color-scheme: light dark; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Arial, sans-serif";
  font-size: 16px; line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
p  { margin: 0 0 1em 0; }
a { color: var(--link); text-decoration: underline; }
/* ========================
   LAYOUT SECTIONS
======================== */
.section {
  width: 100%;
  padding-block: clamp(2rem, 6vw, 6rem);
  background: var(--section-light-bg);
  color: inherit;
}
.section--screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.section--centered {
  width: var(--max-w); height: 100vh; margin: 0 auto; display: flex;
  flex-direction: column; justify-content: center; align-items: center;
  background: var(--section-light-bg);
  font-family: "Courier New", Courier, monospace; font-size: 0.875rem; line-height: 1.7; text-align: left;
}
/* ========================
   ACCESSIBILITÉ / MOUVEMENT
======================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* ========================
   RESPONSIVE
======================== */
@media (max-width: 768px) {
  .section--centered {
    width: 100%;
    padding-inline: 1rem;
  }
}
