/* ========================================================================== */
/* ETHNOS R156 — Favoris sans liserés + bibliothèque Photos/Documents         */
/* Base : R155. Correctifs graphiques ciblés, backend inchangé.                */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* 1 — Salons favoris : supprimer définitivement les bandes latérales         */
/* Le scroll reste automatique, mais sa piste ne retire plus de largeur.       */
/* -------------------------------------------------------------------------- */
html body .memberNavDrawer[data-member-drawer-panel="favorites"]{
  border-left:0 !important;
  overflow:hidden !important;
  background:#fff8ee !important;
}
html body .memberFavoritesShell{
  position:absolute !important;
  inset:0 !important;
  box-sizing:border-box !important;
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  scrollbar-gutter:auto !important;
  background:#fff8ee !important;
}
html body .memberFavoritesShell::-webkit-scrollbar{
  width:0 !important;
  height:0 !important;
}
html body .memberFavoritesShell>header,
html body .memberFavoritesList{
  box-sizing:border-box !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  left:auto !important;
  right:auto !important;
}
html body .memberFavoritesShell>header{
  border-left:0 !important;
  border-right:0 !important;
}
html body .memberFavoritesList{
  padding-left:0 !important;
  padding-right:0 !important;
  overflow:visible !important;
}
html body .memberFavoriteSalonRow{
  box-sizing:border-box !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  border-left:0 !important;
  border-right:0 !important;
  border-radius:0 !important;
  transform:none !important;
}
html body .memberFavoriteSalonRow:hover,
html body .memberFavoriteSalonRow:focus-visible{
  transform:translateY(-2px) !important;
}

