* {
    margin: 0;
    padding: 0;
}

@font-face {
    src: url(../font/goma.ttf);
    font-family: 'goma';
}

@font-face {
    src: url(../font/roboto.ttf);
    font-family: 'roboto';
}

@font-face {
    src: url(../font/peachcake.otf);
    font-family: 'peachcake';
}

body {
    background-color: #e8bb87;
    color: #333;
    font-family: 'roboto';
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'peachcake';
}

html,
body {
    overflow: hidden;
    margin: 0;
    width: 100%;
    height: 100%;
}

#loading-screen {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e8bb87;
    background: linear-gradient(214deg, rgba(252, 247, 171, 1) 0%, rgba(232, 187, 135, 1) 100%);
    opacity: 1;
    transition: 1s opacity;
    z-index: 2000;
}

#loading-screen.fade-out {
    opacity: 0;
}

#loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200px;
    height: 200px;
    margin: -120px 0 0 -100px;
    border-radius: 50%;
    border: 7px dotted transparent;
    box-sizing: border-box;
    border-top-color: #FFF;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

#loader:before {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    right: 7px;
    bottom: 7px;
    border-radius: 50%;
    border: 7px dotted transparent;
    border-top-color: #333;
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
    box-sizing: border-box;
}

#loader:after {
    content: "";
    position: absolute;
    top: 17px;
    left: 17px;
    right: 17px;
    bottom: 17px;
    border-radius: 50%;
    border: 7px dotted transparent;
    border-top-color: #FF7920;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
    box-sizing: border-box;
}
.loading_text{
    font-family: 'peachcake';
    color: white;
    opacity: 0;
    animation:fadeInOut 1.5s ease infinite;
    position: absolute;
    width: 100%;
    font-size: 36px;
    top: 50%;
    transform: translate(0,calc(50% + 60px));
    left: 0;
    text-align: center;
}
#progress{
    font-family: 'peachcake';
    color: white;
    position: absolute;
    width: 100%;
    font-size: 36px;
    top: 50%;
    transform: translate(0,calc(50% - 200px));
    left: 0;
    text-align: center;
}
.pp_load{
    width: 115px;
    height: 115px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,calc(-50% - 20px));
    overflow: hidden;
    background: white;
}
.pp_load img{
    width: 100%;
    height: 100%;
}
@-webkit-keyframes fadeInOut {
    0%{
        opacity: 0;
    }
    50%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes anim_scale{
    0%{
        transform:translate(-50%, calc(-50% + 23px)) scale(0);
    }
    75%{
        transform:translate(-50%, calc(-50% + 23px)) scale(1.2);
    }
    100%{
        transform:translate(-50%, calc(-50% + 23px)) scale(1);
    }
}
@keyframes anim_scale_reverse{
    0%{
        transform:translate(-50%, calc(-50% + 23px)) scale(1);
    }
    25%{
        transform:translate(-50%, calc(-50% + 23px)) scale(1.2);
    }
    100%{
        transform:translate(-50%, calc(-50% + 23px)) scale(0);
        top:50%;
        display: none;
    }
}
@keyframes pp_show{
    0%{
        transform: translateY(-50%) scale(0);
    }
    75%{
        transform: translateY(-50%) scale(1.2);
    }
    100%{
        transform: translateY(-50%) scale(1);
    }   
}
@keyframes pp_hide{
    0%{
        transform: translateY(-50%) scale(1);
    }
    25%{
        transform: translateY(-50%) scale(1.2);
    }
    100%{
        transform: translateY(-50%) scale(0);
    }   
}
@keyframes btn_close_show{
    0%{
        transform: scale(0);
    }
    75%{
        transform: scale(1.2);
    }
    100%{
        transform: scale(1);
    }   
}
@keyframes btn_close_hide{
    0%{
        transform: scale(1);
    }
    25%{
        transform: scale(1.2);
    }
    100%{
        transform: scale(0);
    }   
}

nav.menu {
    position: fixed;
    top: 0;
    right: -370px;
    z-index: 1000;
    color: white;
    color: #e8bb87;
    font-size: 32px;
    text-align: right;
    padding: 10px;
    box-sizing: border-box;
    width: calc(320px - 44px);
    height: 100%;
    background: #FFA121;
    background: #FFFFFF;
    transition: right 0.5s ease;
    box-shadow: rgba(255, 122, 33, 0.75) 0 0 50px;
}

nav.slideright {
    right: 0;
}

nav.menu ul {
    margin-top: 50px;
}

nav.menu li {
    list-style: none;
    margin: 20px 0 20px 0;
    font-family: 'peachcake';
    cursor: pointer;
    border-bottom: #e8bb87 2px dotted;
    line-height: 32px;
    /*border-left:#e8bb87 4px solid;*/
}

#btn_burger {
    width: 40px;
    height: 40px;
    padding-top: 13px;
    box-sizing: border-box;
    background: #FFF;
    border-radius: 50%;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    cursor: pointer;
}

