@media screen {


    /* variables */
    :root {
        --padding: 1.5rem;
        --main-font-size: 1rem;
        --color-grey: #1b1b1b;
        --color-light: #dddddd;
        --color-text: var(--color-grey);
        --color-background: var(--color-light);
        --color-btn: rgb(241, 61, 16);
        scroll-behavior: smooth;
    }

    /* Fiction */
    .special-text {
        font-family: "DejaVuSerif", italic;
        font-size: 16px;
        /* font-weight: 500; */
        color: #474747;
        text-align: justify;
        margin: 30px 40px 30px 40px !important;
       /* margin-bottom: -3vh !important;*/
        line-height: 1;
        line-height: 1.4;
    }

    .petittitre {
        font-size: 1.5rem;
        line-height: 1;
    }


    .sous-titre {
        margin-top: 8vh;
        margin-bottom: 8vh;
    }

    /* global */
    html {
        padding: 0;
        margin: auto;
        color: var(--color-text);
        font-size: var(--main-font-size);
    }

    body {
        font-family: "CommitMono", monospace;
        font-size: 100%;
        background-color: var(--color-background);
        width: 100vw;
        height: 100vh;
    }


    /* titre fixe */
    .titre-fixe {
        position: sticky;
        top: 0;
        background-color: var(--color-btn);
        width: 100%;
        padding: 5px 0 10px 5px;
    }

    /* structure */
    .container {
        max-width: 50%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 200px;
    }


    /* images et légendes */
    .container figure {
        text-align: center;
        padding : 15px 0 0 0; 
    }

    .container figure .images-inline {
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    .container figure .images-inline img {
        width: 33.33%;
        /* margin: 0 10px 0 0; */
    }

    .container figure .images-inline img:nth-child(2){
        margin: 0 10px 0 10px;
    }

    .container figure figcaption {
        font-size: 0.8rem;
        line-height: 1;
        color: rgb(20, 20, 20);
        text-align: center;
        margin: 15px 0 25px 0
    }
    
    /* chapeau */
    .container .header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .container .header h1 {
        font-family: "CommitMono", monospace;
        line-height: 1;
        font-size: 4rem;
        font-weight: normal;
        /*margin: 120px 0 120px 0;*/
        margin: 120px 0 20px 0;
    }

    /* citation chapeau */
    .container .header blockquote {
        margin: 50px 0 60px 0;
        text-align: justify;
        padding: 0 0 0 60px;
        width: 90%;
    }

    .container .header blockquote .signature {
        font-size: 1rem;
        text-align: right;
        margin: 15px 0 0 0;
    }

    /* table des matières */
    .container .sommaire {
        list-style-type: none;
        padding-inline-start: 5vh;
        padding: 0;
        font-size: 1rem;
    }

    .container .sommaire a {
        text-decoration: none;
        color: var(--color-text);
    }

    .container .sommaire a:hover {
        text-decoration: wavy underline;
        text-decoration-thickness: 1px;
    }

    .container .sommaire .titre {
        margin: 0;
    }

    /* corps du texte */
    .container .chapitre {
        margin-top: none;
        text-align: justify;
    }

    .container .chapitre h2 {
        font-weight: normal;
        margin: 50px 0 25px 0;
        font-size: 1.8rem;
        text-align: left;
        line-height: 1.3;
    }

    .container .chapitre h3 {
        font-weight: normal;
        margin: 40px 0 20px 0;
        font-size: 1.2rem;
        line-height: 1.3;
        text-align: left;
    }

    /* paragraphe */
    .container .chapitre p {
        font-family: "CommitMono", monospace;
        margin: 0 0 20px 0;
    }

    .container .chapitre ul p {
        margin: 10px 0 0 0;
    }

    .container .chapitre p i {
        font-style: italic;
    }

    .container .chapitre p strong {
        font-weight: bold;
    }

    /* appel de note */
    .container .chapitre p sup {
        top: -0.5em;
    }

    .container .chapitre p sup a {
        color: rgb(89, 0, 255);
        text-decoration: none;
    }

    .container .chapitre p sup a:hover {
        color: rgb(218, 17, 17);
    }

    /* definition */
    .container .chapitre p .definition {
        background-color: rgb(166, 255, 0);
        cursor: pointer;
        position: relative;
    }

    .container .chapitre p .hide {
        display: none;
    }

    .container .chapitre p .definition:hover+.hide {
        display: block;
        position: absolute;
        font-family: "CommitMono", monospace;
        background-color: rgb(154, 119, 194);
        font-size: 0.8rem;
        line-height: 1.2;
        width: 100px;
        padding: 5px;
        transform: translate(-120px, -25px);
    }

    /* second paragraphe */
    .container .chapitre .paragraphe {
        font-family: "CommitMono", monospace;
        color: rgb(145, 141, 141);
    }

    /* citation */
    .container .chapitre blockquote {
        margin: 50px 0 60px 0;
        text-align: justify;
        padding: 0 0 0 60px;
        width: 90%;
    }

    .container .chapitre blockquote .signature {
        font-size: 1rem;
        text-align: right;
        margin: 15px 0 0 0;
    }

    /* video */
    .container .chapitre .video-container {
        margin: 20px 0 120px 0;
    }

    .container .chapitre .video {
        aspect-ratio: 16 / 9;
        width: 100%;
    }

    /* table */

    .data-container {
        margin: 60px 0 100px 0;
    }

    .data-container figcaption {
        font-size: 1rem;
        color: rgb(20, 20, 20);
        text-align: center;
        margin: 15px 0 25px 0
    }

    .data {
        width: 100%;
        border-collapse: collapse;
    }

    .data td,
    .data tr {
        padding: 10px;
        border: 1px solid grey;
    }
/*
    .data tr td:nth-child(1) {
        width: 10%;
    }

    .data tr td:nth-child(2) {
        width: 10%;
    }
*/
    .data tr:nth-child(even) {
        background-color: rgb(168, 168, 168);
    }

    .data th {
        background-color: var(--color-grey);
        color: white;
        font-weight: normal;
        padding: 12px;
        text-align: left;
    }

    /* notes */
    .container .notes {
        margin: 60px 0 0 0;
        padding: 60px 0 0 0;
        width: 100%;
        font-size: 0.8rem;
        line-height: 1rem;
        border-top: 1px solid black;
    }

    .container .notes h3 {
        font-weight: normal;
        margin: 40px 0 20px 0;
        font-size: 1.2rem;

    /*//////////////////////////////// */
        line-height: 1;
    }
    .container .notes ol {
        padding: 0 0 0 20px;
    }

    .container .notes ol li {
        padding: 0 0 0 10px;
        margin: 0 0 10px 0;
    }

    .container .notes ol li a {
        color: var(--color-text);
    }

    /* annexe */

    .container .annexe {
        display: flex;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        margin: 120px 0 0 0;
        border-top: 1px solid black;
        padding: 60px 0 0 0;
    }

    .container .annexe article {
        flex: 1 0 50%;
        margin: 0 0 30px 0;
        padding: 0 30px 0 0;
        width: 100%;
    }

    .container .annexe article:last-child {
        flex: 0 1 50%;
    }

    .container .annexe article h2 {
        font-size: 1rem;
        font-weight: normal;
        margin: 0 0 10px 0;
        line-height: 1.2;
    }

    .container .annexe article p {
        font-family: "CommitMono", monospace;
        font-size: 0.9rem;
    }

    /* bouton pour remonter la page */

    .bouton-top {
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        background-color: var(--color-btn);

    }

    .bouton-top:hover {
        background-color: var(--color-grey);
    }



}

/* version mobile */

@media only screen and (min-width: 1px) and (max-width: 900px) {


    /* structure */

    .container {
        max-width: 100%;
    }

    /* citation chapeau */

    .container .header blockquote {
        text-align: left;
        width: 90%;
        margin: 0 20px 0 20px;
    }

    /* table des matières */

    .container .sommaire {
        margin: 60px 0 60px 0;
    }

    .container .sommaire .titre {
        margin: 0 0 0 20px;
    }

    /* corps du texte */

    .container .chapitre {
        margin: 0 20px 0 20px;
    }

    /* paragraphe */

    .container .chapitre p {
        font-size: 1.3rem;
    }

    /* appel de note */

    .container .chapitre p sup {
        font-size: 1.3rem;
    }

    /* definition */

    .container .chapitre p .hide {
        display: hide;
    }

    .container .chapitre p .definition:hover+.hide {
        transform: unset;
        font-size: 1rem;
        width: 80%;
    }


    /* citation */
    .container .chapitre blockquote {
        padding: 0;
        width: 100%;
    }

    /* table */
    .data {
        margin: 60px 20px 80px 20px;
        width: 90%;
    }

    /* notes */

    .container .notes {
        font-size: 1rem;
        line-height: 1.6rem;
    }

    .container .notes ol {
        padding: 0 30px 0 30px;
    }

    /* annexe */
    .container .annexe {
        margin: 60px 0 0 0;
        flex-direction: column;
    }

    .container .annexe article {
        flex: 1 0 auto;
        margin: 0 0 60px 0;
        padding: 0 0 0 20px;
        width: 90%;
    }

    .container .annexe article h2 {
        font-size: 1.3rem;
    }

    .container .annexe article p {
        font-size: 1rem;
    }
}

/* version mobile */

@media only screen and (min-width: 1px) and (max-width: 900px) {


    /* structure */

    .container {
        max-width: 100%;
    }

    /* citation chapeau */

    .container .header blockquote {
        text-align: left;
        width: 90%;
        margin: 0 20px 0 20px;
    }

    /* table des matières */

    .container .sommaire {
        margin: 60px 0 60px 0;
    }

    .container .sommaire .titre {
        margin: 0 0 0 20px;
    }

    /* corps du texte */

    .container .chapitre {
        margin: 0 20px 0 20px;
    }

    /* paragraphe */

    .container .chapitre p {
        font-size: 1.3rem;
    }

    /* appel de note */

    .container .chapitre p sup {
        font-size: 1.3rem;
    }

    /* definition */

    .container .chapitre p .hide {
        display: hide;
    }

    .container .chapitre p .definition:hover+.hide {
        transform: unset;
        font-size: 1rem;
        width: 80%;
    }


    /* citation */
    .container .chapitre blockquote {
        padding: 0;
        width: 100%;
    }

    /* table */
    .data {
        margin: 60px 20px 80px 20px;
        width: 90%;
    }

    /* notes */

    .container .notes {
        font-size: 1rem;
        line-height: 1.6rem;
    }

    .container .notes ol {
        padding: 0 30px 0 30px;
    }

    /* annexe */
    .container .annexe {
        margin: 60px 0 0 0;
        flex-direction: column;
    }

    .container .annexe article {
        flex: 1 0 auto;
        margin: 0 0 60px 0;
        padding: 0 0 0 20px;
        width: 90%;
    }

    .container .annexe article h2 {
        font-size: 1.3rem;
    }

    .container .annexe article p {
        font-size: 1rem;
    }
}