/* base.css — reset + typo + base anti-IA propres */

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100dvh;
}

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

figure { margin: 0; }

ul, ol { padding: 0; margin: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

p { margin: 0 0 1em; }

/* hidden attribute force display none — anti-bug modale ouverte au chargement */
[hidden] { display: none !important; }

/* Micro-details propres signature */
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 4px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }

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

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

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

@media (min-width: 768px) {
  .container { padding: 0 32px; }
  html { scroll-padding-top: var(--header-h); }
}
