/* === Scroll To Top – ENATI === */

#stt-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;

    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(43, 90, 85, 0.25);
    cursor: pointer;

    background: rgba(245, 240, 234, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #2B5A55;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 20px rgba(43, 90, 85, 0.12);

    /* Caché par défaut */
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

#stt-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    transition: transform 0.2s ease;
}

/* Visible */
#stt-btn.stt-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Hover */
#stt-btn:hover {
    background: #2B5A55;
    color: #f5f0ea;
    box-shadow: 0 6px 28px rgba(43, 90, 85, 0.28);
    border-color: transparent;
}

#stt-btn:hover svg {
    transform: translateY(-2px);
}

/* Focus accessible */
#stt-btn:focus-visible {
    outline: 2px solid #2B5A55;
    outline-offset: 3px;
}

/* Active */
#stt-btn:active {
    transform: scale(0.93);
}