#btn_burger span {
    background: #e8bb87;
    height: 2px;
    width: 30px;
    margin-left: 5px;
    display: block;
    margin-bottom: 4px;
}

.btn_close {
    position: absolute;
    left: -44px;
    top: 2px;
    width: 40px;
    height: 40px;
    background: #FFF;
    border-radius: 50%;
    cursor: pointer;
}
.btn_close_show{
    animation: btn_close_show 0.5s 0.5s ease forwards;
}
.btn_close_hide{
    animation: btn_close_hide 0.3s ease forwards;
}

#btn_close_anims,#btn_close_web,#btn_close_formation {
    left: 2px;
    top: -44px;
}

#btn_close_accueil,#btn_close_contact {
    left: 2px;
    top: -44px;
    transform: scale(0);
}

.btn_close span {
    background: #e8bb87;
    height: 2px;
    width: 30px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -1px;
    margin-left: -15px;
    transform-origin: center;
}

.btn_close span:first-of-type {

    transform: rotate(45deg);
}

.btn_close span:last-of-type {
    transform: rotate(-45deg);
}

.overlay {
    width: 100%;
    height: 100%;
    background: #e8bb87;
    background: linear-gradient(214deg, rgba(252, 247, 171, 1) 0%, rgba(232, 187, 135, 1) 100%);
    position: fixed;
    top: -100%;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease, top 0s ease 0.5s;
    z-index: 1004;

}

.overlay_open {
    opacity: 1;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease, top 0s ease 0s;
}

.section_anims,
.section_accueil, .section_web, .section_formation, .section_contact {
    width: 99%;
    max-width: 1000px;
    height: calc(99% - 46px);
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    background: #e8bb87;
    background: #FFA121;
    background: #FFFFFF;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 23px)) scale(0);
    /*transition: transform 0.5s ease;*/

    box-shadow: rgba(255, 122, 33, 0.75) 0 0 50px;
    border-radius: 20px;
    border: #FFF 2px solid;
    box-sizing: border-box;
    z-index: 1005;
    
}
.section_formation{
    height: auto;
}
.contenu_formation{
    width: 100%;
}
.titre_skills_formation{
    font-size: 23px;
    margin-top: 20px;
}
.skills_formation{
    color:#333;
    font-size: 18px;
}
#btn_close_web{
    z-index: 1006;
}

