/* ===== BOOKING SYSTEM STYLES ===== */

/* Container principal */
.reservation-container {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(254, 161, 22, 0.1);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Header de réservation */
.reservation-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.reservation-header h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    font-family: 'Nunito', sans-serif;
}

.reservation-header p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    font-family: 'Heebo', sans-serif;
}

/* Barre de progression */
.progress {
    background-color: #e9ecef;
    border-radius: 8px;
    height: 4px !important;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.progress-bar-custom {
    background: linear-gradient(135deg, #FEA116, #ff8c00);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-bar-custom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Étapes */
.step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step.active {
    display: block;
}

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

/* Header des étapes */
.step-header {
    margin-bottom: 1.15rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 10px;
    border-left: 3px solid #FEA116;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.step-header h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
    font-family: 'Nunito', sans-serif;
}

.step-header p {
    color: #6c757d;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-family: 'Heebo', sans-serif;
}

.step-header small {
    color: #17a2b8;
    font-weight: 500;
    font-size: 0.75rem;
    font-family: 'Heebo', sans-serif;
}

/* Formulaires */
.form-floating {
    position: relative;
    margin-bottom: 0.75rem;
}

.form-floating label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.8rem;
    font-family: 'Heebo', sans-serif;
}

.form-control,
.form-select {
    height: calc(2.2rem + 2px);
    font-size: 0.825rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid #ced4da;
    border-radius: 7px;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

.form-control:focus,
.form-select:focus {
    border-color: #FEA116;
    box-shadow: 0 0 0 0.15rem rgba(254, 161, 22, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.25);
}

/* Affichage des prix */
.price-display {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.price-display:hover {
    border-color: #FEA116;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 161, 22, 0.15);
}

.price-label {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Heebo', sans-serif;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    font-family: 'Nunito', sans-serif;
}

.total-price {
    color: #FEA116 !important;
    font-size: 1.8rem !important;
    font-family: 'Nunito', sans-serif;
}

/* Boutons de navigation */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.btn-custom {
    padding: 0.55rem 1.5rem;
    font-weight: 600;
    border-radius: 7px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.8rem;
    font-family: 'Nunito', sans-serif;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #FEA116, #ff8c00);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(254, 161, 22, 0.3);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #ff8c00, #FEA116);
    box-shadow: 0 8px 25px rgba(254, 161, 22, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid #FEA116;
    color: #FEA116;
}

.btn-outline-custom:hover {
    background: #FEA116;
    color: white;
    box-shadow: 0 6px 20px rgba(254, 161, 22, 0.3);
    transform: translateY(-2px);
}

/* Animations pour les champs */
.form-floating input:focus + label,
.form-floating select:focus + label,
.form-floating textarea:focus + label {
    color: #FEA116;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Styles pour les groupes d'options */
optgroup {
    font-weight: 600;
    color: #2c3e50;
    background-color: #f8f9fa;
}

optgroup option {
    font-weight: 400;
    color: #6c757d;
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .reservation-container {
        padding: 1.25rem;
        margin: 0.75rem;
        padding-top: 1.25rem;
    }
    
    .reservation-header h2 {
        font-size: 1.4rem;
    }
    
    .step-header {
        padding: 1rem;
    }
    
    .step-header h3 {
        font-size: 1.05rem;
    }
    
    .step-header p {
        font-size: 0.85rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 0.65rem;
        margin-top: 1.25rem;
        padding-top: 1rem;
    }
    
    .btn-custom {
        width: 100%;
        padding: 0.65rem;
        font-size: 0.8rem;
    }
    
    .price-display {
        margin-bottom: 0.65rem;
    }
    
    .form-control,
    .form-select {
        height: calc(2.2rem + 2px);
        font-size: 0.825rem;
    }
    
    .form-floating label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .reservation-container {
        padding: 1rem;
        margin: 0.5rem;
        padding-top: 1rem;
        border-radius: 12px;
    }
    
    .reservation-header {
        margin-bottom: 1rem;
    }
    
    .reservation-header h2 {
        font-size: 1.2rem;
    }
    
    .step-header {
        padding: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .step-header h3 {
        font-size: 1rem;
    }
    
    .step-header p {
        font-size: 0.8rem;
    }
    
    .step-header small {
        font-size: 0.75rem;
    }
    
    .form-control,
    .form-select {
        height: calc(2.15rem + 2px);
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .form-floating label {
        font-size: 0.75rem;
    }
    
    .btn-custom {
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    
    .progress {
        height: 4px !important;
        margin-bottom: 1.25rem;
    }
}

/* Styles pour les champs cachés */
input[type="hidden"] {
    display: none;
}

/* Amélioration des icônes */
.form-floating label i {
    margin-right: 0.4rem;
    color: #FEA116;
    font-size: 0.85rem;
}

/* Styles pour les messages d'information */
.text-muted {
    font-size: 0.75rem;
    line-height: 1.3;
}

.text-muted i {
    color: #17a2b8;
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

/* Animation pour les étapes */
.step {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.step.active {
    opacity: 1;
    transform: translateX(0);
}

/* Styles pour les alertes */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Styles pour les conteneurs de champs conditionnels */
#numeroMobileContainer {
    transition: all 0.3s ease;
}

#numeroMobileContainer.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

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

/* Amélioration des selects */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23FEA116' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* Styles pour les champs en lecture seule */
input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Amélioration des textareas */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-size: 0.825rem;
    padding: 0.65rem;
    border-radius: 7px;
    border: 1px solid #ced4da;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

textarea.form-control:focus {
    border-color: #FEA116;
    box-shadow: 0 0 0 0.15rem rgba(254, 161, 22, 0.25);
}

/* Réduction de l'espacement général */
.row.g-1 > * {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.row.g-2 > * {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

/* Optimisation des marges */
.col-12 {
    margin-bottom: 0.3rem;
}

/* Réduction de l'espacement des groupes de prix */
.row.g-1 .col-md-6,
.row.g-2 .col-md-6 {
    margin-bottom: 0.3rem;
}

/* Optimisation des champs de formulaire */
.form-floating {
    margin-bottom: 0.25rem;
}

/* Réduction de l'espacement des messages d'information */
.text-muted {
    font-size: 0.7rem;
    line-height: 1.15;
    margin-top: 0.15rem;
}

/* Optimisation des petits écrans */
@media (max-width: 992px) {
    .reservation-container {
        max-width: 100%;
        margin: 0.5rem;
    }
}

/* Animation pour les boutons */
.btn-custom {
    position: relative;
    overflow: hidden;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-custom:hover::before {
    left: 100%;
}

/* ===== STYLES POUR LE CHAMP DE PREUVE DE PAIEMENT ===== */

/* Style pour le champ de fichier */
input[type="file"] {
    padding: 0.6rem;
    border: 2px dashed #FEA116;
    border-radius: 7px;
    background: linear-gradient(135deg, #fff8f0, #ffffff);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    font-size: 0.8rem;
}

input[type="file"]:hover {
    border-color: #ff8c00;
    background: linear-gradient(135deg, #fff5e6, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(254, 161, 22, 0.2);
}

input[type="file"]:focus {
    border-color: #FEA116;
    box-shadow: 0 0 0 0.15rem rgba(254, 161, 22, 0.25);
    outline: none;
}

/* Style pour le label du champ de fichier */
input[type="file"] + label {
    color: #FEA116;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Animation pour le champ de preuve de paiement */
#preuvePaiementContainer {
    animation: slideIn 0.5s ease-out;
}

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

/* Style pour le texte d'aide */
#preuvePaiementContainer small {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

/* Style pour l'icône de caméra */
#preuvePaiementContainer .fas.fa-camera {
    color: #FEA116;
    margin-right: 0.5rem;
}

/* ===== ANIMATION DE MISE À JOUR DU PRIX ===== */

.price-updated {
    animation: priceUpdate 0.6s ease-out;
}

@keyframes priceUpdate {
    0% {
        transform: scale(1);
        color: #2c3e50;
    }
    50% {
        transform: scale(1.1);
        color: #FEA116;
    }
    100% {
        transform: scale(1);
        color: #2c3e50;
    }
}

/* Style pour le select désactivé pendant le chargement */
select:disabled {
    background-color: #f0f0f0;
    cursor: wait;
    opacity: 0.7;
}

/* ===== STYLES POUR LA CARTE DE STOCK ===== */

#stockInfo {
    animation: fadeInUp 0.5s ease-out;
}

/* Style pour le titre de la section prix */
.section-title-price {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    padding: 0.6rem 0;
    text-align: center;
    width: 100%;
    display: block;
    margin: 0 0 0.85rem 0;
}

.section-title-price i {
    color: #FEA116;
    font-size: 1rem;
}

#stockInfo .card {
    border: 1px solid rgba(254, 161, 22, 0.2) !important;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#stockInfo .card:hover {
    box-shadow: 0 6px 20px rgba(254, 161, 22, 0.15) !important;
    transform: translateY(-2px);
}

#stockInfo .card-body {
    padding: 1rem;
}

#stockInfo .card-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.85rem;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.65rem;
    font-family: 'Nunito', sans-serif;
}

#stockInfo .card-title i {
    color: #FEA116;
}

#stockInfo .alert {
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0;
    font-family: 'Heebo', sans-serif;
}

#stockInfo .alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

#stockInfo .alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

#stockInfo .alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#stockInfo .text-success {
    color: #28a745 !important;
    font-weight: 700;
}

#stockInfo .text-muted {
    color: #6c757d !important;
}

#stockInfo .d-flex i {
    color: #FEA116;
}

#stockInfo p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #495057;
    font-family: 'Heebo', sans-serif;
}

#stockInfo strong {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.85rem;
}

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

/* Responsive pour la carte de stock */
@media (max-width: 768px) {
    #stockInfo .card-body {
        padding: 0.85rem;
    }
    
    #stockInfo .card-title {
        font-size: 0.95rem;
    }
    
    #stockInfo p,
    #stockInfo .alert {
        font-size: 0.8rem;
    }
    
    .section-title-price {
        font-size: 1rem;
    }
}

