/* Custom Scroll Animations for OnMyShop - EFFETS D'ANIMATION SEULEMENT */

/* CORRECTION DU PROBLÈME DE MARGE HORIZONTALE */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Assurer que tous les conteneurs respectent la largeur de l'écran */
.container, .container-fluid, .row {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Correction spécifique pour AOS */
[data-aos] {
    transition-property: opacity, transform;
    max-width: 100% !important;
}

/* Empêcher le débordement horizontal sur les éléments animés */
[data-aos][data-aos].aos-animate {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* EFFETS D'ANIMATION POUR LES CARTES PRODUITS - SEULEMENT LES ANIMATIONS */
.product-item.furniture__product {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product-item.furniture__product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Animation des badges de réduction - SUPPRIMÉE pour éviter les effets visuels indésirables */
.product-badge {
    /* Animation supprimée pour éviter les effets d'ombre et de glow */
}

/* Effet de zoom sur les images au hover */
.product-item.furniture__product:hover .product-thumb img {
    transform: scale(1.03);
}

/* Animation des boutons */
.solid-btn, .border__btn-banner, .border__btn-f {
    transition: all 0.3s ease;
}

.solid-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Animation des étoiles de notation */
.product-item.furniture__product:hover .user-rating i {
    color: gold;
    transform: scale(1.1);
}

/* Animation des services */
.furniture-service__item {
    transition: all 0.3s ease-in-out;
}

.furniture-service__item:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Animation des articles de blog */
.blog-item-4 {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.blog-item-4:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* CORRECTIONS SPÉCIFIQUES POUR ANDROID */
@media (max-width: 768px) {
    /* Forcer la largeur à 100% sur mobile */
    html, body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Corriger les conteneurs */
    .container, .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Corriger les lignes */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Corriger les colonnes */
    [class*="col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Garder les animations AOS sur mobile mais désactiver les effets hover */
    .product-item.furniture__product:hover {
        transform: none;
        box-shadow: none;
    }
    
    .furniture-service__item:hover {
        transform: none;
        box-shadow: none;
    }
    
    .blog-item-4:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Optimisation des animations sur les écrans moyens */
@media screen and (max-width: 1024px) {
    /* Réduire légèrement les effets pour les écrans moyens */
    .product-item.furniture__product:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
}
