/*=================================== SECTION HERO ==================================*/

#hero {
    background-size: cover;
    position: relative;
    overflow: hidden;
    height: 100vh;
}

/* Carrousel d'images */
.hero__carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero__carousel-slide {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.hero__carousel-slide:nth-child(1) {
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 21%, rgba(0, 0, 0, 0) 36%),
        url('/assets/img/hero_carousel_01.webp');
}

.hero__carousel-slide:nth-child(2) {
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.20) 100px, rgba(0, 0, 0, 0) 200px),
        url('/assets/img/hero_carousel_02.webp');
}

.hero__carousel-slide:nth-child(3) {
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.20) 100px, rgba(0, 0, 0, 0) 200px),
        url('/assets/img/hero_carousel_03.webp');
}

.hero__carousel-slide:nth-child(4) {
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.20) 100px, rgba(0, 0, 0, 0) 200px),
        url('/assets/img/hero_carousel_04.webp');
}

.hero__carousel-slide--active {
    opacity: 1;
    pointer-events: auto;
}

/* Conteneur principal */
.hero__container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--size-xl);
    height: 100%;
    color: var(--color-white);
    text-align: center;
}

/* ANIMATION DES TEXTES AVEC DÉLAI & EFFETS STYLÉS */
.hero__title,
.hero__subtitle,
.hero__cta {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    /* Ajoute un effet de zoom */
    filter: blur(10px);
    /* Ajoute un effet de flou */
    transition:
        opacity 1s ease-out,
        transform 1s ease-out,
        filter 1s ease-out;
}

/* Ajoute un décalage entre les animations */
.hero__carousel-slide--active .hero__subtitle {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition-delay: 0.2s;
    /* Commence après 200ms */
}

.hero__carousel-slide--active .hero__title {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition-delay: 0.4s;
    /* Apparition après le sous-titre */
}

.hero__carousel-slide--active .hero__cta {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition-delay: 0.6s;
    /* Apparition après le titre */
}

/* POINTS DE NAVIGATION */
.hero__carousel-dots {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero__carousel-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero__carousel-dot--active {
    background-color: white;
    transform: scale(1.2);
}

.hero__stars {}

/*=================================== SECTION ABOUT ==================================*/

.about__container {
    justify-content: center;
    gap: var(--size-3xl);
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: var(--size-xl);
    width: 100%;
}

.about__stars {}

/* Images */
.about__picture {
    display: flex;
    width: 100%;
    gap: var(--size-md);
}

.about__image-wrapper--left {
    margin-top: calc(2 * var(--size-3xl));
}

.about__image-wrapper--right {
    margin-top: calc(1 * var(--size-3xl));
}

.about__image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

/* 📱 Tablettes (<= 1024px) */
@media (max-width: 1024px) {
    .about__container,
    .about__picture {
        flex-direction: column;
    }

    .about__image-wrapper--left,
    .about__image-wrapper--right {
        margin-top: 0;
    }
}

/*=================================== SECTION ROOMS ==================================*/

#rooms {
    background-color: var(--color-beige);
}

.rooms__container {
    flex-direction: column;
    align-items: center;
    gap: var(--size-xl);
    text-align: center;
}

.rooms__content {
    display: flex;
    gap: var(--size-md);
    max-width: 1200px;
    width: 100%;
}

.rooms__room {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: end;
    gap: var(--size-sm);
    width: 100%;
    aspect-ratio: 2/3;
    padding: var(--size-lg);
    color: var(--color-white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rooms__room:nth-child(1) {
    background-image: url('/assets/img/chambre_1.webp');
}

.rooms__room:nth-child(2) {
    background-image: url('/assets/img/chambre_2.webp');
}

.rooms__room:nth-child(3) {
    background-image: url('/assets/img/chambre_3.webp');
}

.rooms__room:nth-child(4) {
    background-image: url('/assets/img/chambre_4.webp');
}

@media (max-width: 1024px) {
    .rooms__content {
        flex-direction: column;
    }
}

/*=================================== SECTION STAY ==================================*/

.stay__container {
    flex-direction: column;
    gap: var(--size-xl);
}

.stay__content {
    display: flex;
    flex-direction: column;
    gap: var(--size-sm);
    max-width: 1200px;
    width: 100%;
}

.stay__infos {
    display: flex;
    gap: var(--size-sm);
    width: 100%;
}

.stay__info {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--size-sm);
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: var(--size-md);
    overflow: hidden;
    /*transition: box-shadow 0.3s ease;*/
}

.stay__info:hover {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.stay__icon {
    width: var(--size-4xl);
}

.stay__bg-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    opacity: 0.1;
    z-index: -1;
}

@media (max-width: 768px) {
    .stay__infos {
        flex-direction: column;
    }
}

/*=================================== SECTION ACTIVITIES ==================================*/

#activities {
    background-color: var(--color-beige);
}

