@font-face {
    font-family: "Gotham_Light";
    src:
        url("../fonts/GothamLight.woff2") format("woff2"),
        url("../fonts/GothamLight.woff") format("woff"),
        url("../fonts/GothamLight.ttf") format("truetype");
}

@font-face {
    font-family: "Gotham_Xtra_Light";
    src: url("../fonts/Gotham-ExtraLight-webfont.woff2") format("woff2"),
        url("../fonts/Gotham-ExtraLight-webfont.woff") format("woff"),
        url("../fonts/Gotham-ExtraLight-webfont.ttf") format("truetype");
}

#wrapper {
    max-width: 1600px;
}

body,
html {
    margin: 0;
    background-color: #fff;
}

.rotate {
    display: none;

}

@media (orientation: portrait) {
    .rotate {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #9cc8d9;
        z-index: 10000;
        background-image: url("../img/background.webp");
        flex-direction: column;
        font-size: 30px;
        text-align: center;
        font-family: century-gothic, sans-serif;
        color: #1f4c61;
        gap: 20px;
    }

    .rotate::after {
        content: "";
        display: block;
        width: 300px;
        height: 300px;
        background-image: url(../img/rotate.svg);
        background-size: cover;
    }
}

.quiz {

    font-family: century-gothic, sans-serif;
    font-size: 14px;
    color: #333333;
    margin: 0 auto;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow-x: hidden;
    background-color: #d8eaee;
    background-image: url("../img/background.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@keyframes fadeInScreen {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/**********************************************/
.quiz__background {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    position: fixed;
    margin: 0;
    z-index: 1;
    overflow: hidden;

}


.quiz__background img {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    object-fit: cover;
}




/****************************************************************/
.quiz-button {
    position: relative;
    background-color: #1f4c61;
    display: block;
    color: #fff;
    padding: 0px 40px;
    height: 90px;
    text-decoration: none;
    font-size: 26px;
    line-height: 90px;
    cursor: pointer;
    text-align: center;
    border-radius: 20px;
    box-sizing: border-box;
    outline: 0 !important;
    font-weight: bold;
}

.quiz-button::after {
    content: " ";
    margin-left: 14px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
}

#START .quiz-button::after {
    width: 54px;
    height: 39px;
    background-image: url(../img/arrow.png);
}

#END .quiz-button::after {
    width: 43px;
    height: 39px;
    margin-left: 15px;
    background-image: url(../img/restart.png);
}

/*------------------------------------------------*/


.quiz-button:hover {
    color: #fff;
    background-color: #e56f0b;
    outline: 0 !important;
}

/****************************************************************/
.quiz-valid {
    position: relative;
    background-color: #1f4c61;
    display: block;
    color: #fff;
    padding: 0px 40px;
    height: 90px;
    text-decoration: none;
    font-size: 27px;
    line-height: 90px;

    cursor: pointer;
    text-align: center;
    border-radius: 10px;
    box-sizing: border-box;
    outline: 0 !important;
    font-weight: bold;
}

.quiz-valid::after {
    content: " ";
    margin-left: 15px;
    width: 47px;
    height: 45px;
    background-image: url(../img/check.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
}

.quiz-valid[data-valid="1"] {
    /*display: none;*/
}

.quiz-valid[data-valid="0"] {
    opacity: 0.5;
    pointer-events: none;
    /*display: none;*/
}

.quiz-valid[data-visible="0"] {
    display: none;
}

/*------------------------------------------------*/

.quiz-valid:hover {
    color: #fff;
    background-color: #e56f0b;
    outline: 0 !important;
}


/****************************************************************/
.quiz-next {
    position: relative;
    background-color: #e56f0b !important;
    display: inline-block;
    color: #fff;
    padding: 0px 40px;
    height: 70px;
    text-decoration: none;
    font-size: 18px;
    line-height: 70px;

    cursor: pointer;
    min-width: 122px;
    text-align: center;
    border-radius: 10px;
    box-sizing: border-box;
    text-transform: unset !important;
    letter-spacing: unset !important;
    outline: 0 !important;
    align-self: center;
    font-weight: bold;
}

/*------------------------------------------------*/

.quiz-next:hover {
    color: #fff;
    background-color: #a72640;
    outline: 0 !important;
}

.quiz-next[data-visible="0"] {
    display: none;
}

/*------------------------------------------------*/

.quiz-steps {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    padding: 60px 100px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.quiz-steps[data-open="0"] {
    display: none;
}

.quiz-steps[data-open="1"] {
    animation: fadeInScreen 1s ease-in-out;

}

#START {
    justify-content: center;
    align-items: unset;
}

#QUESTIONS {
    justify-content: flex-start;
    gap: 40px;
}