/* ===== STYLES POUR LA LISTE DES ARTICLES ===== */

#listeArticles {
    animation: fadeInUp 0.5s ease-out;
}

#listeArticles .card {
    border: 1px solid rgba(254, 161, 22, 0.2) !important;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#listeArticles .card-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.75rem;
    font-family: 'Nunito', sans-serif;
}

#listeArticles .card-title i {
    color: #FEA116;
}

#listeArticles .table {
    margin-bottom: 0;
}

#listeArticles .table thead {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

#listeArticles .table tbody tr {
    transition: background-color 0.3s ease;
}

#listeArticles .table tbody tr:hover {
    background-color: #f8f9fa;
}

#listeArticles .badge {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

#listeArticles .btn-danger {
    transition: all 0.3s ease;
}

#listeArticles .btn-danger:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Style pour le bouton Ajouter */
#btnAjouterArticle {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
    border-radius: 7px;
}

#btnAjouterArticle:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(40, 167, 69, 0.4);
}

#btnAjouterArticle:active {
    transform: translateY(0);
}

#btnAjouterArticle i {
    font-size: 0.9rem;
}

/* Responsive pour la liste des articles */
@media (max-width: 768px) {
    #listeArticles .table {
        font-size: 0.85rem;
    }
    
    #listeArticles .table th,
    #listeArticles .table td {
        padding: 0.5rem;
    }
}

