.hotels-listing {
    display: grid;
    grid-template-columns: repeat(3, 360px);
    grid-template-rows: repeat(3, 360px);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    margin: 50px auto;
    justify-content: center;
    align-items: center;
    max-width: 1120px;
}

.hotel_item1 {
    grid-area: 1 / 1 / 2 / 2;
}

.hotel_item2 {
    grid-area: 1 / 2 / 2 / 3;
}

.hotel_item3 {
    grid-area: 1 / 3 / 2 / 4;
}

.hotel_item4 {
    grid-area: 2 / 1 / 3 / 3;
}

.hotel_item5 {
    grid-area: 2 / 3 / 3 / 4;
}

.hotel_item6 {
    grid-area: 3 / 1 / 4 / 2;
}

.hotel_item7 {
    grid-area: 3 / 2 / 4 / 3;
}

.hotel_item8 {
    grid-area: 3 / 3 / 4 / 4;
}

/*****************************CARD STYLING HOTELS************************************/
.card-hotel {
    display: flex;
    flex-direction: column;
    height: 360px;
    width: 360px;
    align-items: flex-start;
    gap: 10px;
    padding: 200px 0px 0px;
    position: relative;
    border-radius: 15px;
    background-size: cover;
    background-position: 50% 50%;
    overflow: visible!important;
    /* overflow: hidden; */
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

.card-hotel .content-hotel {
    display: flex;
    flex-direction: column;
    height: 160px;
    padding: 40px 24px 40px;
    border-radius: 15px;
    position: relative;
    align-self: stretch;
    width: 100%;
    background: linear-gradient(180deg, rgba(7, 11, 27, 0) 0%, rgb(7.04, 11.34, 0.50) 100%);
}

.card-hotel .content {
    display: flex;
    flex-direction: column;
    height: 160px;
    padding: 40px 24px 40px;
    border-radius: 15px;
    position: relative;
    align-self: stretch;
    width: 100%;
    background: linear-gradient(180deg, rgba(7, 11, 27, 0) 0%, rgb(7.04, 11.34, 0.50) 100%);
}


.card-hotel .nom-hotel {
    display: inline-flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    flex: 0 0 auto;
}

.card-hotel .heading {
    position: relative;
    width: 200px;
    margin-top: -1px;
    font-family: var(--font-primary), Helvetica;
    font-weight: 700;
    color: var(--blanctexte);
    font-size: 24px;
    letter-spacing: 0;
    line-height: 28px;
}

.card-hotel .hotel-rating {
    display: inline-block;
    text-align: left;
    position: relative;
    top: -5px;
}

.card-hotel .stars {
    display: inline-block;
    font-size: 0;
}

.card-hotel .star {
    display: inline-block;
    width: 16px;
    /* Largeur d'une étoile */
    height: 16px;
    /* Hauteur d'une étoile */
    background-image: url('../img/page_hotel/star.svg');
    background-size: cover;
    margin-right: 0px !important;
    color: var(--blanctexte);
}


.card-hotel .localhotel {
    position: relative;
    flex: 0 0 auto;
    margin-bottom: -21px;
    margin-right: -9px;
}

.card-hotel .picto-map {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 15px;
    left: 0;
}

.card-hotel .details-ville {
    position: absolute;
    width: 229px;
    height: 24px;
    top: 15px;
    left: 31px;
    font-family: var(--font-primary), Helvetica;
    font-weight: 400;
    color: var(--blanctexte);
    font-size: 13px;
    letter-spacing: 0;
    line-height: normal;
    text-indent: 0!important;
}

.card-hotel .picto-CTA {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0;
    left: 271px;
}

.card-hotel .badge-hotel {
    display: flex;
    width: 200px;
    height: 50px;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 10px 12px 30px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--vertbanane);
    border-radius: 15px 0px 15px 0px;
    overflow: hidden;
    box-shadow: var(--neutral-shadow-02);
}

.card-hotel .badge-text {
    display: flex;
    width: 71px;
    align-items: center;
    gap: 2px;
    position: relative;
}

