/* ---------- MULTI-STEP PROGRESS BAR ---------- */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    padding: 0 10px;
}
.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #e0ddd8;
    transform: translateY(-50%);
    z-index: 0;
}
.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0ddd8;
    color: #6a6a6a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    transition: 0.3s;
    cursor: default;
}
.progress-step.active {
    background: #f5b342;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(245, 179, 66, 0.3);
}
.progress-step.done {
    background: #a57b3f;
    color: #fff;
}

/* ---------- FORM STEP CONTENT ---------- */
.form-step-content {
    display: none;
    animation: fadeStep 0.3s ease;
}

.form-step-content.active {
    display: block;
}

@keyframes fadeStep {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---------- FORM NAVIGATION ---------- */
.form-navigation {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.form-navigation .btn {
    min-width: 140px;
    justify-content: center;
}
.form-navigation .btn-prev {
    background: transparent;
    border: 2px solid #ddd9d2;
    color: #ddd9d2;
}
.form-navigation .btn-prev:hover {
    border-color: #a57b3f;
    color: #a57b3f;
}

/* ---------- VEHICLE GRID (réduit) ---------- */
.vehicle-grid.reduced {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

/* ---------- ENFANTS DYNAMIQUES ---------- */
.child-age-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e8e5e0;
}
.child-age-group label {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}
.child-age-group input {
    width: 70px;
    padding: 6px 10px;
    border: 1px solid #ddd9d2;
    border-radius: 8px;
    font-size: 0.9rem;
}
.child-age-group .remove-child {
    background: none;
    border: none;
    color: #c0392b;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
}
.btn-add-child {
    background: none;
    border: 1px dashed #c5bfb8;
    border-radius: 10px;
    padding: 6px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}
.btn-add-child:hover {
    border-color: #f5b342;
    background: rgba(245, 179, 66, 0.05);
}

/* ---------- PASSAGERS & BAGAGES : style en lignes ---------- */
.passengers-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 8px;
}

.passenger-item {
    background: #fff;
    padding: 16px 12px;
    border-radius: 16px;
    border: 1px solid #e8e5e0;
    text-align: center;
    transition: 0.2s;
}
.passenger-item:hover {
    border-color: #f5b342;
}
.passenger-item label {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 8px;
}
.passenger-item .quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.passenger-item .qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d0ccc6;
    background: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e1e1e;
}
.passenger-item .qty-btn:hover {
    border-color: #f5b342;
    background: #f5b342;
    color: #fff;
}
.passenger-item .qty-btn:active {
    transform: scale(0.95);
}
.passenger-item .qty-value {
    font-weight: 700;
    font-size: 1.3rem;
    min-width: 30px;
    text-align: center;
}
.passenger-item small {
    margin-top: 4px;
    font-size: 0.7rem;
    color: #6a6a6a;
}

.bagages-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bagage-item {
    background: #fff;
    padding: 14px 12px;
    border-radius: 16px;
    border: 1px solid #e8e5e0;
    text-align: center;
    transition: 0.2s;
}
.bagage-item:hover {
    border-color: #f5b342;
}
.bagage-item label {
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}
.bagage-item .quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.bagage-item .qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #d0ccc6;
    background: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e1e1e;
}
.bagage-item .qty-btn:hover {
    border-color: #f5b342;
    background: #f5b342;
    color: #fff;
}
.bagage-item .qty-value {
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 28px;
    text-align: center;
}

/* ---------- TOGGLE SWITCH pour aller-retour ---------- */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    font-weight: 500;
    color: #1e1e1e;
    user-select: none;
    padding: 8px 0;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 28px;
    background: #ddd9d2;
    border-radius: 30px;
    transition: 0.3s ease;
    flex-shrink: 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: #f5b342;
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(22px);
}

.toggle-switch:hover .toggle-slider {
    box-shadow: 0 0 0 4px rgba(245, 179, 66, 0.15), inset 0 1px 3px rgba(0,0,0,0.1);
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d2d2d;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .progress-bar { padding: 0 5px; }
    .progress-step { width: 32px; height: 32px; font-size: 0.75rem; }
    .vehicle-grid.reduced { max-width: 100%; }
    .form-navigation .btn { min-width: 100px; }
    .passengers-row,
    .bagages-row {
        grid-template-columns: 1fr 1fr;
    }
    .toggle-slider {
        width: 44px;
        height: 24px;
    }
    .toggle-slider::after {
        width: 18px;
        height: 18px;
        top: 3px;
        left: 3px;
    }
    .toggle-switch input:checked + .toggle-slider::after {
        transform: translateX(20px);
    }
}

@media (max-width: 480px) {
    .passengers-row,
    .bagages-row {
        grid-template-columns: 1fr;
    }
    .toggle-slider {
        width: 40px;
        height: 22px;
    }
    .toggle-slider::after {
        width: 16px;
        height: 16px;
        top: 3px;
        left: 3px;
    }
    .toggle-switch input:checked + .toggle-slider::after {
        transform: translateX(18px);
    }
    .toggle-label {
        font-size: 0.85rem;
    }
}

