/* Base / reset / typo */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--mg-blanc);
  color: var(--mg-noir);
  font-family: var(--mg-font-corps);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--mg-bleu);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms ease-out;
}
a:hover { color: var(--mg-bleu-fonce); }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--mg-font-corps);
  color: var(--mg-bleu);
  line-height: 1.15;
  margin: 0 0 1.5rem;
  font-weight: 600;
}

p { margin: 0 0 1rem; }
strong, b { font-weight: 600; color: var(--mg-bleu); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--mg-rouge);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--mg-bleu);
  color: var(--mg-blanc);
}