#END {
    justify-content: center;
    align-items: unset;
}

/****************************************************************/

.quiz-start__title {
    margin: 0;
    font-size: 46px;
    line-height: 1em;
    font-weight: normal;
    display: flex;
    flex-direction: column;
    color: #1e4d5f;
    text-align: center;
    position: relative;
    z-index: 2;
    font-family: aller-display, sans-serif;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
}

.quiz-steps__title {
    margin: 0;
    font-size: 35px;
    line-height: 1em;
    font-weight: normal;
    display: flex;
    flex-direction: column;
    color: #1e4d5f;
    text-align: center;
    position: relative;
    z-index: 2;
    font-family: aller-display, sans-serif;
}

/*------------------------------------------------*/
.quiz-question {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    margin: 0 auto;
    gap: 40px;
}


.quiz-question[data-open="0"] {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 0;
    height: 0;
    overflow: hidden;
}

.quiz-question[data-open="1"] {
    visibility: visible;
    min-height: 500px;
}

.quiz-question__num {
    color: #fff;
    font-size: 30px;
    margin: 0;
    text-align: center;
    background-image: url(../img/molecule.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 122px;
    display: flex;
    align-items: center;
    font-weight: bold;
    justify-content: center;
    padding-bottom: 5px;
    box-sizing: border-box;
}

.quiz-question__title {
    font-family: aller-display, sans-serif;
    font-size: 30px;
    color: #1e4d5f;
    font-weight: normal;
    line-height: normal;
    margin: 0;
    padding: 15px;
    text-align: center;
}

.quiz-question__text {
    font-size: 26px;
    color: #1e4d5f;
    font-weight: bold;
    line-height: 38px;
    margin: 0;
    text-align: center;
    padding: 0 20px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
}

.quiz-question__wrapper {
    padding: 50px;
    padding-top: 10px;
    gap: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8);
}

.quiz-question__answers {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
}

.quiz-question__item {
    --TEXT-COLOR: #1f4c61;
    --ITEM-COLOR: #9cc8d9;
    font-family: century-gothic, sans-serif;
    margin: 5px;
    box-sizing: border-box;
    border: 1px solid var(--ITEM-COLOR);
    border-radius: 10px;
    color: var(--TEXT-COLOR);
    background-color: #fff;
    font-weight: bold;
    font-size: 30px;
    height: 70px;
    line-height: 1em;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform ease-in-out 0.3s, opacity ease-in-out 0.2s;
    transform: scale(0.5);
    opacity: 0;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.quiz-question__item strong {
    font-size: 40px;
}

*[data-total="3"] .quiz-question__item {
    margin: 5px 30px;
}

*[data-total="4"] .quiz-question__item {
    margin: 5px 20px;
}

.quiz-question__item b {
    display: inline-block;

    font-weight: normal;
    font-size: 26px;
    line-height: 1.2em;
}

.quiz-question__item small {
    display: inline-block;

    font-weight: normal;
    font-size: 16px;
    line-height: 1.2em;
}

.quiz-question__item::after {
    content: " ";
    position: absolute;
    left: -1px;
    top: -1px;
    bottom: -1px;
    right: -1px;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.2s ease-in-out;
    border: 3px solid;
    box-sizing: border-box;
    pointer-events: none;
    border-radius: 10px;
}

.quiz-question[data-open="1"] .quiz-question__item {
    transform: scale(1);
    opacity: 1;
}

.quiz-question[data-checked="1"] .quiz-question__item,
.quiz-question[data-checked="2"] .quiz-question__item {
    pointer-events: none;
}

.quiz-question[data-open="1"] .quiz-question__item:nth-child(1) {
    transition-delay: 0s;
}

.quiz-question[data-open="1"] .quiz-question__item:nth-child(2) {
    transition-delay: 0.1s;
}

.quiz-question[data-open="1"] .quiz-question__item:nth-child(3) {
    transition-delay: 0.2s;
}




.quiz-question__item::before {
    position: absolute;
    left: 0;
    width: auto;
    height: 100%;
    background-color: var(--ITEM-COLOR);
    padding: 0 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    box-sizing: border-box;
}

.quiz-question__item:nth-child(1)::before {
    content: "A";
}

.quiz-question__item:nth-child(2)::before {
    content: "B";
}

.quiz-question__item:nth-child(3)::before {
    content: "C";
}

.quiz-question[data-open="1"] .quiz-question__item[data-selected="1"]::before {
    content: "✔";


}

.quiz-question[data-valid="1"] .quiz-question__item[data-selected="0"] {
    /*  opacity: 0.5;*/
}

.quiz-question__message {
    display: none;
}

.quiz-question[data-checked="1"] .quiz-question__message,
.quiz-question[data-checked="2"] .quiz-question__message {
    display: block;
    font-size: 14px;
    line-height: 1.45em;
    text-align: center;
}

.quiz-question__bottom {
    display: none;
}

.quiz-question__bottom::before {
    content: "VRAI";
    width: 140px;
    height: 70px;
    background-color: rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    line-height: 1.45em;
    text-align: center;
    position: absolute;
    top: -50px;
    left: calc(50% - 70px);
    z-index: 2;
    border-top-left-radius: 70px;
    border-top-right-radius: 70px;
    box-sizing: border-box;
    color: var(--ITEM-COLOR);
}

.quiz-question[data-checked="1"] .quiz-question__bottom::before {
    content: "VRAI";
    color: #4FB779;
}

.quiz-question[data-checked="2"] .quiz-question__bottom::before {
    content: "FAUX";
    color: #DC3434;
}

.quiz-question[data-checked="1"] .quiz-question__bottom,
.quiz-question[data-checked="2"] .quiz-question__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    margin-top: 30px;
}

