/* ── Wizard steps indicator ── */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.ws-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 160px;
}

.ws-step::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}
.ws-step:last-child::before { display: none; }

.ws-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: background .3s, color .3s;
}

.ws-step.active .ws-circle,
.ws-step.done .ws-circle {
    background: #0d6efd;
    color: #fff;
}

.ws-label {
    font-size: .78rem;
    color: #6c757d;
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
}
.ws-step.active .ws-label { color: #0d6efd; font-weight: 600; }

/* ── Form panels ── */
.devis-panel { display: none; }
.devis-panel.active { display: block; animation: fadeInUp .3s ease; }

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

/* ── Type toggle (Devis / Bon de commande) ── */
.type-toggle { display: flex; gap: 12px; }
.type-btn {
    flex: 1;
    padding: 16px 12px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}
.type-btn:hover { border-color: #0d6efd; }
.type-btn.selected {
    border-color: #0d6efd;
    background: #f0f5ff;
}
.type-btn .tb-icon { font-size: 1.8rem; color: #0d6efd; display: block; margin-bottom: 6px; }
.type-btn .tb-title { font-weight: 700; font-size: .95rem; color: #1e2d3d; }
.type-btn .tb-desc  { font-size: .78rem; color: #6c757d; margin-top: 2px; }

/* ── Service selector ── */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.svc-btn {
    padding: 14px 10px;
    border: 2px solid #e8edf3;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}
.svc-btn:hover { border-color: #0d6efd; }
.svc-btn.selected { border-color: #0d6efd; background: #f0f5ff; }
.svc-btn .svc-icon { font-size: 1.5rem; color: #0d6efd; display: block; margin-bottom: 6px; }
.svc-btn .svc-name { font-size: .8rem; font-weight: 600; color: #334155; }

/* ── Dynamic fields ── */
.dyn-fields { display: none; }
.dyn-fields.visible { display: block; animation: fadeInUp .25s ease; }

/* ── Summary card ── */
.summary-card {
    background: #f7f9fc;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 24px;
}
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #e8edf3; font-size: .9rem; }
.summary-row:last-child { border: none; }
.summary-key { color: #6c757d; }
.summary-val { font-weight: 600; color: #1e2d3d; }

/* ── Success panel ── */
.success-panel {
    text-align: center;
    padding: 50px 20px;
}
.success-panel .sp-check {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #28a745;
}

/* ── Responsive ── */
@media (max-width: 576px) {
    .type-toggle { flex-direction: column; }
    .ws-label { display: none; }
}
