@font-face {
  font-family: "Nord-Light";
  src: url("../fonts/LaNord/LaNord-Light.woff2");
}

@font-face {
  font-family: "Nord-Regular";
  src: url("../fonts/LaNord/LaNord-Regular.woff2");
}

@font-face {
  font-family: "Nord-Bold";
  src: url("../fonts/LaNord/LaNord-Bold.woff2");
}

@font-face {
  font-family: "MaaxMonoReg";
  src: url("../fonts/MaaxMono/Maax\ Mono\ -\ Regular-205TF.woff2"),
    url("../fonts/MaaxMono/Maax\ Mono\ -\ Regular-205TF.woff");
}

@font-face {
  font-family: "MaaxMonoReg-ital";
  src: url("../fonts/MaaxMono/Maax\ Mono\ -\ Italic-205TF.woff2"),
    url("../fonts/MaaxMono/Maax\ Mono\ -\ Italic-205TF.woff");
}

@font-face {
  font-family: "MaaxMonoBold";
  src: url("../fonts/MaaxMono/Maax\ Mono\ -\ Bold-205TF.woff2"),
    url("../fonts/MaaxMono/Maax\ Mono\ -\ Bold-205TF.woff");
}

:root {
  --gutter-width-y: 30px;
  --gutter-width-x: 38px;
  --color-text: #181818;
  --font-size: 12px;
}

html,
body {
  -webkit-scroll-behavior: smooth;
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li {
  font-size: var(--font-size);
  font-family: "Nord-Regular", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--color-text);
  margin: 0;
  padding: 0;
  letter-spacing: 0.04em;
}

h2 {
  font-size: 11px;
  font-family: "MaaxMonoReg", monospace;
  font-weight: 400;
  font-style: normal;
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

.nord {
  font-family: "Nord-Regular", sans-serif;
}

.nord.bold {
  font-family: "Nord-Bold", sans-serif;
}

.maaxMono {
  font-family: "MaaxMonoReg", monospace;
}

.maaxMono.ital {
  font-family: "MaaxMonoReg-ital", monospace;
  font-style: italic;
}

strong,
.maaxMono.bold {
  font-family: "MaaxMonoBold", monospace;
}

h4 {
  font-size: 11px;
}

ul,
li {
  text-decoration: none;
  list-style: none;
}

a,
a:visited,
a:active {
  text-decoration: none;
  color: currentColor;
}

h1,
p,
a {
  margin: 0;
}

/* Start coding here */

body {
  padding: var(--gutter-width-y) var(--gutter-width-x);
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  grid-template-rows: repeat(6, 1fr);
  min-height: 100dvh;
  max-height: 100dvh;
  box-sizing: border-box;
  text-transform: uppercase;
}

header,
footer {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  padding: var(--gutter-width-y) var(--gutter-width-x);
  left: 0;
  z-index: 2;
}

header {
  display: grid;
  top: 0;
  grid-template-columns: repeat(13, 1fr);
}

header a {
  display: block;
}

header > #logo-accueil {
  grid-column: 1 / span 2;
}

header > #logo-accueil > a > img {
  height: var(--font-size);
  padding-top: 3px;
}

header > #info {
  grid-column: 12 / span 1;
  text-align: right;
}

header > nav {
  grid-column: span 1;
  display: flex;
  justify-content: flex-end;
}

footer {
  bottom: 0 !important;
}

footer #separator {
  animation: flash 1s;
  animation-iteration-count: infinite;
}

@keyframes flash {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 100%;
  }
  100% {
    opacity: 0;
  }
}

.lazyload,
.lazyloading {
  filter: blur(10px);
}

.lazyloaded {
  transition: all 300ms;
  filter: blur(0px);
}

header nav {
  text-align: right;
}

header nav p:first-child {
  margin-bottom: 1.3rem;
}

header nav h2:not(:first-child) {
  content-visibility: auto;
  height: 0;
}

header nav h2 a {
  font-size: 11px;
  display: block;
  height: auto;
  font-family: "MaaxMonoReg", monospace;
}

header nav input {
  display: none;
}

nav > h2 {
  display: inline-block;
  height: 0px;
}

.index-project {
  overflow: hidden;
}

.menu-index h2 > a:hover {
  color: #808080;
  transition: all 0.15s ease-in-out;
}

.menu-index {
  display: inline-block;
}

#hamburger {
  cursor: pointer;
}

@media screen and (max-width: 750px) {
  :root {
    --gutter-width-y: 0px;
    --gutter-width-x: 0px;
  }

  body {
    grid-template-columns: repeat(18, 1fr);
    grid-template-rows: repeat(12, 1fr);
  }

  header {
    grid-template-columns: repeat(18, 1fr);
    height: calc(100% / 12);
    align-items: end;
  }
  header > #logo-accueil {
    grid-column: 4 / span 7;
  }

  header > #info {
    grid-column: 13 / span 3;
  }
  header nav {
    display: none;
  }

  footer {
    display: none;
  }
}
