/* Mode léger (machines faibles) : on garde le design, on retire ce qui coûte cher au processeur graphique. */

/* Flous d'arrière-plan (en-tête vitré, cartes) : fond opaque à la place */
html.perf-lite *,
html.perf-lite *::before,
html.perf-lite *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

html.perf-lite .header { background-color: rgba(255, 255, 255, 0.97) !important; }

/* Grosses taches floues animées, ondes et paquets du réseau SVG */
html.perf-lite .hx-blob,
html.perf-lite .hx-ripple,
html.perf-lite .hx-glow,
html.perf-lite .hx-net-pkt,
html.perf-lite .hx-net-trail,
html.perf-lite .section.cta::after,
html.perf-lite .cd-glow {
    display: none !important;
}

/* Animations en boucle décoratives : arrêtées */
html.perf-lite .hx-shine,
html.perf-lite .hx-shimmer::after,
html.perf-lite .hx-sweep,
html.perf-lite .hx-badge-cta,
html.perf-lite .hx-rb.is-on,
html.perf-lite .hx-float,
html.perf-lite .hx-net-dot,
html.perf-lite .nav-home-pill,
html.perf-lite .section.cta .btnCss,
html.perf-lite .section.cta .btnCss::after,
html.perf-lite .xc-map__route {
    animation: none !important;
}

/* Ombres floues très coûteuses sur la maquette et le nuage */
html.perf-lite .hx-tilt { box-shadow: 0 20px 40px -20px rgba(7, 8, 12, 0.35) !important; }
html.perf-lite .sr-core::before { filter: none !important; }

/* Effets au défilement : figés dans leur position finale */
html.perf-lite .cd-section { --p: 1 !important; }
html.perf-lite #NosProduits .service-card { --p: 1 !important; }
html.perf-lite .cd-phone,
html.perf-lite .cd-text,
html.perf-lite .cd-glow { transition: none !important; will-change: auto !important; }

/* Sections loin de l'écran : le navigateur ne les dessine qu'à l'approche */
html.perf-lite #references,
html.perf-lite .section.service:not(#NosProduits),
html.perf-lite footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

/* Canvas du réseau : taille de l'écran, déplacé en haut du fond au défilement (js/hero-network.js) */
.hx-stage > .hx-constellation,
.hx-constellation {
    inset: 0 auto auto 0 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    pointer-events: none;
    will-change: transform;
}
