/* GENERAL */
body {
    font-family: 'Lato', sans-serif;
    scroll-padding-top: -50px;
}
h1,h2,h3,h4,h5,h6 {
    font-weight: bold;
}
img {
    max-width: 100%;
    height: auto;
}
section {
    padding: 65px 0 80px 0;
}
section .heading {
    text-align: center;
    padding-bottom: 40px;
}
section .heading h2 {
    text-transform: uppercase;
}
.divider {
    width: 100px;
    height: 2px;
    background-color: #3E93C8;
    margin: 0 auto 20px;
}
.divider.white {
    background-color: white;
}
ul {
    list-style: none;
}
.button1 {
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 20px;
}
.button1:hover {
    color:#3E93C8;
}

/* NAVBAR */
.navbar {
    background-color: #3E93C8;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 1px solid white;
}
.navbar-nav {
    margin: 0 auto;
    text-align: center;
}
.nav-link {
    color: white !important;
    margin: 0 6px;
}
.nav-link.active,
.nav-link:hover {
    background-color: white;
    color: #3E93C8 !important;
}

/* ABOUT */
#about {
    background-color: #3E93C8;
}
.profile-picture {
    text-align: center;
    margin : 0px auto 30px;
}
#about .heading h1 {
    color: white;
    text-transform: uppercase;
    margin-bottom: 20px;
}
#meTitle {
    font-size: 50px;
}

/* SKILLS */
#skills .heading h2 {
    color: #3E93C8;
}
#skills .progress {
    height: 45px;
    margin: 30px 20px;
}
#skills progress:last-child {
    margin-bottom: 0px;
}
#skills .progress-bar {
    background-color: #3E93C8;
}
#skills .progress-bar h5 {
    text-shadow: 1px 1px 1px black;
    margin-bottom: 3px;
}
@media (max-width: 768px) {
    #skills .row > div:nth-child(2) {
        margin-top: -30px; 
    }
    #skills .progress {
        margin-top: 15px;
        margin-bottom: 15px;
    }
}
/* EXPERIENCE */
#experiences {
    background-color: #3E93C8;
}
#experiences .heading h2 {
    color: white;
}
.timeline-heading h3 {
    margin-top: 5px;
    font-size: 20px;
}
.timeline-heading h4 {
    color:#3E93C8;
}
.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    padding: 0;
}

