/* ===========================================================
   BASE - Reset et typographie globale
   =========================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
  overflow-x: hidden;
}

/* === Titres === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  color: var(--text-primary);
  letter-spacing: var(--letter-tight);
}

h1 { font-size: var(--fs-3xl); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-2xl); margin-bottom: var(--space-5); }
h3 { font-size: var(--fs-xl); margin-bottom: var(--space-4); }
h4 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  margin-bottom: var(--space-3);
}

/* === Liens === */
a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* === Paragraphes === */
p {
  margin-bottom: var(--space-4);
  line-height: var(--lh-relaxed);
}

p:last-child { margin-bottom: 0; }

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

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

/* === Boutons (reset) === */
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* === Formulaires (reset) === */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: var(--color-terracotta);
  color: var(--color-white);
}

/* Focus visible (accessibilité) */
:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* === Conteneurs === */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-xl { max-width: var(--container-xl); }

/* === Sections === */
.section { padding: var(--space-7) 0; }
.section-sm { padding: var(--space-7) 0; }

/* === Helpers === */
.text-center { text-align: center; }
.text-accent { color: var(--text-accent); }
.text-muted  { color: var(--text-muted); }
.serif { font-family: var(--font-display); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--letter-widest);
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: var(--space-3);
  display: inline-block;
}

.lead {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--color-terracotta);
  margin: var(--space-4) auto;
  border: none;
}

/* === Accessibilité - reduce motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
