/* ====================================
   BOUTON RETOUR EN HAUT 
   ==================================== */

.scroll-to-top {
    /* Position - Fixe et suit l'écran */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    
    /* Dimensions */
    width: 48px;
    height: 48px;
    
    /* Apparence minimaliste */
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* Centrage de l'icône */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Animation douce */
    transition: all 0.3s ease;
    cursor: pointer;
    
    /* Reset bouton */
    outline: none;
    padding: 0;
    
    /* Initialement caché */
    opacity: 0;
    visibility: hidden;
}

/* Icône Font Awesome */
.scroll-to-top i {
    font-size: 22px;
    color: #333;
    transition: all 0.3s ease;
}

/* Bouton visible après scroll */
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Effet au survol */
.scroll-to-top:hover {
    background-color: #1e3b8f;
    border-color: #1e3b8f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(246, 117, 94, 0.25);
}

.scroll-to-top:hover i {
    color: white;
}

/* Version tablette */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    .scroll-to-top i {
        font-size: 20px;
    }
}

/* Version mobile */
@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .scroll-to-top i {
        font-size: 18px;
    }
}

/* Accessibilité - Focus clavier */
.scroll-to-top:focus-visible {
    outline: 2px solid #f6755e;
    outline-offset: 2px;
}

/* Réduction des animations si préféré */
@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: none;
    }
    
    .scroll-to-top:hover {
        transform: none;
    }
}