@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);
}

/* --- RESET & BASE --- */
* { 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; }

/* --- FIX LIENS (Élimine le violet) --- */
nav a, nav a:visited, .back-link, .back-link:visited { 
    color: white !important; 
    text-decoration: none; 
    text-transform: uppercase; 
    font-weight: 600;
    transition: 0.3s; 
}
nav a:hover, .back-link:hover { color: var(--primary) !important; text-shadow: 0 0 10px var(--primary); }

/* --- FOND VIDEO --- */
.video-bg-container { position: fixed; inset: 0; z-index: -2; }
.video-bg-container video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.3); }
.video-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: -1; }

/* --- HEADER & NAVIGATION --- */
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); 
}
.header-left { display: flex; align-items: center; gap: 20px; }
.burger-icon { cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.burger-icon span { width: 25px; height: 3px; background: var(--primary); border-radius: 2px; }
.logo h1 { font-family: 'Bebas Neue', sans-serif; color: var(--primary); font-size: 1.8rem; cursor: pointer; }
nav { display: flex; align-items: center; }
nav a { margin-left: 20px; font-size: 0.9rem; }

#cart-count { 
    background: var(--primary); color: black; padding: 2px 7px; 
    border-radius: 50%; font-size: 0.8rem; margin-left: 5px; font-weight: bold;
}

/* --- SIDEBAR --- */
.sidebar {
    position: fixed; top: 0; left: -320px; width: 300px; height: 100%;
    background: rgba(0,0,0,0.98); backdrop-filter: blur(15px);
    z-index: 3000; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 2px solid var(--primary); padding: 40px 20px;
}
.sidebar.active { left: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.sidebar-header h3 { font-family: 'Bebas Neue'; color: var(--primary); font-size: 2rem; }
.close-sidebar { font-size: 2.5rem; color: white; cursor: pointer; }
.sidebar-links { list-style: none; }
.sidebar-links li { 
    padding: 15px 0; font-size: 1.1rem; color: white; border-bottom: 1px solid rgba(255,255,255,0.1); 
    cursor: pointer; transition: 0.3s; text-transform: uppercase;
}
.sidebar-links li:hover { color: var(--primary); padding-left: 10px; background: rgba(0,255,65,0.05); }

/* --- CONTENU PRINCIPAL --- */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.section-title { font-family: 'Bebas Neue'; font-size: 2.5rem; color: var(--primary); margin-top: 40px; text-transform: uppercase; }
.green-bar { width: 80px; 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; margin-bottom: 50px; }

/* --- CARTES PRODUITS --- */
.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; }
.card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 255, 65, 0.15); }
.img-container { height: 220px; background: white; border-radius: 10px; margin-bottom: 15px; padding: 10px; }
.img-container img { width: 100%; height: 100%; object-fit: contain; }
.price { color: var(--primary); font-weight: bold; font-size: 1.3rem; margin-top: 10px; }

/* --- BARRE DE RECHERCHE --- */
.search-container { display: flex; justify-content: center; margin: 30px 0; }
.search-box { position: relative; width: 100%; max-width: 600px; }
.search-box input { width: 100%; padding: 15px 50px; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 50px; color: white; outline: none; border: 1px solid var(--primary); }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); opacity: 0.7; }

/* --- MODAL PRODUIT --- */
.modal { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.9); align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(8px); }
.modal-content { background: #0a0a0a; 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%; height: 350px; 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; }

.input-group { margin-bottom: 15px; }
.input-group label { display: block; color: var(--primary); font-size: 0.8rem; font-weight: bold; margin-bottom: 5px; text-transform: uppercase; }
.input-group select, .input-group input { width: 100%; padding: 12px; background: #1a1a1a; border: 1px solid #333; color: white; border-radius: 8px; outline: none; }
.input-group select:focus, .input-group input:focus { border-color: var(--primary); }

.btn-buy { background: var(--primary); color: black; font-weight: 800; padding: 18px; border: none; border-radius: 8px; width: 100%; cursor: pointer; margin-top: 10px; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.btn-buy:hover { background: white; transform: scale(1.02); }

.modal-view-selector { margin-top: 15px; display: flex; gap: 10px; }
.btn-view { padding: 8px 15px; cursor: pointer; border: 1px solid #ccc; background: white; border-radius: 5px; font-weight: bold; font-size: 0.7rem; }
.btn-view.active { background: var(--primary); border-color: var(--primary); color: black; }

/* --- PAGE PANIER (LOGISTIQUE) --- */
.cart-container { max-width: 1000px; margin: 40px auto; background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--glass-border); border-radius: 20px; padding: 40px; }
#cart-items { width: 100%; border-collapse: collapse; margin-top: 25px; }
#cart-items th { text-align: left; color: var(--primary); font-family: 'Bebas Neue'; font-size: 1.2rem; padding-bottom: 15px; border-bottom: 1px solid var(--glass-border); }
#cart-items td { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: white; }

.cart-item-img { width: 70px; height: 70px; object-fit: contain; background: white; border-radius: 10px; padding: 5px; }
.remove-btn { color: #ff4b4b; background: none; border: none; font-size: 1.2rem; cursor: pointer; transition: 0.3s; font-weight: bold; }
.remove-btn:hover { color: white; transform: scale(1.3); }

.cart-summary { margin-top: 40px; display: flex; flex-direction: column; align-items: flex-end; }
.total-price { font-size: 2.5rem; font-family: 'Bebas Neue'; color: var(--primary); margin-bottom: 20px; }

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .modal-content { grid-template-columns: 1fr; }
    .modal-left { height: 280px; }
    .modal-right { padding: 25px; }
    .cart-container { padding: 20px; margin: 20px; }
    .total-price { font-size: 2rem; }
}