/* ==========================================================================
   PAGE MON-PROJET — Quiz de qualification client
   Mode test : non listé dans le menu, formulaire non actif.
   ========================================================================== */

/* ── Bannière test ─────────────────────────────────────────────────────── */
.quiz-test-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFF4E0;
  color: #7A4A23;
  border-bottom: 1px solid rgba(169, 120, 69, 0.25);
  font-family: var(--font-texte);
  font-size: 14px;
  text-align: center;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.quiz-test-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E89A3C;
  box-shadow: 0 0 0 4px rgba(232, 154, 60, 0.25);
  animation: quiz-pulse 1.6s ease-in-out infinite;
}
@keyframes quiz-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ── Hero compact ──────────────────────────────────────────────────────── */
.quiz-hero {
  min-height: 56vh;
}
/* Le hero suit l'alignement à gauche commun (cf. style.css .page-hero .hero-content)
   pour rester cohérent avec accueil / accompagnements / réalisations. */
.page-mon-projet .quiz-section .container,
.page-mon-projet .quiz-wrap {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ── Section quiz ──────────────────────────────────────────────────────── */
.quiz-section .container {
  max-width: 780px;
}
.quiz-wrap {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  padding: 48px 44px 40px;
  margin-top: -120px;
  position: relative;
  z-index: 2;
}

/* ── Progress ──────────────────────────────────────────────────────────── */
.quiz-progress {
  height: 6px;
  background: var(--lin);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--bronze), var(--bronze-deep));
  border-radius: 999px;
  transition: width 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.quiz-progress__label {
  font-family: var(--font-texte);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 12px 0 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Steps (slides) ────────────────────────────────────────────────────── */
.quiz-step {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
  animation: quiz-fade 360ms ease;
}
.quiz-step.is-active {
  display: block;
}
@keyframes quiz-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quiz-step__title {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--noir);
  display: block;
  margin-bottom: 8px;
}
.quiz-step__hint {
  font-family: var(--font-texte);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* ── Options ───────────────────────────────────────────────────────────── */
.quiz-options {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.quiz-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1.5px solid var(--lin);
  border-radius: var(--radius-m);
  background: #fff;
  cursor: pointer;
  transition: border-color 220ms ease, background-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.quiz-option:hover {
  border-color: var(--bronze);
  background: #FBF8F3;
  transform: translateY(-1px);
}
.quiz-option:has(input:checked) {
  border-color: var(--bronze);
  background: #FBF6EE;
  box-shadow: 0 8px 22px -14px var(--bronze-glow);
}
.quiz-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--bronze);
  margin: 0;
}
.quiz-option__emoji {
  font-size: 28px;
  grid-column: 1;
  line-height: 1;
}
.quiz-option:has(.quiz-option__emoji) {
  grid-template-columns: auto auto 1fr;
}
.quiz-option__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quiz-option__text strong {
  font-family: var(--font-texte);
  font-weight: 600;
  font-size: 16px;
  color: var(--noir);
}
.quiz-option__text small {
  font-family: var(--font-texte);
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ── Navigation ────────────────────────────────────────────────────────── */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}
.quiz-nav .btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Résultat ──────────────────────────────────────────────────────────── */
.quiz-result {
  text-align: left;
}
.quiz-result .eyebrow {
  margin-bottom: 8px;
}
.quiz-result .title-lg {
  margin: 0 0 12px;
}
.quiz-result-card {
  background: linear-gradient(135deg, #1A1A1A 0%, #2A2018 100%);
  color: #fff;
  border-radius: var(--radius-m);
  padding: 28px 28px 26px;
  margin: 28px 0 24px;
  position: relative;
  overflow: hidden;
}
.quiz-result-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--bronze-glow) 0%, transparent 70%);
  pointer-events: none;
}
.quiz-result-card__label {
  font-family: var(--font-texte);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 8px;
}
.quiz-result-card__title {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  margin: 0 0 8px;
  color: #fff;
}
.quiz-result-card__desc {
  font-family: var(--font-texte);
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0;
}

/* ── Formulaire final ──────────────────────────────────────────────────── */
.quiz-form-intro {
  font-family: var(--font-texte);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 8px 0 22px;
}
.quiz-form {
  display: grid;
  gap: 14px;
}
.quiz-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.quiz-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-texte);
}
.quiz-form-field > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--noir);
}
.quiz-form-field > span em {
  font-weight: 400;
  color: var(--ink-soft);
}
.quiz-form-field input,
.quiz-form-field textarea {
  font-family: var(--font-texte);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--lin);
  border-radius: 12px;
  background: #fff;
  color: var(--noir);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.quiz-form-field input:focus,
.quiz-form-field textarea:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 4px var(--bronze-glow);
}
.quiz-form-actions {
  margin-top: 10px;
}

/* ── Confirmation mode test ────────────────────────────────────────────── */
.quiz-confirm__card {
  background: #FBF8F3;
  border: 1.5px dashed var(--bronze);
  border-radius: var(--radius-m);
  padding: 28px 26px;
}
.quiz-confirm__preview {
  background: #1A1A1A;
  color: #F6F3EE;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
  padding: 18px 20px;
  border-radius: 12px;
  white-space: pre-wrap;
  margin: 16px 0 20px;
  max-height: 360px;
  overflow: auto;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .quiz-wrap {
    padding: 32px 22px 28px;
    margin-top: -80px;
    border-radius: var(--radius-m);
  }
  .quiz-option {
    padding: 14px 16px;
    gap: 12px;
  }
  .quiz-option__emoji {
    font-size: 22px;
  }
  .quiz-form-row {
    grid-template-columns: 1fr;
  }
  .quiz-nav {
    flex-direction: column-reverse;
  }
  .quiz-nav .btn {
    width: 100%;
  }
}
