/* CBHB - composant de bandeau commun, V2 — candidat en recette uniquement.
   Geometrie seulement. Les couleurs, logos saisonniers et permissions restent
   sous le controle des mecanismes existants. L'attribut est pose explicitement
   par le composant, pas par un selecteur global de tous les headers. */
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] {
  --cbhb-header-logo: clamp(54px, 18%, 100px);
  --cbhb-header-gap: clamp(8px, 2vw, 18px);
  display:grid!important;grid-template-columns:var(--cbhb-header-logo) minmax(0,1fr)!important;
  grid-template-areas:"logo copy" "actions actions" "visual visual";
  grid-template-rows:auto auto auto!important;align-items:center!important;
  gap:var(--cbhb-header-gap)!important;position:relative!important;isolation:isolate;
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  padding:clamp(10px,2.4vw,20px)!important;border-radius:clamp(18px,4vw,30px)!important;
  overflow:hidden!important;
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > :is(.cbhb-logo-home,img.club-logo){
  grid-area:logo;display:block!important;position:relative!important;inset:auto!important;
  width:100%!important;height:auto!important;min-width:0!important;max-width:100%!important;
  max-height:none!important;transform:none!important;margin:0!important;padding:0!important;
  align-self:center!important;z-index:5!important;
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] .club-logo{
  display:block!important;position:static!important;inset:auto!important;transform:none!important;
  width:100%!important;height:auto!important;max-width:100%!important;max-height:100px!important;
  margin:0!important;object-fit:contain!important;object-position:center!important;
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > .hero-copy{
  grid-area:copy;position:relative!important;inset:auto!important;transform:none!important;
  width:100%!important;max-width:none!important;min-width:0!important;height:auto!important;
  margin:0!important;padding:0!important;text-align:left!important;z-index:5!important;
  container-type:inline-size;
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] .hero-copy h1{
  margin:0!important;padding:0!important;max-width:100%!important;
  font-family:Arial,Helvetica,sans-serif!important;font-size:clamp(20px,5.2vw,38px)!important;
  font-weight:900!important;line-height:1.04!important;letter-spacing:-.025em!important;
  text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
@supports(font-size:1cqw){
  html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] .hero-copy h1{font-size:clamp(20px,11cqw,38px)!important;}
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] .hero-copy h1 :is(span,em){
  display:inline!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] .hero-copy h1 em{font-style:italic!important;}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] .hero-copy p{
  margin:6px 0 0!important;font-family:Arial,Helvetica,sans-serif!important;
  font-size:clamp(12px,3vw,16px)!important;line-height:1.3!important;font-weight:700!important;
  white-space:normal!important;max-width:100%!important;overflow-wrap:anywhere!important;
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > .hero-visual{
  grid-area:visual;position:relative!important;inset:auto!important;transform:none!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:clamp(210px,68vw,340px)!important;min-height:0!important;max-height:none!important;
  overflow:hidden!important;margin:0!important;padding:0!important;z-index:3!important;
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > .hero-visual img{
  position:static!important;inset:auto!important;transform:none!important;display:block!important;
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  min-width:0!important;min-height:0!important;flex:0 1 auto!important;
  margin:0!important;padding:0!important;object-fit:contain!important;object-position:center!important;
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > .hero-actions{
  grid-area:actions;position:relative!important;inset:auto!important;transform:none!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;
  display:flex!important;flex-flow:row wrap!important;justify-content:flex-end!important;
  align-items:center!important;gap:8px!important;margin:0!important;padding:0!important;z-index:90!important;
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > .hero-actions :is(a,button){
  flex:0 1 auto!important;max-width:100%!important;min-height:44px!important;
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > .hero-actions:empty,
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > .hero-actions[hidden],
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > .hero-visual:empty,
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > .hero-visual[hidden]{display:none!important;}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions][data-cbhb-actions="none"]{
  grid-template-areas:"logo copy" "visual visual";
  grid-template-rows:auto auto!important;
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions][data-cbhb-visual="none"]{
  grid-template-areas:"logo copy" "actions actions";grid-template-rows:auto auto!important;
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions][data-cbhb-actions="none"][data-cbhb-visual="none"]{
  grid-template-areas:"logo copy";grid-template-rows:auto!important;
}
@media(min-width:761px){
  html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions]{
    --cbhb-header-logo:clamp(72px,11%,150px);
    grid-template-columns:var(--cbhb-header-logo) minmax(0,1fr) minmax(0,46%)!important;
    grid-template-areas:"logo copy visual" "actions actions visual";
    grid-template-rows:1fr auto!important;
  }
  html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] .club-logo{max-height:150px!important;}
  html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] .hero-copy h1{font-size:clamp(25px,3.8vw,52px)!important;}
  html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > .hero-visual{height:clamp(240px,27vw,400px)!important;}
  html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions][data-cbhb-actions="none"]{
    grid-template-areas:"logo copy visual";grid-template-rows:auto!important;
  }
  html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions][data-cbhb-visual="none"]{
    grid-template-columns:var(--cbhb-header-logo) minmax(0,1fr)!important;
    grid-template-areas:"logo copy" "actions actions";grid-template-rows:auto auto!important;
  }
  html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions][data-cbhb-actions="none"][data-cbhb-visual="none"]{
    grid-template-areas:"logo copy";grid-template-rows:auto!important;
  }
}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions][data-cbhb-actions="none"] > .hero-actions,
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions][data-cbhb-visual="none"] > .hero-visual{display:none!important;}

