@font-face {
    font-family: 'DM Sans';
    src:url('DMSans.ttf') format("truetype-variations");
    font-weight: 1 999;
}
@font-face {
    font-family: 'DM Sans';
    src:url('DMSans-Italic.ttf') format("truetype-variations");
    font-weight: 1 999;
    font-style: italic;
}
/* Light 300 Reg 400 Bold 600 Black 900 */
body {
    /*      font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; */
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 1.2rem;
    /* Marges de 5% jusquà 1100px puis tout va dans les marges*/
    margin-left: max( 5%, calc( ( 100vw - 1100px ) /2 ));
    margin-right: max( 5%, calc( ( 100vw - 1100px ) /2 ));
	user-select : none;
}

/* Cache la barre de défilement */
body::-webkit-scrollbar {
    display: none;
}


div.Corps {
    margin-right: 30%;
}


p {
    margin : 0;
    line-height: 1.2em;
}

a {
    color: inherit;
    word-break: break-all;
}

a.illustration_ref {
    word-break: keep-all;
}

p.Corps_Texte-courant {
    margin-top: 0.5rem;
    text-indent: 2rem;
    text-align: justify;
}

.Notes_Italique, .Corps_Italique {
    font-style: italic;
}

/* COUVERTURE */
.Couverture p {
    line-height: 1.2em;
}
.Couverture_TC {
    font-size : 1.7rem;
    font-weight: 600;

}
.Couverture_Argouges {
    font-size : 1.7rem;
    font-weight: 900;
    margin-bottom: 1em;
}
.Couverture_Promo {
    font-size : 1.9rem;
    font-weight: 900;
    line-height: 1.3em;
}

.Couverture-Entete {
    margin-bottom: 4em;
}

p.Couverture_Titre  {
    font-size : 4.8rem;
    font-weight: 600;
    line-height: 1.1em;
}
p.Couverture_Sous-titre {
    font-size : 2.9rem;
    font-weight: normal;
    line-height: 1.1em;
}
.Auteur {
    margin-top: 10em;
}

/* SOMMAIRE */

.Sommaire {
    margin: 2em 0;
    padding:1em;
    border : 1px solid black;
    border-radius: 1em;
}

.Sommaire a {
    text-decoration: none;
}
.Sommaire_Titre-Sommaire {
    font-weight: 600;
    font-size:2rem;
}

.Sommaire_Titre-Niveau-1-Sans-numero, .Sommaire_Titre-Niveau-1 {
    margin-top: 10px;
    font-weight: 800;
    font-size:150%;
}
.Sommaire_Titre-Niveau-2 {
    font-weight: 600;
    font-size:120%;
}

/* TITRES */

ol.title {
    list-style-type: none;
    padding: 0;
}

.ol.title {
    font-weight: 600;
}

.Corps_Titre-Niveau-1-Sans-numero, .Corps_Titre-Niveau-1 {
    font-size: 2.5rem;
    margin-top: 2em;
    font-weight: 600;
}
.Corps_Titre-Niveau-2 {
    font-size: 2.2rem;
    font-weight: 600;
}
.Corps_Titre-Niveau-3 {
    font-size: 1.7rem;
    font-weight: 600;
}

li.Corps_Titre-Niveau-1 > span:first-of-type, li.Corps_Titre-Niveau-2 > span:first-of-type, li.Corps_Titre-Niveau-3 > span:first-of-type {
    display:inline-block;
    width:4.5rem;
    text-indent: 0; /* Annule celui du parent */
}
li.Corps_Titre-Niveau-1, li.Corps_Titre-Niveau-2, li.Corps_Titre-Niveau-3 {
    padding-left: 4.5rem;
    text-indent: -4.5rem;
}

/* NOTES */

._idFootnote {
    display: inline-block;
    float: right;
    position: relative;
    width: 25vw;
    margin-right: -28vw;
    font-size: 16px;
    text-indent: 0; /* Annule l'identation du <p> contenant */
    text-align: left;
    line-height: 1.2rem;
}

.Corps_Note {
    font-size: 1rem;
    font-weight: 300;
}
._idFootnote .Note_number {
    font-weight: bold;
}
@media (max-width: 768px) {
    div.Corps {
        margin: 0;
    }
    
    
    ._idFootnote { /* Sur mobile la note est intégrée au paragraphe */
        display: block;
        float: none;
        margin: 5% 10% 5% 10%;
        width: 80%;
    }
}

sup { /* Pour éviter que les exposants modifient l'interlignage */
    vertical-align: baseline;
    position: relative;
    top:-0.4em;
}



/* IMAGES */

.Illustration {
    height:100vh;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .95);
    transition: all .4s;

}

.Illustration:target {
    visibility: visible;
    opacity: 1;
    /*pointer-events: auto;*/
}
.Illustration > * {
    text-align: center;
}
.Illustration a {
    text-decoration: none;
	width:100vw;
}

/* REFERENCES */
.References_Reference {
    font-size: 80%;
    margin-bottom: 0.5em;
}
.References_Auteur {
    font-variant: small-caps;
}

.References_Titre {
    font-style: italic;
    font-weight: 800;
}


/* GLOSSAIRE */
.Glossaire {
    columns: 2;
}

.Glossaire .Entry {
    break-inside: avoid;
}

.Glossaire_Terme, .Glossaire_Definition, .Glossaire_Source {
    font-size: 80%;
}

.Glossaire_Terme {
    font-weight: bold;
    margin-top: 0.5rem;
}
.Glossaire_Source {
    font-style: italic;
}

/* AVANCEMENT DE LECTURE */
html {
    position:relative;
}
.progressbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 100vh);
    z-index: -1;
    overflow: hidden;
 }
 .progressbar::before {
    content: "";
    position: fixed;
    top: 0;
    left: -0.5%;
    width: 101%;
    height: 10px;
    background: linear-gradient(90deg, #369, #396);
 }
 .progressbar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -0.5%;
    width: 101%;
    height: 100%;
    background: linear-gradient(to bottom left, #fff 50%, #fff0 50%);
 }

 