/* 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: "Lando Sans";
    font-weight: bold;
    src: url("../fonts/LandoSans-Bold-88e75cf8abce05478596cb509fa044a6.otf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: 100;
    font-style: normal;
    src: url("../fonts/Brandon-Grotesque-Thin-62b0825f8a84b1263b5ebc7160eaf272.otf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: 100;
    font-style: italic;
    src: url("../fonts/Brandon-Grotesque-Thin-Italic-5c2433c0d47ffed9771e392ce493612f.otf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: 300;
    font-style: normal;
    src: url("../fonts/Brandon-Grotesque-Light-15913e721a32745f91e948e9003545a3.otf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: 300;
    font-style: italic;
    src: url("../fonts/Brandon-Grotesque-Light-Italic-9e678e8b0445a9697467eadd1ad743ac.otf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: 400;
    font-style: normal;
    src: url("../fonts/Brandon-Grotesque-Regular-ee4efd8c578e086d719371873bfd7ee0.otf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: 400;
    font-style: italic;
    src: url("../fonts/Brandon-Grotesque-Regular-Italic-3f6fff0efac7336c859362c84bb0d11f.otf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: 500;
    font-style: normal;
    src: url("../fonts/Brandon-Grotesque-Medium-6c717a6dbe04fecd8c05ea6e6a52c745.otf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: 500;
    font-style: italic;
    src: url("../fonts/Brandon-Grotesque-Medium-Italic-a9a5528d711b58cd6195ccc39a9092b0.otf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: 700;
    font-style: normal;
    src: url("../fonts/Brandon-Grotesque-Bold-fa0a96708c0a83bbf44d3e4f92e286ef.otf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: 700;
    font-style: italic;
    src: url("../fonts/Brandon-Grotesque-Bold-Italic-44bb20e5f51c7db880266e5a0577998f.otf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: 900;
    font-style: normal;
    src: url("../fonts/Brandon-Grotesque-Black-4763679e515f1a155f694b38681159b2.otf");
}
@font-face {
    font-family: "Brandon Grotesque";
    font-weight: 900;
    font-style: italic;
    src: url("../fonts/Brandon-Grotesque-Black-Italic-2d0565741939fa74596a898cd5e9af57.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;
    --white-70: #FCFEFFB3;
    --white-80: #FCFEFFCC;
    --white-90: #FCFEFFE6;
    --grey: #E0E0E0;
    --black: #000000;
    --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/bubbles/background-ce01b75b18c2bea3c7b5845a1fe851fb.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;
}

/* ANIMATIONS */

.bubble {
    /* Dimensions d'une frame */
    --width: 256px;
    --height: auto;

    /* Spritesheet */
    --frames: 6;
    --steps: 5;
    --size-x: 600%;
    --size-y: 100%;

    /* Durées */
    --fall-duration: 5000ms;
    --explode-duration: 250ms;
    --spring-duration: 180ms;
    --settle-duration: 300ms;
    --dissolve-duration: 300ms;

    width: var(--width);
    height: var(--height);
    aspect-ratio: 1;

    background-image: url("../img/bubbles/items/bubble_burst-b388f88299d3a9121223acc23ccc6c7d.webp");
    background-position: 0 0;
    background-size: var(--size-x) var(--size-y);
    background-repeat: no-repeat;
    opacity: 1;

    animation: float 3s ease-in-out infinite;

    will-change: background-position, transform, opacity;

    cursor: pointer;
}

@keyframes float {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-10px) rotate(2.5deg); } /* mouvement vers le haut */
    100% { transform: translateY(0) rotate(0deg); }
}

.bubble.falling {
    animation: fall var(--fall-duration) linear forwards;
}

@keyframes fall {
    to { transform: translateY(110vh); }
}

.bubble.explode {
    animation: explode var(--explode-duration) steps(var(--steps)) forwards;
    pointer-events: none;
}
.bubble.exploded {
    background-position: 100% 0;
    pointer-events: none;
}

@keyframes explode {
    from { background-position: 0% 0; }
    to { background-position: 100% 0; }
}

.bubble.spring {
    animation: springIn var(--spring-duration) cubic-bezier(.34,1.56,.64,1) forwards;
    pointer-events: none;
}

