/* ===== Styles Additionnels pour Améliorations ===== */

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: #D4AF37;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #D4AF37 0%, #E8D5B7 100%);
    color: #1A1A1A;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    font-weight: 600;
    animation: slideInUp 0.3s ease-out;
    z-index: 2000;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Badge avec animation */
.badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #D4AF37 0%, #E8D5B7 100%);
    color: #1A1A1A;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.new::after {
    content: '✨';
    margin-left: 5px;
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

/* Glassmorphism */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #D4AF37 0%, #E8E8E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 5px;
}

.star {
    width: 20px;
    height: 20px;
    color: #D4AF37;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.star:hover {
    transform: scale(1.2);
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Bounce Animation */
.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Fade In */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide animations */
.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Rotate animation */
.rotate {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Price Tag Styling */
.price-tag {
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37 0%, #E8D5B7 100%);
    color: #1A1A1A;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #E8D5B7 100%);
    color: #1A1A1A;
}

.btn-secondary {
    background: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 100%);
    color: #1A1A1A;
}

.btn-outline {
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
}

.btn-outline:hover {
    background: #D4AF37;
    color: #1A1A1A;
}

/* Gradient Background Animated */
.animated-gradient {
    background: linear-gradient(
        -45deg,
        #D4AF37,
        #E8D5B7,
        #C0C0C0,
        #E8E8E8
    );
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Text Highlight */
.highlight {
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 0.3s ease;
}

.highlight:hover::after {
    width: 100%;
}

/* Smooth Transitions */
* {
    -webkit-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Error State */
.error {
    border-color: #FF6B6B !important;
    color: #FF6B6B;
}

.error::placeholder {
    color: #FF6B6B;
    opacity: 0.5;
}

/* Success State */
.success {
    border-color: #4CAF50 !important;
    color: #4CAF50;
}

/* Warning State */
.warning {
    border-color: #FFD700 !important;
    color: #FFD700;
}

/* Dark Mode Support (optionnel) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #f5f5f5;
    }
    
    .modal-content {
        background: #2a2a2a;
        color: #f5f5f5;
    }
    
    .product-card {
        background: #2a2a2a;
        color: #f5f5f5;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .add-btn,
    .contact {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    .product-card {
        border: 2px solid #D4AF37;
    }
    
    button {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
