/* TYPOS */

    @font-face{
        font-family: 'Faune';
        src: url(fonts/Faune-TextBold.otf);
    }

    @font-face{
        font-family: 'Faune-italique';
        src: url(fonts/Faune-TextItalic.otf)
    }

    @font-face{
        font-family: 'Faune-thin';
        src: url(fonts/Faune-DisplayThin.otf)
    }

    @font-face{
        font-family: 'Garamond';
        src: url(fonts/Garamond-Regular.ttf)
    }

    @font-face{
        font-family: 'Avara';
        src: url(fonts/Avara-Bold.otf);
    }

    @font-face{
        font-family: 'Garamond-italique';
        src: url(fonts/GARAIT.TTF);
    }


/* PAGES */

 @media print{

    @page{
    size: 145mm 180mm;
    margin-top: 85px;
    margin-bottom: 80px;
    margin-left: 80px;
    margin-right: 80px;
    /* bleed: 6mm;
    marks: crop cross; */
    }

    @page:left{
        @top-center{
            content: string(chapTitle);
            font-family: 'Avara';
            font-size: 11px;
            letter-spacing: 5px;
            padding: 45px;
            margin-top: 5px;
        }
        @bottom-center{
            content: counter(page);
            font-family: 'Avara'; 
            font-size: 11px;
            margin-bottom: 10px;
        }
    }

    @page:right{
        @top-center{
            content: string(bookTitle);
            font-family: 'Avara'; 
            font-size: 11px;
            letter-spacing: 5px;
            padding: 45px;
            margin-top: 5px;
        }
        @bottom-center{
            content : counter(page);
            font-family: 'Avara'; 
            font-size: 11px;
            margin-bottom: 10px;
        }
    }

    @page:nth(3){
        margin-bottom: 20px;
        @top-center{
            content: none;
        }
        @bottom-center{
        content: none; 
        }
    }
    @page:nth(4){
        margin-bottom: 20px;
        @bottom-center{
        content: none; 
        }
        @top-center{
            content: none;
        }
    }
    @page:nth(5){
        margin-bottom: 20px;
        @bottom-center{
        content: none; 
        }
        @top-center{
            content: none;
        }
    }
    @page:nth(66){
        margin-bottom: 40px;
        margin-top: 30px;
        margin-right: 60px;
        margin-left: 60px;

        @bottom-center{
        content: none; 
        }
        @top-center{
            content: none;
        }
    }

    @page chapitre:first{
        @top-center{
            content: none;
        }
        @bottom-center{
            content: none;
        }
    }

    @page nouvelle:first{
        @top-center{
            content: none;
        }
    }

    @page:blank{
        @bottom-center{
            content : none;
        }
        @top-center{
            content: none;
        }
    }

    @page:first{
        margin-top: 30px;
        margin-right: 60px;
        margin-left: 60px;
        margin-bottom: 20px;

        @top-center{
            content: none;
        }
        @bottom-center{
            content: none;
        }
    }
}


                        /* COUVERTURE */

h1{  /* TITRE */ 
    font-family: 'Avara';
    text-align: center;
    color: rgb(165, 52, 37);
    font-size: 34px;
    letter-spacing: 6px;
    string-set: bookTitle content(text);
    margin-bottom: 0px;
    z-index: 3;
}

h5{  /* LE FAON */ 
    font-family: 'Garamond';
    text-align: center;
    font-size: 14px;
    position: absolute;
    bottom: 17px;
    width: 100%;
    margin-top: Opx;
    z-index: 4;
}

#img-couv{
    position: relative;
    width: 80%;
    height: auto;
    margin-left: 20px;
    margin-top: 10px;
    z-index: 1;
} 

/* #fond{
    position: absolute; 
    width: 120%;
    bottom: 0;
    opacity: 23%;
    z-index: 2;
} */ 


                        /* PAGE DE GARDE */

    .credits{
        font-family: 'Garamond';
        text-align: center;
        font-size: 13px;
        break-before: left;
        position: absolute;
        bottom: 17px;
        width: 100%;
    }

    h2{ /* TITRE 2*/ 
        break-before: right;
        font-family: 'Avara';
        text-align: center;
        color: rgb(165, 52, 37);
        font-size: 34px;
        letter-spacing: 6px;
        margin-top: 30px;
        margin-bottom: 10px;
    }

    h3{  /* RECUEIL DE NOUVELLES */ 
        font-family: 'Garamond-italique';
        text-align: center;
        font-size: 19px;
        margin-top: 0px;
        letter-spacing: 1px;
    }

    h4{ /* DIRIGÉ PAR */ 
        font-family: 'Garamond';
        text-align: center;
        font-size: 14px;
        margin-top: 80px;
    }

                        /* AVANT-PROPOS */

