/* GENERICS */
body{ max-width: 1280px; margin: 0 auto 80px auto; padding: 0; background: #282828; font-family: "Avenir Next", sans-serif; }
.pointer{ cursor: pointer; }
h1{
    font-weight: initial;
    margin: 0;
}
h2{
    font-size: 30px;
    font-weight: 600;
    margin: 20px 0;
    position: relative;
}
#sub-container h2 {
    font-size: 40px;
    font-weight: 700;
    color: #343434;
    border-bottom: 3px solid #343434;
}
.main-bg{
    position: relative;
    background: rgba(86,97,151,1);
    background: -moz-radial-gradient(center, ellipse cover, rgba(86,97,151,1) 0%, rgba(86,97,151,1) 20%, rgba(103,115,177,1) 21%, rgba(103,115,177,1) 100%);
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(86,97,151,1)), color-stop(20%, rgba(86,97,151,1)), color-stop(21%, rgba(103,115,177,1)), color-stop(100%, rgba(103,115,177,1)));
    background: -webkit-radial-gradient(center, ellipse cover, rgba(86,97,151,1) 0%, rgba(86,97,151,1) 20%, rgba(103,115,177,1) 21%, rgba(103,115,177,1) 100%);
    background: -o-radial-gradient(center, ellipse cover, rgba(86,97,151,1) 0%, rgba(86,97,151,1) 20%, rgba(103,115,177,1) 21%, rgba(103,115,177,1) 100%);
    background: -ms-radial-gradient(center, ellipse cover, rgba(86,97,151,1) 0%, rgba(86,97,151,1) 20%, rgba(103,115,177,1) 21%, rgba(103,115,177,1) 100%);
    background-size: 6px 6px;
    background-position-x: 3px;
    background-position-y: 3px;
}
.main-bg:before{
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    background: rgba(86,97,151,1);
    background: -moz-radial-gradient(center, ellipse cover, rgba(86,97,151,1) 0%, rgba(86,97,151,1) 20%, rgba(103,115,177,0) 21%, rgba(103,115,177,0) 100%);
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(86,97,151,1)), color-stop(20%, rgba(86,97,151,1)), color-stop(21%, rgba(103,115,177,0)), color-stop(100%, rgba(103,115,177,0)));
    background: -webkit-radial-gradient(center, ellipse cover, rgba(86,97,151,1) 0%, rgba(86,97,151,1) 20%, rgba(103,115,177,0) 21%, rgba(103,115,177,0) 100%);
    background: -o-radial-gradient(center, ellipse cover, rgba(86,97,151,1) 0%, rgba(86,97,151,1) 20%, rgba(103,115,177,0) 21%, rgba(103,115,177,0) 100%);
    background: -ms-radial-gradient(center, ellipse cover, rgba(86,97,151,1) 0%, rgba(86,97,151,1) 20%, rgba(103,115,177,0) 21%, rgba(103,115,177,0) 100%);
    background-size: 6px 6px;
}
.secondary-bg{
    background: rgba(35,36,36,1);
    background: -moz-radial-gradient(center, ellipse cover, rgba(35,36,36,1) 0%, rgba(35,36,36,1) 20%, rgba(50,50,50,1) 21%, rgba(50,50,50,1) 100%);
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(35,36,36,1)), color-stop(20%, rgba(35,36,36,1)), color-stop(21%, rgba(50,50,50,1)), color-stop(100%, rgba(50,50,50,1)));
    background: -webkit-radial-gradient(center, ellipse cover, rgba(35,36,36,1) 0%, rgba(35,36,36,1) 20%, rgba(50,50,50,1) 21%, rgba(50,50,50,1) 100%);
    background: -o-radial-gradient(center, ellipse cover, rgba(35,36,36,1) 0%, rgba(35,36,36,1) 20%, rgba(50,50,50,1) 21%, rgba(50,50,50,1) 100%);
    background: -ms-radial-gradient(center, ellipse cover, rgba(35,36,36,1) 0%, rgba(35,36,36,1) 20%, rgba(50,50,50,1) 21%, rgba(50,50,50,1) 100%);
    background: radial-gradient(ellipse at center, rgba(35,36,36,1) 0%, rgba(35,36,36,1) 20%, rgba(50,50,50,1) 21%, rgba(50,50,50,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#232424', endColorstr='#323232', GradientType=1 );
    background-size: 6px 6px;
}
.secondary-bg:before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: #232424;
    background: -moz-radial-gradient(center, ellipse cover, rgba(35,36,36,1) 0%, rgba(35,36,36,1) 20%, rgba(50,50,50,0) 21%, rgba(50,50,50,0) 100%);
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(35,36,36,1)), color-stop(20%, rgba(35,36,36,1)), color-stop(21%, rgba(50,50,50,0)), color-stop(100%, rgba(50,50,50,0)));
    background: -webkit-radial-gradient(center, ellipse cover, rgba(35,36,36,1) 0%, rgba(35,36,36,1) 20%, rgba(50,50,50,0) 21%, rgba(50,50,50,0) 100%);
    background: -o-radial-gradient(center, ellipse cover, rgba(35,36,36,1) 0%, rgba(35,36,36,1) 20%, rgba(50,50,50,0) 21%, rgba(50,50,50,0) 100%);
    background: -ms-radial-gradient(center, ellipse cover, rgba(35,36,36,1) 0%, rgba(35,36,36,1) 20%, rgba(50,50,50,0) 21%, rgba(50,50,50,0) 100%);
    background: radial-gradient(ellipse at center, rgba(35,36,36,1) 0%, rgba(35,36,36,1) 20%, rgba(50,50,50,0) 21%, rgba(50,50,50,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#232424', endColorstr='#323232', GradientType=1 );
    background-size: 6px 6px;
    background-position-x: 3px;
    background-position-y: 3px;
}
.main-bg span, .secondary-bg span{ position: relative; }
a{ text-decoration: none; }
a:active, a:focus, a:hover{ text-decoration: none; }
/* END GENERICS */

/* CONTAINERS */
#main-container{
    display: grid;
    grid-template-columns: 400px auto;
    grid-template-rows: 80px auto auto auto auto 1fr auto;
    grid-template-areas:
            "header header"
            "me main"
            "scl main"
            "skills main"
            "filler main"
            "filler footer";
}
#sub-container {
    grid-area: main;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto;
    grid-template-areas:
            "experiences"
            "educations";
    height: 100%;
    position: relative;
}
#sub-container:before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: white;
    z-index: -2;
}
/* END CONTAINERS */

