html {
    scroll-behavior: smooth;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

.hero-pattern {
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(31, 163, 85, 0.03) 40px,
            rgba(31, 163, 85, 0.03) 41px
        );
}

.hero-glow {
    background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(31, 163, 85, 0.1) 0%, transparent 70%);
}

.hero-machine-bg {
    background-image:
        linear-gradient(90deg, rgba(8, 9, 12, 0.98) 0%, rgba(8, 9, 12, 0.86) 42%, rgba(8, 9, 12, 0.48) 100%),
        url('../img/machinefap.png');
    background-position: center right;
    background-size: cover;
}

.section-photo-workshop,
.section-photo-filter,
.section-photo-machine {
    background-size: cover;
    background-position: center;
}

.section-photo-workshop {
    background-image:
        linear-gradient(90deg, rgba(8, 9, 12, 0.96) 0%, rgba(8, 9, 12, 0.82) 52%, rgba(8, 9, 12, 0.58) 100%),
        url('../img/atelier-antipollution.jpg');
    background-position: center right;
}

.section-photo-filter {
    background-image:
        linear-gradient(90deg, rgba(8, 9, 12, 0.94) 0%, rgba(8, 9, 12, 0.78) 58%, rgba(8, 9, 12, 0.62) 100%),
        url('../img/filtre-particules-macro.jpg');
}

.section-photo-machine {
    background-image:
        linear-gradient(180deg, rgba(8, 9, 12, 0.9) 0%, rgba(8, 9, 12, 0.72) 100%),
        url('../img/machine-nettoyage-detail.jpg');
    background-position: center 42%;
}

@media (max-width: 767px) {
    .hero-machine-bg {
        background-image:
            linear-gradient(180deg, rgba(8, 9, 12, 0.94) 0%, rgba(8, 9, 12, 0.78) 100%),
            url('../img/machinefap.png');
        background-position: 62% center;
    }

    .section-photo-workshop,
    .section-photo-filter {
        background-position: 64% center;
    }
}

.metal-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(31, 163, 85, 0.3), rgba(31, 163, 85, 0.05), transparent);
}

.section-divider {
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 151, 166, 0.15), transparent);
}

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-left"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"].is-visible {
    transform: translateX(0);
}

[data-animate="fade-right"] {
    transform: translateX(30px);
}

[data-animate="fade-right"].is-visible {
    transform: translateX(0);
}

[data-animate="scale"] {
    transform: scale(0.95);
}

[data-animate="scale"].is-visible {
    transform: scale(1);
}

.faq-chevron {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
}

#site-header.is-scrolled .header-blur {
    background: rgba(8, 9, 12, 0.95);
    border-color: rgba(62, 70, 84, 0.3);
}

.forge-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.forge-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(31, 163, 85, 0), rgba(31, 163, 85, 0.18), rgba(31, 163, 85, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.forge-card:hover::before {
    opacity: 1;
}

.forge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(31, 163, 85, 0.08);
}

.stat-number {
    background: linear-gradient(135deg, #1fa355, #7de1a4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-forge {
    background: linear-gradient(135deg, #1fa355 0%, #7de1a4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes float-subtle {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.float-subtle {
    animation: float-subtle 4s ease-in-out infinite;
}

@keyframes line-scan {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100vh);
    }
}

.line-scan {
    animation: line-scan 8s linear infinite;
}

.symptom-card {
    transition: all 0.2s ease;
}

.symptom-card:hover {
    transform: translateY(-2px);
}

@keyframes google-reviews-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.google-reviews-marquee {
    position: relative;
    overflow: hidden;
}

.google-reviews-marquee::before,
.google-reviews-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3.5rem;
    z-index: 2;
    pointer-events: none;
}

.google-reviews-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(17, 19, 24, 1), rgba(17, 19, 24, 0));
}

.google-reviews-marquee::after {
    right: 0;
    background: linear-gradient(270deg, rgba(17, 19, 24, 1), rgba(17, 19, 24, 0));
}

.google-reviews-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: google-reviews-marquee var(--google-reviews-duration, 90s) linear infinite;
}

.google-reviews-marquee-set {
    display: flex;
    gap: 1rem;
    padding-right: 1rem;
}

.google-reviews-marquee:hover .google-reviews-marquee-track {
    animation-play-state: paused;
}

.google-review-card {
    backdrop-filter: blur(14px);
}

.google-review-card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}

select option {
    background-color: #111318;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #1c2028 inset;
    -webkit-text-fill-color: #dcdfe5;
    caret-color: #dcdfe5;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #08090c;
}

::-webkit-scrollbar-thumb {
    background: #2d333e;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3e4654;
}

@media (max-width: 640px) {
    .hero-pattern {
        background-image:
            repeating-linear-gradient(
                -45deg,
                transparent,
                transparent 25px,
                rgba(31, 163, 85, 0.03) 25px,
                rgba(31, 163, 85, 0.03) 26px
            );
    }

    .google-reviews-marquee::before,
    .google-reviews-marquee::after {
        width: 2rem;
    }

    .google-reviews-marquee-set {
        gap: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .google-reviews-marquee-track {
        animation: none;
    }
}

video:fullscreen {
    object-fit: contain !important;
}
