.infos{
    width: 100vw;
    height: calc(100vh - 65px);
    display: flex;
    padding: 80px 10vw;
}

.left{
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 3vw;
    padding-left: 6vw;
    width: 40%;
    height: 100%;
    gap: 2vw;
}
   

.left  h3{
    color: #fff;
    font-weight: 100;
    font-size: 1.15vw;
}

.left .banniere{
    width: 29vw;
    height: max(5.8vw, 20px);
    background-color: #ffffff;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left .banniere img{
    height: 90%;
    width: auto;
    margin-left: 1%;
}

.left .banniere button{
    height: 100%;
    background-color: #e42618;
    width: 25%;
    border: none;
    font-size: 120%;
    color: #ffffff;
    font-weight: 200;
}

.left .banniere button:hover{
    cursor: pointer;
}

.left .banniere button i{
    font-size: 2vw;
    filter: drop-shadow(0 0 0.5vw rgba(0,0,0,0.2));
    transition: all 0.5s ease;
    animation: clickMe 2.5s ease infinite;
}

.left .banniere button i:hover{
    transform: scale(1.15);
}

.left .banniere button h4{
    font-size: 0.7vw;
    font-weight: 600;
}  

.left .containeurTitre{
    height: fit-content;
    overflow: hidden;
}

.left .containeurTitre:nth-child(2) h1{
    animation-delay: 1s;
}

.left .containeurTitre:nth-child(3) h1{
    animation-delay: 1.6s;
}

.left .titre h1{
    color: #fff;
    font-size: max(4.5vw, 30px);
    transform: translateY(100%);
    animation: titre 0.6s ease 0.3s forwards;
}
.left .titre h1 span{
    color: #e42618;
}



@keyframes clickMe {
    2%{
        transform: rotate(-10deg);
    }
    6%{
        transform: rotate(10deg);
    }
    10%{
        transform: rotate(-10deg);
    }
    14%{
        transform: rotate(10deg);
    }
    18%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(0deg); 
    }
}

@keyframes titre {
    100%{
        transform: translateY(0);
    }
}


.right{
    display: flex;
    justify-content: center;
    width: 55%;
    height: 100%;
    gap: 20px;
}

.right h2{
    display: none;
}

.right .name{
    display: block;
    position: absolute;
    left: 20px;
    bottom: 0px;
    font-size: 1.7vw;
    font-weight: 200;
    color: #fff;
    z-index: 1;
    transform: rotate(-90deg);
    transform-origin: left top;
    opacity: 1;
    transition: opacity 0.5s ease 0.4s;
}

.right .nameHover{
    display: block;
    position: absolute;
    left: 24px;
    bottom: 27px;
    font-size: 1.5vw;
    font-weight: 200;
    color: #fff;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease ;
}

.right .role{
    display: block;
    position: absolute;
    right: 24px;
    bottom: 27px;
    font-size: 1.5vw;
    font-weight: 200;
    color: #fff;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease ;
}

.right .role span{
    color: #e42618;
    margin-right: 0.1vw;
}


.right .linkedin{
    font-size: 30px;
    position: absolute;
    top: 27px;
    left: 24px;
    opacity: 0;
    pointer-events: none;
}

.right .github{
    width: 26.1px;
    position: absolute;
    top: 63px;
    left: 24px;
    opacity: 0;
    pointer-events: none;
}

.cardImage{
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 42.5%;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s ease;
}

.cardImage:nth-child(1){
    background-image: url('../images/Tristan.jpg');
    background-size: cover;
    background-position: center;
}
.cardImage:nth-child(2){
    background-image: url('../images/Maxime.jpg');
    background-size: cover;
    background-position: center;
}

.cardImage::before{
    content: '';
    position: absolute;
    background: rgb(253,252,255);
    background: linear-gradient(0deg, rgba(253,252,255,1) 0%, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4767156862745098) 15%, rgba(0,0,0,0) 33%);
    inset: 0;
    z-index: 1;
}

.active{
    width: 55%;
    transition: all 0.6s ease;
}
.active img{
    transition: all 0.6s ease;
    transform: translateX(0);
}

.active .name{
    opacity: 0;
    transition: opacity 0.3s ease;
}

.active .nameHover,.active .role,.active .github,.active .linkedin{
    opacity: 1;
    transition: opacity 0.3s ease 0.4s;
}

.active .github, .active .linkedin{
    z-index: 1;
    pointer-events: all;
    transition: opacity 0.3s ease 0.4s , scale 0.3s ease;
}

.active .github:hover, .active .linkedin:hover{
    cursor: pointer;
    scale: 1.2;
}


.close{
    width: 30%;
    transition: all 0.6s ease;
}

.transition{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    transition: all 1.3s ease-in;
    pointer-events: none;
    opacity: 0;
    z-index: 30;
}


@media (max-width: 970px) {

    .infos{
        flex-direction: column;
        padding: 0;
        height: unset;
        min-height: calc(100vh - 65px);
        justify-content: center;
    }

    .left{
        width: 100%;
        align-items: center;
        padding: 10vw 5vw;
        padding-bottom: 5vw;
        height: unset;
    }
    .left .titre{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .left .titre h1{
        font-size: 10vw;
    }

    .left h3{
        font-size: max(2.5vw, 13px);
    }

    .left .banniere{
        margin-top: 2vw;
        width: 100%;
        height: 15vw;
    }

    .left .banniere button i{
        font-size: 5vw;
    }
    .left .banniere button h4{
        font-size: 2.5vw;
    }

    .right{
        width: 100%;
        padding: 5vw 5vw;
        padding-bottom: 10vw;
        min-height: 80vw;
        flex: 1;
    }
    
    .cardImage{
        height: unset;
        width: calc(50vw - 10px);
    }

    .right h2{
        font-size: 3.5vw;
    }

    .right .name{
        left: 3vw;
        font-size: 3.5vw;
    }

    .right .nameHover{
        left: 5vw;
        bottom: 4vw;
        font-size: 3.5vw;
    }

    .right .role{
        right: 5vw;
        bottom: 4vw;
        font-size: 3.5vw;
    }

    
    .right .linkedin{
        left: 5vw;
        font-size: 28px;
    }

    .right .github{
        left: 5vw;
        width: 25px;
        top: 60px;
    }
       
    .active{
        width: calc(65vw - 10px) !important;
    }

    .close{
        width: calc(35vw - 10px) !important;
    }

}
