/* css/panier.css */
/* Styles pour le badge de compteur */
.devis-fixed-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

#devis-counter {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #dc3545;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
}

/* Styles pour les notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-left: 4px solid;
}

.notification.success .notification-content {
    border-left-color: #28a745;
}

.notification.error .notification-content {
    border-left-color: #dc3545;
}

.notification.info .notification-content {
    border-left-color: #17a2b8;
}

.notification-message {
    flex: 1;
    margin-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Styles pour la modal de devis */
#devisModal .modal-content {
    border-radius: 12px;
}

.panier-item {
    padding: 10px 0;
}

.panier-item img {
    max-width: 60px;
    height: auto;
    object-fit: cover;
}

.empty-cart-message {
    color: #6c757d;
}

.quantity-input-group {
    width: auto;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #dee2e6;
    padding: 0;
}

.quantity-input {
    height: 32px;
    border-left: none;
    border-right: none;
    padding: 0;
    text-align: center;
    width: 40px;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
}

@media (max-width: 576px) {
    .notification {
        min-width: unset;
        width: calc(100% - 40px);
    }
    
    .panier-item .col-3 {
        padding-right: 5px;
    }
    
    .panier-item .col-5 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .panier-item .col-4 {
        padding-left: 5px;
    }
}

/* Styles pour les étapes du formulaire */
.devis-step {
    transition: opacity 0.3s ease;
}

/* Alignement des boutons dans le modal footer */
.modal-footer > div {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Responsive pour les petits écrans */
@media (max-width: 576px) {
    .modal-footer > div {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}