/* ==========================================================================
   RESET MINIMAL & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ==========================================================================
   CLASSES UTILITAIRES DRY
   ========================================================================== */
/* Système de grille fluide demandé */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 92%;
}
@media (min-width: 768px) {
  .container {
    max-width: 92%;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 94%;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 94%;
  }
}
@media (min-width: 1440px) {
  .container {
    max-width: 1300px;
  }
}
@media (min-width: 1680px) {
  .container {
    max-width: 1300px;
  }
}

.container--wide {
  width: 100%;
  margin: 0 auto;
  max-width: var(--container-wide-max);
}

.flex-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-center {
  text-align: center;
}
.text-white {
  color: var(--color-white);
}
.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-reset {
  color: inherit;
  text-decoration: none;
}
.border-bottom-white {
  border-bottom: 1px solid var(--color-white);
}

/* Typographie utilitaire */
.heading-hero {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  letter-spacing: -0.01em;
}

.text-lead {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.text-tagline {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--fs-tagline);
  line-height: var(--lh-tagline);
}
.site-footer__tagline.text-tagline {
  width: 70%;
}

.decor-stars {
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

#section-challenges {
  scroll-margin-top: 1.5rem;
}