/* --- VARIABLES ET STYLES GÉNÉRAUX --- */
:root {
    --blanc-casse: #fcfbfb;
    --bleu-vif: #0097f0;
    --jaune-dore: #dfb215;
    --rouge-intense: #cd000c;
    --blanc-pur: #fdffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--blanc-casse);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.text-center {
    text-align: center;
}


/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanc-pur);
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--jaune-dore);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c0990f;
}

/* --- ABOUT SECTION --- */
.about-section {
    display: flex;
    align-items: center;
    padding: 80px 0;
    background-color: var(--blanc-pur);
}

.about-image {
    flex: 1;
    padding: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 1;
    padding: 20px;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--bleu-vif);
}

.about-text {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* --- PRODUCTS SECTION --- */
.featured-section {
    padding: 80px 0;
    background-color: var(--blanc-casse);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--bleu-vif);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--blanc-pur);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-price {
    font-weight: bold;
    color: var(--bleu-vif);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.add-to-cart {
    background-color: var(--jaune-dore);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #c0990f;
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 80px 0;
    background-color: var(--blanc-pur);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-form {
    background-color: var(--blanc-casse);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--bleu-vif);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--bleu-vif);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0080d0;
}

.contact-info {
    padding: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--bleu-vif);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--bleu-vif);
}

.contact-details h4 {
    margin-bottom: 5px;
    color: #333;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}



/* --- MODALS --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--blanc-pur);
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: var(--rouge-intense);
}

.link {
    color: var(--bleu-vif);
    cursor: pointer;
    text-decoration: underline;
}

/* --- ORDER SUCCESS MODAL --- */
.order-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1003;
    align-items: center;
    justify-content: center;
}

