/**
 * ============================================================================
 * STYLES CSS POUR ARTICLE - VERSION OPTIMISÉE COMPLÈTE
 * ============================================================================
 * Fichier: article21.css
 * Description: CSS complet avec optimisations grands écrans et JSON-LD
 * ============================================================================
 */

/* ============================================================================
   TABLE DES MATIÈRES
   ============================================================================
   1. VARIABLES CSS ET RESET
   2. BASE ET TYPOGRAPHIE
   3. ANIMATIONS ET KEYFRAMES
   4. HEADER ET NAVIGATION
   5. CONTENU PRINCIPAL (PAGE PRODUIT)
   6. SECTIONS JSON-LD (Notes, Garanties, Installation)
   7. PANIER FLOTTANT
   8. MODALS ET NOTIFICATIONS
   9. FOOTER
   10. UTILITAIRES
   11. RESPONSIVE
   ============================================================================ */


/* ============================================================================
   1. VARIABLES CSS ET RESET
   ============================================================================ */

:root {
    /* Couleurs principales */
    --primary-color: #2c5f2d;
    --primary-hover: #234d24;
    --secondary-color: #97bf0d;
    --accent-gold: #c89116;
    --dark-brown: #855f13;
    
    /* Couleurs d'état */
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    /* Couleurs de texte */
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    
    /* Couleurs de fond et bordures */
    --border-color: #ddd;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    
    /* Typographie */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Transitions et effets */
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ============================================================================
   2. BASE ET TYPOGRAPHIE
   ============================================================================ */

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* Titres */
h1 {
    font-size: 2em;
    margin: 20px 0;
    color: #333;
    text-align: center;
}

h2 {
    font-size: 1.5em;
    margin: 15px 0;
    color: var(--dark-brown);
    text-align: center;
}

h3 {
    font-size: 1.2em;
    margin: 10px 0;
    color: var(--dark-brown);
    text-align: center;
}

.h3-panier-flottant {
    font-size: 1.2em;
    margin: 10px 0;
    color: #ffffff;
}

/* Images */
.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

/* Accessibilité */
.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;
}

/* Conteneurs */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-main {
    border-radius: 10px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    margin-top: 20px;
}

@media (min-width: 1600px) {
    .container,
    .container-main {
        max-width: 1600px;
        padding: 0 60px;
    }
}


/* ============================================================================
   3. 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;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================================
   4. HEADER ET NAVIGATION
   ============================================================================ */

/* ----- 4.1 Header principal ----- */
.header,
.site-header {
    background: linear-gradient(90deg, #000000, var(--accent-gold));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1600px) {
    .header-content {
        max-width: 1600px;
        padding: 0 60px;
    }
}

/* ----- 4.2 Logo ----- */
.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-img {
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
    width: 210px;
    height: 76px;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* ----- 4.3 Navigation principale ----- */
.nav-section-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-links a,
.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.3rem;
    transition: var(--transition);
}

/* ----- 4.4 Dropdown menus ----- */
.dropdown-menu {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 5px;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-menu:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #8f6810;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    margin-top: 8px;
}

.dropdown-menu:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #28a745;
}

.item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    font-size: 1.1rem;
}

/* ----- 4.5 Section utilisateur et authentification ----- */
.user-section,
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-greeting {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.9;
}

.user-avatar {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Menu utilisateur connecté */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.user-menu.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-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: var(--transition);
    z-index: 1000;
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu authentification (non connecté) */
.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: var(--transition);
    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);
}

.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: var(--transition);
    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;
}

/* ----- 4.6 Bouton panier header ----- */
.btn-cart {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cart:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-count,
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    transition: var(--transition);
}

/* ----- 4.7 Menu hamburger mobile ----- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}


/* ============================================================================
   5. CONTENU PRINCIPAL (PAGE PRODUIT)
   ============================================================================ */

/* ----- 5.1 Titre de page ----- */
.page-title {
    background: linear-gradient(135deg, #fefeff, #e2e8ee);
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.page-title h1 {
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-title .subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
    font-style: italic;
}

/* ----- 5.2 Section produit principal ----- */
.product-main-section {
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% / 50% */
    gap: 50px;
    margin: 30px 0;
    align-items: start;
}

@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: 1fr 1.1fr; /* 48% / 52% */
        gap: 60px;
    }
}

@media (min-width: 1600px) {
    .product-grid {
        grid-template-columns: 1fr 1.2fr; /* 45% / 55% */
        gap: 80px;
    }
}


/* Image produit */
.product-image-section {
    position: sticky;
    top: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    padding: 20px;
    background: white;
    transition: var(--transition);
}

.product-image-section:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-image-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-width: 600px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

@media (min-width: 1400px) {
    .product-image-section img {
        max-width: 700px;
    }
}

