@font-face {
    font-family: theinhardt-reg;
    src: url(font/Theinhardt.otf);
}

@font-face {
    font-family: theinhardt-it;
    src: url(font/Theinhardt-RegularItalic.otf);
}

body {
    background-color: #e3e3e3;
    overflow-y: hidden;
    margin: 0;
}


/*PAGE D'ACCUEIL________________________________________*/

.accueil {
    margin: auto;
    width: 30%;
}

.bouton-on {
    width: 100%;
    margin-top: 60px;
    cursor: url("images/click.png"), auto;
}

.pad10 {
    padding: 10px;
}

.col2 {
    width: 50%;
}

.mail {
    width: 50%;
    text-align: right;
}

@media (max-width:500px) {
    header .flex {
        display: block;
    }
    .col2 {
        width: 100%;
    }
    .mail {
        width: 100%;
    }
    .accueil {
        width: 80%;
    }
}


/*HEADER__________________________________________________*/

header {
    width: 100%;
    font-size: 20px;
    font-family: theinhardt-reg;
    position: fixed;
    z-index: 100;
}

.clickonme {
    cursor: pointer;
    padding: 10px;
    text-decoration: underline;
    position: fixed;
    position: absolute;
}

.clickonme.active {
    padding: 10px;
}

.hidden {
    display: none;
    background-color: rgba(250, 250, 250, 0.9);
    padding: 10px;
}

.bio {
    width: 70%;
}

.contact {
    width: 30%;
    text-align: right;
    padding-top: 30px;
}

a {
    text-decoration: underline;
}

@media (max-width:500px) {
    header {
        width: 100vw;
    }
    .hidden .flex {
        display: block;
    }
    .bio {
        width: 100%;
    }
    .contact {
        text-align: left;
        padding-top: 10px;
    }
}


/*OVERLAY_________________________________________________*/

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    background: #e3e3e3;
    width: 100%;
    height: 100vh;
    display: none;
    z-index: 200;
}

.centered {
    /*width: 50%;*/
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.overlay figure img {
    height: 100%;
}

.overlay figure {
    margin-top: 20px;
    height: 90%;
    text-align: center;
}

.legend {
    z-index: 2;
    font-family: theinhardt-reg;
    font-size: 20px;
    text-align: center;
    margin-top: 10px;
}

i{
    font-family: theinhardt-it;
}

@media (max-width:500px) {
    .overlay figure img {
        width: 100%;
        height: auto;
    }
    .overlay figure {
        margin-top: 20px;
        width: 100vw;
        height: auto;
        text-align: center;
    }
    .legend {
        text-align: left;
        margin-top: 10px;
        width: 100vw;
    }
}


/*OVERLAY PHONE*/

.overlayphone {
    position: fixed;
    top: 0;
    left: 0;
    background: #e3e3e3;
    width: 100%;
    height: 100vh;
    display: none;
    z-index: 200;
}

.overlayphone figure img {
    width: 90%;
}

.overlayphone figure {
    margin-top: 20px;
    width: 90%;
    text-align: center;
}

.legend {
    z-index: 2;
    font-family: theinhardt-reg;
    font-size: 20px;
    text-align: center;
    margin-top: 10px;
}


/*FLOW D'IMAGES__________________________________________*/

.flow {
    height: 100vh;
}

.flex {
    display: flex;
}

.flex figure {
    /*pour que le bloc s'adapte à l'image*/
    width: auto;
    height: 100%;
    /*si c'est activé, les images ne sont pas centrées verticalement, si c'est pas activé, les images sortent de l'écran*/
    margin: 0;
}

.flex img {
    object-fit: contain;
    cursor: pointer;
    position: relative;
}

figcaption {
    display: none;
}

.retour {
    position: relative;
    font-size: 20px;
    top: 62vh;
    margin-left: -60px;
    font-family: theinhardt-reg;
    cursor: pointer;
}

@media (max-width:500px) {
    .flow {
        overflow-y: hidden;
    }
    .retour {
        display: none;
    }
}


/*TAILLE DES IMAGES*/

.xsmall {
    height: 20%;
}

.intersmall {
    height: 30%;
}

.small {
    height: 40%;
}

.medium {
    height: 70%;
}

.big {
    height: 100%;
}

.tourne {
    transform: rotate(20deg);
    /*BEUG*/
}


/*PLACEMENT VERTICAL DES IMG*/

.up {
    top: 5vh;
}

.mid20 {
    top: 20vh;
}

.mid30 {
    top: 30vh;
}

.mid40 {
    top: 40vh;
}

.mid55 {
    top: 55vh;
}

.down {
    top: 60vh;
}

.down80 {
    top: 80vh;
}


/*GOUTIERE  GAUCHE*/

.goutiere {
    margin-left: 50px;
}

.goutiere200 {
    margin-left: 200px;
}

.goutiere300 {
    margin-left: 300px;
}

.goutiere400 {
    margin-left: 400px;
}

.superpo50{
    margin-left: -50px;
}

.superpo100 {
    margin-left: -100px;
}

.superpo200 {
    margin-left: -200px;
}

.superpo400 {
    margin-left: -400px;
}

.superpo455 {
    margin-left: -455px;
}

.superpo700 {
    margin-left: -700px;
}

.superpo800 {
    margin-left: -800px;
}

.superpo900 {
    margin-left: -900px;
}

.superpo1000 {
    margin-left: -1000px;
}

.superpo1100 {
    margin-left: -1100px;
}