@font-face {
  font-family: typo;
  src: url(../fonts/InterDisplay-Thin.otf);
}

@font-face {
  font-family: typo2;
  src: url(../fonts/IBMPlexMono-Light.otf);
}

body {
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding-left: 3vh;
  padding-top: 3vh;
  padding-bottom: 3vh;
  padding-right: 3vh;
  cursor: crosshair;
  background-color: rgb(220, 220, 220);
  /* filter: blur(4px); */
}

body.scroll {
  overflow-y: scroll;
}

@keyframes flash {
  0%,
  100% {
    color: #ff00ff;
  }
  25% {
    color: #00ffff;
  }
  50% {
    color: #66ff00;
  }
  75% {
    color: #ffff00;
  }
}

/* Buzz */
@-webkit-keyframes hvr-buzz {
  50% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }
  100% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }
}
@keyframes hvr-buzz {
  50% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }
  100% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }
}
.hvr-buzz {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-animation-name: hvr-buzz;
  animation-name: hvr-buzz;
  -webkit-animation-duration: 0.15s;
  animation-duration: 0.15s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

#about {
  position: relative;
  margin: 0;
  padding: 0;
  font-family: typo;
  font-size: 2vw;
  line-height: 3vh;
  position: absolute;
  color: rgb(140, 140, 140);
  margin-left: 0;
  transition: all 0.5s;
  transition-delay: 1s;
}

#texte_accueil {
  position: relative;
  margin: 0;
  padding: 0;
  font-family: typo;
  font-size: 2vw;
  line-height: 3vh;
  position: absolute;
  /* color: rgb(183, 183, 183); */

  margin-left: 0;
  transition: all 0.5s;
  /* background-color: rgb(230, 255, 100); */
}

#accueil {
  opacity: 0;
  transition: all 0.5s;
  position: absolute;
  transition-delay: 1.5s;
}

#infos {
  font-family: typo2;
  color: rgb(183, 183, 183);
  font-size: 1vw;
  bottom: 0;
  position: absolute;
  right: 0;
  margin-right: 3vh;
  margin-bottom: 3vh;
  line-height: 1.5vh;
  text-align: right;
  background-color: rgb(230, 255, 100);
}

#infos a {
  color: rgb(183, 183, 183);
}

a:link {
  text-decoration: none;
}
a:visited {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
a:active {
  text-decoration: none;
}

.scroll {
  display: inline-block;
  vertical-align: top;
  line-height: 3vh;
}

.menu,
.valentin {
  color: inherit;
  /* color: rgb(183, 183, 183); */
  color: rgb(140, 140, 140);

  transition: 1s ease-out;
  cursor: crosshair;
  text-decoration: none;
  font-family: typo;
  font-size: 2vw;
}

.menu {
  /* color: rgb(183, 183, 183); */
  color: rgb(140, 140, 140);

  filter: none;
  transition: all 2.5s ease-in; /* Pour l'entrée */
}

.menu:hover {
  transition: all 0.3s ease-out; /* Pour la sortie */
  filter: blur(4px);
}

#spirale {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
#spirale img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bouton {
  color: inherit;
  color: rgb(183, 183, 183);
  transition: 1s all;
  cursor: crosshair;
  text-decoration: none;
  font-family: typo;
  font-size: 20px;
  background-color: rgb(230, 255, 100);
  position: fixed;
  width: 30px;
  height: 30px;
  text-align: center;
  cursor: pointer;
  border-radius: 100%;
  line-height: 30px;
  transition-delay: 2s;
}

.bouton_2 {
  color: inherit;
  color: rgb(183, 183, 183);
  transition: 1s ease-out;
  cursor: crosshair;
  text-decoration: none;
  font-family: typo;
  font-size: 30px;
  /* background-color: rgb(167, 167, 167); */
  position: fixed;
  line-height: 40px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  text-align: center;
  border-radius: 100%;
}

.bouton_about {
  color: inherit;
  color: rgb(183, 183, 183);
  cursor: crosshair;
  text-decoration: none;
  font-family: typo;
  font-size: 20px;
  background-color: rgb(230, 255, 100);
  position: fixed;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  z-index: 1000;
  border-radius: 100%;
}

#wrapper {
  overflow: hidden;
}

.follow {
  transition: 3s ease-out;
}

.follow:hover {
  animation: flash 0.5s infinite alternate;
  filter: none;
  background-color: transparent;
  transition: all 0.5s ease-out; /* Pour la sortie */
  filter: blur(4px);
}

/* .tuile:hover {
  filter: blur(4px);
} */