/* HEADER */
header{ grid-area: header; background: #282828; height: 80px; position: relative; }
header #languages{ position: absolute; left: 15px; top: 15px; height: 50px; }
header #languages #french{ display: inline-block; border-radius: 100%; width: 50px; height: 50px; margin-right: 20px; background: url('../img/fr_flag.jpg'); background-size: cover; }
header #languages #english{ display: inline-block; border-radius: 100%; width: 50px; height: 50px; background: url('../img/en_flag.jpg'); background-size: cover; }
header #search-bar{ position: absolute; right: 15px; top: 15px; height: 50px; width: 50px; border-radius: 25px; overflow: hidden; background: white; transition: width 0.3s; }
header #search-bar:hover{ width: 400px; }
header #search-bar::before{ position: absolute; width: 30px; height: 30px; margin: 10px; content: ''; background: url("../img/icon-search.png") no-repeat; background-size: contain; }
header #search-bar-input{ border: none; height: 40px; width: 350px; margin: 5px 15px 5px 40px; padding: 5px 10px; font-size: 20px; font-weight: 100; }
header #search-bar-input::placeholder{ color: black; font-weight: 100; }
header #search-bar-input:focus, header #search-bar-input:active{ outline:0; }
/* END HEADER */

/* ME */
#me{
    grid-area: me;
    position: relative;
    font-family: 'Bebas Neue', cursive;
    color: #fff;
}
#me #name{
    position: relative;
    padding: 30px 0 0 30px;
    font-size: 100px;
    line-height: 85px;

}
#me #job{
    position: relative;
    padding: 0 0 0 30px;
    margin: 0;
    font-size: 45px;
    font-weight: initial;
}
#me #picture{
    position: relative;
    margin: 50px auto -115px auto;
    width: 230px; height: 230px;
    background: linear-gradient(to bottom, #ffffff 0%, #6773b1 100%);
    border-radius: 100%;
    z-index: 3;
    transform: rotate(2deg);
}
#me #picture:before{
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    background: url("../img/antoine.jpg");
    background-size: cover;
    border-radius: inherit;
    z-index: 5;
}
/* END ME */

