/* Bannière avis + bouton roue */
.rw-banner {
    margin: 20px 0;
    padding: 20px 22px;
    border-radius: 18px;
    background: radial-gradient(circle at top left, #0f172a, #020617 60%, #000000);
    color: #f9fafb;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.rw-banner-text h3 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

.rw-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #cbd5f5;
}

.rw-banner-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Boutons */
.rw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.rw-btn-primary {
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #111827;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.6);
}

.rw-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.8);
}

.rw-btn-secondary {
    background: transparent;
    color: #f97316;
    border: 1px solid #f97316;
}

.rw-btn-secondary:hover {
    background: rgba(249, 115, 22, 0.1);
}

/* Modal */
.rw-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.rw-modal.rw-modal-open {
    display: block;
}

.rw-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
}

.rw-modal-dialog {
    position: relative;
    max-width: 480px;
    margin: 40px auto;
    background: #020617;
    border-radius: 20px;
    padding: 24px 20px 28px;
    color: #e5e7eb;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.rw-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
}

.rw-modal-title {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.rw-modal-subtitle {
    margin: 0 0 16px;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Formulaire */
#rw-wheel-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

#rw-wheel-form label {
    font-size: 0.9rem;
    color: #e5e7eb;
}

#rw-email {
    border-radius: 999px;
    border: 1px solid #4b5563;
    padding: 8px 14px;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.95rem;
}

#rw-email:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.5);
}

.rw-form-message {
    font-size: 0.85rem;
    color: #f97373;
}

/* Roue */
.rw-wheel-wrapper {
    margin: 18px auto 8px;
    position: relative;
    width: 220px;
    height: 220px;
}

.rw-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid #e5e7eb;
    background: conic-gradient(
        #22c55e 0deg 60deg,
        #f97316 60deg 120deg,
        #e11d48 120deg 180deg,
        #6366f1 180deg 240deg,
        #06b6d4 240deg 300deg,
        #facc15 300deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.9);
    transition: transform 3s ease-out;
}

.rw-wheel-inner {
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background: #020617;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.7);
}

/* Flèche */
.rw-pointer {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid #f97316;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}

.rw-result {
    margin-top: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #facc15;
}

/* Responsive */
@media (max-width: 640px) {
    .rw-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .rw-banner-actions {
        margin-left: 0;
    }

    .rw-modal-dialog {
        margin: 20px 12px;
    }
}
