/*Fichier index.css*/
@import url(colors.css);

.txt_presentation {
    width: 50%;
    margin: 5% auto;
    padding-top: 3%;
    text-align: center;
}

.txt_presentation p {
    color: var(--black);
    text-align: justify;
    font-size: 1.3rem;
}

.section_1 .container_img {
    width: 50%;
}
.text {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 35%;
    text-align: justify;
}

.section_2 {
    display: flex;
    flex-direction: column;
}

.section_2 .text {
    margin: 50px auto 5% auto;
    width: 94%;
    display: block;
    padding: 0 5%;
}
.section_2 .text h2{
    padding-left: 4px;
}
.section_2 .text > div {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.section_2 .text > div a {
    color: var(--mediumgrey);
}

.darkred {
    color: var(--darkred);
}

.section_2 .text > div.wrapper-projets-filter a {
    color: var(--black);
}
.section_2 .text > div.wrapper-projets-filter a:hover {
    color: var(--darkgrey);
}
.section_2 .container_img {
    width: 100%;
    height: 100%;
    transition: all 0.5s ease-out;
}

.section_2 .container_img:not(.bloc-plus) a {
    transition: all 0.5s ease-out;
    color: var(--darkgrey);
    position: relative;
    display: block;
}
.section_2 .container_img:not(.bloc-plus):hover {
    cursor: pointer;
}

.section_2 .container_img h3 {
   display: block;
   font-size: 1rem;
}
.section_2 .container_img:not(.bloc-plus) a::after {
    content: "";
    background-color: rgba(255, 255, 255, 0.5);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-image: url(/images/+.png);
    background-repeat: no-repeat;
    background-position: center center;
}
.section_2 .container_img:hover a::after,
.section_2 .container_img:hover h3 {
    opacity: 1;
}

/* .section_2 .container_img:not(.bloc-plus) a:hover {
    transform: scale(1.075);
} */

.section_2 .container_img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.section_2 .lien-realisations {
    color: var(--black);
}

.bloc-plus div {
    text-align: center;
    background-color: #ececec;
    text-transform: uppercase;
    height: 62%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9em;
}

.section_2 .a_button {
    align-self: center;
}

.slider_container {
    margin-top: 100px;
}
.flex_grid_photos {
    display: grid;
    grid-template-columns: repeat(3, 3fr);
    column-gap: 40px;
    row-gap: 40px;
    margin-bottom: 5rem;
    padding: 0 10%;
}
.flex_grid_photos .container_img:nth-child(1) {
    grid-row: span 2;
}

.flex_grid_photos .container_img:nth-child(3) {
    grid-row: span 2;
}

.flex_grid_photos .container_img:nth-child(4) {
    grid-row: span 2;
}
@media only screen and (max-width: 767px) {
    .txt_presentation {
        margin: 75px auto;
        width: 90%;
    }

    article {
        flex-direction: column;
    }
    .section_1 .container_img {
        width: 100%;
    }
    .text {
        width: 100%;
        margin-top: 25px;
        text-align: left;
    }
    .wrapper_index .flex_reverse {
        flex-direction: column;
    }

    .bloc-plus {
        font-size: 0.8em;
        padding-bottom: 10px;
        order: 8;
    }
    .bloc-plus div {
        height: 250px;
    }
    .flex_grid_photos {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 60px;
    }

    .txt_presentation p {
        text-align: left;
        font-size: 1.2rem;
    }
}