/* SUMMARY-CONTACT */
#summary-contact-links{
    grid-area: scl;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    padding-top: 120px;
    padding-bottom: 30px;
    margin-right: -30px;
    color: #dadada;
}
#summary-contact-links:after{
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    bottom: -30px;
    border: 30px solid transparent;
    border-left-color: #222221;
    z-index: -1;
}
#summary-contact-links #summary{
    padding: 30px 30px 30px 30px;
    font-size: 20px;
    line-height: 28px;
    position: relative;
    text-align: justify;
}
#summary-contact-links .contact{
    line-height: 25px;
    min-height: 25px;
    font-size: 18px;
    margin: 0 20px 15px 40px;
    padding-left: 40px;
    position: relative;
    word-break: break-all;
}
#summary-contact-links .contact.icon:before{
    content: '';
    position: absolute;
    width: 20px;
    height: 25px;
    top: -1px;
    left: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(0.9);
}
#summary-contact-links .icon-mail:before{ background: url("../img/icon-mail.png"); filter: invert(1); }
#summary-contact-links .icon-phone:before{ background: url("../img/icon-phone.png"); }
#summary-contact-links .icon-here:before{ background: url("../img/icon-here.png"); }
#summary-contact-links .icon-cake:before{ background: url("../img/icon-cake.png"); margin-top: -2px; }

#summary-contact-links #links{
    display: flex;
    margin: 0 30px;
}
#summary-contact-links #links .link{
    flex-grow: 1;
    filter: invert(1);
    transition: transform 0.5s;
}
#summary-contact-links #links .link:before{
    content: "";
    display: block;
    padding-top: 100%;
}
#summary-contact-links #links #link-gh{
    background: url('../img/logo-github.png') center center no-repeat;
    background-size: 50px 50px;
}
#summary-contact-links #links #link-so{
    background: url('../img/logo-stackoverflow.png') center center no-repeat;
    background-size: 50px 50px;
}
#summary-contact-links #links #link-v{
    background: url('../img/logo-vimeo.png') center center no-repeat;
    background-size: 50px 50px;
}

#summary-contact-links #links .link:hover{
    transform: scale(1.1);
}
/* END CONTACT-LINKS */

/* SKILLS */
#skills{
    grid-area: skills;
    position: relative;
    color: #fff;
    padding: 20px 40px;
}
#skills .skill{
    position: relative;
    height: 32px;
    line-height: 32px;
    font-size: 20px;
    font-weight: 500;
}
#skills .skill .skill-bar{
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50%;
    transform: translateY(-50%);
    height: 9px;
    background: white;
}
progress::-webkit-progress-bar {
    width: 100%;
    margin:0;
    background-color: #343434;
    border-radius: 0;
}
progress::-webkit-progress-value {
    background: white;
}
/* END SKILLS */

#filler{
    grid-area: filler;
    align-self: stretch;
    height: 100%;
}

