@font-face {
  font-family: "font-1";
  src: url(./fonts/ABCFavoritEdu-Regular.woff2) format(woff2);
}

@font-face {
  font-family: "font-1-italic";
  src: url(./fonts/ABCFavoritEdu-RegularItalic.woff2) format(woff2);
}

body {
  background-color: rgb(32, 32, 32);
  color: #fff;
  height: 100%;
  width: 100%;
  font-family: "font-1";
  font-size: 0.5rem;
  box-sizing: border-box;
  overflow: hidden;
  cursor: none;
}

h1,
h2 {
  font-weight: normal;
}

#titre-hidden {
  font-size: 0;
}

#cursor {
  display: block;
  position: absolute;
  width: fit-content;
  height: fit-content;
  text-shadow: #000 0 0 3px;
  font-size: 2em;
  cursor: none;
  animation: apparitionY 0.7s ease-in-out forwards,
    opacité 0.8s ease-in-out forwards;
}

.bouton {
  position: absolute;
  display: none;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  font-size: 1em;
  z-index: 1;
  cursor: none;
  filter: drop-shadow(0px 0px 3px rgb(32, 32, 32));
  transition: color 0.3s ease;
  animation: apparitionY 0.7s ease-in-out forwards,
    opacité 0.8s ease-in-out forwards;
}

.lien {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 10;
  cursor: none;
}

#bouton-noa {
  position: fixed;
  display: flex;
  bottom: 20px;
  right: 20px;
  width: 215px;
  height: fit-content;
  font-size: 1rem;
  text-align: left;
  text-shadow: rgb(0, 0, 0) 0 0 3px;
  animation: apparitionX 0.7s 0.5s ease-in-out backwards,
    opacité 0.8s 0.5s ease-in-out backwards;
  cursor: pointer;
  box-sizing: border-box;
  z-index: 2;
  line-height: 1.13;
}

#bouton-contact {
  margin-left: 15px;
}

a {
  font-family: font-1;
  font-style: inherit;
  color: inherit;
  text-decoration: none;
}

.voirleproj,
#insta,
#email {
  text-decoration: underline;
}

#insta:hover,
#email:hover,
.voirleproj:hover {
  text-decoration: none;
  font-family: font-1-italic;
}

#insta:hover + .arrow,
#email:hover + .arrow {
  display: none;
}

.voirleproj:hover + .arrow {
  color: rgba(255, 255, 255, 0);
  text-shadow: none;
}

.arrow {
  display: inline-block;
  font-family: font-1;
  font-size: 1em;
  width: 12px;
  text-align: center;
}

#container-photo {
  display: flex;
  height: 100dvh;
  width: 100%;
  box-sizing: border-box;
}

.photo {
  width: 100%;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  transition: width 0.3s ease-in-out, height 0.3s ease-in-out;
}

.photoImg {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  animation: opacité 0.8s ease-in-out backwards;
  overflow: hidden;
}

#copyright {
  position: fixed;
  bottom: 22px;
  left: 23px;
  text-shadow: rgb(0, 0, 0) 0 0 3px;
  font-size: 0.5em;
  animation: apparitionY 0.7s 0.5s ease-in-out backwards,
    opacité 0.8s 0.5s ease-in-out backwards;
}

@keyframes opacité {
  from {
    opacity: 0%;
  }
  to {
    opacity: 100%;
  }
}

@keyframes apparitionY {
  from {
    transform: translateY(50px);
  }
  to {
    transform: translateY(0px);
  }
}

@keyframes apparitionX {
  from {
    transform: translateX(100px);
  }
  to {
    transform: translateX(0px);
  }
}

@media screen and (max-width: 1180px) {
  #container-photo {
    flex-direction: column;
  }

  .bouton {
    display: flex;
    cursor: pointer;
  }

  .photo-1 {
    width: 50%;
    height: 100%;
  }
  .photo-2 {
    width: 50%;
    height: 100%;
  }

  .lien {
    cursor: pointer;
  }
}

@media screen and (orientation: landscape) {
  #container-photo {
    flex-direction: row;
  }
}

@media screen and (orientation: portrait) {
  #container-photo {
    flex-direction: column;
  }

  .photo-1 {
    width: 100%;
    height: 50%;
  }
  .photo-2 {
    width: 100%;
    height: 50%;
  }
}