@keyframes springIn {
    0% { transform: scale(0.85); opacity: 0.2; }
    70% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

.bubble.settle {
    animation: settle var(--settle-duration) ease-out forwards;
    pointer-events: none;
}

@keyframes settle {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

.bubble.dissolve {
    animation: fadeOut var(--dissolve-duration) ease-out forwards;
    pointer-events: none;
}

@keyframes fadeOut {
    to { opacity: 0; }
}

.bubble.hidden {
    display: none;
    pointer-events: none;
}

/* BUBBLES - ITEMS */

.bubble.framboise {
    background-image: url("../img/bubbles/items/framboise_burst-67828799abdd13a298431be45cf35845.webp");
}
.bubble.fraise {
    background-image: url("../img/bubbles/items/fraise_burst-402c4046faee8c30b6b9558ade34bd06.webp");
}
.bubble.creme {
    background-image: url("../img/bubbles/items/creme_burst-c40c74e9d0f6f65ed8665215c852d6aa.webp");
}
.bubble.brique {
    background-image: url("../img/bubbles/items/brique_burst-c89342648060c5a65c1cc05f7276d7ea.webp");
}
.bubble.cookeo {
    background-image: url("../img/bubbles/items/cookeo_burst-397d4b9f2d1849bc41ca554a99159e22.webp");
}
.bubble.baie {
    background-image: url("../img/bubbles/items/baie_burst-0a4e6aabca0724258b237aa6e9d2164b.webp");
}
.bubble.chantilly {
    background-image: url("../img/bubbles/items/chantilly_burst-41855b2a97e1600840fe12aea711785e.webp");
}
.bubble.fluide {
    background-image: url("../img/bubbles/items/fluide_burst-b3d39758a9bf48de078433b070c23a89.webp");
}
.bubble.extra-light {
    background-image: url("../img/bubbles/items/extra-light_burst-bb867dc7d63256807633838b8bb09eae.webp");
}
.bubble.abeille {
    background-image: url("../img/bubbles/items/abeille_burst-adbb16ccf495fb030c7775898e5786f1.webp");
}
.bubble.chardon {
    background-image: url("../img/bubbles/items/chardon_burst-09dca71f32e2a5a387fd1b49412ccf8b.webp");
}


.background-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;

    background-image: 
        url("../img/bubbles/bubbles-background-mobile-left-2d31f0c6072024f9496d1e9e6ef15334.webp"),
        url("../img/bubbles/bubbles-background-mobile-right-3edc084d029555563b6d11b822916727.webp");
    background-repeat: no-repeat, no-repeat;
    background-position: left center, right center;
    background-size: auto min(100%, 30rem), auto min(100%, 30rem);

    pointer-events: none;
}
.background-bubbles picture,
.background-bubbles img {
    display: block;
}
.background-bubbles picture {
    flex: 1;
    max-width: 50%;
}
.background-bubbles--image {
    width: auto;
    height: auto;       /* important */
    max-width: 120rem; /* 1920px */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* HEADER */

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

.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;
}

/* Début - Nuages */

/* === Variables animables (interop moderne) === */
/* Permet d’animer des custom properties avec interpolation */
@property --tx {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0px;
}
@property --ty {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --rot {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cloud {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.cloud#cloud-1 {
    width: 31%;
    max-width: 24.1875rem; /* 387px */
    left: -37.7vw; /* -9.1875rem - 147px */
    top: 0.375rem; /* 6px */
}
.cloud#cloud-2 {
    width: 14.4%;
    max-width: 11.25rem; /* 180px */
    left: 8.718vw; /* 2.125rem - 34px */
    top: 4.6875rem; /* 75px */
    opacity: 70%;
}
.cloud#cloud-3 {
    width: 20.5%;
    max-width: 15.75rem; /* 252px */
    left: 31.28vw; /* 7.625rem - 122px */
    top: 0;
}
.cloud#cloud-4 {
    width: 9.75%;
    max-width: 7.5rem; /* 120px */
    left: 77.44vw; /* 18.875rem - 302px */
    top: 4.25rem;
    opacity: 40%;
}
.cloud#cloud-5 {
    width: 14%;
    max-width: 10.9375rem; /* 175px */
    left: 93.85vw; /* 22.875rem - 366px */
    top: 1.25rem;
    opacity: 80%;
}
.cloud#cloud-6 {
    width: 31%;
    max-width: 23.75rem; /* 380px */
    left: 120.5vw; /* 29.375rem - 470 */
    top: 1.625rem;
}

