body {
    overflow: hidden;
}

/* CHAPTERS */

#chapters {
    position: fixed;
    height: 100%;
    width: 40%;
    display: flex;
    overflow: hidden;
    background-color: #FF665C;
}

#chapters>div {
    position: absolute;
    height: 100%;
    width: 100%;
    flex-direction: column;
    padding: 2rem;
    box-sizing: border-box;
}

#tableofcontent {
    display: none;
    align-items: center;
    justify-content: space-between;
}

#tableofcontent img {
    width: 16px;
    cursor: pointer;
}

#tableofcontent ul {
    display: flex;
    flex-direction: column;
    gap: 2em;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

#tableofcontent ul li {
    text-align: center;
    cursor: pointer;
}

#tableofcontent ul li.active {
    text-decoration: underline;
}

#currentchapter {
    display: flex;
    justify-content: space-between;
}

#currentchapter>p {
    cursor: pointer;
    text-align: center;
    margin: 0;
}

#currentchapter h1 p {
    text-align: center;
    margin: 0 0 0.5em 0;
}

#currentchapter h1 {
    display: flex;
    flex-direction: column;
    line-height: 100%;
    align-items: center;
    margin: 0;
}

#currentchapter>div {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

#currentchapter>div h2 {
    font-size: inherit;
    line-height: 100%;
    margin: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#currentchapter>div p {
    margin: 0 0 0.5em 0;
    text-align: center;
}

/* TEXT-CONTAINER */

#container {
    position: absolute;
    left: 40%;
    width: 60%;
    height: 100%;
    overflow-y: scroll;
    padding: 0 2rem 2rem 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
}

section:last-child{
    flex: 0 0 51vh;
    border-bottom: none;
}

section > div {
    margin: 5rem 0 5rem 0;
}

section:first-child > div {
    margin: 6rem 0 5rem 0;
}

#container h2 {
    text-align: center;
    line-height: 100%;
    margin: 3rem 0 3rem 0;
}

#container h3 {
    font-size: inherit;
    margin: 4rem 0 4rem 0;
    text-transform: uppercase;
    text-align: center;
}

#container h4 {
    margin: 4rem 0 2rem 0;
    border-bottom: 1px solid black;
}

#container h5 {
    font-size: inherit;
    margin: 0;
}

.text{
    margin: 0 10% 0 10%;
}

.text p:not(:first-child) {
    text-indent: 2em;
}

#container .text p {
    margin: 0;
}

#container sup {
    color: #FF665C;
    cursor: pointer;
}

#container figure {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#container figure img {
    margin: 0 0 1rem 0;
}

#container figure figcaption {
    color: #FF665C;
    cursor: pointer;
}

blockquote {
    margin: 2rem;
}

blockquote p {
    margin-bottom: 0.2em;
}

blockquote footer {
    font-family: "DM Mono";
}

#container ul {
    list-style-type: "→ ";
}

#introduction footer {
    margin: 2em 0 2em 0;
}

#activites {
    column-count: 2;
    column-gap: 2rem;
}

.acteurs {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.acteurs > *{
    flex: 1 0 0;
}

.acteurs dt {
    border-bottom: 1px solid #FF665C;
    padding-bottom: 0.5em;
}

.acteurs dd {
    font-family: "DM Mono";
    margin: 0;
    padding-top: 0.5em;
}

.acteurs dd:not(:last-child) {
    margin-bottom: 2em;
}

p#sources-revenus-intro{
    margin: 2rem 10% 0 10%;
}

ul#sources-revenus{
    padding-left: 1.5em;
    margin: 0 10% 2rem 10%;
}

ul#sources-revenus li{
    margin: 0em 0;
}

#acronymes {
    columns: 2;
    margin-bottom: 2em;
}

#acronymes dl {
    margin-top: 0;
    break-inside: avoid-column;
}

#acronymes dt {
    font-family: "DM Mono";
    display: inline-block;
    width: 4.5em;
}

#acronymes dd {
    display: inline;
    margin: 0;
}

.columns {
    columns: 2;
    gap: 2rem;
}

.columns > *:first-child {
    margin-top: 0;
}

#annexes .title h3 {
    margin: 0;
}

#annexes .title p {
    text-align: center;
    margin-bottom: 2em;
}

#annexes ul {
    list-style-position: inside;
    list-style: disc;
    padding-left: 1em;
}

.annexe:nth-child(2){
    margin: 3rem 0;
}

#orgas {
    padding: 0 !important;
    list-style-type: decimal !important;
}

#orgas>li {
    margin-bottom: 1em;
    list-style-position: inside;
}

#orgas>li>ul {
    list-style-type: lower-alpha;
    padding-left: 1em;
}

p.star{
    margin: 0;
    text-align: center;
}

/* FOOTNOTES */

#footnotes {
    position: absolute;
    width: 60%;
    background-color: #FFFFFF;
    bottom: 0;
    left: 40%;
    padding: 2rem 5% 2rem 5%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
    border-top: 1px solid #FF665C;
}

#footnotes img {
    width: 16px;
    cursor: pointer;
}

#footnotes>div {
    width: 100%;
}

#footnotes dl {
    color: #FF665C;
    margin: 0;
    display: flex;
}

#footnotes dd {
    margin-left: 2rem;
}

#footnotes a {
    color: #FF665C;
}

@media (max-width: 992px){

    #chapters{
        height: auto;
        width: 100%;
        bottom: 0;
    }

    #chapters > div{
        position: relative;
        padding: 1rem 2rem 1rem 2rem;
    }

    #currentchapter > p{
        display: none;
    }

    #currentchapter > div{
        position: absolute;
        left: 2rem;
        width: calc(100% - 4rem);
        top: 50%;
        transform: translateY(-50%);
    }

    #currentchapter > div h2 p{
        display: none;
    }

    #container {
        left: 0;
        width: 100%;
    }

    .text{
        margin: 0 15%;
    }

    #footnotes{
        left: 0;
        width: 100%;
    }

    blockquote{
        margin: 2rem 0;
    }

}

@media (max-width: 768px){

    .acteurs{
        flex-direction: column;
    }

    .columns{
        columns: 1;
    }

}

@media (max-width: 576px){

    .text{
        margin: 0;
    }

    #activites{
        column-count: 1;
    }

}