@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

.services{
    display: flex;
    align-items: center;
    background-color: #181818;
    width: 85vw;
    height: 80vh;
    margin-left: 7.5vw;
    margin-top: calc(10vh - 32.5px);
    border-radius: 20px;
    margin-bottom: 15vh;
}

.left{
    width: 55%;
    padding: 8vw; 
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left span{
    overflow: hidden;
}

.left h1{
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    transition: all 0.6s ease;
}

.left h1 span{
    color: #e39700;
}

.left p{
    color: #fff;
    font-size: 16px;
    transition: all 0.35s ease;
    text-align: justify;
}

.left button{
    margin-top: 15px;
    height: 55px;
    width: 190px;
    border: 0;
    background-color: #e39700;
    color: white;
    border-radius: 30px;
    font-size: 17px;
    transition: all 0.5s ease;
}

.left button:hover{
    cursor: pointer;
    letter-spacing: 1px;
    color: hsl(0, 0%, 100%);
    box-shadow: #e39700 0px 0px 18px 0px;
}


.right{
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right .item{
    width: 400px;
    height: 220px;
    /*background-color: #2c2c2c;*/
    transition: all 0.8s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right .item .mobileContainer{
    pointer-events: none;
}

.right .item img{
    position: absolute;
    object-fit: cover;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    pointer-events: none;
    left: 0;
    top: 0;
}

.right .item svg{
    font-size: 100px;
    pointer-events: none;
    margin-bottom: 20px;
    transition: all 1s ease;
    z-index: 1;
}

.right .item h3{
    display: none;
}

.right .item h2{
    pointer-events: none;
    font-size: 80px;
    display: flex;
    position: absolute;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
    justify-content: center;
    bottom: 0%;
    letter-spacing: 3px;
    font-family: 'Anton', sans-serif;
    transition: all 1s ease;
    z-index: 1;
}

.right .item p{
    display: none;
}


.right .item:hover{
    cursor: pointer;
    opacity: 1;
}


.right .up{
    opacity: 0.2;
    transform: translateY(0px) scale(0.8);
}

.right .middle{
    transform: translateY(0px);
    opacity: 0.2;
}

.right .up h2, .right .up svg, .right .down h2, .right .down svg{
    opacity: 0.5;
}
.right .middle h2, .right .middle svg{
    opacity: 1;
}

.right .down{
    opacity: 0.2;
    transform: translateY(0px) scale(0.8);
}

.exemple{
    position: relative;
    overflow: hidden;
    width: 85vw;
    height: 80vh;
    margin-left: 7.5vw;
    margin-bottom: 10vh;
}

.backImage{
    height: 100%;
    width: 100%;
    transition: opacity 1s ease;
    position: absolute;
    
}

.portfolio .backImage{
    background: url('../images/portfolio.jpg');
    background-size: cover;
    background-position: center;
}
.vitrine .backImage{
    background: url('../images/vitrine.jpg');
    background-size: cover;
    opacity: 0.8;
    top: 1px;
    height: 100%;
    background-position: center;
}
.plateforme .backImage{
    background: url('../images/plateforme.jpg');
    background-size: cover;
    opacity: 0.8;
    background-position: center;
}
.vitrine .shape{
    left: 0;
    clip-path: polygon(0 0, 70% 0%, 100% 100%, 0% 100%);
}

.shape{
    width: 0%;
    height: 300%;
    position: absolute;
    right: 0;
    background-color: #181818;
    clip-path: polygon(30% 0, 100% 0%, 100% 100%, 0% 100%);
    transition: 1s ease ;
}
.exemple:hover .backImage{
    opacity: 0.6;
}
.exemple:hover .shape{
    width: 70%;
}
.exemple:hover .contentBox{
    opacity: 1;
    transition: opacity 1s ease 0.5s;
}

.contentBox{
    color: white;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
    width: 40%;
    height: 100%;
    position: absolute;
    right: 5%;
    opacity: 0;
    transition: opacity 0.2s ease 0s;
}

.contentBox button{
    margin-top: 35px;
    height: 50px;
    width: 230px;
    border: 0;
    background-color: #e39700;
    color: white;
    border-radius: 30px;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.5s ease;
}

.contentBox button:hover{
    cursor: pointer;
    letter-spacing: 1.5px;
    color: hsl(0, 0%, 100%);
    box-shadow: #e39700 0px 0px 18px 0px;
}

.vitrine .contentBox{
    right: unset;
    left: 5%;
    align-items: start;
}

.separateur{
    width: 80%;
    height: 2px;
    background-color: #e39700;
    margin-top: 10px;
    margin-bottom: 25px;
}

.contentBox h2{
    color: #fff;
    font-size: 45px;
    font-weight: bold;
}
.contentBox h4{
    margin-top: 15px;
    font-weight: 300;
    font-style: italic;
}

.contentBox p{
    margin-top: 15px;
    font-size: 15px;
    text-align: justify;
}
.contentBox span{
    color: #e39700;
}


@media (max-width: 1050px) {
    .services {
        flex-direction: column;
        position: relative;
        height: auto;
        width: auto;
        margin: 30px 3vw;
    }

    .left {
        width: 100%;
        padding: 45px;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-bottom: 30px;
    }
    .left p {
        text-align: justify;
        font-size: 17px;
    }

    .left button{
        width: 100%;
    }
    

    .right {
        width: 100%;
        gap: 20px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .right .item{
            flex-direction: column;
            gap: 25px;
            width: 100%;
            height: fit-content;
            min-height: 255px;
            padding: 45px;
            position: relative;
            align-items: unset;
    }
    .right .item .mobileContainer{
        display: flex;
        height: fit-content;
        gap: 15px;
        align-items: baseline;
        z-index: 1;
    }

    .right .item img{
        opacity: 0.3;
    }

    .right .item p{
        display: flex;
        color: #fff;
        font-size: 17px; 
        text-align: justify;
        z-index: 1;
        text-shadow: 0 0 20px rgb(0,0,0);
    }

    .right .item svg{
        font-size: 40px;
        margin: 0;
        fill: #e39700;
        text-shadow: 0 0 20px rgba(0,0,0,0.3);
    }

    .right .item h3{
        display: flex;
        color: #fff;
        font-size: 50px;
        text-shadow: 0 0 20px rgba(0,0,0,0.3);
    }

    .right .item h2{
        bottom: auto;
        color: rgba(255, 255, 255, 0.04);
        font-size: 250px;
        width: calc(100% - 90px);
        height: calc(100% - 90px);
        align-items: center;
    }

    .right .middle, .right .up, .right .down {
        scale: 1 !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .right .middle h2, .right .up h2, .right .down h2{
        filter: none !important;
    }

    .right .middle svg, .right .up svg, .right .down svg{
        opacity: 1 !important;
        filter: none !important;
    }  
}

@media (max-width: 975px) {
    .shape{
        clip-path: polygon(0 0, 100% 0%, 100% 100%, 0% 100%);
    }
    .exemple:hover .shape{
        width: 100%;
    }
    .contentBox{
        width: 90%;
    }
    .exemple{
        width: calc(100% - 6vw);
        margin: 30px 3vw;
    }
    .vitrine .shape{
        clip-path: polygon(0 0, 100% 0%, 100% 100%, 0% 100%);
    }
}


@media (max-width: 400px) {
    .left p{
        font-size: 15px;
    }
    .left span h1{
        font-size: 40px;
    }
    .separateur{
        margin-bottom: 5px;
    }
    .contentBox button{
        margin-top: 25px;
        align-self: center;
    }
    .contentBox h4{
        margin-top: 10px;
    }
    .contentBox h2{
        font-size: 40px;
    }
}
