@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat/Montserrat-Regular.ttf") format("truetype");
   }

html{
    width: 100%;
    height: 100vh;
    font-family: "Montserrat";
}

body, h1 , h2, ul, li, a{
    margin: 0;
    padding: 0;
}


.container{
    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: 0 10px;
}

main{
    position: relative;
    width: 100%;
    height: calc( 100vh - 126px);
}

.bloc{

    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transition-duration: 0.5s;
    opacity: 0;
    overflow: hidden;
}

/* Header */

header{
    height: 125px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: solid black 1px;
}

.logo{
    height: 100px;
    width: auto;
}


nav ul{
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99999999;
}

li{
   list-style-type: none; 
}

li a{
    text-decoration: none;
    color: black;
    font-size: 24px;
    font-weight: bold;

}
li h2.active{
    border-bottom: dotted 3px #0e69a7;
    color: #0e69a7;
}

li h2:hover{
    cursor: pointer;
}

.mobile{
    display: none;
}


/* Fin header */


/* Main */

main .active{
    opacity: 1;
    z-index: 1; 
}

/* Fin main */

/* Accueil */


.accueil .base{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    background-color: white;
}

.gauche{
    width: 50%;
    height: 100%;
    transform: translateX(-100%);
    transition-duration: 0.5s;
}

.droite{
    width: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    transition-duration: 0.5s;
    transform: translateX(100%);
    
}

