/* =========================================
   ANIMATIONS SUBTILES - MOZA STORE
   Version simplifiée - Ne touche PAS au slider
   ========================================= */

/* ====================== */
/* ANIMATIONS GÉNÉRALES */
/* ====================== */

/* Animation de fondu progressif */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de glissement doux */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de pulse subtile */
@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* ====================== */
/* HEADER & NAVIGATION */
/* ====================== */

/* Navigation sticky avec transition douce */
header {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Logo avec animation au hover */
#logo-image {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#logo-image:hover {
    transform: scale(1.08) rotate(-2deg);
}

/* Liens de navigation avec animation fluide */
.nav-menu a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icônes de navigation (panier, wishlist, tracking) */
.nav-right a {
    transition: all 0.3s ease;
    position: relative;
}

.nav-right a:hover {
    transform: translateY(-2px);
}

.nav-right a:hover i {
    animation: subtlePulse 0.6s ease;
}

/* Badges de compteur avec animation */
.cart-count, .wishlist-count {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-count.updated, .wishlist-count.updated {
    animation: subtlePulse 0.5s ease;
}

/* ====================== */
/* SLIDER - NE PAS TOUCHER */
/* ====================== */

/* On ne touche absolument pas au slider pour ne pas casser les boutons */

/* ====================== */
/* CATÉGORIES */
/* ====================== */

/* Cartes de catégories avec animation au scroll */
.category-card {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:nth-child(1) {
    animation-delay: 0.1s;
}

.category-card:nth-child(2) {
    animation-delay: 0.2s;
}

.category-card:nth-child(3) {
    animation-delay: 0.3s;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
}

.category-card:hover .category-img {
    transform: scale(1.08);
}

/* Image de catégorie avec zoom doux */
.category-img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Titre de catégorie avec effet */
.category-card h3 {
    transition: all 0.3s ease;
}

.category-card:hover h3 {
    color: #34495E;
    transform: translateY(-2px);
}

/* ====================== */
/* MARQUES */
/* ====================== */

/* Logos des marques avec apparition progressive */
.brand-logo {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo:nth-child(1) { animation-delay: 0.1s; }
.brand-logo:nth-child(2) { animation-delay: 0.2s; }
.brand-logo:nth-child(3) { animation-delay: 0.3s; }
.brand-logo:nth-child(4) { animation-delay: 0.4s; }
.brand-logo:nth-child(5) { animation-delay: 0.5s; }

.brand-logo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.brand-logo img {
    transition: all 0.3s ease;
}

.brand-logo:hover img {
    filter: brightness(1.1);
}

/* ====================== */
/* SECTION "POURQUOI NOUS" */
/* ====================== */

/* Boîtes de fonctionnalités */
.feature-box {
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-box:nth-child(1) { animation-delay: 0.1s; }
.feature-box:nth-child(2) { animation-delay: 0.2s; }
.feature-box:nth-child(3) { animation-delay: 0.3s; }
.feature-box:nth-child(4) { animation-delay: 0.4s; }

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

/* Icônes des fonctionnalités */
.feature-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon img {
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon img {
    filter: brightness(1.1);
}

/* Détails des fonctionnalités avec expansion douce */
.feature-details {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================== */
/* PRODUITS */
/* ====================== */

/* Cartes produits avec animation */
.product-card, .phone-card {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Décalage d'animation pour chaque produit */
.product-card:nth-child(1), .phone-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2), .phone-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3), .phone-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4), .phone-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5), .phone-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6), .phone-card:nth-child(6) { animation-delay: 0.3s; }

/* Effet au survol */
.product-card:hover, .phone-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Image produit avec zoom subtil */
.product-image, .phone-image {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.product-card:hover .product-image img,
.phone-card:hover .phone-image img {
    transform: scale(1.08);
}

/* Badge de promotion avec pulse */
.promo-badge {
    animation: subtlePulse 2s infinite;
}

/* Boutons d'action avec effet */
.product-actions button, .phone-actions button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-actions button:hover,
.phone-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 73, 94, 0.3);
}

/* Effet de brillance sur les boutons */
.product-actions button::before,
.phone-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.product-actions button:hover::before,
.phone-actions button:hover::before {
    left: 100%;
}

/* Icône wishlist avec animation */
.wishlist-btn i {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wishlist-btn:hover i {
    transform: scale(1.2);
}

.wishlist-btn.in-wishlist i {
    animation: subtlePulse 0.5s ease;
}

/* ====================== */
/* BOUTONS GÉNÉRAUX */
/* ====================== */

/* Tous les boutons principaux */
.cta-button, .checkout-btn, .search-btn, button[type="submit"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button:hover, .checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.3);
}

.cta-button:active, .checkout-btn:active {
    transform: translateY(-1px);
}

/* ====================== */
/* TITRES DE SECTION */
/* ====================== */

.section-title {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    transition: all 0.3s ease;
}

.section-title:hover {
    color: #34495E;
    transform: translateX(5px);
}

/* ====================== */
/* CONTACT & RÉSEAUX SOCIAUX */
/* ====================== */

/* Éléments de contact */
.contact-item {
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
    transition: all 0.3s ease;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }

.contact-item:hover {
    transform: translateX(8px);
}

.contact-item i {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-item:hover i {
    transform: scale(1.15) rotate(10deg);
    color: #34495E;
}

/* Liens réseaux sociaux avec couleurs statiques */
.social-link {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white !important; /* Texte toujours blanc */
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }

/* Couleurs statiques pour chaque réseau */
.social-link.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d) !important;
    border-color: transparent !important;
}

