/* ========================================================================== */
/* ETHNOS R546 — décor Découverte unique, hors du layout                      */
/* Base figée : R545.                                                         */
/* Référence de cadrage : accueil commercial (.hero__image).                  */
/* Périmètre : mode Découverte non connecté uniquement.                       */
/* ========================================================================== */

/*
  R545 gardait encore le décor flouté dans .memberLayout::before.
  Ce pseudo-élément dépend du shell central et était en plus découpé par
  clip-path : Maps pouvait donc révéler une autre couche / une zone non floutée.

  R546 sort définitivement le décor du layout : une seule couche fixe couvre
  exactement le viewport, avec le même center/cover que l'accueil commercial.
  Accueil, Maps et Tchat ne peuvent plus modifier sa géométrie.
*/
html.ethnosGuestDiscovery,
html.ethnosGuestDiscovery body{
  background:#071a39 !important;
  background-image:none !important;
}

html.ethnosGuestDiscovery body{
  position:relative !important;
  isolation:isolate !important;
}

/* Image source : rectangle strictement identique au viewport commercial. */
html.ethnosGuestDiscovery body::before{
  content:"" !important;
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  z-index:0 !important;
  pointer-events:none !important;
  background-color:#071a39 !important;
  background-image:url("../assets/images/commercial-home-hero-r355.jpg") !important;
  background-position:center center !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  transform:none !important;
}

/* Flou uniforme sur TOUT le viewport sans modifier le rectangle de cover. */
html.ethnosGuestDiscovery body::after{
  content:"" !important;
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  z-index:0 !important;
  pointer-events:none !important;
  background:rgba(7,26,57,.16) !important;
  -webkit-backdrop-filter:blur(6px) saturate(.90) !important;
  backdrop-filter:blur(6px) saturate(.90) !important;
}

/* L'application reste au-dessus du décor unique. */
html.ethnosGuestDiscovery .memberApp{
  position:relative !important;
  z-index:1 !important;
  background:transparent !important;
  background-image:none !important;
}

/*
  Neutralisation structurelle de l'ancien moteur de fond. Aucun état Maps,
  Tchat ou fermeture ne possède désormais son propre pseudo-fond.
*/
html.ethnosGuestDiscovery[data-ethnos-ui="discord-r111"] .memberLayout::before,
html.ethnosGuestDiscovery[data-ethnos-ui="discord-r111"] body.r190WorldViewOpen .memberLayout::before,
html.ethnosGuestDiscovery[data-ethnos-ui="discord-r111"] body.isTchatDrawerOpen .memberLayout::before,
html.ethnosGuestDiscovery[data-ethnos-ui="discord-r111"] body.isTchatDrawerClosing .memberLayout::before,
html.ethnosGuestDiscovery[data-ethnos-ui="discord-r111"] body.isTchatDrawerClosingActive .memberLayout::before{
  content:none !important;
  display:none !important;
  background:none !important;
  background-image:none !important;
  filter:none !important;
  -webkit-filter:none !important;
  clip-path:none !important;
  transform:none !important;
}

/* Les enveloppes historiques restent transparentes : une seule image existe. */
html.ethnosGuestDiscovery .memberLayout,
html.ethnosGuestDiscovery .memberWorkspace,
html.ethnosGuestDiscovery .memberWorkspace.hasSalonContent,
html.ethnosGuestDiscovery .memberWorkspace.hasBodyView,
html.ethnosGuestDiscovery .memberWorkspace.hasSalonContent.hasBodyView,
html.ethnosGuestDiscovery body.r190WorldViewOpen .memberLayout,
html.ethnosGuestDiscovery body.isTchatDrawerOpen .memberLayout,
html.ethnosGuestDiscovery body.isTchatDrawerClosing .memberLayout,
html.ethnosGuestDiscovery body.isTchatDrawerClosingActive .memberLayout{
  background-color:transparent !important;
  background-image:none !important;
}
