/* ========================================================================== */
/* ETHNOS R157 — médias compacts, identité centrée, dock inférieur restauré  */
/* Base : R156. Correctifs graphiques ciblés, backend inchangé.              */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* 1 — Photos et documents : titres et actions plus compacts, même axe       */
/* -------------------------------------------------------------------------- */
html body .memberMediaHeader > div{
  width:100% !important;
  min-width:0 !important;
}
html body .memberMediaHeader h2{
  font-size:clamp(25px,1.85vw,34px) !important;
  line-height:1.02 !important;
}
html body .memberMediaSectionHeader{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  justify-content:stretch !important;
  gap:12px !important;
  min-height:68px !important;
  padding:11px clamp(15px,1.2vw,21px) !important;
}
html body .memberMediaSectionHeader > div:first-child{
  min-width:0 !important;
  align-self:center !important;
}
html body .memberMediaSectionHeader h3{
  font-size:clamp(17px,1.12vw,22px) !important;
  line-height:1.04 !important;
  white-space:nowrap !important;
}
html body .memberMediaSectionHeader > div:first-child > span{
  margin-bottom:2px !important;
  font-size:clamp(7px,.5vw,9px) !important;
}
html body .memberMediaActions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  align-self:center !important;
}
html body .memberMediaActions button{
  min-height:32px !important;
  height:32px !important;
  padding:0 10px !important;
  border-radius:8px !important;
  font-size:clamp(9px,.61vw,11px) !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

/* -------------------------------------------------------------------------- */
/* 2 — Identité : planète et nom centrés verticalement dans la barre haute    */
/* Le décalage horizontal validé de 25 px vers la gauche est conservé.        */
/* -------------------------------------------------------------------------- */
html body .memberBrand{
  top:50% !important;
  bottom:auto !important;
  height:auto !important;
  max-height:calc(var(--topbar) - 8px) !important;
  align-items:center !important;
  transform:translate(calc(-50% - 25px),-50%) !important;
}
html body .memberBrand img,
html body .memberBrandName{
  align-self:center !important;
}
html body .memberBrandName{
  display:flex !important;
  align-items:center !important;
  min-height:1em !important;
  line-height:1 !important;
}

/* -------------------------------------------------------------------------- */
/* 3 — Navigation basse : rétablissement visible et continu au pied de page  */
/* -------------------------------------------------------------------------- */
html body .memberWorldDock{
  display:grid !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  position:fixed !important;
  z-index:78 !important;
  left:0 !important;
  right:calc(var(--ethnos-context-width) - 16px) !important;
  bottom:var(--footer-legal) !important;
  width:auto !important;
  height:var(--r110-dock-height) !important;
  min-height:var(--r110-dock-height) !important;
  box-sizing:border-box !important;
  grid-template-columns:repeat(7,minmax(0,1fr)) !important;
  gap:5px !important;
  padding:5px 5px 5px calc(var(--ethnos-search-width) + 49px) !important;
  overflow:visible !important;
  border:1px solid rgba(7,26,57,.18) !important;
  border-radius:0 16px 16px 0 !important;
  background:linear-gradient(180deg,rgba(255,252,247,.99),rgba(255,249,240,.96)) !important;
  box-shadow:0 18px 45px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.88) !important;
  backdrop-filter:blur(16px) saturate(1.06) !important;
  -webkit-backdrop-filter:blur(16px) saturate(1.06) !important;
  transform:none !important;
}
html body .memberWorldDock button{
  min-width:0 !important;
  min-height:38px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  border:1px solid transparent !important;
  border-radius:10px !important;
  background:transparent !important;
  color:rgba(7,26,57,.68) !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-size:clamp(8px,.66vw,11px) !important;
  font-weight:700 !important;
  cursor:pointer !important;
}
html body .memberWorldDock button:hover,
html body .memberWorldDock button:focus-visible{
  color:#071a39 !important;
  background:rgba(255,255,255,.62) !important;
  outline:none !important;
}
html body .memberWorldDock button.isActive{
  border-color:rgba(19,183,180,.34) !important;
  background:linear-gradient(135deg,rgba(19,183,180,.13),rgba(242,103,34,.08)) !important;
  color:#071a39 !important;
}
html body .memberWorldDock i{
  flex:0 0 auto !important;
  display:grid !important;
  place-items:center !important;
  width:25px !important;
  height:25px !important;
  border-radius:50% !important;
  background:rgba(7,26,57,.055) !important;
  color:#13b7b4 !important;
  font-style:normal !important;
  font-size:15px !important;
}
html body .memberFooter{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  z-index:77 !important;
}

@media (max-width:1600px) and (max-height:920px){
  html body .memberMediaHeader h2{font-size:26px !important}
  html body .memberMediaSectionHeader{
    min-height:58px !important;
    gap:9px !important;
    padding:8px 12px !important;
  }
  html body .memberMediaSectionHeader h3{font-size:17px !important}
  html body .memberMediaActions button{
    min-height:29px !important;
    height:29px !important;
    padding:0 8px !important;
    font-size:9px !important;
  }
}

@media (max-width:1100px){
  html body .memberWorldDock button span{display:none !important}
  html body .memberWorldDock i{font-size:17px !important}
}

@media (max-width:900px){
  html body .memberBrand{
    transform:translate(-50%,-50%) !important;
  }
  html body .memberWorldDock{
    left:8px !important;
    right:8px !important;
    bottom:calc(var(--footer-legal) + 5px) !important;
    padding:5px !important;
    border-radius:14px !important;
  }
}

@media (max-width:520px){
  html body .memberMediaSectionHeader{
    grid-template-columns:1fr !important;
    text-align:center !important;
  }
  html body .memberMediaActions{
    justify-content:center !important;
  }
  html body .memberMediaSectionHeader h3{
    white-space:normal !important;
  }
}