/* CBHB V2 : commandes séparées, statut de déconnexion et image entière. */
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > .hero-actions .cbhb-member-logout-error:empty{display:none!important;}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > .hero-actions .cbhb-member-logout-error:not(:empty){flex-basis:100%;max-width:100%!important;}
html body .site > header.hero[data-cbhb-banner="v1"][data-cbhb-visual][data-cbhb-actions] > .hero-actions .member-entry-link{min-width:0!important;}

html body .site > header.hero[data-cbhb-banner="v1"] > .hero-visual{pointer-events:none}
html body .site > header.hero[data-cbhb-banner="v1"] > .hero-actions{pointer-events:auto}

/* Outils secondaires : même grille, titre, logo et proportions. Leur corps et leurs commandes restent autonomes. */
.cbhb-secondary-mask.site{width:min(96%,1840px);margin:12px auto 20px;box-sizing:border-box;min-width:0}
.cbhb-secondary-mask.cbhb-secondary-adminBar{width:min(1180px,calc(100% - 28px))}
.cbhb-secondary-mask.cbhb-secondary-cbhbTop{width:min(1500px,calc(100% - 48px))}
.cbhb-secondary-mask.cbhb-secondary-inline{width:100%;margin:0 auto 20px}
@media(max-width:640px){.cbhb-secondary-mask.cbhb-secondary-adminBar{width:calc(100% - 20px)}.cbhb-secondary-mask.cbhb-secondary-cbhbTop{width:calc(100% - 24px)}}
html body .cbhb-secondary-mask.site > header.hero[data-cbhb-banner="v1"]{color:#fff!important;background:var(--cbhb-header-special-bg,linear-gradient(100deg,var(--cbhb-dark),var(--cbhb-bg2)))!important;border:0;border-bottom:3px solid var(--cbhb-accent);margin:0!important;box-shadow:none}
html body .cbhb-secondary-mask[data-cbhb-header-theme="deuil"] > header.hero[data-cbhb-banner="v1"]{border-color:#777980}
html body .cbhb-secondary-mask.site > header.hero[data-cbhb-banner="v1"] .hero-copy :is(h1,p){color:#fff!important}
html body .cbhb-secondary-mask.site > header.hero[data-cbhb-banner="v1"] .hero-copy h1 em{color:var(--cbhb-accent)!important}
html body .cbhb-secondary-mask.site > header.hero[data-cbhb-banner="v1"] .hero-copy h1{text-transform:uppercase}
html body .cbhb-secondary-mask.site > header.hero[data-cbhb-banner="v1"] .hero-actions a{color:white;display:inline-flex;align-items:center;text-decoration:underline;overflow-wrap:anywhere;white-space:normal}

/* === CBHB_BANDEAUX_SANS_BORDURE_START === */
html body .site > header.hero,
html body .site > header.hero.hero-home,
html body .site > header.hero.team-detail-hero,
html body .site > header.hero.cbhb-master-hero,
html body .site > header.hero.roleHeroUnified,
html body .site > header.hero[data-cbhb-banner="v1"],
html body .cbhb-secondary-mask.site > header.hero[data-cbhb-banner="v1"]{
  border:0 !important;
  border-bottom:0 !important;
  border-image:none !important;
  border-bottom-color:transparent !important;
  outline:0 !important;
  box-shadow:none !important;
  border-radius:22px !important;
  overflow:hidden !important;
  background-clip:padding-box !important;
}

@media (min-width:701px){
  html body .site > header.hero,
  html body .site > header.hero.hero-home,
  html body .site > header.hero.team-detail-hero,
  html body .site > header.hero.cbhb-master-hero,
  html body .site > header.hero.roleHeroUnified,
  html body .site > header.hero[data-cbhb-banner="v1"],
  html body .cbhb-secondary-mask.site > header.hero[data-cbhb-banner="v1"]{
    border-radius:30px !important;
  }
}

html body .site > header.hero::before,
html body .site > header.hero::after,
html body .site > header.hero.hero-home::before,
html body .site > header.hero.hero-home::after,
html body .site > header.hero.team-detail-hero::before,
html body .site > header.hero.team-detail-hero::after,
html body .site > header.hero.cbhb-master-hero::before,
html body .site > header.hero.cbhb-master-hero::after,
html body .site > header.hero.roleHeroUnified::before,
html body .site > header.hero.roleHeroUnified::after,
html body .site > header.hero[data-cbhb-banner="v1"]::before,
html body .site > header.hero[data-cbhb-banner="v1"]::after,
html body .cbhb-secondary-mask.site > header.hero[data-cbhb-banner="v1"]::before,
html body .cbhb-secondary-mask.site > header.hero[data-cbhb-banner="v1"]::after{
  border:0 !important;
  border-image:none !important;
  outline:0 !important;
  box-shadow:none !important;
  background-image:none !important;
}

html body .site > header.hero > .hero-visual,
html body .site > header.hero > .hero-visual img,
html body .site > header.hero > .hero-copy,
html body .site > header.hero > .hero-actions{
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}

html body .site > header.hero > .hero-visual,
html body .site > header.hero > .hero-visual img{
  border-radius:0 !important;
}

html[data-theme] body .site > header.hero,
html[data-theme] body .site > header.hero.hero-home,
html[data-theme] body .site > header.hero.team-detail-hero,
html[data-theme] body .site > header.hero.cbhb-master-hero,
html[data-theme] body .site > header.hero.roleHeroUnified,
html[data-theme] body .site > header.hero[data-cbhb-banner="v1"]{
  border-bottom-color:transparent !important;
  box-shadow:none !important;
}

html body .cbhb-public-header-frame{
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
/* === CBHB_BANDEAUX_SANS_BORDURE_END === */

