header{
    background-color: transparent;
    border-bottom: 1px solid white;
}

body{
    overflow: hidden;
}

img{
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
}

#titreCourant{
    display: grid;
    position: fixed;
    top: var(--headerH);
    height: 0;
    transition: .2s;
    overflow: hidden;
    font-size: var(--fsS);
    width: 100%;
    grid-template-columns: repeat(12, 1fr);
    left: 0;
}

.titreShow{
    height: var(--headerH) !important;
}


#titreCourant div{
    display: flex;
    height: 100%;
    align-items: center;
}

.titreC{
    grid-column-start: 1;
    margin-left: var(--marge);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    display: block !important;
    margin-top: 12px;
    text-overflow: ellipsis !important;
    grid-column-end: 6;
}

.AuteurC{
    grid-column-start: 7;
    grid-column-end: 9;

}

.subCat{
    grid-column-start: 9;
    font-family: sabon;
    grid-column-end: 11;
}

.subCat span::before{
    content: "| ";
}


.subDate{
    font-family: sabon;
    justify-content: right;
    grid-column-start: 11;
    grid-column-end: 13;
    margin-right: var(--marge);
}



#imgHeader{
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    display: none;
    left: 0;
}

#introduction{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
    min-height: 100vh;
    max-width: 75%;
    margin: 0 auto;
}

#introduction h1{
    line-height: .95;
}

.reduce{
    font-size: 70px !important;
}

#chapeau{
    font-family: sabon;
    text-align: center;
    margin-top: calc(2 * var(--marge));
    line-height: 1.2;
    width: 70%;
}

.imgArt{
    display: block;
    position: fixed;
    top: 0;
    filter: grayscale(1);
    left: 0;
    width: 100%;
    height: 100%;
}

.imgArt img{
    object-fit: cover;
    width: 100%;
    max-height: unset !important;
    height: 100%;
}

.opFilt{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .75;
    background-color: black;

}


#backPage{
    margin-right: 15px;
    cursor: pointer;
}

#titre{
    font-size: var(--sanT);
    text-align: center;
}

.subTitle{
    margin-top: calc(1.5 * var(--marge));
    font-size: var(--sanM);
    padding-bottom: var(--marge);
}

main{
    display: block;
    height: calc(100vh - var(--headerH));
    overflow-y: scroll;
    scrollbar-width: none;
    top: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;

    position: relative;
    transition: .2s top, .2s height;
    z-index: 3;

}

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

.lecture{
    height: calc(100vh - 2*(var(--headerH))) !important;
    top: var(--headerH) !important;
}

article{
    max-width: 750px;
    margin: 0 auto;
    padding: 100px 140px;
    counter-reset: paragraphe;
}

#article{
    width: fit-content;
    display: block;
    margin: 0 auto;
    font-family: sabon;
    transition: .2s;
    background-color: white;
    color: black;
    line-height: 1.4;
}

article p{
    position: relative;
    display: block;
    counter-increment: paragraphe;
}


article p:hover::before{
    opacity: 1;
}


article p::before{
    content: counters(paragraphe, ".", decimal);
    display: block;
    position: absolute;
    transition: .2s;
    top: 0;
    opacity: 0;
    font-size: calc(var(--fsS) * .75) ;
    width: 70px;
    color: var(--grey);
    font-style: italic;
    left: -70px;
}

#article h2{
    font-family: sans;
}

#titreCourant a{
    text-decoration: none;
}

#article p::after, #article h1::after, #article h2::after, #article h3::after, #article h2::before,blockquote::after{
    display: block;
    content: " ";
    white-space: pre;
} 

#article em{
    font-style: italic;
}

#article strong{
    font-family: sans;
}

.footnotes{
    display: block;
    padding-top: calc(var(--marge) * 10);
}

.footnotes ol{
    box-sizing: border-box;
    display: block;
    padding: calc(var(--marge) * 2);
    column-count: 2;
    position: absolute;
    background-color: var(--grey);
    margin-left: 0 !important;
    left: 0;
    counter-reset: count;
    width: 100vw;
}

.footnotes ol li {
    display: inline-block;
    font-size: var(--fsS); 
    font-style: italic;
    color: var(--white);
    counter-increment: count;
    width: 100%;
}

.footnotes ol li p{
    display: contents;
}

.footnotes ol li::before{
      content: counters(count, ".", decimal);
      display: contents;
      margin-right: var(--marge);
}

.footnotes::before{
    content: "Notes et références";
    box-sizing: border-box;
    display: block;
    background-color: black;
    color: var(--white);
    font-family: sans;
    width: 100vw;
    transform: translate(0 , -100%);
    padding: var(--marge);
    position: absolute;
    left: 0;
}

