/* ============================================
   BASE — Reset & typographie
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl);  }
h4 { font-size: var(--font-size-lg);  }

@media (max-width: 640px) {
  h1 { font-size: var(--font-size-2xl); }
  h2 { font-size: var(--font-size-xl);  }
}

/* Liens */
a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Paragraphes et listes */
p {
  margin-bottom: var(--space-4);
}
p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: var(--space-6);
}
li {
  margin-bottom: var(--space-1);
}

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

/* Boutons reset */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibilité */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Utilitaires */
.text-center { text-align: center; }
.text-light  { color: var(--color-text-light); }
.text-sm     { font-size: var(--font-size-sm); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold   { font-weight: var(--font-weight-bold); }
