*, *::before, *::after {
    box-sizing: border-box;
}
:root {
    --white: #FFF;
    --white-2: #F7F4EE;

    --black: #000;
    --black-2: #032321;
    --black-3: #053D3D;

    --primary: #01FFCE;
    --primary-2: #00BCA5;
}
html, body {
    background-color: var(--black-3);
    margin: 0;
    padding: 0;
}
.is-flex {
    display: flex;
}
.is-flex-direction-column {
    flex-direction: column;
}
.is-justify-content-space-between {
    justify-content: space-between;
}
h1, h2, h3, p {
    color: var(--white);
    margin: 0;
    padding: 0;
}
h1 {
    font-family: "Mynerve", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5em;
    text-transform: uppercase;
}
h2 {
    font-family: "Playfair Display", serif;
    font-size: 4.5em;
    line-height: 1;
}
h3 {
    font-family: "Montserrat", serif;
    font-size: 1.25em;
    font-weight: 300;
    margin-top: 20px;
}
.introduction {
    margin-top: 80px;
    padding-bottom: 50px;
    width: 100%;
    text-align: center;
    background-image: url(../img/operation/contest-game/ia.svg);
    background-position: top center;
    background-size: 60%;
    background-repeat: no-repeat;
}
.arrow {
    height: 80px;
    margin-top: 50px;
    cursor: pointer;
}
.logo {
    width: 100px;
    margin-bottom: 50px;
}
.cadeaux {
    width: 100%;
    position: relative;
    overflow: hidden;
}
.list-cadeaux {
    display: flex;
}
.cadeau {
    background-color: var(--white);
    height: auto;
    padding: 20px;
    min-width: 180px;
    border-radius: 25px;
    margin-right: 20px;
    margin-top: 50px;
}
.cadeau img {
    width: 100%;
}
.cadeau.variant-0{
    background-color: var(--primary);
}
.cadeau.variant-1{
    background-color: var(--primary-2);
}
.cadeau.variant-2{
    background-color:var(--black-2);
}
.dejagagne {
    width: calc(100% + 160px);
    left: -80px;
    position: relative;
    overflow: auto;
}
.dejagagne .list-cadeaux {
    padding: 0px 80px;
}
.dejagagnekdo {
    background-color: var(--white);
    height: 170px;
    min-width: 220px;
    border-radius: 25px;
    margin-right: 20px;
    margin-top: 50px;
    padding: 20px;
}
.dejagagnekdo p:first-child {
    color: black;
    font-family: "Playfair Display", serif;
    font-size: 1.5em;
}
.dejagagnekdo p:nth-child(2) {
    color:var(--black-2);
    font-family: "Mynerve", serif;
    font-size: 2.5em;
}
.dejagagnekdo p:last-child {
    margin-top: 5px;
    font-family: "Montserrat", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.875em;
    font-style: italic;
}
.terminer {
    background-color:var(--black-2);
}
.dejagagnekdo.terminer p {
    color: var(--white);
}
.dejagagnekdo.terminer p:nth-child(2) {
    text-decoration: line-through;
}
.dejagagnekdo:last-child {
    min-width: 10px;
    background-color: transparent;
    margin: 0;
    padding: 0;
}
.participation,
.participation-gain, 
.participation-end {
    width: 100%;
    background-color: var(--primary-2);
}
.participation {
    padding: 80px 80px 0px 80px;
}
.participation-gain {
    padding: 0px 80px 80px 80px;
}
.participation-end {
    padding: 80px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.participation-end p {
    font-family: "Montserrat", serif;
    font-size: 0.875em;
    font-weight: 300;
    margin-top: 20px;
}
.column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.container {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.cg-container {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.participation img {
    width: 280px;
    margin-bottom: -2.5%;
    position: relative;
}
.participation-left {
    width: 90%;
}
.participation-right {
    width: 80%;
    display: flex;
    flex-direction: column;
}
.regle {
    display: flex;
    justify-content: space-between;
    margin-top: 50px; 
    flex-wrap: wrap;
    margin-bottom: 80px;
}
.jeu-info {
    background-color: var(--white-2);
    border-radius: 25px;
    width: calc(48% - 10px);
    height: auto;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    box-sizing: content-box;
}
.jeu-info:nth-child(1) {
    margin-bottom: 40px;
}
.jeu-info:nth-child(2) {
    margin-top: 40px;
}
.jeu-info p {
    text-align: center;
}
.jeu-info p:first-child {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2em;
    color:var(--black-2);
    text-align: center;
}
.jeu-info div:first-child p:last-child,
.group p,
.game #level4 p,
.game #level5 p {
    font-family: 'Montserrat', serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.875em;
    color:var(--black-2);
}
.game #level4 p,
.game #level5 p {
    text-align: center;
}
.game #level4 p {
    color: var(--white);
}
.mb-20 {
    margin-bottom: 20px;
}
.mb-50 {
    margin-bottom: 50px;
}
.jeu-info div:first-child {
    padding: 15px;
}
.image {
    background-color: var(--white);
    /* padding: 20px 20px 0px 20px; */
    padding: 10px;
    border-radius: 20px;
    margin-top: 10px;
}
/* .image img {
    width: 100%;
} */
/* .jeu-info:first-child .image {
    padding: 20px 0px 20px 20px;
}  */
.group p {
    margin-top: 10px;
    margin-left: 20px;
}
.game {
    background-color: var(--white-2);
    border-radius: 48px;
    height: auto;
    min-height: 525px;
    z-index: 2;
    padding: 50px;
    position: relative;
    overflow: hidden;
}
[class|=confetti] {
    pointer-events: none;
}
.game h1 {
    color:var(--black-2);
    text-align: center;
    margin-bottom: 25px;
}
/* .game:has(> #level5[style="display: flex;"]),  */
.game:has(> #level4[style="display: flex;"]) {
    background-color: var(--black);
    position: relative;
    overflow: hidden;
}
#level2 form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 470px;
}
#level3 {
    align-items: center;
    justify-content: center;
    height: 100%;
}
#level4 {
    background-color: var(--black);
}
#level4,
#level5 {
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-direction: column;
}
/* #level5 {
    position: relative;
} */

