/* ==========================================
   ANIMATION KEYFRAMES (ZOOM / DEZOOM)
   ========================================== */
@keyframes mjcPulseZoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.mjc-card-badge {
    animation: mjcPulseZoom 2s infinite ease-in-out;
    display: inline-block;
}

/* ==========================================
   STYLE DU BOUTON PARTICIPER
   ========================================== */
#mjc-submit-btn {
    padding: 12px 30px;
    background-color: #FA6B4E;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(250, 107, 78, 0.25);
}
#mjc-submit-btn:hover { background-color: #e05437; }
#mjc-submit-btn:active { transform: scale(0.97); }

/* ==========================================
   STRUCTURE POST-INSCRIPTION
   ========================================== */
#mjc-zone-post-inscription[style*="display: block"],
#mjc-zone-post-inscription[style*="display: flex"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

#mjc-zone-parrainage,
#mjc-zone-actions {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto 25px auto !important;
}

/* ==========================================
   INTERACTION GAMIFIÉE & JAUGE
   ========================================== */
.mjc-game-step-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(20, 27, 68, 0.08);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

/* ==========================================
   BOUTON ORANGE "BOOST DISPONIBLE" - FORÇAGE RADICAL
   ========================================== */
.mjc-single-action-card [class*="boost"],
.mjc-single-action-card [class*="badge"],
.mjc-single-action-card span[style*="background"],
.mjc-single-action-card div[style*="background"] {
    background: #FA6B4E !important;
    color: #ffffff !important;
    display: inline-block !important;
    margin: 0 auto 15px auto !important;
    padding: 14px 35px !important;
    border-radius: 40px !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.5px !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 14px rgba(250, 107, 78, 0.4) !important;
    box-sizing: border-box !important;
    font-family: 'Anton', sans-serif, Arial !important;
    text-transform: uppercase !important;
}

/* ==========================================
   BOUTON VERT D'ACTION - FORÇAGE TOTAL PC
   ========================================== */
.mjc-single-action-card a.id-btn-action-main,
.mjc-single-action-card button.id-btn-action-main,
.mjc-single-action-card .id-btn-action-main,
div#mjc-quest-container .id-btn-action-main {
    background: #5BBBA0 !important;
    color: #141B44 !important;
    border: none !important;
    padding: 22px 35px !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
    border-radius: 40px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(91,187,160,0.5) !important;
    text-transform: uppercase !important;
    width: 100% !important;
    max-width: 550px !important;
    margin: 10px auto !important;
    box-sizing: border-box !important;
    text-align: center !important;
    font-family: 'Anton', sans-serif, Arial !important;
    display: inline-block !important;
    text-decoration: none !important;
}

