@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: SpaceGrotesk;
    src: url(../fonts/SpaceGrotesk-Bold.ttf);
    font-weight: 700;

}

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

@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: DiderotText, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
    background-color: #fffff8;
    font-weight: 400;
    color: #444444;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    counter-reset: sidenote-counter;
    margin: 0;
    background-image: linear-gradient(126deg, #fffff8 31.53%, #ffe930 31.53%, #ffe930 50%, #fffff8 50%, #fffff8 81.53%, #ffe930 81.53%, #ffe930 100%);
    background-size: 2000px 3000px;

}

nav {
    top: 0;
    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;
}

.initiales {
    color: rgb(111, 81, 81);
    display: inline-flex;
}




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


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

}

.context {
    padding-left: 1rem;
    padding-top: 1rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-family: IBMPlexSans;
    font-weight: 400;
    font-size: 16px;
    text-align: justify;
    background-color: rgb(255, 255, 231);


}

main {
    display: flex;
    flex-direction: row;
    max-width: 70%;
    justify-content: center;
    background: white


}



.page {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: IBMPlexSans;
    color: #444444;
}


.page ul {
    list-style: none;


}


.entete {
    display: none;

}


.date {
    flex: 20%;
    height: 100%;
    font-family: IBMPlexSans;
    padding-left: 5px;

}

.corpsdetexte {
    z-index: 1;
    line-height: 1.4rem;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    padding-top: 0;



}

.corpsdetexte>h1,
h2,
h3,
h4 {
    font-family: IBMPlexSans;

}

section {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    padding-left: 3.5rem;
    padding-right: 1rem;
    border: #111 solid thin;
    margin-top: -1px;
    margin-left: -1px;
    min-width: 20rem;

}

section .level2 {
    border: none
}

section>h1 {
    font-family: IBMPlexSans;
    font-weight: 300;
}

section>h2 {
    font-family: IBMPlexSans;
    font-weight: 300;
    font-size: 24px;
}

section ul {}

section ul li {
    margin-bottom: 1rem;
}

section ul ul li {
   color: rgb(111, 81, 81);
}

section ul ul li::before {
    content: "\261E";
    position: absolute;
    margin-left: -2rem;
}

section#carnet {
    min-width: 40%;
}

#carnet ul li::before {
    content: "\261E";
    position: absolute;
    margin-left: -2rem;
}

#carnet ul li {
    padding-left: 0em;
}

section#recherche {
}

#recherche ul li {
    padding-left: 0em;
}


section#lectures-publiques {

}

section#bienvenue {

    font-family: IBMPlexSans;
}




/**  Styling small screens  **/


@media (min-width: 800px) {

}


footer {
    align-items: end;
    font-family: IBMPlexSans;
    font-weight: 300;
    color: #665566;
    font-size: 1rem;
    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;
}


p,
dl,
ol,
ul {
    font-size: 1em;
    line-height: 1.5em;
}

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

#refs {
    padding: 1em;
    font-family: IBMPlexSans;
    font-weight: lighter;
    overflow-wrap: break-word;
    text-align: justify;
    text-indent: -1em;
    column-count: 2;
    column-width: 10em;
    column-gap: 2.5em;
    column-rule: #111;

}


/* 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.8rem;
}

blockquote p {
    width: 100%;
    margin-right: 10em;
    font-size: 0.9em;
}

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 {
    -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;
}


.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: -35%;
}

.sidenote,
.marginnote {
    float: right;
    clear: right;
    margin-right: -30%;
    width: 20%;
    margin-top: 0.3rem;
    margin-bottom: 0;
    font-size: 0.7rem;
    line-height: 1.3;
    vertical-align: baseline;
    position: relative;
    overflow-wrap: break-word;
}

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

.sidenote-number:after,
.sidenote:before {
    font-family: MontaguSlab;
    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.5rem;
}

blockquote .sidenote,
blockquote .marginnote {
    margin-right: -39%;
    width: 23%;
    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-block;
    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%;
}

/*ci-dessous le style sur écrans petits*/


@media (max-width: 800px) {
 body {
        font-size: 14px;
        --baseline: 16px;
        max-width: 100vw;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  background: none
    }

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

    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;
    }
    .corpsdetexte {
        width: auto;
        padding-top: 0;
    }

    main {
        max-width: 100%;
    }

    main h1 {
        font-size: 18px
    }

    main h2 {
        font-size: 18px
    }
    section {
        padding-left: 5vh;
        padding-top: 0.5vh;
        padding-bottom: 0.5vh
    }

    .level2 {
        margin-left: -8%;
        margin-bottom: 0;
    }

    #carnet ul li::before {

        margin-left: -1.2em
    }

    #carnet>ul {
        margin-left: -5%
    }


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

    pre>code {
        width: 97%;
    }

    section>dl,
    section>ol,
    section>ul {
        width: 100%;
        margin-left: -10%
    }

    figure {
        max-width: 90%;
    }

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

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

    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;
    }
}
