#intro {
    background-image: url("../img/dehors/bandeau.jpg");
    height: 80vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
}

#title-1 {
    text-transform: uppercase;
}

#section-1 {
    color: white;
}

#intro2 {
    color: var(--really-really-dark-purple);
    text-align: center;
    padding: 50px 5% 0 5%;
    gap:10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#gites {
    padding: 50px 5%;
}

#title-2 {
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
    display: flex;
}

#title-2 p {
    max-width: 40%;
    color: var(--really-really-dark-purple);
}

#les-gites {
    gap: 20px;
    display: flex;
}
#les-gites a {
    position: relative;
    overflow: hidden;
    width: 33%;
    transition: ease-in-out 0.2s;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 1 / 1;
    display: block;
}

#petit-renard::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/petit-renard/chambre-1.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

#cassiope::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/cassiope/salon-jardin.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

#grande-ourse::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/grande-ourse/porte.JPG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1;
}

.content {
    color: white;
    padding: 20px 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2;
}

#les-gites a:hover .overlay {
    opacity: 1;
}

#les-gites a:hover .content {
    opacity: 1;
    transform: translateY(0);
}

#les-gites h4 {
    color: white;
}


.ligne {
    align-items: center;
    justify-content: space-between;
    display: flex;
    padding: 0;
    margin: 0;
}

#us {
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 100px 5% 50px 5%;
}

#us p {
    margin-top: 20px;
    color: var(--really-really-dark-purple);
}

#section-3 {
    padding: 20px 50px;
}

#us img {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
}

#title-4 {
    margin-bottom: 20px;
}

#activites {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 50px 5%;
    margin-top: 50px;
}

#activites p {
    color: var(--really-really-dark-purple);
}

.image-grid {
    max-width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}
.image-grid img {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
}

.image-grid-2 {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}
.image-grid-2 img {
    height: 100%;
    width: 100%;
    aspect-ratio: 1/1;
    display: block;
    object-fit: cover;
}

#pr-tel {
    display: none;
}

#jsp {
    padding: 100px 5% 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    color: var(--really-really-dark-purple);
}


@media (max-width: 768px) {

    #us {
        grid-template-columns: 1fr;
    }


    #section-3 {
        margin-top: 20px;
        padding: 0;
    }

    .image-grid {
        grid-template-columns: 1fr 1fr;
    }

    #pr-tel {
        display: block;
    }

    #pr-pc, #pr-pc2 {
        display: none;
    }

    #image-grid-tel {
        grid-template-columns: 1fr;
    }

    #activites {
        padding-top: 0;
    }

    #title-2 {
        align-items: flex-start;
        text-align: left;
        flex-direction: column;
    }

    #title-2 p {
        max-width: 100%;
    }

    #les-gites {
        flex-direction: column;
    }

    #les-gites a {
        width: 100%;
    }

    .flex {
        align-items: flex-start;
        padding-bottom: 20px;
        flex-direction: column;
    }

    #jsp {
        grid-template-columns: 1fr;
    }


}

.carousel-container {
    margin: 50px 5%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    gap:20px;
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-item {
    box-sizing: border-box;
    color: var(--really-really-dark-purple);
    min-width: calc((100% - 40px) / 3);
    aspect-ratio: 1 / 1;
    padding: 20px;
    background: #f0f0f0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(168, 114, 157, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s ease-in-out;
}

.carousel-button:hover {
    background: rgba(168, 114, 157, 1);
}

.carousel-button.left {
    left: 10px;
}

.carousel-button.right {
    right: 10px;
}

.date {
    margin-top: 0;
    color: var(--dark-purple);
}

.rating {
    color: #ffd05b;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-purple);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
    background-color: var(--really-dark-purple);
}



.more-text {
    display: inline;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    display: inline-block;
    vertical-align: top;
}

.read-more-container.expanded .more-text {
    max-height: 1000px;
    opacity: 1;
}

.read-more-container span {
    font-weight: normal;
}

.read-more-btn {
    background: none;
    margin-top: 10px;
    color: var(--dark-purple);
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.read-more-btn:hover {
   color: var(--really-really-dark-purple);
}

.flex {
    justify-content: space-between;
    display: flex;
}

@media (max-width: 768px) {
    .carousel-item {
        min-width: 100% !important;
        max-height: 100%;
    }
}