/* BASE — reset + typographie + micro-détails */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip; /* clip horizontal sans créer de scroll-container */
}

/* [hidden] forcé display:none (PIÈGE PROD #8) */
[hidden] { display: none !important; }

/* Reset figures (PIÈGE PROD #5) */
figure { margin: 0; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary); }

/* Selection aux couleurs de la marque */
::selection { background: var(--accent); color: #fff; }

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

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

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

/* Select min-width fix (PIÈGE PROD #10) */
select { min-width: 0; width: 100%; }