@media (min-width: 1600px) {
    .product-image-section img {
        max-width: 800px;
    }
}

.product-image-caption {
    text-align: center;
    font-style: italic;
    color: #6c757d;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Détails produit */
.product-details {
    max-width: 650px;
    margin: 0 auto;
}

@media (min-width: 1600px) {
    .product-details {
        max-width: 700px;
    }
}

.product-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.product-description p {
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    background: #155724;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 10px 0;
    color: #ffffff;
    font-weight: 500;
}

/* Prix */
.prix-produit {
    font-size: 2rem;
    font-weight: bold;
    margin: 25px auto;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    border-radius: 10px;
    border: 2px solid #ff6b6b;
    text-align: center;
    max-width: 100%;
}

.prix-produit .tax-info {
    font-size: 0.9em;
    color: #666;
    font-weight: normal;
    display: block;
    margin-top: 8px;
}

.prix-produit,
.prix-produit span {
    color: #a71e1e;
}

/* Stock Status */
.product-stock-status {
    margin: 15px auto;
    text-align: center;
}

.stock-available {
    color: var(--success-color);
    font-weight: 600;
}

.stock-unavailable {
    color: var(--danger-color);
    font-weight: 600;
}

/* ----- 5.3 Section ajout au panier ----- */
.add-to-cart-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #dee2e6;
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: center;
}

.quantity-label {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
}

.quantity-input {
    width: 100px;
    padding: 12px 16px;
    border: 2px solid #ced4da;
    border-radius: 8px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
}

.add-to-cart-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, #000000, var(--accent-gold));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.add-to-cart-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.add-to-cart-btn.processing,
.add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    cursor: wait;
}

.add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spinner 0.8s linear infinite;
}

.add-to-cart-btn.loading span {
    visibility: hidden;
}

.btn-back-to-products {
    display: block;
    margin: 20px auto 0;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    width: fit-content;
}

.btn-back-to-products:hover {
    color: var(--dark-brown);
    text-decoration: underline;
}

/* ----- 5.4 Sections contenu (specs, Q&A, avis) ----- */
.specifications {
    margin: 50px 0;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.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: var(--shadow-sm);
}

.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;
}

.reviews-section {
    margin: 40px 0;
}

.reviews-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px auto;
    justify-content: center;
    max-width: 1200px;
}

@media (min-width: 1400px) {
    .reviews-list {
        gap: 25px;
        max-width: 1400px;
    }
}

.review-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    width: calc(33.333% - 14px);
    max-width: 350px;
}

@media (min-width: 1400px) {
    .review-item {
        width: calc(25% - 19px);
    }
}

/* ----- 5.5 Produits additionnels ----- */
.additional-products-section {
    margin-top: 40px;
    padding: 30px 0;
}

.additional-products-title {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--dark-brown);
    padding-bottom: 10px;
}

.additional-products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px auto;
    justify-content: center;
    max-width: 1200px;
}

@media (min-width: 1400px) {
    .additional-products {
        gap: 25px;
        max-width: 1400px;
    }
}

.additional-product {
    margin: 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-sm);
    width: calc(33.333% - 14px);
    max-width: 350px;
}

@media (min-width: 1400px) {
    .additional-product {
        width: calc(25% - 19px);
    }
}

.additional-product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-width: 480px;
    object-fit: cover;
}

.additional-product-description {
    margin: 15px 0;
    line-height: 1.6;
    color: #555;
}

.additional-product-description p {
    margin-bottom: 15px;
}

.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 {
    background-color: #155724 !important;
    color: #ffffff !important;
}

.redirect-btn {
    transition: var(--transition);
    font-size: 18px;
    cursor: pointer;
}

.redirect-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


/* ============================================================================
   6. SECTIONS JSON-LD (Notes, Garanties, Installation)
   ============================================================================ */

/* ----- Note moyenne et badges ----- */
.product-header-info {
    background: #f8f9fa;
    padding: 25px 30px;
    border-radius: 12px;
    margin: 25px auto;
    border: 2px solid #dee2e6;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffd700;
    font-size: 1.6rem;
    letter-spacing: 3px;
}

