@font-face {
    font-family: "labMono";
    src: url(../font/LabMono-Regular.otf);
}

@font-face {
    font-family: "minipax";
    src: url(../font/minipax/Minipax-SemiBold.otf);
}

@font-face {
    font-family: "minipax2";
    src: url(../font/minipax/Minipax-Medium.otf);
}

@font-face {
    font-family: "abordage";
    src: url(../font/Abordage-Regular.otf);
}

*{
    margin: 0%;
    padding: 0%;
}

body{
    font-family: monospace;
    margin-bottom: 150px;
    width: 100vw;
    height: 100vh;
    overflow: scroll;
}



/* VARIATIONS ------------------------------------------------------------------------------------------------------*/
.contener_variation_colone{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    padding: 6% 0% 6% 0%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
    border-bottom: 1.5px solid black;
    border-right: 1.5px solid black;
    font-family: "labMono";
}

.element_contener_variation{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: flex-start;
    margin-bottom: 8%;
    width: 90%;
}

.element_contener_variation:last-child{
    margin-bottom: 0%;
}

.element_contener_variation h2{
    white-space: nowrap;
    font-weight: normal;
    margin-top: 0%;
    margin-bottom: 0%;
    margin-left: 3%;
    font-size: var(--variations2);
}

.contener_button{
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.contener_button a{
    border-radius: 0px;
    border: 1px solid black;
    margin: 4%;
    width: auto;
    padding: 10% 10%;
    cursor: pointer;
    background-color: rgb(220, 220, 220);
    text-align: center;
    text-decoration: none;
    color: unset;
    box-shadow: -3px 3px 0px black;
}

.button_variation{
    background-color: white;
}

.contener_button button p{
    cursor: pointer;
}

.button_active{
    color: rgb(0, 0, 0) !important;
    background-color: var(--color2) !important;
}

.contener_print{
    margin-top: 0%;
}

.contener__une_ligne{
    grid-template-rows: 100% !important;
}

.contener_button input{
    border: 1px solid black;
    width: 90%;
    padding: 10% 0% 10% 0%;
    margin-left: 4%;
    cursor: text;
    text-align: center;
    font-size: var(--variations);
}

.contener_button input:hover{
    background-color: unset !important;
}

.contener_button button{
    border-radius: 0px;
    border: none;
    margin: 4%;
    width: auto;
    padding: 10% 0%;
    font-size: 0.8vw;
    cursor: pointer;
    background-color: var(--color2);
    text-align: center;
    text-decoration: none;
    color: unset;
}

.contener_tint input{
    padding: 0%;
    border: 1px solid black;
    height: 80%;
    cursor: pointer;
    background-color: white;
}


/* SOUS-PARTIES ------------------------------------------------------------------------------------------------------*/
.contener_text{
    position: relative;
    width: 100%;
    height: auto;
    background-color: transparent;
}
.sous_partie{
    width: auto;
    height: auto;
    font-size: 1vw;
    transform: translate(0%, 0%);
    margin-top: 10%;
}

.contener_sous_partie_modif{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.texte_sous_partie{
    line-height: 1.25;
    font-weight: 100;
}

.sous_partie:first-child{
    margin-top: 0%;
}

.sous_partie h1, .sous_partie h2{
    word-break: break-all;
    margin-left: 0%;
    text-align: left;
}

.titre{
    line-height: 1;
    font-weight: 900;
    position: relative;
    z-index: 100;
    transition: 0ms all;
}

.sous_titre{
    margin-top: 0%;
    margin-bottom: 7%;
    break-before: page;
    color: var(--color2);
    line-height: .9;
    font-weight: unset !important;
}

.sous_titre strong{
    font-weight: 900;
}

.fin_partie{
    position: relative;
    bottom: 0%;
    left: 50%;
    transform: translate(-50%, 0%);
}


/* COLOR -------------------------------------------------------------------------------*/
.color1{
    color: var(--color1);
}

.color2{
    color: var(--color2);
}

.numberColor1{
    color: var(--color1);
    font-weight: 900;
}

.numberColor2{
    color: var(--color2);
    font-weight: 900;
}


/* IMAGE SOUS-PARTIES ---------------------------------------------------------------------------------------*/
.page_image{
    page-break-after: page;
    page-break-before: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: var(--pagedjs-pagebox-height);
    overflow: hidden;
}

figure{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: var(--note);
    mix-blend-mode: multiply;
    color: var(--color1);
    background-color: white;
    transform: translate(0%, 0mm);
    width: 100%;
    bottom: 0%;
    padding: 2% 0%;
    overflow: hidden;
}

img{
    width: 65%;
    max-width: 50mm;
    height: auto;
    filter: invert(0) contrast(1.1) saturate(0) brightness(.48) blur(0px) sepia(0);
    opacity: 1;
    background-color: var(--color2);
    mix-blend-mode: hard-light;
}

figure::before{
    content: "";
    position: absolute;
    z-index: 100;
    width: 100%;
    height: 100%;
    top: 0%;
    left: 0%;
    background-color: var(--color1);
    mix-blend-mode: screen;
    filter: saturate(1) blur(0px) contrast(1.2);
}

figcaption{
    position: relative;
    z-index: 200;
    width: 50%;
    height: auto;
    color: black !important;
    margin-left: 3%;
    margin-top: 1%;
    margin-bottom: 4%;
    margin-right: 0%;
    line-height: 1.2;
}

.notes_sans_images{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}

.notes_sans_images figcaption{
    width: 100%;
    margin: 0%;
}

.notes_sans_images .gauche{
    margin-right: 4% !important;
}

.notes_sans_images .droite{
    margin-left: 4% !important;
}

.figcaption_seul{
    margin: 0% !important;
}

.no-margin{
    margin: 0%;
}

/* COUV ----------------------------------------------------------------------------------------------- */
.couv{
    align-items: center;
    padding: 5mm;
    width: 100%;
    height: var(--pagedjs-pagebox-height);
    color: rgb(0, 0, 0);
    filter: saturate(1);
    word-break: break-all;
}

.couv2{
    height: var(--pagedjs-pagebox-height);
    width: 100%;
}

#couvbis{
    break-after: page;
}

#couvter{
    height: calc(var(--pagedjs-pagebox-height) + 5%);
    transform: translate(0%, 15%);
}

