/* ========================================================================== */
/* ETHNOS R130 CORRIGÉE — base R129 saine                                    */
/* Aucun changement de grille, de position des onglets ou des cartes fixes.  */
/* ========================================================================== */

/* 1 — Prolongement crème réel derrière le bloc Tchat.
   On neutralise l'ancien pseudo-élément du dock, qui passait devant le panneau. */
@media (min-width:901px){
  html body .memberWorldDock::before{
    content:none !important;
    display:none !important;
  }

  html[data-ethnos-ui="discord-r111"] body .memberApp::before{
    content:"" !important;
    position:fixed !important;
    left:0 !important;
    bottom:var(--footer-legal) !important;
    width:calc(var(--ethnos-search-width) + 40px) !important;
    height:var(--r110-dock-height) !important;
    z-index:16 !important;
    pointer-events:none !important;
    background:linear-gradient(180deg,rgba(255,252,247,.98),rgba(255,249,240,.93)) !important;
    border-top:1px solid rgba(7,26,57,.18) !important;
    border-bottom:1px solid rgba(7,26,57,.18) !important;
    box-shadow:0 18px 45px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.88) !important;
  }

  /* Le bloc Tchat reste dans sa grille et passe devant le prolongement. */
  html[data-ethnos-ui="discord-r111"] body .memberExplorerPanel{
    z-index:18 !important;
  }
}

/* 2 — Tous les volets Profil / barre haute vont jusqu'en bas.
   Ils passent derrière Profil et Maps, sans modifier la position de ces cartes. */
html[data-ethnos-ui="discord-r111"] body .memberNavDrawerLayer{
  top:var(--ethnos-card-height) !important;
  bottom:0 !important;
  z-index:81 !important;
  overflow:hidden !important;
  pointer-events:none !important;
  contain:paint !important;
}

html[data-ethnos-ui="discord-r111"] body .memberNavDrawer{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-height:none !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  scrollbar-width:thin !important;
}

html[data-ethnos-ui="discord-r111"] body .memberNavDrawer.isOpen{
  pointer-events:auto !important;
}

/* Les cartes conservent leurs positions fixes d'origine ; seul le niveau est assuré. */
html[data-ethnos-ui="discord-r111"] body .memberProfileCompact{
  z-index:120 !important;
}
html[data-ethnos-ui="discord-r111"] body .memberMapCard{
  z-index:82 !important;
}

@media (max-width:900px){
  html[data-ethnos-ui="discord-r111"] body .memberApp::before{
    content:none !important;
    display:none !important;
  }
  html[data-ethnos-ui="discord-r111"] body .memberNavDrawerLayer{
    bottom:0 !important;
    z-index:116 !important;
  }
}
