@charset "UTF-8";
/* Andika */
@font-face {
  font-family: 'andika';
  src: url('/fonts/Andika-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'andika-bold';
  src: url('/fonts/Andika-Bold.woff') format('woff');
  font-weight: bold;
  font-style: bold;
}
/* default theme */

:root {
  --bg: #fff9e1;
  --fg: #171a1f;
  --nav-bg: #fff1d0;
  --nav-fg: #363c46;
  --link-fg: #0084ff;
  --code-bg: #ccc;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: "andika", sans-serif;
  overflow-x: hidden;
}

h1,h2,h3,h4 {
  font-family: "andika-bold";
}

/* Réglages pour le menu de navigation */
nav {
  padding: 20px 0;
  text-align: right;
  font-size: large;
  background-color: var(--nav-bg);
}
nav a {
  padding: 15px;
}
#title {
  float: left;
}

/* main */

main {
  position: relative;
  flex: 1;
}

article {
  box-sizing: border-box;
  padding: 3rem 2rem;
  margin: 0 auto;
  max-width: 75%;
}

article h1 {
  font-size: 2rem;
}

article h2, article h3 {
  margin-top: 2.5rem;
}

pre {
  white-space: pre-wrap;
  padding: 20px;
  background: var(--code-bg);
}

main .page {
  display: flex;
  padding: 20px;
  margin-top: 2rem;
  background-color: var(--nav-bg);
}

main .page .prev {
  margin-right: auto;
}

main .page .next {
  margin-left: auto;
}

a {
  color: inherit;
  transition: color .05s;
  text-decoration-style: dotted;
}

a:hover {
  color: var(--link-fg);
}

code {
  font-family: monospace;
  font-size: 1rem;
}

/* footer */

footer {
  text-align: center;
}

/* dark theme */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111316;
    --fg: white;
    --nav-bg: #171a1f;
    --nav-fg: white;
    --link-fg: #ffc400;
    --code-bg: #242424;
  }
}

/* small screens */

@media screen and (max-width: 1080px) {
  main {
    margin-left: 0;
  }

  article {
    padding: 3rem 1rem;
  }

  nav {
    padding: 0;
  }
  nav a {
    display: block;
    text-align: center;
  }
  #title {
    float: none;
  }
}

/* print */

@media print {
  :root {
    --bg: white;
    --fg: black;
  }

  main {
    margin-left: 0;
  }

  article {
    padding: 0;
    margin: 0;
    max-width: initial;
  }

  nav, footer, main .page {
    display: none;
  }
}
