* {
    box-sizing: border-box;
}

:root {
    --color1: #d89584;
    --color2: #f4f4f4;
}

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

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

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: -50px;
    margin-top: 50px;
}

div.cover h1 {
    color: #fff;
    font-size: 42px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0px;
}

div.cover p {
    color: lightgray;
    font-size: 16px;
    text-align: center;
    margin-top: 5px;
}

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

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

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

div.cover-contact * {
    color: lightgray;
    text-decoration: none;
    font-size: 16px;
}

div.cover-contact *:hover {
    color: var(--color1);
}

a.contact-button {
    text-decoration: none;
    color: var(--color1);
    font-size: 16px;
    padding: 8px 20px;
    text-align: center;
    border: var(--color1) solid 2px;
    background-color: #00000040;
    display: inline-block;
    margin-top: 15px;
}

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

div.contact-button a:hover {
    border: white solid 2px;
    color: #fff;
}

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

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

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

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

div.separateur {
    border-top: 2px solid #979797;
    width: 150px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
    margin-bottom: 30px;
}

div.section-grise1 p {
    text-align: center;
    font-size: 22px;
    color: #656565;
    margin-top: 0px;
    margin-bottom: 0px;
    width: 410px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.float-right {
    float: right;
}

div.texte-avec-ligne-verticale {
    border-left: 4px solid var(--color1);
    padding-left: 8px;
    height: 50px;
    display: inline-block;
}

div.texte-avec-ligne-verticale p {
    margin-top: 0px;
}

div.barre-verticale {
    border-left: 4px solid var(--color1);
    height: 50px;
    margin-right: 8px;
}

.col-portfolio {
    width: 47%;
}

div.frame {
    margin: 30px 50px;
    padding: 20px 30px;
    background-color: white;
    box-shadow: 0px 0px 8px 8px #00000010;
}

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

div.frame img {
    width: 100px;
}

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

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

.portfolio h1 {
    font-size: 46px;
    text-align: center;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 0px;
}

.portfolio h2 {
    font-size: 26px;
    text-align: center;
    font-weight: normal;
}

.portfolio-back {
    color: var(--color1);
    left: 20px;
    top: 15px;
    position: absolute;
}

img.portfolio {
    width: 70%;
    max-width: 475px;
}

.display-mobile {
    display: none;
}

/* RESPONSIVE MOBILE */
@media only screen and (max-width: 767px) {

    img.cover-profile {
        height: 80px;
        margin-top: 75px;
    }

    div.cover h1 {
        font-size: 32px;
    }

    div.cover p {
        font-size: 13px;
    }

    .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    div.section-grise1 p {
        font-size: 18px;
        width: 320px;
    }

    h2 {
        font-size: 30px;
    }

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

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

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

    div.texte-avec-ligne-verticale {
        margin-top: 20px;
    }

    div.frame {
        margin: 0px 0px;
        padding: 0px 20px;
        box-shadow: none;
    }

    div.frame img {
        width: 70px;
    }

    p.frame-title {
        font-size: 24px;
    }

    /* FIX: IFRAME TOO SMALL — NEW HEIGHT */
    iframe {
        height: 700px; /* ✔ corrigé */
    }

    .portfolio-header-title {
        font-size: 16px;
    }

    a.contact-button {
        padding: 8px 8px;
        font-size: 12px;
    }

    img.portfolio {
        width: 100%;
    }

    .display-mobile {
        display: block;
    }
}
