/* =====================================================================================
   🎨 RESET ET BASE
===================================================================================== */

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

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

/* =====================================================================================
   📱 ANIMATIONS ET KEYFRAMES
===================================================================================== */

@keyframes count-bounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); background: #28a745; }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); background: #dc3545; }
}

@keyframes gentle-pulse {
    0%, 100% { 
        transform: translateY(-50%) scale(1);
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    }
    50% { 
        transform: translateY(-50%) scale(1.05);
        box-shadow: -5px 0 15px rgba(0,123,255,0.4);
    }
}

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


/* =====================================================================================
   🏠 SECTION TITRE PRINCIPAL
===================================================================================== */

.page-title {
    background: linear-gradient(135deg, #fefeff, #e2e8ee);
    
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.page-title h1 {
    font-size: 2.5rem;
    color: #855f13;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-title .subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
    font-style: italic;
}

/* =====================================================================================
   📦 CONTENU PRINCIPAL - PRODUIT
===================================================================================== */

.container {
   
}

.container-main {
   /* border: 2px solid #855f13;*/
   
    border-radius: 10px;
     max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    margin-top: 20px;
}

.product-main-section {
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
    align-items: start;
}

/* --- Image produit --- */
.product-image-section {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.1);
    padding: 10px;
    background: white;
    transition: all 0.3s ease;
}

.product-image-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    /* Dimensions par défaut pour les images produit */
    max-width: 480px;
    object-fit: cover;
    margin-left:auto;
margin-right: auto;
}

.product-image-caption {
    text-align: center;
    font-style: italic;
    color: #6c757d;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* --- Détails produit --- */
/*.product-details {
display: flex;
    flex-direction: column;
}*/

.product-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-description p {
    margin-bottom: 15px;
}

.category-badge {
    display: inline-block;
    background: #155724;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 10px 0;
    color: #ffffff;
    font-weight: 500;
}

.prix-produit {
    font-size: 1.4em;
    font-weight: bold;
    margin: 15px 0;
    text-align: center;
}

.prix-produit .tax-info {
    font-size: 0.8em;
    color: #495057;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

.prix-produit,
.prix-produit span {
    color: #a71e1e; /* ✅ Plus foncé, meilleur contraste */
}

/* --- Section ajout au panier --- */
.add-to-cart-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    margin-top: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-label {
    font-weight: 600;
    color: #495057;
}

.quantity-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #ced4da;
    border-radius: 5px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #000000, #c89116);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.add-to-cart-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.add-to-cart-btn.processing {
    background: #ffc107;
    color: #212529;
}

/* =====================================================================================
   📋 SECTIONS CONTENU
===================================================================================== */

.specifications {
    margin: 40px 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.specifications ul {
    list-style-position: inside;
    margin: 15px 0;
}

.specifications li {
    margin-bottom: 8px;
}

.qa-section {
    margin: 40px 0;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.qa-item summary {
    font-weight: bold;
    color: #333;
    cursor: pointer;
    padding: 10px 0;
}

.qa-item .answer {
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* =====================================================================================
   ⭐ SECTION AVIS
===================================================================================== */

.reviews-section {
    margin: 40px 0;
}

.reviews-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.review-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    font-weight: bold;
    color: #444;
}

.review-stars {
    color: #ffd700;
}

.review-content {
    color: #666;
    margin-top: 8px;
}

/* =====================================================================================
   🛍️ PRODUITS ADDITIONNELS
===================================================================================== */

.additional-products-section {
    margin-top: 40px;
    padding: 30px 0;
}

.additional-products-title {
    text-align: center;
    /*color: #2c3e50;*/
    margin-bottom: 30px;
    border-bottom: 2px solid #855f13;
    padding-bottom: 10px;
}

.additional-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.additional-product {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.additional-product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    /* Dimensions par défaut pour les images des produits additionnels */
    max-width: 480px;
    object-fit: cover;
}

.additional-product-description {
    margin: 15px 0;
    line-height: 1.6;
    color: #555;
}

.add-to-cart-button {
    background-color: #155724;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
    font-size: 16px;
    font-weight: 600;
}


.add-to-cart-button:hover,
button[style*="background-color: #28a745"]:hover {
    background-color: #155724 !important; /* Vert très foncé */
    color: #ffffff !important;
}



/* Styles pour les boutons de redirection */
.redirect-btn {
    transition: all 0.3s ease;
    font-size: 18px;
    cursor: pointer;
}

.redirect-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

   .additional-product-description p {
        margin-bottom: 15px;
   }
    

/* =====================================================================================
   🛒 PANIER FLOTTANT
===================================================================================== */

.floating-cart {
    position: fixed;
    top: 55%;
    right: -350px;
    transform: translateY(-50%);
    width: 350px;
    max-height: 80vh;
    background: white;
    border-radius: 15px 0 0 15px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1000;
}

.floating-cart.open {
    right: 0;
}

/* --- Poignée du panier --- */
.cart-handle {
    position: absolute;
    left: -50px;
    top: 70%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 10px 0 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
}

.cart-handle:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-50%) translateX(-5px);
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
}

.floating-cart:not(.open) .cart-handle {
    animation: gentle-pulse 3s ease-in-out infinite;
}

.cart-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.cart-handle:hover .cart-icon {
    transform: scale(1.1);
}

/* --- Contenu du panier --- */
.cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 80vh;
}

