/* ETHNOS R675 — navigation basse + popularité Solidarité.
   Périmètre ciblé : dock principal, bouton Jouer et DÉCOUVRIR unique + filtre thème. */

/* Tous les accès du dock occupent une largeur identique. En découverte,
   Monde reste masqué par le moteur Maps et Ethnos V1 devient le 8e accès. */
html body #memberWorldDock{
  grid-template-columns:repeat(8,minmax(0,1fr)) !important;
}
html body #memberWorldDock > button{
  min-width:0 !important;
}

@media (min-width:901px){
  html.ethnosGuestDiscovery #memberWorldDock{
    grid-template-columns:repeat(8,minmax(0,1fr)) !important;
  }
  html.ethnosGuestDiscovery #memberWorldDock [data-body-view="home"]{order:1 !important;}
  html.ethnosGuestDiscovery #memberWorldDock [data-body-view="houses"]{order:2 !important;}
  html.ethnosGuestDiscovery #memberWorldDock [data-body-view="solidarity"]{order:3 !important;}
  html.ethnosGuestDiscovery #memberWorldDock [data-body-view="help"]{order:4 !important;}
  html.ethnosGuestDiscovery #memberWorldDock [data-body-view="culture"]{order:5 !important;}
  html.ethnosGuestDiscovery #memberWorldDock [data-r672-open-games]{order:6 !important;}
  html.ethnosGuestDiscovery #memberWorldDock [data-body-view="events"]{order:7 !important;}
  html.ethnosGuestDiscovery #memberWorldDock [data-r525-ethnos-v1]{order:8 !important;}
  html.ethnosGuestDiscovery #memberWorldDock [data-body-view="world"]{display:none !important;}

  /* Huit cases : même largeur, typographie juste assez resserrée. */
  html.ethnosGuestDiscovery #memberWorldDock > button{
    width:auto !important;
    min-width:0 !important;
    padding-left:clamp(3px,.38vw,7px) !important;
    padding-right:clamp(3px,.38vw,7px) !important;
    font-size:clamp(9px,.62vw,12px) !important;
  }
  html.ethnosGuestDiscovery #memberWorldDock > button span{
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  html.ethnosGuestDiscovery #memberWorldDock > button:not([data-body-view="world"]):not([data-r525-ethnos-v1])::after{
    content:"" !important;
    position:absolute !important;
    top:10px !important;
    right:0 !important;
    bottom:10px !important;
    width:1px !important;
    background:rgba(7,26,57,.16) !important;
    pointer-events:none !important;
  }
}

/* R675 — DÉCOUVRIR reste une seule zone : Univers officiels et salons actifs
   sont rendus dans le même strip. Aucun second bloc visuel n'est créé. */
html body .bodyView-familyDiscovery--solidarity .r675SolidarityDiscoveryFilters{
  grid-template-columns:minmax(165px,190px) minmax(180px,220px) minmax(260px,340px) !important;
  justify-content:start !important;
  width:max-content !important;
  max-width:100% !important;
}
html body .bodyView-familyDiscovery--solidarity .r675SolidarityDiscoveryFilters select{
  min-width:0 !important;
}
html body .r674SolidaritySalonCard .r674SolidaritySalonVisual{
  position:relative !important;
  min-height:96px !important;
  background:
    radial-gradient(circle at 18% 20%,rgba(50,210,208,.30),transparent 34%),
    linear-gradient(135deg,#0b3442 0%,#102a36 48%,#10222d 100%) !important;
}
html body .r674SolidaritySalonCard .r674SolidaritySalonVisual > span{
  position:absolute !important;
  left:16px !important;
  bottom:13px !important;
  color:#d9ffff !important;
  font-size:10px !important;
  font-weight:900 !important;
  letter-spacing:.13em !important;
}
html body .r674SolidaritySalonCard .r674SolidaritySalonLogo span{
  color:#19bfc0 !important;
  font-size:24px !important;
}
html body .r674SolidaritySalonCard footer > span:first-child{
  color:#8eabb3 !important;
  font-size:11px !important;
}
@media (max-width:900px){
  html body .bodyView-familyDiscovery--solidarity .r675SolidarityDiscoveryFilters{
    grid-template-columns:1fr !important;
    width:100% !important;
  }
}


/* R675 — DÉCOUVRIR Solidarité : cartes Univers et salons publics de même hauteur.
   Pure géométrie : aucune donnée ni rattachement de salon n'est touché. */
@media (min-width:901px){
  html body .bodyView-familyDiscovery--solidarity [data-r556-family-section="popular"] .r492UniverseStrip{
    align-items:stretch !important;
  }
  html body .bodyView-familyDiscovery--solidarity [data-r556-family-section="popular"] .r492UniverseCard.r551UniverseCard{
    height:254px !important;
    min-height:254px !important;
    max-height:254px !important;
  }
  html body .bodyView-familyDiscovery--solidarity [data-r556-family-section="popular"] .r551UniverseCardVisual{
    height:100% !important;
    min-height:254px !important;
  }
  html body .bodyView-familyDiscovery--solidarity [data-r556-family-section="popular"] .r551UniverseCardBody{
    display:flex !important;
    min-height:0 !important;
    flex-direction:column !important;
  }
  html body .bodyView-familyDiscovery--solidarity [data-r556-family-section="popular"] .r551UniverseCardBody footer{
    margin-top:auto !important;
  }
}