.order-success-content {
    background-color: var(--blanc-pur);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.order-success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.order-success-title {
    color: var(--bleu-vif);
    margin-bottom: 15px;
}

.order-success-message {
    margin-bottom: 25px;
    line-height: 1.6;
}

.order-success-btn {
    background-color: var(--jaune-dore);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.order-success-btn:hover {
    background-color: #c0990f;
}

/* --- NOTIFICATION --- */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1004;
    max-width: 350px;
}

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

.notification.info {
    background-color: var(--bleu-vif);
}

.notification.success {
    background-color: #27ae60;
}

.notification.error {
    background-color: var(--rouge-intense);
}

/* --- STYLES POUR LA PAGE DES COMMANDES --- */
.orders-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.orders-table th, .orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.orders-table th {
    background: linear-gradient(135deg, var(--bleu-vif), #003366);
    color: white;
    font-weight: 600;
}

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

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-preparing {
    background-color: #d4edda;
    color: #155724;
}

.status-delivered {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.btn-view {
    background: var(--bleu-vif);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-view:hover {
    background: #003366;
}

/* Styles pour les détails de commande */
.order-details {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.order-items {
    margin: 20px 0;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-item-price {
    color: var(--bleu-vif);
    font-weight: 600;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    font-weight: 700;
    font-size: 1.2em;
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.update-order-form {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-orders {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-orders i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.back-button {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--bleu-vif);
    text-decoration: none;
    font-weight: 600;
}

.back-button:hover {
    color: #003366;
}

/* Styles pour le panier */
.cart-sidebar.active {
    right: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.cart-item-quantity button {
    width: 25px;
    height: 25px;
    background: #f1f1f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cart-item-quantity span {
    margin: 0 10px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--rouge-intense);
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1em;
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
    color: #6c757d;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dee2e6;
}

/* Styles pour les modals centrés */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-content form {
    padding: 20px;
}

.modal-switch {
    padding: 0 20px 20px;
    text-align: center;
}

/* Styles pour le menu utilisateur */
.user-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
}

.user-menu-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.user-menu-items {
    padding: 10px 0;
}

.user-menu-items a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.user-menu-items a:hover {
    background: #f8f9fa;
}

/* Styles pour les notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: var(--rouge-intense);
}

.toast-info {
    background: var(--bleu-vif);
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast-icon {
    margin-right: 10px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Styles pour le message de succès de commande */
.order-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.success-icon {
    color: #28a745;
    font-size: 3rem;
    margin-bottom: 15px;
}

.success-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-secondary {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .about-section {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--blanc-pur);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 15px 0; /* Ajustement pour mobile */
    }
    
    .mobile-menu {
        display: block;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .nav-links i {
        margin-right: 12px;
        width: 20px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .orders-table {
        font-size: 14px;
    }
    
    .orders-table th, .orders-table td {
        padding: 10px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-item {
        flex-direction: column;
        text-align: center;
    }
    
    .order-item-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .modal-content {
        width: 90%;
        margin: 0 5%;
    }
}
 .orders-section {
            padding: 60px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .orders-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .orders-table th, .orders-table td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }
        
        .orders-table th {
            background: linear-gradient(135deg, #0056b3, #003366);
            color: white;
            font-weight: 600;
        }
        
        .orders-table tr:hover {
            background-color: #f8f9fa;
        }
        
        .status-badge {
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .status-pending {
            background-color: #fff3cd;
            color: #856404;
        }
        
        .status-confirmed {
            background-color: #d1ecf1;
            color: #0c5460;
        }
        
        .status-preparing {
            background-color: #d4edda;
            color: #155724;
        }
        
        .status-delivered {
            background-color: #d1e7dd;
            color: #0f5132;
        }
        
        .status-cancelled {
            background-color: #f8d7da;
            color: #721c24;
        }
        
        .btn-view {
            background: #0056b3;
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            display: inline-block;
        }
        
        .btn-view:hover {
            background: #003366;
        }
        
        /* Styles pour les détails de commande */
        .order-details {
            background: white;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }
        
        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }
        
        .order-items {
            margin: 20px 0;
        }
        
        .order-item {
            display: flex;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #f1f1f1;
        }
        
        .order-item-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            margin-right: 15px;
        }
        
        .order-item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .order-item-info {
            flex: 1;
        }
        
        .order-item-name {
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .order-item-price {
            color: #0056b3;
            font-weight: 600;
        }
        
        .order-summary {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-top: 20px;
        }
        
        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        
        .summary-total {
            font-weight: 700;
            font-size: 1.2em;
            border-top: 2px solid #ddd;
            padding-top: 10px;
            margin-top: 10px;
        }
        
        .update-order-form {
            margin-top: 30px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
        }
        
        .no-orders {
            text-align: center;
            padding: 60px 20px;
            color: #6c757d;
        }
        
        .no-orders i {
            font-size: 4rem;
            margin-bottom: 20px;
            color: #dee2e6;
        }
        
        .back-button {
            display: inline-flex;
            align-items: center;
            margin-bottom: 20px;
            color: #0056b3;
            text-decoration: none;
            font-weight: 600;
        }
        
        .back-button:hover {
            color: #003366;
        }
        
        /* Styles pour le panier */
        .cart-sidebar {
            position: fixed;
            top: 0;
            right: -400px;
            width: 400px;
            height: 100vh;
            background: white;
            box-shadow: -5px 0 15px rgba(0,0,0,0.1);
            transition: right 0.3s ease;
            z-index: 1000;
            display: flex;
            flex-direction: column;
        }
        
        .cart-sidebar.active {
            right: 0;
        }
        
        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid #eee;
        }
        
        .cart-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
        }
        
        .cart-items {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }
        
        .cart-item {
            display: flex;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #f1f1f1;
        }
        
        .cart-item-image {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            overflow: hidden;
            margin-right: 15px;
        }
        
        .cart-item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .cart-item-details {
            flex: 1;
        }
        
        .cart-item-quantity {
            display: flex;
            align-items: center;
            margin-top: 5px;
        }
        
        .cart-item-quantity button {
            width: 25px;
            height: 25px;
            background: #f1f1f1;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .cart-item-quantity span {
            margin: 0 10px;
        }
        
        .cart-item-remove {
            background: none;
            border: none;
            color: #dc3545;
            cursor: pointer;
        }
        
        .cart-footer {
            padding: 20px;
            border-top: 1px solid #eee;
        }
        
        .cart-total {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            font-weight: 600;
            font-size: 1.1em;
        }
        
        .checkout-btn {
            width: 100%;
            padding: 12px;
            background: #28a745;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }
        
        .checkout-btn:hover {
            background: #218838;
        }
        
        .empty-cart {
            text-align: center;
            padding: 40px 0;
            color: #6c757d;
        }
        
        .empty-cart i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: #dee2e6;
        }
        
        /* Styles pour les modals centrés */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background-color: white;
            border-radius: 10px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            position: relative;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid #eee;
        }
        
        .modal-close {
            font-size: 24px;
            cursor: pointer;
        }
        
        .modal-content form {
            padding: 20px;
        }
        
        .modal-switch {
            padding: 0 20px 20px;
            text-align: center;
        }
        
        /* Styles pour le menu utilisateur */
        .user-menu {
            display: none;
            position: absolute;
            top: 70px;
            right: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            z-index: 1000;
            min-width: 200px;
        }
        
        .user-menu-header {
            padding: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .user-menu-items {
            padding: 10px 0;
        }
        
        .user-menu-items a {
            display: block;
            padding: 10px 15px;
            color: #333;
            text-decoration: none;
        }
        
        .user-menu-items a:hover {
            background: #f8f9fa;
        }
        
        /* Styles pour les notifications */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 5px;
            color: white;
            z-index: 1000;
            animation: slideIn 0.3s ease;
        }
        
        .toast-success {
            background: #28a745;
        }
        
        .toast-error {
            background: #dc3545;
        }
        
        .toast-info {
            background: #17a2b8;
        }
        
        .toast-content {
            display: flex;
            align-items: center;
        }
        
        .toast-icon {
            margin-right: 10px;
        }
        
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        /* Styles pour le message de succès de commande */
        .order-success-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }
        
        .order-success-content {
            background: white;
            padding: 30px;
            border-radius: 10px;
            text-align: center;
            max-width: 500px;
            width: 90%;
        }
        
        .success-icon {
            color: #28a745;
            font-size: 3rem;
            margin-bottom: 15px;
        }
        
        .success-actions {
            margin-top: 20px;
            display: flex;
            gap: 10px;
            justify-content: center;
        }
        
        .btn-secondary {
            padding: 10px 20px;
            background: #6c757d;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
        }
        
        .btn-secondary:hover {
            background: #5a6268;
        }
        
        @media (max-width: 768px) {
            .orders-table {
                font-size: 14px;
            }
            
            .orders-table th, .orders-table td {
                padding: 10px;
            }
            
            .order-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .order-item {
                flex-direction: column;
                text-align: center;
            }
            
            .order-item-image {
                margin-right: 0;
                margin-bottom: 15px;
            }
            
            .cart-sidebar {
                width: 100%;
                right: -100%;
            }
            
            .modal-content {
                width: 90%;
                margin: 0 5%;
            }
        }
        .contact-section {
        padding: 60px 0;
        background-color: #f9f9f9;
    }
    
    .contact-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .contact-form {
        background: white;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        order: 2; /* Place le formulaire à droite */
    }
    
    .contact-info {
        background: white;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        order: 1; /* Place les coordonnées à gauche */
    }
    
    .contact-info-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 25px;
    }
    
    .contact-icon {
        font-size: 24px;
        margin-right: 15px;
        min-width: 30px;
        text-align: center;
    }
    
    .map-container {
        margin-top: 30px;
        border: 5px solid #dfb215; /* Bordure couleur #dfb215 */
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .map-container iframe {
        display: block;
        width: 100%;
        height: 450px;
    }
    
    /* Footer - Corrections */
    .footer {
        background-color: #0097f0; /* Background bleu comme demandé */
        color: white;
        padding: 50px 0 20px;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .footer-section h3 {
        color: white;
        margin-bottom: 20px;
        font-size: 1.2rem;
    }
    
    .footer-section ul {
        list-style: none;
        padding: 0;
    }
    
    .footer-section ul li {
        margin-bottom: 10px;
    }
    
    .footer-section a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .footer-section a:hover {
        color: white;
    }
    
    .social-links {
        display: flex;
        gap: 15px;
    }
    
    .social-links a {
        display: inline-block;
        color: white;
        font-size: 1.2rem;
    }
    
    .footer-bottom {
        text-align: center;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .contact-grid {
            grid-template-columns: 1fr;
        }
        
        .contact-form, .contact-info {
            order: initial;
        }
    }/* --- VARIABLES ET STYLES GÉNÉRAUX --- */
:root {
    --blanc-casse: #fcfbfb;
    --bleu-vif: #0097f0;
    --jaune-dore: #dfb215;
    --rouge-intense: #cd000c;
    --blanc-pur: #fdffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--blanc-casse);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* --- BARRE DE NAVIGATION AMÉLIORÉE --- */
.navbar {
    background-color: var(--blanc-pur);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--bleu-vif);
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    flex: 2;
}

/* ESPACEMENT AUGMENTÉ ENTRE LES LIENS DE NAVIGATION (25px au lieu de 20px) */
.nav-links li {
    margin: 0 25px; /* Augmenté de 20px à 25px pour plus d'espace */
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    padding: 10px 8px; /* Ajout de padding pour améliorer la zone cliquable */
}

.nav-links a:hover {
    color: var(--bleu-vif);
}

.nav-links .cart-icon {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.cart-count {
    background-color: var(--rouge-intense);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    position: absolute;
    top: -10px;
    right: -10px;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Styles pour les icônes de navigation */
.nav-links i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Style spécifique pour l'icône du panier */
.cart-icon i {
    margin-right: 5px;
}

/* Style pour le menu mobile */
.mobile-menu i {
    font-size: 1.5rem;
}

/* Styles spécifiques pour l'admin link */
.nav-links li:last-child {
    margin-left: auto;
}

.nav-links li:last-child a {
    background-color: var(--bleu-vif);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links li:last-child a:hover {
    background-color: #0080d0;
    color: white;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanc-pur);
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--jaune-dore);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c0990f;
}

/* --- ABOUT SECTION --- */
.about-section {
    display: flex;
    align-items: center;
    padding: 80px 0;
    background-color: var(--blanc-pur);
}

.about-image {
    flex: 1;
    padding: 20px;
}

.about-image img {
    width: 80%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 1;
    padding: 20px;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--bleu-vif);
}

.about-text {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* --- PRODUCTS SECTION --- */
.featured-section {
    padding: 80px 0;
    background-color: var(--blanc-casse);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--bleu-vif);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--blanc-pur);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-price {
    font-weight: bold;
    color: var(--bleu-vif);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.add-to-cart {
    background-color: var(--jaune-dore);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #c0990f;
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 80px 0;
    background-color: var(--blanc-pur);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-form {
    background-color: var(--blanc-casse);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--bleu-vif);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--bleu-vif);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0080d0;
}

.contact-info {
    padding: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--bleu-vif);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--bleu-vif);
}

.contact-details h4 {
    margin-bottom: 5px;
    color: #333;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* --- MODALS --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--blanc-pur);
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: var(--rouge-intense);
}

.link {
    color: var(--bleu-vif);
    cursor: pointer;
    text-decoration: underline;
}

/* --- ORDER SUCCESS MODAL --- */
.order-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1003;
    align-items: center;
    justify-content: center;
}

.order-success-content {
    background-color: var(--blanc-pur);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.order-success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.order-success-title {
    color: var(--bleu-vif);
    margin-bottom: 15px;
}

.order-success-message {
    margin-bottom: 25px;
    line-height: 1.6;
}

.order-success-btn {
    background-color: var(--jaune-dore);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.order-success-btn:hover {
    background-color: #c0990f;
}

/* --- NOTIFICATION --- */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1004;
    max-width: 350px;
}

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

.notification.info {
    background-color: var(--bleu-vif);
}

.notification.success {
    background-color: #27ae60;
}

.notification.error {
    background-color: var(--rouge-intense);
}

/* --- STYLES POUR LA PAGE DES COMMANDES --- */
.orders-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.orders-table th, .orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.orders-table th {
    background: linear-gradient(135deg, var(--bleu-vif), #003366);
    color: white;
    font-weight: 600;
}

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

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-preparing {
    background-color: #d4edda;
    color: #155724;
}

.status-delivered {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.btn-view {
    background: var(--bleu-vif);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-view:hover {
    background: #003366;
}

/* Styles pour les détails de commande */
.order-details {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.order-items {
    margin: 20px 0;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-item-price {
    color: var(--bleu-vif);
    font-weight: 600;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    font-weight: 700;
    font-size: 1.2em;
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.update-order-form {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-orders {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-orders i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.back-button {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--bleu-vif);
    text-decoration: none;
    font-weight: 600;
}

.back-button:hover {
    color: #003366;
}

/* Styles pour le panier */
.cart-sidebar.active {
    right: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.cart-item-quantity button {
    width: 25px;
    height: 25px;
    background: #f1f1f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cart-item-quantity span {
    margin: 0 10px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--rouge-intense);
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1em;
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
    color: #6c757d;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dee2e6;
}

/* Styles pour les modals centrés */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-content form {
    padding: 20px;
}

.modal-switch {
    padding: 0 20px 20px;
    text-align: center;
}

/* Styles pour le menu utilisateur */
.user-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
}

.user-menu-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.user-menu-items {
    padding: 10px 0;
}

.user-menu-items a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.user-menu-items a:hover {
    background: #f8f9fa;
}

/* Styles pour les notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: var(--rouge-intense);
}

.toast-info {
    background: var(--bleu-vif);
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast-icon {
    margin-right: 10px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Styles pour le message de succès de commande */
.order-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.success-icon {
    color: #28a745;
    font-size: 3rem;
    margin-bottom: 15px;
}

.success-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-secondary {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .about-section {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--blanc-pur);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 15px 0; /* Ajustement pour mobile */
    }
    
    .mobile-menu {
        display: block;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .nav-links i {
        margin-right: 12px;
        width: 20px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .orders-table {
        font-size: 14px;
    }
    
    .orders-table th, .orders-table td {
        padding: 10px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-item {
        flex-direction: column;
        text-align: center;
    }
    
    .order-item-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .modal-content {
        width: 90%;
        margin: 0 5%;
    }
}

.orders-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.orders-table th, .orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.orders-table th {
    background: linear-gradient(135deg, #0056b3, #003366);
    color: white;
    font-weight: 600;
}

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

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-preparing {
    background-color: #d4edda;
    color: #155724;
}

.status-delivered {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.btn-view {
    background: #0056b3;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-view:hover {
    background: #003366;
}

/* Styles pour les détails de commande */
.order-details {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.order-items {
    margin: 20px 0;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-item-price {
    color: #0056b3;
    font-weight: 600;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    font-weight: 700;
    font-size: 1.2em;
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.update-order-form {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-orders {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-orders i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.back-button {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
}

.back-button:hover {
    color: #003366;
}

/* Styles pour le panier */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.cart-item-quantity button {
    width: 25px;
    height: 25px;
    background: #f1f1f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cart-item-quantity span {
    margin: 0 10px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1em;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.checkout-btn:hover {
    background: #218838;
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
    color: #6c757d;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dee2e6;
}




/* Styles pour les notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

.toast-info {
    background: #17a2b8;
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast-icon {
    margin-right: 10px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Styles pour le message de succès de commande */
.order-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.order-success-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.success-icon {
    color: #28a745;
    font-size: 3rem;
    margin-bottom: 15px;
}

.success-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-secondary {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    .orders-table {
        font-size: 14px;
    }
    
    .orders-table th, .orders-table td {
        padding: 10px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-item {
        flex-direction: column;
        text-align: center;
    }
    
    .order-item-image {
        margin-right: 0;
        margin-bottom: 15px;
    }    
}


/* --- CART SIDEBAR --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--blanc-pur);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--bleu-vif), #003366);
    color: white;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--bleu-vif);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.cart-item-quantity button {
    width: 25px;
    height: 25px;
    background: #f1f1f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-quantity span {
    margin: 0 10px;
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--rouge-intense);
    cursor: pointer;
    margin-left: 10px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1em;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: var(--jaune-dore);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background: #c0990f;
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
    color: #6c757d;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dee2e6;
}

/* --- LOADING SPINNER --- */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

/* --- SCROLL TO TOP BUTTON --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bleu-vif);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #0080d0;
    transform: translateY(-3px);
}

/* --- FORM VALIDATION STYLES --- */
.form-group.error .form-control {
    border-color: var(--rouge-intense);
}

.form-group.success .form-control {
    border-color: #28a745;
}

.error-message {
    color: var(--rouge-intense);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* --- RESPONSIVE DESIGN CONTINUED --- */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .about-title, .section-title {
        font-size: 1.8rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* --- PRINT STYLES --- */
@media print {
    .navbar, .footer, .cta-button, .add-to-cart, .scroll-to-top {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
    }
}

/* --- ACCESSIBILITY IMPROVEMENTS --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--bleu-vif);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --blanc-casse: #ffffff;
        --blanc-pur: #ffffff;
    }
    
    .navbar {
        border-bottom: 2px solid #000;
    }
    
    .product-card {
        border: 1px solid #000;
    }
}

/* --- DARK MODE SUPPORT --- */
@media (prefers-color-scheme: dark) {
    :root {
        --blanc-casse: #1a1a1a;
        --blanc-pur: #2d2d2d;
    }
    
    body {
        color: #e0e0e0;
        background-color: #121212;
    }
    
    .navbar, .product-card, .contact-form, .modal-content, .cart-sidebar {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    .nav-links a, .footer-links a {
        color: #e0e0e0;
    }
    
    .product-name, .contact-details h4 {
        color: #e0e0e0;
    }
    
    .form-control {
        background-color: #3d3d3d;
        color: #e0e0e0;
        border-color: #555;
    }
}

/* --- UTILITY CLASSES --- */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.text-primary { color: var(--bleu-vif); }
.text-success { color: #28a745; }
.text-warning { color: var(--jaune-dore); }
.text-danger { color: var(--rouge-intense); }

.bg-light { background-color: var(--blanc-casse); }
.bg-white { background-color: var(--blanc-pur); }

.d-none { display: none; }
.d-flex { display: flex; }
.d-block { display: block; }

.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--bleu-vif);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0080d0;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bleu-vif) #f1f1f1;
}    
