:root{
    font-size: 16px;
    --baseline: 1.2rem;
    --riso1: red;
    --csscolor: rgb(0, 0, 0);
}

@font-face {
    font-family: "Unifraktur";
    src: url(assets/UnifrakturMaguntia.woff2) format("woff2");
}

@font-face {
    font-family: "UnormativeFraktur";
    src: url(assets/UnormativeFraktur.otf) format("opentype");
    /* font-size-adjust: 80%; */
}

@page {
    size: 105mm 148mm;
    margin-left: 10mm;
    margin-right: 10mm;
    margin-top: 5mm;
    margin-bottom: 10.1mm;
    /* margin-bottom: 4.8rem; */
    /* outline: solid 1px black; */
}

@page:left {
    margin-left: 10mm;
    margin-right: 15mm;
    /* box-shadow: inset -15px 0px 25px black; */
    /* @bottom-left-corner {
        text-align: center;
        font-size: 1rem;
        transform-origin: center;
        translate: 4mm 1.7mm;
        width: 1.5rem;
        height: 1.5rem;
        color: white;
        z-index: 1;
        content: counter(page);
        font-variant-numeric: lining-nums;
    }
    @bottom-left {
        content:"•";
        z-index: 0;
        font-size: 8rem;
        translate: -8.1mm 0mm;
        line-height: 0;
        color:var(--riso1)
    } */
    /* .pagedjs_margin-right, .pagedjs_margin-bottom-right-corner-holder, .pagedjs_margin-top-right-corner-holder{
        background: linear-gradient(to right, transparent, 75%, var(--riso1));
    } */

    @bottom-left-corner{
        content:url(ico1.svg);
        position: absolute;
        width: 3rem;
        height: 3rem;
        left: 1rem;
        bottom: 0.8rem;
    }

    .pagedjs_margin-right{
        background: linear-gradient(to right, transparent, 75%, var(--riso1));
        height: 30cm;
        margin-top: -5cm;
    }
}

  
@page:right {
    margin-left: 15mm;
    margin-right: 10mm;
    /* box-shadow: inset 15px 0px 25px black; */
    /* @bottom-right-corner {
        text-align: center;
        font-size: 0.9rem;
        padding-top: 0.2rem;
        transform-origin: right;
        rotate: 45deg;
        translate: -1mm 3.4mm;
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 100%;
        background-color: var(--riso1);
        color: white;
        content: counter(page);
        font-variant-numeric: lining-nums;
    } */
    
    @bottom-right-corner{
        content:url(ico2.svg);
        position: absolute;
        width: 3rem;
        height: 3rem;
        right: 1rem;
        bottom: 1rem;
    }
    /* .pagedjs_margin-left, .pagedjs_margin-bottom-left-corner-holder, .pagedjs_margin-top-left-corner-holder{
        background: linear-gradient(to left, transparent, 75%, var(--riso1));
    } */

    .pagedjs_margin-left{
        background: linear-gradient(to left, transparent, 75%, var(--riso1));
        height: 30cm;
        margin-top: -5cm;
    }
}

@page:first{
    .pagedjs_margin-left, .pagedjs_margin-bottom-left-corner-holder, .pagedjs_margin-top-left-corner-holder{
        background: white
    }
}

.pagedjs_page_content > div:first-child > p:first-child,
.pagedjs_page_content > div:first-child > h2:first-child,
 .pagedjs_page_content > div:first-child > h3:first-child,
 .pagedjs_page_content > div:first-child > h4:first-child,
 .pagedjs_page_content > div:first-child > section > p:first-child,
 .pagedjs_page_content > div:first-child > section > h2:first-child,
 .pagedjs_page_content > div:first-child > section > h3:first-child,
 .pagedjs_page_content > div:first-child > section > h4:first-child{
    margin-top: 0;
}

.footnote,.book .footnote {
    font-size: 0.75rem;
    line-height: 1rem;
    float: footnote;
    list-style-position: outside;
    margin-top: 0;
}
.footnote:last-child{
    margin-bottom: 0;
}
/* .footnote:first-child{
    margin-top: 1rem;
} */

.pagedjs_pagebox > .pagedjs_area > .pagedjs_footnote_area,.pagedjs_pagebox > .pagedjs_area > .pagedjs_footnote_area > .pagedjs_footnote_content{
    overflow: visible;
}

/* define the position of the footnote on the page (only bottom is possible for now) */

@page {
    @footnote {
        float: bottom;
        margin-top: 0rem;
    }
}
.references .footnote{
    display: none;
    position: relative;
}
::footnote-marker {
    content: counter(footnote, loweralpha) "† ";
  }
::footnote-call {
    content:"";
    display: none;
}

