/* =========================================
   STYLE GLOBAL - SUN CREATION
   ========================================= */
body {
    background-color: #fcfcfc; color: #333;
    margin: 0; padding: 0;
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 70px; /* Espace pour le menu mobile */
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; }

/* --- PRELOADER --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #111; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}
.loader-content { text-align: center; color: #D4AF37; animation: pulse 2s infinite; }
.loader-logo { font-family: 'Playfair Display'; font-size: 2.5rem; letter-spacing: 2px; }
.loader-line { width: 50px; height: 2px; background: #D4AF37; margin: 10px auto; }
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }

/* --- NAVIGATION DESKTOP --- */
nav {
    position: fixed; top: 0; width: 100%; padding: 20px;
    background: white; z-index: 100; text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-link-gold { color: #D4AF37; font-weight: bold; margin-left: 20px; }
.cart-badge { background: #D4AF37; color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.7rem; vertical-align: top; }

/* --- NAVIGATION MOBILE (App Style - Fixe en bas) --- */
.mobile-nav {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    background: white; border-top: 1px solid #eee; z-index: 1000;
    justify-content: space-around; padding: 10px 0;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.05);
}
.mobile-link { text-align: center; font-size: 0.7rem; color: #555; display: flex; flex-direction: column; align-items: center; }
.mobile-icon { font-size: 1.2rem; margin-bottom: 2px; }
.mobile-link.active { color: #D4AF37; } /* Icône dorée quand actif */

@media (max-width: 768px) { .mobile-nav { display: flex; } }

/* --- BARRE D'ONGLETS (NAVIGATION RAPIDE BOUTIQUE) --- */
.shop-nav {
    display: flex; justify-content: center; gap: 15px; margin-bottom: 40px;
    flex-wrap: wrap;
}
.shop-link {
    padding: 10px 25px; border-radius: 30px; border: 1px solid #eee;
    color: #888; font-size: 0.9rem; font-weight: 600; text-transform: uppercase;
    transition: all 0.3s ease; background: white;
}
.shop-link:hover { border-color: #D4AF37; color: #D4AF37; }
.shop-link.active {
    background: #D4AF37; color: white; border-color: #D4AF37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* --- HERO (Bannières) --- */
.hero-fullscreen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-size: cover; background-position: center;
    z-index: -1; display: flex; align-items: center; justify-content: center;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); }
.hero-text { color: white; text-align: center; position: relative; z-index: 2; padding: 20px; margin-top: 100px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: 4rem; margin: 0 0 10px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }

/* --- CONTENU --- */
.content-wrapper {
    margin-top: 100vh; background: white; padding: 60px 20px;
    position: relative; z-index: 10; box-shadow: 0 -10px 30px rgba(0,0,0,0.1); min-height: 80vh;
}

/* --- PRODUITS --- */
.grid-products {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; max-width: 1200px; margin: auto;
}
.product-card {
    background: #fff; border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: center; transition: transform 0.3s;
}
.product-card:hover { transform: translateY(-5px); }
.card-image { height: 280px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.product-card:hover img { transform: scale(1.05); }
.card-info { padding: 20px; }

/* Boutons */
.btn-discover {
    display: inline-block; padding: 12px 30px; border: 1px solid #D4AF37;
    color: #D4AF37; border-radius: 50px; font-weight: bold; transition: 0.3s; cursor: pointer;
}
.btn-discover:hover { background: #D4AF37; color: white; }

/* --- PANIER & ADMIN --- */
.white-box { background: white; padding: 25px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-bottom: 20px; }
.form-control { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-family: 'Montserrat'; margin-bottom: 10px; box-sizing: border-box; }
.radio-option { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 12px; border: 1px solid #eee; border-radius: 8px; cursor: pointer; }
.radio-option:hover { background: #fafafa; }

/* Tableaux Admin */
.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; }
.admin-table th { background: #f8f9fa; padding: 15px; text-align: left; font-size: 0.85rem; color: #555; }
.admin-table td { padding: 15px; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.badge { padding: 5px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; }
.badge-yellow { background: #fff3cd; color: #856404; }
.badge-green { background: #d4edda; color: #155724; }

/* KPIs Admin */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.kpi-card { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.kpi-value { font-size: 1.5rem; font-weight: bold; margin-top: 10px; color: #333; }
.kpi-green { color: #155724; }

/* Toast */
#toast {
    visibility: hidden; min-width: 250px; background-color: #222; color: #fff;
    text-align: center; border-radius: 50px; padding: 16px; position: fixed; z-index: 2000;
    left: 50%; bottom: 80px; transform: translateX(-50%); opacity: 0; transition: 0.5s;
}
#toast.show { visibility: visible; opacity: 1; bottom: 100px; }