
/*--------------*/
/* PRESENTATION */
/*--------------*/

#home-center{
    width:92%;
    margin: auto;
    padding:8px 0 50px 0;
    font-size: 16px;
}

/*-- GREEN BLOCK --*/

#section-presentation {
    position: relative;
    padding:27px 35px;
    /*background-color:#6C8374;*/
    background: linear-gradient(to top left, #617568, #6C8374 70%);
    box-shadow: 2px 2px 2px black;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
}

.profil-column{
    width: 300px;
}
.profil-column:first-of-type{
    margin-right: 78px;
}
.column-short{
    width: 160px;
}

.profil-title{
    font-size: 24px;
    font-weight: bold;
}
.presentation-text{
    margin-top: 10px;
    padding-left: 47px;
}

.profil-subtitle{
    font-size: 19px;
    font-weight: bold;
}
.presentation-subtext{
    display: flex;
    align-items: center;
    margin-top: 7px;
}
.presentation-subtext img{
    width:24px;
    height:24px;
    margin-right: 12px;
}

/*-- CV --*/

.profil-cv{
    position:absolute;
    right:35px;
    top:28px;
    width:71px;
    height:100px;
}
#cv-img{
    position:absolute;
    top:0;
    left:0;
    transition: all 0.2s linear;
    box-shadow: 1px 0 3px black;
}
.cv-legend{
    position: absolute;
    z-index: 6;
    background: linear-gradient(to top left, #8c2727, #b95555);
    border-radius: 0 0 3px 3px;
    top:35px;
    left:-2px;
    right:-2px;
    height:67px;
    line-height: 67px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #e3e3e3;
    transition: all 0.2s linear;
    box-shadow: 1px 1px 4px black;
}
.cv-cover{
    position: absolute;
    left:0;
    top:0;
    right:0;
    bottom:0;
    width:71px;
    height:100px;
    background-color: rgba(0,0,0,0.2);
    z-index: 5;
    transition: all 0.2s linear;
}
#icon-view{
    position: absolute;
    z-index: 6;
    top:0;
    left:0;
    right:0;
    margin:auto;
    transition: all 0.2s linear;
    opacity:0;
}

.profil-cv:hover #cv-img{
    top:-14px;
}
.profil-cv:hover .cv-cover{
    background-color: rgba(0,0,0,0.5);
    top:-14px;
}
.profil-cv:hover #icon-view{
    opacity:1;
}

/*-- BETWEEN BLOCKS --*/

.hr-text-block{margin:20px auto 25px auto;}

#historique{
    margin: 25px 0 20px 0;
}

/*-- BLUE BLOCK --*/

.home-row{
    display: flex;
    justify-content: space-between;
}

#competences{
    /*background-color:#708895;*/
    background: linear-gradient(to top left, #5a6c75, #708895 70%);
    box-shadow: 2px 2px 2px black;
    padding:14px 12px 25px 20px;
    margin-bottom: 27px;
}

#skills-title{
    color:black;
    font-size:22px;
    font-weight:bold;
    line-height:40px;
    width:200px;
    border-bottom: 2px black solid;
}
.skills-icon{position:relative;top:5px;margin-right: 9px;}

.skills-row{
    display: flex;
    justify-content: space-between;
}

.skill-column{
    margin-top:12px;
    width:245px;
}
.skill-column:first-of-type{
    width: 230px;
}

.skill-column-title{
    display: flex;
    align-items: center;
    font-size:22px;
    font-weight:bold;
    margin: 15px 0 4px 0;
}
.skill-column-title img{margin-right: 12px;}

.xp-line{
    display: flex;
    align-items: center;
    margin-bottom:25px;
    padding-left: 8px;
}

.xp-container{
    background-color:white;
    width:160px;
    height:5px;
    margin-left: 21px;
    margin-top: 5px;
}

@keyframes xpinte {
    from {width:0px;}
    to {width:150px;}
}

@keyframes xpdev {
    from {width:0px;}
    to {width:145px;}
}

.xp-inte{
    background-color:#2176A7;
    width:150px;
    height:5px;
    animation-name: xpinte;
    animation-duration: 2s;
}

.xp-dev{
    background-color:#2176A7;
    width:145px;
    height:5px;
    animation-name: xpdev;
    animation-duration: 2s;
}

.skill-line {
    display: flex;
    align-items: center;
    height:35px;
    margin-bottom:5px;
}
.skill-line img {
    width:30px;
    margin-right:10px;
}
.icon-right{
    margin-left: 9px;
    margin-right: 0;
}

/*-- ORANGE BLOCK --*/

#section-realisations{
    /*background-color:#BF7855;*/
    background: linear-gradient(to top left, #88563d, #BF7855 70%);
    box-shadow: 2px 2px 2px black;
    padding:14px 20px 0 20px;
    width:345px;
    margin-bottom: 27px;
}

#realisations-title{
    color:black;
    font-size:22px;
    font-weight:bold;
    line-height:40px;
    width:260px;
    border-bottom: 2px black solid;
}

/* SLIDER */

