/* ============================================
   BASE — styles globaux
   ============================================ */

html {
  scroll-behavior: smooth;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-bg);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.6;
  color: var(--color-text);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.2;
  color: var(--color-text);
}

h1,
h2 {
  font-size: var(--font-size-title);
}

h3 {
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-medium);
}

p,
li,
label,
input,
textarea {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 0.125rem solid var(--color-text);
  outline-offset: var(--space-xs);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
