@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Platypi:ital,wght@0,300..800;1,300..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Rubik+Scribble&display=swap");
@font-face { 
  font-family: Textedeux;
  src: url("../Assets/font/Homoneta-Italic.otf"), format('otf');
}

@font-face { 
  font-family: Texte;
  src: url("../Assets/font/Homoneta-Regular.otf"), format('otf');
}
:root {
  /* Typo pour le texte courant */
  --font-primary: 'Texte', sans-serif;
  /* Typo pour les titres */
  --font-secondary: "Texte", serif;
  /* Typo pour autres */
  --font-third: "Texte", sans-serif;
}

a:visited {
  text-decoration: none;
  color: black
}
#TitreMenu{
  font-size: 3em;
}

body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  width: 100%;
  height: 100vh;
  font-family: Texte;
  font-size: large;
  text-decoration: none;
  color: black;
}

.svg-container {
  color: black;
  position: relative;
  width: 40vw;
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 8vw;
  /* border: 1px solid red; */
  animation: float 20s ease-in-out infinite;
  text-decoration: none;

}

.svg-container svg {
  position: relative;
  width: 100vw;
  height: 100%;
  size: 50%;
  filter: blur(14px);
  transition: 2s ease-in-out;
  /* border: 1px solid red; */

  object-fit: contain;
}

.svg-container h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  overflow: hidden;
  pointer-events: none;
  text-decoration: none;
}

.menu {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(4, auto);
  column-gap: 2vh;
  grid-gap: 2vw;
  overflow: hidden;
  text-decoration: none;
}

.bgImages {
  top: 0;
  left: 0;
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: -20;
  overflow: hidden;
}

.bgImages img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: fill;
  /* mix-blend-mode: exclusion; */
}

#bgO {
  animation: morph 10s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  opacity: 0.1;
}

/* Animation  */
.svg-container svg:hover {
  filter: blur(20px);
  transition: 1s ease-in-out;
}

.BgImgMorph:first-child {
  animation-delay: 3s;
}

.BgImgMorph:last-child {
  animation-delay: 0s;
}

.svg-container:first-child {
  animation-delay: 3s;
}

.svg-container:last-child {
  animation-delay: 4s;
}

@keyframes morph {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translate(0, 0);
    rotate: -5deg;
  }

  25% {
    transform: translate(10px, -10px);
    rotate: 0deg;
  }

  50% {
    transform: translate(-10px, 5px);
    rotate: 2deg;
  }

  75% {
    transform: translate(5px, 10px);
    rotate: -4deg;
  }

  100% {
    transform: translate(0, 0);
    rotate: -5deg;
  }
}

/* Responsive setup*/
@media screen and (max-width: 480px) {
  .svg-container svg {
    padding: 4vw;
  }

  .svg-container {
    width: 50vw;
    height:20vh;
  }
  .menu{
    column-gap: 1em;
    grid-gap: 0;
  }
  #TitreMenu{
    font-size: 2em;
  }
}