:root {
    --gradient-first: #4ac5cd;
    --gradient-second: #ba55d3;
}

.row {
    overflow-x: hidden !important;
}

.homeslide {
    color: white;
    position: relative;
    background-image: linear-gradient(var(--gradient-first), var(--gradient-second));
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100%;
}

a {
    transition: 0.5s;
}

.navbar-custom {
    border-bottom: solid #23272b 1px;
}

.parent {
    height: 100%;
    display: flex; /* contexte sur le parent */
    flex-direction: column; /* direction d'affichage verticale */
    justify-content: center; /* alignement vertical */
}

h6 {
    font-size: small;
}

/*
h4 {
    text-decoration: underline;
}
*/

.box {
    border: 3px solid #4ac5cd;
    border-image-source: linear-gradient(var(--gradient-first), var(--gradient-second));
    border-image-slice: 3;
    border-radius: 2px;
}

.text-gradient {
    display: inline-block;
    background: linear-gradient(90deg, var(--gradient-first), var(--gradient-second));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.profile-pic {
    width: 200px;
    height: 200px;
    background: linear-gradient(180deg, var(--gradient-first), var(--gradient-second));
    border-radius: 5px;
    padding: 20px;
}

.homeslide a {
    color: white;
    text-decoration: none;

}

.homeslide a:hover {
    color: #343a40;
    text-decoration: none;
}

a > i {
    margin: 0 10px;
    font-size: 2em;
}

.contact-link {
    margin-bottom: 15px;
}

.modal-content a {
    color: #343a40;
}

.modal-content {
    color: #343a40;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
        min-width: 671px;
    }
}

@media (max-width: 767px) {
    .row {
        text-align: center !important;
        display: block !important;
    }

    .scrolldiv {
        display: none !important;
    }

    .thumbnail {
        display: none !important;
    }

    .lg-top {
        margin-top: 15px;
    }
}

.subtitle {
    padding-top: 13px;
}

.contact {
    margin-bottom: 10px;
}

.project {
    text-decoration: underline;
}

.alert-dark {
    text-align: center;
    background-color: rgba(52, 58, 64, 0.9);
    border-color: rgba(52, 58, 64, 0.9);
    border-radius: 3px;
    color: white;
    padding: 10px;
    max-width: 200px;
}

.scrolldiv {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 99.9%;
    margin-top: -50px;
}

.scrolldown {
    position: relative;
    width: 24px;
    height: 24px;
}

.chevron {
    position: absolute;
    width: 28px;
    height: 8px;
    opacity: 0;
    transform: scale3d(0.5, 0.5, 0.5);
    animation: move 3s ease-out infinite;
}

.chevron:first-child {
    animation: move 3s ease-out 1s infinite;
}

.chevron:nth-child(2) {
    animation: move 3s ease-out 2s infinite;
}

.chevron:before,
.chevron:after {
    content: ' ';
    position: absolute;
    top: 0;
    height: 100%;
    width: 51%;
    background: #fff;
}

.chevron:before {
    left: 0;
    transform: skew(0deg, 30deg);
}

.chevron:after {
    right: 0;
    width: 50%;
    transform: skew(0deg, -30deg);
}

@keyframes move {
    25% {
        opacity: 1;

    }
    33% {
        opacity: 1;
        transform: translateY(30px);
    }
    67% {
        opacity: 1;
        transform: translateY(40px);
    }
    100% {
        opacity: 0;
        transform: translateY(55px) scale3d(0.5, 0.5, 0.5);
    }
}

.text {
    display: block;
    margin-top: 75px;
    margin-left: -30px;
    font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: .25;
    animation: pulse 2s linear alternate infinite;
}

@keyframes pulse {
    to {
        opacity: 1;
    }
}

.font-1 {
    font-family: 'Abel', sans-serif !important;
}

.font-2 {
    font-family: 'Boogaloo', sans-serif !important;
}

.labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress {
    height: 5px;
}

.progress-bar {
    background: -webkit-linear-gradient(left, var(--gradient-first) 0%, var(--gradient-second) 100%); /* Chrome10-25,Safari5.1-6 */
}

.lg-top {
    margin-top: 60px;
}

.details .row {
    padding-top: 15px;
}

.bigger {
    font-size: 3rem;
}

.details {
    color: #343a40 !important;
}

.separator > hr {
    background-image: linear-gradient(90deg, var(--gradient-first), var(--gradient-second));
    border: 0;
    height: 1px;
}

.details a {
    color: #343a40;
    text-decoration: none;
    min-height: 50px;
    min-width: 50px;
}

.details a:hover {
    text-decoration: none;
}

.linked {
    cursor: pointer;
    color: #343a40;
}

.linked:hover {
    text-decoration: none;
}

.linked-2 {
    cursor: pointer;
    transition: 0.5s;
    color: white;
    text-decoration: none;
}

.linked-2:hover {
    color: #343a40;
    text-decoration: none;
}

.thumbnail {
    max-width: 200px;
}

.contain {
    position: relative;
    width: 100%;
}

.img {
    display: block;
    width: 100%;
    height: auto;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: #ffffff;
}

.contain:hover .overlay {
    opacity: 0.85;
}

.txt {
    color: #343a40;
    position: absolute;
    top: 5px;
    left: 5px;
}

/*******TIMELINE*********/

.timeline {
    position: relative;
    width: 660px;
    margin: 0 auto;
    margin-top: 20px;
    padding: 1em 0;
    list-style-type: none;
}

