@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat/static/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #005c6c;
    display: flex;
    color: #e0e0e0;
    width: 100%;
    margin: 0;
    font-family: 'Montserrat', serif;
}

#btnResp {
    /*visibility: hidden;*/
    display: none;
}

h2, h3 {
    font-size: 1.5vw;
}

h4 {
    font-size: 1.3vw;
}

p {
    font-size: 1.2vw;
    text-align: justify;
    text-indent: 5%;
}

.periode {
    font-size: 1vw;
    margin-top: 10px;
}

strong {
    font-weight: normal;
    font-size: x-large;
    color: #009fff;
}


/********************************************************************************
*** Section Bouton responsive
*********************************************************************************/
#btnResp {
    transition: all 0.2s 0.2s;
}

/********************************************************************************
*** Section Barre latérale
*********************************************************************************/
#leftBar {
    background: linear-gradient(to right, #003a44 70%, #005c6c);
    width: 400px;
    height: 100%;
    position: fixed;
    z-index: 1;
    transform-origin: left;
    transition: 0.2s linear;
}

/*******  Section présentation ***************************************/
#presentation {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 1.5vw;
}

#presentation p {
    font-size: 25px;
    margin: 0 auto 40px auto;
}

/*******  Section navigation *****************************************/
#leftBar ul {
    list-style: none;
    margin: 0;
}

#leftBar li a {
    text-decoration: none;
    color: #74ffff;
    transition: all 0.2s 0.2s;
}

#leftBar li {
    transition: all 0.2s 0.2s;
}

.lien {
    font-size: 18px;
    padding: 5px 0;
    height: 20px;
}

#leftBar .lien a:hover {
    font-size: 20px;
    text-shadow: 0 4px 5px black;
}

/*******  Section photo *********************************************/
#maPhoto {
    border-radius: 0 0 10% 0;
    width: 50%;
}

/*******  Section coordonnées *********************************************/
#coord {
    display: flex;
    flex-direction: column;
    padding-left: 40px;
    margin-top: 10px;
}

#coord a {
    text-decoration: none;
    color: #74ffff;
}

#coord #coordIcone {
    font-size: 2vw;
    margin: auto;
}

#coord #coordIcone a {
    margin-right: 1.5vw;
}
.thm {
    width: 75%;
}
#thm_badge{
    width: 100% !important;
}

/*******  Section Bouton CV *********************************************/
#monCv {
    display: flex;
    margin: auto;
    margin-top: 15px;
}

#monCv bouton {
    margin: auto;
    background-color: seashell;
    padding: 0.8vw;
    border-radius: 15px;
    cursor: pointer;
}

#monCv bouton:hover {
    box-shadow: 0 0 8px 4px #74ffff;
}

#monCv bouton a {
    text-decoration: none;
    color: #173199;
    font-weight: bold;
}

/*********************************************************************************
*** Section contenu principal
**********************************************************************************/
#mainContent {
    position: absolute;
    left: 420px;
}

#mainContent section {
    margin: 0 20px 0 50px;
    flex-direction: column;
    align-items: center;
}

/*********************************************************************************
*** Section Description
**********************************************************************************/
#Description {
    transition: all 0.2s 0.2s;
}

#descriptionTexte p {
    letter-spacing: 0.1vw;
    line-height: 1.5vw;
    margin: 3vw auto;
}

/*********************************************************************************
*** Section Réalisations
**********************************************************************************/
#Realisations {
    transition: all 0.2s 0.2s;
}

#Realisations .contentProjet {
    display: flex;
    align-items: center;
}

#Realisations .contentProjet p {
    flex-basis: 40%;
    margin: 1vw auto;
}

#Realisations a:hover {
    box-shadow: 0 0 20px 10px #003a44;
}

.imgProjet {
    width: 25vw;
    height: 15vw;
}

/*********************************************************************************
*** Section Compétences
**********************************************************************************/
#Competences {
    transition: all 0.2s 0.2s;
}

#Competences article {
    width: 100%;
}

#Competences .imgCompetences {
    width: 4vw;
}
#Competences h3 {
    text-transform: uppercase;
}

#sectionCompetencesDev {
    margin-bottom: 50px;
}

.logoCompetences {
    width: 35vw;
    margin: auto;
}

.logoCompetences .imgCompetences {
    margin: 0 1vw;
    vertical-align: middle;
}

.competencesList {
    display: flex;
}

.competencesList p {
    flex-basis: 50%;
}

#sectionCompetencesAutre > div div {
    display: flex;
}

#sectionCompetencesAutre p {
    text-indent: 0;
}

#sectionCompetencesAutre img {
    margin-right: 1vw;
}

/*********************************************************************************
*** Section Formations
**********************************************************************************/
#Formations {
    transition: all 0.2s 0.2s;
}

#Formations .formation {
    display: flex;
    justify-content: space-between;
}

#Formations article {
    width: 100%;
    margin: 35px 0;
}

#Formations .contentTitle {
    margin-bottom: 20px;
    flex-basis: 22%;
}

#Formations .contentTitle h3 {
    margin: auto;
}

#Formations p {
    flex-basis: 60%;
    margin: auto;
}

/*********************************************************************************
*** Section Expériences
**********************************************************************************/
#Experiences {
    transition: all 0.2s 0.2s;
}

.experience {
    margin-bottom: 2vw;
}

.logoExperience {
    height: 4.5vw;
}

#Experiences #scottoLien {
    display: flex;
}

#Experiences #scottoLien p {
    width: 31vw;
}

#Experiences #scotto img {
    margin-left: 1vw;
}

/*********************************************************************************
*** Section Animations
**********************************************************************************/

/**** Mise en perspective de la barre latérale **********************************/
#leftBar.perspective {
    transform: perspective(400px) rotateY(-10deg);
}

