header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #0F0F0F;
    margin: 0;
    background-color: #F0F0F0;
    position: fixed;
    z-index: 1;
}

body {
    margin: 0;
    padding: 0;
    background-image: url("../img/background_image.jpg");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #F0F0F0;
}

h1 {
    display: inline-flex;
    align-items: center;
    font-family: "Space Mono";
    font-size: 1.5rem;
    color: #0F0F0F;
    text-align: center;
    margin: 0;
    padding: 0;
}

h2 {
    font-family: "Space Mono";
    font-weight: 700;
    padding: 1rem;
    font-size: 1rem;
    color: #0F0F0F;
    margin: 0;
}

main h2 {
    background-color: #F0F0F0;
    width: 15%;
    display: flex;
    border-bottom: 2px solid #0F0F0F;
    border-right: 2px solid #0F0F0F;
}

h3 {
    font-family: "Space Mono";
    font-weight: 700;
    padding: 1rem;
    font-size: 1rem;
    color: #0F0F0F;
    margin: 0;
    background-color: #F0F0F0;
    border: 2px solid #0F0F0F;
}

h4 {
    font-family: "Space Mono";
    font-weight: 700;
    padding: 1rem;
    font-size: 1rem;
    color: #0F0F0F;
    margin: 0;
    background-color: #F0F0F0;
    border: 2px solid #0F0F0F;
    border-bottom: 0;
    text-align: center;
}

h5 {
    position: fixed;
    bottom: 0;
    font-family: "Space Mono";
    font-weight: 700;
    padding: 1rem;
    font-size: 1rem;
    color: #0F0F0F;
    margin: 0;
}

.gauche {
    left: 0;
}

.droite {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    background-color: #F0F0F0;
    right: 0;
    opacity: 0;
}

ol li::before {
    content: counter(custom-counter, decimal-leading-zero) " - ";    
}

ol li:hover {
    background-color: #0F0F0F;
    color: #F0F0F0; 
}

ol li:active {
    color: #FF00FF;
}

a {
    text-decoration: none;
}

section {
    display: flex;
    flex-direction: column;
    float: right;
    width: 83%;
}

.bloc {
    width: auto;
    padding: 3.5rem 15% 3.5rem 15%;
    gap: 3.5rem;
}

img {
    object-fit: contain;
    width: 100%;
    height: auto;
    border: 2px solid #0F0F0F;
    margin: 0;
    background-color: #F0F0F0;
    box-sizing: border-box;
}

.centrage {
  	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bouton {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;
    padding: 1rem;
    margin: 1rem;
    background-color: #F0F0F0;
    border: 2px solid #0F0F0F;
    transition: 0.3s;
}

.bouton:hover {
    background-color: #0F0F0F;
    color: #F0F0F0;
}

.bouton:active {
    color: #FF00FF;
}

.violet {
    color: #FF00FF;
}

.violet:hover {
    color: #FF00FF;
}

.invisible {
    opacity: 0;
}

#pdfContainer {
    max-width: 1vw;
    display: flex;
    justify-content: center;
    width: 100%;
}


@media (min-width: 1201px) {

    ol {
        position: fixed;
        height: auto;
        max-height: 100vh;
        overflow-y: auto;
        display: inline-flex;
        flex-direction: column;
        list-style: none;
        counter-reset: custom-counter -1;
        margin: 0;
        padding: 0;
        width: 17%;
    }

    ol li {
        user-select: none;
        -webkit-user-select: none; /* Safari */
        -moz-user-select: none;    /* Firefox */
        -ms-user-select: none;
        background-color: #F0F0F0;
        counter-increment: custom-counter;
        font-family: "Space Mono";
        font-weight: 700;
        font-size: 1rem;
        padding: 1rem;
        padding-left: 4rem;
        text-indent: -3rem;
        color: #0F0F0F;
        border-bottom: 2px solid #0F0F0F;
        border-right: 2px solid #0F0F0F;
        transition: 0.3s;
    }

}

@media (max-width: 1200px) {

    ol {
        overflow-y: auto;
        display: flex;
        list-style: none;
        overflow-x: auto; 
        counter-reset: custom-counter -1;
        margin: 0;
        padding: 0;
        overflow-y: hidden;
        width: auto;
    }

    ol li {
        user-select: none;
        -webkit-user-select: none; /* Safari */
        -moz-user-select: none;    /* Firefox */
        -ms-user-select: none;
        background-color: #F0F0F0;
        counter-increment: custom-counter;
        font-family: "Space Mono";
        font-weight: 700;
        font-size: 1rem;
        padding: 1rem;
        padding-left: 4rem;
        text-indent: -3rem;
        color: #0F0F0F;
        border-bottom: 2px solid #0F0F0F;
        border-right: 2px solid #0F0F0F;
        transition: 0.3s;
        height: 5em;
        width: 10em;
    }

    section {
        width: 100%;
    }

}