/* Base : polices, variables du thème d'origine (e-monsite), reset minimal et typographie. */

@font-face {
  font-family: "Roboto";
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/roboto.woff2") format("woff2");
}

@font-face {
  font-family: "Droid Serif";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/droid-serif.woff2") format("woff2");
}

@font-face {
  font-family: "Courgette";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/courgette.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  --color-bg: #181714;
  --color-bar: #24241f;
  --color-bar-border: #41413d;
  --color-border: #25231f;
  --color-text: #a4a79d;
  --color-heading: #ffffff;
  --color-link: #e7d244;
  --color-title: #ffa07a;
  --color-success: #8bc34a;
  --color-error: #f44336;

  --font-ui: "Roboto", sans-serif;
  --font-heading: "Droid Serif", Georgia, serif;
  --font-brand: "Courgette", cursive;
  --font-content: Verdana, Geneva, sans-serif;

  --header-height: 80px;
  --container-width: 1170px;
}

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

html {
  font-size: 14px;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ui);
  line-height: 1.43;
}

h1 {
  margin: 20px 0;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 2.143rem;
  font-weight: 400;
  line-height: 1.25;
}

p,
ul,
ol {
  margin: 0 0 20px;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-heading);
}

:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

sub,
sup {
  line-height: 0;
}

@media (min-width: 992px) {
  h1 {
    font-size: 2.571rem;
  }
}