#footNotesT{
    display: block;
    z-index: 5;
    max-height: 25vh;
    overflow-y: scroll;
    position: fixed;
    scrollbar-color: white var(--grey) ;
        scrollbar-width: none;

    bottom: 0;
    width: 1030px;
    left: 50%;
    padding: 0 140px;
    transform: translate(-50%, 0) !important;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: var(--grey);
}

.fnt{
    padding: var(--marge) 0;
    margin: var(--marge) 0;
    font-family: sabon;
    position: relative;
    color: var(--white);
    font-size: var(--fsS);

}

.fntClose{
    display: none;
}

.footnote-ref{
    vertical-align: text-top;
    font-size: .75em;
    margin-top: 5px;
    line-height: 0;
}

.fooN{
    display: block;
    position: absolute;
    padding: var(--marge);
    transform: translate(-100%, 0);
    width: 50px;
    top: 0;
    left: 0;
}



#dlMode{
    display: block;
    position: fixed;
    bottom: 0;
    z-index: 999;
    left: 0;
    cursor: pointer;
    padding: var(--marge);
    transition: .2s;
    background-color: var(--black);
    color: var(--white);
}

.dl{
    background-color: black !important;
    color: white !important;
}


.titreRel{
    display: block;
    position: relative;
    background-color: var(--black);
    width: 100%;
    padding: var(--marge);
    color: var(--white);
}

blockquote p{
    padding-left: calc(4 * var(--marge));
    border-left: 3px solid;

}

blockquote p::after{
    display: none !important;
}

.auteur{
    display: block;
    position: relative;
    margin-bottom: calc(2 * var(--marge));
}



li::after{
    display: block;
    white-space: pre;
    content: " ";
    line-height: .5;
}

ol li:last-of-type::after,ul li:last-of-type::after{
    display: none;
}


ol,ul {
    list-style: none;
    counter-reset: item;

}

ol li, ul li{
    counter-increment: item;
  position: relative;
  padding-left: 1.5em;
}

ol li::before{
    font-size: 17px;
    content: counter(item) ". ";
    top: 6px;
    font-weight: bold;
    position: absolute;
    left: 0;
    
}

ul li::before{
    content: "• ";
    position: absolute;
    left: 0;
    
}

ul::after, ol::after{
    display: block;
    content: " ";
    white-space: pre;
}

sup a{
    text-decoration: none;
}

.fnt{
    line-height: 1.3;
}

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

}


@media (orientation: portrait){

    main{
         height: calc(100dvh);
    }

    #article{
        width: auto;
    }

    .reduce{
        font-size: 35px !important;
    }

    #introduction{
        max-width: calc(100% - 2*var(--marge));
    }

    #chapeau{
        width: 100%;
    }

    #titreCourant{
        font-size: var(--fsS);
        display: block;
        width: 100%;
        background-color: white;
        color: black;
        z-index: 10;
    }

    .titreC{
        padding: var(--marge);
        display: -webkit-box !important;
        height: var(--fsS) !important;
        white-space: nowrap;
        overflow: hidden;
        display: block !important;
        text-overflow: ellipsis !important;
        margin-top: 0;
        margin-left: 0;
        width: calc(100% - 2* var(--marge));
        
    }

    .AuteurC{
        display: none;
    }

    .subCat{
        display: none;
    }

    .subDate{
        display: none;
    }

    article{
        max-width: auto;
        padding: var(--marge);
        padding-bottom: 0;
    }

    .lecture{
        height: calc(100dvh - 1*(var(--headerH))) !important;
        top: var(--headerH) !important;
    }

    #dlMode{
        display: none;
    }

    #footNotesT{
        width: 100%;
        left: 0;
        transform: translate(0, 0) !important;
        padding: 0 var(--marge);
    }

    .footnotes ol{
        column-count: 1;
        position: relative;
        margin-left: -10px !important;
    }

    .fnt{
        font-size: 15px;
    }




    /****   ARTICLE RELATIFS ****/ 

     .np a{
        display: flex;
        height: auto;
        text-decoration: none;
        background-color: var(--grey);
        flex-direction: column-reverse;
    }


    .artInfo{
        display: block;
        padding: var(--marge);
        margin: var(--marge);
        grid-column: span 2;
    }

    .artInfo h2{
        font-size: var(--sanM);
        padding-bottom: calc(2 * var(--marge));

    }

    .artInfo h3{
        padding-bottom: calc(2 * var(--marge));
    }

    .dateArt{
        display: none;
    }
    .catArt{
        display: none;
    }

    .subInfo{
        font-family: sabon;
        display: block;
        width: 100%;
        font-size: var(--fsS);
        padding-bottom: calc(2 * var(--marge));
    }

    .artIntro{
        font-family: sabon;
        font-size: var(--fsS);
        line-height: 1.3;
         overflow: hidden;
        line-clamp: 3;

        /* fallback */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .artImage{
        grid-column-start: 4;
    }

    .artImage img{
        display: block;
        width: 100%;
        height: auto;
    }



}