/* Main section projects Design =========================================== */

.projects__title {
    color: var(--text-color);
    margin: 12rem 0 6rem;
    text-align: center;
}

.title {
    font-family: var(--text-font-title);
    font-size: 8.5vw;
    font-weight: 560;
}

.subtitle {
    font-family: var(--text-font);
    font-size: 4.5vw;
    padding-top: 1rem;
}

.projects__all {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.project__left, .project__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 10rem;
}

#img__project__link {
    display: flex;
    justify-content: center;
    width: 100%;
    height: auto;
}

#img__project {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0px 0px 16px 10px rgba(0, 0, 0, 0.1);
}

#picture {
    width: 100%;
    background-color: var(--color1);
}

.picture__left, .picture__right {
    padding: 4rem;
}

.infos__left, .infos__right {
    width: 100%;
    text-align: left;
    margin: 4rem 0;
}

.infos__title__left, .infos__title__right {
    font-size: 6vw;
    font-weight: 300;
    padding-bottom: 2rem;
    padding-left: 4rem;
}
.infos__title__left::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-details);
    margin-top: 0.2rem;
}
.infos__title__right::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-details);
    margin-top: 0.2rem;
}

.infos__text__left, .infos__text__right {
    font-size: 3.5vw;
    line-height: 1.7;
    padding: 0 4rem;
}

.info__languages__left, .info__languages__right {
    font-size: 3.5vw;
    font-weight: 500;
    padding: 1.5rem 4rem;
    color: var(--color-details);
    line-height: 1.5;
}

/* Responsive tablet +768px ==================================== */
@media only screen and (min-width : 768px) {

    .projects__title {
        margin: 10rem 0  6rem;
    }

    .picture__left, .picture__right {
        padding: 12rem;
    }

    #infos {
        margin: 8rem 0;
    }

    .infos__title__left, .infos__title__right {
        padding-left: 10rem;
    }
    .infos__title__left::after {
        height: 4px;
    }
    .infos__title__right::after {
        height: 4px;
    }

    .infos__text__left, .infos__text__right {
        padding: 0 10rem;
    }
    
    .info__languages__left, .info__languages__right {
        padding: 1.5rem 10rem;
    }
}

/* Responsive tablet +1024px ==================================== */
@media only screen and (min-width : 1024px) {

    .projects__title {
        margin: 15rem 0  10rem;
    }

    .title {
        font-size: 4vw;
    }

    .subtitle {
        font-size: 2vw;
    }
    
    #project {
        margin-bottom: 15rem;
    }

    #picture {
        width: 28vw;
        background-color: transparent;
    }

    #img__project {
        transition: transform 0.3s ease-in-out;
        filter: grayscale(100%);
    }
    #img__project:hover {  
        filter: grayscale(0);
        transform: translate(0, -25px);
    }

    /* left part ----------------------- */
    .project__left {
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
        position: relative;
    }
    .project__left::after {
        content: '';
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 77%;
        height: 58.5%;
        background-color: var(--color1);
        z-index: -1;
    }

    .picture__left {
        padding: 5rem 7rem 5rem 3rem;
    }

    .infos__left {
        width: 50%;
    }

    .infos__title__left {
        font-size: 1.7vw;
        padding-left: 0;
    }
    .infos__title__left::after {
        height: 4px;
    }

    .infos__text__left {
        font-size: 1.1vw;
        line-height: 1.2;
        margin: 0;
        margin-right: 25rem;
        padding: 0;
        padding: 2rem 0;
    }

    .info__languages__left {
        font-size: 1.1vw;
        line-height: 1.2;
        margin: 0;
        margin-right: 25rem;
        padding: 0;
    }

    /* right part ----------------------- */
    .project__right {
        position: relative;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    .project__right::after {
        content: '';
        display: block;
        position: absolute;
        right: 0;
        bottom: 0;
        width: 77%;
        height: 58.5%;
        background-color: var(--color1);
        z-index: -1;
    }

    .picture__right {
        padding: 5rem 3rem 5rem 7rem;
        }

    .infos__right {
        text-align: right;
        width: 50%;
    }

    .infos__title__right {
        font-size: 1.7vw;
        padding-left: 0;
    }
    .infos__title__right::after {
        height: 4px;
    }

    .infos__text__right {
        font-size: 1.1vw;
        line-height: 1.2;
        margin-left: 25rem;
        padding: 2rem 0;
    }
    
    .info__languages__right {
        font-size: 1.1vw;
        line-height: 1.2;
        margin-left: 25rem;
        padding: 2rem 0;
    }
}