/* ===== PANNEAU RÉSUMÉ DE COMMANDE (MODERNE) ===== */

.order-summary-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid rgba(254, 161, 22, 0.1);
    transition: all 0.3s ease;
}

.order-summary-container:hover {
    box-shadow: 0 15px 50px rgba(254, 161, 22, 0.2);
}

/* Header du résumé */
.order-summary-header {
    background: linear-gradient(135deg, #FEA116, #ff8c00);
    padding: 1.5rem;
    color: white;
    text-align: center;
}

.order-summary-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-family: 'Nunito', sans-serif;
}

.order-summary-header p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Badge compteur articles */
.articles-badge {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
    border-bottom: 2px dashed #e9ecef;
}

.articles-badge span {
    display: inline-block;
    background: #FEA116;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    line-height: 35px;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Liste des articles (résumé) - Format tableau compact */
.order-summary-list {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    background: #fafbfc;
}

.order-summary-list::-webkit-scrollbar {
    width: 5px;
}

.order-summary-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.order-summary-list::-webkit-scrollbar-thumb {
    background: #FEA116;
    border-radius: 5px;
}

.order-summary-list::-webkit-scrollbar-thumb:hover {
    background: #ff8c00;
}

/* Tableau des articles */
.order-table {
    margin: 0;
    font-size: 0.9rem;
    width: 100%;
}

.order-table thead {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    position: sticky;
    top: 0;
    z-index: 10;
}

.order-table thead th {
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #FEA116;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.order-table tbody tr:hover {
    background-color: rgba(254, 161, 22, 0.05);
}

.order-table tbody td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

.order-table .article-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-table .qty-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FEA116, #ff8c00);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 30px;
    text-align: center;
}

