/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-mobile);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  position: relative;
}

/* Grain fin TEX-2 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.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; }

/* Reset figure (PIEGE PROD #5) */
figure { margin: 0; }

/* Hidden universel (PIEGE PROD #8) */
[hidden] { display: none !important; }

img, picture, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

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

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

/* Typo display */
@media (min-width: 768px) {
  html { scroll-padding-top: var(--header-h); }
}

/* Selection */
::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);
  border-radius: 8px;
}

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

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

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

/* Section */
section { padding: var(--section-py-mobile) 0; }
@media (min-width: 768px) {
  section { padding: var(--section-py-desk) 0; }
}

.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--primary);
  color: #fff;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark p,
.section--dark li,
.section--dark a,
.section--dark span:not(.dot) {
  color: #fff;
}
.section--dark p { color: rgba(255, 255, 255, 0.86); }

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

.section-head { margin-bottom: clamp(28px, 5vw, 48px); }
.section-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  line-height: 1.1;
  max-width: 22ch;
}
.section-head .sub {
  margin-top: 12px;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  max-width: 56ch;
  color: var(--text-2);
}
.section--dark .section-head .sub { color: rgba(255, 255, 255, 0.78); }
