/* ============================================================
   BEWELL — Assistant de qualification (wizard)
   Utilise les tokens du site (style.css) : --navy, --coral,
   --green, --blue, --sand, --line, --r, --sh, --ease…
   ============================================================ */

.qwrap { max-width: 860px; }

/* ---------- Barre de progression ---------- */
.progress { display: flex; align-items: flex-start; justify-content: space-between; position: relative; margin-bottom: 36px; }
.progress::before { content: ""; position: absolute; top: 19px; left: 8%; right: 8%; height: 3px; background: var(--line); border-radius: 3px; z-index: 0; }
.progress-fill { position: absolute; top: 19px; left: 8%; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 3px; z-index: 1; transition: width .4s var(--ease); }
.progress-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.progress-dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; color: var(--muted); transition: .3s var(--ease); }
.progress-step.active .progress-dot { border-color: var(--blue); color: var(--navy); box-shadow: 0 0 0 5px rgba(143,183,239,.18); }
.progress-step.done .progress-dot { background: var(--green); border-color: var(--green); color: #fff; }
.progress-label { font-size: .78rem; color: var(--muted); font-weight: 500; text-align: center; font-family: var(--ff-head); }
.progress-step.active .progress-label { color: var(--navy); }

/* ---------- Étapes ---------- */
.step-panel { display: none; }
.step-panel.active { display: block; animation: qfade .35s var(--ease); }
@keyframes qfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.step-title { font-family: var(--ff-head); font-weight: 700; font-size: 1.4rem; color: var(--navy); margin-bottom: 4px; }
.step-desc { color: var(--body); margin-bottom: 26px; }

.q-block { margin-bottom: 28px; }
.q-label { display: block; font-family: var(--ff-head); font-weight: 600; font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.q-hint { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.q-req { color: var(--coral-600); }

/* ---------- Cartes d'option ---------- */
.options { display: grid; gap: 12px; }
.options.cols-2 { grid-template-columns: repeat(2, 1fr); }
.options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.options.cols-4 { grid-template-columns: repeat(4, 1fr); }

.option { position: relative; border: 2px solid var(--line); border-radius: var(--r); padding: 15px 16px; cursor: pointer; background: #fff; transition: .2s var(--ease); display: flex; flex-direction: column; gap: 3px; user-select: none; }
.option:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.option:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(143,183,239,.22); }
.option.selected { border-color: var(--blue); background: rgba(143,183,239,.12); }
.option.selected::after { content: "✓"; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; background: var(--green); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.option .opt-ico { font-size: 1.5rem; }
.option .opt-title { font-family: var(--ff-head); font-weight: 600; color: var(--navy); font-size: .96rem; }
.option .opt-sub { font-size: .8rem; color: var(--muted); }

/* ---------- Navigation ---------- */
.wizard-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; }
.wizard-nav .btn { cursor: pointer; }
.step-error { color: #B35A3C; background: #FDEEE9; border: 1.5px solid var(--coral); border-radius: var(--r); font-size: .9rem; padding: 12px 16px; margin-top: 16px; display: none; }
.step-error.show { display: block; }

/* ---------- Récapitulatif ---------- */
.recap { display: grid; gap: 0; margin-bottom: 24px; }
.recap-row { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recap-row dt { font-family: var(--ff-head); font-weight: 600; font-size: .88rem; color: var(--muted); }
.recap-row dd { color: var(--navy); font-weight: 500; }

/* ---------- Écran de confirmation ---------- */
.done-screen { text-align: center; padding: 20px 0; display: none; }
.done-screen.show { display: block; animation: qfade .4s var(--ease); }
.done-check { width: 80px; height: 80px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2.3rem; display: grid; place-items: center; margin: 0 auto 22px; }
.done-screen h2 { font-size: 1.7rem; color: var(--navy); }
.done-screen p { color: var(--body); max-width: 32em; margin: 12px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .options.cols-3, .options.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .recap-row { grid-template-columns: 1fr; gap: 2px; }
  .progress-label { display: none; }
  .progress::before, .progress-fill { left: 6%; right: 6%; }
}
