#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    /*background: #2d2d2d;*/
    background-image: linear-gradient(rgb(96, 107, 133) 0%, rgb(86, 98, 129) 13%, rgb(59, 72, 104) 78%, rgb(57, 69, 101) 91%, rgb(60, 72, 103) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    /* 👇 Position initiale hors écran */
    transform: translateX(80px);

    transition:
        transform .6s cubic-bezier(.22,.61,.36,1),
        opacity .5s ease,
        visibility .5s;

    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;

    /* 👇 Reviens à sa position normale */
    transform: translateX(0);
}

#backToTop:hover {
    transform: translateX(0) translateY(-4px);
}




/*#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #2d2d2d;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-3px);
}