/* Styles pour le bouton de retour en haut de page */

#back-to-top-btn {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    border-color: var(--primary-dark);
    box-shadow: 0 0 15px rgba(110, 159, 255, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1000;
    margin-bottom: 60px !important; /* Espace au-dessus du bouton de cookies */
}

#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(110, 159, 255, 0.7);
}

#back-to-top-btn:active {
    transform: translateY(-1px);
}

#back-to-top-btn i {
    color: white;
    font-size: 1rem;
}

/* Animation de lueur */
@keyframes btn-glow {
    0% { box-shadow: 0 0 15px rgba(110, 159, 255, 0.5); }
    50% { box-shadow: 0 0 25px rgba(110, 159, 255, 0.8); }
    100% { box-shadow: 0 0 15px rgba(110, 159, 255, 0.5); }
}

#back-to-top-btn.show {
    animation: btn-glow 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    #back-to-top-btn {
        width: 35px;
        height: 35px;
        margin-bottom: 50px !important;
    }
}