@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary: #00ff41; 
    --dark: #000000;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --blur: blur(15px);
}

* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }
input, select { user-select: text; cursor: text; font-family: 'Poppins', sans-serif; }

body { font-family: 'Poppins', sans-serif; background: var(--dark); color: white; overflow-x: hidden; }

/* FOND */
.video-bg-container { position: fixed; inset: 0; z-index: -2; }
.video-bg-container video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4); }
.video-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: -1; }

header { 
    background: rgba(0,0,0,0.9); padding: 15px 5%; display: flex; justify-content: space-between; 
    align-items: center; position: sticky; top: 0; z-index: 1000; border-bottom: 2px solid var(--primary); 
}
.logo h1 { font-family: 'Bebas Neue', sans-serif; color: var(--primary); cursor: pointer; letter-spacing: 1px; }
nav a { color: white !important; text-decoration: none; margin-left: 20px; font-size: 0.8rem; text-transform: uppercase; transition: 0.3s; }
nav a:hover { color: var(--primary) !important; }

/* BOUTIQUE */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--primary); margin-top: 50px; text-transform: uppercase; }
.green-bar { width: 100px; height: 4px; background: var(--primary); margin: 10px 0 30px 0; }
.grid-boutique { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }

.card { background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--glass-border); padding: 20px; border-radius: 15px; text-align: center; cursor: pointer; transition: 0.3s; position: relative; overflow: hidden; }
.card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 255, 65, 0.1); }

.img-container { height: 220px; width: 100%; background: white; border-radius: 10px; position: relative; overflow: hidden; margin-bottom: 15px; }
.img-container img { width: 100%; height: 100%; object-fit: contain; position: absolute; top: 0; left: 0; transition: 0.4s ease; padding: 10px; }
.img-back { opacity: 0; }
.card:hover .img-front { opacity: 0; }
.card:hover .img-back { opacity: 1; }

.card h3 { font-size: 1rem; margin-bottom: 5px; font-weight: 600; }
.price { color: var(--primary); font-weight: bold; font-size: 1.2rem; }

/* MODAL CENTRAL */
.modal { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.9); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: rgba(10, 10, 10, 0.98); border: 1px solid var(--primary); width: 100%; max-width: 850px; border-radius: 15px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; position: relative; }
.modal-left { background: white; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.modal-left img { max-width: 100%; max-height: 380px; object-fit: contain; }
.modal-right { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: var(--primary); cursor: pointer; z-index: 10; }

/* AUTH & PANIER (CENTRAGE) */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 100px); padding: 20px; }
.auth-card, .cart-container { background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--glass-border); padding: 40px; border-radius: 20px; width: 100%; max-width: 450px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5); margin: 0 auto; }
.auth-card h2 { font-family: 'Bebas Neue', sans-serif; color: var(--primary); font-size: 2.8rem; margin-bottom: 20px; letter-spacing: 1px; }

.input-group { margin-bottom: 15px; text-align: left; }
.input-group label { display: block; font-size: 0.75rem; color: var(--primary); text-transform: uppercase; margin-bottom: 5px; font-weight: bold; }
input, select { width: 100%; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid #333; color: white; border-radius: 8px; }

.btn-auth, .btn-buy { background: var(--primary); color: black; border: none; padding: 15px; font-weight: bold; cursor: pointer; border-radius: 8px; width: 100%; transition: 0.3s; text-transform: uppercase; margin-top: 10px; }
.btn-auth:hover, .btn-buy:hover { background: white; transform: scale(1.02); }

/* BOUTON GHOST (Continuer mes achats) */
.back-link { display: inline-block; color: white; text-decoration: none; border: 1px solid rgba(255,255,255,0.2); padding: 10px 20px; border-radius: 5px; font-size: 0.8rem; text-transform: uppercase; font-weight: 600; transition: 0.3s; margin-bottom: 20px; }
.back-link:hover { border-color: var(--primary); color: var(--primary); background: rgba(0,255,65,0.05); }

/* TABLEAU PANIER */
.cart-container { max-width: 800px; padding: 30px; margin-top: 20px; text-align: left; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th { color: var(--primary); font-size: 0.8rem; text-align: left; border-bottom: 1px solid #333; padding-bottom: 15px; text-transform: uppercase; }
td { padding: 15px 0; border-bottom: 1px solid #111; font-size: 0.9rem; }

@media (max-width: 768px) { .modal-content { grid-template-columns: 1fr; } .modal-left { height: 300px; } }

/* ... Garder tout le code précédent et AJOUTER ceci à la fin ... */

/* BADGE PANIER */
.cart-link { position: relative; }
#cart-badge {
    position: absolute; top: -10px; right: -15px;
    background: var(--primary); color: black;
    font-size: 0.65rem; font-weight: bold;
    width: 18px; height: 18px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* SEARCH BAR */
.search-container { margin: 30px 0; display: flex; justify-content: center; }
#searchBar {
    width: 100%; max-width: 500px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 15px 25px; border-radius: 30px;
    color: white; font-size: 1rem; outline: none;
    transition: 0.3s; backdrop-filter: blur(10px);
}
#searchBar:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(0,255,65,0.2); }

/* TOAST */
.toast-msg {
    position: fixed; bottom: -50px; left: 50%; transform: translateX(-50%);
    background: #000; border: 1px solid var(--primary);
    color: white; padding: 12px 30px; border-radius: 5px;
    z-index: 10000; transition: 0.5s; opacity: 0;
    font-family: 'Bebas Neue'; letter-spacing: 1px;
}
.toast-msg.show { bottom: 30px; opacity: 1; }

.btn-del { background: none; border: 1px solid #ff3333; color: #ff3333; cursor: pointer; padding: 5px 10px; border-radius: 4px; transition: 0.3s; }
.btn-del:hover { background: #ff3333; color: white; }

/* PROFIL GRID */
.order-card { background: rgba(255,255,255,0.03); border: 1px solid #222; padding: 15px; border-radius: 10px; margin-bottom: 15px; }