* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 62.5%;
}

/* POLICES UTILISEES // Specify in CSS :

font-family: 'Overpass Mono', monospace;
font-family: 'Comfortaa', cursive;
font-family: 'Montserrat', sans-serif; */

/* définition des élément par défaut */

body {
    background-color: #fff;
    margin: 0;
    padding: 0;
    font-family: 'Comfortaa', cursive;
    overflow: hidden;
    /* enlever le scroll */
}

/* Style des liens */

a {
    color: rgb(22, 24, 104);
}

a:hover {
    color: rgb(255, 0, 179);
    text-decoration: none;
}

/* Style des listes */

ul, li {
    list-style: none;
}





/* Arrêter le flottement ... class à placer sur le contenant des objets qui flottent */

.clearfix:after {
    content: "";
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}

/* flottement à droite */

.floatRight {
    float: right;
}

/* flottement à gauche */

.floatLeft {
    float: left;
}

/* PARTIE GAUCHE */

#EnAvant {
    background-color: rgb(22, 24, 104);
    width: 50%;
    height: 100vh;
    display: inline-block;
    color: #fff;
    padding: 50px;
    position: relative;
}

#EnAvant h2 {
    z-index: 1;
    position: fixed;
    top: 45%;
    right: 53%;
    text-align: center;
    margin: 0 auto;
}

#EnAvant h2 span {
    font-size: 2rem;
}

#Apropos {
    position: fixed;
    width: 33%;
    bottom: 10%;
    font-family: 'Overpass Mono', monospace;
    font-size: 1.3rem;
    text-justify: distribute;
}

#triangleBlanc{
    width: 400px;
    height: 400px;
    background-image: url('../images/Triangle-blanc.svg');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    opacity: 0.2;
    left:25%;
    top: 10%;

}

#triangleBleu{
    width: 350px;
    height: 350px;
    background-image: url('../images/Triangle-rose.svg');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    opacity: 0.2;
    left:25%;
    top: 10%;
}

.translate{
    animation: translate 5s linear 1;
    -webkit-animation: translate 5s linear 1;
}

@keyframes translate{
   0%{
       opacity: 0;
       left: -50%;
       top: -50%;

} 

    50%{
       opacity: 0.7;
       left: 5%;
       top: 0;
  
   } 

   100%{
       opacity: 0.15;
       left:25%;
       top: 10%;
   }
}


/* PARTIE DROITE */

#content {
    width: 50%;
    display: inline-block;
    position: absolute;
    margin: 0;
    padding: 0;
}

header {
    text-align: right;
    position: absolute;
    top: 0;
    right: 0;
    color: rgb(22, 24, 104);
    width: 100%;
}

/* Carte de visite */

#identite {
    position: absolute;
    width: 80%;
    border-bottom: rgb(22, 24, 104) solid 1px;
    top: 0;
    right: 0;
    padding: 0 40px;
}

#identite img {
    position: absolute;
    border-radius: 100%;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    -o-border-radius: 100%;
    border: rgb(22, 24, 104) solid 5px;
    left: 10px;
    bottom: -20px;
}

#identite h1 {
    font-size: 2.7rem;
    margin-bottom: 10px;
}

#identite h2 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 20px;
}

#identite p {
    margin: 0;
}

address {
    margin-bottom: 0px;
}

/* Menu de Navigation */

nav {
    width: 50%;
    position: absolute;
    right: 0;
    top: 40vh;
}

nav li {
    border-bottom: rgb(22, 24, 104) 1px solid;
    padding: 20px 40px 0 15px;
}

/* CONTENU = Ce qui s'affiche lorsqu'on clic sur le menu */

.contenu {
    background-color: #fff;
    position: fixed;
    left: 100%;
    top: 0;
    width: 50%;
    height: 100vh;
    padding: 50px;
    /* Scrolling */
    overflow: auto;
    transition: left 0.5s ease-out 0s;
    -webkit-transition: left 0.5s ease-out 0s;
    -moz-transition: left 0.5s ease-out 0s;
    -ms-transition: left 0.5s ease-out 0s;
    -o-transition: left 0.5s ease-out 0s;
    z-index: 1;
}

/* Class à rajouter au body pour faire apparaitre le contenu quand on clic */

.experiences-open #experiences, .formation-open #formation, .logiciels-open #logiciels, .sports-open #sports, .references-open #references, .portfolio-page-open #portfolio-page,
.mentions-open #mentions {
    left: 50%;
}

.contenu h2{
    color: rgb(22, 24, 104);
}

.contenu h3 {
    color: rgb(255, 0, 179);
    margin: 50px 0 10px 0;
    font-size: 2rem;
}

.contenu li {
    list-style: disc;
}

/* JQUERY dans JAVASCRIPT */

/* CONTENU  = Ce qui s'affiche lorsqu'on clic sur le menu EXPERIENCES */

#freelance {
    margin: 25px 0;
    padding: 15px;
    background-color: rgb(221, 221, 221);
    box-shadow: #000 2px 2px 8px;
    text-align: center;
}

#freelance h3 {
    margin: 0 0 10px 0;
}

#freelance p{
    color: rgb(22, 24, 104);
}

#freelance img {
    margin-top: 10px;
}

#imprimerie h3, #diacom h3 {
    margin: 50px 0 0 0;
}

#imprimerie span, #diacom span {
    font-style: italic;
}

/* CONTENU  = Ce qui s'affiche lorsqu'on clic sur le menu LOGICIELS */

