@charset "UTF-8";

@font-face {
  font-family: "ECAL";
  src: url("../fonts/SuisseEcalIntl-Medium.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Empêche le défilement horizontal */
  overflow-y: hidden; /* Empêche le défilement vertical */
  width: 100%;
  height: 100%;
  background-color: rgb(239, 1, 1);
  color: white;
  font-family: "ECAL", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7),
    0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
  font-size: 4vw; /* Taille de police adaptée aux petits écrans */
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.question {
  font-size: 20vw; /* Taille relative pour les petits écrans */
  line-height: 1;
  margin: 0 auto; /* Centre le texte horizontalement */
  max-width: 90%; /* Limite la largeur à 90% de l'écran */
  word-wrap: break-word; /* Coupe les mots si nécessaire */
  overflow-wrap: break-word; /* Alternative pour couper les mots */
  margin-top: -60px;
  margin-left: 20px; /* Ajout de marges pour éviter que le texte touche les bords */
  margin-right: 20px;
  animation: pulse 2s infinite ease-in-out;
  position: relative; /* Permet de le repositionner */
  top: -20px; /* Remonte légèrement le texte */
}

.question2 {
  font-size: 4vw;
  line-height: 1.2;
  margin: 0 auto; /* Centre le texte horizontalement */
  max-width: 90%; /* Limite la largeur à 90% de l'écran */
  word-wrap: break-word; /* Coupe les mots si nécessaire */
  overflow-wrap: break-word; /* Alternative pour couper les mots */
  margin-top: 40px;
  margin-left: 20px; /* Ajout de marges pour éviter que le texte touche les bords */
  margin-right: 20px;
  animation: pulse 2s infinite ease-in-out;
  position: relative; /* Permet de le repositionner */
  top: -20px; /* Remonte légèrement le texte */
}

.question2:hover {
  background-color: blue;
  color: white;
  box-shadow: 0 0 15px rgba(0, 0, 255, 0.7), 0 0 25px rgba(0, 0, 255, 0.5),
    0 0 35px rgba(0, 0, 255, 0.3); /* Ombre accentuée au survol */
  border: 4px solid white;
  border-radius: 50px;
}

.image-container {
  margin: 30px 0;
}

.image-container img {
  max-width: 100%;
  height: auto;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(0.95);
  }
}

@media (min-width: 800px) {
  .question {
    font-size: 150px; /* Réduction de la taille du texte pour les grands écrans */
    line-height: 1;
    margin: 0 auto;
    max-width: 160%; /* Réduction de la largeur maximale */
    margin-top: -80px;
  }

  .question2 {
    font-size: 2.5vw;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 80%;
  }

  .image-container img {
    max-width: 70%; /* Réduction de la taille des images */
  }
}
