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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-mobile) + 8px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}
@media (min-width: 768px) {
  html { scroll-padding-top: calc(var(--header-h) + 8px); }
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe, svg { max-width: 100%; }
img { display: block; height: auto; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; 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: 500;
  line-height: 1.15;
  color: var(--text);
}

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

input, textarea, select { font: inherit; color: inherit; }

/* Selection brandee */
::selection { background: var(--accent); color: #fff; }
::-moz-selection { background: var(--accent); color: #fff; }

/* Scrollbar fine */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: rgba(30, 95, 107, 0.45); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

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