#adobe img {
    width: 25%;
    float: left;
    margin: 0 2.5%;
}

#adobe ul {
    width: 70%;
    float: left;
}

/* CONTENU  = Ce qui s'affiche lorsqu'on clic sur le menu SPORTS & LOISIRS */

#sports ul {
    padding-top: 50px;
}

/* CONTENU  = Ce qui s'affiche lorsqu'on clic sur le menu REFERENCES */

#references h3 {
    margin: 20px 0 5px 0;
}

#references ul {
    margin-bottom: 30px;
}

/* Boutons de fermeture des fenêtres de contenu */

#experiences-close-btn, #formation-close-btn, #logiciels-close-btn, #sports-close-btn, #references-close-btn, #portfolio-page-close-btn, #mentions-close-btn {
    position: absolute;
    top: 25px;
    right: 50px;
    color: rgb(22, 24, 104);
    font-size: 3rem;
}

#experiences-close-btn:hover, #formation-close-btn:hover, #logiciels-close-btn:hover, #sports-close-btn:hover, #references-close-btn:hover, #portfolio-page-close-btn:hover,
#mentions-close-btn:hover {
    color: rgb(255, 0, 179);
}

/* Changement des couleurs de picto */

.changecolor{
    animation: changecolor 8s ease-in-out 0s infinite;
    -webkit-animation: changecolor 8s ease-in-out 0s infinite;
}

.experience-changecolor{
    animation: changecolor 8s ease-in-out 0s infinite;
    -webkit-animation: changecolor 8s ease-in-out 0s infinite;
}

.formation-changecolor{
    animation: changecolor 8s ease-in-out 0.5s infinite;
    -webkit-animation: changecolor 8s ease-in-out 0.5s infinite;
}

.logiciels-changecolor{
    animation: changecolor 8s ease-in-out 1s infinite;
    -webkit-animation: changecolor 8s ease-in-out 1s infinite;
}

.sports-changecolor{
    animation: changecolor 8s ease-in-out 1.5s infinite;
    -webkit-animation: changecolor 8s ease-in-out 1.5s infinite;
}
.portfolio-changecolor{
    animation: changecolor 8s ease-in-out 2s infinite;
    -webkit-animation: changecolor 8s ease-in-out 2s infinite;
}
.references-changecolor{
    animation: changecolor 8s ease-in-out 2.5s infinite;
    -webkit-animation: changecolor 8s ease-in-out 2.5s infinite;
}



@keyframes changecolor{
    0%{
        color: rgb(22, 24, 104);
 }
    50%{
       color: rgb(255, 0, 179);
}
100%{
    color: rgb(22, 24, 104);
}
}
/* ANIMATION dans la page REFERENCES */

#animation {
    position: relative;
}


/* FAncy Box  dans la page Portfolio */

#galerie {
    width: 100%;
    margin: 0 0 50px 0;
}

#galerie a img {
    width: 30%;
    margin: 5px 5px;
}
/* ----------------------- Responsive Design ----------- */

/* Image ronde passe au dessus + titre PY Trouillet devient + petit */

@media screen and (max-width:1199px) {
    #identite img {
        position: relative;
        margin-bottom: 20px;
        margin-right: 5px;
    }
    #identite h1 {
        font-size: 2.3rem;
    }
    nav{
        top: 45vh;
    }
}

/* Les fenêtre de contenu s'ouvrent sur 100% de la largeur au lieu de 50% */
@media screen and (max-width:992px) {
    .contenu {
        width: 100%;
    }
    .experiences-open #experiences, .formation-open #formation, .logiciels-open #logiciels, .sports-open #sports, .references-open #references, .portfolio-page-open #portfolio-page
    .mentions-open #mentions {
        left: 0;
    }
}

@media screen and (max-width:885px) {
    #EnAvant {
        display: block;
        width: 100%;
        padding: 50px 15px;
        height: auto;
    }
    #Apropos {
        width: 80%;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 50px auto 0 auto;
    }
    #EnAvant h2 {
        width: 100%;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin-bottom: 20px;
    }
    #content {
        width: 100%;
        position: relative;
    }
    header {
        text-align: center;
    }
    #identite {
        position: relative;
        width: 50%;
        float: left;
        padding: 0 5px 50px 5px;
    }
    nav {
        float: right;
        width: 40%;
        position: relative;
        top: auto;
        margin-top: 75px;
        text-align: right;
    }
    #identite img {
        position: relative;
        margin: 20px auto 20px auto;
    }

}

@media screen and (max-width:660px) {
    body {
        overflow: auto;
    }
    address {
        font-size: 1.8rem;
    }
    #identite {
        width: 100%;
    }
    nav {
        width: 100%;
        text-align: center;
        margin-bottom: 50px;
        font-size: 2rem;
        text-align: right;
    }
    #Apropos {
        width: 90%;
        font-size: 1.6rem;
    }
    #EnAvant h2 {
        font-size: 1.8rem;
        line-height: 3rem;
    }
    #EnAvant h2 span {
        font-size: 1.6rem;
    }
    .contenu {
        position: fixed;
        padding: 30px;
    }
    .contenu h3 {
        color: rgb(255, 0, 179);
        margin: 50px 0 50px 0;
    }

    #galerie a img {
        width: 48%;
        margin: 5px auto;
    }

    footer{
        display: none;
    }

    
}

/* MENTIONS légales */

footer{
    position: absolute;
    bottom: 5px;
    font-size: 1rem;
    right:50px;
}


