@font-face {
  font-family: "FKGrotesk";
  src: url("../fonts/FKgrotesk/FKGroteskTrial-Regular.otf");
  font-weight: normal;
  font-style: normal;
}

:root {
  --gutter-width: 1.2em;
  --margin-width: 3em;
  --dark-color: #222222;
  --light-color: #f0f0f0;
  --inactive-color: #bbb8b8;
  --text-size: 1rem;
  --clamped-padding: 8em;
}

html,
body {
  -webkit-scroll-behavior: smooth;
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
  background-color: var(--light-color);
  font-size: 15px;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

main {
  padding: 0 2.3em;
}

html {
  padding: env(safe-area-inset);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li {
  font-family: "FKGrotesk", sans-serif;
  color: var(--dark-color);
  margin: 0;
  padding: 0;
  font-size: var(--text-size);
  font-weight: normal;
}

h1,
h3 {
  text-transform: uppercase;
}

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

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

/* HEADER */

header {
  width: 100%;
  padding: 0;
  background: var(--light-color);
  position: sticky;
  top: 0;
  left: 0;
  height: 2.3em;
  display: grid;
  justify-content: space-between;
  grid-template-columns: 4.6em 1fr 4.6em 1fr 4.6em;
}

#logo {
  display: flex;
  align-items: center;
}

header nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  column-gap: var(--clamped-padding);
}

.repere {
  width: 1.8em;
  height: 1.8em;
  aspect-ratio: 1/1;
  position: relative;
}

.repere:after,
.repere:before {
  content: "___";
  display: inline-block;
  position: absolute;
  display: flex;
  height: 100%;
  aspect-ratio: 1 / 1;
  transform-origin: center center;
  align-items: flex-end;
}

.repere:after {
  right: 0;
  top: 0;
  transform: rotate(-90deg);
  align-items: flex-end;
  justify-content: flex-end;
}

.repere.top-left {
  margin: 0.5em 0 0 0.5em;
}

.repere.top-right {
  -webkit-transform: scale(-1, 1);
  -moz-transform: scale(-1, 1);
  -o-transform: scale(-1, 1);
  transform: scale(-1, 1);
  margin: 0.5em 0.5em 0 auto;
}

.repere.top-center {
  margin: 0.5em auto 0 auto;
}

.repere.bottom-center {
  margin: 0 auto;
  -webkit-transform: scale(1, -1);
  -moz-transform: scale(1, -1);
  -o-transform: scale(1, -1);
  transform: scale(1, -1);
}

.repere.top-center:after,
.repere.bottom-center:after {
  align-items: baseline;
  transform: translateX(-2.5px) rotate(-90deg);
}

.repere.top-center:before,
.repere.bottom-center:before {
  display: none;
}

.repere.bottom-left {
  margin: 0 0 0 0.5em;
  -webkit-transform: scale(1, -1);
  -moz-transform: scale(1, -1);
  -o-transform: scale(1, -1);
  transform: scale(1, -1);
}

.repere.bottom-right {
  -webkit-transform: scale(-1, -1);
  -moz-transform: scale(-1, -1);
  -o-transform: scale(-1, -1);
  transform: scale(-1, -1);
  margin: 0 0.5em 0 auto;
}

/* LAZYLOADING IMAGES */
.lazyload,
.lazyloading {
  opacity: 0;
}

.lazyloaded {
  opacity: 1;
  transition: opacity 300ms;
}

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

/* FOOTER */

footer {
  /* position: absolute; */
  display: grid;
  grid-template-columns: 4.6em 1fr 4.6em 1fr 4.6em;
  top: calc(100dvh - 2.3em);
  left: 0;
  right: 0;
  background: var(--light-color);
  z-index: 999;
}

.footer-left,
.footer-right {
  grid-column: span 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 2.3em;
}

.footer-right {
  flex-direction: row-reverse;
}

#colors-container {
  display: flex;
  column-gap: 5px;
}

.color {
  height: 1.2rem;
  width: 1.2rem;
}

.footer-infos {
  grid-column: span 5;
  column-count: 4;
  padding: 0 var(--margin-width) var(--gutter-width) var(--margin-width);
  column-gap: var(--gutter-width);
}

@media screen and (max-width: 1000px) {
  :root {
    /* --gutter-width: 1.2em;

    --dark-color: #222222;
    --light-color: #f0f0f0;
    --inactive-color: #bbb8b8; */
    --margin-width: 2em;
    --text-size: 0.8rem;
    /* --clamped-padding: 8em; */
  }

  header {
    grid-template-columns: 2em 1fr 1.8em 1fr 2em;
    height: 2em;
  }

  .repere.top-left {
    margin: 0.25em 0 0 0.25em;
  }

  .repere.top-center {
    margin: 0.25em auto 0 auto;
  }

  .repere.top-right {
    margin: 0.25em 0.25em 0 auto;
  }

  #logo {
    display: flex;
    align-items: center;
  }

  header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1em;
  }

  footer {
    grid-template-columns: 2em 1fr 1.8em 1fr 2em;
    align-items: end;
  }

  .footer-left,
  .footer-right {
    height: 2em;
  }

  .footer-infos {
    column-count: 1;
  }

  .repere.bottom-left {
    margin: 0 0 0.25em 0.25em;
  }

  .repere.bottom-center {
    margin: 0 auto 0.25em auto;
  }

  .repere.bottom-right {
    margin: 0 0.25em 0.25em 0;
  }

  main {
    padding: 0 2em;
  }
}

@media screen and (max-width: 650px) {
}