/* Base : on ajoute une composition transform commune à tous les nuages */
/* === Variables animables === */
@property --tx {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0px;
}
@property --ty {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --rot {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* Base animation : ne change ni width/left/top, uniquement transform */
.cloud {
  /* États animés (centrés sur 0 pour respecter le point de départ) */
  --tx: 0px;
  --ty: 0px;
  --rot: 0deg;
  --scale: 1;

  /* Durées et amplitudes par défaut (personnalisées par nuage) */
  --dur-x: 24s;
  --dur-y: 14s;
  --dur-r: 30s;
  --delay: 0s;       /* on démarre pile à l’état initial */
  --x-amp: 8vw;      /* amplitude horizontale */
  --y-amp: 8px;      /* amplitude verticale */
  --rot-amp: 1deg;   /* amplitude rotation */

  will-change: transform;
  transform-origin: 50% 50%;
  transform: translateX(var(--tx)) translateY(var(--ty)) rotate(var(--rot)) scale(var(--scale));

  animation:
    cloud-x var(--dur-x) var(--delay) ease-in-out infinite,
    cloud-y var(--dur-y) var(--delay) ease-in-out infinite,
    cloud-r var(--dur-r) var(--delay) ease-in-out infinite;
}

/* Keyframes centrées sur l'état initial */
@keyframes cloud-x {
  0%   { --tx: 0; }
  50%  { --tx: var(--x-amp); }
  100% { --tx: calc(var(--x-amp) * -1); }
}
@keyframes cloud-y {
  0%   { --ty: 0; }
  50%  { --ty: var(--y-amp); }
  100% { --ty: calc(var(--y-amp) * -1); }
}
@keyframes cloud-r {
  0%   { --rot: 0deg; }
  50%  { --rot: var(--rot-amp); }
  100% { --rot: calc(var(--rot-amp) * -1); }
}

/* ==== Personnalisation “naturelle” par nuage (adaptée à tes nouvelles positions) ==== */
/* Nuage très à gauche (hors champ) → amplitude X plus grande pour l’amener à onduler dans le champ */
.cloud#cloud-1 {
  --x-amp: 14vw;
  --y-amp: 10px;
  --rot-amp: 1.2deg;
  --dur-x: 28s;
  --dur-y: 18s;
  --dur-r: 34s;
  --delay: 0s;
}

/* Nuage près de la gauche → amplitude modérée */
.cloud#cloud-2 {
  --x-amp: 8vw;
  --y-amp: 7px;
  --rot-amp: 0.85deg;
  --dur-x: 23s;
  --dur-y: 14s;
  --dur-r: 29s;
  --delay: 0.12s;
}

/* Nuage un peu plus central → amplitude intermédiaire */
.cloud#cloud-3 {
  --x-amp: 9vw;
  --y-amp: 8px;
  --rot-amp: 1deg;
  --dur-x: 26s;
  --dur-y: 16s;
  --dur-r: 31s;
  --delay: 0.24s;
}

/* Nuage à ~77vw → amplitude X douce pour éviter de sortir trop du cadre */
.cloud#cloud-4 {
  --x-amp: 7vw;
  --y-amp: 6px;
  --rot-amp: 0.75deg;
  --dur-x: 30s;
  --dur-y: 13s;
  --dur-r: 36s;
  --delay: 0.36s;
}

/* Nuage à ~94vw (bord droit) → amplitude un peu plus grande pour onduler dans le champ */
.cloud#cloud-5 {
  --x-amp: 10vw;
  --y-amp: 7px;
  --rot-amp: 0.95deg;
  --dur-x: 24s;
  --dur-y: 15s;
  --dur-r: 29s;
  --delay: 0.48s;
}

/* Nuage très à droite (~120.5vw, hors champ) → amplitude plus grande */
.cloud#cloud-6 {
  --x-amp: 16vw;
  --y-amp: 10px;
  --rot-amp: 1.4deg;
  --dur-x: 32s;
  --dur-y: 17s;
  --dur-r: 38s;
  --delay: 0.6s;
}

/* Breakpoint demandé : dès 768px on élargit un peu les mouvements */
@media (min-width: 768px) {
  .cloud {
    --x-amp: calc(var(--x-amp) * 1.15);
    --y-amp: calc(var(--y-amp) * 1.1);
    --rot-amp: calc(var(--rot-amp) * 1.05);
  }
}