/* Version mobile : garde une taille proportionnée */
@media (max-width: 480px) {
    .mjc-single-action-card a.id-btn-action-main,
    .mjc-single-action-card button.id-btn-action-main,
    .mjc-single-action-card .id-btn-action-main,
    div#mjc-quest-container .id-btn-action-main {
        font-size: 15px !important;
        padding: 12px 16px !important;
        max-width: 100% !important;
    }
    
    /* Espacement entre le texte descriptif et l'input email sur mobile */
    #mjc-etape-inscription p {
        margin-bottom: 25px !important;
    }
    
    /* Rapprochement de l'input email et du bouton JOUER sur mobile */
    #mjc-form-inscription input[type="email"] {
        margin-bottom: 2px !important; /* Ajustez à 0px si vous les voulez collés */
    }

    /* Espacements pour le bloc de parrainage sur mobile */
    .mjc-share-container {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .mjc-share-container input[type='text'],
    .mjc-share-container button {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* BOX DE JAUGE GLOBALE DES COMBOS */
.mjc-combo-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* TITRE + BADGE EN HAUT DE LA JAUGE */
.mjc-combo-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.mjc-combo-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #141b44 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* BADGE SOMBRE "0 COMBO" */
.mjc-combo-badge,
.mjc-combo-badge-count {
    background: #141b44 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

/* FOND GRIS DE LA BARRE */
.mjc-progress-bar-bg {
    background: #e2e8f0 !important;
    height: 10px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    width: 100% !important;
    display: block !important;
}

/* REMPLISSAGE ORANGE DE LA BARRE DE PROGRESSION */
.mjc-progress-bar-fill {
    background: linear-gradient(90deg, #FA6B4E 0%, #4FBC9F 100%) !important;
    height: 100% !important;
    width: 0%;
    border-radius: 10px !important;
    transition: width 0.4s ease-in-out !important;
}

/* ==========================================
   TYPOGRAPHIE ET LIENS DE MISSION
   ========================================== */
.mjc-step-title {
    font-family: 'Anton', sans-serif;
    font-size: 20px;
    color: #141b44;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.mjc-step-reward {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.4;
}

.mjc-step-reward strong {
    color: #5BBBA0;
}

.mjc-skip-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    color: #94a3b8;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.mjc-skip-link:hover {
    color: #64748b;
}

/* ==========================================
   POPUP MODAL & ROUE
   ========================================== */
.mjc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 23, 33, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.mjc-modal-content {
    background: #ffffff;
    border-radius: 24px;
    max-width: 950px;
    width: 95%;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.mjc-modal-config {
    width: 40%;
    background: #f8fafc;
    padding: 30px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.mjc-modal-config h3 { 
    font-family: 'Anton', sans-serif !important;
    font-size: 20px !important;
    color: #141b44 !important;
    text-align: center !important;
}

.mjc-modal-config p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
}

.mjc-preview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mjc-preview-item {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mjc-preview-item .multiplier-name {
    font-family: 'Anton', sans-serif;
    font-size: 15px;
    color: #141b44;
}

.mjc-color-dot {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
}

.mjc-modal-wheel-area {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.wheel-container {
    position: relative;
    width: 460px;
    height: 460px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-arrow {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    color: #000000;
    z-index: 20;
}

#wheelCanvas {
    width: 460px !important;
    height: 460px !important;
    max-width: 100% !important;
}

.mjc-wheel-container, #mjc-wheel-modal .modal-content {
    max-width: 600px !important;
}

#spinBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    border: 4px solid #ffffff;
    font-size: 14px;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wheel-result-message {
    margin-top: 20px;
    font-weight: bold;
    font-size: 15px;
    color: #141b44;
}

/* ==========================================
   RESPONSIVE MOBILE (Écrans < 480px)
   ========================================== */
@media (max-width: 480px) {
    .mjc-container {
        padding: 20px 12px !important;
        margin: 15px auto !important;
        max-width: 95% !important;
    }
    .mjc-container h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        color: #141b44 !important;
        text-align: center !important;
    }

    /* CORRECTION DU BLOC VOS COMBOS SUR MOBILE */
    .mjc-combo-box,
    .mjc-jauge-container, 
    div[class*="jauge"], 
    div[class*="combo"] {
        padding: 8px 14px !important;
        margin-bottom: 12px !important;
        height: auto !important;
        min-height: unset !important;
    }

    .mjc-combo-title,
    .mjc-container [class*="title"] {
        font-size: 14px !important;
    }

    /* REDUCTION CIBLÉE UNIQUEMENT DU CHIFFRE GÉANT (LE "0") */
    .mjc-combo-box span,
    .mjc-combo-box div,
    .mjc-combo-badge,
    .mjc-combo-badge-count,
    .mjc-jauge-points,
    [class*="points"],
    [class*="count"] {
        font-size: 24px !important;
        line-height: 1 !important;
    }

    .mjc-progress-bar-bg {
        height: 8px !important;
    }

    .mjc-container input[type="email"],
    .mjc-container input[type="text"] {
        font-size: 16px !important;
        padding: 10px !important;
        text-align: center !important;
    }
    
    .mjc-share-container input {
        font-size: 13px !important;
        padding: 10px !important;
        text-align: center !important;
        margin-bottom: 6px !important; 
    }
    .mjc-share-container {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    #mjc-submit-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }

    #mjc-copy-btn {
        display: block !important;
        width: 100% !important; 
        margin: 0 auto 12px auto !important; 
        padding: 12px 16px !important; 
        font-size: 13px !important;
        background: #141b44 !important;
        color: #ffffff !important;
        border: none !important; 
        font-weight: bold !important;
        text-align: center !important;
        border-radius: 8px !important;
    }

    .mjc-game-step-card {
        padding: 16px 12px !important;
        margin: 15px 0 !important;
    }
    
    .mjc-card-btn.id-btn-action-main,
    .id-btn-action-main {
        font-size: 14px !important;
        padding: 12px 14px !important;
    }
    
    .mjc-modal-content {
        flex-direction: column !important;
        max-width: 90% !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        border-radius: 18px !important;
    }
    .mjc-modal-config {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }
    .mjc-modal-config h3 { font-size: 16px !important; }
    .mjc-modal-config p { font-size: 11px !important; margin-bottom: 12px !important; }
    .mjc-preview-item { padding: 8px 12px !important; }
    .mjc-preview-item .multiplier-name { font-size: 12px !important; }
    .mjc-color-dot { width: 18px !important; height: 18px !important; }
    
    .mjc-modal-wheel-area { 
        width: 100% !important; 
        padding: 15px 10px !important; 
        box-sizing: border-box !important;
    }
    
    .wheel-container { 
        width: 260px !important; 
        height: 260px !important; 
    }
    #wheelCanvas { 
        width: 250px !important; 
        height: 250px !important; 
    }
    .wheel-arrow { 
        font-size: 24px !important; 
        top: -10px !important; 
    }
    #spinBtn { 
        width: 65px !important; 
        height: 65px !important; 
        font-size: 10px !important; 
    }
}