
:root{
    --marge: 10px;
    --fsS: 20px;
    --sanT: 60px;
    --sanM: 24px;
    --grey: #555;
    --black: #000;
    --white: #fff;
}

/* ---------- PAGE ---------- */

@page{
    size: A4;
    margin: 20mm;
    margin-left: 30mm;
}



/* ---------- BASE ---------- */

body{
    background-color: white;
    color: black;
    font-family: sabon !important;
    font-size: 10pt;
    line-height: 1.4;
}

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

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

/* éléments propres à la version web, masqués à l'impression */
#titreCourant,
.imgArt{
    display: none;
}

/* ---------- PAGE DE TITRE ---------- */

#introduction{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 5cm;
    text-align: center;
}

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

#titre{
    font-family: sans;
    font-size: var(--sanT);
    line-height: .95;
    text-align: center;
}

main{
    font-family: sabon;
}

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

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

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

/* ---------- ARTICLE ---------- */

article{
    counter-reset: paragraphe;
}

article p{
    margin-bottom: 1em;
    orphans: 2;
    font-family: sabon;
    widows: 2;
}

article h2{
    font-family: sans;
    margin: 1.5em 0 .75em;
    break-after: avoid;
}

article h3{
    margin: 1.2em 0 .6em;
    break-after: avoid;
}

article em{
    font-style: italic;
}

article strong{
    font-family: sans;
    font-weight: normal;
}

/* ---------- CITATIONS ---------- */

blockquote{
    margin: 1em 0;
}

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

/* ---------- LISTES ---------- */

ol, ul{
    list-style: none;
    counter-reset: item;
    margin-bottom: 1em;
}

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

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

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

/* ---------- NOTES DE BAS DE PAGE ---------- */

.footnote-ref{
    font-size: .75em;
    line-height: 0;
    vertical-align: super;
}

sup a{
    text-decoration: none;
}

.footnotes{
    margin-top: 3em;
    padding-top: 1em;
    border-top: 1px solid black;
    font-size: 8pt;
    font-style: italic;
    line-height: 1.3;
}

.footnotes::before{
    content: "Notes et références";
    display: block;
    margin-bottom: .75em;
    font-family: sans;
    font-style: normal;
}

.footnotes ol{
    counter-reset: count;
}

.footnotes ol li{
    counter-increment: count;
    margin-bottom: .5em;
}

.footnotes ol li p{
    display: inline;
    margin: 0;
}

.footnotes ol li::before{
    content: counter(count) ". ";
    font-weight: normal;
}