/* FONTS */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Pacifico&display=swap');

@font-face {
    font-family: "TendriaLTPro";
    src: url("../fonts/TendriaLTPro-305091c1d2330e3cda6ca56356148d8b.otf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: lighter;
    src: url("../fonts/Brandon-Regular-7e3d5f781d7eff106841a3f84cb6a6db.ttf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: normal;
    src: url("../fonts/Brandon-Medium-c0e903472b863f8724546381f9486e0b.ttf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: bold;
    src: url("../fonts/Brandon-Bold-3c31b20e2565211944928961b6984418.ttf");
}
@font-face {
    font-family: "Lando Sans";
    font-weight: bold;
    src: url("../fonts/LandoSans-Bold-88e75cf8abce05478596cb509fa044a6.otf");
}

/* TAGS */

:root {
    /* Colors */
    --darkblue: #001689;
    --darkblue-15: #00168926;
    --darkblue-25: #00168940;
    --darkblue-40: #00168966;
    --darkblue-50: #00168980;
    --lightblue: #0098D5;
    --lightblue-20: #0098D533;
    --red: #DC241F;
    --white: #FCFEFF;
    --white-40: #FCFEFF66;
    --white-50: #FCFEFF80;
    --white-60: #FCFEFF99;
    --black-20: #00000033;

    /* Font Families */
    --ff-tendria: "TendriaLTPro";
    --ff-brandon: "Brandon Grotesque";
    --ff-lando: "Landon Sans";
    --ff-lato: "Lato";
    --ff-pacifico: "Pacifico";
}

html {
    box-sizing: border-box;
    display: block;
    text-size-adjust: 100%;
    text-rendering: optimizelegibility;
}

body {
    background-image: url("../img/background-single-46751292a04e61e27db4a2db21108ea2.webp");
    background-position: center center;
    background-size: auto 100%;
    background-repeat: no-repeat;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    color: var(--darkblue);
    font-family: var(--ff-brandon);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -ms-flex-direction: column;
    flex-wrap: nowrap;
}

main {
    touch-action: manipulation;
}

input {
    box-sizing: border-box;
}

/* CUSTOM CLASSES */

.img-responsive {
    width: 100%;
    height: auto;
}

.responsive-img {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

/* HEADER */

.header {
    text-align: center;
    position: relative;
}

.header-logo {
    width: clamp(110px, 28%, 172px);
    max-width: 172px;
    margin: 0 auto;
}

.logo-link img {
    transition: transform 0.3s ease;
}
.logo-link:hover img {
    transform: scale(1.1);
}

/* MAIN */

.main {
    flex: 1;
    position: relative;
    overflow-x: hidden;
}

/* HOME */

body:has(main.home) {
    background-image: url("../img/background-single-46751292a04e61e27db4a2db21108ea2.webp");
    background-size: cover;
    background-position: center bottom;
    /*-webkit-backdrop-filter: brightness(92%);*/ /* Pour compatibilité avec Safari */
    /*backdrop-filter: brightness(92%);*/
    position: relative;
}

.main.home {
    /*background-image: url("../img/Elements-cookutless-764ee015012e0acdfdd00d6d52731cf8.webp");
    background-position: right bottom;
    background-size: 300px;
    background-repeat: no-repeat;*/
}

.home-content {
    position: relative;
    z-index: 2;
}

.home-title {
    display: block;
    width: 100%;
    height: auto;
    max-width: 350px;
    margin: 2.5rem auto 0;
    /*text-shadow: 2px 0 #fff, -2px 0 #fff, 
                0 2px #fff, 0 -2px #fff,
                1px 1px #fff, -1px -1px #fff, 
                1px -1px #fff, -1px 1px #fff,
                2px 2px 1.5rem #45001B33;*/
}

.home-subtitle {
    color: var(--darkblue);
    font-family: var(--ff-tendria);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3em;
    text-align: center;
    text-shadow: 2px 2px 1.5rem #45001B33;
    margin-top: 0;
}

.home-form-wrapper {
    position: relative;
    max-width: 330px;
    min-height: 338px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 20px;
    padding-bottom: 0;
    background-color: #FCFEFF66;
    color: var(--darkblue);
    font-weight: 450;
    text-align: center;
}

.home-form-blur {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--darkblue-25);
    /*-webkit-backdrop-filter: blur(25px);*/ /* Pour compatibilité avec Safari */
    /*backdrop-filter: blur(25px);*/
    border-radius: 20px;
}

.home-form-wrapper form {
    position: relative;
    z-index: 2;
}

.form-row {
    width: 100%;
}

.form-row:has(input.home-form-email) label {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2em;
}

.form-row input.home-form-email {
    /*border: 2px solid var(--darkblue);*/
    margin-top: 12px;
    width: 100%;
}

.home-form-wrapper .form-row label {
    font-size: 0.875rem;
    line-height: 1.1em;
    font-weight: bold;
}

.text-mandatory {
    font-size: 0.8rem;
}

.home-form-rules-row {
    display: flex;
    flex-direction: row;
    -ms-flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 22px;
    text-align: left;
}
.home-form-rules-row:first-of-type {
    margin-top: 22px;
}
.home-form-rules-row:not(:first-of-type) {
    margin-top: 0;
}

.home-form-submit {
    border: none;
    background-color: unset;
    background-image: url("../img/nuage-disabled-shadow-27a1a814179984124e78da9c1c2e4877.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
    filter: drop-shadow(7.47px 4.98px 42.34px #00000026);
    width: 203px;
    height: 120px;
    margin: 0 auto;
    font-family: var(--ff-tendria);
    font-weight: 700;
    font-size: 1.875rem;
    letter-spacing: 0.025rem;
    color: var(--darkblue);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.home-form-submit:hover {
    transform: scale(1.1);
}
.home-form-submit.disabled {
    color: var(--darkblue-40);
    pointer-events: none;
}

.home-legals {
    max-width: 330px;
    margin: 0 auto;
    font-family: var(--ff-brandon);
    font-size: 0.6rem;
    font-weight: 450;
    line-height: 1.1em;
    letter-spacing: 0em;
}

.home-balloon {
    width: 50%;
    margin-top: -45%;
    pointer-events: none;
}

.home-products {
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 12.5%;
    max-width: 12.5rem;
    pointer-events: none;
}

.home-tree {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 25%;
    pointer-events: none;
}

.home-cookut {
    position: absolute;
    bottom: 5%;
    right: 2%;
    width: clamp(175px, 65%, 330px);
    max-width: 330px;
    transform: rotate(-10deg);
    z-index: 1;
}

.mobile-home-cookut {
    width: clamp(175px, 65%, 330px);
    max-width: 330px;
    transform: rotate(-10deg);
    margin: 2rem auto 1rem;
}

/* TUTO */

body:has(main.tuto) {
    background-position: left bottom;
}

.swiper-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    margin-top: -84px;
    overflow: hidden;
}

.swiper-slide {
    text-align: center;
}

.swiper-slide.final {
    /*margin-top: 124px;*/
    height: auto;
    text-align: center;
    /*padding-top: 50%;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.swiper-slide.final a {
    display: inline-block;
    border: none;
    background-color: unset;
    background-image: url("../img/nuage-disabled-shadow-2-fb6b67c7c336122d8298149d20b6dacb.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
    padding: 50px 75px;
    margin: 0 auto;
    font-family: var(--ff-tendria);
    font-weight: 400;
    font-size: 1.875rem;
    letter-spacing: 0.025rem;
    text-decoration: none;
    color: var(--darkblue);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.swiper-slide.final a:hover {
    transform: scale(1.1);
}

.swiper-buttons {
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 0;
    width: 100%;
    height: 60px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    -ms-flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.tuto .swiper-button,
.tuto .swiper-button-next,
.tuto .swiper-button-prev {
    width: 60px;
}

.swiper-button:after {
    display: none;
}

.swiper-button-img {
    width: 60px;
    height: auto;
}

/* GAME */

body:has(main.game) {
    background-image: url("../img/background-full-eede19563ef7ef2466beb2a940f715c9.webp");
    /*-webkit-backdrop-filter: brightness(95%);*/ /* Pour compatibilité avec Safari */
    /*backdrop-filter: brightness(95%);*/
    transition: 2s linear;
    background-position: left bottom;
}

.main.game {
    /*min-height: 100vh;*/
    overflow: hidden;
}

.game-icon-help {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    padding: 0.75rem; /* 12px */
    border-radius: 100px;
    border: none;
    background-color: var(--white-60);
    color: var(--darkblue);
    cursor: pointer;
}

.game-icon-help-img {
    display: block;
}

.modal-help-background {
    position: absolute;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--black-20);
}
.modal-help-background.hidden {
    display: none;
}

.modal-help {
    position: absolute;
    top: 4.6rem;
    right: 1.25rem;
    padding: 1rem; /* 16px */
    width: 210px;
    border-radius: 1.25rem; /* 20px */
    background-color: var(--white-60);
    color: var(--darkblue);
}

.modal-help-title {
    text-align: center;
}

.modal-help-close {
    position: absolute;
    top: 0.6rem;
    right: 1.25rem;
    padding: 1.15rem; /* 24px */
    border-radius: 100px;
    border: none;
    background-color: var(--white-60);
    color: var(--darkblue);
    cursor: pointer;
}
.modal-help-close-img {
    display: block;
}

.hud {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem; /* 20px */
    box-sizing: border-box;
}

.hud .timer {
    font-family: var(--ff-pacifico);
    font-weight: 400;
    font-size: 3.125rem;
    line-height: 4.0625rem;
    letter-spacing: 0;
    color: var(--darkblue-50);
    text-shadow: 2px 0 var(--white), 
                -2px 0 var(--white), 
                0 2px var(--white), 
                0 -2px var(--white),
               1px 1px var(--white), 
               -1px -1px var(--white), 
               1px -1px var(--white), 
               -1px 1px var(--white);
}

.hud .score {
    font-family: var(--ff-pacifico);
    font-weight: 400;
    font-size: 2.125rem;
    line-height: 2.7625rem;
    letter-spacing: 0;
    /*-webkit-text-stroke: 1px var(--white);*/
    text-shadow: 2px 0 var(--white), 
                -2px 0 var(--white), 
                0 2px var(--white), 
                0 -2px var(--white),
               1px 1px var(--white), 
               -1px -1px var(--white), 
               1px -1px var(--white), 
               -1px 1px var(--white);
}

.game-start {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: 0.5s ease;
    width: 90%;
    text-align: center;
}
.game-start.hidden {
    visibility: hidden;
    opacity: 0;
}

.game-start-title {
    font-family: var(--ff-pacifico);
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 130%;
    letter-spacing: 0;
    color: var(--darkblue);
    text-shadow: 2px 0 var(--white), 
                -2px 0 var(--white), 
                0 2px var(--white), 
                0 -2px var(--white),
               1px 1px var(--white), 
               -1px -1px var(--white), 
               1px -1px var(--white), 
               -1px 1px var(--white);
    text-align: center;
    margin-bottom: 0;
}
.game-start-subtitle {
    font-family: var(--ff-brandon);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 140%;
    letter-spacing: 0;
    color: var(--darkblue);
    margin-top: 0.625rem;
}
.game-start-tap {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
}

.game-end {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--ff-pacifico);
    font-weight: 400;
    font-size: 3.75rem;
    line-height: 130%;
    letter-spacing: 0;
    color: #001689CC;
    text-shadow: 2px 0 var(--white), 
                -2px 0 var(--white), 
                0 2px var(--white), 
                0 -2px var(--white),
               1px 1px var(--white), 
               -1px -1px var(--white), 
               1px -1px var(--white), 
               -1px 1px var(--white);
    text-align: center;
    opacity: 1;
    transition: font-size 1.5s ease, opacity 1.5s ease;
}
.game-end a {
    color: #001689CC;
    text-decoration: none;
}
.game-end.hidden {
    visibility: hidden;
    opacity: 0;
}
.game-end-tap {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60px;
}

.balloon {
    display: inline-block;
    position: absolute;
    left: 11%;
    top: 25%;
}

.balloon-img {
    max-height: 200px;
    height: min(50vw, 200px);
    width: auto;
}

.object {
    display: inline-block;
    position: absolute;
}

.point-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.point-pop {
    max-width: 400px;
}
.point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 60px;
}

/* GAME - Endgame */

body:has(main.endgame) {
    background-image: url("../img/background-full-eede19563ef7ef2466beb2a940f715c9.webp");
    background-position: right -200px;
    background-size: 5000px;
    /*-webkit-backdrop-filter: brightness(92%);*/ /* Pour compatibilité avec Safari */
    /*backdrop-filter: brightness(92%);*/
}

.main.endgame {
    /*background-image: url("../img/endgame-elements-e3bb4f373ff546f82fd725f8a1c28533.webp");
    background-position: top right -50%;
    background-size: 272px;
    background-repeat: no-repeat;*/
    overflow: hidden;
}
.main.endgame:has(.endgame-cookut.animation) {
    overflow: visible;
}

.endgame-replay-wrapper {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
}

.endgame-replay-wrapper a,
.endgame-replay-wrapper .endgame-replay {
    padding: 0.75rem; /* 12px */
    border-radius: 100px;
    border: none;
    background-color: var(--white);
    color: var(--darkblue);
    font-family: var(--ff-tendria);
    font-weight: 400;
    font-size: 1.125rem; /* 18px */
    line-height: 1em;
    letter-spacing: 0.4px;
    text-align: center;
    text-decoration: none;
}
.endgame-replay-wrapper a:hover {
    text-decoration: underline;
}
.endgame-replay-wrapper .endgame-replay.tuto-label {
    font-size: 1.5rem;
}

.endgame-modal {
    position: absolute;
    z-index: 3;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 330px;
    text-align: center;
    transition: 1s ease;
}

.main.endgame:has(.endgame-cookut.animation) .endgame-modal {
    opacity: 0;
}

.endgame-title {
    width: 100%;
    height: auto;
    max-width: 330px;
}

.endgame-link-wrapper {
    background-color: unset;
    background-image: url("../img/cloud-main-04b9eb610aab843d1d46f8a2418a2407.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
    font-family: var(--ff-tendria);
    font-weight: 700;
    font-size: 1.875rem;
    letter-spacing: 0.025rem;
    text-align: center;
    color: var(--darkblue);
    padding: 3.375rem 2.875rem;
    transition: transform 0.3s ease;
}
.endgame-link-wrapper:hover {
    transform: scale(1.1);
}

.endgame-link {
    text-decoration: none;
    color: var(--darkblue);
}

.endgame-cookut {
    max-width: 260px;
    width: 100%;
    position: absolute;
    bottom: -30%;
    left: 50%;
    transform: translateX(-30%);
    z-index: 2;
    transition: 1.5s ease;
}
.endgame-cookut.animation {
    bottom: 35%;
    left: 40%;
    z-index: 4;
}

/* GAME - Result */

body:has(main.result) {
    background-image: url("../img/background-full-eede19563ef7ef2466beb2a940f715c9.webp");
    background-position: right center;
    background-size: 5000px;
    /*-webkit-backdrop-filter: brightness(90%);*/ /* Pour compatibilité avec Safari */
    /*backdrop-filter: brightness(90%);*/
}

.main.result {
    background-position: left bottom;
    background-size: 200px;
    background-repeat: no-repeat;
    overflow: hidden;
}

.result-modal {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-height: 220px;
}

.result-background {
    width: 150%;
    transform: translateX(-15%);
}

.result-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
}

.result-title {
    font-family: var(--ff-tendria);
    font-weight: 400;
    font-size: 1.5rem; /* 24px */
    line-height: 1.3em;
    letter-spacing: 0;
    text-align: center;
}

.result-text {
    font-family: var(--ff-brandon);
    font-weight: 450;
    font-size: 1rem;
    line-height: 1.2em;
    letter-spacing: 0;
    color: var(--lightblue);
}

.result-link-wrapper {
    padding: 18px 22px;
    border-radius: 100px;
    border: none;
    background-color: var(--lightblue);
    color: var(--white);
    font-family: var(--ff-tendria);
    font-weight: 400;
    font-size: 18px;
    line-height: 1em;
    letter-spacing: 0.4px;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
    transition: transform 0.3s ease;
}
.result-link-wrapper:hover {
    transform: scale(1.1);
}
.result-link-wrapper a {
    color: var(--white);
    text-decoration: none;
}

.result-montgolfiere {
    position: absolute;
    bottom: 5%;
    left: 10%;
    width: clamp(148px, 35%, 220px);
    max-width: 220px;
    transform: rotate(6deg);
    z-index: 1;
}

.result-product {
    position: absolute;
    bottom: 5%;
    right: 8%;
    width: clamp(50px, 12.5%, 75px);
    max-width: 220px;
    transform: rotate(-17deg);
    z-index: 1;
}

.result-cookut {
    position: absolute;
    bottom: -20%;
    left: 50%;
    width: clamp(175px, 45%, 230px);
    max-width: 230px;
    transform: translateX(-50%);
    z-index: 1;
}

/* WIN - Announcement */

body:has(main.announcement) {
    /*background-position: right center;
    background-size: 5000px;*/
    /*-webkit-backdrop-filter: brightness(95%);*/ /* Pour compatibilité avec Safari */
    /*backdrop-filter: brightness(95%);*/
}

.radiant-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(53.71% 127.13% at 16.17% 89.6%, #EFF7FE 27.73%, rgba(213, 228, 243, 0) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
}

.main.announcement {
    /*background-image: url("../img/elements-announcement-2ff01357f42de754c1c2444eade8c5ab.webp");
    background-position: left bottom;
    background-size: 164px;
    background-repeat: no-repeat;*/
    overflow: hidden;
    max-height: 84vh;
}

.announcement-modal {
    width: 100%;
    text-align: center;
}

.announcement-subtitle {
    position: relative;
    font-family: var(--ff-tendria);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3em;
    letter-spacing: 0;
    color: var(--red);
    text-shadow: -3px -3px 0 var(--white),
                 3px -3px 0 var(--white),
                 -3px 3px 0 var(--white),
                 3px 3px 0 var(--white),
                 0 -3px 0 var(--white),
                 0 3px 0 var(--white),
                 -3px 0 0 var(--white),
                 3px 0 0 var(--white);

    margin: 0;
    /*margin-top: -1rem;*/
}
.announcement-subtitle .amount {
    font-size: 3.5rem;
}

.announcement-gain-wrapper {
    width: 77.5%;
    margin: 0 auto;
    margin-right: 0;
    margin-top: -3rem;
}
.announcement-gain-img {
    display: block;
}

.announcement-tree {
    position: absolute;
    bottom: 0%;
    left: -45%;
    width: 80%;
    pointer-events: none;
}

.announcement-link-wrapper {
    padding: 1rem;
    border-radius: 100px;
    border: none;
    background-color: var(--lightblue);
    background: linear-gradient(90deg, var(--darkblue) 0%, var(--lightblue) 0%);/* initoal */
    color: var(--white);
    font-family: var(--ff-tendria);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1875rem;
    letter-spacing: 0.4px;
    text-align: center;
    width: fit-content;
    /*min-width: 282px;*/
    margin: 0 auto;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    /*transform: translateX(-50%);*/
    transition: background 5s linear;
}

.announcement-link-wrapper a {
    color: var(--white);
    text-decoration: none;
}

/* WIN - Form */

body:has(main.win) {
    background-image: url("../img/background-single-46751292a04e61e27db4a2db21108ea2.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 100%;
    /*-webkit-backdrop-filter: brightness(92%);*/ /* Pour compatibilité avec Safari */
    /*backdrop-filter: brightness(92%);*/
}

.win-columns {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    -ms-flex-direction: column;
}

.win-column.right {
    margin: 0 20px;
    padding: 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-color: var(--darkblue-15);
}

.win-cloud {
    /*background-image: url("../img/cloud-win-mobile-6c916e3c31cd87c759817838843b6724.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    text-align: center;
    padding: 38px 0;*/
    position: relative;
}

.win-cloud-background {
    width: 100%;
}

.win-cloud-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.win-title {
    font-family: var(--ff-tendria);
    font-weight: 400;
    font-size: 28px;
    line-height: 130%;
    letter-spacing: 0;
    max-width: 75%;
    margin: 1rem auto;
}

.win-subtitle {
    font-family: var(--ff-brandon);
    font-weight: 450;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--lightblue);
    max-width: 75%;
    margin: 1rem auto;
}

.win-subtitle strong {
    font-family: var(--ff-lando);
    font-weight: 700;
    font-size: 22px;
    line-height: 26.4px;
    letter-spacing: 0;
}

.win-image-wrapper {
    overflow: visible;
    display: flex;
    justify-content: center;
    margin-top: -15%;
    margin-bottom: -35%;
}

.win-image {
    width: 125%;
    height: auto;
}

.form-row {
    margin-bottom: 0.78125rem;
}

.form-row.form-columns {
    margin-bottom: 0;
}

.form-columns {
    display: flex;
    flex-direction: row;
    -ms-flex-direction: row;
    gap: 4%;
}

.form-column {
    flex: 1;
}

.form-row label {
    text-align: left;
}

.form-row input {
    width: 100%;
    padding: 0.78125rem 1.125rem;
    border-radius: 1.25rem;
    border: none;
    color: var(--darkblue);
    font-family: var(--ff-brandon);
    font-weight: 420;
    font-size: 1rem;
    line-height: 1.431875rem;
    letter-spacing: 0;
}

.form-row input[type="checkbox"] {
    width: auto;
}

.form-row input::placeholder {
    color: var(--darkblue-50);
    font-family: var(--ff-brandon);
    font-weight: 420;
    font-size: 1rem;
    line-height: 1.431875rem;
    letter-spacing: 0;
}

.form-section-title {
    font-family: var(--ff-brandon);
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1.75rem;
    letter-spacing: 0;
    text-align: center;
    margin: 0.78125rem 0;
}

.form-row:has(.win-form-submit) {
    text-align: center;
}

.win-form-submit {
    padding: 18px 22px;
    border-radius: 100px;
    border: none;
    background-color: var(--lightblue);
    color: var(--white);
    font-family: var(--ff-tendria);
    font-weight: 700;
    font-size: 18px;
    line-height: 21.6px;
    letter-spacing: 0.4px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.win-form-submit.disabled {
    background-color: var(--white-60);
    color: var(--darkblue-25);
    pointer-events: none;
}
.win-form-submit:hover {
    transform: scale(1.1);
}

/* WIN - Confirmation */

body:has(main.win-confirmation) {
    background-image: url("../img/background-single-46751292a04e61e27db4a2db21108ea2.webp");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: cover;
}

main.win-confirmation {
    
    overflow: hidden;
}

.win-confirmation-modal {
    padding: 30px 20px;
    width: 75%;
    max-width: 300px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    background-color: var(--white-50);
    z-index: 3;
}

.win-confirmation-modal-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backdrop-filter: blur(6px); /* Pour compatibilité avec Safari */
    backdrop-filter: blur(6px);
    border-radius: 20px;
    z-index: 3;
}

.win-confirmation-modal-content {
    position: relative;
    z-index: 4;
}

.win-confirmation-modal-picto {
    width: 36px;
    height: 36px;
    display: block;
    margin: 0 auto;
    border: 1.5px solid var(--darkblue);
    border-radius: 100px;
}

.win-confirmation-modal-message {
    font-family: var(--ff-brandon);
    font-weight: 450;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0px;
    text-align: center;
}

.win-confirmation-modal-link-wrapper {
    text-align: center;
    margin-top: 2.25rem;
}

.win-confirmation-modal-link {
    padding: 18px 22px;
    border-radius: 100px;
    border: none;
    background-color: var(--lightblue);
    color: var(--white);
    font-family: var(--ff-tendria);
    font-weight: 400;
    font-size: 18px;
    line-height: 1em;
    letter-spacing: 0.4px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}
.win-confirmation-modal-link:hover {
    transform: scale(1.1);
}

.win-confirmation-elements {
    max-width: 390px;
    position: absolute;
    top: -2.75rem;
    right: 0;
    z-index: 2;
}

.win-confirmation-cookut {
    max-width: 330px;
    position: absolute;
    bottom: 0;
    left: -4.25rem;
    z-index: 2;
}

/* ERROR - 404 */

body:has(main.error404) {
    /*-webkit-backdrop-filter: brightness(92%);*/ /* Pour compatibilité avec Safari */
    /*backdrop-filter: brightness(92%);*/
}

main.error404 {
    text-align: center;
    padding-top: 70px;
}

.error404-container {
    max-width: 330px;
    margin: 0 auto;
}

.error404 h1 {
    font-family: var(--ff-pacifico);
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 130%;
    letter-spacing: 0;
    /*-webkit-text-stroke: 1px var(--white);*/
    color: var(--darkblue);
    text-shadow: 2px 0 var(--white), 
                -2px 0 var(--white), 
                0 2px var(--white), 
                0 -2px var(--white),
               1px 1px var(--white), 
               -1px -1px var(--white), 
               1px -1px var(--white), 
               -1px 1px var(--white);
}

.error404 p {
    font-family: var(--ff-brandon);
    font-weight: 450;
    font-size: 1rem;
    letter-spacing: 0px;
}

.error404 .endgame-link-wrapper {
    font-size: 2.125rem;
    width: fit-content;
    padding: 45px 60px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.error404-montgolfiere {
    width: min(40%, 230px);
    margin: 1rem auto 0;
    transform: rotate(-4deg);
}

/* FOOTER */

.footer {
    position: relative;
    background-color: var(--darkblue);
    padding: 12px 40px;
}

.footer-items {
    list-style: none;
    padding-left: 0;
    margin: 0;
    text-align: center;
}

.footer-item {
    display: inline-block;
    color: var(--white);
    font-size: 0.875rem;
    line-height: 1.245625rem;
    margin-left: 0.5rem;
}

.footer-item:first-of-type {
    margin-left: 0;
}

.footer-item::before {
    content: "|";
    margin-right: 0.5rem;
}

.footer-item:first-of-type::before {
    content: "";
    margin-right: 0;
}

.footer-item-link {
    text-decoration: none;
    color: var(--white);
    font-size: 0.875rem;
    line-height: 1.245625rem;
}

@media screen and (min-width: 768px) {
    
    /* TAGS */

    /*body {
        background-image: url("../img/background-desktop-5bcd3dbb880b7f50fda2908051f6234e.webp");
    }*/

    /* CUSTOM CLASSES */

    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: block;
    }

    /* FOOTER */

    .footer-items {
        text-align: right;
    }

    .footer-item {
        margin-left: 12px;
    }
    
    .footer-item::before {
        margin-right: 12px;
    }

    /* HOME */

    body:has(main.home) {
        background-position: center bottom;
    }

    .main.home {
        overflow: hidden;
    }

    .home-title {
        width: min(68.5vh, 570px);
        max-width: 570px;
        margin-top: 1.5rem;
    }

    .home-subtitle {
        font-size: min(3.37vw, 1.75rem);
    }

    .home-form-wrapper {
        max-width: 520px;
        padding: min(3.125vw, 40px);
        padding-bottom: 0;
    }

    .form-row:has(input.home-form-email) label {
        font-size: min(2.4vh, 1.25rem);
    }

    .home-form-wrapper .form-row label {
        font-size: min(1.68vh, 0.875rem);
    }

    .home-form-wrapper .form-row input {
        font-size: min(1.92vh, 1rem);
        padding: min(1.5vh, 0.78125rem), min(2.16vh, 1.125rem);
    }

    .home-form-submit {
        width: min(24.4vh, 12.625rem);
        height: min(14.42vh, 7.5rem);
        font-size: min(3.60vh, 1.875rem);
    }

    .home-legals {
        max-width: 520px;
        margin-bottom: 3rem;
    }

    .home-cookut {
        /*bottom: unset;*/
        right: 2%;
        width: clamp(175px, 25%, 330px);
        transform: unset;
    }

    /* TUTO */

    /*.swiper-slide.final {
        padding-top: 15%;
    }*/

    .endgame-replay-wrapper .endgame-replay.tuto-label {
        font-size: 2rem;
    }

    .swiper-buttons {
        height: 72px;
    }

    .tuto .swiper-button,
    .tuto .swiper-button-next,
    .tuto .swiper-button-prev {
        width: 72px;
    }

    .swiper-button-img {
        width: 72px;
    }

    /* GAME */

    .modal-help-close {
        top: 1.6rem;
    }

    .modal-help {
        top: 1.6rem;
        right: 6.25rem;
    }

    .balloon-img {
        max-height: 280px;
        height: min(27.5vh, 280px);
    }

    .hud {
        padding: 2.5rem 3.125rem; /* 40px 50px */
    }

    .game-end {
        font-size: 5.625rem;
    }
    .game-end a:hover {
        font-size: 6rem;
    }
    .game-end-tap {
        width: 80px;
        bottom: -40px;
        left: -40px;
    }

    /* GAME - End */

    .main.endgame {
        background-position: center right;
    }

    .endgame-cookut {
        max-width: 320px;
    }
    .endgame-cookut.animation {
        left: 45%;
    }

    /* GAME - Result */

    .main.result {
        /*background-image: url("../img/elements-result-left-49ffa9cdc78f45fb66ee8e382fe56abe.webp"), url("../img/elements-result-right-99f28b5d619e065ab30e7377e9364ebc.webp");
        background-position: left bottom, right bottom;
        background-size: min(25vw, 300px), min(25vw, 300px);
        background-repeat: no-repeat;*/
    }

    .result-modal {
        max-width: 600px;
        min-height: 280px;
        top: 40%;
        transform: translate(-50%, -50%);
    }

    .result-background {
        width: 125%;
        transform: translateX(-10%);
    }

    .result-title {
        font-size: 2rem; /* 32px */
    }

    .result-text {
        font-size: 1.25rem; /* 20px */
    }

    .result-product {
        bottom: 20%;
    }

    .result-cookut {
        bottom: min(-20%, -9rem);
    }

    /* WIN - Announcement */

    .main.announcement {
        background-size: 325px;
        /*max-height: unset;*/
    }

    .announcement-subtitle {
        font-size: min(2.5vw, 2rem);
        /*margin-top: -1rem;*/
    }
    .announcement-subtitle .amount {
        font-size: min(7.96vw, 6.375rem);
        text-shadow: -5px -5px 0 var(--white),
                    5px -5px 0 var(--white),
                    -5px 5px 0 var(--white),
                    5px 5px 0 var(--white),
                    0 -5px 0 var(--white),
                    0 5px 0 var(--white),
                    -5px 0 0 var(--white),
                    5px 0 0 var(--white);
    }

    .announcement-gain-wrapper {
        width: min(125vh, 80rem);
        max-width: 100%;
        margin-right: auto;
        margin-top: min(-27vh, -15rem);
        margin-bottom: min(-27vh, -15rem);
    }

    .announcement-tree {
        bottom: -5%;
        left: -10%;
        width: 25%;
        max-width: 445px;
    }

    .annoucement-trees {
        position: absolute;
        right: 0;
        bottom: 37.5%;
        transform: translateY(-50%);
        pointer-events: none;
    }
    .annoucement-trees img {
        width: 69px;
    }
    .annoucement-trees img:first-of-type {
        margin-right: -25%;
        margin-bottom: 0.5rem;
    }

    .announcement-link-wrapper {
        font-size: 1rem;
        line-height: 1.1875rem;
        margin: 0;
        right: 1rem;
        left: unset;
        transform: unset;
    }

    /* WIN (form) */
    
    .win-columns {
        display: flex;
        flex-direction: row;
        -ms-flex-direction: row;
    }

    .win-column {
        flex: 1;
    }

    .win-column.right {
        padding-top: 50px;
        padding-right: 60px;
        padding-bottom: 40px;
        padding-left: 60px;
    }

    .win-cloud {
        /*background-image: url("../img/cloud-win-65954081fda6036bff247204a2253534.svg");
        position: relative;*/
    }

    .win-cloud-background {
        width: 117%;
    }

    .win-cloud-content {
        transform: translate(-43%, -50%);
        width: 117%;
    }

    .win-title {
        font-size: 28px;
        max-width: 70%;
    }
    
    .win-subtitle {
        font-size: 22px;
        line-height: 140%;
        max-width: 70%;
    }

    .win-image-wrapper {
        margin-top: -25%;
        margin-bottom: 0;
    }

    /* WIN - Confirmation */

    .win-confirmation-modal {
        width: 35%;
        max-width: 450px;
    }

    .win-confirmation-elements {
        max-width: 488px;
        top: 0;
        right: 0;
    }
    
    .win-confirmation-cookut {
        width: 46%;
        max-width: 650px;
        /*bottom: -8.5rem;*/
        bottom: 0;
        left: -3.25rem;
    }

    /* ERROR - 404 */

    .error404-container {
        max-width: 750px;
    }

    .error404 h1 {
        font-size: 2.625rem;
    }

    .error404 p {
        font-size: 1.25rem;
    }

    .error404-montgolfiere {
        position: absolute;
        bottom: 0;
        left: max(48px, 10vw);
        width: min(30%, 340px);
        margin: 0;
        transform: unset;
    }
}

@media screen and (min-width: 768px) and (max-height: 720px) {

    /* GAME - Result */

    .main.result {
        background-size: contain, contain;
    }

    /* WIN - Form */

    .win-image-wrapper {
        margin-top: -20vh;
    }

    /* ERROR - 404 */
    

    .error404-montgolfiere {
        width: min(25vh, 200px);
    }
}

@media screen and (min-width: 1024px) {
    
    .home-balloon {
        max-width: 350px;
        margin-top: -650px;
    }
}

@media screen and (min-width: 1366px) {
    
}
