/* ---------------------- global */

:root {   
    --orange: #e4632c;   
    
    --light-theme-titre : #111;
    --light-theme-text : #444;
    --light-theme-background : #f8f7f8;
    
    --dark-theme-titre : #fff;
    --dark-theme-text: #b8b8b8;
    --dark-theme-background : #000000;

    --panel-width: 600px;

    --on: 0%;
    --off: 60%;
}

body {
    overflow: hidden;
}

.widget-fermer-page {
    display: none;
}

.layout-logo {
    display: block;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

*.hide {
    display: none !important;
}

/* ---------------------- .layout-columns */

.layout-columns {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100vh;
}

.layout-left {
    position: relative;
    width: 65%;
    height: 100%;
}

.layout-right {
    position: relative;
    width: 35%;
    height: 100%;
    background-color: var(--light-theme-background);
}

.layout-right.dark-theme {
    background-color: var(--dark-theme-background);
}

.layout-columns.right-hidden .layout-left {    
    width: 100%;
}

.layout-columns.right-hidden .layout-right {    
    display: none;
}

.layout-left .layout-logo {
    display: none;
    margin-bottom: 40px;
    opacity: 0;
}

.layout-columns.right-hidden .layout-left .layout-logo {
    display: inline-block;
    animation-name: show_logo;
    animation-delay: 2s;
    animation-duration: 0.1s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes show_logo {
    from {opacity: 0;}
    to{opacity: 1;}    
}

.layout-right>div {
    overflow-y: auto;
    height: 100vh;
    padding-top: 50px;
    padding-bottom: 100px;
}


/* ---------------------- .layout-burger */

.layout-burger-open {
    display: none;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.layout-burger-open:before {
    content: 'Menu';
    display: inline-block;
    position: absolute;
    top: 11px;
    left: -50px;
    font-family: 'futura';
    font-size: 14px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: normal;
}

.dark-theme .layout-burger-open:before {
    color: #fff;
}

.layout-burger-open i {
    font-size: 40px;    
    display: block;
    color: #000;
    cursor: pointer;
}

.dark-theme .layout-burger-open i {
    color: #fff;
}


.layout-burger-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: fit-content;  
    z-index: 3;      
}

.layout-burger-close i {
    font-size: 40px;
    display: block;
    color: #fff;
    cursor: pointer;
    text-shadow: 0px 0px 5px rgba(0,0,0,0.2);
}


/* ---------------------- .layout-navigation-list */

.layout-navigation-list {
    display: flex;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0%;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation-name: show_list;
    animation-delay: 1s;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
}

@keyframes show_list {
    from {
        opacity: 0;
        transform: translateY(5%);
    }

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

.layout-navigation-list li {
    display: block;
    text-align: center;
    width: 100%;
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(-300%);
    animation-name: show_li;
    animation-delay: 0.4s;
    animation-duration: 0.8s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

@keyframes show_li {
    from {
        opacity: 0;
        transform: translateY(-300%);
    }

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

.layout-navigation-list li a {
    display: block;
    height: 30px;
    line-height: 30px;
    cursor: pointer;
    font-family: 'acier-text';
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    text-shadow: 0px 0px 5px rgba(0,0,0,0.2);
}

.layout-navigation-list li a::after {
    display: block;
    content: attr(title);
    font-family: 'acier-text';
    font-size: 25px;
    color: #000;
    letter-spacing: 0.05em;
}

.layout-navigation-list li.on a {
    animation-name: show_after;
    animation-delay: 0s;
    animation-duration: 0.2s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    animation-direction: alternate;
}

@keyframes show_after {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-30px);
    }
}

.layout-navigation-list li.off a {
    animation-name: hide_after;
    animation-delay: 0s;
    animation-duration: 0.2s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    animation-direction: alternate;
}

@keyframes hide_after {
    from {
        transform: translateY(-30px);
    }

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

/* ---------------------- .layout-presentation */

.layout-presentation h1 {
    font-family: 'futura';
    font-size: 28px;
    font-weight: 100;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    padding-left: 20px;
    padding-right: 20px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    color: var(--light-theme-titre);
}

.dark-theme .layout-presentation h1 { 
    color: var(--dark-theme-titre);
}

.layout-presentation div {
    font-family: 'roboto-regular';
    font-size: 15px;
    line-height: 1.4;
    color: var(--light-theme-text);
    hyphens: auto;
    margin-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

.dark-theme .layout-presentation div {
    color: var(--dark-theme-text);
}

.layout-presentation h1:before {
    content: '';
    display: block;
    position: relative;
    width: 60px;
    height: 2px;
    background-color: var(--orange);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}


/* ---------------------- .layout-publicite */

.layout-publicite {
    position: relative;
    padding: 0px 20px;
    margin-top: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.layout-publicite .layout-photo {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.layout-publicite:hover .layout-photo:before {
    content: '';
    display: inline-block;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(90px / 4);
    height: calc(100px / 4);
    background-image: url(../../images/arrow-white.png);
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
}

.layout-publicite .layout-photo a {
    display: block;    
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 100%;    
    text-decoration: none;
}

.layout-publicite .layout-photo img {  
    position: relative;  
    z-index: 1;
    width: 100%;
    height: 100%;    
    object-fit: cover;
    object-position: top center;
}

.layout-publicite .layout-textes {
    width: 90%;
    margin-left: 5%;
    margin-top: -20%;
    background-color: #fff;
    padding: 20px;
    z-index: 2;
    position: relative;
    border-radius: 5px;
}

.dark-theme .layout-publicite .layout-textes {
    background-color: #1c1c1c;
}

.layout-publicite .layout-textes h2 {
    font-family: 'futura';
    font-size: 20px;
    font-weight: 100;
    text-transform: uppercase;
    color: var(--light-theme-titre);
    text-align: center;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.1;
}

.dark-theme .layout-publicite .layout-textes h2 {
    color: var(--dark-theme-titre);
}

.layout-publicite .layout-textes h2:before {
    content: '';
    display: block;
    position: relative;
    width: 40px;
    height: 2px;
    background-color: var(--orange);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
    margin-top: 10px;
}

.layout-publicite .layout-textes a {
    font-family: inherit;
    font-size:inherit;
    font-weight: inherit;
    color: inherit;    
    text-decoration: none;    
}

.layout-publicite .layout-textes div {
    font-family: 'roboto-regular';
    font-size: 13px;
    text-align: left;
    color: var(--light-theme-text);
    line-height: 1.5;
}

.dark-theme .layout-publicite .layout-textes div {
    color: var(--dark-theme-text);
}


/* ---------------------- .layout-imagettes */

.layout-imagettes {
    display: flex;
    flex-direction: row;
    margin-top: 50px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-start;
    align-content: flex-start;
}

.layout-imagette {
    width: calc(50% - 30px);
    margin: 10px;
}

.layout-imagettes[data-imagette-length="1"] .layout-imagette {
    width: 100%;
    max-width: 350px;
}

.layout-imagette .layout-photo {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: block;
    border-radius: 3px;
}

.layout-imagette .layout-photo:after {
    content: '';
    display: inline-block;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(90px / 4);
    height: calc(100px / 4);
    background-image: url(../../images/arrow-white.png);
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
}

.layout-imagette .layout-photo a {
    display: block;
    position: absolute;
    z-index: 3;
    height: 100%;
    width: 100%;
}

.layout-imagette .layout-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-imagette h2 {
    margin-top: 8px;
    text-align: center;
}

.layout-imagette h2 a {
    display: block;
    font-size: 16px;
    font-family: 'helvetica';
    line-height: 1.2;
    color: var(--light-theme-text);
    text-decoration: none;
    font-weight: normal;
}

.dark-theme .layout-imagette h2 a {
    color: var(--dark-theme-text);
}


/* ---------------------- .layout-villes */

.layout-villes {
    margin-top: 50px;
}

.layout-villes h2 {
    font-family: 'futura';
    font-size: 20px;
    font-weight: normal;
    text-transform: uppercase;
    text-align: center;
}

.layout-villes h2:before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    background-color: var(--orange);
}

.layout-villes ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 10px;
    flex-wrap: wrap;
}

.layout-villes li {
    display: block;
    margin: 3px;
}

.layout-villes li a {
    display: block;
    padding: 8px 12px;
    border-radius: 3px;
    background-color: #e1e1e1;
    font-family: 'helvetica';
    font-size: 14px;
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.dark-theme .layout-villes {}

.dark-theme .layout-villes h2 {
    color: #fff;
}

.dark-theme .layout-villes ul {}

.dark-theme .layout-villes li {}

.dark-theme .layout-villes li a {
    background-color: #272727;
    color: #fff;
}


/* ---------------------- .layout-content */

.layout-content {
    position: relative;
    z-index: 1;
    padding: 0;
}

.layout-content:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgb(0 38 81 / 20%);
    background-color: rgba(0,38,81,0.2);
}


/* ---------------- .background-photos-slider */

.background-photos-slider {
    display: block !important;
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100vh !important;

    opacity: 0;
    transform: translateY(-5%);

    animation-name: show_photos;
    animation-delay: 0.5s;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.background-photos-slider figure {
    display: block !important;
    position: absolute !important;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
}


.background-photos-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
}

.background-photos-slider figure:nth-child(1) {
    animation-delay: 0s;
}

.background-photos-slider figure:nth-child(2) {
    animation-delay: 2.5s;
}

.background-photos-slider figure:nth-child(3) {
    animation-delay: 5s;
}

.background-photos-slider figure:nth-child(4) {
    animation-delay: 7.5s;
}


@keyframes show_photos {
    from {
        opacity: 0;
        transform: translateY(-5%);
    }

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


.layout-footer {
    margin-top: 0;
    display: none;
}




/* -------------- MOBILES ---------------- */

@media screen and (min-width: 1500px) {

    .layout-left {
        width: calc(100% - var(--panel-width));
    }

    .layout-right {
        width: var(--panel-width);
    }    
}

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

    .layout-imagette {
        width: 100%;
        max-width: 350px;
    }
}

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

    body {
        overflow: auto;
    }

    .layout-columns {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .layout-left {
        width: 100%;
        height: 0vh;
        overflow: hidden;
    }

    .layout-burger-open {
        display: block;
    }

    .layout-burger-close {
        display: block;
    }

    .layout-left.on {
        animation-name: show_left_pan;
        animation-delay: 0s;
        animation-duration: 1s;
        animation-timing-function: ease;
        animation-fill-mode: forwards;
        height: 0vh;;
    }

    @keyframes show_left_pan {
        from {
            height: 0vh;
        }
        to {
            height: 100vh;
        }
    }    

    .layout-left.off {
        animation-name: hide_left_pan;
        animation-delay: 0s;
        animation-duration: 1s;
        animation-timing-function: ease;
        animation-fill-mode: forwards;
        height: 100vh;
    }

    @keyframes hide_left_pan {
        from {
            height: 100vh;
        }
        to {
            height: 0vh;
        }
    }

    .layout-right {
        width: 100%;
        height: auto;
    }

    .layout-right>div {
        height: auto;
        padding-top: 20px;
    }

    .layout-publicite:hover:before {       
        top: 40%;       
    }
}
    
@media screen and (max-width: 500px) {
    
    .layout-navigation-list li {
        margin-bottom: 25px;
    }
    
    .layout-navigation-list li a {
        font-size: 22px;
    }

    .layout-content:before {
        background-color: rgba(0,38,81,0.4);
    }
}
