.headBooking {
    position: relative;
}

.headBooking img {
    width: 100%;
    display: block;
}

.headBooking::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.headBooking::after {
    content: "Bookings";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.main{
    width: 95%;
    margin: auto;
}

.booking-container {
    width: 100%;
}

.booking {
    margin: 10px;
    display: flex;
    align-items: center;
}

.booking:nth-child(even) {
    flex-direction: row-reverse;
}

.booking:nth-child(odd) {
    flex-direction: row;
}

.booking-info {
    padding: 20px;
    width: 50%;
}

.booking-image {
    width: 30%;
    max-width: 50%;
    border-radius: 8px;
}

.image-left {
    float: left;
    margin-right: 10px;
}

.image-right {
    float: right;
    margin-left: 10px;
}


@media only screen and (max-width: 600px) {
    .headBooking::after {
        font-size: 20px; /* Réduit la taille du texte pour les petits écrans */
    }

    .booking {
        flex-wrap: wrap; /* Permet aux éléments enfants de passer à la ligne si l'espace est insuffisant */
    }

    .booking-info {
        width: 100%; /* Occupe toute la largeur sur les petits écrans */
    }

    .booking-image {
        width: 80%; /* Occupe toute la largeur sur les petits écrans */
        max-width: none; /* Supprime la largeur maximale pour permettre à l'image de s'étendre */
        margin: 10px 0; /* Ajoute un espace en haut et en bas pour séparer les images */
    }

    .image-left,
    .image-right {
        float: none; /* Annule le flottement pour centrer l'image */
        margin: 0; /* Supprime la marge ajoutée pour l'éloigner du texte */
    }
}
