/* style.css - Design Lunettes Dallas */
:root {
    --primary: #2C1810; /* Marron foncé Luxe */
    --accent: #D4AF37;  /* Or/Doré */
    --bg: #F5EEE6;      /* Beige Crème */
    --white: #FFFFFF;
    --text: #1a1a1a;
    --success: #27ae60;
    --danger: #c0392b;
    --warning: #f39c12;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.6; padding-bottom: 50px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; }

/* --- Header --- */
header { background: var(--white); padding: 15px 0; border-bottom: 1px solid #E8DED2; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-family: 'Georgia', serif; color: var(--primary); }
.logo span { color: var(--accent); }
.menu-icons a { font-weight: 600; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.cart-count { background: var(--accent); color: white; padding: 2px 8px; border-radius: 50%; font-size: 12px; font-weight: bold; }

/* --- Hero Section --- */
.hero { background: var(--primary); color: var(--accent); text-align: center; padding: 60px 20px; margin-bottom: 40px; }
.hero h1 { font-family: 'Georgia', serif; font-size: 2.5rem; margin-bottom: 10px; letter-spacing: 1px; }
.hero p { color: #E8DED2; font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; }

/* --- Layout & Grid --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }

/* --- Carte Produit --- */
.product-card { background: var(--white); border: 1px solid #E8DED2; border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(44, 24, 16, 0.15); border-color: var(--accent); }
.product-img-container { width: 100%; height: 260px; background: #f9f9f9; border-bottom: 1px solid #f0f0f0; position: relative; overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img { transform: scale(1.05); }
.product-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.brand { color: var(--accent); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 5px; }
.tag { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; color: #666; float: right; }
.product-card h3 { margin-bottom: 10px; font-size: 1rem; font-weight: 600; color: var(--primary); }
.price { font-weight: 700; color: var(--primary); font-size: 1.1rem; margin-top: auto; }

/* --- Boutons --- */
.btn { display: block; background: var(--primary); color: white; padding: 12px 20px; border-radius: 4px; text-align: center; cursor: pointer; border: none; font-weight: 600; width: 100%; margin-top: 15px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; transition: background 0.3s; }
.btn:hover { background: #4a2c1d; }
.btn-outline { background: transparent; border: 1px solid #ccc; color: var(--text); display: inline-block; width: auto; margin: 5px; }
.btn-outline:hover, .btn-outline.active { background: var(--primary); color: var(--accent); border-color: var(--primary); }

/* --- Page Produit Détail --- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; align-items: start; }
.detail-img { width: 100%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.detail-info h1 { font-size: 2.2rem; margin-bottom: 10px; font-family: 'Georgia', serif; color: var(--primary); }
.detail-price { font-size: 2rem; color: var(--accent); font-weight: 700; margin: 20px 0; }
.description-box { background: #fff; padding: 20px; border-left: 4px solid var(--accent); margin-bottom: 30px; color: #555; font-size: 0.95rem; }
.trust-badges { margin-top: 30px; background: #fff; padding: 20px; border: 1px solid #eee; border-radius: 8px; }
.trust-badges p { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }

/* --- Panier & Checkout --- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.cart-table th { background: #f4f4f4; padding: 12px; text-align: left; font-weight: 600; font-size: 0.9rem; }
.cart-table td { padding: 12px; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.checkout-form { background: white; padding: 30px; border-radius: 8px; max-width: 600px; margin: 0 auto; border-top: 4px solid var(--accent); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; color: #666; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; }
.form-group input:focus { border-color: var(--accent); outline: none; }

/* --- Admin Panel --- */
.admin-login { max-width: 350px; margin: 80px auto; text-align: center; background: white; padding: 40px; border-radius: 8px; }
.admin-header { background: var(--primary); color: var(--accent); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.section-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 30px; }
.table-admin { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.table-admin th, .table-admin td { border-bottom: 1px solid #eee; padding: 10px; text-align: left; }
.status { padding: 4px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; display: inline-block; }
.status-En-attente { background: #fff3cd; color: #856404; }
.status-Confirme { background: #d1ecf1; color: #0c5460; }
.status-Livre { background: #d4edda; color: #155724; }
.status-Annule { background: #f8d7da; color: #721c24; }
.stock-alert { color: #c0392b; font-weight: bold; background: #fadbd8; padding: 2px 6px; border-radius: 4px; }

/* --- Footer --- */
footer { background: var(--primary); color: #E8DED2; text-align: center; padding: 40px 20px; margin-top: 60px; font-size: 0.9rem; }
footer a { color: var(--accent); }

/* --- Mobile --- */
@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .nav-container { flex-direction: column; gap: 10px; }
}


