:root { --primary: #0056b3; --accent: #d32f2f; --bg: #f4f6f9; --text: #333; }
body { margin: 0; font-family: -apple-system, sans-serif; background: var(--bg); color: var(--text); padding-bottom: 70px; -webkit-tap-highlight-color: transparent; }
* { box-sizing: border-box; }

/* HEADER */
header { background: white; padding: 12px 15px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; color: var(--primary); font-size: 20px; text-transform: uppercase; }

/* SLIDER */
.slider { width: 100%; height: 180px; position: relative; overflow: hidden; background: #2c3e50; }
.slide { width: 100%; height: 100%; position: absolute; opacity: 0; transition: opacity 0.5s; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; opacity: 0.6; }
.slide h3 { position: relative; color: white; z-index: 2; text-align: center; font-size: 22px; text-shadow: 1px 1px 5px rgba(0,0,0,0.8); padding: 0 20px; }

/* FILTRES */
.filters { display: flex; gap: 10px; overflow-x: auto; padding: 15px; background: white; border-bottom: 1px solid #eee; }
.tab { padding: 8px 16px; border-radius: 20px; background: #f0f0f0; border: 1px solid #ddd; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.tab.active { background: var(--primary); color: white; border-color: var(--primary); }

/* GRILLE PRODUITS */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; max-width: 800px; margin: 0 auto; }
.card { background: white; border-radius: 10px; padding: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: relative; display: flex; flex-direction: column; }
.card img { width: 100%; height: 130px; object-fit: contain; margin-bottom: 10px; }
.promo-tag { position: absolute; top: 8px; left: 8px; background: var(--accent); color: white; padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: bold; }
.p-title { font-size: 13px; font-weight: 600; margin-bottom: 5px; height: 36px; overflow: hidden; line-height: 1.3; }
.p-price-box { margin-top: auto; }
.p-price { font-size: 16px; font-weight: 900; color: var(--primary); }
.p-old { font-size: 12px; text-decoration: line-through; color: #999; margin-right: 5px; }
.btn-add { width: 100%; background: #eef2f6; color: var(--primary); border: none; padding: 10px; border-radius: 6px; margin-top: 10px; font-weight: bold; cursor: pointer; }

/* MODAL */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; align-items: flex-end; }
.modal-content { background: white; width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; padding: 20px; overflow-y: auto; animation: slideUp 0.3s; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.close-btn { position: absolute; top: 15px; right: 15px; background: #eee; border: none; width: 30px; height: 30px; border-radius: 50%; font-weight: bold; cursor: pointer; }

/* FORMS & PANIER */
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; }
.btn-del { color: var(--accent); background: #fee; border: none; padding: 6px 10px; border-radius: 5px; }
label { display: block; font-size: 12px; font-weight: bold; margin: 15px 0 5px 0; color: #555; }
input, select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; background: #fff; }
.summary { background: #f9f9f9; padding: 15px; border-radius: 8px; margin-top: 15px; }
.row-sum { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 14px; }
.total-sum { font-size: 18px; font-weight: 900; color: var(--primary); border-top: 1px solid #ddd; padding-top: 10px; margin-top: 5px; }
.btn-order { width: 100%; background: #25d366; color: white; padding: 15px; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; margin-top: 20px; }

/* BOTTOM BAR */
.bottom-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: white; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); display: flex; justify-content: space-around; padding: 10px 0; z-index: 999; border-top: 1px solid #eee; }
.nav-item { display: flex; flex-direction: column; align-items: center; color: #666; text-decoration: none; font-size: 11px; font-weight: 600; cursor: pointer; position: relative; }
.nav-item i { font-size: 20px; margin-bottom: 3px; }
.nav-item.active { color: var(--primary); }
.nav-badge { position: absolute; top: -5px; right: 5px; background: var(--accent); color: white; border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; font-size: 9px; }

/* CONTACT MENU */
.contact-menu { display: none; position: fixed; bottom: 70px; right: 20px; background: white; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); padding: 10px; z-index: 1000; flex-direction: column; gap: 10px; }
.contact-btn { display: flex; align-items: center; gap: 10px; padding: 10px 15px; text-decoration: none; color: white; font-weight: bold; border-radius: 6px; }
.btn-wa { background: #25d366; } .btn-call { background: var(--primary); }