/* Mobile : mouvements plus compacts (facultatif) */
@media (max-width: 767px) {
  .cloud {
    --x-amp: calc(var(--x-amp) * 0.75);
    --y-amp: calc(var(--y-amp) * 0.85);
    --dur-x: calc(var(--dur-x) * 0.92);
    --dur-y: calc(var(--dur-y) * 0.92);
    --dur-r: calc(var(--dur-r) * 0.96);
  }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  .cloud {
    animation: none !important;
    transform: none !important;
  }
}

/* Fin - Nuages */

/* Début - BG Bulles */

.background--floating-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}
/*390/745*/
.background--floating-bubbles .bubble:nth-child(1) {
    --width: min(15.38vw); /* 3.75rem - 60px */
    --height: auto;

    position: absolute;
    top: min(8.05vh, 15.38vw);
    left: min(2.55vh, 4.87vw); /* -1.1875rem -19px */
}

/* Fin - BG Bulles */

/* HOME */

body:has(main.home) {
    /*background-image: url("../img/bubbles/background-ce01b75b18c2bea3c7b5845a1fe851fb.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/tap-to-fly/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%;
    max-width: 350px;
    height: auto;

    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;

    box-sizing: border-box;
    max-width: 90%;
    min-height: 338px;

    margin: 0 auto;
    margin-bottom: 4.375rem;
    padding: 20px;

    border-radius: 20px;
    background-color: #FCFEFFE6;

    color: var(--darkblue);
    font-weight: 450;
    text-align: center;
}

.home-form-blur {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

    width: 100%;
    height: 100%;

    /*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: 700;
    line-height: 1.2em;
}

.form-row input.home-form-email {
    width: 100%;

    margin-top: 12px;
}

.form-row input.home-form-email,
.form-row input.home-form-lastname,
.form-row input.home-form-firstname {
    border: 1px solid var(--grey);
}

.form-row.form-columns:has(input.home-form-lastname),
.form-row.form-columns:has(input.home-form-firstname) {
    margin-bottom: 1rem;
}

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

.home-form-wrapper .form-row label a {
    color: var(--darkblue);
}

.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 {
    position: absolute;
    bottom: -6.5rem;
    transform: translateX(-50%);

    width: 203px;
    height: 120px;

    margin: 0 auto;

    border: none;
    background-color: unset;
    background-image: url("../img/tap-to-fly/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);

    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: translateX(-50%) scale(1.1);
}
.home-form-submit.disabled {
    color: var(--darkblue-40);
    pointer-events: none;
}

.home-legals {
    background-color: #FCFEFFE6;
    border-radius: 20px;
    box-sizing: border-box;
    max-width: 90%;
    padding: 20px;
    margin: 0 auto 1rem;
    font-family: var(--ff-brandon);
    font-size: 0.75rem;
    font-weight: 450;
    line-height: 1.1em;
    letter-spacing: 0em;
    color: #333333;
}
.home-legals p {
    margin: 0;
}
.home-legals a {
    color: #333333;
}

/* TUTO */

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

.tuto--page {
    padding-bottom: 6.5rem;
}
.tuto--page.hidden {
    display: none;
}

.tuto--title {
    font-family: var(--ff-tendria);
    font-size: 2rem;
    line-height: 1.3em;
    text-align: center;
    margin-block-end: 0;
}

.tuto--subtitle {
    font-family: var(--ff-tendria);
    font-size: 1rem;
    line-height: 1.3em;
    text-align: center;
    margin-block-start: 0;
}

.tuto--bubbles {
    max-width: 70%;
    margin: 0 auto;

    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.tuto--bubbles .bubble {
    --width: 100%;
    --height: auto;
    max-width: 50%;
}

.tuto--advice {
    display: block;
    width: fit-content;

    margin: 2rem auto 0;
    padding: 1rem 1.5rem;
    background-color: var(--white-90);
    border-radius: 100px;

    font-size: 1rem;
    line-height: 1.2em;
    font-weight: 700;
    color: var(--darkblue);
}

.tuto--cta--skip {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);

    padding: 1.5rem;
    background-color: var(--darkblue);
    border-radius: 100px;

    font-size: 1rem;
    line-height: 1em;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
}

.tuto--cta--game--wrapper {
    text-align: center;
    margin-top: 4.5rem;
}

.tuto--cta--game {
    display: inline-block;
    
    padding: 2.125rem 3.375rem;
    margin: 0 auto;

    border: none;

    background-color: unset;
    background-image: url("../img/bubbles/cloud-white-f4f848a5b74cb551013a3d76ee6030a2.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;

    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;
}
.tuto--cta--game:hover {
    transform: scale(1.1);
}

/* GAME */

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

.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);
    color: var(--darkblue);
}

