/* FOBAK V129.6.52 — Harmonisation professionnelle de toutes les photos publiques des responsables */

/* Accueil : même logique visuelle pour tous les responsables, sans zoom/cadrage agressif. */
body.page-index .fobak-leadership-card{
  border-radius:22px!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid rgba(7,78,118,.13)!important;
  box-shadow:0 14px 34px rgba(5,55,88,.09)!important;
}
body.page-index .fobak-leader-visual{
  background:linear-gradient(180deg,#f7fafc,#eef5f8)!important;
}
body.page-index .fobak-leadership-photo{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:auto!important;
  min-height:260px!important;
  max-height:360px!important;
  aspect-ratio:4/5!important;
  padding:10px!important;
  background:linear-gradient(145deg,#f8fbfc,#eaf3f7)!important;
  overflow:hidden!important;
}
body.page-index .fobak-leadership-photo img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:340px!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:14px!important;
  transform:none!important;
}
body.page-index .fobak-leadership-card:hover .fobak-leadership-photo img{
  transform:none!important;
}
body.page-index .fobak-leader-visual .fobak-leader-logo-space{
  min-height:68px!important;
  padding:9px 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#fff!important;
  border-top:1px solid rgba(7,78,118,.10)!important;
}
body.page-index .fobak-leader-visual .fobak-leader-logo-space img{
  width:auto!important;
  height:52px!important;
  max-width:34%!important;
  object-fit:contain!important;
}
body.page-index .fobak-leadership-body{
  padding:18px 18px 20px!important;
}
body.page-index .fobak-leadership-body h3{
  overflow-wrap:anywhere!important;
  text-wrap:balance!important;
  line-height:1.12!important;
}
body.page-index .fobak-leadership-body p{
  color:#536975!important;
  line-height:1.65!important;
}

/* Page Gouvernance : cartes des responsables sans rognage des visages. */
body.page-public-coordinations .governance-leader-card{
  border-radius:20px!important;
  overflow:hidden!important;
  box-shadow:0 12px 30px rgba(5,55,88,.075)!important;
}
body.page-public-coordinations .fobak-governance-leader-visual{
  background:linear-gradient(180deg,#f8fbfc,#eef5f7)!important;
}
body.page-public-coordinations .governance-leader-media{
  height:auto!important;
  min-height:260px!important;
  aspect-ratio:4/5!important;
  padding:10px!important;
  background:linear-gradient(145deg,#f8fbfc,#eaf3f7)!important;
}
body.page-public-coordinations .governance-leader-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-height:360px!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:13px!important;
}
body.page-public-coordinations .governance-leader-media em{
  left:18px!important;
  bottom:18px!important;
  border-radius:999px!important;
  backdrop-filter:blur(7px)!important;
}
body.page-public-coordinations .fobak-governance-logo-strip{
  min-height:62px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:8px 12px!important;
  background:#fff!important;
  border-top:1px solid rgba(7,78,118,.10)!important;
}
body.page-public-coordinations .fobak-governance-logo-strip img{
  width:auto!important;
  height:46px!important;
  max-width:34%!important;
  object-fit:contain!important;
}

/* Fiche publique individuelle : portrait stable, complet et équilibré. */
body.page-public-leader-detail .governance-profile,
body.page-public-responsable .governance-profile{
  border-radius:26px!important;
  overflow:hidden!important;
  box-shadow:0 18px 44px rgba(5,55,88,.09)!important;
}
body.page-public-leader-detail .governance-profile-head,
body.page-public-responsable .governance-profile-head{
  min-height:0!important;
  align-items:stretch!important;
}
body.page-public-leader-detail .governance-profile-photo,
body.page-public-responsable .governance-profile-photo{
  min-height:0!important;
  padding:14px!important;
  align-items:center!important;
  justify-items:center!important;
  background:linear-gradient(145deg,#f7fafb,#e8f1f4)!important;
}
body.page-public-leader-detail .governance-profile-photo img,
body.page-public-responsable .governance-profile-photo img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:620px!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:18px!important;
}

/* Galerie des responsables : aucune déformation. */
.public-leader-gallery .leader-gallery-item img,
.public-leader-gallery-card .public-gallery-media img{
  object-fit:contain!important;
  object-position:center!important;
  background:#f4f8fa!important;
}

@media(max-width:760px){
  body.page-index .fobak-leadership-order{gap:18px!important}
  body.page-index .fobak-leadership-photo{
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    padding:10px!important;
  }
  body.page-index .fobak-leadership-photo img{
    width:100%!important;
    height:auto!important;
    max-height:420px!important;
  }
  body.page-index .fobak-leader-visual .fobak-leader-logo-space{
    min-height:64px!important;
    padding:8px 12px!important;
  }
  body.page-index .fobak-leader-visual .fobak-leader-logo-space img{
    height:48px!important;
    max-width:30%!important;
  }

  body.page-public-coordinations .governance-leader-card{
    display:block!important;
  }
  body.page-public-coordinations .governance-leader-media{
    height:auto!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    padding:10px!important;
  }
  body.page-public-coordinations .governance-leader-media img{
    width:100%!important;
    height:auto!important;
    max-height:420px!important;
    object-fit:contain!important;
  }
  body.page-public-coordinations .governance-leader-media em{
    display:block!important;
  }

  body.page-public-leader-detail .governance-profile-head,
  body.page-public-responsable .governance-profile-head{
    grid-template-columns:1fr!important;
  }
  body.page-public-leader-detail .governance-profile-photo,
  body.page-public-responsable .governance-profile-photo{
    grid-row:1!important;
    width:calc(100% - 28px)!important;
    margin:14px auto 0!important;
    padding:8px!important;
    border-radius:20px!important;
  }
  body.page-public-leader-detail .governance-profile-copy,
  body.page-public-responsable .governance-profile-copy{
    grid-row:2!important;
    padding:26px 20px 30px!important;
  }
  body.page-public-leader-detail .governance-profile-photo img,
  body.page-public-responsable .governance-profile-photo img{
    max-height:none!important;
  }
}

@media(max-width:520px){
  body.page-index .fobak-leadership-photo img{max-height:360px!important}
  body.page-index .fobak-leadership-body{padding:16px!important}
  body.page-index .fobak-leadership-body h3{font-size:1.35rem!important}
  body.page-index .fobak-leader-visual .fobak-leader-logo-space img{height:44px!important}
  body.page-public-coordinations .governance-leader-media img{max-height:360px!important}
}