.accueil .droite{
    background:linear-gradient(45deg, #0e69a7, rgb(29, 179, 227));
}

.accueil .droite .triangleG{
    position: absolute;
    width: 100%;
    height: 50px;
    top: 0;
    left:0;
}

.accueil .droite .triangleD{
    position: absolute;
    width: 100%;
    height: 50px;
    bottom: 0;
    right:0;
}

.accueil.active .gauche{
    transform: translateX(0);
}

.accueil.active .droite{
    transform: translateX(0);
}

.accueil .gauche-container{
    padding-left: calc(100% - 600px + 10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.accueil .droite-container{
    padding-right: calc(100% - 600px + 10px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.accueil .droite .photo {
    width: 350px;
    height: 350px;
}
.accueil .droite .photo img{
    border-radius: 50%;
    width: 100%;
    height: auto;
}

.accueil .gauche h3{
    font-size: 30px;
}

.accueil .gauche p{
    font-size: 25px;
}

/* Fin Accueil */


/* Présentation */

.presentation {
    opacity: 0;
    background-color: white;
    position: relative;
}

.presentation:before{
    content: "";
    position: absolute;
    top:-55px;
    left: 0;
    background-color: #0e69a7;
    width: 103%;
    height: 84px;
    transform: rotate(2deg);
    /*animation: 2s linear  infinite  colorisation;*/
}
.presentation:after{
    content: "";
    position: absolute;
    bottom:-55px;
    right: 0;
    background-color: #0e69a7;
    width: 103%;
    height: 84px;
    transform: rotate(2deg);
    /*animation: 2s linear 1s infinite  colorisation;*/
}

.presentation .container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-bottom: 25px;
}

.presentation h3{
    font-size: 30px;
}

.presentation h4{
    font-size: 22px;
    margin: 0;
    margin-bottom: 30px;
}

.presentation p{
    font-size: 18px;
    margin: 5px 0;
}

@keyframes colorisation{
    0% { filter:hue-rotate(0deg) }
    100%   { filter:hue-rotate(360deg) }
}


/* Fin présentation */

/* Parcours */

.parcours {
    opacity: 0;
    background-color: white;
}

.parcours .container{
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 45px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
}

.parcours .container .experience{
    position: relative;
    padding: 20px ;
    margin-top: 30px;
}

.parcours .container .experience h4{
    text-align: center;
    font-size: 26px;
}

.parcours .container .experience h5{
    text-align: center;
    font-size: 22px;
}
.parcours .container .experience p{
    font-size: 18px;
}

.parcours .container .experience span{
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    width: 100%;
}

.parcours .container  h3{
    text-align: center;
    font-size: 30px;
    margin: 30px 0 75px;
    text-decoration: underline;

}

.parcours .owl-carousel .owl-nav button.owl-prev{
    position: absolute;
    left:-25px;
    top:0;
    display : inline-block;
    height : 0;
    width : 0;
    border-top : 15px solid transparent;
    border-right : 25px solid #0e69a7;
    border-bottom : 15px solid transparent;
}

.parcours .owl-carousel .owl-nav button.owl-next{
    position: absolute;
    right:-25px;
    top:0;
    display : inline-block;
    height : 0;
    width : 0;
    border-top : 15px solid transparent;
    border-left : 25px solid #0e69a7;
    border-bottom : 15px solid transparent;
}

.parcours .container .experience:before{
    position: absolute;
    top:-20px;
    left:0;
    width: 100%;
    height: 10px;
    background-color: #0e69a7;
    content: "";
}

.parcours .container .experience:after{
    position: absolute;
    top:-27px;
    left:calc(50% - 15px);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #0e69a7;
    content: "";
}


/* Fin Parcours */

/* Competences */

.competences {
    opacity: 0;
    background-color: white;
}

.competences .base{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    background-color: white;
}

.competences.active .droite, .competences.active .gauche{
    transform: translateX(0);
    background: white;
}

.competences .gauche .gauche-container{
    padding-left: calc(100% - 600px + 10px);
    padding-right: 10px;
    height: 100%;
}

.competences .gauche{
    position: relative;
    width: 100%;
}


.competences .droite .droite-container{
    padding-right: calc(100% - 600px + 10px);
    padding-right: 30px;
    height: 100%;
}
.competences h3{
    text-align: center;
    font-size: 30px;
    text-decoration: underline;
    margin: 50px 0 50px 0;
}

.competences h4{
    font-size: 22px;
    margin: 20px 0 20px 0;
    text-align: right;
}

.competences .theme{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.competences .note{
    width: 60%;
    height: 35px;
    border-radius: 90px;
    border: solid black 2px;
    position: relative;
    overflow: hidden;
    margin-right: 20px;

}

.note:before{
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
}

.competences.active .html .note:after{
    content: "";
    position: absolute;
    width: 90%;
    height: 35px;
    background: #0e69a7;
    top:0;
    left: calc(-100% - 3px);
    animation: 1s linear 1s forwards  barTransfo;
    z-index: 2;
}

.competences.active .html .note:before{
    content: "90%";
    position: absolute;
    width: 100%;
    height: 35px;
    top:5px;
    left:0;
    right: 0;
    opacity: 0;
    animation: 0.5s linear 2s forwards  chiffre;
    z-index: 3;
}

.competences.active .css .note:after{
    content: "";
    position: absolute;
    width: 90%;
    height: 35px;
    background: #0e69a7;
    top:0;
    left: calc(-100% - 3px);
    animation: 1s linear 1s forwards  barTransfo;
    z-index: 2;
}

.competences.active .css .note:before{
    content: "90%";
    position: absolute;
    width: 100%;
    height: 35px;
    top:5px;
    left:0;
    right: 0;
    opacity: 0;
    animation: 0.5s linear 2s forwards  chiffre;
    z-index: 3;
}

.competences.active .php .note:after{
    content: "";
    position: absolute;
    width: 70%;
    height: 35px;
    background: #0e69a7;
    top:0;
    left: calc(-100% - 3px);
    animation: 1s linear 1s forwards  barTransfo;
    z-index: 2;
}

.competences.active .php .note:before{
    content: "70%";
    position: absolute;
    width: 100%;
    height: 35px;
    top:5px;
    left:0;
    right: 0;
    opacity: 0;
    animation: 0.5s linear 2s forwards  chiffre;
    z-index: 3;
}

.competences.active .symfony .note:after{
    content: "";
    position: absolute;
    width: 60%;
    height: 35px;
    background: #0e69a7;
    top:0;
    left: calc(-100% - 3px);
    animation: 1s linear 1s forwards  barTransfo;
    z-index: 2;
}

.competences.active .symfony .note:before{
    content: "60%";
    position: absolute;
    width: 100%;
    height: 35px;
    top:5px;
    left:0;
    right: 0;
    opacity: 0;
    animation: 0.5s linear 2s forwards  chiffre;
    z-index: 3;
}

.competences.active .js .note:after{
    content: "";
    position: absolute;
    width: 80%;
    height: 35px;
    background: #0e69a7;
    top:0;
    left: calc(-100% - 3px);
    animation: 1s linear 1s forwards  barTransfo;
    z-index: 2;
}

.competences.active .js .note:before{
    content: "80%";
    position: absolute;
    width: 100%;
    height: 35px;
    top:5px;
    left:0;
    right: 0;
    opacity: 0;
    animation: 0.5s linear 2s forwards  chiffre;
    z-index: 3;
}

.competences.active .react .note:after{
    content: "";
    position: absolute;
    width: 60%;
    height: 35px;
    background: #0e69a7;
    top:0;
    left: calc(-100% - 3px);
    animation: 1s linear 1s forwards  barTransfo;
    z-index: 2;
}

.competences.active .react .note:before{
    content: "60%";
    position: absolute;
    width: 100%;
    height: 35px;
    top:5px;
    left:0;
    right: 0;
    opacity: 0;
    animation: 0.5s linear 2s forwards  chiffre;
    z-index: 3;
}

.competences.active .sql .note:after{
    content: "";
    position: absolute;
    width: 70%;
    height: 35px;
    background: #0e69a7;
    top:0;
    left: calc(-100% - 3px);
    animation: 1s linear 1s forwards  barTransfo;
    z-index: 2;
}

.competences.active .sql .note:before{
    content: "70%";
    position: absolute;
    width: 100%;
    height: 35px;
    top:5px;
    left:0;
    right: 0;
    opacity: 0;
    animation: 0.5s linear 2s forwards  chiffre;
    z-index: 3;
}

.competences.active .linux .note:after{
    content: "";
    position: absolute;
    width: 60%;
    height: 35px;
    background: #0e69a7;
    top:0;
    left: calc(-100% - 3px);
    animation: 1s linear 1s forwards  barTransfo;
    z-index: 2;
}

.competences.active .linux .note:before{
    content: "60%";
    position: absolute;
    width: 100%;
    height: 35px;
    top:5px;
    left:0;
    right: 0;
    opacity: 0;
    animation: 0.5s linear 2s forwards  chiffre;
    z-index: 3;
}

@keyframes barTransfo{
    0% { left: calc(-100% - 3px); }
    100%   { left: 0%; }
}

@keyframes chiffre{
    0% { opacity: 0; }
    100%   { opacity: 1; }
}



/* Fin Competences */

/* Contact */

.contact {
    opacity: 0;
    background-color: white;
    display: flex;
    align-items: center;

}

.contact .container{
    text-align: center;
}

.contact h3{
    font-size: 30px;
}

.contact p{
    font-size: 25px;
}

.contact .info{
    margin-top:70px;
    display: flex;
    justify-content: space-around;
}

.contact a{
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: #0e69a7;
    font-size: 25px;
    text-decoration: none;
}
.contact img{
    width: 50px;
    height: auto;
    margin-right: 15px;
}


/* Fin Contact */

/* Footer */

footer{
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1;
    font-size: 12px;
}

/* Fin footer */

/* 404 */

.error{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.error h1{
    font-size:30px;
    margin: 50px 0;
}

.error a{
    font-size:26px;
    margin: 50px 0;
    text-decoration: none;
    color: #0e69a7;

}

.error a:hover{
    cursor: pointer;    
}


/* Fin 404 */

/* Media */

@media (max-width: 992px){

    h1{
        font-size:30px ;
    }
    ul .logo{
        display: none;
    }

    ul li{
        padding: 15px 0;
    }

    .mobile{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header  ul{
        position: fixed;
        width: 40%;
        height: calc( 100vh - 125px);
        top: 125px;
        right: -100%;
        background-color: white;
        transition-duration: 0.5s;
        flex-direction: column;
        justify-content: flex-start;
    }

    header ul.menuOuvert{
        right: 0;
    }

    .mobile span{
        display: block;
        width: 40px;
        height: 5px;
        margin-bottom: 5px;
        position: relative;
        
        background: black;
        border-radius: 3px;
        
        z-index: 1;
        
        transform-origin: 5px 0px;
        
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    opacity 0.55s ease;
    }

    .fermer span:first-child{
        transform-origin: 0% 0%;
    }

    .fermer span:nth-last-child(2){
        transform-origin: 0% 100%;
    }

    .ouvert span
    {
    opacity: 1;
    transform: rotate(-45deg) translate(-1px, 4px);
    }

    .ouvert span:nth-last-child(3)
    {
    opacity: 0;
    }

    .ouvert span:nth-last-child(2)
    {
        transform: rotate(45deg) translate(-1px, -10px);
    }

    .accueil .gauche, .accueil .droite{
        width:100%;
    }
    .accueil .gauche-container, .accueil .droite-container{
        padding: 0 10px;
        justify-content: center;
        align-items: center;

    }

    .accueil .base{
        flex-direction: column-reverse;
    }

    .contact .info{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .competences .note{
        width: 70%;    
    }
    

}

@media (max-width: 576px){

    .bloc .container{
        width: auto;
    }

    p{
        text-align: justify;
    }
    
    .logo{
        height: 80px;
    }
    header  ul{
        width: 55%;
    }
    .contact a{
        font-size: 20px;
    }
    .contact img{
        width: 50px;
    }

    .presentation h3{
        font-size: 26px;
    }
    
    .presentation h4{
        font-size: 20px;
    }
    
    .presentation p{
        font-size: 15px;
   }
    
    .accueil .gauche h3{
        font-size: 26px;
    }
    
    .accueil .gauche p{
        font-size: 20px;
    }
    
    .contact h3{
        font-size: 26px;
    }
    
    .contact p{
        font-size: 20px;
    }

    .accueil .droite .triangleG{
        display: none;
    }

    .competences .theme{
        flex-direction: column;

    }

    .competences h3{
        font-size: 26px;
        margin: 15px 0;
    }

    .competences h4{
        font-size: 20px;
        margin: 5px 0;
    }
    
    .competences .note {
        height: 25px;
    }

    .competences .note:before {
        height: 25px;
    }

    .parcours .container p{
        text-align: left;
        font-size: 18px;
    }
    .parcours .container h3{
        font-size: 26px;
        margin-top: 0;
        margin-bottom: 30px;
    }
    .parcours .container h4{
        font-size: 20px;
        margin-top: 10px;
    }
    .parcours .container h5{
        font-size: 20px;
    }

    .parccours .container span{
        font-size: 18px;
    }
}