body {
  margin: 0;
  padding: 0;
  height: 100vh;
}

#max1,
#max2,
#max3 {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

#cadre1 {
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  transform: scale(10);
}

#cadre2 {
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#cadre3 {
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  opacity: 0;
}

#decor {
  padding: 0;
  margin: 0;
  width: 500px;
  height: 500px;
  border-radius: 250px;
  background: linear-gradient(
    45deg,
    rgba(173, 216, 230, 1),
    rgba(224, 255, 255, 1)
  );
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "Montserrat", sans-serif;
  -webkit-animation-name: rotate;
  -webkit-animation-duration: 36s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: rotate;
  -moz-animation-duration: 36s;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
}

@-webkit-keyframes rotate {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}

@-moz-keyframes rotate {
  from {
    -moz-transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(360deg);
  }
}

#logo,
.logo {
  width: 800px;
  height: 600px;
  display: flex;
  flex-direction: column; /* Ajouté ici */
  justify-content: center;
  align-items: center;

  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  text-align: center;
}

@keyframes spiralOut {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(-720deg);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-720deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

#cadre2.disparition {
  animation: spiralOut 1.5s forwards;
}
#cadre3.apparition {
  animation: fadeInUp 1.5s forwards;
}
#cadre3.disparition {
  animation: spiralOut 1.5s forwards;
}
.max4 {
  animation: fadeInUp 1.5s forwards;
}

#max1 {
  z-index: -1;
}
#max2 {
  z-index: 100;
}
#max3 {
  z-index: 99;
}

#cadre3 {
  color: black;
}

#startBtn {
  padding: 10px 20px;
  font-size: 18px;
  background-color: royalblue;
  color: white;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

#startBtn:hover {
  background-color: darkblue;
}

#zIndexDisplay {
  position: fixed; /* Fixe en haut à gauche */
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  z-index: 1; 
  opacity: 0;
}

#countdown1 {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  border-radius: 5px;
  z-index: 1000;
  font-family: Arial, sans-serif;
  font-size: 24px;
  animation: pulse 2s infinite;
}

.countdown2 {
  position: fixed;
  top: 80px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  border-radius: 5px;
  z-index: 1001;
  font-family: Arial, sans-serif;
  font-size: 24px;
  animation: pulse 2s infinite;
}

#endMessage1, #endMessage2 {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ff4444;
  color: white;
  padding: 30px;
  border-radius: 10px;
  z-index: 1001;
  font-family: Arial, sans-serif;
  font-size: 28px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.propositions img {
  cursor: pointer;
  transition: all 0.25s ease;
}
.propositions:hover > :not(:hover) {
  filter: blur(2px);
  opacity: .2;
}