/* AdminMind 6.9.89 — Family photo hero.
   La photo reste dans la carte, à droite du texte, sans chevauchement. */

#familySheetBody .familyHeroV2.familyHeroPhotoV20,
#familySheetBody .familyHero.familyHeroPhotoV20{
  min-height:275px!important;
  padding:18px 48% 18px 18px!important;
}

/* La passe d'unification 6.9.59 mettait tous les enfants du hero en position relative.
   On rétablit explicitement le média Family en position absolue. */
#familySheetBody .familyHeroV2.familyHeroPhotoV20>.familyHeroPhotoMediaV20,
#familySheetBody .familyHero.familyHeroPhotoV20>.familyHeroPhotoMediaV20{
  position:absolute!important;
  right:16px!important;
  top:76px!important;
  width:44%!important;
  max-width:158px!important;
  height:160px!important;
  margin:0!important;
  border-radius:46px 29px 45px 41px!important;
  overflow:hidden!important;
  z-index:2!important;
  background:rgba(255,255,255,.11)!important;
  border:1px solid rgba(255,255,255,.23)!important;
  box-shadow:
    0 16px 30px rgba(44,25,91,.18),
    inset 0 1px 0 rgba(255,255,255,.22)!important;
  transform:rotate(1deg)!important;
  transform-origin:center!important;
}

#familySheetBody .familyHeroPhotoMediaV20 img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  object-position:50% 45%!important;
  border-radius:inherit!important;
  transform:scale(1.015)!important;
}

/* Le texte reste totalement libre à gauche. */
#familySheetBody .familyHeroV2.familyHeroPhotoV20>small,
#familySheetBody .familyHeroV2.familyHeroPhotoV20>h3,
#familySheetBody .familyHeroV2.familyHeroPhotoV20>p,
#familySheetBody .familyHero.familyHeroPhotoV20>small,
#familySheetBody .familyHero.familyHeroPhotoV20>h3,
#familySheetBody .familyHero.familyHeroPhotoV20>p{
  position:relative!important;
  z-index:4!important;
  max-width:100%!important;
}

/* Bouton photo comme sur la maquette : discret, en bas à gauche. */
#familySheetBody .familyHeroV2.familyHeroPhotoV20>.familyHeroPhotoBtnV20,
#familySheetBody .familyHero.familyHeroPhotoV20>.familyHeroPhotoBtnV20{
  position:absolute!important;
  left:16px!important;
  right:auto!important;
  bottom:16px!important;
  top:auto!important;
  width:38px!important;
  height:38px!important;
  margin:0!important;
  z-index:5!important;
  border-radius:13px!important;
  background:rgba(28,23,48,.48)!important;
  border:1px solid rgba(255,255,255,.32)!important;
  color:#fff!important;
  box-shadow:0 9px 22px rgba(25,15,55,.18),inset 0 1px 0 rgba(255,255,255,.12)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  backdrop-filter:blur(12px)!important;
}

/* Même emplacement si aucune photo n'a encore été choisie. */
#familySheetBody .familyHeroV2>.familyHeroNoPhotoBtnV20,
#familySheetBody .familyHero>.familyHeroNoPhotoBtnV20{
  position:absolute!important;
  left:16px!important;
  right:auto!important;
  bottom:16px!important;
  top:auto!important;
  z-index:5!important;
}

/* Petit relief lumineux derrière la photo, sans changer la carte. */
#familySheetBody .familyHeroV2.familyHeroPhotoV20:before,
#familySheetBody .familyHero.familyHeroPhotoV20:before{
  content:""!important;
  position:absolute!important;
  right:95px!important;
  top:59px!important;
  width:58px!important;
  height:58px!important;
  border-radius:50%!important;
  background:rgba(210,188,255,.18)!important;
  filter:blur(13px)!important;
  z-index:1!important;
  pointer-events:none!important;
}

/* iPhone plus étroit */
@media(max-width:380px){
  #familySheetBody .familyHeroV2.familyHeroPhotoV20,
  #familySheetBody .familyHero.familyHeroPhotoV20{
    min-height:265px!important;
    padding-right:47%!important;
  }
  #familySheetBody .familyHeroV2.familyHeroPhotoV20>.familyHeroPhotoMediaV20,
  #familySheetBody .familyHero.familyHeroPhotoV20>.familyHeroPhotoMediaV20{
    right:14px!important;
    top:78px!important;
    width:42%!important;
    max-width:145px!important;
    height:151px!important;
  }
}

/* Très petit iPhone : on garde le même principe, juste un peu plus compact. */
@media(max-width:345px){
  #familySheetBody .familyHeroV2.familyHeroPhotoV20,
  #familySheetBody .familyHero.familyHeroPhotoV20{
    min-height:252px!important;
    padding-right:46%!important;
  }
  #familySheetBody .familyHeroV2.familyHeroPhotoV20>.familyHeroPhotoMediaV20,
  #familySheetBody .familyHero.familyHeroPhotoV20>.familyHeroPhotoMediaV20{
    width:41%!important;
    max-width:132px!important;
    height:142px!important;
    top:78px!important;
  }
}
