/* style.css - MODE RÉPARATION (Flexbox Robuste) */

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f3f3f3;
    /* On garde votre fond d'atelier si vous l'avez */
    background-image: url('fond.jpg'); 
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* EN-TÊTE SIMPLE */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.brand-bar {
    background-color: #6CBD8D;
    padding: 20px;
    text-align: center;
}
.brand-bar a {
    color: white; text-decoration: none;
    font-size: 2em; font-weight: bold; font-family: 'Georgia', serif;
}

.nav-bar {
    background-color: #009C6C;
    display: flex; justify-content: center; padding: 10px; flex-wrap: wrap;
}
.nav-bar a {
    color: white; text-decoration: none; margin: 0 15px;
    font-size: 1.1em;
}

/* CONTENEUR PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    flex: 1;
}

h1, h2 { text-align: center; color: #333; }

/* --- LA RÉPARATION EST ICI --- */

.product-grid {
    display: flex; /* On active le mode Flexible */
    flex-wrap: wrap; /* On autorise le passage à la ligne */
    justify-content: center; /* On centre tout */
    gap: 30px; /* Espace entre les cartes */
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    
    /* C'EST CETTE LIGNE QUI FORCE LA MOSAÏQUE : */
    width: 300px; /* Largeur fixe : impossible qu'elle prenne tout l'écran */
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.price {
    color: #009C6C; font-size: 1.2em; font-weight: bold; display: block; margin: 10px 0;
}

button {
    background-color: #333; color: white; border: none;
    padding: 10px; width: 100%; border-radius: 4px; cursor: pointer;
}
button:hover { background-color: #009C6C; }

/* FOOTER */
footer {
    background-color: #009C6C; color: white;
    text-align: center; padding: 30px; margin-top: 50px;
}
.social-icons { display: flex; justify-content: center; gap: 15px; margin-top: 10px;}
.social-icons a svg { width: 30px; height: 30px; }