#couv2bis{
    break-before: right;
}

#couv2ter{
    break-before: left;
}

.cache_haut{
    background-color: white;
    width: calc(100% + 20mm);
    height: 70%;
    position: absolute;
    right: 0%;
    top: 0%;
    transform: translate(15mm, -5mm);
}

.cache_bas{
    background-color: white;
    width: calc(100% + 20mm);
    height: 70%;
    position: absolute;
    right: 0%;
    bottom: 0%;
    transform: translate(15mm, 10mm);
}

.couv_cache_haut{
    background-color: white;
    width: calc(100% + 70mm);
    height: 70%;
    position: absolute;
    right: 0%;
    top: 0%;
    transform: translate(20mm, -20mm);
}

.couv_cache_bas{
    background-color: white;
    width: calc(100% + 50mm);
    height: 70%;
    position: absolute;
    right: 0%;
    bottom: 0%;
    transform: translate(20mm, 12mm);
}

#couvter .cache_haut{
    width: 100%;
    height: 100%;
    top: 0% !important;
    right: unset;
    left: 0%;
    transform: translate(0mm, 0mm);
}

#couvter .cache_bas{
    width: 100%;
    height: 100%;
    bottom: 0% !important;
    right: unset;
    left: 0%;
    transform: translate(0mm, 0mm);
}

#couv2ter .couv_cache_haut{
    right: unset;
    left: 0%;
    width: 100%;
    height: 50%;
    transform: translate(0%, -19mm);
}

#couv2ter .couv_cache_bas{
    right: unset;
    left: 0%;
    width: 100%;
    height: 50%;
    transform: translate(0%, 12mm);
}