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

html, body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  /* Pas de zoom ni de défilement latéral : seul le vertical existe (zones qui défilent exprès : touch-action rétabli) */
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--fill);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--chev);
}

::selection {
  background: color-mix(in srgb, var(--tint) 30%, transparent);
}

/* Zones qui défilent exprès à l'horizontale */
.hscroll, #tabs, .chart-scroll { touch-action: pan-x pan-y; }

/* iOS zoome sur un champ de moins de 16 px : on ne laisse jamais ça arriver */
@media (max-width: 900px) {
  input, textarea, select { font-size: 16px !important; }
}