.mosaique {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-color: #ffff00; */
}

/* .masque {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
} */

.tuile {
  width: 25vw;
  height: 25vw;
  position: relative;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  float: left;
  /* clip-path: circle(45%); */
}

/* .rond {
  width: 25vw;
  height: 25vw;
  position: relative;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  float: left;
  clip-path: circle(45%);
  background-color: rgb(230, 255, 100);
  transition: all 3s ease-out;
}

.rond:hover {
  opacity: 0;
  transition: all 0.5s ease-in;
} */

/* .tuile:hover {
  clip-path: none;
} */

.elem {
  font-family: typo2;
  color: rgb(183, 183, 183);
  font-size: 1vw;
  bottom: 0;
  right: 0;
  left: 0;
  top: 0;
  margin: 3vh;
  line-height: 1.5vh;
  text-align: right;
  background-color: rgb(230, 255, 100);
  padding: 0;
  text-transform: uppercase;
  position: fixed;
  display: none;
}

.elem a {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 50%;
  background-color: rgb(230, 255, 100);
  padding: 0;
}

#closeBtn {
  margin-right: 3vh;
  right: 0;
}

/* #galerie {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: scroll;
  text-align: left;
  width: 70%;
  object-fit: contain;
}
#galerie img {
  width: calc(100% - 6vh);
  margin: 3vh;
  object-fit: cover;
} */

#galerie {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 70%;
  padding-top: 3vh;
  padding-bottom: 3vh;
  overflow-y: scroll; /* Permet le défilement vertical */
  display: flex; /* Active Flexbox */
  flex-direction: column; /* Aligne les éléments en colonne */
  gap: 3vh; /* Espacement entre les images */
  text-align: left; /* Alignement du texte à gauche */
}

#galerie img {
  width: calc(100% - 6vh); /* Largeur des images avec marge intégrée */
  margin: 0 3vh; /* Marge horizontale uniquement */
  object-fit: cover; /* Ajuste l'image pour couvrir l'espace */
}

::-webkit-scrollbar {
  display: none;
}

/* SMARTPHONE MODE PORTRAIT */
@media screen and (orientation: portrait) {
  body {
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: hidden;
    margin: 0;
  }

  #infos {
    font-family: typo2;
    font-size: 2.5vw;
    bottom: 0;
    color: rgb(183, 183, 183);
    position: absolute;
    right: 0;
    margin-right: 3vh;
    margin-bottom: 3vh;
    line-height: 1.3vh;
    text-align: right;
    background-color: rgb(230, 255, 100);
  }

  #accueil,
  #about {
    margin: 0;
    padding: 0;
    font-family: typo;
    font-size: 3.5vw;
    line-height: 3vh;
    position: absolute;
    color: rgb(140, 140, 140);
    /* background-color: rgb(230, 255, 100); */
  }
  .menu,
  .valentin {
    color: inherit;
    color: rgb(140, 140, 140);
    transition: 1s ease-out;
    cursor: crosshair;
    text-decoration: none;
    font-family: typo;
    font-size: 7vw;
  }

  /* .bouton {
    display: none;
  }

  .bouton_about {
    display: none;
  } */

  .elem {
    font-family: typo2;
    font-size: 2.5vw;
    bottom: 0;
    position: absolute;
    right: 0;
    margin-right: 3vh;
    margin-bottom: 3vh;
    line-height: 1.3vh;
    text-align: right;
    background-color: rgb(230, 255, 100);
    padding-top: 0;
    text-transform: uppercase;
    position: fixed;
  }

  .elem a {
    /* color: rgb(183, 183, 183); */
    background-color: rgb(230, 255, 100);
  }

  .scroll {
    display: inline-block;
    vertical-align: top;
    line-height: 3vh;
    font-size: 5vw;
  }

  .tuile {
    width: 50vw;
    height: 50vw;
    position: relative;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    float: left;
  }

  #galerie {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    padding-top: 3vh;
    padding-bottom: 3vh;
    overflow-y: scroll; /* Permet le défilement vertical */
    display: flex; /* Active Flexbox */
    flex-direction: column; /* Aligne les éléments en colonne */
    gap: 3vh; /* Espacement entre les images */
    text-align: left; /* Alignement du texte à gauche */
  }

  #galerie img {
    width: calc(100% - 6vh); /* Largeur des images avec marge intégrée */
    margin: 0 3vh; /* Marge horizontale uniquement */
    object-fit: cover; /* Ajuste l'image pour couvrir l'espace */
  }

  #bouton {
    position: fixed;
  }
  .bouton_2 {
    z-index: 1000;
  }
}