.modal-help-title {
    font-weight: 500;
    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);
    color: var(--darkblue);
    cursor: pointer;
}
.modal-help-close-img {
    display: block;
}

.hud {
    position: absolute;
    top: clamp(2.5rem, 10.25vw, 4rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    width: 100%;
    /*max-width: 1280px;*/
    max-width: 15.625rem; /* 250px */

    margin: 0 auto;
    padding: 0.75rem 1.25rem; /* 12px 20px */

    background-color: var(--white-70);
    border-radius: 0.75rem;

    box-sizing: border-box;
}

.hud .timer {
    font-family: var(--ff-pacifico);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.3em;
    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 .separator {
    display: block;
    height: 3rem;
    width: 1px;
    background-color: #D9D9D9;
}

.hud .score {
    font-family: var(--ff-pacifico);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.3em;
    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);
}

.hud .score #scoreValue {
    font-size: 2rem;
    line-height: 1.3em;
}

.hud .score #scoreLabel {
    font-family: var(--ff-tendria);
}

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

    min-width: 15.875rem; /* 254px */
    max-width: 65%;

    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 3.25rem; /* 52px */

    opacity: 1;

    will-change: opacity;
}
.loader.hidden {
    animation: fadeOut 300ms ease-out forwards;
}

.loader--gif {
    width: 100%;
    max-width: 7.5rem; /* 120px */
    height: auto;
    margin: 0 auto;
}

.loader--titles {
    text-align: center;
}

.loader--title,
.loader--subtitle {
    color: var(--darkblue);
    letter-spacing: 0px;
    margin: 0;
}

.loader--title {
    font-family: var(--ff-tendria);
    font-size: 1.625rem; /* 26px */
    line-height: 1.3em;
    font-weight: 700;
    margin-bottom: 0.625rem; /* 10px */
}

.loader--subtitle {
    font-family: var(--ff-brandon);
    font-size: 1rem;
    line-height: 1.2em;
    font-weight: 500;
    margin-top: 0.625rem; /* 10px */
}

.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 .bubble {
    --width: min(13.7vh, 26.15vw, 6.375rem); /* 102px */

    position: absolute;
    /*top: -100px;*/
    top: -100px;
}

.scoring-cloud--wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.scoring-cloud {
    width: min(13.7vh, 26.15vw, 6.375rem);
    height: auto;

    animation: scoringFadeOut 2000ms ease-out forwards;
}

@keyframes scoringFadeOut {
    to { transform: translateY(-30%); opacity: 0; }
}

/* GAME - Endgame */

body:has(main.endgame) {
    /*background-image: url("../img/tap-to-fly/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/tap-to-fly/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/tap-to-fly/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/tap-to-fly/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: 40%;
    left: 50%;
    transform: translate(-50%, -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-tendria);
    font-weight: 450;
    font-size: 1rem;
    line-height: 1.2em;
    letter-spacing: 0;
    color: var(--darkblue);
    margin-bottom: 2.5rem;
}

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

.result-link-wrapper.secondary {
    background-color: var(--white);
    color: var(--darkblue);
}
.result-link-wrapper.secondary a {
    color: var(--darkblue);
}

.result-text.secondary {
    font-family: var(--ff-brandon);
    font-size: 0.75rem;
    line-height: 1.3em;
    font-weight: 400;
    margin-bottom: 0;
}

.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/tap-to-fly/elements-announcement-2ff01357f42de754c1c2444eade8c5ab.webp");
    background-position: left bottom;
    background-size: 164px;
    background-repeat: no-repeat;*/
    overflow: hidden;
    max-height: 84vh;
}

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

