/* Éléments de base */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f4f4f4;
  color: #333;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

/* Structures de mise en page */
.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #f4f4f4;
}

.question-form,
.submit-container,
.feedback,
.results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.submit-button {
  margin-top: 25px;
}

.answer-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 300px;
}

/* Éléments de formulaire et de contrôle */
.submit-button,
.difficulty-button,
.next-button,
.button {
  padding: 10px 20px;
  color: white;
  background-color: #4caf50;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.difficulty-button {
  padding: 10px 15px;
  font-size: 16px;
  margin: 5px;
}

/* Éléments spécifiques */
.question-title {
  font-size: 32px;
  color: #5d5c61;
  text-align: center;
}

.answer-option,
.answer-list label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.answer-option {
  margin: 5px 0;
}

.answer-option input[type="radio"],
input[type="radio"] {
  margin-right: 10px;
}

.answer-option label,
.answer-list label {
  text-align: left;
  width: 100%;
}

/* État et variations */
.submit-button:hover,
.easy:hover,
.medium:hover,
.hard:hover,
.next-button:hover,
.button:hover {
  background-color: #45a049;
}

.medium,
.medium:hover {
  background-color: #ffa500;
  background-color: #e59400;
}

.hard,
.hard:hover {
  background-color: #f44336;
  background-color: #d32f2f;
}

.status {
  font-size: 24px;
  font-weight: bold;
}

.status.correct {
  color: #4caf50;
}

.status.incorrect {
  color: #f44336;
}

.response,
.results p {
  margin: 20px 0;
  padding: 10px;
  font-style: italic;
  font-size: 20px;
  color: #333;
}

.answer {
  font-weight: bold;
}

.difficulty-Facile,
.difficulty-Moyen,
.difficulty-Difficile {
  margin-bottom: 50px;
}

.difficulty-Facile {
  font-size: 25px;
  color: #45a049;
}

.difficulty-Moyen {
  font-size: 25px;
  color: #ffa500;
}

.difficulty-Difficile {
  font-size: 25px;
  color: #f44336;
}

.return-button {
  margin-top: 25px;
  padding: 10px 20px;
  color: white;
  background-color: #345995;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

/* Styliser le conteneur de particules */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

/* Media queries pour la tablette */
@media screen and (max-width: 768px) {
  .container {
    max-width: 90%;
  }

  .question-title {
    font-size: 24px;
  }

  .response,
  .results p {
    font-size: 18px;
  }

  .difficulty-button,
  .submit-button,
  .next-button,
  .button {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Media queries pour le smartphone */
@media screen and (max-width: 480px) {
  .container {
    padding: 15px;
    max-width: 100%;
  }

  .question-title {
    font-size: 20px;
  }

  .answer-list {
    max-width: 100%;
  }

  .difficulty-button,
  .submit-button,
  .next-button,
  .button {
    padding: 8px 12px;
    font-size: 12px;
  }

  .answer-option,
  .answer-list label {
    font-size: 14px;
  }
}
