#gites2 {
    margin: 0 5%;
}

#intro {
    color: white;
    background-image: url("../img/montagne-1.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 5% 50px 5%;
}

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





#gites {
    margin: 100px 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 {
    margin-top: 50px;
    gap: 20px;
    display: flex;
}

#les-gites a{
    width: 33%;
    border-radius: 5px;
    transition: ease-in-out 0.2s;
}

#les-gites a article img {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

#les-gites a article div p {
    color: var(--really-really-dark-purple);
}

#les-gites i {
    color: var(--really-really-dark-purple);
}

.content {
    padding: 20px 15px;
}

#les-gites a:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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


.titre {
    margin: 50px 5% 70px 5%;
    color: var(--really-really-dark-purple);
    text-align: center;
}

.titre h2 {
    margin-bottom: 20px;
}

h2 {
    text-align: center;
}


.image-grid {
    display: grid;
    grid-template-rows: 2fr 1fr;
    width: 100%;
    gap: 20px;
}

.image-grid-2 {
    display: grid;
    grid-template-rows: 1fr 2fr;
    width: 100%;
    gap: 20px;
}

.image-grid img, .image-grid-2 img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.image-petite {
    object-fit: cover;
    aspect-ratio: 5 / 4;
}

.image-grande {
    object-fit: cover;
    aspect-ratio: 5 / 4;
}

.petit-renard {
    padding: 50px 5%;
    display: flex;
    gap: 50px;
}

.images {
    display: flex;
    gap: 20px;
    width: 50%;
}

.content {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--really-really-dark-purple);
    width: 50%;
    justify-content: center;
    align-items: flex-start;
}

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

    .images, .content {
        width: 100%;
    }

    .reverse {
        flex-direction: column-reverse; /* inverse horizontalement */
    }
}