.social-link.facebook {
    background: #1877f2 !important;
    border-color: transparent !important;
}

.social-link.tiktok {
    background: #000000 !important;
    border-color: transparent !important;
}

/* Effet au survol : uniquement élévation et ombre */
.social-link:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    filter: brightness(1.1); /* Légère luminosité en plus au hover */
}

.social-link i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover i {
    transform: scale(1.15) rotate(10deg);
}

/* Pour les spans (texte) */
.social-link span {
    color: white !important;
}

/* ====================== */
/* FOOTER */
/* ====================== */

footer {
    animation: fadeIn 1s ease;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: #34495E;
    transform: translateX(3px);
}

/* ====================== */
/* MODALES */
/* ====================== */

.modal-overlay {
    animation: fadeIn 0.3s ease;
}

.modal-content {
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.close-modal {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.close-modal:hover {
    transform: rotate(90deg) scale(1.2);
    color: #e74c3c;
}

/* ====================== */
/* NOTIFICATIONS */
/* ====================== */

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Classe pour les notifications */
.notification {
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

/* ====================== */
/* FORMULAIRES */
/* ====================== */

input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.15);
}

/* ====================== */
/* PANIER */
/* ====================== */

.cart-item {
    opacity: 0;
    animation: slideInUp 0.5s ease forwards;
}

.cart-item:nth-child(1) { animation-delay: 0.05s; }
.cart-item:nth-child(2) { animation-delay: 0.1s; }
.cart-item:nth-child(3) { animation-delay: 0.15s; }
.cart-item:nth-child(4) { animation-delay: 0.2s; }
.cart-item:nth-child(5) { animation-delay: 0.25s; }

.cart-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quantity-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quantity-btn:hover:not(:disabled) {
    transform: scale(1.15);
    background: #34495E !important;
}

.remove-item {
    transition: all 0.3s ease;
}

.remove-item:hover {
    transform: scale(1.1) rotate(10deg);
    color: #e74c3c !important;
}

/* ====================== */
/* BREADCRUMB */
/* ====================== */

.breadcrumb {
    animation: fadeIn 0.6s ease;
}

.breadcrumb a {
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #34495E;
    transform: translateX(3px);
}

/* ====================== */
/* FILTRES */
/* ====================== */

.filter-group {
    opacity: 0;
    animation: slideInUp 0.5s ease forwards;
}

.filter-group:nth-child(1) { animation-delay: 0.1s; }
.filter-group:nth-child(2) { animation-delay: 0.2s; }
.filter-group:nth-child(3) { animation-delay: 0.3s; }
.filter-group:nth-child(4) { animation-delay: 0.4s; }

.filter-option {
    transition: all 0.2s ease;
}

.filter-option:hover {
    transform: translateX(5px);
    background: rgba(52, 73, 94, 0.05);
}

/* ====================== */
/* RESPONSIVE - DÉSACTIVER CERTAINES ANIMATIONS SUR MOBILE */
/* ====================== */

@media (max-width: 768px) {
    /* Désactiver les animations lourdes sur mobile pour performance */
    .product-card, .phone-card,
    .category-card, .brand-logo,
    .feature-box, .contact-item,
    .social-link {
        animation: none;
        opacity: 1;
    }
    
    /* Garder seulement les transitions au hover */
    .product-card:hover, .phone-card:hover {
        transform: translateY(-4px);
    }
    
    .category-card:hover {
        transform: translateY(-4px);
    }
}

/* ====================== */
/* SMOOTH SCROLL */
/* ====================== */

html {
    scroll-behavior: smooth;
}

/* ====================== */
/* LOADING STATES */
/* ====================== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(
        to right,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 1000px 100%;
}

/* ====================== */
/* UTILITAIRES D'ANIMATION */
/* ====================== */

/* Classe pour désactiver toutes les animations */
.no-animations * {
    animation: none !important;
    transition: none !important;
}

/* Classe pour animation retardée */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }