/* v2 */

@import url("https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap");

:root {
  --color1: #d7c721;
  --color2: #4f44e3;
  --color3: #00002e;
  --color4: #0a0723;
  --color5: rgba(255, 255, 255, 0.89);
  --zoom-scale: 2.5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* border: 1px red solid; */
}

a {
  font-weight: 400;
  font-size: 1.1rem;
}

a:link,
a:visited {
  color: var(--color1);
  text-decoration: none;
}

body {
  background: var(--color3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color5);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 700px;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#logo {
  width: 30vw;
  min-width: 300px;
  margin-top: 80px;
  margin-bottom: 0;
  z-index: 1000;
}

/* #logo:hover {
  animation: shakeRotateZoom 0.6s ease-in-out;
} */

nav {
  background: var(--color3);
  width: 25%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-container {
  width: 70%;
  max-width: 800px;
  display: flex;
  justify-content: space-around;
  color: var(--color5);
}

.nav-container i {
  color: var(--color2);
  font-weight: bolder;
}

/* .nav-container a:hover {
  animation: shake-gentle 0.5s ease-in-out;
} */

#forum:hover,
#collabs:hover,
#radio:hover,
#infos:hover {
  animation: shake-gentle 0.5s ease-in-out;
}

#galerie,
#ressources,
#contact {
  position: relative;
  /* display: inline-block; */
  /* overflow: hidden; */
  z-index: 1;
}

#galerie::after,
#ressources::after,
#contact::after {
  content: "Bientôt";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  background: rgba(255, 0, 0, 0.7); /* Fond semi-transparent rouge */
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 5px 15px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none; /* Empêche d'interagir avec le texte */
}

#galerie:hover::after,
#ressources:hover::after,
#contact:hover::after {
  opacity: 1;
}

.rs i {
  color: #0c0c9c;
  margin: 15px;
  font-size: 1em;
}

@keyframes shake-gentle {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-5px);
  }
  20% {
    transform: translateX(5px);
  }
  30% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(5px);
  }
  50% {
    transform: translateX(-5px);
  }
  60% {
    transform: translateX(5px);
  }
  70% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
  90% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes shakeRotateZoom {
  0% {
    transform: scale(var(--zoom-scale)) rotate(0deg) translateX(0);
  }
  10% {
    transform: scale(var(--zoom-scale)) rotate(-5deg) translateX(-5px);
  }
  20% {
    transform: scale(var(--zoom-scale)) rotate(5deg) translateX(5px);
  }
  30% {
    transform: scale(var(--zoom-scale)) rotate(-5deg) translateX(-5px);
  }
  40% {
    transform: scale(var(--zoom-scale)) rotate(5deg) translateX(5px);
  }
  50% {
    transform: scale(var(--zoom-scale)) rotate(-5deg) translateX(-5px);
  }
  60% {
    transform: scale(var(--zoom-scale)) rotate(5deg) translateX(5px);
  }
  70% {
    transform: scale(var(--zoom-scale)) rotate(-5deg) translateX(-5px);
  }
  80% {
    transform: scale(var(--zoom-scale)) rotate(5deg) translateX(5px);
  }
  90% {
    transform: scale(var(--zoom-scale)) rotate(-5deg) translateX(-5px);
  }
  100% {
    transform: scale(var(--zoom-scale)) rotate(0deg) translateX(0);
  }
}

@media screen and (max-width: 1024px) {
  #logo:hover {
    animation: none;
  }
}

@media screen and (max-width: 750px) {
  #logo {
    margin-top: 10px;
    width: 80vw;
  }

  nav {
    display: flex;
    align-items: flex-start;
  }

  .nav-container {
    flex-direction: line;
    align-items: center;
    /* height: 400px; */
  }

  i {
    display: none;
  }

  a {
    margin: 10px 3px;
    font-size: 1.3rem;
    /* margin-bottom: 20px; */
  }

  #galerie,
  #ressources,
  #contact {
    display: none;
  }
}
