/* ============================================
   INDEX6 MOBILE - Optimisations mobile uniquement
   Inspiré de ok-jardin.fr pour une meilleure UX mobile
   ============================================ */

/* Masquer le menu mobile drawer sur desktop */
@media (min-width: 768px) {
    .mobile-nav-drawer,
    .mobile-nav-overlay {
        display: none !important;
    }
}

/* Breakpoint mobile : uniquement pour écrans < 768px */
@media (max-width: 767px) {
    
    /* ============================================
       HEADER TOP - Version mobile avec bannière bleue
       DISPARAÎT au scroll - Pas sticky
       ============================================ */
    .header-top {
        padding: 0.75rem 0 !important;
        font-size: 0.75rem;
        background-color: #2563eb !important; /* Bleu vif style ok-jardin */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important; /* Pas sticky - disparaît au scroll */
        top: auto !important;
        z-index: 1001 !important;
        width: 100% !important;
        transition: transform 0.3s ease, opacity 0.3s ease !important;
    }
    
    /* Masquer header-top quand on scroll */
    .header-top.hidden-on-scroll {
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .header-top-content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        display: flex !important; /* S'assurer qu'il est visible */
    }
    
    .header-top-left {
        flex-direction: column;
        gap: 0.35rem;
        width: 100%;
        display: flex !important; /* S'assurer qu'il est visible */
    }
    
    .header-top-right {
        display: flex !important; /* Afficher sur mobile */
        gap: 0.5rem;
        align-items: center;
        margin-left: auto;
    }
    
    .header-top-contact-btn {
        color: white !important;
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 500;
        padding: 0.4rem 0.8rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 4px;
        transition: background 0.2s;
        white-space: nowrap;
        display: inline-block !important;
    }
    
    .header-top-contact-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Masquer Newsletter */
    .header-top-right a[href="#newsletter"] {
        display: none !important;
    }
    
    .promo-text {
        font-size: 0.8rem;
        line-height: 1.4;
        color: white !important; /* Texte blanc sur fond bleu */
        font-weight: 500;
        display: flex !important; /* S'assurer qu'il est visible */
        align-items: center;
        gap: 0.5rem;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .promo-text::before {
        content: '💬';
        font-size: 1rem;
        display: inline-block;
    }
    
    .phone-text {
        font-size: 0.75rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.95) !important; /* Texte blanc légèrement transparent */
        font-weight: 400;
        display: flex !important; /* S'assurer qu'il est visible */
        align-items: center;
        gap: 0.5rem;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .phone-text::before {
        content: '';
        width: 0;
        height: 0;
    }
    
    /* ============================================
       HEADER MAIN - Version mobile style ok-jardin avec fond bleu
       STICKY - Reste fixe en haut quand on scroll
       ============================================ */
    .header {
        padding: 0.5rem 0;
        background: #0f172a !important; /* Fond bleu foncé comme desktop */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        position: sticky !important; /* STICKY - Reste fixe en haut */
        top: 0 !important; /* Fixe en haut de l'écran */
        z-index: 1000 !important;
        width: 100% !important;
    }
    
    .header-main {
        flex-wrap: nowrap;
        gap: 0 !important; /* AUCUN GAP - Pour rapprocher au maximum logo/search des favoris */
        padding: 0.5rem 0.25rem 0.5rem 0.5rem !important; /* Padding droit réduit pour tout décaler à droite */
        align-items: center;
        justify-content: space-between !important; /* Space-between pour contrôler l'espacement */
        position: relative;
    }
    
    /* Hamburger menu (catégorie) - à gauche */
    .mobile-menu-toggle {
        flex: 0 0 auto;
        order: 1;
        width: 28px !important; /* RESSERRÉ */
        height: 28px !important; /* RESSERRÉ */
        color: white !important;
        padding: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer !important;
        pointer-events: auto !important;
        z-index: 10001 !important;
        position: relative;
        margin-right: auto !important; /* Pousse le logo boutique à gauche */
        transform: translateX(-10px) !important; /* Décalage supplémentaire à gauche */
    }
    
    /* Logo et texte - DÉCALÉ PLUS À DROITE */
    .logo {
        flex: 0 1 auto;
        gap: 0.3rem !important; /* RESSERRÉ */
        order: 2;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: auto !important; /* Pousse la recherche et les favoris vers la droite */
        text-decoration: none;
        position: relative;
        transform: translateX(30px) !important; /* Décalage PLUS à droite */
    }
    
    .logo img,
    .logo img[src*="logo"] {
        height: 55px !important; /* ENCORE PLUS GROS */
        width: 55px !important; /* ENCORE PLUS GROS */
        min-width: 55px !important; /* Force la largeur minimale */
        min-height: 55px !important; /* Force la hauteur minimale */
        max-width: 55px !important; /* Force la largeur maximale */
        max-height: 55px !important; /* Force la hauteur maximale */
        aspect-ratio: 1 / 1 !important; /* Force le ratio 1:1 pour un cercle parfait */
        flex-shrink: 0 !important;
        filter: none !important; /* Pas de filtre qui pourrait le rendre gris */
        margin-left: -10px !important; /* Décalage supplémentaire à gauche pour le logo */
        padding: 0 !important; /* Pas de padding qui pourrait déformer */
        border-radius: 50% !important; /* ROND PARFAIT */
        object-fit: cover !important; /* Couvre bien le cercle */
        display: block !important; /* Block pour éviter les espaces inline */
        box-sizing: border-box !important; /* Box-sizing pour éviter les dépassements */
    }
    
    /* Surcharger les styles inline du HTML - règles très spécifiques pour forcer le logo ROND */
    header .header .logo img,
    header .header-main .logo img,
    .header .container .header-main .logo img,
    header .logo img,
    .header-main .logo img {
        height: 55px !important;
        width: 55px !important;
        min-width: 55px !important;
        min-height: 55px !important;
        max-width: 55px !important;
        max-height: 55px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        aspect-ratio: 1 / 1 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
        /* Forcer les dimensions pour garantir un cercle parfait */
        overflow: hidden !important;
    }
    
    .logo-text {
        font-size: 0.75rem !important; /* RESSERRÉ - Encore plus petit */
        white-space: nowrap;
        color: white !important; /* Blanc comme les autres éléments */
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px !important; /* RESSERRÉ - Limiter encore plus */
    }
    
    /* Forcer la couleur blanche pour le logo et la recherche - override toutes les autres règles */
    .header .logo,
    .header .logo * {
        color: white !important;
    }
    
    .header .search-bar,
    .header .search-bar *,
    .header .search-btn,
    .header .search-btn * {
        color: white !important;
        fill: white !important;
    }
    
    /* Barres de séparation - masquer sur mobile */
    .header-main > div[style*="width: 1px"] {
        display: none !important;
    }
    
    /* Barre de recherche - masquer l'input mais afficher l'icône comme les autres icônes - PLUS À DROITE */
    .search-bar {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 3 !important;
        flex: 0 0 auto;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        margin-left: 0 !important; /* Pas de marge gauche - colle au logo */
        margin-right: -20px !important; /* Marge négative pour rapprocher des favoris */
        background: transparent !important;
        border: none !important;
        position: relative;
        transform: translateX(25px) !important; /* Décalage PLUS vers la droite */
    }
    
    .search-bar .search-input {
        display: none !important;
    }
    
    .search-bar .search-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 28px !important; /* RESSERRÉ */
        height: 28px !important; /* RESSERRÉ */
        color: white !important; /* Blanc comme les autres icônes */
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }
    
    .search-bar .search-btn svg {
        width: 18px !important; /* RESSERRÉ */
        height: 18px !important; /* RESSERRÉ */
        color: white !important; /* Blanc comme les autres icônes */
        fill: white !important; /* Blanc pour le remplissage aussi */
    }
    
    /* Barre de recherche étendue - apparaît juste en dessous du header en bleu */
    .search-bar-expanded {
        position: absolute;
        top: 100% !important; /* Juste en dessous du header */
        left: 0;
        right: 0;
        width: 100% !important;
        background: #0f172a !important; /* Fond bleu comme le header */
        z-index: 100;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        display: none !important; /* Masquée par défaut */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease, height 0.3s ease;
    }
    
    .search-bar-expanded.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .search-bar-expanded .container {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: row !important; /* S'assurer que c'est en ligne */
    }
    
    .search-bar-expanded .search-input {
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important; /* Permet au flex de fonctionner */
        max-width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        height: 44px !important;
        border-radius: 8px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
        margin-right: 0.5rem;
        box-sizing: border-box;
    }
    
    .search-bar-expanded .search-input::placeholder {
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 0.9rem !important;
    }
    
    /* Masquer le bouton de recherche (loupe) dans la barre étendue */
    .search-bar-expanded .search-btn {
        display: none !important;
    }
    
    /* Croix pour fermer à droite de l'input */
    .search-bar-expanded .search-close-btn {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        color: white !important;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    .search-bar-expanded .search-close-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* Header avec position relative pour la barre de recherche */
    /* Header reste sticky - ne pas surcharger */
    /* .header position déjà définie plus haut comme sticky */
    
    /* Icônes header (favoris, compte, panier) - à droite - PROCHE du search */
    .header-icons {
        order: 4 !important;
        gap: 0.35rem !important; /* RESSERRÉ */
        flex: 0 0 auto;
        display: flex !important;
        align-items: center;
        margin-left: 0 !important; /* Pas de marge négative - position normale */
        margin-right: 0 !important; /* Collées au bord droit */
    }
    
    .header-icon {
        position: relative;
        color: white !important;
        width: 28px !important; /* RESSERRÉ */
        height: 28px !important; /* RESSERRÉ */
        display: flex !important; /* S'assurer que compte est visible */
        align-items: center;
        justify-content: center;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        flex-shrink: 0;
    }
    
    /* S'assurer que l'icône compte est visible sur mobile */
    .header-icon.account-icon {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header-icon svg {
        width: 20px !important; /* RESSERRÉ */
        height: 20px !important; /* RESSERRÉ */
    }
    
    /* AFFICHER l'icône compte sur mobile - à droite */
    .header-icon.account-icon {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Badges pour panier et favoris */
    .cart-count,
    .favorites-count {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #10b981;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 600;
        border: 2px solid #0f172a;
    }
    
    .cart-count,
    .favorites-count {
        position: absolute;
        top: -6px;
        right: -6px;
        background: #10b981;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 600;
    }
    
    /* Hamburger menu button - nouveau */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
        order: 1;
        padding: 0;
        transition: opacity 0.2s;
    }
    
    .mobile-menu-toggle:active {
        opacity: 0.7;
    }
    
    .mobile-menu-toggle svg {
        width: 24px;
        height: 24px;
    }
    
    /* Masquer le hamburger sur desktop */
    @media (min-width: 768px) {
        .mobile-menu-toggle {
            display: none !important;
        }
    }
    
    /* Masquer la navigation desktop sur mobile */
    .main-nav-vertical {
        display: none !important;
    }
    
    /* Afficher le menu hamburger uniquement sur mobile */
    .mobile-menu-toggle.hidden-desktop {
        display: flex !important;
    }
    
    /* Barre de séparation avant nav - masquer */
    .header > .container > div[style*="width: 100%"][style*="height: 1px"] {
        display: none !important;
    }
    
    /* ============================================
       MENU MOBILE LATERAL (Drawer)
       ============================================ */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        display: none; /* Masqué par défaut */
        transition: opacity 0.3s, visibility 0.3s;
    }
    
    .mobile-nav-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important; /* Afficher quand actif */
    }
    
    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: white;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
        -webkit-overflow-scrolling: touch;
        display: none; /* Masqué par défaut */
        visibility: hidden;
    }
    
    .mobile-nav-drawer.active {
        transform: translateX(0) !important;
        display: block !important; /* Afficher quand actif */
        visibility: visible !important;
    }
    
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        background: #0f172a;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
    }
    
    .mobile-nav-close {
        background: transparent;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav-content {
        padding: 1rem 0;
    }
    
    .mobile-nav-item {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        color: #0f172a;
        text-decoration: none;
        border-bottom: 1px solid #f1f5f9;
        transition: background 0.2s;
        font-size: 1rem;
        font-weight: 500;
        min-height: 48px; /* Taille tactile optimale */
    }
    
    .mobile-nav-item:active {
        background: #f1f5f9;
    }
    
    .mobile-nav-item:hover {
        background: #f8fafc;
    }
    
    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
        margin-right: 0.75rem;
        flex-shrink: 0;
    }
    
    .mobile-nav-item.has-submenu::after {
        content: '›';
        margin-left: auto;
        font-size: 1.2rem;
        color: #94a3b8;
    }
    
    .mobile-nav-submenu {
        display: none;
        background: #f8fafc;
        padding: 0.5rem 0;
    }
    
    .mobile-nav-submenu.active {
        display: block;
    }
    
    .mobile-nav-subitem {
        display: block;
        padding: 0.875rem 1.5rem 0.875rem 3.5rem;
        color: #475569;
        text-decoration: none;
        font-size: 0.9rem;
        border-bottom: 1px solid #e2e8f0;
        transition: background 0.2s, color 0.2s;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .mobile-nav-subitem:active {
        background: #f1f5f9;
        color: #0f172a;
    }
    
    .mobile-nav-subitem:hover {
        background: #f8fafc;
    }
    
    /* ============================================
       SECTIONS PRODUITS - Optimisation mobile
       ============================================ */
    .section {
        padding: 1.5rem 0 !important;
    }
    
    .featured-products-section {
        padding-top: 1rem !important;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .featured-section-header,
    .featured-row-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .featured-section-header h2,
    .featured-row-header h3 {
        font-size: 1.2rem;
        margin: 0;
        font-weight: 600;
        color: #0f172a;
    }
    
    .btn-view-all {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        color: #0f172a;
        text-decoration: none;
        font-weight: 500;
        white-space: nowrap;
    }
    
    .btn-view-all:hover {
        text-decoration: underline;
    }
    
    /* Style "Voir notre boutique" pour produits populaires */
    /* Supprimer la flèche après "Tout voir" dans TOUTES les sections (y compris "Nos produits phares") */
    .btn-view-all::after {
        content: '' !important; /* Pas de flèche */
    }
    
    /* Supprimer aussi dans Décoration, Artisanal et Librairie */
    .featured-products-second-row .featured-row-header .btn-view-all::after {
        content: '' !important; /* Pas de flèche */
    }
    
    /* Supprimer dans "Nos produits phares" */
    .featured-section-header .btn-view-all::after {
        content: '' !important; /* Pas de flèche */
    }
    
    /* Ajouter "Voir notre boutique" si la classe existe */
    .btn-view-boutique {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        color: #0f172a;
        text-decoration: none;
        font-weight: 500;
        white-space: nowrap;
    }
    
    .btn-view-boutique::after {
        content: ' →';
    }
    
    /* Section produits populaires - style ok-jardin */
    .popular-products-section {
        margin-top: 2rem;
    }
    
    .popular-products-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .popular-products-header h3 {
        font-size: 1.2rem;
        margin: 0;
        font-weight: 600;
        color: #0f172a;
    }
    
    /* Layout produits phares - version mobile simplifiée - Toute la largeur */
    .featured-products-layout {
        flex-direction: column;
        gap: 1.5rem;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .featured-product-main {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 1rem !important; /* Un peu de padding pour la mystery box */
    }
    
    .featured-product-card {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
    }
    
    /* Masquer les flèches carousel sur mobile - on utilise le scroll */
    .carousel-window {
        position: relative;
        width: 100%;
    }
    
    .carousel-arrow {
        display: none !important; /* Masquer les flèches sur mobile */
    }
    
    /* Masquer TOUTES les flèches dans Décoration, Artisanal et Librairie */
    .featured-products-second-row .carousel-arrow {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Produits en liste horizontale (1 par ligne) - Toute la largeur */
    .featured-products-grid,
    .featured-products-grid.carousel-track {
        gap: 0 !important; /* Gap entre les cartes géré par margin-bottom des cartes */
        row-gap: 0 !important; /* Gap vertical géré par margin-bottom */
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important; /* Pas de padding pour utiliser toute la largeur */
        margin: 0 !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Produits dans "Nos produits phares" - espacement très resserré entre les produits */
    #featuredProductsGrid .product-card {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0.75rem; /* Gap réduit pour rapprocher image et infos */
        background: white;
        border: 1px solid #e2e8f0;
        border-left: none !important; /* Pas de bordure gauche pour aller au bord */
        border-right: none !important; /* Pas de bordure droite pour aller au bord */
        border-top: none !important; /* Pas de bordure du haut sauf pour le premier */
        border-radius: 0 !important; /* Pas de border-radius pour utiliser toute la largeur */
        padding: 0.25rem 1rem 0.25rem 0.5rem !important; /* Padding vertical réduit */
        margin-bottom: -60px !important; /* Marge négative, réduite pour encore plus d'espacement */
        margin-top: 0 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: box-shadow 0.2s;
        position: relative;
        flex-shrink: 0;
        min-height: auto !important; /* Pas de hauteur minimale */
        height: auto !important; /* Hauteur automatique */
        transform: translateY(0) !important; /* Pas de transform qui pourrait créer de l'espace */
    }
    
    #featuredProductsGrid .product-card:first-child {
        margin-top: 0 !important;
        border-top: 1px solid #e2e8f0 !important; /* Bordure du haut uniquement pour le premier */
    }
    
    #featuredProductsGrid .product-card:last-child {
        margin-bottom: 0 !important; /* Pas de marge sur le dernier */
    }
    
    /* Produits dans "Décoration" (et autres sections second-row) - même espacement très resserré */
    .featured-products-second-row .featured-products-grid .product-card,
    #featuredProductsGrid2 .product-card,
    #featuredProductsGrid3 .product-card {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0.75rem; /* Gap réduit pour rapprocher image et infos */
        background: white;
        border: 1px solid #e2e8f0;
        border-left: none !important; /* Pas de bordure gauche pour aller au bord */
        border-right: none !important; /* Pas de bordure droite pour aller au bord */
        border-top: none !important; /* Pas de bordure du haut sauf pour le premier */
        border-radius: 0 !important; /* Pas de border-radius pour utiliser toute la largeur */
        padding: 0.25rem 1rem 0.25rem 0.5rem !important; /* Padding vertical réduit */
        margin-bottom: -60px !important; /* Marge négative, réduite pour encore plus d'espacement */
        margin-top: 0 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: box-shadow 0.2s;
        position: relative;
        flex-shrink: 0;
        min-height: auto !important; /* Pas de hauteur minimale */
        height: auto !important; /* Hauteur automatique */
        transform: translateY(0) !important; /* Pas de transform qui pourrait créer de l'espace */
    }
    
    .featured-products-second-row .featured-products-grid .product-card:first-child,
    #featuredProductsGrid2 .product-card:first-child,
    #featuredProductsGrid3 .product-card:first-child {
        margin-top: 0 !important;
        border-top: 1px solid #e2e8f0 !important; /* Bordure du haut uniquement pour le premier */
    }
    
    .featured-products-second-row .featured-products-grid .product-card:last-child,
    #featuredProductsGrid2 .product-card:last-child,
    #featuredProductsGrid3 .product-card:last-child {
        margin-bottom: 0 !important; /* Pas de marge sur le dernier */
    }
    
    /* Style générique pour compatibilité (appliqué si aucune classe spécifique) */
    .featured-products-grid .product-card {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0.75rem; /* Gap réduit pour rapprocher image et infos */
        background: white;
        border: 1px solid #e2e8f0;
        border-left: none !important; /* Pas de bordure gauche pour aller au bord */
        border-right: none !important; /* Pas de bordure droite pour aller au bord */
        border-top: none !important; /* Pas de bordure du haut sauf pour le premier */
        border-radius: 0 !important; /* Pas de border-radius pour utiliser toute la largeur */
        padding: 0.25rem 1rem 0.25rem 0.5rem !important; /* Padding vertical réduit */
        margin-bottom: -60px !important; /* Marge négative, réduite pour encore plus d'espacement */
        margin-top: 0 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: box-shadow 0.2s;
        position: relative;
        flex-shrink: 0;
        min-height: auto !important; /* Pas de hauteur minimale */
        height: auto !important; /* Hauteur automatique */
        transform: translateY(0) !important; /* Pas de transform qui pourrait créer de l'espace */
    }
    
    .featured-products-grid .product-card:first-child {
        margin-top: 0 !important;
        border-top: 1px solid #e2e8f0 !important; /* Bordure du haut uniquement pour le premier */
    }
    
    .featured-products-grid .product-card:last-child {
        margin-bottom: 0 !important; /* Pas de marge sur le dernier */
    }
    
    .featured-products-grid .product-card:active {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
    
    /* Image produit à gauche - taille normale */
    .featured-products-grid .product-card .product-image,
    .featured-products-grid .product-card .product-image-wrapper {
        flex: 0 0 170px !important; /* TAILLE NORMALE 170px */
        width: 170px !important;
        height: 170px !important; /* TAILLE NORMALE 170px */
        min-width: 170px;
        max-height: 170px !important;
        aspect-ratio: 1 / 1;
        border-radius: 0 !important;
        overflow: visible !important; /* Visible pour que les images ne soient pas coupées */
        background: transparent !important; /* Transparent au lieu de gris */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important; /* Pas de padding pour réduire la hauteur */
        margin: 0 !important;
        margin-left: 0 !important; /* Pas de décalage négatif pour éviter le débordement */
    }
    
    .featured-products-grid .product-card .product-image img,
    .featured-products-grid .product-card .product-card-image {
        width: 100% !important; /* Largeur 100% pour que l'image soit entièrement visible */
        height: 100% !important; /* Hauteur 100% pour que l'image soit entièrement visible */
        max-width: 100% !important; /* Ne pas dépasser la largeur */
        max-height: 100% !important; /* Ne pas dépasser la hauteur */
        object-fit: contain !important; /* Contenir l'image entière sans la couper */
        object-position: center !important; /* Centrer l'image */
        background: transparent !important; /* Pas de fond gris */
        transform: none !important; /* Pas de transform pour éviter les coupures */
    }
    
    /* S'assurer qu'il n'y a pas de background gris ailleurs */
    .featured-products-grid .product-card .product-image-wrapper,
    .featured-products-grid .product-card a {
        background: transparent !important;
    }
    
    /* Infos produit à droite - prendre toute la largeur restante */
    .featured-products-grid .product-card .product-info {
        flex: 1 1 auto !important;
        display: flex;
        flex-direction: column;
        gap: 0.15rem !important; /* Gap MINIMAL dans les infos produit */
        min-width: 0;
        padding: 0 !important;
        background: transparent !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .featured-products-grid .product-card .product-name {
        font-size: 0.9rem !important; /* Taille réduite */
        font-weight: 500;
        color: #0f172a;
        margin: 0 !important;
        margin-bottom: 0.1rem !important; /* Marge réduite */
        line-height: 1.3 !important; /* Line-height réduit */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .featured-products-grid .product-card .product-price {
        font-size: 0.95rem !important; /* Taille réduite */
        font-weight: 700;
        color: #0f172a;
        margin: 0 !important;
        margin-top: 0.1rem !important; /* Marge top réduite */
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .featured-products-grid .product-card .product-price .old-price {
        font-size: 0.85rem;
        color: #94a3b8;
        text-decoration: line-through;
        margin-right: 0.5rem;
        font-weight: 400;
    }
    
    /* Masquer les badges sur mobile liste SAUF le badge précommande */
    .featured-products-grid .product-card .product-badges {
        display: flex !important; /* Afficher le conteneur des badges */
        visibility: visible !important;
        opacity: 1 !important;
    }
    /* Masquer uniquement les badges "Nouveautés" et "Promotion" sur mobile, mais garder le badge précommande */
    .featured-products-grid .product-card .product-badges .badge-new,
    .featured-products-grid .product-card .product-badges .badge-sale {
        display: none !important;
    }
    /* Forcer l'affichage du badge précommande sur mobile */
    .featured-products-grid .product-card .product-badges .badge-preorder {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Bouton favoris positionné en haut à droite de la carte */
    .featured-products-grid .product-card .product-favorite-btn {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #e2e8f0;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 0;
    }
    
    .featured-products-grid .product-card .product-favorite-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Masquer la catégorie sur mobile */
    .featured-products-grid .product-card .product-category {
        display: none;
    }
    
    /* Catégories équipement - version mobile */
    .categories-grid-equipement {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 2rem;
    }
    
    .category-card-equipement {
        text-align: center;
    }
    
    .category-image-equipement {
        margin-bottom: 0.5rem;
    }
    
    .category-card-equipement h3 {
        font-size: 0.9rem;
    }
    
    /* ============================================
       BANNIERE HERO - Optimisation mobile
       ============================================ */
    .hero-carousel {
        margin: 1.5rem 0 !important;
    }
    
    .hero-carousel-image {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* ============================================
       BANDEAU DE CONFIANCE - Version mobile
       ============================================ */
    .trust-banner {
        padding: 1.5rem 0;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    
    .trust-item {
        padding: 1rem;
        text-align: center;
    }
    
    .trust-icon-circle {
        width: 48px;
        height: 48px;
        margin: 0 auto 0.75rem;
    }
    
    .trust-item h3 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .trust-item p {
        font-size: 0.8rem;
    }
    
    /* ============================================
       FOOTER - Version mobile
       ============================================ */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-newsletter {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .footer-newsletter-input {
        width: 100%;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* ============================================
       AMÉLIORATIONS GÉNÉRALES MOBILE
       ============================================ */
    
    /* Amélioration du scroll */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Container optimisé - padding normal sauf pour sections produits */
    .container {
        padding: 0 1rem !important;
    }
    
    /* Container des sections produits - toute la largeur */
    .featured-products-section > .container,
    .featured-products-carousel > .container,
    .featured-products-second-row > .container {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Section produits phares - Toute la largeur */
    .featured-products-section .container {
        padding: 0 !important; /* Pas de padding pour utiliser toute la largeur */
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .featured-products-section {
        padding: 1.5rem 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Carousel window - Toute la largeur */
    .carousel-window {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* S'assurer que le contenu principal est visible et prend toute la largeur */
    main,
    #main-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 100px;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* S'assurer que les sections sont visibles et prennent toute la largeur */
    .section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 50px;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* S'assurer que les produits sont visibles */
    .featured-products-section,
    .featured-products-carousel,
    .featured-products-second-row {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .featured-products-grid,
    .featured-products-grid .product-card {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Body prend toute la largeur */
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important; /* Empêcher le scroll horizontal */
    }
    
    /* Debug : afficher une bordure rouge si problème */
    body:empty::before {
        content: 'ERREUR: Le body est vide !';
        display: block;
        background: red;
        color: white;
        padding: 2rem;
        text-align: center;
        font-size: 1.2rem;
    }
    
    /* En-têtes avec padding minimal - mais produits prennent toute la largeur */
    .featured-section-header,
    .featured-row-header {
        padding: 0 1rem !important; /* Padding seulement pour les titres */
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    /* Container principal - toute la largeur */
    .featured-products-carousel,
    .featured-products-second-row {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Carousel window sans padding */
    .carousel-window {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Masquer certains éléments sur mobile */
    .hidden-mobile {
        display: none !important;
    }
    
    /* Espacement réduit */
    .mb-mobile-sm {
        margin-bottom: 0.5rem;
    }
    
    .mt-mobile-sm {
        margin-top: 0.5rem;
    }
    
    /* Amélioration des boutons sur mobile */
    button, .btn {
        min-height: 44px; /* Taille tactile optimale iOS */
        touch-action: manipulation;
    }
    
    /* Amélioration des liens sur mobile */
    a {
        touch-action: manipulation;
    }
    
    /* Amélioration des inputs sur mobile */
    input, textarea, select {
        font-size: 16px !important; /* Évite le zoom automatique sur iOS */
    }
    
    /* Optimisation des images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Amélioration de la lisibilité */
    .section-title,
    .featured-subtitle {
        line-height: 1.3;
    }
    
    /* Espacement vertical optimisé */
    .featured-products-second-row {
        margin-top: 2rem;
    }
    
    /* Carousel optimisé pour mobile */
    .carousel-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .carousel-track::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
}
