/* Style général */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #222;
  color: white;
  text-align: center;
  min-height: 100vh;
  overflow: hidden;
}

/* Animation d'introduction */
.animation-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.animated-text {
  font-size: 2rem; /* Utilisation de rem pour la taille du texte */
  margin-bottom: 2rem; /* Espacement en rem */
}

.enter-button {
  padding: 1rem 2rem; /* Espacement en rem */
  font-size: 1rem;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 0.5rem; /* Utilisation de rem pour les bords arrondis */
}

.enter-button:hover {
  background-color: #0056b3;
}

/* Style du header, footer et main */

header {
  top: 50vh; /* Utilisation de vh pour positionner le header à la moitié de la hauteur de l'écran */
}

header {
  position: fixed;
  width: 40%;
  text-align: center;
  background-color: #333;
  color: white;
  padding: 0.625rem 0; /* Padding en rem */
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: all 1s ease;
  left: 50%; /* Positionnement à partir du centre */
  transform: translateX(-50%); /* Centrage horizontal */
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.header1 {
  background-color: #9b3131;
  margin :5px;
}

.header2 {
  background-color: #9b3131;
  margin :5px;
}

.header3 {
  background-color: #9b3131;
  margin :5px;
}

.header4 {
  background-color: #9b3131;
  margin :5px;
}

.header5 {
  background-color: #9b3131;
  margin :5px;
}

footer {
  bottom: 50vh; /* Utilisation de vh pour positionner le footer à la moitié de la hauteur de l'écran */
}

footer {
  position: fixed;
  width: 40%;
  text-align: center;
  background-color: #333;
  color: white;
  padding: 0.625rem 0; /* Padding en rem */
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: all 1s ease;
  left: 50%; /* Positionnement à partir du centre */
  transform: translateX(-50%); /* Centrage horizontal */
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;

}

.footer1 {
  background-color: #9b3131;
  margin :5px;
}

.footer2 {
  background-color: #9b3131;
  margin :5px;
}

.footer3 {
  background-color: #9b3131;
  margin :5px;
}

.footer4 {
  background-color: #9b3131;
  margin :5px;
}

.footer5 {
  background-color: #9b3131;
  margin :5px;
}




main {
  display: none;
  opacity: 0;
  background-color: #444;
  color: white;
  padding: 1.25rem; /* Espacement en rem */
  margin-top: 1.25rem; /* Espacement en rem */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 80vh; /* Utilisation de vh pour définir la hauteur du main */
  width: 90vw; /* Utilisation de vw pour définir la largeur du main */
  margin-bottom: 2vh;
  overflow-y: auto;
  border-radius: 15px;
}

/* Animation d'entrées */
@keyframes slide-up {
  from {
    top: 50vh;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes slide-down {
  from {
    bottom: 50vh;
    opacity: 0;
  }
  to {
    bottom: 0;
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Animation active */
header.visible {
  animation: slide-up 1s forwards;
}

footer.visible {
  animation: slide-down 1s forwards;
}

main.visible {
  display: block;
  animation: fade-in 1s forwards;
  opacity: 1;
}

@media (max-width: 600px) {
  .animated-text {
    font-size: 1.5rem; /* Taille de police en rem */
  }

  .enter-button {
    padding: 0.625rem 1.25rem; /* Ajustement en rem */
    font-size: 0.9rem;
  }

  main {
    height: 60vh; /* hauteur */
    width: 75vw; /* largeur */
    margin-left: auto; /* Centrer le main */
    margin-right: auto; /* Centrer le main */
    margin-bottom: 20vh;
  }

  footer {
    padding: 0.625rem 0; /* Padding en rem */
    bottom: 0;
    margin-bottom: 0.5rem; /* Marge en rem pour l'espace réservé */
  }
}

@media (max-width: 400px) {
  .animated-text {
    font-size: 1.2rem;
  }

  .enter-button {
    padding: 0.5rem 1rem; /* Espacement réduit en rem */
    font-size: 0.8rem;
  }

  main {
    height: 65vh; /* Réduit encore la hauteur du main */
    width: 75vw; /* Augmente légèrement la largeur par rapport aux très petits écrans */
    margin-left: auto; /* Centrer le main */
    margin-right: auto; /* Centrer le main */
  }

  footer {
    margin-bottom: 0.5rem; /* Ajuste la marge en rem pour le footer */
  }
}

