* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

main {
  /* Padding pour éviter que le contenu soit caché par le footer fixe (desktop uniquement) */
  padding-bottom: 5rem;
}

/* En mobile : pas de padding-bottom (footer non fixe) */
@media (max-width: 768px) {
  main {
    padding-bottom: 0;
  }
}

/* Zone à risque de wrap du footer : augmenter le padding */
@media (min-width: 769px) and (max-width: 1200px) {
  main {
    padding-bottom: 7rem; /* Plus d'espace car le footer peut wrapper */
  }
}

/* Large desktop : le footer ne wrappe pas, padding normal */
@media (min-width: 1201px) {
  main {
    padding-bottom: 5rem;
  }
}

/* Typography - Improved hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
}

p {
  margin: 0;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 28px);
}