/* RESET + BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-mobile) + 8px); }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
figure { margin: 0; }
img, picture, video, iframe, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

html, body { max-width: 100vw; overflow-x: hidden; }

body{
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  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) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
}

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { font-size: 1rem; }

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

/* Micro-details propres anti-IA */
::selection { background: var(--accent); color: #fff; }
::-moz-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) 70%, transparent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::placeholder { color: var(--text-mute); font-family: var(--ff-ui); }

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

/* Containers */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

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

/* Section eyebrow (small label uppercase) */
.eyebrow{
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* Lien standard */
a.text-link {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color var(--t-fast);
}
a.text-link:hover { border-bottom-color: var(--accent); }
