* {
    box-sizing: border-box;
}

:root {
    --color1: #D89584;
    --color2: #F4F4F4;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

iframe {
    width: 100%;
    border: none;
    height: 350px;
}

div.cover {
    background: url(cover_overlay.png) no-repeat center/100% 100%, url(cover.jpg) no-repeat center/cover;
    height: 360px;
    position: relative;
}

img.cover-profile {
    height: 120px;
    position: relative;
    left: 50%;
    margin-left: -60px;
    margin-top: 28px;
}

h1 {
    color: white;
    text-align: center;
    font-size: 42px;
    margin-top: 10px;
    margin-bottom: 0;
}

div.cover p {
    color: lightgrey;
    text-align: center;
    font-size: 15px;
    margin-top: 8px;
}

div.cover-contact {
    position: absolute;
    top: 20px;
    left: 16px;
    border-left: 4px solid var(--color1);
    padding-left: 12px;
}

div.cover-contact p {
    text-align: left;
    margin-top: 0;
    margin-bottom: 0;
}

div.cover-contact p:first-child {
    margin-bottom: 15px;
}

div.cover-contact a {
    color: white;
    font-size: 14px;
}

a.contact-button {
    color: var(--color1);
    border: 3px solid var(--color1);
    padding: 8px 20px;
    background-color: #00000060;
    text-decoration: none;
    display: inline-block;
    margin-top: 23px;
    font-size: 14px;
}

a.contact-button:hover {
    color: white;
    border: 3px solid white;
}

.section {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 30px;
    padding-bottom: 0px;
    overflow: auto;
}

div.section-grise1 {
    background: url(triangle2white.svg) no-repeat center bottom/100%;
    background-color: var(--color2);
    padding-bottom: 85px;
}

div.section-grise2 {
    background: url(triangle1white.svg) no-repeat center top/100%;
    background-color: var(--color2);
    padding-top: 90px;
}

h2 {
    text-align: center;
    font-size: 28px;
    margin-top: 0px;
}

.section-grise1 p {
    text-align: center;
    color: #656565;
    max-width: 690px;
    font-size: 22px;
    margin-bottom: 18px;
    margin-left: auto;
    margin-right: auto;
}

div.separator {
    background-color: #979797;
    height: 1px;
    width: 150px;
    position: relative;
    left: 50%;
    margin-left: -75px;
}

img.col-contenu{
    width: 40%;
}

div.col-contenu{
    width: 60%;
    padding-left: 16px;
}

.float-right {
    float: right;
}

div.text-whith-vertical-line {
    border-left: 4px solid var(--color1);
    padding-left: 10px;
    height: 50px;
    display: inline-block;
}

div.text-whith-vertical-line p {
    margin-top: 0;
}

div.vertical-barre {
    height: 50px;
    width: 4px;
    background-color: var(--color1);
    margin-right: 8px;
}

.col-portfolio {
    width: 47%;
}

div.frame {
    margin: 30px 50px;
    padding: 20px 30px;
    background-color: white;
    box-shadow: 0px 0px 8px 8px rgba(0, 0, 0, 0.1);
}

p.frame-title {
    font-size: 30px;
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: center;
}

div.frame img {
    width: 100px;
}

/* --PORTFOLIO-- */
.portfolio-header {
    height: 90px;
    background: url(cover.jpg) no-repeat center/cover;
    position: relative;
}

.portfolio-header-title {
    font-size: 26px;
    font-weight: bold;
    color: white;
    padding-top: 4px;
    padding-left: 8px;
}

a.contact-button-portfolio {
    position: absolute;
    right: 20px;
    top: 5px;
}

h1.portfolio-title {
    font-size: 46px;
    color: black;
    line-height: 1;
    padding-top: 10px;
}

h2.portfolio-title {
    font-size: 26px;
    color: black;
    font-weight: normal;
    margin-bottom: 0;
}

.slider-container {
    max-width: 586px;
    margin: auto;
    overflow: hidden;
    height: 407px;
}

.slider-container .slider {
    display: flex;
    animation: slider-1 12s infinite ease-in-out;
}

.slider-container img {
    flex-shrink: 0;
    width: 100%;
}

@keyframes slider-1 {
    0%,
    20% {
        transform: translateX(0);
    }
    25%,
    45% {
        transform: translateX(-100%);
    }
    50%,
    70% {
        transform: translateX(-200%);
    }
    75%,
    95% {
        transform: translateX(-300%);
    }
    100% {
        transform: translateX(-400%);
    }
}


div.portfolio-img img {
    width: 100%;
    max-width: 586px;
    
    padding-right: 15px;
    padding-left: 15px;
}
/*
video.portfolio-demo {
    width: 800px;
}

.display-mobile {
    display: none;
}
*/

/* RESPONSIVE DESIGN : MOBILE */
@media only screen and (max-width: 767px) {
    img.cover-profile {
        height: 90px;
        margin-top: 90px;
    }
    
    h1 {
        font-size: 38px;
        margin-top: 6px;
        margin-bottom: 0;
    }
    
    div.cover p {
        font-size: 13px;
        margin-top: 2px;
    }

    a.contact-button {
        margin-top: 9px;
    }

    .section {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    div.section-grise1 {
        padding-bottom: 40px;
    }

    div.section-grise2 {
        padding-top: 50px;
    }

    img.col-contenu{
        width: 100%;
    }
    
    div.col-contenu{
        width: 100%;
        padding-left: 0px;
        margin-top: 13px;
    }

    .col-portfolio {
        width: 100%;
        margin-bottom: 20px;
    }

    div.frame {
        margin: 0px 0px;
        padding: 0px 0px;
        background-color: white;
        box-shadow: none;
    }
    
    div.frame img {
        width: 70px;
    }

    /* PORTFOLIO MOBILE */
    .portfolio-header-title {
        font-size: 20px;
        padding-top: 8px;
        padding-left: 8px;
    }

    a.contact-button-portfolio {
        right: 15px;
        top: 16px;
        font-size: 12px;
        padding: 7px 15px;
    }
    
    h1.portfolio-title {
        font-size: 40px;
    }
    
    h2.portfolio-title {
        font-size: 23px;
    }

    img.portfolio-img {
        width: 100%;
    }

    .display-mobile {
        display: block;
    }

    .slider-container {
        height: auto;
    }
}