.rating-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.rating-count {
    color: #666;
    font-size: 1.1rem;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.badge-shipping {
    background: #e8f5e8;
    color: #155724;
    border: 1px solid #28a745;
}

.badge-stock {
    background: #e3f2fd;
    color: #0c5460;
    border: 1px solid #17a2b8;
}

.badge-made-in {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

/* ----- Caractéristiques en grille ----- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

@media (min-width: 1400px) {
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--dark-brown);
    transition: var(--transition);
}

.spec-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.spec-label {
    font-weight: 600;
    color: #495057;
}

.spec-value {
    font-weight: 500;
    color: #212529;
}

/* Avantages et Inconvénients */
.specs-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.pros-section,
.cons-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pros-section h3 {
    color: #28a745;
    margin-bottom: 15px;
}

.cons-section h3 {
    color: #ffc107;
    margin-bottom: 15px;
}

.specs-pros-cons ul {
    list-style: none;
    padding: 0;
}

.specs-pros-cons li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.pros-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.cons-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffc107;
    font-weight: bold;
}

/* ----- Garanties et Services ----- */
.guarantees-section {
    margin: 40px 0;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 25px 0;
}

@media (min-width: 1400px) {
    .guarantees-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.guarantee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #dee2e6;
    transition: var(--transition);
}

.guarantee-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.guarantee-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.guarantee-content h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: #333;
}

.guarantee-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.delivery-details {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 4px solid #17a2b8;
}

.delivery-details h3 {
    margin-top: 0;
    color: #0c5460;
}

.delivery-details ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.delivery-details li {
    padding: 8px 0;
    color: #333;
}

/* ----- Guide d'Installation ----- */
.installation-guide {
    margin: 40px 0;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.installation-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-brown));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}


/* ============================================================================
   7. PANIER FLOTTANT
   ============================================================================ */

.floating-cart {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.floating-cart.visible {
    right: 0;
}

/* Poignée du panier flottant */
.floating-cart-handle {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 8px 0 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
}

.floating-cart-handle:hover {
    background: var(--primary-hover);
    left: -52px;
    animation: gentle-pulse 2s infinite;
}

.floating-cart-handle svg {
    color: white;
}

.floating-cart-handle-badge {
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0 4px;
    animation: count-bounce 0.3s ease;
}

.floating-cart.visible .floating-cart-handle {
    opacity: 0;
    pointer-events: none;
}

/* Header panier */
.floating-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.floating-cart-header h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
}

.close-floating-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.close-floating-cart:hover {
    color: var(--text-color);
}

