.scroll-to-top-container {
    position: relative;
    z-index: 9999;
}

.scroll-to-top-btn {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    cursor: pointer;
    border: none;
    outline: none;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.scroll-to-top-btn:active {
    transform: translateY(-1px);
}

/* Forcer les styles pour les icônes */
.scroll-to-top-btn i,
.scroll-to-top-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.scroll-to-top-btn svg {
    display: block;
    fill: currentColor;
}

.scroll-to-top-btn svg * {
    fill: inherit !important;
}

/* Responsive - media query 1280px */
@media (max-width: 1280px) {
    .scroll-to-top-btn {
        right: 20px !important;
        bottom: 20px !important;
        width: 50px !important;
        height: 50px !important;
    }
    
    .scroll-to-top-btn i,
    .scroll-to-top-btn span {
        font-size: 20px !important;
    }
    
    .scroll-to-top-btn svg {
        width: 20px !important;
        height: 20px !important;
        font-size: 20px !important;
    }
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        right: 15px !important;
        bottom: 15px !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    .scroll-to-top-btn i,
    .scroll-to-top-btn span {
        font-size: 18px !important;
    }
    
    .scroll-to-top-btn svg {
        width: 18px !important;
        height: 18px !important;
        font-size: 18px !important;
    }
}
