/* reset + base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-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) + 12px); } }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  min-height: 100dvh;
}

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

/* reset figure (PIEGE PROD #5) */
figure { margin: 0; }
blockquote { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
a.link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
a.link:hover { text-decoration-color: var(--accent); }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-weight: 500; }

small { font-size: .82rem; }

ul, ol { margin: 0; padding: 0; }

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

/* select min-width safety (PIEGE PROD #10) */
select, input, textarea {
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;
}

/* prevent body lock when modal opens */
body.is-locked { overflow: hidden; }
