@font-face {
  font-family: "F-Grotesk";
  src: url("../src/fonts/F-Grotesk-Book.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "F-Grotesk";
  src: url("../src/fonts/F-Grotesk-Book-Italic.otf") format("opentype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background-color: #fff;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  font-family: F Grotesk, sans-serif;
  font-size: 1.5vw;
  line-height: 1.6vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: antialiased;
  color: #000;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewport='0 0 20 20' style='fill:black'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E") 10 10, pointer;
}

h1 {
  position: fixed;
  width: 100vh;
  top: 100vh;
  left: 1vw;
  padding: 0 0.38em;
  transform-origin: top left;
  transform: rotate(-90deg);
  z-index: 5;
}
h1 a {
  display: block;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr minmax(auto, 12vw);
  grid-template-rows: auto;
  gap: 1em;
  font-size: 1.5vw;
  font-weight: normal;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewport='0 0 8 8' style='fill:black'%3E%3Ccircle cx='4' cy='4' r='4'/%3E%3C/svg%3E") 4 4, pointer;
}
h1 a span:nth-child(2),
h1 a span:nth-child(3) {
  justify-self: end;
}
h1 img {
  display: none;
}

canvas {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: -1;
}

#menu-cross {
  display: none;
  z-index: 10;
}

#menu-infos {
  position: fixed;
  left: 30vw;
  bottom: 0.8vw;
  z-index: 5;
}
#menu-infos.hidden li:not(:last-of-type) {
  display: none;
}
#menu-infos ul {
  display: flex;
  gap: 2vw;
}
#menu-infos li {
  list-style: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewport='0 0 8 8' style='fill:black'%3E%3Ccircle cx='4' cy='4' r='4'/%3E%3C/svg%3E") 4 4, pointer;
}
#menu-infos a {
  color: inherit;
  cursor: inherit;
  text-decoration: none;
}

li#contact {
  position: relative;
}
li#contact span {
  display: block;
}
li#contact address {
  display: none;
  position: absolute;
  left: 0;
  bottom: 0;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  padding: 15px;
  transform: translate(-15px, 15px);
  font-style: normal;
}
li#contact address a:hover {
  text-decoration: underline;
}
li#contact.active span {
  display: none;
}
li#contact.active address {
  display: block;
}

#stockage,
#stockage.hidden {
  display: none;
}

#etiquette {
  position: absolute;
  display: none;
  z-index: 3;
  max-width: 9vw;
  height: 50px;
  font-size: 1.2vw;
  line-height: 1.3vw;
}

main {
  -webkit-tap-highlight-color: transparent;
}

main.fond {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1;
}
main.fond.hidden {
  display: none;
}

.batiment {
  position: absolute;
  width: 400px;
  height: 400px;
  z-index: 2;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}
.batiment[data-grande=petite] {
  padding: 50px;
}
.batiment img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.batiment figcaption {
  display: none;
}

area {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewport='0 0 8 8' style='fill:black'%3E%3Ccircle cx='4' cy='4' r='4'/%3E%3C/svg%3E") 4 4, pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
area:focus {
  outline: none;
}

@media screen and (max-width: 600px) and (orientation: portrait) {
  body {
    overflow: hidden;
    width: 100vw;
    max-height: 100%;
    position: relative;
    padding: 0;
    font-size: 17px;
    line-height: 19px;
  }
  h1 {
    position: fixed;
    top: 0;
    left: 10px;
    width: calc(100vw - 20px);
    height: 20vw;
    transform: rotate(0deg);
    padding: 10px 0;
    border-bottom: 1px solid black;
  }
  h1 a {
    display: block;
    width: 60vw;
  }
  h1 a span {
    display: none;
  }
  h1 img {
    display: block;
    width: auto;
    height: calc(20vw - 20px);
  }
  #menu-cross {
    display: none;
  }
  #menu-cross.active {
    display: block;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 5vw;
  }
  #menu-infos {
    position: fixed;
    top: 10px;
    left: initial;
    right: 10px;
    bottom: initial;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    font-size: 15px;
    line-height: 16px;
  }
  #menu-infos ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
  }
  li#contact span {
    display: block;
  }
  li#contact address {
    display: none;
    font-size: 17px;
    line-height: 19px;
  }
  li#contact address a:hover {
    text-decoration: none;
  }
  li#contact.active span {
    display: none;
  }
  li#contact.active address {
    display: block !important;
    position: fixed;
    left: 15px;
    top: 17vw;
    max-width: 100vw;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    padding: 10px;
  }
  li#contact.active address a:last-of-type {
    text-decoration: underline;
  }
  #stockage {
    display: block;
    width: 100%;
    height: calc(100vh - 20vw);
    margin-top: 20vw;
    padding: 10px 10px 75px 10px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: auto;
    gap: 10px;
    font-size: 2.7vw;
    line-height: 2.8vw;
  }
  #stockage figure {
    width: 100%;
    padding: 0;
  }
  #stockage figure span {
    display: inline-block;
    width: 100%;
  }
  #stockage figure span.title {
    text-align: center;
  }
  #stockage figure span.location {
    display: none;
  }
  #stockage a {
    color: inherit;
    text-decoration: none;
  }
  #stockage img {
    width: 100%;
  }
  main.fond {
    display: none;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    pointer-events: none;
  }
}