/* ==========================================================================
   JEU CONCOURS - LA PÉNICHE REIMS
   Palette : #141B44 (bleu nuit) / #5BBBA0 (vert) / #FA6B4E (orange) / #FFFEBE (jaune)
   ========================================================================== */

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

.mjc-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

/* ==========================================================================
   ÉTAPE 1 : INSCRIPTION
   ========================================================================== */

#mjc-etape-inscription {
    text-align: center;
}

#mjc-etape-inscription h2 {
    font-family: 'Anton', sans-serif;
    color: #141B44;
    text-transform: uppercase;
}

#mjc-submit-btn {
    width: 100%;
    padding: 14px 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;
    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); }

#mjc-message {
    margin-top: 12px;
    font-size: 14px;
    color: #141B44;
}

/* ==========================================================================
   ZONE POST-INSCRIPTION
   ========================================================================== */

#mjc-zone-post-inscription {
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Confirmation : le participant doit savoir immédiatement qu'il est inscrit */
#mjc-confirmation {
    background: #5BBBA0;
    color: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

#mjc-confirmation-titre {
    font-family: 'Anton', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

#mjc-confirmation-texte {
    font-size: 14px;
    line-height: 1.4;
}

/* Compteur de chances */
#mjc-bandeau-score-global {
    background: #FFFEBE;
    border: 1px solid #e1e4e8;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Anton', sans-serif, Arial;
}

.mjc-score-label {
    color: #FA6B4E;
    font-size: 16px;
    text-transform: uppercase;
}

.mjc-score-valeur {
    color: #141B44;
    font-size: 22px;
}

.mjc-jauge-points {
    color: #FA6B4E;
    font-size: 26px;
}

#mjc-zone-actions {
    width: 100%;
}

/* ==========================================================================
   CARTE D'ACTION
   ========================================================================== */

.mjc-single-action-card {
    background: #ffffff;
    border: 2px solid #5BBBA0;
    border-radius: 20px;
    padding: 25px 20px 20px 20px;
    margin: 0 auto 20px auto;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(91, 187, 160, 0.08);
}

.mjc-boost-text-custom {
    animation: mjcPulseZoom 2s infinite ease-in-out;
    text-align: center;
    margin-bottom: 15px;
}

.mjc-boost-titre {
    font-family: 'Anton', sans-serif;
    font-size: 16px;
    color: #FA6B4E;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.mjc-boost-sous-titre {
    font-size: 11px;
    color: #FA6B4E;
    line-height: 1.4;
}

.mjc-card-btn {
    display: block;
    width: 100%;
    background: #5BBBA0;
    color: #141B44;
    font-family: 'Anton', sans-serif, Arial;
    font-size: 20px;
    letter-spacing: 0.5px;
    padding: 18px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(91, 187, 160, 0.3);
    transition: transform 0.2s, background-color 0.2s;
    box-sizing: border-box;
    margin: 5px 0 16px 0;
    line-height: 1.2;
}

.mjc-card-btn:hover:not(:disabled) {
    background: #4ca88e;
    transform: translateY(-2px);
}

.mjc-card-btn:disabled {
    background: #cbd5e0;
    color: #718096;
    cursor: not-allowed;
    box-shadow: none;
}

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

#mjc-action-message {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: #FFFEBE;
    border-radius: 10px;
    font-size: 13px;
    color: #141B44;
}

/* ==========================================================================
   PARTAGE DU LIEN DE PARRAINAGE
   ========================================================================== */

.mjc-share-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 0 16px 0;
}

.mjc-share-container input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
}

#mjc-copy-btn {
    background: #141B44;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}

#mjc-copy-btn.mjc-copie { background: #5BBBA0; }

/* ==========================================================================
   FIN DE PARCOURS
   ========================================================================== */

.mjc-quetes-terminees {
    background: #ffffff;
    border: 2px solid #5BBBA0;
    padding: 25px 20px;
    border-radius: 20px;
    margin: 0 0 20px 0;
    text-align: center;
}

.mjc-quetes-terminees h3 {
    color: #141B44;
    font-size: 20px;
    margin: 0 0 10px 0;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
}

.mjc-quetes-terminees p {
    color: #666;
    margin: 0 0 16px 0;
    font-size: 14px;
}

.mjc-quetes-terminees .mjc-note {
    font-size: 12px;
    color: #94a3b8;
    margin: 10px 0 0 0;
}

/* ==========================================================================
   ANTI-TRICHE ET RÈGLEMENT
   ========================================================================== */

.mjc-anti-triche {
    background: #fff5f5;
    border-left: 4px solid #FA6B4E;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: left;
    font-size: 12px;
    color: #c53030;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}

.mjc-reglement-lien {
    text-align: center;
    margin-top: 12px;
}

.mjc-reglement-lien a {
    color: #141B44;
    text-decoration: underline;
    font-weight: 600;
    font-size: 13px;
}

/* ==========================================================================
   ROUE DE LA FORTUNE — VERSION ÉPURÉE
   Plus de cadre blanc, plus de colonne de légende : la roue seule.
   ========================================================================== */

.mjc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 23, 33, 0.88);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.mjc-modal-wheel-area {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.wheel-arrow {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 34px;
    color: #ffffff;
    z-index: 20;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

#wheelCanvas {
    max-width: 100%;
    border-radius: 50%;
}

#spinBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #141B44;
    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;
}

#spinBtn:disabled { opacity: 0.6; cursor: default; }

#wheel-result-message {
    margin-top: 18px;
    font-weight: bold;
    font-size: 15px;
    color: #ffffff;
    text-align: center;
}

/* ==========================================================================
   ÉCRAN DE GAIN
   ========================================================================== */

#overlay-casino {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99990;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

#overlay-casino h2 {
    color: #FFFEBE;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    font-family: 'Anton', sans-serif;
}

#overlay-casino p {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    line-height: 1.2;
}

#fermer-gain-casino {
    padding: 14px 35px;
    font-size: 1.1rem;
    background: #5BBBA0;
    color: #141B44;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
}

/* ==========================================================================
   RESPONSIVE MOBILE
   ========================================================================== */

@media screen and (max-width: 480px) {

    .mjc-container { padding: 15px 12px; }

    #mjc-etape-inscription h2 { font-size: 20px; line-height: 1.3; }

    #mjc-confirmation-titre { font-size: 17px; }
    #mjc-confirmation-texte { font-size: 13px; }

    #mjc-bandeau-score-global { padding: 10px 15px; margin-bottom: 18px; }
    .mjc-score-label  { font-size: 14px; }
    .mjc-score-valeur { font-size: 20px; }
    .mjc-jauge-points { font-size: 24px; }

    .mjc-boost-titre { font-size: 15px; }

    .mjc-card-btn {
        font-size: 15px;
        padding: 15px 14px;
        white-space: normal;
    }

    .mjc-container input[type="email"] { font-size: 16px; text-align: center; }

    .mjc-share-container {
        flex-direction: column;
        gap: 10px;
    }
    .mjc-share-container input[type="text"],
    .mjc-share-container button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .wheel-container { width: 260px; height: 260px; }
    .wheel-arrow     { font-size: 26px; top: -10px; }
    #spinBtn         { width: 70px; height: 70px; font-size: 11px; }

    #overlay-casino h2 { font-size: 1.6rem; }
    #overlay-casino p  { font-size: 1.4rem; }
}