/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
figure, blockquote, dl, dd { margin: 0; }
img, picture, video, iframe { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-mobile) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 768px) {
  html { scroll-padding-top: calc(var(--header-h) + 12px); }
}

html, body {
  max-width: 100vw;
}
body {
  overflow-x: clip;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* TEX-2 grain fin */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

/* typo */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.005em;
}
p { color: var(--text-2); }
strong { color: var(--text); font-weight: 600; }

/* micro-details propres */
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::placeholder { color: var(--text-mute); opacity: 0.7; }

/* container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .container { padding-left: 32px; padding-right: 32px; }
}

/* section spacing */
section {
  padding: 48px 0;
}
@media (min-width: 768px) {
  section { padding: 80px 0; }
}

/* eyebrow */
.eyebrow {
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  line-height: 1.1;
  color: var(--text);
  margin: 14px 0 18px;
  max-width: 22ch;
}
.section-lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-2);
  max-width: 56ch;
  margin-bottom: 36px;
}
.section-head { margin-bottom: 36px; }

em { font-style: italic; color: var(--accent); }
