/* === CRITICAL CSS - Anti Flash CSP Friendly === */

html {
  background-color: #0f0310 !important;
}

body {
  background-color: #0f0310 !important;
  /* PAS de visibility: hidden ici */
}

/* Les éléments clés ont le bon fond immédiatement */
.header, 
.header-fixed,
.main-bar,
.menubar,
.bottom-nav,
.menu-toggler,
.sidebar,
#preloader,
.loader {
  background-color: #0f0310 !important;
  background: #0f0310 !important;
}

/* Optionnel: fade in doux du contenu */
.page-wrapper {
  opacity: 1; /* Visible par défaut */
  transition: opacity 0.3s ease;
}

/* Si tu veux un fade in, décommente:
body.loading .page-wrapper {
  opacity: 0;
}
body.loaded .page-wrapper {
  opacity: 1;
}
*/