.section_accueil, .section_contact {
    width: 90%;
    max-width: 500px;
    height: calc(450px - 46px);
}
.section_accueil{
    background:white url(../images/chocoWeb.jpg) no-repeat bottom center;
    background-size:100px;
}
.baseline{
    text-align: center;
    font-style: italic;
    margin: 10px 0;
    color: #333;
    font-size: 25px;
    display: block;
    width: 100%;
    line-height: 23px;
}
.explain{
    color: #333;
    text-align: center;
    font-style: italic;
    display: block;
    width: 100%;
    margin-bottom: 10px;
}
.section_web .explain{
    border-bottom: #e8bb87 2px dotted;
    padding-bottom: 10px;
}
.section_accueil h2,.section_contact h2{
    text-align: center;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translate(0,-50%);
    font-weight: normal;
    padding: 20px;
    box-sizing: border-box;
    font-size: 24px;
    margin-top: 20px;
}
.section_accueil h2 span,.section_contact h2 span{
    color: #e8bb87;
}
.section_contact img{
    width: 50px;
}
.hire{
    font-style: italic;
    font-size: 22px;
}
.enjoy{
    display: block;
    font-style: italic;
    font-size:28px;
    margin-top: 15px;
    line-height: 25px;
}
.pp,.contact_icon{
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: block;
    border: #FFF 4px solid;
    margin: 0 auto;
    transform: translateY(-50%) scale(0);
    background: white;
    border: #e8bb87 4px dotted;
    outline: 4px solid white;
}
.pp{
    border: #FFF 4px solid;
    outline: none;
}
.pp_show{
    animation: pp_show 0.5s 0.3s ease forwards;
}
.pp_hide{
    animation: pp_hide 0.3s ease forwards;
}
.contact_icon img{
    width: 70%;
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    transform: translate(-50%,-50%);
}

.mask {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.openscale {
    /*transform: translate(-50%, calc(-50% + 23px)) scale(1);*/
    animation: anim_scale 0.5s ease forwards;
}
.closescale{
    animation: anim_scale_reverse 0.5s ease forwards;
}

.contenu {
    width: calc(100% + 20px);
    height: 100%;
    color: white;
    color: #e8bb87;
    overflow-y: scroll;
    padding: 10px 30px 10px 10px;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.contenu h2 {
    width: 100%;
    font-size: 32px;

}

#empanims,
#empvideos {
    width: 100%;
    font-size: 20px;
    margin-top: 10px;
    border-bottom: #e8bb87 2px dotted;
}

.rea {
    width: 100%;
    background: rgba(255, 255, 255, 1);
    padding: 10px;
    box-sizing: border-box;
    color: #333;
    margin-bottom: 10px;
    margin-top: 10px;
    position: relative;
}
.rea span{
    color: #e8bb87;
    
}
.rea a{
    text-decoration: none;
    color: #777;
    border-bottom: dotted 1px #e8bb87;
}
.rea .date{
    /*position: absolute;
    top: 10px;
    right: 10px;*/
    text-align: right;
    color: #e8bb87;
}
.skills{
    margin: 10px 0;
}
.skills img{
    vertical-align: middle;
}
.contenu_titre {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 9px;

    box-sizing: border-box;
    font-weight: normal;
    text-align: center;
    font-size: 18px;
    width: 220px;
    height: 40px;
    border-radius: 23px 23px 0 0;
    color: #e8bb87;
    background: #FFF;
    /*background: rgb(0,0,0);*/
}

.contenu_titre a {
    text-decoration: none;
    color: #e8bb87;
    border-bottom: 1px #e8bb87 dotted;
}
.controls_mobile,.controls_bureau{
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%,0);
    display: flex;
    justify-content: space-between;
    color: white;
    font-family:'peachcake';
    width: 200px;
    /*background:#e8bb87;
    border: white solid 4px;
    border-radius:20px;*/
    text-shadow: rgba(255, 122, 33, 0.85) 0 0 5px;
    font-size:20px;
}
.controls_mobile div,.controls_bureau div{
    text-align: center;
}
.controls_mobile img,.controls_bureau img{
    width: 70px;
    display: block;
    margin: 0 auto;
}


@media screen and (min-width:1080px) {
    .pp,.contact_icon{
        width: 200px;
        height: 200px;
    }
    #btn_close_anims,#btn_close_web,#btn_close_formation {
        left: -42px;
        top: -44px;
    }

    #btn_close_accueil,#btn_close_contact {
        left: -42px;
        top: -44px;
    }

    .contenu {
        padding: 10px 10px 10px 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .rea {
        width: 48%;
    }
}
