/* ============================================
   47. WIZARD TRAVAUX SUR MESURE
   ============================================ */

/* Indicateur d'étapes */
.wizard-steps-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.wizard-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  flex-shrink: 0;
  transition: background 0.2s;
}
.wizard-step-dot.active {
  background: var(--primary-gold);
}
.wizard-step-dot.done {
  background: var(--gray-800);
}
.wizard-step-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  min-width: 20px;
}

/* Étapes wizard travaux (scopé pour ne pas casser le wizard emprunteur) */
#wizard-modal .wizard-step { display: none; }
#wizard-modal .wizard-step.active { display: block; }

/* Grille catégories étape 1 */
.wizard-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wizard-cat-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.875rem;
  line-height: 1.4;
}
.wizard-cat-item:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}
.wizard-cat-item input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gray-800);
}
.wizard-cat-label {
  font-size: 0.8125rem;
  color: var(--gray-700);
  font-weight: 500;
}
.wizard-hint {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

/* Lignes détail étape 2 */
.wizard-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.wizard-detail-row:last-child { border-bottom: none; }
.wizard-detail-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-800);
  min-width: 140px;
  padding-top: 6px;
}
.wizard-detail-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.wizard-quality-btns {
  display: flex;
  gap: 4px;
}
.wq-btn {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid var(--gray-200);
  background: white;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.15s;
}
.wq-btn:hover { border-color: var(--gray-400); color: var(--gray-700); }
.wq-btn.active {
  background: var(--gray-800);
  border-color: var(--gray-800);
  color: white;
}
.wizard-qty-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wizard-qty-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
}
.wz-qty {
  width: 70px;
  padding: 4px 8px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

/* Récap étape 3 */
.wizard-recap-table {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0;
}
.wizard-recap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
}
.wizard-recap-row:last-child { border-bottom: none; }
.wizard-recap-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--gray-800);
  font-weight: 500;
}
.wizard-recap-quality {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-500);
}
.wizard-recap-price {
  color: var(--gray-700);
  font-weight: 500;
  white-space: nowrap;
  margin-left: 12px;
}
.wizard-recap-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* CTA + badge sauvegardé */
.travaux-wizard-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.wizard-saved-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 4px 10px;
}

