/* ============================================================
   NOUVEAU DEVIS — Stepper 3 étapes (mobile uniquement)
   Chargé via <link media="(max-width:768px)">
   ============================================================ */

/* ---- Indicateur d'étapes ---- */
.nd-stepper {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px 32px 4px;
}

.nd-step-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #9CA3AF;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    flex-shrink: 0;
    transition: background 0.22s, color 0.22s, transform 0.22s, box-shadow 0.22s;
    position: relative;
    z-index: 1;
}

.nd-step-dot.nd-step-active {
    background: var(--accent-orange, #FF6B00);
    color: #fff;
    transform: scale(1.18);
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.38);
}

.nd-step-dot.nd-step-done {
    background: var(--accent-success, #10B981);
    color: #fff;
}

.nd-step-line {
    flex: 1;
    height: 3px;
    background: #E5E7EB;
    border-radius: 2px;
    max-width: 64px;
    margin: 0 4px;
    transition: background 0.22s;
}

.nd-step-dot.nd-step-done + .nd-step-line {
    background: var(--accent-success, #10B981);
}

/* Libellé sous l'indicateur */
.nd-stepper-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 6px 0 18px;
    font-family: 'SF Pro Display', -apple-system, sans-serif;
}

/* ---- Panneaux d'étape ---- */
.nd-step-panel {
    display: none;
    animation: ndSlideIn 0.2s ease;
}

.nd-step-panel.nd-step-panel-active {
    display: block;
}

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

/* ---- Boutons de navigation entre étapes ---- */
.nd-step-nav {
    display: flex !important;
    gap: 12px;
    padding: 12px 16px 28px;
    align-items: center;
}

.nd-step-nav-end {
    justify-content: flex-end;
}

.nd-step-nav:not(.nd-step-nav-end) {
    justify-content: space-between;
}

.nd-nav-btn {
    flex: 1;
    height: 54px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: transform 0.12s, box-shadow 0.12s;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.01em;
}

.nd-nav-btn:active {
    transform: scale(0.97);
}

.nd-nav-next {
    background: var(--accent-orange, #FF6B00);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.32);
}

.nd-nav-prev {
    background: #F3F4F6;
    color: #374151;
    box-shadow: none;
    flex: 0.85;
}

.nd-nav-generate {
    background: var(--accent-success, #10B981);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.32);
}

/* ---- Masquer la DAB sur mobile (remplacée par nd-step-nav) ---- */
#nouveau-devis-page .dab,
#nouveau-devis-page .dab-page-spacer {
    display: none;
}
