@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap');

/* Maquette Figma « MAGIC BOX NOEL - MICROFORCE » : écrans de 1440 px de large,
   ramenés à la colonne mobile (1 px Figma ≈ 0,35 px écran). */

body{
    background: #EEF4FD;
    font-family: 'Jost', sans-serif;
    color: #22307F;
}

.main_view {
    background: url('../../../../images/game/microforce/joyeusestech/bg.png') #EEF4FD;
    background-repeat: repeat-y;
    background-size: 100% auto;
    -webkit-box-shadow: 1px 0px 38px 7px rgba(34, 48, 127, 0.25);
    box-shadow: 1px 0px 38px 7px rgba(34, 48, 127, 0.25);
    min-height: 100vh;
    overflow-x: hidden;
}

.container .row>*{
   padding-left: 0px;
   padding-right: 0px;
}

.blockOptincanal{
    display: none;
}

/* Textes */
.mf_txt{
    font-size: 17px;
    line-height: 1.4;
    color: #3D4A80;
    text-align: center;
}
.mf_txt b{
    color: #22307F;
}

/* Carte du formulaire */
.mf_card{
    background: #fff;
    border-radius: 24px;
    padding: 20px 18px 24px;
    box-shadow: 0 12px 40px rgba(47, 99, 214, 0.12);
}

.mf_label{
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    color: #22307F;
    margin-top: 6px;
}

.inputcustom,
.mf_card .form-select{
    height: 48px;
    border-radius: 14px !important;
    border: 1.5px solid #C9D6F2 !important;
    background-color: #fff !important;
    color: #22307F !important;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    padding-left: 18px;
}
.inputcustom::placeholder{
    color: #3D4A80 !important;
    opacity: 0.8;
}
.inputcustom:focus,
.mf_card .form-select:focus{
    border-color: #2F63D6 !important;
    box-shadow: 0 0 0 3px rgba(47, 99, 214, 0.15) !important;
}

.mf_check{
    font-size: 15px;
    line-height: 1.35;
    color: #22307F;
}
.mf_check a{
    color: #2F63D6;
    text-decoration: underline;
}
.mf_check .form-check-input{
    width: 22px;
    height: 22px;
    margin-top: 0;
    margin-right: 10px;
    border: 1.5px solid #C9D6F2;
}
.mf_check .form-check-input:checked{
    background-color: #2F63D6;
    border-color: #2F63D6;
}

/* Magic Box : léger saut en boucle, décalé d'une boîte à l'autre */
.mf_box{
    display: block;
    animation: mf_saut 2.6s ease-in-out infinite;
}
.mf_box_2{ animation-delay: 0.3s; }
.mf_box_3{ animation-delay: 0.6s; }
.mf_box:active img{ transform: scale(0.95); }

/* <button> sans habillage navigateur */
.mf_box{
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .25s ease, filter .25s ease;
}
.mf_box img{ transition: transform .25s ease; }

/* Box choisie : agrandie et figée, les deux autres s'effacent */
.mf_boxes.has-choice .mf_box{ animation: none; opacity: .45; filter: grayscale(.6); }
.mf_boxes.has-choice .mf_box.is-selected{ opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 255, 255, .9)); }
.mf_boxes.has-choice .mf_box.is-selected img{ transform: scale(1.12); }

/* Bouton « J'ouvre mon cadeau » : grisé et inactif tant qu'aucune box n'est choisie */
.mf_btn_open{ display: block; transition: filter .25s ease, opacity .25s ease; }
.mf_btn_open.is-disabled{ filter: grayscale(1); opacity: .5; cursor: not-allowed; }
.mf_btn_open:not(.is-disabled){ animation: mf_pulse 1.4s ease-in-out infinite; }

@keyframes mf_pulse{
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes mf_saut{
    0%, 70%, 100% { transform: translateY(0); }
    80% { transform: translateY(-14px) rotate(-3deg); }
    90% { transform: translateY(0) rotate(2deg); }
}

/* Bon gagné : nom de la dotation posé dans l'emplacement vide du visuel
   (entre « Le Père Noël vous offre » et le bouton, sur l'image de 1116 × 655),
   incliné comme le bon. */
.mf_bon{
    position: relative;
}
.mf_bon_lot{
    position: absolute;
    left: 13.5%;
    top: 30%;
    width: 56%;
    height: 27%;
    transform: rotate(-2deg);
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 800;
    font-size: clamp(16px, 5.2vw, 26px);
    line-height: 1.05;
    text-transform: uppercase;
}

/* Pied de page */
.mf_footer{
    font-size: 13px;
    padding: 18px 0 26px;
    text-align: center;
}
.mf_footer a{
    color: #22307F;
    text-decoration: underline;
    margin: 0 8px;
    display: inline-block;
    line-height: 1.8;
}

/* Indicatif téléphone */
.iti{
    width: 100%;
}
.iti--separate-dial-code .iti__selected-flag {
    background-color: transparent;
    color: #22307F;
}
.iti__country-list{
    color: #22307F;
}
.inputcustom.error{
    border-color: #E3264B !important;
}

/* Choix du département : carte normale / enfoncée, puis Valider */
.mf_dep{
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
/* Les PNG des cartes ont ~9 % de marge transparente de chaque côté (ombre) :
   on les élargit d'autant pour que l'écart visible entre cartes colle à la maquette. */
.mf_dep img{
    width: 118%;
    max-width: none;
    margin: 0 -9%;
}
.mf_dep .mf_dep_on{ display: none; }
.mf_dep.is-selected .mf_dep_off{ display: none; }
.mf_dep.is-selected .mf_dep_on{ display: block; }

.mf_valider{
    padding: 0;
    border: 0;
    background: none;
}
.mf_valider:disabled{
    opacity: 0.45;
    cursor: not-allowed;
}