.unormative{
    font-family: "UnormativeFraktur";
    /* font-family: "UnormativeFraktur" "Unifraktur"; */
}

section.unormative{
    margin-top: -4px;
}

.unormative p{
    word-spacing: 0.5px;
}

.unifraktur{
    font-family: "Unifraktur";
}

body{
    hyphens: manual;
    /* font-family: "Baskervvol"; */
    font-family: "Unifraktur";
    font-feature-settings:"cv01","cv02" 2, "cv03", "cv04", "cv05", "cv06" 0, "cv07", "cv08", "cv09", "cv10",
                            "ss12", "ss13", "ss20",
                            "liga","cv28",
                            /*"cv29", modern hyphen */ 
                            /*"cv30", modern d*/
                            "cv31","cv32" 1, "cv33" 0;
    hyphenate-character: "\2010"; /* modern hyphen cv29 rend visible tous les &shy; sur chrome */ 
    margin: 0;
    text-align: justify;
    text-justify: distribute;
}
h2{
    font-feature-settings: "lnum";
}

em,i{
    font-size: 0.9em;
    /* margin-left: -3px; */
    text-justify: distribute;
    font-style: normal;
    font-style: oblique 0deg;
    transition: all 1s;
    letter-spacing: 0.2em;
    /* color: black; */
    word-spacing: -0.2em;
    margin-left: 0.1em;
    font-feature-settings:"cv01","cv02" 2, "cv03", "cv04", "cv05", "cv06" 0, "cv07", "cv08", "cv09", "cv10",
                            "ss12", "ss13", "ss20",
                            "liga" off,"cv28",
                            "cv29","cv30","cv31","cv32" 1, "cv33" 0;
}
em:hover,i:hover{
    font-style: oblique 22deg;
}
p em, p i, small{
    line-height: 1.2rem;
    /* line-height d'un enfant inline décale le parent de la baseline. 
    ça fixe le pb mais ne cale plus ces lignes exactement la baseline */
    vertical-align: bottom; /*à voir*/
}

.center{
    text-align: center;
}

sup{
    line-height: 0;
}
sup a{
    text-decoration: none;
}

.book p{
    font-size: 0.9rem;
}

p,ul{
    /* color: gray; */
    font-size: 1rem;
    line-height: 1.2rem;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

h1,h2,h3,h4,h5,.hr{
    font-weight: normal;
    text-align: center;
    break-inside: avoid;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.2rem;
    font-feature-settings:"cv01","cv02" 2, "cv03", "cv04", "cv05", "cv06" 0, "cv07", "cv08", "cv09", "cv10",
        "ss12", "ss13", "ss20",
        "liga","cv28",
        "cv29","cv30","cv31","cv32" 1, "cv33";
}
h4{
    margin-bottom: 0;
    font-size: 1.4rem;
}h4+p{
    margin-top: 0;
}
h1{
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-top: 0;
    /* font-weight: bold; */
    -webkit-text-stroke: 0.5px white;
    text-stroke: 0.5px white;
    /* line-height: 2.4rem; */
}
h2{
    font-size: 1.5rem;
    /* font-weight: bold; */
}
#cover h2{
    -webkit-text-stroke: 0.5px white;
    text-stroke: 0.5px white;
}
h3{
    font-size: 1.5rem;
}
/* p:has(>i:first-child) + p:has(>i:first-child){
    margin-top: calc(var(--baseline) * -1);
} */

/* #h2-1{
    page-break-before: always;
} */
#kant{
    border-bottom: 1px solid black;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
#ref-livre{
    /* border-bottom: 1px solid black; */
}
#editeur{
    rotate: -5deg;
}
.hr{
    display: none;
}

.mw-content-ltr {
    display: none;
    font-size: 1em;
    line-height: 1.2;
    margin-bottom: 0;
    margin-left: 5pt;
    margin-right: 5pt;
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: justify
    }
.reference {
    font-size: 0.75em;
    padding-left: 1.07pt;
    vertical-align: super
    }
.references {
    display: block;
    font-size: 0.75em;
    line-height: normal;
    list-style-type: decimal;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    margin-top: 1em
    }

span[lang="la"]{
    font-family: baskervvol;
}
em span[lang="la"]{
    font-style: normal;
    letter-spacing: normal;
    word-spacing: normal;
}

blockquote{
    margin: 0;
    position: relative;
}

blockquote::before{
    content:"“";
    font-size: 1rem;
    display: inline;
    float: left;
    margin-left: -1rem;
}

blockquote::after{
    content:"”";
    font-size: 1rem;
    position: absolute;
    right: -1rem;
    bottom: 0;
}

.last-just{
    text-align-last: justify;
}