/* ActiveFoot public - correction finale du bandeau tournoi / Coach.
   CSS uniquement. Ne masque aucun conteneur, ne modifie pas le DOM, ne touche pas au contenu public. */

/* Bandeau tournoi : hauteur maîtrisée */
.page-tournament .af-tournament-hero{
  display:grid!important;
  grid-template-columns:minmax(320px,.92fr) minmax(0,1.08fr)!important;
  align-items:center!important;
  gap:0!important;
  width:100%!important;
  max-width:1180px!important;
  min-height:0!important;
  height:auto!important;
  margin:14px auto 14px!important;
  padding:0!important;
  overflow:hidden!important;
}

.page-tournament .af-tournament-identity{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:168px!important;
  height:auto!important;
  padding:18px 22px!important;
  text-align:center!important;
  box-sizing:border-box!important;
}

.page-tournament .af-tournament-identity > img{
  display:block!important;
  width:86px!important;
  height:86px!important;
  min-width:86px!important;
  min-height:86px!important;
  max-width:86px!important;
  max-height:86px!important;
  margin:0 0 12px!important;
  object-fit:contain!important;
}

.page-tournament .af-tournament-identity > .page-title{
  margin:0!important;
  font-size:25px!important;
  line-height:1.05!important;
}

.page-tournament .af-tournament-identity > .page-title-sub{
  margin-top:6px!important;
  font-size:13px!important;
}

/* Bloc Coach du bandeau : avatar visible et bouton compact */
.page-tournament .af-tournament-hero > .af-public-coach-intro,
.page-tournament .af-tournament-hero > #af-public-coach-intro{
  display:grid!important;
  grid-template-columns:62px minmax(0,1fr) auto!important;
  align-items:center!important;
  align-content:center!important;
  gap:16px!important;
  min-height:168px!important;
  height:auto!important;
  padding:18px 22px!important;
  box-sizing:border-box!important;
  border-left:1px solid rgba(245,197,66,.28)!important;
  background:rgba(10,17,30,.30)!important;
}

/* Annule le masquage trop large appliqué par les anciens essais Trustpilot. */
.page-tournament .af-tournament-hero > .af-public-coach-intro img,
.page-tournament .af-tournament-hero > #af-public-coach-intro img,
.page-tournament .af-tournament-hero > .af-public-coach-intro img[data-af-trust-legacy-hidden="1"],
.page-tournament .af-tournament-hero > #af-public-coach-intro img[data-af-trust-legacy-hidden="1"]{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  min-height:58px!important;
  max-width:58px!important;
  max-height:58px!important;
  margin:0!important;
  border:2px solid #f5c542!important;
  border-radius:50%!important;
  object-fit:cover!important;
  object-position:top center!important;
  background:#0b2414!important;
}

.page-tournament .af-tournament-hero > .af-public-coach-intro .af-public-coach-copy,
.page-tournament .af-tournament-hero > #af-public-coach-intro .af-public-coach-copy{
  display:block!important;
  min-width:0!important;
  width:auto!important;
  max-width:520px!important;
  text-align:left!important;
}

.page-tournament .af-tournament-hero > .af-public-coach-intro .af-public-coach-copy span,
.page-tournament .af-tournament-hero > #af-public-coach-intro .af-public-coach-copy span{
  display:block!important;
  margin:0 0 4px!important;
  color:#f5c542!important;
  font-size:10px!important;
  line-height:1.1!important;
  letter-spacing:.45px!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}

.page-tournament .af-tournament-hero > .af-public-coach-intro .af-public-coach-copy strong,
.page-tournament .af-tournament-hero > #af-public-coach-intro .af-public-coach-copy strong{
  display:block!important;
  margin:0 0 5px!important;
  color:var(--tx,#f8fafc)!important;
  font-size:17px!important;
  line-height:1.15!important;
  white-space:normal!important;
}

.page-tournament .af-tournament-hero > .af-public-coach-intro .af-public-coach-copy p,
.page-tournament .af-tournament-hero > #af-public-coach-intro .af-public-coach-copy p{
  display:block!important;
  margin:0!important;
  color:var(--tm,#94a3b8)!important;
  font-size:13px!important;
  line-height:1.35!important;
  max-width:470px!important;
}

.page-tournament .af-tournament-hero > .af-public-coach-intro .af-public-coach-open,
.page-tournament .af-tournament-hero > #af-public-coach-intro .af-public-coach-open{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:end!important;
  align-self:center!important;
  width:auto!important;
  min-width:160px!important;
  max-width:200px!important;
  min-height:38px!important;
  height:auto!important;
  padding:9px 14px!important;
  margin:0!important;
  border-radius:7px!important;
  white-space:nowrap!important;
  line-height:1!important;
  box-sizing:border-box!important;
}

@media(max-width:900px){
  .page-tournament .af-tournament-hero{
    grid-template-columns:1fr!important;
  }
  .page-tournament .af-tournament-identity{
    min-height:150px!important;
    padding:16px 14px!important;
  }
  .page-tournament .af-tournament-identity > img{
    width:74px!important;
    height:74px!important;
    min-width:74px!important;
    min-height:74px!important;
    max-width:74px!important;
    max-height:74px!important;
  }
  .page-tournament .af-tournament-hero > .af-public-coach-intro,
  .page-tournament .af-tournament-hero > #af-public-coach-intro{
    grid-template-columns:54px minmax(0,1fr) auto!important;
    min-height:0!important;
    padding:14px 16px!important;
    border-left:0!important;
    border-top:1px solid rgba(245,197,66,.25)!important;
  }
}

@media(max-width:620px){
  .page-tournament .af-tournament-hero > .af-public-coach-intro,
  .page-tournament .af-tournament-hero > #af-public-coach-intro{
    grid-template-columns:50px minmax(0,1fr)!important;
    gap:11px!important;
    padding:12px!important;
  }
  .page-tournament .af-tournament-hero > .af-public-coach-intro img,
  .page-tournament .af-tournament-hero > #af-public-coach-intro img,
  .page-tournament .af-tournament-hero > .af-public-coach-intro img[data-af-trust-legacy-hidden="1"],
  .page-tournament .af-tournament-hero > #af-public-coach-intro img[data-af-trust-legacy-hidden="1"]{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    min-height:50px!important;
    max-width:50px!important;
    max-height:50px!important;
  }
  .page-tournament .af-tournament-hero > .af-public-coach-intro .af-public-coach-open,
  .page-tournament .af-tournament-hero > #af-public-coach-intro .af-public-coach-open{
    grid-column:1/-1!important;
    justify-self:stretch!important;
    width:100%!important;
    max-width:none!important;
  }
}
