* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #252525;
}

#Portfolio{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}
#buttons{
    margin: 20px;
    border-radius: 10px;
    background-color: #1b1b1b;
    padding: 10px;
}

#buttons button{
    all: unset;
    cursor: pointer;
    color: rgb(158, 158, 158);
    border-color: black;
    padding: 5px 15px;
    border-radius: 5px;
    margin: 0px 5px;
    transition: all 0.3s;
}

.active{
    background-color: rgb(79, 79, 79) !important;
    color: white !important;
}

.page{
    width: 1000px;
    opacity: 0;
    position: absolute;
    top: 150px;
    transition: all 0.2s;
    z-index: 1;
}

.openPage{
    opacity: 1;
}
.page-section{
    background-color: #ecf3ff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1em;

    position: absolute;
    overflow: hidden;
    transition: all 0.2s;
}

.page-section:hover{
    transform: scale(1.03);
}

img {
    width: 100%;
}
ul {
    list-style: none;
    padding: 0;
}
ul li {
    margin: 5px 0;
    display: flex;
    align-items: center;
}
.material-icons {
    margin-right: 10px;
    font-size: 20px;
}
.main {
    flex-grow: 1;
    padding: 40px;
    color: #333;
}
h1 {
    font-size: 32px;
    color: white;
}
h2 {
    border-bottom: 1px solid #ccc;
    margin: 10px;
    text-align: center;
    width: fit-content;
}
.job-title {
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}
a {
    color: #1e3a56;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}


.code-section, .img-section, .img-section a{
    display: flex;
    align-items: center;
}
.img-section{
    flex-wrap: wrap;
    justify-content: center;
}
.img-section a, .img-section img{
    margin: 6px;
}
.img-section img{
    transition: all 0.1s;
}

.img-section img:hover{
    transform: rotateZ(10deg);
}

.img-section a:hover{
    text-decoration: none;
}




._portrait{
    width: 300px;
    height: 300px;
    font-size: 1em;
    padding: 0;
}
._code{
    top: 540px;
    left:0px;
    width: 1000px;
}
._code img{
    width: 40px;
}
._qui{
    width: 400px;
    height: 170px;
    left: 320px;
    text-align: left;
    align-items: start;
}
._education{
    left:370px;
    width: 300px;
    top: 320px;
    height: 200px;
}

._contact{
    left: 0px;
    width: 350px;
    height: 200px;
    top: 320px;
}
._langues{
    top: 190px;
    left: 320px;
    height: 110px;
    width: 400px;

}
._competence{
    left: 740px;
    width: 260px;
    height: 300px;

}
._loisirs{
    top: 320px;
    left: 690px;
    width: 313px;
    height: 200px;
}



._envergure{
    width: 600px;
    height: 318px;
    font-size: 1em;
    padding: 0;
}
._rockstoclimb{
    left:620px;
    width: 380px;
    padding: 0;
}
.p2h{
    position: absolute;
    top: 340px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
}
._robine{
    top:390px;
    width: 500px;
    left:500px;
    height: fit-content;
}
._crsvamic{
    top:390px;
    width: 480px;
    height: 204px;
}


.info{
    left:30px;
    top: 50%;
    transform: translateY(-50%);
}
.info:hover{
    transform: translateY(-50%);
}
.info a{
    width: 50px;
    padding: 0;
    margin: 5px;
    transition: all 0.1s;
}
.rotate-right:hover{
    transform: rotateZ(10deg);
}
.rotate-left:hover{
    transform: rotateZ(-10deg) !important;
}

.download_container{
    background-color: #cccccc2f;
    width: 100%;
    height: 12%;
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: end;
    align-items: center;
}

.download_button{
    position: absolute;
    width: 20px;
    margin: 5px;
    bottom: 3px;
    right: 0;
}



ul{
    padding-inline: 20px;
}

.page-section p{
    padding-inline:10px;
}



@media (max-width: 1295px) {

    .page{
        width: 95%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    ._portrait, ._rockstoclimb{
        width: 300px  !important;
        padding: 0 !important;
    }
    .page-section{
        position: relative;
        left: unset;
        top: unset;
        margin: 20px;
    }
    
    .info{
        position: absolute;
        left: 0;
        width: fit-content !important;
        top: 0;
        transform: translateY(0);
    }
    .info:hover{
        transform: translateY(0);
    }

    .p2h{
        position: relative;
        top: unset;
        left: unset;
        transform: unset;
    }

    .page-section{
        width: 80%;
        font-size: 1.1em;
        padding-block:30px;
        height: fit-content !important;
    }
    ._code img{
        width: 50px;
    }
    ._code{
        height: fit-content !important;
    }
}  


@media (max-width: 900px) {
    h1{
        font-size: 1.3em;
    }
    .page-section{
        font-size: 1.2em;
    }
    ._portrait{
        width: 50% !important;
    }
    .web-link{
        width: fit-content;
        margin-top: 60px;
    }
    .info{
        padding: 5px;
        margin: 5px;
    }
    .info a{
        width: 30px;
    }

    .download_container p{
        font-size: 0.6em;
        margin-right: 25px !important;
    }
    .download_button{
        width: 15px;
        bottom: 0;
    }

}   