.cart-header {
    background: linear-gradient(90deg, #000000, #c89116);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.3s;
}

.close-cart:hover {
    background: rgba(255,255,255,0.2);
}

/* --- Items du panier --- */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    color: #000000;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item.updating {
    opacity: 0.6;
    transform: scale(0.98);
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    color: #000000;
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- Contrôles quantité --- */
.item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quantity-btn.decrease {
    border-color: #dc3545;
    color: #dc3545;
}

.quantity-btn.decrease:hover {
    background: #dc3545;
    color: white;
}

.quantity-btn.processing {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
    animation: pulse 1s infinite;
}

.quantity-display {
    font-weight: bold;
    min-width: 25px;
    text-align: center;
    color: #495057;
}

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

/* =====================================================================================
   💰 CODES PROMO ET RÉDUCTIONS
===================================================================================== */

.discount-section {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 10px 0;
}

.discount-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.discount-info {
    flex: 1;
    min-width: 0;
}

.discount-code {
    font-weight: bold;
    color: #155724;
    font-size: 0.9rem;
}

.discount-amount {
    color: #28a745;
    font-weight: 600;
    font-size: 0.8rem;
}

.remove-discount-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.remove-discount-btn:hover {
    background: #c82333;
}

.discount-notice {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 10px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #0c5460;
}

/* =====================================================================================
   💳 TOTAUX ET FOOTER PANIER
===================================================================================== */

.cart-totals {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 15px 20px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.total-line:last-child {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: bold;
    padding-top: 8px;
    border-top: 1px solid #dee2e6;
    color: #2c3e50;
}

.discount-line {
    color: #28a745;
    font-weight: 600;
}

.cart-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.cart-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn.primary {
    background: #1e7e34;
    color: #ffffff;
}

.cart-btn.primary:hover {
    background: #218838;
}

.cart-btn.secondary {
    background: #6c757d;
    color: white;
}

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

/* =====================================================================================
   🦶 FOOTER
===================================================================================== */

.footer-principale {
    display: flex;
    flex-wrap: wrap;
    background-color: #f5f5f5;
    border: 5px solid #3b2f2f;
    border-radius: 20px;
    padding: 10px;
    color: #000;
   
}

.column-footer {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-footer {
    margin: 5px 0;
    text-align: center;
}

.item-footer hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 10px auto;
    width: 80%;
}

.item-footer p {
    padding-left: 10px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    padding-left: 10px;
}

.footer-content {
    display: inline-block;
    padding-left: 10px;
}

.link-footer {
    color: #000;
    text-decoration: none;
    display: block;
    padding: 10px 0;
}

.link-footer:hover {
    text-decoration: underline;
}

/* =====================================================================================
   💬 MESSAGES ET NOTIFICATIONS
===================================================================================== */

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1100;
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

.message.success {
    background: #28a745;
}

.message.error {
    background: #dc3545;
}

.message.info {
    background: #17a2b8;
}

.logout-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1100;
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

.logout-message.info {
    background: #17a2b8;
}

.diagnostic {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
}

/* =====================================================================================
   👤 NOUVEAU : MENU AUTHENTIFICATION AVEC SOUS-MENU
===================================================================================== */

/* --- Menu auth avec icône personnage --- */
.auth-menu {
    position: relative;
    display: inline-block;
}

.auth-menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.auth-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.auth-menu-btn .person-icon {
    font-size: 1.1rem;
}

.auth-menu-btn .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.auth-menu.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* --- Dropdown auth --- */
.auth-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.auth-menu.open .auth-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease;
    border: none;
    width: 100%;
    background: none;
    cursor: pointer;
}

.auth-dropdown-item:hover {
    background: #f8f9fa;
}

.auth-dropdown-item:first-child {
    border-radius: 10px 10px 0 0;
}

.auth-dropdown-item:last-child {
    border-radius: 0 0 10px 10px;
}

.auth-dropdown-item.login-item {
    color: #007bff;
}

.auth-dropdown-item.login-item:hover {
    background: #e3f2fd;
}

.auth-dropdown-item.register-item {
    color: #28a745;
}

.auth-dropdown-item.register-item:hover {
    background: #e8f5e8;
}

.auth-item-icon {
    font-size: 1rem;
}

/* =====================================================================================
   📝 TYPOGRAPHIE GÉNÉRALE
===================================================================================== */

h1 {
    font-size: 2em;
    margin: 20px 0;
    color: #333;
    text-align: center;
}

h2 {
    font-size: 1.5em;
    margin: 15px 0;
    color: #855f13;
    text-align: center;
}

h3 {
    font-size: 1.2em;
    margin: 10px 0;
    color: #855f13;
    text-align: center;
}

.h3-panier-flottant {
    font-size: 1.2em;
    margin: 10px 0;
    color: #ffffff;
}

/* =====================================================================================
   🎨 ÉLÉMENTS UTILITAIRES
===================================================================================== */

.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Élément caché pour les données de l'application */
#app-data {
    display: none !important;
}