.announcement-subtitle {
    position: relative;
    font-family: var(--ff-tendria);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3em;
    letter-spacing: 0;
    color: var(--darkblue);
    /*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-bottom: 0.5rem;
}
/*.announcement-subtitle .amount {
    font-size: 3.5rem;
}*/

.announcement-brand {
    max-width: 15rem;
    margin: 0 auto;
}

.announcement-gain-wrapper {
    position: relative;

    width: 77.5%;

    margin: 0 auto;
}
.announcement-gain-img {
    display: block;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;

    animation: floatingPrize 4s ease-in-out infinite;
}
.announcement-gain-img-background {
    display: block;
}

@keyframes floatingPrize {
    0% { transform: rotate(0) translate(-50%, -50%);  }
    50% { transform: rotate(2.5deg) translate(-50%, -55%); }
    100% { transform: rotate(0) translate(-50%, -50%); }
}

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

.announcement-link-wrapper {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);

    width: fit-content;
    margin: 0 auto;
    padding: 1rem;

    background-color: var(--darkblue);
    /*background: linear-gradient(90deg, var(--darkblue) 0%, var(--lightblue) 0%);*/
    border-radius: 100px;
    border: none;

    color: var(--white);
    font-family: var(--ff-brandon);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1875rem;
    letter-spacing: 0.4px;
    text-align: center;

    transition: background 5s linear;
}

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

/* WIN - Form */

body:has(main.win) {
    /*background-image: url("../img/bubbles/background-ce01b75b18c2bea3c7b5845a1fe851fb.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 .background-bubbles {
    background-position: 
        left -12.5vw top,
        right -12.5vw top;
}

.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(--white-70);
}

.win-cloud {
    /*background-image: url("../img/tap-to-fly/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 {
    display: block;
    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: max(3.76vh, 7.17vw, 1.75rem); /* 28px */
    line-height: 130%;
    letter-spacing: 0;
    max-width: 75%;
    margin: 0 auto;
}

.win-subtitle {
    font-family: var(--ff-tendria);
    font-weight: 450;
    font-size: max(2.15vh, 4.1vw, 1rem);
    line-height: 100%;
    letter-spacing: 0;
    color: var(--darkblue);
    max-width: 75%;
    margin: 0 auto;
}

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

.win-brand {
    max-width: 12.5rem;
    margin: 0.5rem auto 0;
}

.win-image-wrapper {
    overflow: visible;
    display: flex;
    justify-content: center;
    /*margin-top: -15%;
    margin-bottom: -35%;*/
    width: 70%;
    max-width: 23.25rem; /* 372px */
    margin: 0 auto;
    animation: floatingPrizeBubble 4s ease-in-out infinite;
}

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

@keyframes floatingPrizeBubble {
    0% { transform: rotate(0) translateY(0);  }
    50% { transform: rotate(2.5deg) translateY(-5%); }
    100% { transform: rotate(0) translateY(0); }
}