.card-hotel .card-title {
    position: relative;
    width: auto;
    margin-top: -3px;
    margin-right: -20px;
    font-family: var(--font-primary), Helvetica;
    font-weight: 500;
    color: var(--blanctexte);
    font-size: 18px;
    text-align: center;
    line-height: 22px;
    white-space: nowrap;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-overlay img {
    width: 100%;
    height: 100%;
    transform-origin: center;
    transition: opacity 0.8s ease-in-out;
    animation: none;
    /* Par défaut, aucune animation */
}

.image-overlay:hover img {
    animation: tiltZoom 4s ease-in-out infinite;
    -webkit-animation: tiltZoom 4s ease-in-out infinite;
}

/* Animation avec zoom et inclinaison */
@keyframes tiltZoom {
    0% {
        transform: scale(1) rotate(0deg);
        /* Position initiale */
    }

    50% {
        transform: scale(1.1) rotate(3deg);
        /* Zoom et inclinaison */
    }

    100% {
        transform: scale(1) rotate(0deg);
        /* Retour à la position initiale */
    }
}

/*****************************CARD STYLING HOTELS EXCEPTIONS************************************/
.card-hotel_720 {
    display: flex;
    flex-direction: column;
    height: 360px;
    width: 740px;
    align-items: flex-start;
    gap: 10px;
    padding: 200px 0px 0px;
    position: relative;
    border-radius: 15px;
    background-size: cover;
    background-position: 50% 50%;
    /* overflow: hidden; */
    overflow: visible!important;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

.card-hotel_720 .content-hotel {
    display: flex;
    flex-direction: column;
    height: 160px;
    align-items: flex-start;
    padding: 30px 24px 40px;
    border-radius: 15px;
    position: relative;
    align-self: stretch;
    width: 100%;
    background: linear-gradient(180deg, rgba(7, 11, 27, 0) 0%, rgb(7.04, 11.34, 26.61) 100%);
}

.card-hotel_720 .nom-hotel {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    position: relative;
    flex: 0 0 auto;
}

.card-hotel_720 .heading {
    position: relative;
    width: 215px;
    margin-top: -1px;
    font-family: var(--font-primary), Helvetica;
    font-weight: 700;
    color: var(--blanctexte);
    font-size: 24px;
    letter-spacing: 0;
    line-height: 28px;
}

.card-hotel_720 .hotel-rating {
    display: inline-block;
    text-align: left;
    position: relative;
    top: -5px;
}

.card-hotel_720 .stars {
    display: inline-block;
    font-size: 0;
}

.card-hotel_720 .star {
    display: inline-block;
    width: 16px;
    /* Largeur d'une étoile */
    height: 16px;
    /* Hauteur d'une étoile */
    background-image: url('../img/page_hotel/star.svg');
    background-size: cover;
    color: var(--blanctexte);
}

.picto-CTA {
    position: relative;
    width: 39.84px;
    height: 40px;
    transition: transform 0.5s ease-in-out;
    right: -60px;
}

.picto-CTA_hotel {
    position: relative;
    width: 39.84px;
    height: 40px;
    transition: transform 0.5s ease-in-out;
    right: 0px;
}

.picto-CTA:hover,
.picto-CTA_hotel:hover,
.picto-CTA_modal:hover {
    transform: rotate(360deg);
}

.card-hotel_720 .localhotel {
    position: relative;
    flex: 0 0 auto;
    margin-bottom: -21px;
    margin-right: -9px;
}

.card-hotel_720 .picto-map {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 15px;
    left: 0;
}

.card-hotel_720 .details-ville {
    position: absolute;
    width: 229px;
    height: 24px;
    top: 15px;
    left: 31px;
    font-family: var(--font-primary), Helvetica;
    font-weight: 400;
    color: var(--blanctexte);
    font-size: 13px;
    letter-spacing: 0;
    line-height: normal;
    text-indent: 0!important;
}

.card-hotel_720 .picto-CTA {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0;
    left: 650px;
}

@media screen and (max-width: 375px) {
    .hotels-listing {
        /* display: block !important; */
        width: 100% !important;
    }

    .card-hotel .picto-CTA {
        left: 250px;
    }

    .card-hotel_720 {
        width: 360px;
        background-image: url(../img/uploads/679bff3fe2b56_voaara_360.png);
    }

    .card-hotel_720 .picto-CTA {
        left: 250px !important;
    }

}

@media screen and (min-width: 376px) and (max-width: 768px) {
    .hotels-listing {
        /* display: block !important; */
        width: 100% !important;
    }

    .card-hotel .picto-CTA {
        left: 271px;
    }

    .card-hotel_720 .picto-CTA {
        left: 250px;
    }

    .card-hotel .hotel-rating {
        position: absolute;
        left: 0;
        top: -30px;
    }

    .card-hotel_720 .hotel-rating {
        position: absolute;
        left: 0;
        top: -30px;
    }

    .card-hotel_720 {
        width: 360px;
        background-image: url(../img/uploads/679bff3fe2b56_voaara_360.png);
    }

    /* .card-hotel_720 img:first-child {
        display: none;
    } */

    .hotel_item1,
    .hotel_item2,
    .hotel_item3,
    .hotel_item4,
    .hotel_item5,
    .hotel_item6,
    .hotel_item7,
    .hotel_item8 {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 5px;
    }

    .card-hotel_720 .picto-CTA {
        left: 271px !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 1119px) {
    .hotels-listing {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: flex-start !important;
        width: 100%;
        margin: 10px;
    }

    .card-hotel_720 {
        width: 360px;
        background-image: url(../img/uploads/679bff3fe2b56_voaara_360.png);
    }

    .card-hotel_720 .image-overlay img:first-of-type {
        display: none;
    }

    .card-hotel_720 .picto-CTA {
        left: 271px;
    }
}

/************************ NOUVEAU CSS : INJECTION HÔTEL  ************************/
.hotels-listing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    place-items: center;
}

.hotel_item {
    position: relative;
}

.special-hotel {
    grid-column: span 2;
    /* Étend le 4e hôtel sur 2 colonnes */
    width: 100%;
    /* Pour s'adapter */
    /* max-width: 720px; */
}

.card-hotel,
.card-hotel_720 {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Images des hôtels */
.image-overlay img {
    width: 100%;
    object-fit: cover;
}

/* Responsive : Tablettes & Mobiles */
@media screen and (max-width: 1199px) {
    .hotels-listing {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        justify-content: center;
        align-items: center;
    }

    .special-hotel {
        display: contents;
    }
}

@media screen and (max-width: 768px) {
    .hotels-listing {
        grid-template-columns: 1fr;
        place-content: center;
    }

    .special-hotel {
        display: contents;

    }

    @media screen and (min-width: 376px) and (max-width: 768px) {
        .hotels-listing {
            display: grid;
            grid-column-gap: 20px;
            grid-row-gap: 20px;
        }

    }
}