/* ===== BASE — Reset + Typo + Micro-détails ===== */
*, *::before, *::after { box-sizing: border-box; }

/* PIÈGE PROD #8 & reset browsers */
html, body, div, section, article, aside, header, footer, nav, main, figure, figcaption,
h1, h2, h3, h4, h5, h6, p, ul, ol, li, blockquote, form, fieldset, legend, label,
input, textarea, select, button, a { margin: 0; padding: 0; }

/* PIÈGE PROD #5 — figure margin reset OBLIGATOIRE */
figure { margin: 0; }

html {
  scroll-behavior: smooth;
  /* PIÈGE PROD : scroll-padding pour ancres sous header */
  scroll-padding-top: var(--header-h-mobile);
  font-size: 16px;
}

/* PIÈGE PROD #11 — overflow-x:clip (pas hidden) sur body pour éviter le blocage du scroll */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
  /* TEX-4 — Grille fine discrète */
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* PIÈGE PROD #8 — [hidden] doit être display:none */
[hidden] { display: none !important; }

/* Images responsives */
img, video, iframe, svg { max-width: 100%; display: block; }

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

p { color: var(--text-2); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--accent-2); }

ul, ol { list-style: none; }

/* Conteneur */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections */
section { padding: 80px 0; }

/* ===== MICRO-DÉTAILS (anti-IA, propres) ===== */

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

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

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

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

/* Lettrine subtile sur la section a-propos */
.drop-cap::first-letter {
  font-family: var(--ff-display);
  font-size: 3.2em;
  font-weight: 600;
  color: var(--accent);
  float: left;
  line-height: 0.75;
  margin: 0.06em 0.1em 0 0;
}

/* Sous-titre de section */
.section-eyebrow {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--accent-2);
  flex-shrink: 0;
}

/* Titre de section standard */
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 12px;
}

/* Lead de section */
.section-lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-2);
  max-width: 56ch;
  line-height: 1.7;
}