#avant-propos{
    margin-top: 210px;
    word-spacing: 0.1px;
}

#titre-avant-propos{ /* TITRE */ 
    break-before: right;
    font-family: 'Avara';
    text-align: center;
    font-size: 30px;
    letter-spacing: 6px;
    margin-top: 50px;
    position: absolute;
    width: 100%;
    z-index: 6;
}

#texte-avant-propos{
    /* position: absolute; */
    /* margin-top: 185px;
    word-spacing: 0.1px; */
    /* bottom: 0;
    margin-bottom: 0px; */
}
    #rond1{ /*PLEIN NOIR*/
        width: 15%;
        position: absolute;
        z-index:1;
        margin-left: 200px;
    }

    #rond2{ /*N1*/ 
        position: absolute;
        width: 30%;
        z-index:2;
        margin-top: 16px;
        margin-left: 27px;
    }

    #rond3{/*PETIT*/ 
        position: absolute;
        width: 12%;
        z-index:3;
        margin-left: 132px;
        margin-top: 80px;
    }

    #rond4{
        position: absolute;
        width: 80px;
        z-index:4;
        margin-left: 260px;
        margin-top: 78px;
    }

    /* #rond5{
        z-index:5;
    } */ 



                        /* BOÎTES CHAPITRES */

.chapitre{
    break-before: right;
    display: flex;
    flex-direction: column;
}
    .chapitre{
        page: chapitre;
    }

.nouvelle{
    page-break-before: always;
}
    .nouvelle{
        page: nouvelle; 
    }


                        /* TYPOS CHAPITRES */

p{
    font-family: 'Garamond';
    font-size: 16px;
    text-align: justify;
    widows: 3;
    orphans: 3;
    margin-top: 0;
    text-indent: 5ch;
    word-spacing: 0.3px;
}

.lettrine{
    font-family: 'Avara';
    font-size: 28px;
    line-height: 12px;
}

.dialogues{
    font-family: 'Garamond';
    font-size: 16px;
    text-align: justify;
    widows: 3;
    orphans: 3;
    margin-top: 0;
    margin-bottom: 0;
    list-style-type: '- ';
}

.non-justifie{ /* LETHE */ 
    font-family: 'Garamond';
    font-size: 16px;
    text-align: left;
    widows: 3;
    orphans: 3;
    margin-top: 0;
}

.italique-droite{ /* CHIMÈRE 90 */ 
    font-family: 'Garamond-italique';
    font-size: 16px;
    text-align: justify;
    widows: 3;
    orphans: 3;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 5ch;
}


                        /* TITRES DES NOUVELLES */


h7{ 
    margin-top: 0;
    string-set: chapTitle content(text);
}

    #perlantide{
        font-family: 'Avara';
        font-size: 32px;
        letter-spacing: 10px;
        margin-top: 100px;
        text-align: center;
    }

    #evenements{
        font-family: 'Avara';
        font-size: 37px;
        letter-spacing: 5px;
        margin-top: 0px;
        text-align: left;
    }

    #eurydice{
        font-family: 'Avara';
        font-size: 32px;
        letter-spacing: 5px;
        margin-top: 30px;
        text-align: center;
        line-height: 50px;
        position: absolute;
        bottom: 155px;
        width: 100%;
    }

    #lethe{
        font-family: 'Avara';
        font-size: 32px;
        letter-spacing: 5px;
        margin-top: 30px;
        text-align: right;
        position: absolute;
        width: 100%;
    }
        h8{ /* SOUS-TITRE LÉTHÉ */ 
            font-family: 'Avara';
            font-size: 20px;
            letter-spacing: 5px;
            text-align: right;
            position: absolute;
            width: 100%;
            margin-top: 62px;
        }

    #chimere{
        font-family: 'Avara';
        font-size: 32px;
        letter-spacing: 5px;
        margin-top: 55px;
        text-align: left;
        position: absolute;
        width: 100%;
    }
        #citation{
            font-family: 'Garamond-italique';
            font-size: 16px;
            text-align: right;
            margin-top: 110px;
            position: absolute;
            width: 100%;
        }
        #nom-citation{
            font-family: 'Garamond';
            font-size: 16px;
            text-align: right;
            margin-top: 170px;
            position: absolute;
            width: 100%;
        }


                        /* NOMS DES AUTEURS-AUTRICES */ 
    
