/* style.css for 21 Boutons Redirect */
.bouton-wrapper {
    text-align: center;
    margin: 20px 0;
}

.bouton-redirect {
    display: inline-block;
    padding: 10px 30px;
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.bouton-redirect:hover {
    background-color: #f0f0f0;
}

.bouton-redirect.processing {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

.bouton-redirect.completed {
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
}

.bouton-redirect.completed .final-message {
    display: inline-block;
    padding: 10px 30px; /* Aligné avec .bouton-redirect */
    background-color: #28a745 !important; /* Vert prononcé par défaut */
    color: #ffffff !important; /* Texte blanc */
    border: 2px solid #1e7e34 !important; /* Bordure verte sombre */
    border-radius: 25px !important; /* Coins arrondis */
    font-size: 16px; /* Même taille que .bouton-redirect */
    transition: background-color 0.3s;
}

.bouton-redirect.completed .final-message:hover {
    background-color: #218838 !important; /* Vert plus sombre au survol */
}

.bouton-redirect.completed .final-message a.redirect-link {
    color: #ffffff !important; /* Texte blanc pour le lien */
    text-decoration: underline;
}

/* Style pour le spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff; /* Bordure blanche pour contraste sur fond vert */
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .bouton-wrapper {
        margin: 10px 0;
    }
    .bouton-redirect {
        padding: 8px 20px;
        font-size: 14px;
    }
    .bouton-redirect.completed .final-message {
        padding: 8px 20px;
        font-size: 14px;
    }
    .bouton-redirect.completed .final-message a.redirect-link {
        font-size: 12px;
    }
    .spinner {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
}