/*CSS Document*/

HTML{
    overflow-y: scroll;    
}

BODY {
    text-align: center;
    padding: 0;
    margin: 0;
    font-family: 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 2ch;
    line-height: 2;
    /*background-color: #eae9f1;*/
    container-type: inline-size;
    min-width: 450px;
}

A:any-link{
    color: #1c2504;
}

DIV.header {
    background-image: url('../images/logo.png');
    background-color: #030724;
    background-repeat: no-repeat;
    background-position: center top 1em;
    background-size: auto 230px;
    width: 100%;
    display: block;
    min-height: 140vh;
    position: sticky;
    top:0px;
    z-index: 2;
}

BODY.loaded .page{
    display: block;
}

BODY.loaded DIV.header {
    min-height: 255px;
    transition:  min-height 2s, top 0s 2s;
    top: -140px;
}

#top-menu {
    cursor: pointer;
    background: url('../images/burger_blue.png') center center/40px no-repeat white;
    border-radius: 2em;
    width: 4em;
    height: 4em;
    border: none;
    float: right;
    margin-bottom: 0.6em;
    z-index: 4;
    position: relative;
}

#top-menu+br{
    clear:both;
}

menu{
    float:right;
    position: sticky;
    top: 0.5em;
    margin: 0.5em 0.5em 0 0.5em;
    z-index: 3;
}

menu>li{
    text-align: left;
    list-style: none;
}

menu>li>menu {
    position: absolute;
    float: none;
    display: none;
    clear: both;
    float: left;
    margin: 20px 0 0 13px;
    text-align: right;
    background-color: white;
    padding: 1em;
    border-radius: 5px;
    box-shadow: -2px 2px 20px grey;
}

menu>li>menu>li{
    white-space: nowrap;
}

.apropos menu>li>menu>li#apropos{
    display: none;
}

.accueil menu>li>menu>li#accueil{
    display: none;
}

menu>li:hover>menu{
    display: block;
}

menu>li:hover>#top-menu {
    margin-left: 210px;
}

menu>li>menu>li>ul {
    list-style: none;
    margin: 0;
    padding: 0 1em;
}



nav.crumbs {
    border-bottom: 3px solid #0c1638;
    text-align: left;
    position: sticky;
    top: 115px;
    background-color: white;
    padding-top: 0.5em;
    color: #101338;
    font-weight: 700;
    z-index: 1;
}

.accueil nav.crumbs{
    display: none;
}

nav.crumbs ul{
    list-style-type: none;
    padding-left: 0;
}

nav.crumbs ul li{
    display: inline-block;
}

nav.crumbs a::after{
    display: inline-block;
    color: #000;
    content: '>';
    font-size: 80%;
    font-weight: bold;
    padding: 0 3px;
}

.page {
    box-sizing: border-box;
    width: 1000px;
    margin: 0 auto;
    padding: 0 0 15em 0;
    background-image: url('../images/vsep.png');
    background-position: center bottom 3em;
    background-size: 400px;
    background-repeat: no-repeat;
    background-color: #fff;
    display: none;
}

.tban {
    margin: 0 calc((100vw - 500px) * -1);
    height: 200px;
    background: url('../images/banners/index.jpg') center bottom 40% /100vw  no-repeat;
}

.footer {
    background-color: #e0d7d3;
    padding: 2em calc((100% - 1000px) /2) 1em calc((100% - 1000px) /2);
    text-align: left;
    display: grid;
    gap: 1em;
    column-count: 2;
    grid-template-columns: 1fr 2fr;
}

.footer .contact,
.footer .follow{
    min-width: 330px;
}

.footer .map {
    grid-column: 2/2;
    grid-row: 1/3;
    width: 100%;
    height: 100%;
    border: 0;
}

.footer .legal {
    grid-column: 1/3;
    text-align: right;
    font-size: 0.9em;
}

.page .contact H2{
    font-size: 2.4em;
    margin:2em 0 0 0;
}

.page P{
    text-align: justify;
}

DIV.follow UL,
DIV.contact UL {
    display: inline-block;
    margin: 0;
    padding: 0;
}

DIV.follow UL LI, 
DIV.contact UL LI{
    text-align: left;
    display:block;
    line-height: 3.2;
}

DIV.follow UL LI::before, 
DIV.contact UL LI::before{
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    float: left;
    padding-right: 0.5em;
    content: ' ';
}

DIV.contact UL LI::before{
    background-image: url('../images/pictos.png');    
    background-size: 313px;
}

li.tel::before {
    background-position: -95px -82px;
}

li.courriel::before {
    background-position: -22px -215px;
}


li.fb::before {
    background: url('../images/fb.png') 0 0 /45px;
}

DIV.contact{
    display: inline-block;
    text-align: left;
}

DIV.contact H2, 
DIV.follow H2 {
    margin: 0;
}

DIV.gallerie {
    display: flex;
    line-height: 0;
    flex-direction: column;
    gap: 1em;
    flex-wrap: wrap;
    position: relative;
    background-color: #fff;
    z-index: 0;
    margin-top: 1em;
}

DIV.gallerie {
    height: calc(var(--img-width) * var(--gallerie-height) / var(--img-base-width) + var(--gallerie-gaps) * 1em);
}

.break-column {
   flex-basis: 100%;
   width: 0;
}

DIV.gallerie>DIV {
    width: calc(50% - 0.5em);
    position: relative;
}

DIV.gallerie>DIV>DIV.comments {
    position: absolute;
    bottom: 0;
    line-height: normal;
    background-color: #fff9;
    width: 100%;
    padding: 1em;
    box-sizing: border-box;
}

DIV.gallerie img{
    width: 100%;
}

.gallerie a {
    cursor: zoom-in;
}

@container (width < 1000px){

    DIV.logo {
        background-size:90%;
        min-height: 90vw;
    }

    .page{
        width: unset;
        background-size:300px;
        padding: 0 1em 15em 1em;
    }
    
    .footer{
        padding: 1em;
    }

    .tban {
        margin: 0 -1em;
        background: url('../images/banners/index.jpg') center center/cover  no-repeat;
    }
}

@container (width < 600px){
    menu{
        position: relative;
        top: 0;
    }

    DIV.gallerie {
        height:auto;
    }

    DIV.gallerie>DIV {
        width: unset;
        position: relative;
    }

    .footer{
        column-count: 1;
        gap: 1em;
        grid-template-columns:unset;
    }

    .footer .map{
        grid-column: unset;
        grid-row: unset;
        min-height: 400px;
    }

    .footer .legal{
        grid-column: unset;
    }
}