/*STYLES GENERAUX*/
* {
    font-family: Avenir, sans-serif;
    padding: 0px;
    margin: 0px;
    text-align: justify;
    box-sizing: border-box;
}

body {
    background: #bbb;
}

p {
    font-size: 1em;
    line-height: 1.5em;
}

a {
    font-size: 1em;
    text-decoration: none;
    color: #000;
}


/*====================*/
/*HEADER & FOOTER*/
header, footer {
    width: 100%;
    padding: 20px 0px;
    /*background: #000;*/
    background: url("./img/cv-cover.jpg") #130066;
    box-shadow: 0px 0px 15px #333;
}

header {
    border-bottom: 2px solid #fff;
    height: 120px;
}

    header h1 {
        color: white;
        font-size: 1.5em;
        width: 90%;
        margin: 0 auto;
    }

footer {
    border-top: 2px solid #fff;
}

    footer p {
        width: 90%;
        margin: 0 auto;
        color: #fff;
        text-align: center;
    }

    footer a {
        color: #fff;
    }


/*SECTIONS*/
section {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    width: 100%;
    padding-bottom: 20px;
    margin: 20px auto;
    box-shadow: 0px 0px 10px #bbb;
    background-color: #ffffff;
    max-width: 60vw;
}

    section h2 {
        margin: 20px 0;
        width: 90%;
    }

    section > div {
        width: 90%;
    }

.cvmain {
    border-bottom: 2px dashed #ccc;
}

    .cvmain h1 {
        font-family: 'Times New Roman', sans-serif;
        font-size: 3.5em;
        text-align: center;
    }

    .cvmain h2 {
        font-family: 'Times New Roman', sans-serif;
        font-size: 1.5em;
        text-align: left;
        font-weight: bold;
    }

.cvexp {
    display: flex;
    flex-flow: row wrap;
    border-bottom: 1px solid #bbb;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.cvexp-info {
    display: flex;
    flex-flow: column wrap;
}

.cvexp-logo {
    flex: 0 0 25%;
    /*max-width: 100px;*/
}

.cvexp-info {
    flex: 0 0 60%;
    margin-left: auto;
}

.cvexp img {
    /*width: 150%;*/
}

.cvexp h3 {
    font-size: 1.2em;
}

.cvexp h4 {
    font-size: 1em;
    font-weight: normal;
}

.cvexp p {
    font-size: 1em;
    line-height: 1.5em;
    text-align: left;
}


/*SECTION INFOS*/
.photo {
    text-align: center;
}

.photo img {
    width: 150px;
    height: 150px;
    border: 3px solid #fff;
    box-shadow: 0px 0px 10px #777;
    border-radius: 50%;
    margin-top: -100px;
}

.prez {
    border-bottom: 2px dashed #ccc;
}

    .prez a {
        display: block;
        text-align: center;
        padding: 10px;
        margin: 10px auto 30px auto;
        color: #000;
        background-color: #1e5f78;
        box-shadow: 0px 0px 10px #ccc;
        border-radius: 5px;
    }

.contact-flex {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

    .contact-flex p:first-child {
        flex: 0 0 40%;
    }

    .contact-flex p:last-child {
        flex: 0 0 60%;
    }

.social {
    display: flex;
    justify-content: space-around;
    margin: 10px auto 0px auto;
}

    .social img {
        width: 40px;
        height: 40px;
    }

/*SECTION EXP ET FORMATION*/

.exp {
    display: flex;
    flex-flow: row wrap;
    border-bottom: 1px solid #bbb;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.exp-info {
    display: flex;
    flex-flow: column wrap;
}

.exp-logo {
    flex: 0 0 40%;
    max-width: 100px;
}

.exp-info {
    flex: 0 0 60%;
    margin-left: auto;
}

.exp img {
    width: 100%;
}

.exp p2 {
    font-size: 1.2em;
    margin-top: -80px;
}

    .exp p2 ul {
        font-size: 1.0em;
        list-style: square;
        padding-left: 100px;
    }

        .exp p2 ul ul {
            font-size: 1.0em;
            list-style: disc;
            padding-left: 50px;
        }


.exp h3 {
    font-size: 1.2em;
}

.exp h4 {
    font-size: 1em;
    font-weight: normal;
}

/*SECTION COMPETENCES*/
.h3gauche {
    width: 90%;
}

.comp {
    display: flex;
    flex-flow: row wrap;
    margin-bottom: 10px;
}

    .comp p {
        flex: 0 0 40%;
    }

.conteneur-barre {
    flex: 0 0 60%;
    border-radius: 5px;
    background-color: grey;
    border-bottom: 1px ridge grey;
}

.barre {
    display: block;
    height: 100%;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.c85 {
    width: 85%;
    background-color: #8B8;
}

.c90 {
    width: 90%;
    background-color: #4B8;
}

.c95 {
    width: 95%;
    background-color: #4B8;
}

.c100 {
    width: 100%;
    background-color: #4B8;
    border-radius: 5px;
}

.comp2 {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.conteneur-barre2 {
    flex: 0 0 100%;
    height: 0.5em;
    margin-bottom: 0.25em;
    border-radius: 5px;
    background-color: grey;
}

/*SECTION INTERETS*/
.interet {
    flex: 0 1 50%;
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    margin-bottom: 20px;
}

    .interet img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        box-shadow: 0px 0px 15px #555;
    }

/*VERSION BUREAU DU CV*/
@media screen and (min-width: 980px) {
    section {
        width: 80%;
        box-shadow: 0px 0px 10px #bbb;
    }

    a:hover {
        color: #EA0;
    }

    header h1 {
        width: 80%;
    }

    .prez, .contact {
        flex: 0 0 25%;
    }

    .prez {
        border-bottom: none;
        border-right: 2px solid #ff0000;
        padding-right: 25px;
        margin-left: auto;
    }

    .contact {
        padding-left: 20px;
        margin-right: auto;
    }

    .prez a {
        border: 2px solid transparent;
    }

        .prez a:hover {
            color: #f28835;
            background-color: #fff;
            border: 2px solid #f28835;
            box-shadow: 0px 0px 20px #666;
        }

    .exp-logo {
        flex: 0 0 10%;
    }

    /* Trois valeurs : flex-grow | flex-shrink | flex-basis */
    .exp-info, .exp-desc {
        flex: 0 0 85%;
        margin-left: auto;
    }


    .interet {
        flex: 0 1 25%;
    }
}
