/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-mobile);
}
@media (min-width: 768px) { html { scroll-padding-top: var(--header-h); } }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img, video, iframe, svg { max-width: 100%; display: block; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  line-height: 1.12;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5em;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

/* Sélection de texte */
::selection { background: var(--accent); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 4px; }

/* Focus visible */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Placeholder */
::placeholder { color: var(--text-mute); opacity: 1; }

.container { width: var(--container); margin-inline: auto; }

section {
  padding: clamp(48px, 7vw, 96px) 24px;
}
@media (min-width: 768px) {
  section { padding-inline: 0; }
}

.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-lead {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: var(--text);
  opacity: .78;
  max-width: 58ch;
  margin-bottom: 40px;
}

.text-center { text-align: center; }
.text-center .section-lead { margin-inline: auto; }
