/* Style global pour la page */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
  text-align: center;
}

/* Style de l'en-tête */
header {
  text-align: center;
  padding: 20px;
  background-color: #6fa3ef;
  width: 100%;
  position: relative;
}

header h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-top: 20px; /* Ajoute un peu d'espace en haut */
}

header p {
  font-size: 1rem;
  color: #fff;
  margin-top: 10px; /* Ajoute un peu d'espace sous le h1 */
}

header img {
  width: 10%; /* Réduit la largeur de l'image à 60% */
  max-width: 100%;
  height: auto;
  margin-top: 20px;  /* Ajoute un espace entre l'image et le texte */
  object-fit: contain;  /* Assure que l'image ne déforme pas son ratio */
  display: block; /* S'assure que l'image se comporte comme un bloc */
  margin-left: auto;
  margin-right: auto;
}

/* Style du container principal */
main {
  width: 80%;
  max-width: 600px;
  margin-top: 20px;
  text-align: center;
}

/* Style des questions */
.question-container {
  display: none;  /* Par défaut, toutes les questions sont cachées */
  margin-bottom: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Afficher la première question par défaut */
.question-container:first-of-type {
  display: block;
}

/* Style du texte des questions */
.question-container p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Style des options */
.options {
  margin: 20px 0;
}

.option {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.option:hover {
  background-color: #45a049;
}

/* Style du timer */
.timer {
  font-size: 1.2rem;
  margin-top: 10px;
  font-weight: bold;
}

/* Style des boutons Suivant et Recommencer */
.next-button,
.restart-button {
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.next-button:hover {
  background-color: #0056b3;
}

.restart-button {
  background-color: #f39c12;
  margin-left: 10px; /* Espacement entre les deux boutons */
}

.restart-button:hover {
  background-color: #e67e22;
}

/* Style du footer */
footer {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  margin-top: 40px;
  padding: 10px;
  background-color: #6fa3ef;
}

footer img {
  width: 50px;
  height: auto;
}
