/* Bouton Back to Top */
.back-to-top {
    --border-color: #649685;
    --bg-color: rgba(0, 0, 0, 0.1);
    --bg-hover: rgba(0, 0, 0, 0.15);
    
    position: fixed;
    top: 60px;
    right: 30px;
    background: var(--bg-color);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    padding: 0;
    outline: none;
}

/* États avec variables */
.back-to-top:hover {
    background: var(--bg-hover);
}

.back-to-top:focus,
.back-to-top:active {
    outline: none;
    border-color: var(--border-color);
    background: var(--bg-color);
}

.back-to-top-icon {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
    padding-top: 4px; /* Décaler l'icône vers le bas */

}

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

.back-to-top:hover .back-to-top-icon {
    transform: scale(1.2);
}

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

.back-to-top:hover {
    background: rgba(0, 0, 0, 0.15);
}

.back-to-top:focus,
.back-to-top:active {
    outline: none !important;
    border-color: #649685 !important; /* Garder la bordure verte même au focus */
    background: rgba(0, 0, 0, 0.1) !important; /* Garder le fond original */
}

.back-to-top:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: #649685; /* Garder la couleur de bordure au hover */
}