.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/bubbles/background-ce01b75b18c2bea3c7b5845a1fe851fb.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-70);
    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 {
    display: inline-block;

    padding: 18px 22px;

    border-radius: 100px;
    border: none;
    background-color: var(--darkblue);

    color: var(--white);
    font-family: var(--ff-brandon);
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1em;
    letter-spacing: 0.4px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    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/tap-to-fly/background-desktop-5bcd3dbb880b7f50fda2908051f6234e.webp");*/
        background-size: cover;
        background-position: center bottom;
    }

    /* CUSTOM CLASSES */

    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: block;
    }

    /* MAIN */

    .background-bubbles {
        background-image: 
            url("../img/bubbles/bubbles-background-desktop-left-7351a4790de04b29e1d3516c6202c3b9.webp"),
            url("../img/bubbles/bubbles-background-desktop-right-b31b53cad1b4c3ce6c4c9a58134ac1ba.webp");
        background-size: 
            auto min(100%, 40rem), 
            auto min(100%, 40rem);
    }

    .cloud#cloud-1 {
        width: 31%;
        max-width: 24.1875rem; /* 387px */
        left: -37.7vw; /* -9.1875rem - 147px */
        top: 0.375rem; /* 6px */
    }
    .cloud#cloud-2 {
        width: 14.4%;
        max-width: 11.25rem; /* 180px */
        left: 8.718vw; /* 2.125rem - 34px */
        top: 4.6875rem; /* 75px */
        opacity: 70%;
    }
    .cloud#cloud-3 {
        width: 20.5%;
        max-width: 15.75rem; /* 252px */
        left: 31.28vw; /* 7.625rem - 122px */
        top: 0;
    }
    .cloud#cloud-4 {
        width: 9.75%;
        max-width: 7.5rem; /* 120px */
        left: 77.44vw; /* 18.875rem - 302px */
        top: 4.25rem;
        opacity: 40%;
    }
    .cloud#cloud-5 {
        width: 14%;
        max-width: 10.9375rem; /* 175px */
        left: 93.85vw; /* 22.875rem - 366px */
        top: 1.25rem;
        opacity: 80%;
    }
    .cloud#cloud-6 {
        width: 31%;
        max-width: 23.75rem; /* 380px */
        left: 120.5vw; /* 29.375rem - 470 */
        top: 1.625rem;
    }

    /* 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: 42.5rem; /* 680px */

        padding: min(3.125vw, 40px);
        margin-bottom: 6rem;
    }

    .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 {
        bottom: -7.5rem;

        width: min(24.4vh, 12.625rem);
        height: min(14.42vh, 7.5rem);

        font-size: min(3.60vh, 1.875rem);
    }

    .home-legals {
        max-width: 42.5rem;
        margin-bottom: 3rem;
        padding: min(1.5625vw, 20px);
    }

    .home-content .bubble {
        position: absolute;
        z-index: -1;
    }
    
    .home-content .bubble.creme {
        --width: min(22.66vw, 40.27vh, 27.1875rem); /* 435px */
        top: min(17.037vh, 9.635vw, 11.5625rem);
        /*left: 66.4583vw;*/
        right: 6.5625vw;
    }
    .home-content .bubble.cookeo {
        --width: min(20.46875vw, 36.39vh, 24.5625rem); /* 393px */
        top: min(65.46vh, 36.875vw, 44.25rem);
        left: 5.9375vw;
    }
    .home-content .bubble.framboise {
        --width: min(15.3125vw, 27.22vh, 18.375rem); /* 294px */
        top: min(21.3vh, 11.98vw, 14.375rem);
        left: 11.9791vw;
    }
    .home-content .bubble.fraise {
        --width: min(17.34375vw, 30.83vh, 20.8125rem); /* 333px */
        top: min(69.72vh, 39.21875vw, 47.0625rem);
        /*left: 70.9375vw;*/
        right: 4.765625vw;
    }

    /* TUTO */

    .tuto--title {
        font-size: 3.125rem; /* 2rem - 50px */
    }

    .tuto--subtitle {
        font-size: 1.5rem; /* 1rem - 24px */
    }

    .tuto--bubbles {
        --gap: 1.5rem;

        max-width: min(80%, 94rem);

        flex-wrap: nowrap;
        gap: var(--gap);
    }

    .tuto--bubbles .bubble {
        max-width: calc(25% - var(--gap));
    }

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

    /* 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 {
        max-width: 25rem; /* 400px */
        padding: 1.25rem 2rem; /* 20px 32px */
    }

    .hud .timer,
    .hud .score #scoreValue {
        font-size: 3.125rem;
    }

    .hud .score {
        font-size: 2.125rem;
    }

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

    .game .bubble {
        --width: min(16.20vh, 9.115vw, 10.9375rem); /* 175px */
    }

    /* 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/tap-to-fly/elements-result-left-49ffa9cdc78f45fb66ee8e382fe56abe.webp"), url("../img/tap-to-fly/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: 45rem; /* 720px */
        min-height: 280px;
        top: 40%;
        transform: translate(-50%, -50%);
    }

    .result-modal-content {
        width: 90%;
    }

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

    .result-title {
        /*font-size: 2rem;*/ /* 32px */
        font-size: clamp(2rem, 2.6vw, 3.125rem);
    }

    .result-text {
        /*font-size: 1.25rem;*/ /* 20px */
        font-size: clamp(1.25rem, 1.667vw, 2rem);
        margin-bottom: 3.375rem; /* 54px */
    }
    .result-link-wrapper,
    .result-link-wrapper.secondary {
        margin-top: 1.5rem;
    }

    .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(40.18vh, 22.6vw, 27.125rem);
        max-width: 100%;
        /*margin-right: auto;
        margin-top: min(-27vh, -15rem);
        margin-bottom: min(-27vh, -15rem);*/
        margin: 0 auto;
    }

    .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;
    }

    /* WIN (form) */

    .main.win {
        display: flex;
    }

    .win .background-bubbles {
        background-position: 
            left center, 
            right center;
    }
    
    .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/tap-to-fly/cloud-win-65954081fda6036bff247204a2253534.svg");
        position: relative;*/
    }

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

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

    .win-title {
        font-size: min(2.33vw, 1.75rem); /* 28px */
        max-width: 70%;
    }
    
    .win-subtitle {
        font-size: min(1.83vw, 1.375rem); /* 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: 37.5rem; /* 600px */
    }

    .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) {
    
}
