/* ============================================
   BOUTON SCROLL TO TOP - S-APPLY CONSULTING
   Bouton élégant pour remonter en haut de page
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px; /* Même niveau que Sticky CTA mais à gauche */
    left: 30px; /* Déplacé à gauche */
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border: 2px solid #b8956a;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999; /* Sous le Sticky CTA (1000) */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Icône flèche */
.scroll-to-top::before {
    content: '↑';
    font-size: 24px;
    font-weight: bold;
    color: #b8956a;
    transition: transform 0.3s ease;
}

/* État visible */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Hover effect */
.scroll-to-top:hover {
    background: linear-gradient(135deg, #b8956a 0%, #9a7a52 100%);
    border-color: #2c2c2c;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(184, 149, 106, 0.4);
}

.scroll-to-top:hover::before {
    color: #2c2c2c;
    transform: translateY(-3px);
}

/* Animation au clic */
.scroll-to-top:active {
    transform: translateY(-2px);
}

/* Animation pulse subtile */
@keyframes pulseTop {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(184, 149, 106, 0.5);
    }
}

.scroll-to-top.show {
    animation: pulseTop 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 90px; /* Au-dessus du WhatsApp sur mobile */
        left: 20px; /* Toujours à gauche */
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top::before {
        font-size: 20px;
    }
}

/* Version alternative avec icône SVG (optionnel) */
.scroll-to-top.with-icon {
    background: #2c2c2c;
}

.scroll-to-top.with-icon svg {
    width: 20px;
    height: 20px;
    fill: #b8956a;
    transition: transform 0.3s ease;
}

.scroll-to-top.with-icon:hover svg {
    fill: #2c2c2c;
    transform: translateY(-3px);
}

/* Accessibility */
.scroll-to-top:focus {
    outline: 2px solid #b8956a;
    outline-offset: 2px;
}

/* Préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: opacity 0.1s ease;
    }
    
    .scroll-to-top.show {
        animation: none;
    }
}
