@font-face {
    font-family: 'ebtrainer';
    src: url('fontes/WOFF2/EBTrainerGrotesk-Book.woff2');
}
@font-face {
    font-family: 'ebtrainer';
    src: url('fontes/WOFF2/EBTrainerGrotesk-BookItalic.woff2');
    font-style: italic;
}

*{
    cursor: url("cursor.png"), auto !important;
}

a{
    text-decoration: none;
    color: unset;
}

:root{
    --marge : 7px;
}

::selection{
    background-color: black;
    color: white;
}

body{
    font-family: 'ebtrainer';
    margin: 0 auto;
    line-height: 1.15;
}

main{
    z-index: 2;
    display: block;
    position: fixed;
    pointer-events: none;
    top: 0;
    left: 0;
}

#main{
    display: grid;
    
    /* valeurs animables */
    --open: 3fr;
    --close: 1fr;

    /* état initial : 3 open + 2 close */
    --c1: var(--open);
    --c2: var(--open);
    --c3: var(--open);
    --c4: var(--close);
    --c5: var(--close);

    grid-template-columns: var(--c1) var(--c2) var(--c3) var(--c4) var(--c5);
        
    transition: .2s;
    

    position: fixed;
    top: 0;
    gap: var(--marge);
    left: 0;
    width: calc(100vw - (2 * var(--marge)));
    height: calc(100vh - (2 * var(--marge)));;
    margin:var(--marge);
    background-color: whitesmoke;
}

.col{
    display: block;
    position: relative;
    padding: var(--marge) calc(2 * var(--marge));
    transition: .2s;
    background-color: lightgray;
    height: calc(100vh - (4 * var(--marge)));
}

.col:hover{
    background-color: darkgray;
}

.col .content{
    opacity: 0;
}


.dot{
    color: white;
}

.open:hover{
    background-color: lightgray !important;
}

.open .content{
    opacity: 1;
}

.titlePart{
    display: block;
    position: absolute;
    bottom: var(--marge);
    left: calc(2 * var(--marge));
}

.open .titlePart::after{
    color: white;
    content: " •";
}

.content{
    transition: .2s;

}

.topB{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: var(--marge);
}

#contact a{
    display: block;
}

#itineraire a, #link a{
    text-decoration: underline 1px solid black;
}

#adresse{
    margin-left: 25%;
}

#link{
    margin-left: 50%;
}
#cont{
    margin-left: 25%;
}
#itineraire{
    margin-left: 50%;
}

#contact .texte div::after{
    display: block;
    content: " ";
    white-space: pre;
}

#diaporama{
    display: block;
    position: fixed ;
    top: 0;
    left: 0;
    width: 100vw;
    transition: 1.2s left;
    height: 100vh;
}

#diaporama img{
    position: absolute;
    object-fit: cover;
    display: block;
    width: 100%;
    height: 100%;
}

.imDiapo{
    opacity: 0;
}

.imDiapo:first-of-type{
    opacity: 1;
}

#title{
    display: block;
    position: absolute;
    top: 50%;
    color: white;
    left: 50%;
    transform: translate(-50%, -50%);
}

.center{
    text-align: center;
}

.after::after{
    display: block;
    white-space: pre;
    content:  " ";
}

.tcol{
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.tcol div{
    width: 50%;
}


.tcol p::after {
    display: block;
    content: " ";
    white-space: pre;
}

#smallm{
    margin-top: 30px;
    text-align: center;
    font-size: .8rem;
}

#smallm p::after{
    display: block;
    white-space: pre;
    content: " ";
}

#vins{
    margin-top: 30px;
}

#vins h3{
    margin-bottom: 40px;
}

.colt{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.prod{
    display: inline-block;
    width: 100%;
}
.marge{
    display: block;
    margin-left: 10%;
}

#reserver a{
    text-decoration: 1px solid underline;
}

.entry{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.entry a{
    display: contents !important;
}

#credits{
    display: block;
    position: absolute;
    bottom: calc(var(--marge) + 1rem + 50px);
}

#reserver:hover {
    background-color: darkgrey;
}

@media (orientation: landscape){
    #menuMobile{
        display: none;
    }
}

@media (orientation:portrait){

    body{
        background-color: lightgray;
        font-size: .9rem;

    }

#main{
    display: block;

    overflow-y: hidden;
    scroll-behavior: smooth;

}

.titlePart{
    display: none;
}

#menuMobile{
    display: block;
    position: fixed;
    width: calc(100% - 2 * var(--marge) ) ;
    margin: calc(var(--marge) * 2) var(--marge);
    text-align: center;
    bottom: 0;
    left: 0;
}

#lineMobile{
    margin-top: var(--marge);
    display: flex;
    justify-content: space-around;
}

.col{
    overflow-y: scroll;
}

.content{
    opacity: 1 !important;
}

.activeM{
    position: relative;
}

.am::after{
    display: block;
    position: absolute;
    left: 100%;
    top: 0;
    color: white;
    white-space: pre;
    content: " •";
}

#credits{
    display: block;
    position: absolute;
    bottom: calc(var(--marge) + 1rem + 10vh);
}

}