/* --- Format Mobile (max-width: 576px) --- */
@media (max-width: 575px) {
    body {
        padding: 10px;
        background-color: #ffe865b9;
        color: #000;
        font-family: Arial, sans-serif;
    }

    header {
        display: block;
        background-color: #222;
        color: #ffe865b9;
        width: 100vw;
        max-width: 100%;
    }

    h1 {
        font-size: 1.8rem;
        text-align: center;
        margin-top: 20px;
    }

    /* Conteneur des cartes en mode mobile */
    .conteneur {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /*image page d'accueil*/
    .image_accueil {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 5px;
        margin-top: 10px;
    }

    /* Style des cartes */
    .card {
        background-color: #333;
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        display: block;
    }

    .card-image img {
        width: 100%;
        height: auto;
        border-radius: 5px;
        margin-top: 10px;
    }

    .card-title {
        font-size: 1.5rem;
        font-weight: bold;
        color: #000;
        margin-top: 10px;
    }

    .card-details,
    .card-description,
    .card-avis {
        font-size: 1rem;
        color: #222;
        margin-top: 8px;
    }
}

/* --- Format PC (min-width: 576px) --- */
@media (min-width: 576px) {
    body {
        background-color: #000;
        color: #000;
        font-family: Arial, sans-serif;
    }

    h1 {
        font-size: 2rem;
        text-align: center;
        margin-top: 20px;
    }

    .conteneur {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        padding: 20px;
    }

    .card {
        display: flex;
        flex-direction: column;
        background-color: #ffe865b9;
        width: 60%;
        align-self: center;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .card-image img {
        width: 100%;
        height: auto;
        border-radius: 5px;
        margin-bottom: 15px;
    }

    .card-title {
        font-size: 1.6rem;
        font-weight: bold;
        color: #ffe865b9;
    }

    .card-details,
    .card-description,
    .card-avis {
        font-size: 1rem;
        color: #222;
        margin-top: 8px;
    }
}

/* --- Styles généraux --- */
body {
    background-color: #000;
    color: #ffe865b9;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    background-color: #222;
    color: #ffe865b9;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.image-container {
    display: flex;
    flex-wrap: wrap;     
    gap: 10px; 
}

.image-container img {
    width: calc(33.33% - 10px);  
    height: auto; 
    object-fit: cover;  
}