#realisations-slider{
    position:relative;
    height:280px;
    width:100%;
    margin: 35px auto;
}

.slide{
    height:148px;
    width:290px;
    position:absolute;
    top:40px;
    right:0;
    left:0;
    margin: auto;
    border:2px white solid;
    box-shadow: 1px 1px 4px black;
    cursor:pointer;
}
#dot2,#dot3{opacity:0;}
#dot1{background: url('/img/site/homepage/lokisalle_small.jpg') no-repeat;}
#dot2{background: url('/img/site/homepage/myconfig_small.jpg') no-repeat;}
#dot3{background: url('/img/site/homepage/duridoir_small.jpg') no-repeat;}

#button-block{
    position:absolute;
    bottom:7px;
    text-align: center;
    width: 100%;
}

.button{
    display:inline-block;
    margin: 0 5px;
    border-radius: 20px;
    width:20px;
    height:20px;
    background-color: black;
    cursor: pointer;
    transition: all 0.2s linear;
}
.active{background-color: white;}

#text2,#text3{
    opacity:0;
}

#zone-text{
    position:absolute;
    margin: auto;
    width:100%;
    left:0;
    top:0;
    color:white;
    text-align: center;
    font-weight: bold;
    font-size:20px;
}
.slider-text{
    position:absolute;
    text-align: center;
    width:100%;
}

#slider-legend{
    position:absolute;
    text-align: center;
    bottom:50px;
    right:0;
    left:0;
    margin: auto;
    font-size:16px;
}

/*-- BETWEEN LAST BLOCKS --*/

.hr-block-text{margin:0 auto 20px auto;}
#recherche{margin: 20px auto;}

/*-- LAST NEW BLOCK --*/

#section-application{
    background: linear-gradient(to top left, #4a607c, #b27575);
    /*background: linear-gradient(to top left, #3e6b4f, #678673);*/
    /*background: linear-gradient(to top left, #5e3b2d, #915945);*/
    /*background: #87523f;;*/
    box-shadow: 2px 2px 2px black;
    padding:14px 20px 25px 20px;
}

#application-title{
    color:black;
    font-size:22px;
    font-weight:bold;
    line-height:40px;
    width:320px;
    border-bottom: 2px black solid;
}

.application-row{
    display: flex;
    justify-content: space-between;
}
.application-column{
    width:400px;
}
.application-subtitle{
    font-weight: bold;
    margin-top: 25px;
}
ul{
    margin: 0;
}

.application-icon{
    width:24px;
    margin-right: 1px;
    position:relative;
    top:3px;
}
.application-icon2{
    width:24px;
    margin-right: 5px;
    position:relative;
    top:3px;
}

/*-- RESPONSIVE --*/

@media screen and (max-width: 1100px) {
    #home-center{
        width:98%;
    }
}

@media screen and (max-width: 1000px) {

    /* GREEN BLOCK */
    #section-presentation {
        padding:27px 0 0 20px;
    }
    .profil-column:first-of-type{
        margin-right: 7%;
    }
    .profil-column{
        padding-bottom: 27px;
    }

    /* BLUE & ORANGE BLOCKS*/
    .home-row{
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .skills-row{
        flex-wrap: wrap;
        justify-content: space-around;
    }
    #competences, #section-realisations{
        margin-bottom: 25px;
    }

    /* LAST BLOCK */
    #application-title{width:270px;}
    .application-row{
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .application-subtitle{
        margin-bottom: 5px;
    }
}

@media screen and (max-width: 932px) {
    #section-realisations, #section-application {
        width: 100%;
        max-width: 507px;
    }
    #section-application {margin: auto;}
    #recherche p.flex{justify-content: center;}
}

@media screen and (max-width: 820px) {

    /* GREEN BLOCK */
    #section-presentation {
        width: 100%;
        max-width: 507px;
        margin: auto;
        align-items: start;
        justify-content: space-around;
        padding:27px 10px 0 8px;
    }
    .profil-cv{
        position:relative;
        right:0;
        top:0;
    }
    .profil-column{
        width:auto;
    }

    #historique{
        width: 100%;
        max-width: 507px;
        margin: 25px auto 20px auto;
    }
}

@media screen and (max-width: 500px) {

    #home-center{
        width:100%;
        padding: 0 0 50px 0;
    }
}

@media screen and (max-width: 430px) {

    /* GREEN BLOCK */
    .profil-column:first-of-type {
        width:175px;
        margin-right: 0;
    }
    .profil-title{display: flex;}
    .profil-title img{width:32px;height:30px;position:relative;top:-3px;}
}

@media screen and (max-width: 400px) {

    main{
        padding:10px;
    }

    #historique{
        width:255px;
    }

    /* ORANGE BLOCK */
    #section-realisations{
        width:100%;
        padding:14px 10px 0 10px;
    }
    #realisations-title{margin-left: 10px;}

    /* LAST BLOCK */
    #application-title{width:260px;}
    ul{padding-left: 23px;}
}

@media screen and (max-width: 340px) {

    /* ORANGE BLOCK */
    .slide {
        height: 128px;
        width: 250px;
        background-size: cover!important;
    }
}