/* Réinitialisation de base */
body, html {
  margin: 0;
  padding: 0;
  height: 100vh;
  background-color: #111;
  color: #fff;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

/* Layout principal */
.wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
  flex-direction: row;
}

/* Pubs latérales */
.ads-left,
.ads-right {
  width: 120px;
  background-color: #2a2a2a;
  color: #ccc;
  text-align: center;
  padding: 10px 5px;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenu principal centré */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  background-color: #111;
}

.logo {
  width: 100px;
  margin-right: 10px;
}

/* Contenu quiz */
.quiz-container, #quiz-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

/* Image du quiz */
#quiz-img, #quiz-image {
  max-height: 250px;
  max-width: 100%;
  border-radius: 10px;
  margin: 15px 0;
}

/* Question + réponses */
#progress, #question-number {
  font-weight: bold;
  margin-bottom: 10px;
}

#answers, #options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Boutons */
button.option {
  background-color: #222;
  border: 2px solid #555;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
  font-size: 1em;
  border-radius: 8px;
  transition: background-color 0.3s, border-color 0.3s;
  width: 100%;
}

button.option:hover:not(:disabled) {
  background-color: #333;
  border-color: #888;
}

button.option.correct {
  background-color: green;
  border-color: green;
}

button.option.incorrect {
  background-color: red;
  border-color: red;
}

button.option:disabled {
  cursor: default;
  opacity: 0.8;
}

/* Footer */
footer {
  padding: 10px;
  font-size: 0.8em;
  color: #aaa;
  text-align: center;
}

/* Responsive : mobile */
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }

  .ads-left,
  .ads-right {
    display: none;
  }

  .ads-top,
  .ads-bottom {
    display: block;
    width: 100%;
    background-color: #2a2a2a;
    color: #ccc;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9em;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    max-height: 90px;
    overflow: hidden;
  }
}

/* Desktop : on cache pubs top/bottom */
.ads-top,
.ads-bottom {
  display: none;
}
