/*
 * ============================================================
 * SLC — ROUE DE LA FORTUNE — STYLES v3
 * ============================================================
 */

#slc-wof-root {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Playfair Display', Georgia, serif;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    min-height: 520px;
}

/* ── ÉCRANS ── */
.slc-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 520px;
    box-sizing: border-box;
}
.slc-screen.active { display: flex; }


/* ════════════════════════════════════════
   ÉCRAN 0 — INTRO
════════════════════════════════════════ */
#slc-intro-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}
#slc-intro-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
}
#slc-intro-title {
    color: #dec798;
    font-size: 28px;
    margin: 0;
    letter-spacing: 1px;
}
#slc-btn-start {
    background: #dec798;
    color: #1a1a1a;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    transition: opacity .2s, transform .2s;
}
#slc-btn-start:hover { opacity: .85; transform: scale(1.03); }


/* ════════════════════════════════════════
   ÉCRAN 1 — ROUE
════════════════════════════════════════ */
#slc-wheel-wrap {
    position: relative;
    width: 500px;
    height: 500px;
    max-width: 100%;
}
#slc-wheel-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}
#slc-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
#slc-wheel-below {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}
#slc-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
}
#slc-tagline {
    color: #dec798;
    font-size: 14px;
    margin: 0;
    text-align: center;
    opacity: .8;
}
#slc-btn-refresh {
    margin-top: 12px;
    background: transparent;
    border: 1px solid #444;
    color: #666;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: color .2s, border-color .2s;
}
#slc-btn-refresh:hover { color: #dec798; border-color: #dec798; }


/* ════════════════════════════════════════
   ÉCRAN 2 — FORMULAIRE
════════════════════════════════════════ */
#slc-form-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 380px;
}
#slc-prize-display {
    color: #dec798;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

/* CHAMPS — OVERRIDE COMPLET DIVI/WP */
#slc-field-pseudo,
#slc-field-email {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1px solid #444 !important;
    border-radius: 8px !important;
    background: #2a2a2a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 15px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
#slc-field-pseudo:focus,
#slc-field-email:focus {
    border-color: #dec798 !important;
    outline: none !important;
    box-shadow: none !important;
    background: #2a2a2a !important;
    /* SUPPRIME LE OUTLINE BLEU DU NAVIGATEUR */
    -webkit-box-shadow: none !important;
}
#slc-field-pseudo::placeholder,
#slc-field-email::placeholder {
    color: #666 !important;
    opacity: 1 !important;
}
/* AUTOFILL — SUPPRIME LE FOND BLEU CHROME */
#slc-field-pseudo:-webkit-autofill,
#slc-field-email:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #2a2a2a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
}

#slc-btn-submit {
    width: 100%;
    background: #dec798;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .2s;
}
#slc-btn-submit:hover    { opacity: .85; }
#slc-btn-submit:disabled { opacity: .5; cursor: default; }

.slc-error {
    color: #e05555;
    font-size: 13px;
    text-align: center;
    margin: 0;
    min-height: 18px;
}


/* ════════════════════════════════════════
   ÉCRAN 3 — CONFIRMATION
════════════════════════════════════════ */
#slc-confirm-box { text-align: center; padding: 20px; }
#slc-confirm-msg {
    color: #dec798;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}


/* ════════════════════════════════════════
   BOUTON ADMIN DISCRET
════════════════════════════════════════ */
#slc-admin-btn {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color .2s;
    z-index: 20;
}
#slc-admin-btn:hover { color: #dec798; }


/* ════════════════════════════════════════
   POP ADMIN
════════════════════════════════════════ */
#slc-admin-pop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
#slc-admin-inner {
    background: #1a1a1a;
    border: 1px solid #dec798;
    border-radius: 12px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 320px;
    text-align: center;
}
#slc-admin-title {
    color: #dec798;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
}
#slc-admin-pw {
    padding: 12px 16px !important;
    border: 1px solid #444 !important;
    border-radius: 8px !important;
    background: #2a2a2a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 14px !important;
    font-family: inherit !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#slc-admin-pw:focus {
    border-color: #dec798 !important;
    outline: none !important;
    box-shadow: none !important;
}
#slc-admin-dl {
    background: #dec798;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .2s;
}
#slc-admin-dl:hover { opacity: .85; }
#slc-admin-close {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
#slc-admin-close:hover { border-color: #dec798; color: #dec798; }


/* ── RESPONSIVE ── */
@media (max-width: 560px) {
    #slc-wheel-wrap { width: 100%; height: auto; aspect-ratio: 1; }
    #slc-intro-title { font-size: 22px; }
    #slc-btn-start { padding: 14px 28px; font-size: 14px; }
}
