/* Conteneur principal du quiz */
#root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #DDADAD; /* Couleur principale du texte */
  background-color: #F2D3D3; /* Fond général doux */
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 20px; /* un peu d'air autour du contenu */
  border-radius: 12px;
}

/* Liens à l'intérieur du quiz */
#root a {
  font-weight: 500;
  color: #DDADAD;
  text-decoration: inherit;
}

#root a:hover {
  color: #BFA3A3; /* un ton plus foncé de #DDADAD */
}

/* Corps du quiz */
#root body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
  background-color: #F2D3D3;
}

/* Titres dans le quiz */
#root h1 {
  font-size: 3.2em;
  line-height: 1.1;
  color: #A67878; /* ton doux foncé */
  margin-bottom: 0.5em;
}

/* Boutons du quiz */
#root button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #DDADAD; /* couleur douce des boutons */
  color: #5A3A3A; /* texte bouton contrasté */
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
  border-color: #C49A9A;
}

#root button:hover {
  border-color: #BFA3A3;
  background-color: #C49A9A;
}

#root button:focus,
#root button:focus-visible {
  outline: 4px auto #DDADAD;
}

/* Styles pour le mode clair */
@media (prefers-color-scheme: light) {
  #root {
    color: #5A3A3A;
    background-color: #F9F2F2;
  }
  #root a:hover {
    color: #BFA3A3;
  }
  #root button {
    background-color: #F2D3D3;
    color: #5A3A3A;
    border-color: transparent;
  }
}
