/* ETHNOS R501 — finition ciblée depuis R500 complète.
   Périmètre : hero Univers des créateurs + lien public Univers depuis fiche membre.
   Aucun changement du moteur salons / Maps / Angers. */

/* 1) Hero Univers : garder la photo d'origine bord à bord, montrer davantage
      de l'image et supprimer le voilage global. La lisibilité du texte repose
      sur un voile local uniquement à gauche. */
html body .memberWorkspace.hasBodyView .bodyView-houses .bodyViewHeader.r499UniverseHero,
html body .memberWorkspace.hasSalonContent.hasBodyView .bodyView-houses .bodyViewHeader.r499UniverseHero,
html body .bodyView-houses .bodyViewHeader.r499UniverseHero{
  min-height:clamp(360px,31vw,610px) !important;
  background-image:url('../assets/images/home-r182/creator-universes.webp') !important;
  background-repeat:no-repeat !important;
  background-size:100% auto !important;
  background-position:center 47% !important;
  background-color:#062534 !important;
}
html body .bodyView-houses .bodyViewHeader.r499UniverseHero::before{
  background:linear-gradient(90deg,
    rgba(3,22,31,.68) 0%,
    rgba(3,22,31,.46) 27%,
    rgba(3,22,31,.18) 46%,
    rgba(3,22,31,0) 60%) !important;
}
html body .bodyView-houses .bodyViewHeader.r499UniverseHero::after{
  display:none !important;
}
html body .bodyView-houses .bodyViewHeader.r499UniverseHero h1{
  text-shadow:0 2px 10px rgba(0,0,0,.34) !important;
}
html body .bodyView-houses .bodyViewHeader.r499UniverseHero p,
html body .bodyView-houses .bodyViewHeader.r499UniverseHero > div:first-child > span{
  text-shadow:0 1px 7px rgba(0,0,0,.34) !important;
}

/* 2) Fiche membre : le lien public vers l'Univers est un vrai bouton actif
      reprenant le standard orange déjà validé (R214/R208). */
html[data-ethnos-ui] body .memberDirectoryIdentityActions > button.r484OfficialSpaceButton:not(:disabled):not([hidden]){
  appearance:none !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:0 !important;
  width:100% !important;
  height:46px !important;
  min-height:46px !important;
  max-height:46px !important;
  padding:0 12px !important;
  border:1px solid rgba(255,211,183,.92) !important;
  border-radius:10px !important;
  background:linear-gradient(180deg,#ffad7a 0%,#ee8d55 100%) !important;
  background-color:#ee8d55 !important;
  color:#071826 !important;
  font-family:var(--ethnos-official-title,var(--font-interface,Manrope,"Segoe UI",Arial,sans-serif)) !important;
  font-size:14px !important;
  font-weight:800 !important;
  font-style:normal !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  text-align:center !important;
  text-decoration:none !important;
  text-transform:none !important;
  text-shadow:none !important;
  white-space:nowrap !important;
  opacity:1 !important;
  cursor:pointer !important;
  box-shadow:0 1px 0 #c96d3d,0 3px 5px rgba(0,0,0,.11) !important;
  filter:none !important;
  transform:translateY(0) !important;
  transition:transform .12s ease,filter .12s ease,box-shadow .12s ease !important;
}
html[data-ethnos-ui] body .memberDirectoryIdentityActions > button.r484OfficialSpaceButton:not(:disabled):not([hidden]):hover,
html[data-ethnos-ui] body .memberDirectoryIdentityActions > button.r484OfficialSpaceButton:not(:disabled):not([hidden]):focus-visible{
  filter:brightness(1.025) !important;
  transform:translateY(-1px) !important;
  outline:none !important;
  box-shadow:0 2px 0 #c96d3d,0 4px 6px rgba(0,0,0,.12) !important;
}
html[data-ethnos-ui] body .memberDirectoryIdentityActions > button.r484OfficialSpaceButton:not(:disabled):not([hidden]):active{
  filter:brightness(.995) !important;
  transform:translateY(1px) !important;
  box-shadow:0 0 0 #c96d3d,0 2px 3px rgba(0,0,0,.09) !important;
}

/* Responsive hero : la hauteur suit la largeur pour montrer davantage de la
   photo sans créer de rognage horizontal. */
@media(max-width:1707px){
  html body .bodyView-houses .bodyViewHeader.r499UniverseHero{
    min-height:clamp(340px,32vw,520px) !important;
    background-position:center 47% !important;
  }
}
@media(max-width:1536px){
  html body .bodyView-houses .bodyViewHeader.r499UniverseHero{
    min-height:clamp(330px,34vw,490px) !important;
    background-position:center 48% !important;
  }
}
@media(max-width:1366px){
  html body .bodyView-houses .bodyViewHeader.r499UniverseHero{
    min-height:430px !important;
    background-position:center 48% !important;
  }
}
@media(width:1280px) and (height:720px){
  html body .bodyView-houses .bodyViewHeader.r499UniverseHero{
    min-height:400px !important;
    padding:22px 24px !important;
    background-size:100% auto !important;
    background-position:center 48% !important;
  }
}
@media(max-width:720px){
  html body .bodyView-houses .bodyViewHeader.r499UniverseHero{
    min-height:360px !important;
    background-size:cover !important;
    background-position:center center !important;
  }
  html body .bodyView-houses .bodyViewHeader.r499UniverseHero::before{
    background:linear-gradient(90deg,rgba(3,22,31,.70),rgba(3,22,31,.30) 72%,rgba(3,22,31,.08)) !important;
  }
  html[data-ethnos-ui] body .memberDirectoryIdentityActions > button.r484OfficialSpaceButton:not(:disabled):not([hidden]){
    height:42px !important;
    min-height:42px !important;
    max-height:42px !important;
    font-size:12px !important;
  }
}


/* ==========================================================================\n   R502 — correctifs ciblés validés\n   - retour au volume compact du hero R500 (image source intacte)\n   - cadrage dans ce volume, voile uniquement local à gauche\n   - favoris officiels via le moteur de favoris existant\n   ========================================================================== */

/* Hero : dimensions R500, pas de nouvel agrandissement. */
html body .memberWorkspace.hasBodyView .bodyView-houses .bodyViewHeader.r499UniverseHero,
html body .memberWorkspace.hasSalonContent.hasBodyView .bodyView-houses .bodyViewHeader.r499UniverseHero,
html body .bodyView-houses .bodyViewHeader.r499UniverseHero{
  min-height:clamp(220px,20vw,330px) !important;
  padding:clamp(26px,3vw,54px) clamp(24px,3.2vw,62px) !important;
  background-image:url('../assets/images/home-r182/creator-universes.webp') !important;
  background-repeat:no-repeat !important;
  background-size:cover !important;
  background-position:center 42% !important;
}
html body .bodyView-houses .bodyViewHeader.r499UniverseHero::before{
  background:linear-gradient(90deg,
    rgba(3,22,31,.66) 0%,
    rgba(3,22,31,.42) 30%,
    rgba(3,22,31,.13) 52%,
    rgba(3,22,31,0) 68%) !important;
}
html body .bodyView-houses .bodyViewHeader.r499UniverseHero::after{display:none !important;}

/* Favori dans Maps : le bouton d'ouverture garde exactement son gabarit. */
html body .r502OfficialSalonFavoriteRow{
  position:relative;
  display:block;
}
html body .r502OfficialSalonFavoriteRow > .salonDrawerListButton{
  width:100%;
  padding-right:58px !important;
}
html body .r502OfficialSalonFavoriteRow > .r502OfficialSalonFavorite{
  position:absolute;
  z-index:2;
  top:50%;
  right:34px;
  transform:translateY(-50%);
}
html body .r502OfficialSalonFavorite,
html body .r502UniverseSalonActions .r502OfficialSalonFavorite{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  border:1px solid rgba(224,122,61,.45) !important;
  border-radius:50% !important;
  background:#fff9ef !important;
  color:#c77843 !important;
  font-family:"Segoe UI Symbol","Segoe UI",Arial,sans-serif !important;
  font-size:19px !important;
  line-height:1 !important;
  cursor:pointer !important;
  box-shadow:0 2px 6px rgba(39,31,24,.09) !important;
}
html body .r502OfficialSalonFavorite.isFavorite{
  background:#fff0dc !important;
  color:#e27636 !important;
  border-color:#e27636 !important;
}
html body .r502UniverseSalonActions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:0 0 auto;
}
html body .r502SalonFavoriteTool.isActive{
  color:#ffb36f !important;
  border-color:rgba(255,179,111,.68) !important;
  background:rgba(255,179,111,.14) !important;
}

