body {
    font-family: sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
}

.catalogue {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Grille responsive */
    gap: 20px;
}

.produit {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.produit img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.produit h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.produit p {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}

.produit button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.produit button:hover {
    background-color: #0056b3;
}

/* Adaptations pour les écrans plus petits */
@media (max-width: 768px) {
    .catalogue {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .produit {
        padding: 10px;
    }

    .produit h3 {
        font-size: 1em;
    }

    .produit p {
        font-size: 0.8em;
    }

    .produit button {
        font-size: 0.9em;
        padding: 8px 12px;
    }
}

/* Styles pour la bannière */
.banner {
    width: 100%;
    height: 100px; /* Hauteur fixe de la bannière */
    overflow: hidden; /* Important pour que object-fit: cover fonctionne correctement */
    margin-bottom: 20px;
}

.banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Rempli le conteneur en conservant les proportions (rogne si nécessaire) */
}

/* Styles pour le menu horizontal */
.menu {
    background-color: #333;
    color: white;
    padding: 10px 0;
    margin-bottom: 20px;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center; /* Centre les éléments du menu */
}

.menu li {
    display: inline; /* Affiche les éléments en ligne */
    margin: 0 15px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    color: #f4f4f4;
}