.activities__container {
    display: flex;
    justify-content: center;
}

.activities__content {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    width: 100%;
}

.activities__activity {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "image text";
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Alterner les images et le texte */
.activities__activity:nth-child(even) {
    grid-template-areas: "text image";
}

/* Styles des images et du texte */
.activities__image-wrapper {
    grid-area: image;
    width: 100%;
    height: 100%;
}

.activities__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.activities__info {
    grid-area: text;
    display: flex;
    flex-direction: column;
    gap: var(--size-sm);
    width: 100%;
    padding: var(--size-lg);
}

/* ✅ Passage en colonne sur mobile */
@media (max-width: 768px) {


    .activities__activity {
        grid-template-columns: 1fr; /* Passer en colonne */
        grid-template-areas: 
            "image"
            "text"; /* Image en haut, texte en bas */
    }

    .activities__activity:nth-child(even) {
        grid-template-areas: 
            "image"
            "text"; /* Même disposition pour tous les items */
    }
}


/*=================================== SECTION REVIEWS ==================================*/

.reviews__container {
    flex-direction: column;
    gap: var(--size-xl);
}

.reviews__content {
    display: flex;
    gap: var(--size-xl);
    width: 100%;
}

/* Scores */
.reviews__scores {
    display: flex;
    flex-direction: column;
    margin-top: var(--size-xl);
}

.reviews__score {
    display: flex;
    align-items: center;
    gap: var(--size-sm);
}

.reviews__score-logo {
    width: var(--size-4xl);
}

.reviews__score-info {
    display: flex;
    flex-direction: column;
}

.reviews__stars {
    display: flex;
}

.reviews__stars svg {
    width: var(--size-xl);
}

.reviews__nb-reviews {
    text-align: center;
}

/* Avis */
.reviews__reviews {
    display: flex;
    gap: var(--size-md);
    width: 100%;
    border-radius: calc(var(--size-md) * 2);
    padding: var(--size-md);
    overflow-x: auto;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5) inset;
}

.reviews__review {
    display: flex;
    flex-direction: column;
    gap: var(--size-lg);
    min-width: var(--size-8xl);
    height: fit-content;
    border-radius: var(--size-md);
    padding: var(--size-lg);
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
    transform: translate(0, 0);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.reviews__review:hover {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    transform: translate(0, -2px);

}

.reviews__review-header {
    display: flex;
    align-items: center;
}

.reviews__author-picture {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--size-sm);
}

.reviews__author-picture img {
    width: var(--size-2xl);
    height: var(--size-2xl);
    border-radius: 50%;
    object-fit: cover;
}

.reviews__author {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.reviews__author-score {
    display: flex;
    align-items: center;
    gap: var(--size-xs);
    width: fit-content;
}

.reviews__site-logo {
    width: var(--size-3xl);
}

.reviews__review-content {
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reviews__review-content.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

.reviews__see-more {
    text-decoration: underline;
    cursor: pointer;
    color: var(--color-primary);
    transition: color 0.3s ease-in-out;
}

.reviews__see-more:hover {
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .reviews__content {
        flex-direction: column;
    }
}

/*=================================== SECTION IMG FIXED ==================================*/

#image_fixed_0 {
    background-image: url('/assets/img/hero_carousel_01.webp');
}

/* background image fixed in de bg  */
#image_fixed_1 {
    background-image: url('/assets/img/hero_carousel_02.webp');
}

.image_fixed {
    height: 500px;
    background-size: cover;
    background-attachment: fixed;
}