/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    color: #f5f5f5;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    background-color: #111;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff1e1e;
}

.logo {
    font-size: 1.8rem;
    color: #ff1e1e;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #fff;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff1e1e;
}

.hero {
    text-align: center;
    padding: 100px 20px;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    background-color: #111;
}

.hero h1 {
    font-size: 3rem;
    color: #ff1e1e;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 25px;
    background-color: #ff1e1e;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #e60000;
}

footer {
    background-color: #111;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

/* Layout de base */
.container { max-width:1100px; margin:0 auto; padding:0 16px; }

/* Grille produits */
.products-grid {
	display:grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap:18px;
	padding:12px 0;
}

/* Carte produit */
.product-card {
	border:1px solid #ddd;
	border-radius:8px;
	overflow:hidden;
	background:#fff;
	display:flex;
	flex-direction:column;
	height:100%;
	box-shadow:0 2px 6px rgba(0,0,0,0.04);
}

.product-image {
	width:100%;
	height:140px;
	object-fit:cover;
	background:#f5f5f5;
}

.product-body {
	padding:12px;
	display:flex;
	flex-direction:column;
	flex:1;
}

.product-title {
	font-size:1rem;
	margin:0 0 6px 0;
	color:#222;
}

.product-desc {
	font-size:0.875rem;
	color:#555;
	margin:0 0 10px 0;
	flex:1;
}

.product-meta {
	display:flex;
	justify-content:space-between;
	align-items:center;
	gap:8px;
}

.product-price {
	font-weight:700;
	color:#ff1e1e;
}

.add-to-cart {
	background:#111;
	color:#fff;
	border:none;
	padding:8px 10px;
	border-radius:6px;
	cursor:pointer;
	font-size:0.9rem;
}

.add-to-cart:hover { opacity:0.95; }

/* Styles pour le menu hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        margin: 0;
        text-align: center;
    }

    .nav-list a {
        padding: 10px 0;
        display: block;
        text-decoration: none;
        color: #333;
    }
}

@media (max-width: 388px) {
    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }
}