#level4 img {
    position: absolute;
    left: -128px;
    top: 6px;
    max-height: 505px;
}
.game .emoji {
    font-size: 5em;
}
#level4 h1:not(.emoji),
#level5 h1:not(.emoji) {
    color: var(--primary);
    font-weight: bold;
    font-weight: 800;
    font-family: 'Montserrat';
    margin-bottom: 10px;
}
.game #level4 p.lower,
.game #level5 p.lower {
    font-size: .75em;
}
.gains {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.gains img {
    width: 50px;
    left: inherit;
    rotate: 25deg;
    margin-top: 16px;
    margin-left: 20px;
}
form {
    width: 100%;
}
.group { 
    position:relative;
    width: 100%;
    margin-top: 10px;
}
input {
    font-size: 16px;
    padding: 40px 20px 20px 20px;
    display: block;
    width: 100%;
    border: none;
    max-height: 80px;
    border-radius: 20px;
}
input.lastname {
    text-transform: uppercase;
}
input.firstname {
    text-transform: capitalize;
}
input:focus { 
    outline:none;
    box-shadow: 0 0 0 4px rgba(0,188,165,0.6);
    border-color: var(--black-2);
}
label {
    font-family: 'Playfair Display', serif;
    color: #AFBFCA; 
    font-size: 18px;
    font-weight: 400;
    letter-spacing: inherit;
    position: absolute;
    pointer-events: none;
    left: 23px;
    top: 26px;
    transition: 0.2s ease all; 
    -moz-transition: 0.2s ease all; 
    -webkit-transition: 0.2s ease all;
}
.checkgox-group {
    display: flex;
    align-items: center;
}
.checkgox-group input {
    width: auto;
    margin-right: 20px;
}
.checkgox-group label {
    position: initial;
    font-family: 'Montserrat', serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.875em !important;
}
input:focus ~ label, 
input:valid ~ label {
    top:15px;
    font-size: 0.75em;
    color:var(--black-2);
} 
input[type=submit] {
    background-color: var(--primary-2);
    font-family: 'Montserrat', serif;
    color: var(--white);
    border: none;
    border-radius: 190px;
    font-size: 16px;
    padding: 18px 16px;
    margin-left: auto;
    font-weight: 400;
    margin-top: 25px;
    cursor: pointer;
}
input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.progress-fond {
    width: 100%;
    background-color: var(--white-2);
    height: 5px;
    border-radius: 190px;
    margin-top: 15px;
    margin-bottom: 5px;
}
.progress {
    background-color: var(--primary-2);
    height: 5px;
    border-radius: 190px;
}
.conditions {
    padding: 80px 30px;
    width: 100%;
    background-color: var(--white-2);
}
.conditions p {
    color: var(--black);
    font-family: 'Montserrat', serif;
    font-weight: 300;
    font-size: 0.8750em;
    margin-top: 20px;
}
.conditions p:first-child {
    font-family: 'Mynerve', serif;
    font-size: 1.25em;
}
:root {
    --secondary-font: 'Montserrat', sans-serif;
    --secondary-normal: #621FEE;
    --secondary-border-radius: 8px;
    --white: #FFF;
    --second-light: #F2F2F2;
}
.overlay {
    visibility: hidden;
    opacity: 0;
    z-index: 4000;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(50, 50, 50, 0.70);
    display: flex;
    justify-content: center;
    align-items: center;
}
.overlay p {
    color: #000;
}
.overlay.target {
    -webkit-animation: openpopup 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    -moz-animation: openpopup 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    -o-animation: openpopup 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    animation: openpopup 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    visibility: visible;
    opacity: 1;
}
#play-again .confirm {
    width: 320px;
    height: auto;
    background-color: var(--white);
    height: auto;
    border-radius: var(--secondary-border-radius);
    text-align: center;

}
#play-again .confirm p {
    font-size: 0.875em;
    font-family: 'Montserrat', sans-serif;
    padding: 0px 40px 30px 40px;
    font-weight: 400;
}
#play-again .confirm p:first-child {
    /* font-family: var(--primary-font); */
    font-weight: 700;
    margin-top: 0px;
    padding: 40px 40px 20px 40px;
}
#play-again .confirm p.article_title {
    font-size: 1.000em;
}
#play-again .confirm_btn {
    width: 100%;
    border-top: 2px solid var(--second-light);
    display: flex;
    align-items: center;
}
#play-again .reponse {
    padding: 0px;
    padding-right: 20px;
}
#play-again .reponse:first-child {
    border-right: 2px solid var(--second-light);
}
#play-again .reponse100:first-child {
    width: 100%;
    border-right: 0px;
    padding-right: 0px;
}
#play-again a {
    font-family: var(--secondary-font);
    color: var(--secondary-normal);
    text-decoration: none;
}
#play-again .confirm p {
    font-size: 0.875em;
    font-family: var(--secondary-font);
    padding: 0px 40px 30px 40px;
}
#play-again .confirm p:first-child {
    /* font-family: var(--primary-font); */
    font-weight: 700;
    margin-top: 0px;
    padding: 40px 40px 20px 40px;
}
#play-again .confirm .confirm_btn p {
    padding: 20px 0px;
}
#play-again .reponse a p {
    color: var(--secondary-normal);
}
/** Responsive **/
@media screen and (max-width: 960px){
    .participation {
        padding-bottom: 80px;
    }
    .participation .container {
        flex-direction: column;
    }
    .participation-left,
    .participation-right {
        width: 100%;
    }
    .participation-left h2 {
        max-width: min-content;
    }
    .regle {
        flex-wrap: nowrap;
        overflow: auto;
        position: relative;
        left: -80px;
        padding: 0 80px;
        width: calc(100% + 160px);
    }
    .jeu-info {
        width: 100%;
        max-width: 250px;
        min-width: 200px;
    }
    .jeu-info:not(:last-child) {
        margin-right: 20px;
    }
    .jeu-info:nth-child(1) {
        margin-bottom: 0px;
    }
    .jeu-info:nth-child(2) {
        margin-top: 0px;
    }
}
@media screen and (max-width: 730px){
    .participation {
        padding: 80px 50px;
    }
    .participation-gain {
        padding: 0 50px 80px 50px;
    }
    .participation-left h2 {
        max-width: 100%;
    }
    .dejagagne {
        width: calc(100% + 100px);
        left: -50px;
    }
    .dejagagne .list-cadeaux {
        padding: 0px 50px;
    }
    .regle {
        left: -50px;
        padding: 0px 50px;
        width: calc(100% + 100px);
    }
    .dejagagnekdo:last-child {
        padding: 10px;
    }
}
@media screen and (max-width: 530px){
    .participation {
        padding: 80px 30px;
    }
    .participation-gain {
        padding: 0 30px 80px 30px;
    }

    .dejagagne {
        width: calc(100% + 60px);
        left: -30px;
    }
    .dejagagne .list-cadeaux {
        padding: 0px 30px;
    }
    .regle {
        left: -30px;
        padding: 0px 30px;
        width: calc(100% + 60px);
    }
    .dejagagnekdo:last-child {
        padding: 10px;
    }
    .game {
        width: calc(100% + 60px);
        position: relative;
        left: -30px;
        border-radius: 0;
    }
    h2 {
        font-size: 4em;
    }
}
@media screen and (max-width: 400px) {
    h2 {
        font-size: 3.5em;
    }
}
@media screen and (max-width: 350px) {
    h2 {
        font-size: 3em;
    }
}