.cards-container {
    display: flex;
    flex-wrap: wrap;
    /* passe à la ligne si ça déborde */
    justify-content: center;
    /* centre les cards */
    gap: 20px;
    /* espace entre les cards */
    padding: 20px;
}

.card {
    width: 250px;
    /* largeur fixe */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

.bouton-commande {
    background-color: #3c0014ff;
    font-size: x-large;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    position: sticky;
    top: 46px;
}

select {
    appearance: base-select;
    -moz-appearance: menulist;
    -webkit-appearance: menulist;
    padding: 5px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-left: 15px;
}

@media screen and (max-width: 600px) {

    .bouton-commande {
        background-color: #3c0014ff;
        font-size: x-large;
        color: white;
        padding: 14px 20px;
        margin: 8px 0;
        border: none;
        cursor: pointer;
        width: 100%;
        position: sticky;
        top: 0px;
    }
}

.card img {
    width: 100%;
    height: 180px;
    /* même hauteur pour toutes les images */
    object-fit: cover;
    border-radius: 5px;
}

.card h1 {
    font-size: 18px;
    margin: 10px 0 5px 0;
}

.card .price {
    font-size: 16px;
    color: grey;
    margin-bottom: 10px;
}

/* --- Checkbox --- */
.check-container {
    display: flex;
    align-items: center;
    /* aligne la checkbox et le texte verticalement */
    position: relative;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    margin-top: 10px;
    width: 100%;
}

/* Cacher la checkbox native */
.check-container input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

/* La checkbox personnalisée */
.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #eee;
    margin-right: 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Quand la case est cochée */
.check-container input:checked~.checkmark {
    background-color: #2196F3;
}

/* Le tick à l’intérieur de la checkmark */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.check-container input:checked~.checkmark:after {
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}