h9{ 
    font-size: 16px;
    margin-top: 0;
}

    #Thibault{
        font-family: 'Avara';
        text-align: center;
        font-size: 12px;
        line-height: 4em;
    }

    #Louis{
        font-family: 'Avara';
        text-align: left;
        font-size: 15px;
        line-height: 30px;
        letter-spacing: 2px;
    }

    #Simon{
        font-family: 'Avara';
        text-align: center;
        font-size: 16px;
        letter-spacing: 2px;
        position: absolute;
        bottom: 30px;
        width: 100%;
    }

    #Baud2{
        font-family: 'Avara';
        text-align: center;
        font-size: 14px;
        letter-spacing: 1px;
        position: absolute;
        bottom: 0px;
        width: 100%;
    }

    #Laure{
        font-family: 'Avara';
        text-align: center;
        font-size: 14px;
        letter-spacing: 2px;
        position: absolute;
        width: 100%;
        bottom: 30px;
    }


                        /* IMAGES */

#img-perlantide{
    align-self: center;
    position: relative;
    height: 300px;
    width: auto;
    margin-top: 40px;
}

#img-evenements{
    position: absolute;
    bottom: 0;
    width: 53%;
    height: auto;
    margin-left: 170px;
}

#img-eurydice{
    position: absolute; 
    width: 90%;
    height: auto;
    margin-left: 13px;
    bottom: 65px;
}

#img-lethe{
    position: absolute;
    bottom: 60px;
    width: 85%;
    height: auto;
    margin-left: 35px;
}

#img-chimere{
    position: absolute;
    bottom: 90px;
    width: 65%;
    height: auto;
}


                        /* TABLE DES MATIÈRES */


#titre-table{
    break-before: right;
    font-family: 'Avara';
    text-align: center;
    font-size: 25;
    letter-spacing: 5px;
    margin-top: 50px;
    position: absolute;
    width: 100%;
}

.table{
    font-family: 'Avara';
    font-size: 15px;
    letter-spacing: 3px;
    list-style: none;
}

nav ul{
    position: absolute;
    bottom: 30px;
    width: 100%;
    margin-left: 0px;
    line-height: 25px;
    padding: 0;
}

nav ul li a::after{
    content: target-counter(attr(href url), page);
    float: right;
    color: rgb(0, 0, 0);
    font-size: ;
}

a:link{
    color: rgb(0, 0, 0);
    text-decoration: none;
}
a:visited{
    color: rgb(165, 52, 37);
}
a:hover{
    color: #192f6b;
}
a:focus{
    color: #000000;
}
a:active{
    color: #009900;
}

#list-toc-generated{
    overflow-x: hidden;
}

/* fake leading */
nav li::after{
    content: 
        ".............................................."
        ".............................................."
        ".............................................."  
        "........";
    float: left;
    width: 0;
    padding-left: 5px;
    letter-spacing: 2px;
    font-size: 10px;
    color: rgb(63, 63, 100);
}

nav li{
    display: flex; 
    overflow: hidden;
}

nav li a::after{
    position: absolute;
    right: 0;
    background-color: white;
    padding-left: 6px;
}

nav li a{
    right: 0;
}


                        /* PAGE IMPRESSION */

#impression{
    font-family: 'Avara';
    font-size: 15px;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    line-height: 23px;
    margin-top: 50px;
}

#exemplaire{
    font-family: 'Avara';
    font-size: 15px;
    letter-spacing: 1px;
    text-align: center;
    line-height: 23px;
    margin-top: 50px;
    margin-right: 60px;
}

#img-impression{
    position: absolute;
    width: 15%;
    margin-top: 213px;
    margin-left: 225px;
}


                        /* QUATRIÈME DE COUV */

#quatrieme{
    font-family: 'Avara';
    font-size: 34px;
    color: rgb(165, 52, 37);
    letter-spacing: 6px;
    text-align: center;
    position: absolute;
    bottom: 30px;
    width: 100%;
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
    transform: scale(-1, 1);
}

#barcode{
    position: absolute;
    width: 25%;
    bottom: 0;
    margin-left: 160px;
}

#img-quatrieme{
    position: absolute;
    width: 80%;
    height: auto;
    margin-left: 60px;
    margin-top: 10px;
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
    transform: scale(-1, 1);
}