/* EXPERIENCES */
#experiences{
    padding: 40px 60px 0 60px;
    grid-area: experiences;
    font-family: 'Montserrat', sans-serif;
}
.experience{
    position: relative;
    margin-bottom: 35px;
}
.experience .experience-place {
    position: relative;
    text-align: left;
    font-weight: normal;
    font-size: 25px;
    color: white;
    border-radius: 4px;
    overflow: hidden;
    padding: 5px 15px;
}
.experience .experience-place .time {
    float: right;
}
.experience .experience-data {
    display: flex;
    position: relative;
    color: white;
    border-radius: 4px;
    margin-top: 10px;
}
.experience .experience-title{
    line-height: 33px;
    height: 33px;
    font-size: 25px;
    font-weight: 700;
    overflow: hidden;
    border-radius: 4px;
    padding: 0 5px 0 15px;
    margin-right: 5px;
    flex-grow: 2;
}
.experience-technology{
    text-align: left;
    line-height: 33px;
}
.experience-technology span{
    padding: 7px 10px;
    border-radius: 4px;
    background: gray;
    margin-left: 5px;
}
.experience-technology .git{ background: black; }
.experience-technology .html{ background: #e54c21; }
.experience-technology .css{ background: #2a65f3; }
.experience-technology .php{ background: #777bb4; }
.experience-technology .js{ background: #d4b830; }
.experience-technology .git{ background: black; }
.experience-technology .java{ background: #ea2d2d; }
.experience-technology .swift{ background: #f15035; }
.experience .experience-description {
    font-weight: normal;
    font-size: 18px;
    line-height: 26px;
    margin-top: 10px;
    color: #6d6e71;
}
.experience .experience-description a{
    color: #6d6e71;
    text-decoration: underline;
}
.experience .experience-description ul{
    margin-top: 5px;
}
.experience .experience-description .small-margin{
    margin-top: 5px;
}
/* END EXPERIENCES */

/* EDUCATION */
#educations{
    padding: 0 60px 0 60px;
    grid-area: educations;
    font-family: 'Montserrat', sans-serif;
}
.education{
    position: relative;
    margin-bottom: 20px;
}
.education .education-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    text-align: center;
    font-weight: normal;
    font-size: 25px;
    min-height: 30px;
    color: white;
    border-radius: 4px;
    overflow: hidden;
}
.education .education-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    min-height: 30px;
    color: #292929;
    margin-left: 130px;
}
/* END EDUCATION */

footer{
    background: white;
    grid-area: footer;
    padding-bottom: 30px;
}

@media (max-width:1150px) {
    #main-container{
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: 80px auto auto auto auto;
        grid-template-areas:
                "header header"
                "me skills"
                "scl skills"
                "main main"
                "footer footer";
    }

    #summary-contact-links{
        margin-right: 0;
    }
    #summary-contact-links:after{
        display: none;
    }

    footer #desk{
        margin: 50px auto;
    }
}

@media (max-width:850px) {
    #main-container{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 80px auto auto auto auto;
        grid-template-areas:
                "header"
                "me"
                "scl"
                "skills"
                "main"
                "footer";
    }

    #skills{
        padding-bottom: 40px;
    }

    footer{
        min-height: 300px;
    }

    footer #desk{
        position: absolute;
        margin: 50px auto;
        left: 50%;
        transform: scale(1) translateX(-50%);
    }

    #experiences, #educations{
        padding: 0 20px;
    }

    #summary-contact-links:after{
        display: none;
    }

    #summary-contact-links{
        margin-right: 0;
    }

    header #search-bar:hover {
        width: 345px;
    }
}

@media (max-width:620px) {
    footer #desk{
        transform: translateX(-50%) scale(0.48);
    }
}


@media (max-width:700px) {

    #experiences, #educations{
        padding: 0 10px;
    }

    .experience .experience-data{
        display: block;
    }

    .experience .experience-title{
        margin-right: 0;
    }

    .experience-technology{
        margin-top: 10px;
        text-align: right;
    }
}