/* CSS Éco-Responsable - Site Moderne */

/* Reset minimal */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variables CSS */
:root {
    --primary-color: #2c5530;
    --secondary-color: #7fb069;
    --accent-color: #e8f5e8;
    --text-color: #2d3436;
    --bg-color: #ffffff;
    --font-primary: system-ui, -apple-system, sans-serif;
}

/* Base */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

/* Navigation */
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--primary-color);
    color: white;
}

.logo {
    font-weight: bold;
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 5%;
    background: linear-gradient(135deg, var(--accent-color), #f8f9fa);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: transform 0.2s;
}

.cta:hover {
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 3rem 5%;
}

h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* E-commerce Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.product:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 5%;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    section {
        padding: 2rem 5%;
    }
}

/* Optimisations performance */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Mode sombre (respectueux énergie) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --accent-color: #2a3a2a;
    }
}