body {
  background: #b9dff5;
  color: #222;
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

.main {
  margin-top: 120px;
  text-align: center;
}

.container {
  border: 2px solid red;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  padding: 30px 40px;
  margin-top: 50px;
  max-width: 700px;
  width: 90%;
  text-align: center;
  position: relative;
}

.container::before {
  content: "";
  position: relative;
  top: 10px;
  right: 10px;
  width: 80px;
  height: 50px;
  background-image: url('https://github.com/BretonsLearnEnglish/Quizz_vocabulaire_BretonsLearnEnglish/blob/main/images/union-jack-flag.png?raw=true');
  background-size: cover;
  opacity: 0.2;
  border-radius: 5px;
}

h1 {
  font-size: 2em;
  color: #003087; /* bleu British */
  margin-bottom: 20px;
}

.header {
  width: 100%;
  display: flex;
  justify-content: center; /* 👉 centre horizontalement */
  margin-top: 20px;
}

.nav {
  display: flex;
  gap: 40px;
  background: white;
  padding: 15px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.2s;
}

.nav a:hover {
  color: #e91e63;
}

#menu {
  display: flex;
  flex-direction: column;
  align-items: center;  /* centre horizontalement tous les enfants */
  justify-content: center;
  margin-top: 100px; /* ou ce que tu veux pour l’espace vertical */
  text-align: center; /* pour que le texte soit bien centré */
  gap: 20px; /* espace entre titre et bouton */
}

#menu button {
  min-width: 180px;
  padding: 12px 20px;
  font-size: 1.2em;
  background-color: #d81b60;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#menu button:hover {
  transform: scale(1.05);
}

#question {
  font-size: 1.5em;
  margin: 20px 0;
  padding: 15px;
  border: 2px solid #d81b60; /* rouge British */
  border-radius: 10px;
  background-color: #fff;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

button {
  font-size: 1.2em;
  padding: 10px 20px;
  margin: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
}


#reponses {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  align-items: center !important;
  margin-top: 20px !important;
}

#reponses button {
  margin: 0 !important;
  width: 60% !important;
  max-width: 300px !important;
  box-shadow: 0 4px 6px rgba(0, 48, 135, 0.4); /* bleu foncé légèrement diffusé */
  transition: all 0.3s ease; /* pour que hover soit fluide */
}

#reponses button.correct {
  background-color: #28a745;
  color: #fff;
}

#reponses button.wrong {
  background-color: #dc3545;
  color: #fff;
}

#recommencerBtn {
  background-color: #003087; /* bleu British */
  color: #fff;
  display: block;
  margin: 20px auto;
  width: 150px;    /* largeur fixe pour plus d'harmonie */
  text-align: center;
}

#menuBtn, #startQuizBtn {
  background-color: #d81b60; /* rouge British */
  color: #fff;
}

#progress-bar {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  height: 20px;
}

#progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #003087, #d81b60); /* bleu vers rouge */
  transition: width 0.3s ease;
}

#feedback {
  font-size: 1.3em;
  margin-top: 10px;
}

#score {
  font-size: 1.4em;
  margin-top: 20px;
  font-weight: bold;
}


/* Agrandir légèrement le texte sur petits écrans */
@media (max-width: 480px) {
  #reponses button {
    font-size: 1.4em; /* un peu plus grand sur mobile */
  }
}
