#indexHome {
  transition: opacity 0.5s;
  opacity: 0;
}

#indexChargement {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  font-family: 'Montserrat';
  font-size: 2rem;
  font-weight: 700;
  background: #F0F6FE;
}

.imageChargement {
  position: absolute;
  top: calc(50% - 50px);
  left: calc(50% - 50px);
  margin-left: auto;
  margin-right: auto;
  animation: 1.4s ease-in-out infinite imageChargementAnim;
}

@keyframes imageChargementAnim {
  0% {
    transform: rotateZ(0deg);
  } 60% {
    transform: rotateZ(190deg);
  } 100% {
    transform: rotateZ(360deg);
  }
}

.texteChargement {
  position: absolute;
  top: 0px;
  left: 20px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(90deg, #0000ff 0%, #ff0000 50%, #0000ff 100%);
  background-position: 0% center;
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: 1s linear infinite texteChargementAnim;
}

@keyframes texteChargementAnim {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 200% center;
  }
}

.close {
  opacity: 0;
}

#indexHome.open {
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 60vh;
}
#indexHome.open div {
  height: 400px;
  max-width: 400px;
}
#indexHome.open h2 {
  margin-bottom: 20px;
}
#indexHome.open button {
  padding: 15px 35px;
  background: #323c64;
  color: white;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 1px 2px 2px black;
}
#indexHome.open button:hover {
  background: #c83232;
}
