/* ✏️ RESET ET STYLES DE BASE */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

/* TYPOGRAPHIE */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-display);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

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

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

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

a:hover {
  color: var(--color-terracotta);
}

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

/* LISTES */
ul, ol {
  list-style: none;
}

/* FORMULAIRES */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 16px;
  border: none;
  outline: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ACCESSIBILITÉ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* FOCUS VISIBLE */
*:focus-visible {
  outline: 3px solid var(--color-sage);
  outline-offset: 2px;
}

/* SÉLECTION */
::selection {
  background-color: var(--color-sage);
  color: var(--color-white);
}
