html {
    scroll-behavior: smooth;
}

/* Floating Button for Mobile - Style synced with .fab-devis-button from hero.css */
.mobile-floating-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: auto;
    transform: none;
    z-index: 1000;

    /* Visual Style from .fab-devis-button */
    background: linear-gradient(135deg, var(--primary-color, #d97706), var(--primary-light, #f59e0b));
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.15));

    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    width: auto;
    max-width: 90%;

    /* Animation */
    animation: float 4s ease-in-out infinite;
    overflow: hidden;
    border: none;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.mobile-floating-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light, #f59e0b) 0%, var(--secondary-color, #fbbf24) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-floating-btn:hover::before {
    opacity: 1;
}

.mobile-floating-btn:hover {
    transform: scale(1.05);
    /* Note: this might conflict with float animation in some browsers, but keeping consistent with hero.css hover */
    box-shadow: var(--shadow-xl, 0 20px 60px rgba(0, 0, 0, 0.2));
    color: white;
}

.mobile-floating-btn:active {
    transform: scale(0.95);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* Content layers to stay above pseudo-element */
.mobile-floating-btn span,
.mobile-floating-btn i {
    z-index: 1;
    position: relative;
}

.mobile-floating-btn i {
    font-size: 18px;
    margin-top: 0;
    transition: transform 0.3s ease;
}

.mobile-floating-btn:hover i {
    transform: translateY(3px);
}

@media (max-width: 768px) {
    .mobile-floating-btn {
        display: flex;
        bottom: 25px;
        left: 20px;
    }
}