/* ============================================================
   base.css — Reset moderne + typographie globale
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--c-sable);
  color: var(--c-encre);
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; padding: 0; }

a {
  color: var(--c-ocean);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-coucher); }

ul, ol { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--c-ocean);
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-4xl); font-weight: var(--fw-bold); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4); }

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

/* —— Helpers ————————————————————————————————————— */
.container {
  max-width: var(--container-base);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  width: 100%;
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  background: var(--c-ocean);
  color: white;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-md);
  z-index: var(--z-modal);
  font-weight: var(--fw-semibold);
}
.skip-link:focus { top: var(--sp-4); }

/* —— Sections ——————————————————————————————————— */
section {
  padding: var(--sp-9) 0;
  scroll-margin-top: 80px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-7);
}
.section-header h2 {
  margin-bottom: var(--sp-3);
}
.section-header p {
  color: var(--c-encre-doux);
  font-size: var(--fs-md);
}

.kicker {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-coucher);
  margin-bottom: var(--sp-3);
}

/* —— Focus visible cohérent ——————————————————— */
:focus-visible {
  outline: 3px solid var(--c-coucher);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
