/**
 * Index Sacré - Global Styles (Back to Top button for all pages)
 *
 * @package IndexSacre
 */

/* Back to Top Button - Global */
.index-sacre-back-to-top-global {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #1A1A1A;
    border: 1px solid #E5E2DB;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    z-index: 9999;
    padding: 0;
    margin: 0;
}

.index-sacre-back-to-top-global svg {
    width: 20px;
    height: 20px;
}

.index-sacre-back-to-top-global.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.index-sacre-back-to-top-global:hover {
    background: #FFFFFF;
    color: #1A1A1A;
    border-color: #1A1A1A;
}

.index-sacre-back-to-top-global:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 167, 124, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .index-sacre-back-to-top-global {
        bottom: 80px !important;
        left: 1rem !important;
        right: auto !important;
        width: 40px !important;
        height: 40px !important;
        /* Always visible on mobile - no scroll detection needed */
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .index-sacre-back-to-top-global svg {
        width: 18px;
        height: 18px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .index-sacre-back-to-top-global {
        transition-duration: 0.01ms !important;
    }
}
