/* ============================================================
   LinuxLab — Base : reset, body, typographie, layout
   ============================================================ */

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

html,
body {
  margin: 0;
  padding: 0;
}

/* --- Body --- */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--page-bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.3s ease,
    color 0.2s ease;
}

/* --- Typographie --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

svg {
  display: block;
}

/* Classe utilitaire police mono */
.mono {
  font-family: var(--font-mono);
}

/* --- Layout --- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 22px 60px;
}

/* --- Animation d'entrée des écrans --- */
.screen {
  display: none;
  animation: fade 0.35s ease;
}

.screen.active {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Accessibilité : désactivation des animations --- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
