/* Optimisations performances — LPDM */

/* Fonds fixes coûteux sur mobile */
@media (max-width: 900px) {
  body,
  body[class*="theme-"] {
    background-attachment: scroll !important;
  }
}

/* Accessibilité + perf : pas d'animations lourdes si demandé */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .theme-particles {
    display: none !important;
  }
}

/* Particules de thème : couche GPU légère */
.theme-particles {
  contain: strict;
  pointer-events: none;
  will-change: transform;
}

.theme-particles .particle {
  will-change: transform, opacity;
}

/* Images : chargement différé hors critique */
.main-content img:not([src*="logo"]):not(.avatar),
.content img:not([src*="logo"]):not(.avatar) {
  loading: lazy;
  decoding: async;
}

/* Contenu hors écran */
.sidebar-footer,
.pub-info,
.footer-links {
  content-visibility: auto;
}