.timeline:before {
    position: absolute;
    left: 50%;
    top: 0;
    content: ' ';
    display: block;
    width: 6px;
    height: 100%;
    margin-left: -3px;
    background: rgb(80, 80, 80);
    background: -moz-linear-gradient(top, var(--gradient-first), var(--gradient-second));
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(30, 87, 153, 1)), color-stop(100%, rgba(125, 185, 232, 1)));
    background: -webkit-linear-gradient(top, var(--gradient-first), var(--gradient-second));
    background: -o-linear-gradient(top, var(--gradient-first), var(--gradient-second));
    background: -ms-linear-gradient(top, var(--gradient-first), var(--gradient-second));
    background: linear-gradient(to bottom, var(--gradient-first), var(--gradient-second));
    border-radius: 3px;
    z-index: 5;
}

.timeline li {
    padding: 10px 0;
}

.timeline li:after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.direction-l {
    position: relative;
    width: 300px;
    float: left;
    text-align: right;
    z-index: 15;
}

.direction-r {
    position: relative;
    width: 300px;
    float: right;
    z-index: 15;
}

.flag-wrapper {
    position: relative;
    display: inline-block;

    text-align: center;
}

.flag {
    position: relative;
    display: inline;
    background: white;
    padding: 6px 10px;
    border-radius: 2px;

    font-weight: 600;
    text-align: left;
}

.direction-l .flag {
    -webkit-box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
    box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
}

.direction-r .flag {
    -webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
}

.direction-l .flag:before,
.direction-r .flag:before {
    position: absolute;
    top: 50%;
    right: -36px;
    content: ' ';
    display: block;
    width: 12px;
    height: 12px;
    margin-top: -10px;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #343a40;
    z-index: 10;
}

.direction-l .flag-diploma:before,
.direction-r .flag-diploma:before {
    position: absolute;
    top: 50%;
    right: -36px;
    content: ' ';
    display: block;
    width: 12px;
    height: 12px;
    margin-top: -10px;
    background: transparent;
    border-radius: 10px;
    border: 6px solid #343a40;
    z-index: 10;
}

.direction-r .flag:before {
    left: -36px;
}

.time-wrapper {
    display: inline;
    line-height: 1.4em;
    font-size: 0.8em;
    color: #343a40;
    vertical-align: middle;
}

.direction-l .time-wrapper {
    float: left;
}

.direction-r .time-wrapper {
    float: right;
}

.time {
    display: inline-block;
    padding: 4px 6px;
    background: white;
}

.desc {
    margin: 1em 0.75em 0 0;
    font-size: 0.84em;
    font-style: italic;
    line-height: 1.5em;
}

.direction-r .desc {
    margin: 1em 0 0 0.75em;
}

/* ================ Timeline Media Queries ================ */

@media screen and (max-width: 660px) {

    .timeline {
        width: 100%;
        padding: 4em 0 1em 0;
    }

    .timeline li {
        padding: 2em 0;
    }

    .direction-l,
    .direction-r {
        float: none;
        width: 100%;

        text-align: center;
    }

    .flag-wrapper {
        text-align: center;
    }

    .flag {
        background: rgb(255, 255, 255);
        z-index: 15;
    }

    .direction-l .flag:before,
    .direction-r .flag:before {
        position: absolute;
        top: -30px;
        left: 50%;
        content: ' ';
        display: block;
        width: 12px;
        height: 12px;
        margin-left: -6px;
        background: #fff;
        border-radius: 10px;
        border: 2px solid #343a40;
        z-index: 10;
    }

    .direction-l .flag-diploma:before,
    .direction-r .flag-diploma:before {
        position: absolute;
        top: -30px;
        left: 50%;
        content: ' ';
        display: block;
        width: 12px;
        height: 12px;
        margin-left: -6px;
        background: #fff;
        border-radius: 10px;
        border: 6px solid #343a40;
        z-index: 10;
    }

    /*
    .direction-l .flag:after,
    .direction-r .flag:after {
        content: "";
        position: absolute;
        left: 50%;
        top: -8px;
        height: 0;
        width: 0;
        margin-left: -8px;
        border: solid transparent;
        border-bottom-color: rgb(255,255,255);
        border-width: 8px;
        pointer-events: none;
    }
*/
    .time-wrapper {
        display: block;
        position: relative;
        margin: 4px 0 0 0;
        z-index: 14;
    }

    .direction-l .time-wrapper {
        float: none;
    }

    .direction-r .time-wrapper {
        float: none;
    }

    .desc {
        position: relative;
        margin: 1em 0 0 0;
        padding: 1em;
        background: white;
        -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.20);
        -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.20);
        box-shadow: 0 0 1px rgba(0, 0, 0, 0.20);

        z-index: 15;
    }

    .direction-l .desc,
    .direction-r .desc {
        position: relative;
        margin: 1em 1em 0 1em;
        padding: 1em;

        z-index: 15;
    }

}

@media screen and (min-width: 400px ) and ( max-width: 660px) {

    .direction-l .desc,
    .direction-r .desc {
        margin: 1em 4em 0 4em;
    }

}

.grey-img {
    transition: filter .25s ease-in-out;
    -webkit-filter: grayscale(100%); /* Ch 23+, Saf 6.0+, BB 10.0+ */
    filter: grayscale(100%); /* FF 35+ */
}

.grey-img:hover {
    -webkit-filter: grayscale(0%); /* Ch 23+, Saf 6.0+, BB 10.0+ */
    filter: grayscale(0%); /* FF 35+ */
}