@media(max-width:1707px){
  html body .memberWorkspace.hasBodyView .bodyView-houses .bodyViewHeader.r499UniverseHero,
  html body .bodyView-houses .bodyViewHeader.r499UniverseHero{
    min-height:250px !important;
    background-position:center 44% !important;
  }
}
@media(max-width:1536px){
  html body .memberWorkspace.hasBodyView .bodyView-houses .bodyViewHeader.r499UniverseHero,
  html body .bodyView-houses .bodyViewHeader.r499UniverseHero{
    min-height:230px !important;
  }
}
@media(max-width:1366px){
  html body .memberWorkspace.hasBodyView .bodyView-houses .bodyViewHeader.r499UniverseHero,
  html body .bodyView-houses .bodyViewHeader.r499UniverseHero{
    min-height:210px !important;
    padding:24px 26px !important;
    background-position:55% 44% !important;
  }
}
@media(width:1280px) and (height:720px){
  html body .memberWorkspace.hasBodyView .bodyView-houses .bodyViewHeader.r499UniverseHero,
  html body .bodyView-houses .bodyViewHeader.r499UniverseHero{
    min-height:185px !important;
    padding:18px 20px !important;
    background-position:58% center !important;
  }
}
@media(max-width:720px){
  html body .memberWorkspace.hasBodyView .bodyView-houses .bodyViewHeader.r499UniverseHero,
  html body .bodyView-houses .bodyViewHeader.r499UniverseHero{
    min-height:220px !important;
    padding:20px 18px !important;
    background-position:62% center !important;
  }
  html body .bodyView-houses .bodyViewHeader.r499UniverseHero::before{
    background:linear-gradient(90deg,rgba(3,22,31,.72),rgba(3,22,31,.36) 72%,rgba(3,22,31,.08)) !important;
  }
  html body .r502OfficialSalonFavorite,
  html body .r502UniverseSalonActions .r502OfficialSalonFavorite{
    width:30px !important;height:30px !important;min-width:30px !important;min-height:30px !important;font-size:17px !important;
  }
}

@media(max-width:720px){
  html body .r502UniverseSalonActions{width:100%;justify-content:flex-start;}
  html body .r502UniverseSalonActions .r493UniverseSalonAction{
    flex:1 1 auto;
    width:auto !important;
    min-width:0 !important;
  }
}