/* Corps panier */
.floating-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.floating-cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.floating-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-info .item-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.item-info .item-price {
    font-size: 0.9rem;
    color: var(--text-light);
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-controls .quantity {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.item-controls button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Section promo dans panier flottant */
.floating-promo-section {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 4px;
}

.floating-promo-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-promo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.floating-promo-item:last-child {
    border-bottom: none;
}

.floating-promo-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.floating-promo-item .promo-code {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.floating-promo-item .promo-discount {
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-remove-promo-floating {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-remove-promo-floating:hover {
    background-color: rgba(220, 53, 69, 0.1);
    transform: scale(1.2);
}

/* Footer panier */
.floating-cart-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

.floating-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-view-cart {
    width: 100%;
    padding: 1rem;
}

/* Cart totals and discount sections */
.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: var(--danger-color);
    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;
}

.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;
}

.total-line.discount,
.discount-line {
    color: #28a745;
    font-weight: 600;
}

.total-final {
    border-top: 2px solid #dee2e6;
    font-weight: bold;
    font-size: 1.1em;
    color: #28a745;
}

/* Quantity controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-quantity-minus,
.btn-quantity-plus {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-quantity-minus:hover,
.btn-quantity-plus:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.delete-btn,
.btn-remove-item,
.btn-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.delete-btn:hover,
.btn-remove-item:hover,
.btn-remove:hover {
    transform: scale(1.1);
}

.delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}


/* ============================================================================
   8. MODALS ET NOTIFICATIONS
   ============================================================================ */

/* ----- 8.1 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: var(--danger-color);
}

.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;
}

#notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification {
    min-width: 300px;
    padding: 1rem 1.5rem;
    background: var(--bg-white);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(400px);
    transition: var(--transition);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--danger-color);
}

.notification-warning {
    border-left: 4px solid var(--warning-color);
}

.notification-info {
    border-left: 4px solid var(--info-color);
}

/* ----- 8.2 Modal (session expirée, etc.) ----- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 10001;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.modal-content p {
    margin: 15px 0;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.modal-content p strong {
    color: #28a745;
    font-weight: 600;
}

.modal-content .btn {
    margin-top: 20px;
    min-width: 150px;
    font-size: 16px;
    padding: 12px 24px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.modal-actions .btn {
    margin: 0;
    flex: 1;
    max-width: 200px;
}

/* ----- 8.3 Diagnostic ----- */
.diagnostic {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
}


/* ============================================================================
   9. FOOTER
   ============================================================================ */

.site-footer {
    background: linear-gradient(90deg, #000000, var(--accent-gold));
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-principale {
    display: flex;
    flex-wrap: wrap;
    background-color: #f5f5f5;
    border: 5px solid #3b2f2f;
    border-radius: 20px;
    padding: 10px;
    color: #000;
    margin-top: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (min-width: 1600px) {
    .footer-principale {
        max-width: 1600px;
        padding: 0 60px;
    }
}

.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;
}


/* ============================================================================
   10. UTILITAIRES
   ============================================================================ */

/* ----- 10.1 Boutons généraux ----- */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-full-width {
    width: 100%;
}

/* ----- 10.2 Classes de visibilité ----- */
.app-data-hidden,
#app-data {
    display: none !important;
}

.cart-section-hidden {
    display: none !important;
}

.cart-section-visible {
    display: block !important;
}

/* ----- 10.3 Bouton retour en haut ----- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--dark-brown), var(--accent-gold));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(133, 95, 19, 0.3);
    transition: var(--transition);
    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, var(--accent-gold), var(--dark-brown));
    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);
}

/* ----- 10.4 Espacement utilitaires ----- */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ----- 10.5 Pages authentification (login, register) ----- */
.auth-page {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.form-group small {
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.error-message {
    background: #fee;
    color: var(--danger-color);
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--danger-color);
}

.success-message {
    background: #efe;
    color: var(--success-color);
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--success-color);
}

.warning {
    color: var(--warning-color);
    font-weight: 600;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    background: var(--bg-white);
    padding: 0 1rem;
    color: var(--text-light);
}

.auth-redirect {
    text-align: center;
}

.auth-redirect p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ----- Fil d'Ariane (Breadcrumb) ----- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--dark-brown);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-light);
    user-select: none;
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 600;
}


/* ============================================================================
   11. RESPONSIVE
   ============================================================================ */

/* ----- 11.1 Tablettes (769px - 888px) ----- */
@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;
    }
    
    .header-cart {
        display: flex;
        order: 1;
    }
    
    .user-section {
        order: 2;
        margin: 0;
    }
    
    /* Navigation mobile */
    .nav-links,
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(90deg, #000000, var(--accent-gold));
        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,
    .main-nav.active {
        left: 0;
    }
    
    .nav-links a,
    .main-nav a {
        display: block;
        padding: 18px 25px;
        font-size: 1.4rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: var(--transition);
        text-align: left;
    }
    
    .nav-links a:hover,
    .main-nav 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,
    .dropdown-menu.open .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,
    .container-main {
        padding: 0 15px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image-section {
        position: relative;
        top: auto;
    }
    
    .floating-cart {
        width: 300px;
        right: -300px;
    }
    
    /* Produits additionnels et avis en colonne */
    .additional-products,
    .reviews-list {
        flex-direction: column;
        align-items: center;
    }
    
    .additional-product,
    .review-item {
        width: 100%;
        max-width: 500px;
    }
    
    .nav-links a:first-child,
    .main-nav 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;
    }
    
    /* Sections JSON-LD responsive */
    .guarantees-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-pros-cons {
        grid-template-columns: 1fr;
    }
}

/* ----- 11.2 Mobile (481px - 768px) ----- */
@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 {
        flex-direction: column;
    }
    
    .additional-product,
    .review-item {
        width: 100%;
        max-width: 100%;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links,
    .main-nav {
        width: 250px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* Auth pages */
    .auth-container {
        padding: 2rem;
    }
    
    .preferences-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    /* Modal responsive */
    .modal-content {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
    
    .modal-content p {
        font-size: 14px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        max-width: 100%;
    }
    
    /* Footer responsive */
    .column-footer {
        flex-basis: 50%;
    }
    
    /* Sections JSON-LD */
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-pros-cons {
        grid-template-columns: 1fr;
    }
    
    .guarantees-grid {
        grid-template-columns: 1fr;
    }
    
    .product-rating {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-badges {
        flex-direction: column;
    }
    
    .badge {
        width: 100%;
        justify-content: center;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
        padding: 10px 0;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
}

/* ----- 11.3 Petit mobile (360px - 480px) ----- */
@media (max-width: 480px) {
    .header-content {
        padding: 10px;
        gap: 0.8rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .nav-section-wrapper {
        padding: 0;
    }
    
    .nav-links,
    .main-nav {
        width: 250px;
    }
    
    .nav-links a,
    .main-nav 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;
    }
    
    .auth-menu-btn {
        font-size: 1.2rem;
        padding: 6px 10px;
    }
    
    .auth-dropdown {
        right: -10px;
        min-width: 160px;
    }
    
    .auth-container {
        padding: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .column-footer {
        flex-basis: 100%;
    }
    
    .container,
    .container-main {
        padding: 0 15px;
    }
    
    .additional-product,
    .review-item {
        width: 100%;
        padding: 15px;
    }
}

/* ----- 11.4 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,
    .main-nav {
        width: 220px;
    }
    
    .nav-links a,
    .main-nav a {
        padding: 14px 15px;
        font-size: 0.95rem;
    }
    
    .auth-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
}


/* ============================================================================
   FIN DU FICHIER CSS
   ============================================================================ */