/* Style CSS personnalisé pour Davi Shop */

/* Animations personnalisées */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Classes d'animation */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-pulse-subtle {
    animation: pulse 2s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Effets de survol améliorés */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Couleurs personnalisées Davi Shop */
.text-davi-blue {
    color: #1E40AF;
}

.text-davi-gold {
    color: #F59E0B;
}

.bg-davi-blue {
    background-color: #1E40AF;
}

.bg-davi-gold {
    background-color: #F59E0B;
}

.gradient-davi {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #F59E0B 100%);
}

/* Navigation smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Amélioration des transitions globales */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Override pour les éléments interactifs */
button, .hover-scale {
    transition: all 0.2s ease;
}

button:hover, .hover-scale:hover {
    transform: scale(1.02);
}

/* Effet de focus amélioré */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Loading states */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Styles spécifiques pour les produits */
.product-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Styles pour les filtres de catégorie */
.category-filter {
    transition: all 0.3s ease;
}

.category-filter.active {
    background: linear-gradient(135deg, #3B82F6, #1E40AF) !important;
    color: white !important;
    transform: scale(1.05);
}

.category-filter:not(.active):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .animate-fade-in {
        animation-duration: 0.6s;
    }
    
    .hover-lift:active {
        transform: translateY(-4px);
    }
    
    .product-card:hover {
        transform: translateY(-4px);
    }
}

/* Text selection */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1E40AF;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Logo animations */
.logo-davi svg {
    transition: transform 0.3s ease;
}

.logo-davi:hover svg {
    transform: rotate(5deg) scale(1.05);
}

/* Boutons WhatsApp spéciaux */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

/* Responsive improvements */
@media (max-width: 640px) {
    .text-4xl {
        font-size: 2.25rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .px-8 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Améliorations pour les cartes produits */
.product-image-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image-overlay {
    opacity: 1;
}

/* Styles pour les badges */
.badge-category {
    backdrop-filter: blur(10px);
    background: rgba(245, 158, 11, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer styles */
footer {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
}

/* Boutons avec effet de pression */
.btn-press {
    transition: all 0.1s ease;
}

.btn-press:active {
    transform: scale(0.98);
}

/* Styles pour les icônes */
.icon-bounce {
    transition: transform 0.2s ease;
}

.icon-bounce:hover {
    transform: translateY(-2px);
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible pour l'accessibilité */
.focus-visible:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}