html,
body {
    width: 100%;
    height: 100%;
}

.layout-acces-blog {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 4;
    width: 60px;
    height: 60px;
    background-image: url(../images/accueil/acces-blog-mobile.png);
    background-repeat: no-repeat;
    background-size: 100%;
    cursor: pointer;
}

.layout-connect-button {
    position: absolute;
    top: 50px;
    left: 120px;
    z-index: 4;
    width: 60px;
    height: 60px;
    border: none;
    background-color: transparent;
    background-image: url(../images/accueil/btn-espace-client-top.png);
    background-repeat: no-repeat;
    background-size: 100%;
    outline: none;
    cursor: pointer;
}

.layout-timeout {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.layout-timeout p {
    font-size: 12px;
    font-family: 'open-sans-regular';
    color: #555;
    text-align: center;
    top: 45%;
    left: calc(50% - 100px);
    position: absolute;
    width: 200px;
    animation-name: show_timeout;
    animation-delay: 0s;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    opacity: 0;
    transform: translatY(100px);
}

@keyframes show_timeout {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.layout-timer {
    display: block;
    position: absolute;
    z-index: 10;
    top: 40%;
    left: 0px;
    width: 100%;
    height: 3px;
}

.layout-timer p {
    display: block;
    position: relative;
    height: inherit;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.layout-timer p span {
    display: block;
    position: relative;
    height: inherit;
    background-color: #e44466;
    margin-left: auto;
    margin-right: auto;
    width: 0%;
    border-radius: 3px;
}

.layout-timer.play {
    display: block;
}

.layout-timer.play p span {
    animation-name: timer-play;
    animation-delay: 0s;
    animation-duration: 8s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

@keyframes timer-play {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/*----------- layout-root -----------*/

.layout-root {
    height: 100%;
}

.layout-root {
    opacity: 0;
    transform: translateY(-20px);
    animation-name: show_root;
    animation-delay: 0s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

@keyframes show_root {
    from {
        opacity: 0;
        transform: translateY(-20px)
    }

    to {
        opacity: 1;
        transform: translateY(0px)
    }
}

/*----------- layout-buttons -----------*/

/*
.layout-connect-button.top {
    font-size: 0px;
    display: inline-block;
    position: absolute;
    top: 10px;
    left: 80px;
    z-index: 3;
    border: none;
    background-color: transparent;
    height: 57px;
    width: 65px;
    cursor: pointer;
    text-transform: uppercase;
    background-image: url(../images/accueil/btn-espace-client-top.jpg);
    opacity: 0;
    background-size: 100%;
    background-repeat: no-repeat;
    overflow: hidden;
    outline: none;
}
*/

/*
.layout-connect-button {
    font-size: 0px;
    display: inline-block;
    position: absolute;
    top: 10px;
    left: 80px;
    z-index: 3;
    border: none;
    background-color: transparent;
    height: 57px;
    width: 65px;
    cursor: pointer;
    text-transform: uppercase;
    background-image: url(../images/accueil/btn-espace-client-top.jpg);
    opacity: 1;
    background-size: 100%;
    background-repeat: no-repeat;
    overflow: hidden;
    outline: none;
}
*/

/*
.layout-connect-button.bottom {
    display: block;
    position: absolute;
    top: -23px;
    right: -42px;
    width: 80px;
    height: 130px;
    background-color: transparent;
    border: none;
    background-image: url(../images/accueil/btn-espace-client.png);
    background-size: 100%;
    background-position: top center;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 10;
    outline: none;
}
*/

.layout-search-button {
    display: none;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 45px;
    text-align: center;
    z-index: 3;
    background-color: #e44466;
    cursor: pointer;
    border: none;
    border-radius: 2px;
    line-height: 45px;
    font-family: var(--fields-font-family);
    font-size: 12px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    outline: none;
}

/*----------- layout-header -----------*/

.layout-header {
    display: block;
    position: absolute;
    width: calc(100% - 40px);
    left: 50%;
    top: 30%;
    transform: translate(-50%, -30%);
    z-index: 2;
    max-width: 680px;
    min-width: 280px;
}

.layout-header h1 {
    display: block;
    position: relative;
    width: 100%;
    text-align: center;
    font-family: 'geometos-rounded';
    font-size: 30px;
    font-weight: normal;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    zoom: 0.9;
}

.layout-header h1 span {
    display: block;
    position: relative;
    margin-top: 5px;
    width: 100%;
    text-align: center;
    font-family: 'cocomat-bold';
    font-size: 9pt;
    font-weight: normal;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.layout-header h2 {
    font-family: 'open-sans-semi-bold';
    font-size: 19px;
    text-align: center;
    color: #fffafa;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    font-weight: normal;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.layout-header h2:before {
    content: '';
    display: block;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 370px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}


.layout-header h2:after {
    content: '';
    display: block;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 320px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
}

.layout-header h2 span {
    margin-top: 2px;
    display: block;
    font-family: 'open-sans-light';
    font-size: 12px;
    text-transform: none;
    color: #fffafa;
    letter-spacing: 0.01em;
    text-shadow: none;
    letter-spacing: 0.02em;
}

.layout-header h3 {
    display: block;
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-family: 'mrs-eaves';
    font-size: 32px;
    font-weight: normal;
    letter-spacing: 0.3em;
    line-height: 38px;
    color: #fff;
    text-transform: uppercase;
    margin-top: 30px;
}

.layout-header>div>header {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
}

.layout-header header>img {
    display: none;
    width: 22%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    min-width: 130px;
}

.layout-header header>p {
    width: 100%;
    text-align: center;
}

.layout-header header>p>img {
    width: 20%;
    max-width: 80px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/*----------- layout-slider -----------*/

.layout-slider {
    display: block;
    position: relative;
    height: calc(100vh - 150px);
    z-index: 1;
}

/*----------- layout-search -----------*/

.layout-search {
    display: block;
    position: absolute;
    z-index: 4;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    height: 110px;
    width: calc(100% - 200px);
    max-width: 900px;
}

.layout-search iframe {
    display: block;
    position: relative;
    height: 100%;
    width: 100%;
    border: none;
    background: transparent;
}

/*----------- layout-connect-modal -----------*/

.layout-connect-modal {
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: rgba(0,0,0,0.7);
}

.layout-connect-modal>div {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.layout-connect-modal>div>div {
    display: block;
    position: relative;
    width: 100%;
    max-width: 450px;
}

.layout-connect-modal>div>span {
    display: block;
    position: absolute !important;
    width: 30px;
    height: 30px;
    top: calc(50% - 120px);
    right: calc(50% - 275px);
    background-image: url(../images/accueil/modal-close.png);
    cursor: pointer;
}

.layout-connect-modal .fieldset {
    padding: 20px;
    padding-bottom: 10px;
    background-color: #ffffff;
}

.layout-connect-modal .fieldset:nth-child(1) {
    margin-bottom: 10px;
}

.layout-connect-modal h3 {
    font-family: 'open-sans-semi-bold';
    font-size: 16px;
    text-align: center;
    line-height: 20px;
    margin-bottom: 15px;
}

.layout-connect-modal p {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 10px;
}

.layout-connect-modal label {
    display: inline-block;
    position: relative;
    vertical-align: top;
    width: 130px;
    font-family: 'open-sans-semi-bold';
    font-size: 14px;
    line-height: 30px;
    text-transform: uppercase;
    text-align: right;
    margin-right: 5px;
}

.layout-connect-modal input[type="text"],
.layout-connect-modal input[type="password"] {
    display: inline-block;
    position: relative;
    vertical-align: top;
    font-family: 'open-sans-regular';
    font-size: 16px;
    line-height: 30px;
    padding: 0px 5px;
    border: 1px solid #bdbdbd;
    background-color: #fff;
}

.layout-connect-modal a {
    font-family: 'open-sans-regular';
    font-size: 15px;
    color: #000;
}

.layout-connect-modal .button {
    display: inline-block;
    position: relative;
    padding: 0px 30px;
    height: 36px;
    line-height: 36px;
    background-color: #ef607a;
    font-family: 'open-sans-light';
    font-size: 13px;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
}

.layout-connect-modal .text-center {
    text-align: center;
}

.layout-connect-modal.show {
    display: block;
    opacity: 0;    
    /*transform: translateY(-100px);*/
    animation-name: modal_show;
    animation-delay: 0s;
    animation-duration: 0.8s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes modal_show {
    from {
        opacity: 0;        
        /*transform: translateY(-100px);*/
    }

    to {
        opacity: 1;        
        /*transform: translateY(0px);*/
    }
}

.layout-connect-modal.hide {
    animation-name: modal_hide;
    animation-delay: 0s;
    animation-duration: 0.8s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes modal_hide {
    from {
        opacity: 1;        
        /*transform: translateY(0px);*/
    }

    to {
        opacity: 0;
        /*transform: translateY(-100px);*/
    }
}

/*-----------  mobiles -----------*/

@media screen and (max-width:900px) {
    .slider .arrow-left {
        display: none !important;
    }

    .slider .arrow-right {
        display: none !important;
    }
}

@media screen and (max-width:700px) {
    .layout-root {
        padding: 0px;
    }

    .layout-footer {
        display: none;
    }

    .layout-slider {
        height: 100%;
    }

    .layout-search {
        display: none;
    }

    .layout-search-button {
        display: block;
    }

    .layout-acces-blog {
        left: 10px;
        top: 10px;
        width: 60px;
    }

    .layout-acces-blog {
        position: absolute;
        left: 10px;
        top: 10px;
        width: 60px;
        height: 60px;
        background-image: url(../images/accueil/acces-blog-mobile.png);
        background-repeat: no-repeat;
        background-size: 100%;
    }

    .layout-connect-button {
        position: absolute;
        top: 10px;
        left: 80px;
        z-index: 4;
        width: 60px;
        height: 60px;
        border: none;
        background-color: transparent;
        background-image: url(../images/accueil/btn-espace-client-top.png);
        background-repeat: no-repeat;
        background-size: 100%;
    }

    /*
    .layout-connect-button.top {
        animation-name: connect_button_on;
        animation-delay: 0.5s;
        animation-duration: 0.5s;
        animation-timing-function: ease;
        animation-fill-mode: forwards;
    }
    */

    .layout-navigation .layout-nav-button {
        width: 55px;
        height: 38px;
        background-size: 138px;
        background-position: -74px 0px;
        overflow: hidden;
    }

    @keyframes connect_button_on {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }


    .layout-connect-modal label {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .layout-connect-modal input[type="text"], 
    .layout-connect-modal input[type="password"] {
        width: 100%;
    }
    
    .layout-connect-modal p {
        text-align: center;
    }
    
    .layout-connect-modal>div>span {
        right: 50%;
        top: calc(50% - 280px);
        transform: translateX(50%);
    }


}

@media screen and (max-width:500px) {

    .layout-header h1 {
        font-size: 20pt;
        zoom: 1;
    }

    .layout-header h1 span {
        font-size: 10pt;
    }
}

@media screen and (max-height:900px) {

    .layout-header header>img {
        display: none;
    }

}

@media screen and (max-height:600px) {
    .slider .arrow-left {
        display: none !important;
    }

    .slider .arrow-right {
        display: none !important;
    }
}

@media screen and (max-height: 750px) {

    .layout-header {
        top: 40%;
        transform: translate(-50%, -50%);
    }

    .layout-header header>p>img {
        max-width: 80px;
    }

    .layout-header h3 {
        display: none;
    }

}

@media screen and (max-height:650px) {

    .layout-header h2:before,
    .layout-header h2:after {
        display: none;
    }

    .layout-header h3 {
        display: none;
    }

}

@media screen and (max-height:500px) {

    .layout-header h2 {
        display: none;
    }

    .layout-footer {
        display: none;
    }

    .layout-slider {
        height: 100%;
    }

    .layout-search {
        bottom: 30px;
    }
}

@media screen and (max-height:450px) and (max-width:850px) {
    .layout-navigation .layout-nav-button {
        top: 10px;
        right: 10px;
    }

    .layout-acces-blog {
        top: 10px;
        left: 10px;
    }

    .layout-connect-button {
        top: 10px;
        left: 80px;
    }

    .layout-search {
        width: calc(100% - 130px);
    }
}

@media screen and (max-width:1280px) and (max-height:800px) {
    .layout-header>div>header {
        zoom: 0.9;
    }
    
}

@media screen and (max-width:1180px) and (max-height:820px) {
    .layout-header>div>header {
        zoom: 0.9;
    }
    
}

@media screen and (max-width:1024px) and (max-height:768px) {
    .layout-header>div>header {
        zoom: 0.8;
    }
    
}



