@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;900&family=Amiri:wght@400;700&display=swap');

:root {
    --primary: #000000;
    --accent: #facc15; /* Jaune par défaut */
    --bg-body: #fafafa;
    --text-main: #000000;
    --font-main: 'Inter', sans-serif;
}

/* --- THÈME RAMADAN (Doré & Nuit) --- */
body.ramadan {
    --primary: #d4af37; /* Or */
    --accent: #1e293b; /* Bleu Nuit */
    --bg-body: #fffbf0; /* Crème très léger */
    --font-main: 'Amiri', 'Inter', serif; /* Police orientale */
    background-image: url('https://www.transparenttextures.com/patterns/arabesque.png');
}
body.ramadan .product-card { border: 1px solid #e2e8f0; }
body.ramadan .promo-badge { background: #d4af37 !important; color: white !important; }

/* --- THÈME AÏD (Festif & Coloré) --- */
body.aid {
    --primary: #10b981; /* Vert Émeraude */
    --accent: #ec4899; /* Rose */
    --bg-body: #f0fdf4; /* Vert très pâle */
    background-image: radial-gradient(#10b981 0.5px, transparent 0.5px), radial-gradient(#10b981 0.5px, #f0fdf4 0.5px);
    background-size: 20px 20px;
}

/* --- BASE --- */
body { 
    font-family: var(--font-main); 
    background-color: var(--bg-body); 
    color: var(--text-main);
    overflow-x: hidden; 
    transition: background 0.5s ease;
}

/* Animation d'entrée */
.fade-in { animation: fadeIn 0.8s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Effet Hover Produit */
.product-card { transition: all 0.3s ease; border: none !important; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

/* --- DÉCORATIONS RAMADAN (LANTERNES) --- */
.lantern-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 0; 
    z-index: 50; pointer-events: none;
}
.lantern {
    position: absolute; top: -20px;
    transform-origin: top center;
    animation: swing 3s infinite ease-in-out alternate;
}
.lantern img { width: 60px; drop-shadow: 0 10px 10px rgba(0,0,0,0.2); }
.l-1 { left: 10%; animation-delay: 0s; width: 80px; }
.l-2 { left: 85%; animation-delay: 1s; width: 60px; }
.l-3 { left: 50%; animation-delay: 0.5s; width: 100px; top: -40px; }

@keyframes swing {
    0% { transform: rotate(5deg); }
    100% { transform: rotate(-5deg); }
}

/* --- DÉCORATIONS AÏD (CONFETTIS CSS) --- */
.confetti {
    position: absolute; width: 10px; height: 10px; background-color: #f2d74e;
    animation: confetti 5s infinite ease-in-out;
}
@keyframes confetti {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* --- ELEMENTS UI STYLES --- */
.btn-primary { background-color: var(--primary) !important; color: white !important; }
.text-primary { color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

/* Bouton WhatsApp Flottant */
.whatsapp-float {
    position: fixed; bottom: 20px; right: 20px;
    background-color: #25d366; color: white;
    width: 60px; height: 60px; border-radius: 50%;
    text-align: center; font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #1ebc57; }

/* Scroll To Top */
.scroll-top {
    position: fixed; bottom: 90px; right: 20px;
    width: 40px; height: 40px; background: black; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 90;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); font-size: 20px;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-5px); background: #333; }

/* Toast */
.toast-enter { transform: translateX(0) !important; opacity: 1 !important; }
.toast-leave { transform: translateX(100%); opacity: 0; }

/* Social Proof Popup */
.social-popup { animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }