/* ETHNOS R173 — navigation plus lisible, Tchat -20 px, relance Annuaire. */

:root{
  --r173-tchat-width:calc(clamp(190px,16vw,300px) - 20px);
  --ethnos-search-width:var(--r173-tchat-width);
}

/* R1 — textes des deux barres blanches, plus grands sur tous les formats. */
html body .memberTopNavButton,
html body .memberTopNavButton span,
html body #memberWorldDock button,
html body #memberWorldDock button span{
  font-size:clamp(10px,.72vw,13px) !important;
  line-height:1.12 !important;
}

/* R2 — le bloc Tchat perd exactement 20 px ; tous les éléments qui dépendent
   de la largeur de recherche suivent la même variable. */
@media (min-width:901px){
  html[data-ethnos-ui="discord-r111"] body .memberLayout{
    grid-template-columns:var(--r173-tchat-width) minmax(0,1fr) !important;
  }
}

/* R3 — Recommencer n'existe visuellement qu'en mode résultats. */
html body .memberDirectoryRestartButton{
  display:none !important;
  width:calc(100% - 24px) !important;
  min-height:52px !important;
  margin:18px auto 10px !important;
  padding:0 18px !important;
  border:1px solid #f56f2c !important;
  border-radius:14px !important;
  background:#ff8448 !important;
  color:#071a39 !important;
  font-family:var(--ethnos-official-title,"Manrope",sans-serif) !important;
  font-size:clamp(13px,.9vw,17px) !important;
  font-weight:800 !important;
  cursor:pointer !important;
  box-shadow:0 3px 0 rgba(179,76,30,.22),0 9px 22px rgba(245,111,44,.14) !important;
  transition:transform .18s ease,box-shadow .18s ease !important;
}
html body .memberDirectoryShell.isResultsMode .memberDirectoryRestartButton{
  display:block !important;
}
html body .memberDirectoryRestartButton:hover,
html body .memberDirectoryRestartButton:focus-visible{
  transform:translateY(-2px) !important;
  box-shadow:0 5px 0 rgba(179,76,30,.22),0 12px 26px rgba(245,111,44,.18) !important;
}
html body .memberDirectoryShell.isResultsMode .memberDirectoryInlineClose{
  margin-top:0 !important;
}

@media (max-width:1600px){
  html body .memberDirectoryRestartButton{
    min-height:46px !important;
    margin-top:14px !important;
  }
}