/**** Glissement latéral ********************************************************/
.slideLeft {
    transform: translate(-100%, 0) !important;
}

/**** Glissement latéral visible ********************************************************/
.slideLeftVisible {
    transform: translate(0, 0) !important;
}

.slideNav {
    transform: translate(5%, 0);
}

/**** Rotation ********************************************************/
.rotation {
    transform: rotate(45deg);
}

/**** Apparition par fondu ********************************************************/
.displayFade {
    animation: myfadeIn linear 0.5s;
}

@keyframes myfadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


@media screen and (max-width: 992px ) {
    h4 {
        font-size: 5vw;
    }
    h3 {
        font-size: 4vw;
    }

    h2 {
        font-size: 6.5vw;
    }

    p,strong {
        font-size: 5.5vw;
    }

    #btnResp {
        display: block;
        position: fixed;
        z-index: 2;
        font-size: 15vw;
    }

    #btnResp i:hover {
        cursor: pointer;
    }

    /********************************************************************************
    *** Section Barre latérale
    *********************************************************************************/
    #leftBar {
        width: 85%;
        height: 100vh;
        transform: translate(-100%, 0);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    /* Conteneur scrollable pour le contenu de la leftBar */
    #leftBar .scrollable-content {
        flex: 1;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 20px;
        min-height: 0;
        max-height: 100vh;
        height: 100%;
    }
    
    /* Forcer le scroll sur mobile */
    @media screen and (max-width: 992px) {
        #leftBar .scrollable-content {
            overflow-y: scroll !important;
        }
        
        /* Empêcher le scroll de la page quand la leftBar est ouverte */
        body.leftbar-open {
            overflow: hidden;
        }
        
        /* Ajuster les titres h3 dans la leftBar */
        h3 {
            font-size: 6vw;
        }
        
        /* Ajuster la section coordonnées dans la leftBar responsive */
        #leftBar #coord {
            padding-left: 0;
            margin-top: 20px;
            text-align: center;
        }
        
        #leftBar #coord #coordIcone {
            font-size: 6vw;
            margin: 10px auto;
        }
        
        #leftBar #coord #coordIcone a {
            margin-right: 2vw;
        }
        
        /* Forcer l'adaptation de tous les éléments dans la leftBar */
        #leftBar .scrollable-content * {
            box-sizing: border-box;
        }

        .thm {
            display: none;
        }
    }

    /*******  Section présentation ***************************************/
    h1 {
        font-size: 70px;
        margin: 25px auto;
    }

    #presentation p {
        font-size: 50px;
    }

    /*******  Section ma photo *****************************************/
    #maPhoto {
        width: 40%;
    }

    /*******  Section navigation *****************************************/
    #leftBar ul {
        margin-bottom: 20px;
    }

    .lien {
        font-size: 50px;
        height: 70px;
    }

    #leftBar .lien a:hover {
        font-size: 20px;
    }

    /*******  Section coordonnées *********************************************/
    #leftBar #coord p {
        margin: 20px 0;
    }

    #coord #coordIcone {
        font-size: 8vw;
    }

    #coord #coordIcone a {
        margin-right: 3.5vw;
    }

    /*******  Section Bouton CV *********************************************/
    #monCv {
        margin: 0 auto;
    }

    #monCv bouton {
        padding: 1.8vw;
        border-radius: 30px;
    }

    #monCv bouton:hover {
        box-shadow: 0 0 8px 4px #74ffff;
    }

    #monCv bouton a {
        font-size: 4vw;
    }

    /*********************************************************************************
*** Section contenu principal
**********************************************************************************/
    #mainContent {
        position: absolute;
        left: 12vw;
    }

    #mainContent section {
        margin-right: 30px;
    }

    /*********************************************************************************
    *** Section Description
    **********************************************************************************/
    #descriptionTexte p {
        letter-spacing: 0;
        line-height: 7vw;
        margin: 0;
    }

    /*********************************************************************************
    *** Section Compétence
    **********************************************************************************/
    .competencesList {
        flex-direction: column-reverse;
    }

    #sectionCompetencesAutre > div div {
        flex-direction: column;
        align-items: center;
    }

    .logoCompetences {
        display: flex;
        align-items: center;
        justify-content: space-around;
        flex-wrap: wrap;
        width: 85vw;
        margin: auto;
    }

    #Competences .imgCompetences {
        width: 9vw;

    }

    #Competences #sectionCompetencesAutre img {
        width: 20vw;
    }

    /*********************************************************************************
    *** Section Realisation
    **********************************************************************************/
    #Realisations .projet .contentProjet {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }

    #Realisations .projet {
        margin-bottom: 15vw;
    }

    /*********************************************************************************
    *** Section Formation
    **********************************************************************************/
    #Formations .formation {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 10vw;
    }

    #Formations .contentTitle {
        margin-bottom: 20px;
        display: flex;
        align-items: center;
    }

    #Formations .formation img {
        width: 20vw;
        margin: 0 3vw 1vw 0;
    }

    .periode {
        font-size: 3vw;
    }

    /*********************************************************************************
    *** Section Experience
    **********************************************************************************/
    .experience {
        margin-bottom: 15vw;
    }

    .imgProjet {
        width: 60vw;
        height: 25vw;
    }

    #Experiences #scottoLien {
        display: flex;
        flex-direction: column;
    }

    #Experiences #scottoLien p {
        margin-bottom: 0;
        width: 100%;
    }

    #Experiences #scotto #scottoLien img {
        width: 13vw;
    }

    /*!**** Mise en perspective de la barre latérale **********************************!*/
    #leftBar.perspective {
       transform: perspective(800px) rotateX(10deg);
    }
}