/* =====================================================================================
   🚀 BOUTON RETOUR EN HAUT
===================================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #855f13, #c89116);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(133, 95, 19, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #c89116, #855f13);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(133, 95, 19, 0.4);
}

.scroll-to-top::before {
    content: "↑";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover::before {
    transform: translate(-50%, -50%) translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* =====================================================================================
   📱 RESPONSIVE - TABLETTES (768px - 868px)
===================================================================================== */

@media (max-width: 888px) {
    /* --- Header responsive --- */
    .header-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 15px;
        position: relative;
        gap: 1rem;
    }
    
    .logo {
        display: flex;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 1.6rem;
        margin: 0;
    }
    
    /* --- Wrapper navigation responsive --- */
    .nav-section-wrapper {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 5px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 0; /* hamburger en premier */
    }
    
    .header-cart {
        display: flex;
        order: 1; /* panier en deuxième */
    }
    
    .user-section {
        order: 2; /* user section en troisième */
        margin: 0;
    }
    
    /* --- Navigation mobile --- */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(90deg, #000000, #c89116);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 80px 0 20px 0;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        order: 3;
        color: #ffffff;
    background-color: #333333 !important;
    }

    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        display: block;
        padding: 18px 25px;
        font-size: 1.4rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        text-align: left;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 35px;
    }
    
    .cart-link {
        background: rgba(255, 255, 255, 0.15) !important;
        margin: 10px 15px;
        font-weight: 700;
        font-size: 1rem !important;
        text-align: center !important;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .cart-link:hover {
        background: rgba(255, 255, 255, 0.25) !important;
        transform: scale(1.02);
        padding-left: 25px !important;
    }
    
    /* --- Dropdown mobile --- */
    .dropdown-menu {
        width: 100%;
    }
    
    .dropdown-toggle {
        display: block;
        padding: 18px 25px;
        font-size: 1.3rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        text-align: left;
        width: 100%;
        justify-content: space-between;
        cursor: pointer;
    }
    
    .dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 35px;
    }
    
    .dropdown-arrow {
        transition: transform 0.3s ease;
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
        border-radius: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown-menu.active .dropdown-content {
        max-height: 300px;
    }
    
    .dropdown-item {
        padding: 12px 35px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0 !important;
    }
    
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        padding-left: 45px;
    }
    
    /* --- User section responsive --- */
    .user-greeting {
        display: none;
    }
    
    .user-menu-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .auth-buttons {
        gap: 8px;
    }
    
    .auth-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .user-dropdown {
        right: 0;
        min-width: 180px;
    }
    
    /* --- Contenu responsive --- */
    .container {
        padding: 0 15px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .floating-cart {
        width: 300px;
        right: -300px;
    }
    
    /* --- Produits additionnels responsive --- */
    .additional-products,
    .reviews-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.app-data-hidden {
    display: none;
}

.cart-section-hidden {
    display: none;
}

.cart-section-visible {
    display: block;
}



        .total-final {
    border-top: 2px solid #dee2e6;
    font-weight: bold;
    font-size: 1.1em;
    color: #28a745;
}

.cart-section-hidden {
    display: none !important;
}

.cart-section-visible {
    display: block !important;
}

.total-line.discount {
    color: #28a745;
    font-weight: 500;
}

.promo-code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 4px solid #28a745;
}

