body {
  font-family: Inter, Arial, sans-serif;
}

table td {
  vertical-align: middle;
}

.container {
  max-width: 1200px;
}

@media print {
  body {
    display: none !important;
  }
}

/* ---------- Choices ---------- */
.choice-label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.choice-label input {
  margin-right: 8px;
}

.choice-label .icon {
  margin-left: 8px;
  font-weight: bold;
  font-size: 1.1em;
}

.choice-label.wrong .icon {
  color: #f44336;
}

.choice-label.correct .icon {
  color: #4caf50;
}

/* barre sur mauvaise réponse */
.choice-label.wrong {
  text-decoration: line-through;
}

/* cursor et opacity pour désactivé */
.choice-label input:disabled + span,
.choice-label input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* ---------- Progress ---------- */
#progress {
  margin-bottom: 15px;
}

#progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25px, 1fr));
  gap: 4px;
  margin-top: 5px;
}

.progress-item {
  width: 100%;
  height: 25px;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  border-radius: 3px;
}

.progress-item.correct {
  background: #4caf50;
  color: #fff;
}

.progress-item.wrong {
  background: #f44336;
  color: #fff;
}

.progress-item.answered {
  background: #2196f3; /* bleu pour exam mode */
  color: #fff;
}

.progress-item.unanswered {
  background: #e0e0e0;
  color: #555;
}

.progress-item.current {
  border: 2px solid #ff9800;
}

/* ---------- Navigation ---------- */
.nav-footer {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.nav-footer button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

#validateBtn {
  background: #ff9800;
  color: #fff;
  flex: 1;
}

#prevBtn,
#nextBtn,
#submitBtn {
  background: #1976d2;
  color: #fff;
}

#prevBtn:hover:not(:disabled),
#nextBtn:hover:not(:disabled),
#submitBtn:hover:not(:disabled),
#validateBtn:hover:not(:disabled) {
  filter: brightness(0.9);
}

/* ---------- Validation alert ---------- */
#validation-alert {
  font-size: 0.9em;
  color: #f44336;
  min-height: 18px;
}

/* ---------- navbar ---------- */

.navbar-nav .nav-link.active {
  font-weight: 600;
  border-bottom: 2px solid currentColor;
}

/* For site (light) navbar */
.navbar-light .nav-link.active {
  color: #0d6efd !important; /* Bootstrap primary color */
}

/* For admin (dark) navbar */
.navbar-dark .nav-link.active {
  color: #ffc107 !important; /* Bootstrap warning color */
  border-bottom-color: #ffc107 !important;
}

/* Optional hover effect for all */
.navbar-nav .nav-link:hover {
  opacity: 0.85;
}

/* ---------- faq ---------- */

.accordion-button:focus {
  box-shadow: none;
}
.accordion-button:not(.collapsed) {
  color: #0d6efd;
  background-color: #e9f3ff;
  font-weight: 600;
}
