/* CSS Demystified Reset | v0.2 */

/* prevent layout shifts on short pages
   and long-term improvement for 100vw */
html {
  /* scrollbar-gutter: stable; */
}

@layer reset {
  /* Make the line-height more reader friendly */
  body {
    margin: 0;
    line-height: 1.6;
  }

  /* Set tighter line heights on headings & interactive elements */
  h1,
  h2,
  h3,
  h4,
  button,
  input,
  label {
    line-height: 1.1;
    margin: 0;
  }
  p {
    margin: 0;
  }

  /* Make it so replaced elements are responsive */
  img,
  video,
  iframe {
    display: block;
    block-size: auto;
    max-inline-size: 100%;
  }

  /* Inherit fonts for inputs and buttons */
  /* also prevents zoom on iOS if font sizes are small */
  button,
  select,
  textarea,
  input {
    font: inherit;
    font-size: max(16px, 1em);
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
}

/* Supprime l'espacement automatique entre les blocs Gutenberg */
:root :where(.is-layout-flow) > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

:root :where(.is-layout-constrained) > * {
  margin-block-start: 0px;
  margin-block-end: 0;
}

:root :where(.is-layout-flex) {
  /* gap: unset; */
}
