/* base.css — reset + typo + anti-overflow */

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

html {
  /* PIEGE PROD #11 : pas d'overscroll-behavior:none ici */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-mobile) + 8px);
}

@media (min-width: 768px) {
  html { scroll-padding-top: calc(var(--header-h) + 8px); }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* TEX-4 grille fine */
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: fixed;
  /* Anti-overflow X PROPRE (PIEGE PROD #11) */
  overflow-x: clip;
  max-width: 100vw;
}

/* Reset utiles */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
a { color: var(--text); text-decoration: none; }
/* PIEGE PROD #5 : reset figure */
figure { margin: 0; }
/* PIEGE PROD #8 : hidden force */
[hidden] { display: none !important; }

/* Scrollbar discrete */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 60%, var(--bg-alt)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Placeholder */
::placeholder { color: color-mix(in srgb, var(--text) 50%, transparent); }

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

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

/* Titres de section pattern editorial */
.section-eyebrow {
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  margin-top: 14px;
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.section-lead {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 56ch;
  margin: 18px 0 0;
  line-height: 1.65;
}
