/* Conteneur centré */
.sr-ajout-bouton-container {
    margin-top: 10px;
    text-align: center;
}

/* Bouton amélioré */
.sr-ajout-bouton {
    display: inline-block !important;
    background: linear-gradient(135deg, #007bff, #0056b3) !important; /* Dégradé bleu moderne */
    color: white !important;
    font-size: 16px !important;
    font-weight: bold !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}



/* Effet au survol */
.sr-ajout-bouton:hover {
    background: linear-gradient(135deg, #0056b3, #004494); /* Bleu plus foncé */
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

/* Effet lors du clic */
.sr-ajout-bouton:active {
    transform: scale(0.98);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}

.sr-message-erreur {
    display: none; /* Caché par défaut */
    color: white;
    background-color: red;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin-top: 5px;
    width: max-content;
    max-width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.sr-message-erreur.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-5px); }
}

.sr-message-succes {
    display: none;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.sr-message-erreur {
    display: none;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.sr-bouton-playlist {
    display: block;
    margin-top: 10px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #28a745, #218838);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.sr-bouton-playlist:hover {
    background: #218838;
}