/* Variables globales */
:root {
    --primary-color: #2c3e50;
    --primary-hover: #34495e;
    --secondary-color: #27ae60;
    --secondary-hover: #2ecc71;
    --accent-color: #2980b9;
    --accent-hover: #3498db;
    --background-light: #f4f4f4;
    --background-white: #ffffff;
    --text-color: #333;
    --text-muted: #7f8c8d;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-light);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

/* Main content */
main {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

/* Catégories */
.category {
    margin-bottom: 40px;
}

.category h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Liste des produits */
.produits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Carte produit */
.produit {
    background-color: var(--background-white);
    border-radius: 12px;
    padding: 15px;
    width: 280px;
    text-align: center;
    box-shadow: 0 4px 10px var(--shadow-light);
    transition: all 0.3s ease-in-out;
}

.produit:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px var(--shadow-dark);
}

/* Image produit */
.produit img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Titre produit */
.produit h3 {
    font-size: 1.5em;
    margin: 10px 0;
    color: var(--primary-color);
}

/* Description produit */
.produit p {
    font-size: 1.1em;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Formulaire d'achat */
.produit form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Champ de quantité */
.produit input[type="number"] {
    width: 60px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid var(--shadow-light);
    text-align: center;
}

/* Bouton ajouter au panier */
.produit input[type="submit"] {
    background-color: var(--secondary-color);
    color: var(--background-white);
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.produit input[type="submit"]:hover {
    background-color: var(--secondary-hover);
}

/* Fixer le footer en bas */
footer {
    background-color: #28a745;
    color: var(--background-white);
    padding: 15px;
    width: 100%;
    text-align: center;
    position: relative;
    bottom: 0;
}