.quiz-question__infos {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.45em;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 10px;
    color: #1e4d5f;
}

.quiz-question__sources {
    font-size: 11px;
    line-height: 1.45em;
    text-align: left;
    width: 100%;
    color: #8b9092;
}






/*
.quiz-question[data-checked="1"] .quiz-btn,
.quiz-question[data-checked="2"] .quiz-btn {
    display: block;
    position: absolute;
    bottom: -80px;
}*/

.quiz-question__item[data-selected="1"] {
    --ITEM-COLOR: #1e4d5f;
}

*[data-checked="1"] .quiz-question__item[data-selected="1"],
*[data-checked="2"] .quiz-question__item[data-selected="1"] {
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.15);
}

*[data-checked="1"] .quiz-question__item[data-correct="1"],
*[data-checked="2"] .quiz-question__item[data-correct="1"] {
    --ITEM-COLOR: #4FB779;
}

*[data-checked="1"] .quiz-question__item[data-correct="1"]::after,
*[data-checked="2"] .quiz-question__item[data-correct="1"]::after {
    border-color: #4FB779;
    opacity: 1
}

*[data-checked="2"] .quiz-question__item[data-selected="1"][data-correct="0"] {
    --ITEM-COLOR: #DC3434;
}

*[data-checked="2"] .quiz-question__item[data-selected="1"][data-correct="0"]::after {
    border-color: #DC3434;
    opacity: 1
}




/*------------------------------------------------*/

.quiz-results {
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: center;
}



.quiz-results__title {
    margin: 0;
    font-size: 62px;
    line-height: 1em;
    font-weight: normal;
    font-family: aller-display, sans-serif;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
}

.quiz-results__subtitle {
    margin: 0;
    font-size: 43px;
    line-height: 1em;
    font-weight: normal;
    font-family: aller-display, sans-serif;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
}

.quiz-results__text {
    margin: 0;
    font-size: 30px;
    line-height: 1.45em;
    font-weight: bold;
    text-align: center;
    font-style: italic;
}

.quiz-results__box {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 26px;
    line-height: 1.45em;
    font-weight: bold;
    text-align: center;
}

.quiz-results__box p {
    padding: 0;
    margin: 0;
}

.quiz-results__box ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    color: #06674f;
}

.quiz-results__box ul li {
    padding: 0;
    margin: 0;
    color: #06674f;
}

.quiz-results__box ul li::before {
    content: "";
    width: 45px;
    height: 45px;
    background-image: url(../img/check-list.png);
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
}

.quiz-results__end {
    margin: 0;
    font-size: 26px;
    line-height: 1.45em;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
}

.quiz-results__mentions {
    margin-left: -70px;
    margin-bottom: -70px;
}

.quiz-results__mentions p {
    margin: 0;
}

.quiz-code {
    color: #8b9092;
    font-size: 11px;
    line-height: 1.45em;
    position: absolute;
    bottom: 30px;
    right: 30px;
}