@charset "UTF-8";

/* Import ET Book styles
   adapted from https://github.com/edwardtufte/et-book/blob/gh-pages/et-book.css */


/* Tufte CSS styles */
html {
    font-size: 1em;
    scroll-behavior: smooth !important;

}


@font-face {
    font-family: DiderotText;
    src: url(../fonts/DiderotText-Regular.woff2);
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: DiderotText;
    src: url(../fonts/DiderotText-Italic.woff2);
    font-weight: 400;
    font-style: italic;
}


@font-face {
    font-family: IBMPlexSans;
    src: url(../fonts/IBMPlexSans-Light.ttf);
    font-weight: 300;
}

@font-face {
    font-family: IBMPlexSans;
    src: url(../fonts/IBMPlexSans-LightItalic.ttf);
    font-style: italic;
    font-weight: 300;

}

body {
    padding: 0;
    font-family: SpaceGrotesk, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
    font-weight: 400;
    background-color: #ffffff;
    color: #444444;
    counter-reset: sidenote-counter;
    margin: 0;

}




nav {
    top: 0;
    position: fixed;
    font-family: IBMPlexSans;
    font-size: 22px;
    width: 100%;
    transition: top 1s;
    display: inline-flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    z-index: 99;
    background-image: linear-gradient(144deg, #ffe930 14.29%, #fffff8 14.29%, #fffff8 50%, #ffe930 50%, #ffe930 64.29%, #fffff8 64.29%, #fffff8 100%);
    margin-top: 0;
    background-size: 11.91px 8.65px;
    background-repeat: repeat;
    border-bottom: solid black thin;
    height: 5rem;
}


nav.is-hidden {
    top: -10rem !important
}



.initiales {
    color: rgb(111, 81, 81);

}

.socials {
    position: relative;
    top: 3px;
}

.navigation {
    display: flex;
    padding-inline-end: 5rem;
    color: rgb(111, 81, 81);
    gap: 10px;

}


main {}



.page {
    display: grid;
    grid-template-columns: minmax(10%, 10%) minmax(400px, 800px) 1fr;
    grid-template-rows: repeat(auto, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    width: 100%;
    font-family: DiderotText;
}


.page ul {
    list-style: none;

}


.entete {
    width: 100%;
    top: 0;
    z-index: 80;
    padding-top: 6rem;
    padding-left: 3.5rem;
    grid-area: 1/2/2/5;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    align-items: baseline;
    border-bottom: solid #111 thin;
    border-left: solid #111 thin;
    background-color: #ffe930;
}

.title {
    font-family: IBMPlexSans;
    font-size: 48px;
    font-weight: 400;
    flex: 70%;

}

.date {
    flex: 20%;
    font-family: IBMPlexSans;
    font-weight: 400;
    font-size: 22px;
    margin-right: 2rem;

}



.abstract {
    font-family: IBMPlexSans;
    grid-area: 2/3/2/2;
    font-size: 16px;
    font-weight: 400;
    align-items: baseline;
    border: solid #111 thin;
    border-top: none;
    padding: 1em;
    padding-left: 3.5em;
    height: min-content;

}

.corpsdetexte {
    grid-area: 3/2/3/3;
    max-width: 7500px;
    z-index: 1;
    line-height: 1.4rem;
    font-size: 14pt;
    font-weight: 400;
    border-left: solid #111 thin;
    padding-left: 3.5em;
    padding-top: 2em;

}

.corpsdetexte>h1,
h2,
h3,
h4 {
    font-size: 32px;
    font-family: IBMPlexSans;
    font-weight: 600;
    line-height: 2.2rem;
    margin-top: 2em
}

.corpsdetexte>h2 {
    font-size: 32px;
    padding-left: 1rem;
}

.corpsdetexte .priv {
    visibility: hidden;
}

footer {
    align-items: end;
    font-family: IBMPlexSans;
    font-weight: 300;
    color: #665566;
    font-size: 1rem;
    border-top: #111 solid thin;
    text-align: center;
    width: 100%;
    padding-top: 2rem;
    margin-bottom: 1rem;
}




p.subtitle {
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    display: block;
    line-height: 1;
}

.numeral {
    font-family: MontaguSlab;
}



.danger {
    color: red;
}


section {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}



p {
    margin-top: 0.5rem;
    margin-bottom: 1.4rem;
    line-height: 1.5em;
    padding-right: 0;
    vertical-align: baseline;
}


iframe {
    width: 600px;
    height: 400px;
}




#refs {
    padding: 1em;
    color: #606060;
    font-family: IBMPlexSans;
    font-weight: 300;
    font-size: 18px;
    overflow-wrap: break-word;
    text-align: justify;
    text-indent: -1em;
    column-count: 2;
    column-width: 10em;
    column-gap: 2.5em;
    column-rule: #111;
    orphans: 3;

}


/* Chapter Epigraphs */
div.epigraph {
    margin: 5em 0;
}

div.epigraph>blockquote {
    margin-top: 3em;
    margin-bottom: 3em;
}

div.epigraph>blockquote,
div.epigraph>blockquote>p {
    font-style: italic;
}

div.epigraph>blockquote>footer {
    font-style: normal;
}

div.epigraph>blockquote>footer>cite {
    font-style: italic;
}

/* end chapter epigraphs styles */

blockquote {
    font-size: 0.9rem;
}

blockquote p {
    width: 100%;
}

blockquote footer {
    width: 55%;
    font-size: 1.1rem;
    text-align: right;
}

section>p,
section>footer,
section>table {
    width: 100%;
}

/* 50 + 5 == 55, to be the same width as paragraph */
section>dl,
section>ol,
section>ul {
    width: 50%;
    -webkit-padding-start: 5%;
}

dt:not(:first-child),
li:not(:first-child) {
    margin-top: 0.25rem;
}

figure {
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    max-width: 55%;
    -webkit-margin-start: 0;
    -webkit-margin-end: 0;
    margin: 0 0 3em 0;
}

figcaption {
    float: right;
    clear: right;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    vertical-align: baseline;
    position: relative;
    max-width: 40%;
}

figure.fullwidth figcaption {
    margin-right: 24%;
}

sup {
    line-height: 0;
    font-size: 0.6rem;

}


/* Links: replicate underline that clears descenders */
a:link {
    color: #606060;
    text-decoration: none;
}

a:visited {
    color: #808080;
}

a:hover {
    text-decoration: underline;
}

.no-tufte-underline:link {
    background: unset;
    text-shadow: none;
}

a:hover,
.tufte-underline,
.hover-tufte-underline:hover {
    text-decoration: none;
    background: -webkit-linear-gradient(#fffff8, #fffff8), -webkit-linear-gradient(#fffff8, #fffff8), -webkit-linear-gradient(currentColor, currentColor);
    background: linear-gradient(#fffff8, #fffff8), linear-gradient(#fffff8, #fffff8), linear-gradient(currentColor, currentColor);
    -webkit-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
    -moz-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
    background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
    background-repeat: no-repeat, no-repeat, repeat-x;
    background-position: 0% 93%, 100% 93%, 0% 93%;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {

    a:hover,
    .tufte-underline,
    .hover-tufte-underline:hover {
        background-position-y: 87%, 87%, 87%;
    }
}



a:link::selection,
a:link::-moz-selection {
    text-shadow: 0.03em 0 #b4d5fe, -0.03em 0 #b4d5fe, 0 0.03em #b4d5fe, 0 -0.03em #b4d5fe, 0.06em 0 #b4d5fe, -0.06em 0 #b4d5fe, 0.09em 0 #b4d5fe, -0.09em 0 #b4d5fe, 0.12em 0 #b4d5fe, -0.12em 0 #b4d5fe, 0.15em 0 #b4d5fe, -0.15em 0 #b4d5fe;
    background: #b4d5fe;
}

/* Sidenotes, margin notes, figures, captions */
img {
    max-width: 300px;
    max-height: 350px;
    grid-column-start: 3;
    float: right;
    clear: right;
    margin-right: -55%;
    filter: drop-shadow(0.1rem 0.1rem 5px black)
}


.sidenote,
.marginnote {
    float: right;
    clear: right;
    color: #535353;
    margin-right: -40%;
    width: 33%;
    margin-top: 0.3rem;
    margin-bottom: 0;
    line-height: 1.3;
    font-size: 14px;
    vertical-align: baseline;
    position: relative;
    overflow-wrap: break-word;
}

.sidenote-number {
    counter-increment: sidenote-counter;
}

.sidenote-number:after,
.sidenote:before {
    font-family: DiderotText;
    position: relative;
    vertical-align: baseline;
}

.sidenote-number:after {
    content: counter(sidenote-counter);
    font-size: 0.7em;
    top: -0.5em;
    left: 0.1em;
}

.sidenote:before {
    content: counter(sidenote-counter);
    font-size: 0.7rem;
    top: -0.4rem;
    left: -0.25rem;
}

blockquote .sidenote,
blockquote .marginnote {
    margin-right: -47%;
    width: 30%;
    text-align: left;
}

div.fullwidth,
table.fullwidth {
    width: 100%;
}

div.table-wrapper {
    overflow-x: auto;
    font-family: "Trebuchet MS", "Gill Sans", "Gill Sans MT", sans-serif;
}

.sans {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    letter-spacing: .03em;
}

code,
pre>code {
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 1.0rem;
    line-height: 1.42;
    -webkit-text-size-adjust: 100%;
    /* Prevent adjustments of font size after orientation changes in iOS. See https://github.com/edwardtufte/tufte-css/issues/81#issuecomment-261953409 */
}

.sans>code {
    font-size: 1.2rem;
}

h1>code,
h2>code,
h3>code {
    font-size: 0.80em;
}

.marginnote>code,
.sidenote>code {
    font-size: 1rem;
}

pre>code {
    font-size: 0.9rem;
    width: 52.5%;
    margin-left: 2.5%;
    overflow-x: auto;
    display: block;
}

pre.fullwidth>code {
    width: 90%;
}

.fullwidth {
    max-width: 90%;
    clear: both;
}

span.newthought {
    font-variant: small-caps;
    font-size: 1.2em;
}

input.margin-toggle {
    display: none;
}

label.sidenote-number {
    display: inline;
    max-height: 2rem;
    /* should be less than or equal to paragraph line-height */
}

label.margin-toggle:not(.sidenote-number) {
    display: none;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    padding-top: 25px;
    height: 0;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



/** styling small screens **/


@media (max-width: 800px) {

    body {
        font-size: 14px;
        --baseline: 16px;
        max-width: 100vw;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
    }

    nav {
        display: inline;
        z-index: 99;
        gap: 0.2rem;
        font-size: 18px;
        width: 100%;
        padding-bottom: 0.5em;
    }

    nav ul {
        margin-block-start: 0;
    }

    .initiales {
        padding-top: 0.5em;
        font-weight: 800;
    }

    .navigation {
        line-height: 1em;
        padding-bottom: 0.8rem;
    }

    .navigation a {
        border-right: rgb(111, 81, 81) solid 1px;
        padding-right: 0.5em;
    }

    .navigation a:last-child {
        border-right: none;
    }

    .page {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(auto, 1fr);
    }

    .entete {
        top: 0;
        display: flex;
        flex-direction: row;
        row-gap: 0;
        z-index: 80;
        padding-left: 5%;

    }

    .title {
        font-size: 24px;
        padding-right: 5vh

    }

    .abstract {
        padding-left: 5%;
        font-size: 16px;
        width: 85%;
        text-align: justify;

    }



    .corpsdetexte {
        font-size: 18px;
        width: 90%;
        text-align: justify;
        padding-left: 0;
        margin-left: auto;
        margin-right: auto;
        border: none;
        h1,
        h2,
        h3 {
            text-align: left;
            font-size: 1.5em;
        }
    }

    #refs {
        font-size: 14px;
    }

    hr,
    section>p,
    section>footer,
    section>table {
        width: 100%;
    }

    pre>code {
        width: 97%;
    }

    section>dl,
    section>ol,
    section>ul {
        width: 90%;
    }

    figure {
        max-width: 90%;
    }

    figcaption,
    figure.fullwidth figcaption {
        margin-right: 0%;
        max-width: none;
    }

    blockquote {
        margin-left: 1.5em;
        margin-right: 0em;
        font-size: 0.8em;
    }

    blockquote p,
    blockquote footer {
        width: 100%;
    }


    label.margin-toggle:not(.sidenote-number) {
        display: inline;
    }

    .sidenote,
    .marginnote {
        display: none;
    }

    .margin-toggle:checked+.sidenote,
    .margin-toggle:checked+.marginnote {
        display: block;
        float: left;
        left: 1rem;
        clear: both;
        width: 95%;
        margin: 1rem 2.5%;
        vertical-align: baseline;
        position: relative;
    }

    label {
        cursor: pointer;
    }

    div.table-wrapper,
    table {
        width: 85%;
    }

    img {
        display: none;
    }

    iframe {
        width: 100%;
    }
}