.promo-code-info {
    flex-grow: 1;
}

.promo-code-name {
    font-weight: 600;
    color: #28a745;
    margin-bottom: 4px;
}

.promo-code-details {
    font-size: 0.9em;
    color: #666;
}

.item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}


/* =====================================================================================
   📱 RESPONSIVE - MOBILE (360px - 480px)
===================================================================================== */

@media (max-width: 768px) {
    .page-title {
        padding: 25px 0;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .page-title .subtitle {
        font-size: 1rem;
    }
    
    .additional-products,
    .reviews-list {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 10px;
        gap: 0.8rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .nav-section-wrapper {
        padding: 0;
    }
    
    /* --- Menu mobile plus étroit --- */
    .nav-links {
        width: 250px;
    }
    
    .nav-links a {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .cart-link {
        margin: 8px 12px;
        font-size: 0.95rem !important;
    }
    
    .user-dropdown {
        right: -10px;
        min-width: 160px;
    }
    
    .auth-buttons {
        flex-direction: row;
        gap: 6px;
    }
    
    .auth-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .user-menu-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    /* --- Responsive pour le menu auth --- */
    .auth-menu-btn {
        font-size: 1.2rem;
        padding: 6px 10px;
    }
    
    .auth-dropdown {
        right: -10px;
        min-width: 160px;
    }
}

/* =====================================================================================
   📱 RESPONSIVE - TRÈS PETIT ÉCRAN (< 360px)
===================================================================================== */

@media (max-width: 360px) {
    .header-content {
        padding: 8px;
        gap: 0.6rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .nav-section-wrapper {
        padding: 0;
    }
    
    .nav-links {
        width: 220px;
    }
    
    .nav-links a {
        padding: 14px 15px;
        font-size: 0.95rem;
    }
    
    .auth-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
}

/* =====================================================================================
   📱 RESPONSIVE - FOOTER
===================================================================================== */

@media screen and (max-width: 768px) {
    .column-footer {
        flex-basis: 50%;
    }
}

@media screen and (max-width: 480px) {
    .column-footer {
        flex-basis: 100%;
    }
}

@media (max-width: 888px) {
    .nav-links a:first-child {
        padding-top: 30px;
        margin-top: 10px;
    }
    
    .mobile-menu-toggle.active {
        position: fixed;
        top: 15px;
        left: 240px;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        padding: 8px;
    }
}