.order-table .article-price {
    font-weight: 700;
    color: #28a745;
    font-size: 0.95rem;
}

.order-table .btn-remove-small {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.order-table .btn-remove-small:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* État vide */
.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-cart i {
    opacity: 0.3;
}

.empty-cart p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Détails des prix */
.pricing-details {
    background: white;
    padding: 1.5rem;
    border-top: 3px solid #f8f9fa;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
}

.pricing-row span {
    color: #6c757d;
    font-weight: 500;
}

.pricing-row strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.pricing-row.total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #FEA116;
}

.pricing-row.total span {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.2rem;
}

.pricing-row.total strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FEA116;
}

.pricing-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #e9ecef, transparent);
    margin: 0.5rem 0;
}

/* Info supplémentaire */
.order-info {
    background: linear-gradient(135deg, #fff8f0, #ffffff);
    padding: 1rem;
    text-align: center;
    color: #6c757d;
    border-top: 1px solid #f8f9fa;
}

.order-info i {
    color: #FEA116;
}

/* Responsive */
@media (max-width: 991px) {
    .order-summary-container {
        margin-top: 2rem;
        position: static !important;
        top: auto !important;
    }
    
    .order-summary-list {
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .order-summary-header h3 {
        font-size: 1.2rem;
    }
    
    .order-item-name {
        font-size: 0.95rem;
    }
    
    .pricing-row {
        font-size: 0.9rem;
    }
    
    .pricing-row strong {
        font-size: 1rem;
    }
    
    .pricing-row.total strong {
        font-size: 1.3rem;
    }
}

/* ===== BOUTON PANIER FLOTTANT STICKY ===== */

.cart-floating-btn {
    position: sticky;
    top: 20px;
    float: right;
    margin-top: -55px;
    margin-right: 8px;
    margin-bottom: 18px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #FEA116, #ff8c00);
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(254, 161, 22, 0.4);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Animation quand le bouton devient sticky pendant le scroll */
.cart-floating-btn.scrolling {
    box-shadow: 0 10px 35px rgba(254, 161, 22, 0.6);
    transform: scale(1.05);
}

.cart-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(254, 161, 22, 0.6);
}

.cart-floating-btn:active {
    transform: scale(0.95);
}

.cart-floating-btn i {
    color: white;
    font-size: 1.6rem;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2.5px solid white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    animation: bounce 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(254, 161, 22, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(254, 161, 22, 0.6);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ===== MODAL PANIER PREMIUM ===== */

#cartModal .modal-dialog {
    max-width: 550px;
}

.cart-modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
    background: #ffffff;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header Premium */
.cart-modal-header {
    background: linear-gradient(135deg, #FEA116 0%, #ff8c00 100%);
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.cart-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cart-modal-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cart-icon-wrapper {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.cart-icon-wrapper i {
    font-size: 1.35rem;
    color: white;
}

.cart-modal-header h4 {
    color: white;
    font-family: 'Nunito', sans-serif;
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
}

.cart-modal-header small {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
}

/* Body */
.cart-modal-body {
    background: #f8f9fa;
    min-height: 250px;
}

/* Section Articles */
.cart-section-wrapper {
    padding: 1.25rem 1.5rem;
    background: white;
}

.cart-section-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid #f0f0f0;
}

.cart-section-header h6 {
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
}

/* Container des articles */
.cart-items-container {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.cart-items-container::-webkit-scrollbar {
    width: 8px;
}

.cart-items-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cart-items-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FEA116, #ff8c00);
    border-radius: 10px;
}

.cart-items-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8c00, #FEA116);
}

/* Empty state premium */
.empty-cart-premium {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.empty-cart-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.empty-cart-icon i {
    font-size: 2.5rem;
    color: #adb5bd;
}

.empty-cart-premium h5 {
    color: #495057;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
}

.empty-cart-premium p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Section Résumé */
.cart-summary-section {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

.cart-summary-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    color: #2c3e50;
}

.cart-summary-header i {
    font-size: 1.1rem;
    color: #FEA116;
}

.cart-summary-header h6 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
}

.cart-summary-details {
    background: white;
    padding: 1.25rem;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
}

.summary-label {
    display: flex;
    align-items: center;
    color: #495057;
    font-size: 0.9rem;
}

.summary-label i {
    font-size: 1rem;
}

.summary-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.summary-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #FEA116, transparent);
    margin: 0.5rem 0;
}

.summary-total {
    padding-top: 0.85rem;
    border-top: 2px dashed #e9ecef;
    margin-top: 0.5rem;
}

.summary-total .summary-label {
    font-size: 1.05rem;
}

.total-amount {
    font-size: 1.45rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FEA116, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Nunito', sans-serif;
}

.summary-info-box {
    background: linear-gradient(135deg, #fff8f0, #ffffff);
    padding: 0.85rem;
    border-radius: 10px;
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    border-left: 4px solid #FEA116;
}

.summary-info-box i {
    color: #FEA116;
    font-size: 1rem;
}

.summary-info-box small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Footer */
.cart-modal-footer {
    background: white;
    padding: 1.15rem 1.5rem;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.05);
}

.cart-modal-footer .btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Compteur articles */
.cart-items-count {
    background: white;
    padding: 1rem 1.5rem;
    border-bottom: 2px dashed #e9ecef;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
    font-family: 'Nunito', sans-serif;
}

.cart-items-count i {
    color: #FEA116;
}

.cart-items-count span {
    color: #FEA116;
    font-size: 1.3rem;
}

/* Liste des articles */
.cart-items-list {
    padding: 1rem;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-items-list::-webkit-scrollbar {
    width: 6px;
}

.cart-items-list::-webkit-scrollbar-track {
    background: #e9ecef;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: #FEA116;
    border-radius: 3px;
}

/* Article item dans le panier - Style Premium */
.cart-item {
    background: white;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

.cart-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #FEA116, #ff8c00);
}

.cart-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(254, 161, 22, 0.2);
    border-color: #FEA116;
}

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

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.cart-item-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1rem;
    flex: 1;
    font-family: 'Nunito', sans-serif;
    line-height: 1.4;
}

.cart-item-remove {
    background: #fee;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 1rem;
}

.cart-item-remove:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.cart-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px dashed #e9ecef;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-item-quantity i {
    color: #6c757d;
    font-size: 0.95rem;
}

.cart-item-quantity-badge {
    background: linear-gradient(135deg, #FEA116, #ff8c00);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 18px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(254, 161, 22, 0.3);
}

.cart-item-price {
    font-weight: 800;
    color: #28a745;
    font-size: 1.15rem;
    font-family: 'Nunito', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cart-item-price::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    display: inline-block;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Footer avec prix (pour le modal) */

.cart-pricing {
    margin-bottom: 1rem;
}

.cart-pricing .pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-family: 'Heebo', sans-serif;
}

.cart-pricing .pricing-row span {
    color: #6c757d;
    font-weight: 500;
}

.cart-pricing .pricing-row strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.cart-pricing .pricing-row.total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
}

.cart-pricing .pricing-row.total span {
    color: #2c3e50;
    font-weight: 700;
}

.cart-pricing .pricing-row.total strong {
    color: #FEA116;
    font-size: 1.6rem;
    font-weight: 800;
}

.cart-info {
    background: linear-gradient(135deg, #fff8f0, #ffffff);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
}

.cart-info i {
    color: #FEA116;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 992px) {
    #cartModal .modal-dialog {
        max-width: 85%;
    }
    
    .cart-section-wrapper {
        padding: 1.25rem 1.5rem;
    }
    
    .cart-summary-section {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Bouton panier */
    .cart-floating-btn {
        width: 55px;
        height: 55px;
        top: 15px;
        margin-top: -50px;
        margin-right: 8px;
    }
    
    .cart-floating-btn i {
        font-size: 1.35rem;
    }
    
    .cart-badge {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
        border: 2px solid white;
    }
    
    /* Modal */
    #cartModal .modal-dialog {
        max-width: 92%;
        margin: 0.75rem auto;
    }
    
    .cart-modal-header {
        padding: 1.15rem 1.25rem;
    }
    
    .cart-icon-wrapper {
        width: 42px;
        height: 42px;
    }
    
    .cart-icon-wrapper i {
        font-size: 1.25rem;
    }
    
    .cart-modal-header h4 {
        font-size: 1.1rem;
    }
    
    .cart-modal-header small {
        font-size: 0.8rem;
    }
    
    .cart-section-wrapper {
        padding: 1.15rem 1.25rem;
    }
    
    .cart-summary-section {
        padding: 1.15rem 1.25rem;
    }
    
    .cart-items-container {
        max-height: 220px;
    }
    
    .cart-item {
        padding: 0.85rem;
    }
    
    .cart-item-name {
        font-size: 0.95rem;
    }
    
    .cart-item-price {
        font-size: 1.05rem;
    }
    
    .total-amount {
        font-size: 1.35rem;
    }
    
    .cart-summary-details {
        padding: 1.15rem;
    }
}

@media (max-width: 576px) {
    /* Bouton panier */
    .cart-floating-btn {
        width: 50px;
        height: 50px;
        top: 12px;
        margin-top: -45px;
        margin-right: 5px;
    }
    
    .cart-floating-btn i {
        font-size: 1.2rem;
    }
    
    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
        border: 2px solid white;
    }
    
    /* Modal */
    #cartModal .modal-dialog {
        max-width: 96%;
        margin: 0.5rem auto;
    }
    
    .cart-modal-content {
        border-radius: 16px;
    }
    
    .cart-modal-header {
        padding: 1rem 1.15rem;
    }
    
    .cart-icon-wrapper {
        width: 38px;
        height: 38px;
    }
    
    .cart-icon-wrapper i {
        font-size: 1.15rem;
    }
    
    .cart-modal-header h4 {
        font-size: 1rem;
    }
    
    .cart-modal-header small {
        font-size: 0.75rem;
    }
    
    .cart-section-wrapper,
    .cart-summary-section {
        padding: 1rem 1.15rem;
    }
    
    .cart-section-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .cart-section-header h6 {
        font-size: 0.9rem;
    }
    
    .cart-items-container {
        max-height: 200px;
    }
    
    .cart-item {
        padding: 0.75rem;
        border-radius: 10px;
        margin-bottom: 0.75rem;
    }
    
    .cart-item-header {
        margin-bottom: 0.75rem;
    }
    
    .cart-item-name {
        font-size: 0.9rem;
    }
    
    .cart-item-remove {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .cart-item-details {
        padding-top: 0.75rem;
    }
    
    .cart-item-quantity-badge {
        padding: 0.3rem 0.65rem;
        font-size: 0.8rem;
    }
    
    .cart-item-price {
        font-size: 1rem;
    }
    
    .cart-summary-header {
        margin-bottom: 1rem;
    }
    
    .cart-summary-header h6 {
        font-size: 0.9rem;
    }
    
    .cart-summary-details {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .summary-row {
        padding: 0.6rem 0;
    }
    
    .summary-label {
        font-size: 0.85rem;
    }
    
    .summary-label i {
        font-size: 0.95rem;
    }
    
    .summary-value {
        font-size: 0.9rem;
    }
    
    .summary-total .summary-label {
        font-size: 1rem;
    }
    
    .total-amount {
        font-size: 1.3rem;
    }
    
    .summary-info-box {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .summary-info-box small {
        font-size: 0.75rem;
    }
    
    .cart-modal-footer {
        padding: 1rem 1.15rem;
    }
    
    .cart-modal-footer .btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.65rem;
    }
    
    .empty-cart-icon {
        width: 75px;
        height: 75px;
    }
    
    .empty-cart-icon i {
        font-size: 2.25rem;
    }
    
    .empty-cart-premium {
        padding: 2rem 1.25rem;
    }
    
    .empty-cart-premium h5 {
        font-size: 1rem;
    }
    
    .empty-cart-premium p {
        font-size: 0.85rem;
    }
}