body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: auto;
}

header {
    background: #333;
    color: #fff;
    padding: 10px 0;
}

header nav ul {
    list-style: none;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin-right: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}
/* Styles pour la modal */
.modal {
    display: none; /* Masquer par défaut */
    position: fixed; /* Rester en place */
    z-index: 1; /* Au-dessus des autres contenus */
    left: 0;
    top: 0;
    width: 100%; /* Plein écran */
    height: 100%; /* Plein écran */
    overflow: auto; /* Scroller si nécessaire */
    background-color: rgb(0,0,0); /* Couleur de fond */
    background-color: rgba(0,0,0,0.4); /* Noir avec opacité */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% du haut et centrer */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Peut être ajusté */
    max-width: 400px; /* Largeur maximale */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.ad {
    border: 1px solid #ccc;
    margin: 10px;
    padding: 10px;
    border-radius: 5px;
}

.bidding-buttons {
    margin-top: 10px;
}

.bid-button {
    margin-right: 5px;
    padding: 5px 10px;
    cursor: pointer;
}
    .product-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .product-item {
        border: 1px solid #ccc;
        margin: 10px;
        padding: 10px;
        border-radius: 5px;
        width: calc(33% - 20px); /* Pour 3 produits par ligne avec marges */
        box-sizing: border-box;
    }
    .bidding-buttons {
        margin-top: 10px;
    }
    .bid-button {
        margin-right: 5px;
        padding: 5px 10px;
        cursor: pointer;
    }
    @media (max-width: 768px) {
        .ad {
            width: calc(50% - 20px); /* 2 par ligne sur écrans moyens */
        }
    }
    @media (max-width: 480px) {
        .ad {
            width: calc(100% - 20px); /* 1 par ligne sur petits écrans */
        }
    }
	    /* Styles pour PC */
    @media (min-width: 1025px) {
        .product-item {
            width: calc(33% - 20px); /* 3 par ligne */
        }
    }
    /* Styles pour tablettes */
    @media (min-width: 768px) and (max-width: 1024px) {
        .product-item {
            width: calc(50% - 20px); /* 2 par ligne */
        }
    }
    /* Styles pour mobiles */
    @media (max-width: 767px) {
        .product-item {
            width: calc(100% - 20px); /* 1 par ligne */
        }
    }