.quiz-wrap {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1.25rem 3rem;
}

.quiz-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(61,40,112,0.12);
  padding: 2.5rem 2.5rem 2rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

/* Progress */
.quiz-progress-wrap { margin-bottom: 1.75rem; }

.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.quiz-progress-bloc {
  font-size: 0.72rem;
  color: #9B7EC8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.quiz-progress-count {
  font-size: 0.78rem;
  color: #9B7EC8;
}

.quiz-progress-bar-bg {
  height: 4px;
  background: #E8D5C0;
  border-radius: 2px;
}

.quiz-progress-bar {
  height: 4px;
  background: linear-gradient(90deg, #9B7EC8, #C89670);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Steps */
.quiz-step { display: none; flex-direction: column; flex: 1; animation: qFadeUp 0.25s ease; }
.quiz-step.active { display: flex; }

@keyframes qFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Question */
.quiz-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3D2870;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border: 2px solid #E8D5C0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
  background: #F5EEE2;
  font-size: 0.93rem;
  color: #3D2870;
  line-height: 1.4;
}

.quiz-option:hover { border-color: #9B7EC8; background: #fff; transform: translateX(3px); }
.quiz-option.selected { border-color: #3D2870; background: #fff; transform: translateX(3px); }

.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
  accent-color: #3D2870;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Scale Q3 */
.quiz-scale-wrap { flex: 1; }

.quiz-scale {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin: 0.5rem 0;
}

.quiz-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #9B7EC8;
  margin-top: 0.5rem;
  font-style: italic;
}

.quiz-scale-btn {
  width: 52px;
  height: 52px;
  border: 2px solid #E8D5C0;
  border-radius: 50%;
  background: #F5EEE2;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: #3D2870;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-scale-btn:hover { border-color: #9B7EC8; background: #fff; }
.quiz-scale-btn.selected { border-color: #3D2870; background: #3D2870; color: #fff; }

/* Nav */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #E8D5C0;
}

.quiz-btn-next {
  background: #C89670;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.7rem 2rem;
  font-size: 0.93rem;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.quiz-btn-next:hover:not(:disabled) { background: #A06848; }
.quiz-btn-next:disabled { opacity: 0.35; cursor: default; }

.quiz-btn-back {
  background: none;
  border: none;
  color: #9B7EC8;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.quiz-btn-back:hover { color: #3D2870; }

/* Intro */
.quiz-intro {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.quiz-intro-icon { font-size: 3.5rem; margin-bottom: 0.75rem; }

.quiz-intro h2 {
  font-size: 1.6rem;
  color: #3D2870;
  margin-bottom: 1rem;
  text-align: center;
}

.quiz-intro p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #3D2870;
  max-width: 420px;
  margin-bottom: 2rem;
  text-align: center;
}

/* Result */
.quiz-result {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0;
}

.quiz-result-icon { font-size: 3.5rem; margin-bottom: 0.75rem; }

.quiz-result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9B7EC8;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.quiz-result-titre {
  font-size: 1.6rem;
  font-weight: 700;
  color: #3D2870;
  margin-bottom: 1rem;
}

.quiz-result-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #3D2870;
  max-width: 480px;
  margin-bottom: 1.75rem;
  font-style: italic;
}

.quiz-result-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #C89670;
  color: #fff;
  border-radius: 30px;
  padding: 0.8rem 2.2rem;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: background 0.2s;
  margin-bottom: 1.25rem;
}

.quiz-result-cta:hover { background: #A06848; color: #fff; }

.quiz-restart {
  background: none;
  border: none;
  color: #9B7EC8;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: 0.5rem;
}

/* Teaser quiz dans la section offres */
.quiz-teaser {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E8D5C0;
}

.quiz-teaser-desc {
  font-size: 0.97rem;
  font-weight: 600;
  color: #3D2870;
  margin-bottom: 0.35rem;
}

.quiz-teaser-note {
  font-size: 0.82rem;
  color: #9B7EC8;
  font-style: italic;
  margin-bottom: 1.1rem;
}

@media (max-width: 600px) {
  .quiz-card { padding: 1.5rem 1.1rem 1.25rem; min-height: auto; }
  .quiz-question { font-size: 1rem; }
  .quiz-option { font-size: 0.88rem; padding: 0.7rem 0.9rem; }
  .quiz-scale-btn { width: 44px; height: 44px; font-size: 0.9rem; }
  .quiz-scale-labels { font-size: 0.7rem; }
}