/* -------------------------------------------------------------------------- */
/* 2 — Photos et documents : en-tête officiel et deux zones crème             */
/* -------------------------------------------------------------------------- */
html body .memberMediaDrawer{
  position:absolute !important;
  overflow:hidden !important;
  border-left:0 !important;
  background:#fff8ee !important;
  color:#071a39 !important;
  font-family:Manrope,Inter,"Segoe UI",Arial,sans-serif !important;
}
html body .memberMediaShell{
  position:absolute !important;
  inset:0 !important;
  box-sizing:border-box !important;
  width:auto !important;
  height:auto !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  background:#fff8ee !important;
  color:#071a39 !important;
}
html body .memberMediaHeader{
  flex:0 0 auto !important;
  box-sizing:border-box !important;
  min-height:var(--r143-message-header-height,clamp(122px,15.2vh,164px)) !important;
  display:flex !important;
  align-items:center !important;
  padding:20px clamp(24px,2.2vw,38px) !important;
  border:0 !important;
  border-bottom:1px solid rgba(49,209,207,.28) !important;
  background:linear-gradient(118deg,#03141e 0%,#062431 70%,#083241 100%) !important;
}
html body .memberMediaEyebrow{
  display:block !important;
  margin:0 0 8px !important;
  color:#31d1cf !important;
  font-family:Manrope,Inter,"Segoe UI",Arial,sans-serif !important;
  font-size:clamp(9px,.62vw,11px) !important;
  font-weight:850 !important;
  line-height:1 !important;
  letter-spacing:.13em !important;
  text-transform:uppercase !important;
}
html body .memberMediaHeader h2{
  margin:0 !important;
  color:#f26722 !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-size:clamp(28px,2.15vw,40px) !important;
  font-weight:800 !important;
  line-height:1.03 !important;
  letter-spacing:-.025em !important;
}
html body .memberMediaHeader p{
  margin:10px 0 0 !important;
  color:#e2edef !important;
  font-family:Manrope,Inter,"Segoe UI",Arial,sans-serif !important;
  font-size:clamp(12px,.86vw,15px) !important;
  font-weight:650 !important;
  line-height:1.45 !important;
}
html body .memberMediaScroll{
  flex:1 1 auto !important;
  min-height:0 !important;
  box-sizing:border-box !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  scrollbar-gutter:auto !important;
  scrollbar-width:thin !important;
  scrollbar-color:rgba(7,26,57,.28) transparent !important;
  background:#fff8ee !important;
}
html body .memberMediaScroll::-webkit-scrollbar{width:6px !important}
html body .memberMediaScroll::-webkit-scrollbar-track{background:transparent !important}
html body .memberMediaScroll::-webkit-scrollbar-thumb{
  border-radius:8px !important;
  background:rgba(7,26,57,.25) !important;
}
html body .memberMediaSection{
  box-sizing:border-box !important;
  width:100% !important;
  margin:0 !important;
  padding:0 0 16px !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
html body .memberMediaPhotosSection{background:#fff8ee !important}
html body .memberMediaDocumentsSection{
  border-top:10px solid #fff1df !important;
  background:#fff5e9 !important;
}
html body .memberMediaSectionHeader{
  box-sizing:border-box !important;
  min-height:78px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;
  padding:14px clamp(16px,1.35vw,24px) 12px !important;
  border-bottom:1px solid rgba(7,26,57,.12) !important;
}
html body .memberMediaSectionHeader>div:first-child>span{
  display:block !important;
  margin:0 0 3px !important;
  color:#f26722 !important;
  font-size:clamp(8px,.58vw,10px) !important;
  font-weight:850 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
}
html body .memberMediaSectionHeader h3{
  margin:0 !important;
  color:#071a39 !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-size:clamp(20px,1.4vw,27px) !important;
  font-weight:800 !important;
  line-height:1.08 !important;
  letter-spacing:-.02em !important;
}
html body .memberMediaActions{
  flex:0 0 auto !important;
  margin:0 !important;
}
html body .memberMediaActions button{
  width:auto !important;
  min-width:0 !important;
  min-height:38px !important;
  padding:0 13px !important;
  border:1px solid #f26722 !important;
  border-radius:9px !important;
  background:#ff8848 !important;
  color:#071a39 !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-size:clamp(10px,.72vw,13px) !important;
  font-weight:800 !important;
  cursor:pointer !important;
  box-shadow:0 5px 13px rgba(7,26,57,.08) !important;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease !important;
}
html body .memberMediaActions button:hover,
html body .memberMediaActions button:focus-visible{
  transform:translateY(-2px) !important;
  filter:brightness(1.04) !important;
  box-shadow:0 10px 20px rgba(7,26,57,.15) !important;
  outline:none !important;
}
html body .memberMediaList{
  box-sizing:border-box !important;
  width:100% !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  align-content:start !important;
  gap:0 !important;
  padding:0 !important;
  overflow:visible !important;
}
html body .memberMediaBand{
  box-sizing:border-box !important;
  width:100% !important;
  min-width:0 !important;
  min-height:76px !important;
  display:grid !important;
  grid-template-columns:66px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:12px !important;
  margin:0 !important;
  padding:10px clamp(14px,1.2vw,20px) !important;
  border:0 !important;
  border-bottom:1px solid rgba(7,26,57,.11) !important;
  border-radius:0 !important;
  background:#f8fbf8 !important;
  color:#071a39 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.78) !important;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease !important;
}
html body .memberMediaBand:nth-child(even){background:#fff1df !important}
html body .memberMediaDocumentsSection .memberMediaBand:nth-child(odd){background:#fffaf3 !important}
html body .memberMediaBand:hover,
html body .memberMediaBand:focus-visible{
  position:relative !important;
  z-index:1 !important;
  transform:translateY(-2px) !important;
  filter:brightness(1.012) !important;
  box-shadow:0 11px 22px rgba(7,26,57,.14),inset 0 1px 0 rgba(255,255,255,.9) !important;
  outline:none !important;
}
html body .memberMediaBandVisual{
  width:66px !important;
  height:54px !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  border:1px solid rgba(7,26,57,.12) !important;
  border-radius:9px !important;
  background:#fffdf8 !important;
}
html body .memberMediaBandVisual img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  border-radius:8px !important;
}
html body .memberMediaBandVisual .memberMediaCardIcon{
  width:100% !important;
  height:100% !important;
  display:grid !important;
  place-items:center !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#071a39 !important;
  font-size:28px !important;
}
html body .memberMediaBandCopy{
  min-width:0 !important;
  overflow:hidden !important;
}
html body .memberMediaBandCopy strong,
html body .memberMediaBandCopy small{
  display:block !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
html body .memberMediaBandCopy strong{
  color:#071a39 !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-size:clamp(13px,.93vw,17px) !important;
  font-weight:800 !important;
  line-height:1.15 !important;
}
html body .memberMediaBandCopy small{
  margin-top:5px !important;
  color:#617886 !important;
  font-size:clamp(9px,.64vw,11px) !important;
  line-height:1.25 !important;
}
html body .memberMediaBandActions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:7px !important;
}
html body .memberMediaBandActions button{
  min-height:34px !important;
  padding:0 10px !important;
  border-radius:8px !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-size:clamp(9px,.62vw,11px) !important;
  font-weight:800 !important;
  cursor:pointer !important;
}
html body .memberMediaPreviewButton{
  border:1px solid rgba(7,26,57,.22) !important;
  background:#fffdf8 !important;
  color:#071a39 !important;
}
html body .memberMediaDeleteButton{
  border:1px solid #f26722 !important;
  background:#ff8848 !important;
  color:#071a39 !important;
}
html body .memberMediaDeleteButton:disabled{
  opacity:.45 !important;
  cursor:not-allowed !important;
}
html body .memberMediaBandActions button:not(:disabled):hover,
html body .memberMediaBandActions button:not(:disabled):focus-visible{
  transform:translateY(-1px) !important;
  filter:brightness(1.04) !important;
  outline:none !important;
}
html body .memberMediaEmpty{
  box-sizing:border-box !important;
  width:calc(100% - 28px) !important;
  margin:14px !important;
  padding:18px 14px !important;
  border:1px dashed rgba(7,26,57,.20) !important;
  border-radius:10px !important;
  background:rgba(255,253,248,.72) !important;
  color:#657b87 !important;
  font-size:clamp(10px,.72vw,13px) !important;
  text-align:center !important;
}
html body .memberMediaCloseButton{
  box-sizing:border-box !important;
  width:calc(100% - 28px) !important;
  min-width:0 !important;
  min-height:44px !important;
  margin:40px 14px 14px !important;
  padding:0 14px !important;
  border:1px solid #071a39 !important;
  border-radius:10px !important;
  background:#071a39 !important;
  color:#fffaf3 !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-size:clamp(13px,.84vw,16px) !important;
  font-weight:800 !important;
  line-height:1 !important;
  cursor:pointer !important;
  box-shadow:0 8px 18px rgba(7,26,57,.12) !important;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease !important;
}
html body .memberMediaCloseButton:hover,
html body .memberMediaCloseButton:focus-visible{
  transform:translateY(-2px) !important;
  filter:brightness(1.08) !important;
  box-shadow:0 12px 24px rgba(7,26,57,.18) !important;
  outline:none !important;
}

/* -------------------------------------------------------------------------- */
/* 3 — Aperçu photo                                                           */
/* -------------------------------------------------------------------------- */
html body .memberMediaPreview[hidden]{display:none !important}
html body .memberMediaPreview{
  position:absolute !important;
  inset:0 !important;
  z-index:30 !important;
  display:grid !important;
  place-items:center !important;
  padding:18px !important;
  opacity:0 !important;
  visibility:hidden !important;
  transition:opacity .18s ease,visibility 0s linear .18s !important;
}
html body .memberMediaPreview.isOpen{
  opacity:1 !important;
  visibility:visible !important;
  transition:opacity .18s ease,visibility 0s !important;
}
html body .memberMediaPreviewBackdrop{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  padding:0 !important;
  border:0 !important;
  background:rgba(1,10,16,.78) !important;
  backdrop-filter:blur(4px) !important;
  -webkit-backdrop-filter:blur(4px) !important;
  cursor:pointer !important;
}
html body .memberMediaPreviewDialog{
  position:relative !important;
  z-index:1 !important;
  box-sizing:border-box !important;
  width:min(92%,720px) !important;
  max-height:90% !important;
  display:grid !important;
  grid-template-rows:minmax(0,1fr) auto !important;
  gap:10px !important;
  margin:0 !important;
  padding:14px !important;
  border:1px solid rgba(49,209,207,.34) !important;
  border-radius:14px !important;
  background:#fff8ee !important;
  box-shadow:0 24px 70px rgba(0,0,0,.42) !important;
}
html body .memberMediaPreviewDialog img{
  width:100% !important;
  max-height:calc(90vh - 120px) !important;
  object-fit:contain !important;
  border-radius:10px !important;
  background:#071a39 !important;
}
html body .memberMediaPreviewDialog figcaption{
  overflow:hidden !important;
  color:#071a39 !important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif) !important;
  font-size:14px !important;
  font-weight:800 !important;
  text-align:center !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
html body .memberMediaPreviewClose{
  position:absolute !important;
  top:8px !important;
  right:8px !important;
  z-index:2 !important;
  width:36px !important;
  height:36px !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.75) !important;
  border-radius:50% !important;
  background:#071a39 !important;
  color:#fff !important;
  font-size:24px !important;
  line-height:1 !important;
  cursor:pointer !important;
}

@media (max-width:1600px) and (max-height:920px){
  html body .memberMediaHeader{
    min-height:122px !important;
    padding:16px 22px !important;
  }
  html body .memberMediaHeader h2{font-size:30px !important}
  html body .memberMediaHeader p{font-size:11px !important;margin-top:7px !important}
  html body .memberMediaSectionHeader{
    min-height:66px !important;
    padding:10px 14px !important;
  }
  html body .memberMediaSectionHeader h3{font-size:20px !important}
  html body .memberMediaActions button{min-height:34px !important;font-size:10px !important}
  html body .memberMediaBand{
    min-height:64px !important;
    grid-template-columns:56px minmax(0,1fr) auto !important;
    gap:9px !important;
    padding:7px 12px !important;
  }
  html body .memberMediaBandVisual{width:56px !important;height:46px !important}
  html body .memberMediaBandCopy strong{font-size:13px !important}
  html body .memberMediaBandActions{gap:5px !important}
  html body .memberMediaBandActions button{min-height:30px !important;padding:0 8px !important;font-size:9px !important}
  html body .memberMediaCloseButton{min-height:40px !important;font-size:11px !important}
}

@media (max-width:520px){
  html body .memberMediaSectionHeader{
    align-items:flex-start !important;
    flex-direction:column !important;
  }
  html body .memberMediaBand{
    grid-template-columns:52px minmax(0,1fr) !important;
  }
  html body .memberMediaBandActions{
    grid-column:1/-1 !important;
    justify-content:flex-end !important;
  }
}

@media (prefers-reduced-motion:reduce){
  html body .memberFavoriteSalonRow,
  html body .memberMediaBand,
  html body .memberMediaActions button,
  html body .memberMediaCloseButton,
  html body .memberMediaPreview{
    transition:none !important;
  }
  html body .memberFavoriteSalonRow:hover,
  html body .memberFavoriteSalonRow:focus-visible,
  html body .memberMediaBand:hover,
  html body .memberMediaBand:focus-visible,
  html body .memberMediaActions button:hover,
  html body .memberMediaActions button:focus-visible,
  html body .memberMediaCloseButton:hover,
  html body .memberMediaCloseButton:focus-visible{
    transform:none !important;
  }
}
