body {
  background: #f4f6f9;
  /* font-family: Arial, sans-serif; */
  margin: 0;
  padding: 40px;
}

.container-app {
  max-width: 700px;
  margin: auto;
  background: #e2eeff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

h1, h2 {
  color: #333;
}

h3.titreQuestion {
  color:#052c65;
}

h4, h5 {
  /* color: #1d77aa; */
  color: #0072b3
}

.minititre {
  text-align: right;
  font-size:medium;
  color: #1d77aa;
  margin-bottom: 20px;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  margin-bottom: 10px;
}

p.rouge {
  color: #d32f2f;
}

p.vert {
  color: #388e3c;
}

p.gris {
  color: #797979;
}

/*
input[type=radio] {
  margin-right: 10px;
}
*/

button.btn-mini {
  --bs-btn-padding-y: .25rem;
  --bs-btn-padding-x: .5rem;
  --bs-btn-font-size: .75rem;
}

button {
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #007bff;
  color: white;
  transition: 0.2s;
}

button:disabled {
  background: #888;
  cursor: not-allowed;
}
/* --- BOUTONS DE NAVIGATION --- */
/*
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
*/

/* --- BARRE DE TIMER --- */
.timer-bar {
  position: relative;
  height: 30px;
  background-color: #ddd;
  border-radius: 5px;
  margin: 20px 0;
  /* overflow: hidden; */
}

.timer-fill {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Texte centré */
.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 16px;
  z-index: 1;
  pointer-events: none;
}

.all-correct {
  border: 1px solid #4caf50;
  background: #e6ffe6;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-weight: bold;
  color: #2e7d32;
}

.correct-question {
  border: 1px solid #36f4b5;
  background: #e6fff0;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.incorrect-question {
  border: 1px solid #f44336;
  background: #ffe6e6;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.unanswered-question {
  border: 1px solid #9b9b9b;
  background: #f1f1f1;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.skip-button {
  background: #ff9800;
}
.skip-button:hover {
  background: #e68900;
}

/* --- ECRAN D'ACCUEIL --- */
/*
.accueil-screen input[type="text"] {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 10px;
}
*/

.accueil-screen {
  text-align: center;
  padding: 40px 20px;
}

.accueil-screen h2 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.accueil-screen p {
  color: #666;
  margin: 15px 0;
  font-size: 1.1rem;
  line-height: 1.6;
}
/*
.accueil-screen input[type="text"] {
  padding: 12px 15px;
  border-radius: 6px;
  border: 2px solid #ddd;
  margin-top: 20px;
  font-size: 1rem;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.accueil-screen input[type="text"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}
*/
.accueil-screen button {
  margin-top: 25px;
  font-size: 1rem;
  font-weight: 600;
}

.accueil-screen button:hover:not(:disabled) {
  background: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* --- QUESTION QUIZ --- */
.question-screen h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #222;
}

.miniindex {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  margin-right: 10px;
}

/* --- RESULTAT et SCORE --- */
.score-box {
  border: 1px solid #3c1cf5;
  background: #ccd9ff;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;

  /* display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 20px; */
}

.resultat-value {
  font-weight: bold;
  color: #375f88;
} 

.score-value {
  font-weight: bold;
  color: #1976d2;
}

.spendtime-value {
  font-weight: bold;
  color: #229928;
}

.loading {
  text-align: center;
  font-size: 20px;
}
.summary pre {
  background: #eee;
  padding: 10px;
  border-radius: 6px;
}

/* --- PROGRESS BAR MODERNE --- */
.progress-bar-wrapper {
  width: 100%;
  height: 12px;
  background: #e8e8e8;
  border-radius: 8px;
  /* overflow: hidden; */
  margin: 20px 0 10px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a90e2, #007bff);
  border-radius: 8px;
  transition: width 0.45s ease;  /* animation fluide */
}
.progress-text {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 20px;
  text-align: right;
  font-weight: 500;
}

/* --- CLASSEMENT --- */
.classement-screen {
  text-align: center;
}

/* --- MESSAGE D'ERREUR --- */
.erreur {
  background: #ffdddd;
  color: #a00;
  padding: 12px;
  border-left: 4px solid #e00;
  margin-bottom: 20px;
  border-radius: 4px;
}