.timeline > li {
    width: 90%; 
    margin-bottom: 30px;
    position: relative;
    min-height: 50px; 
}
.timeline-badge {
    color: #3E93C8;
    width: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    background-color: white;
    border-radius: 50%;
    z-index: 10;
}
.timeline-panel-container, 
.timeline-panel-container-inverted {
    margin-left: 60px;
    width: auto;
    float: none;
}
.timeline-panel {
    width: 100%; 
    float: none;
    margin-right: 0;
    margin-left: 0;
    border: 1px solid #d4d4d4;
    border-radius: 7px;
    padding: 15px 20px;
    position: relative;
    box-shadow: 0 1px 6px rgba(0,0,0, 0.175);
    background-color: white;
}
.timeline-panel:after,
.timeline-panel-container-inverted .timeline-panel:after {
    content: none; 
}
/* Media Query pour les grands écrans (tablettes et desktop) */
@media (min-width: 769px) {
    .timeline {
        padding: 30px 0;
        position: relative;
    }
    .timeline:before {
        top : 0;
        bottom: 0;
        position:absolute;
        content: " ";
        width : 5px;
        background-color: #333;
        left: 50%;
        margin-left: -2.5px;
    }
    .timeline > li {
        margin-bottom : 20px;
        position: relative;
    }
    .timeline > li.before, 
    .timeline > li:after {
        content: " ";
        display: table;
    }
    .timeline > li:after {
        clear:both;
    }
    .timeline li .timeline-badge {
        color: #3E93C8;
        width: 50px;
        line-height: 50px;
        font-size: 20px;
        text-align: center;
        position: absolute;
        top: 16px;
        left: 50%;
        margin-left: -25px;
        background-color: white;
        border-radius: 50%;
    }
    .timeline-panel-container {
        width: 50%;
        float: left;
        margin-left: -5%;
    }
    .timeline-panel-container .timeline-panel {
        width: 98%; 
        float: right;
        margin-right: 5px;
        margin-left: 0;
    }
    .timeline-panel-container-inverted {
        width: 50%;
        float: right;
        margin-right: -5%;
    }
    .timeline-panel {
        width: 98%;
        float:right;
        margin-right: 5px;
        border: 1px solid #d4d4d4;
        border-radius: 7px;
        padding: 20px 25px;
        position: relative;
        box-shadow: 0 1px 6px rgba(0,0,0, 0.175);
        background-color: white;
    }
    .timeline-panel-container-inverted .timeline-panel {
        width: 98%;
        float: left;
        margin-left: 5px; 
        margin-right: 0; 
    }
    .timeline-panel:after {
        position:absolute;
        top: 27px;
        right:-14px;
        display: inline-block;
        border-top: 14px solid transparent;
        border-left: 14px solid white;
        border-right : 0 solid white;
        border-bottom: 14px solid transparent;
        content: " ";
    }
    .timeline-panel-container-inverted .timeline-panel:after {
        content:" ";
        border-left-width: 0;
        border-right-width: 14px;
        left: -14px;
        right: auto;
    }
    .timeline-heading h3 {
        margin-top: 5px;
        font-size: 20px;
    }
    .timeline-heading h4 {
        color:#3E93C8;
    }
}
/* EDUCATION */
#education .heading h2 {
    color: #3E93C8;
    margin: 15px 0px;
}
.education-block {
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
    background-color: #e9ecef;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    height: 100%; 
    display: flex;
    flex-direction: column;
}
.education-block h5 {
    color: #888;
    font-size: 15px;
    margin-bottom: 15px;
}
.education-block span {
    font-size: 35px;
}
.education-block h3 {
    color:#3E93C8;
    margin: 15px 0px;
}
.education-block h4 {
    margin-bottom: 20px;
    font-weight: normal;
}
#education .row > div[class*="col-"] {
    display: flex;
}

/* PORTFOLIO */
#portfolio {
    background-color: #3E93C8;
}
#portfolio .heading h2 {
    color: white;
}
#portfolio img {
    width: 100%;
    height: 100%;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}
#portfolio img:hover {
    -webkit-filter: none;
    filter: none;
}
#portfolio .col-md-4 {
    margin-bottom: 20px;
}

/* RECOMMENDATIONS */
#recommendations .heading h2 {
    color: #3E93C8;
}
#myCarousel .carousel-item {
    padding : 30px 30px 90px;
}
#myCarousel .carousel-item h3{
    color: #3E93C8;
    font-style: italic;
}

/* FOOTER */
footer {
    background-color: #333;
    padding: 20px 0 40px;
}
footer span {
    color:#3E93C8;
    font-size: 25px;
    line-height: 35px;
}
footer h5 {
    color: white;
    font-weight: normal;
}
footer span:hover {
    font-size: 30px;
}

/* CONTACT */

#contact {
    background-color: #3E93C8;
}
#contact .heading h2 {
    color:white;
}
#contact-form {
    font-size: 20px;
    width: 100%; 
    margin-left: auto;
    margin-right: auto;
    color : white;
}
.form-control {
    height: 50px;
    font-size: 18px;
}
#contact-form input[type=submit] {
    margin: 40px auto 0px;
    display: block;
}
.row > div {
    margin-bottom: 20px; 
}
#contact-form .row .col-lg-6, 
#contact-form .row > div:not(.col-lg-6) {
    padding-bottom: 0; 
}
.comments {
    font-style: italic;
    font-size: 18px;
    color: white;
    margin-bottom:0;
    margin-top: 5px;
    min-height: 18px;
}
.thank-you {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    font-size: 22px;
}
#message {
    height: 170px;
}
