/* CBHB V4.6 - UNIQUE PUBLIC HERO MASK. Do not duplicate these rules elsewhere. */
.site > header.hero{position:relative!important;isolation:isolate;overflow:hidden!important;box-sizing:border-box}
.site > header.hero .theme-secret-trigger{display:none!important}
.site > header.hero .hero-actions{position:absolute!important;inset:18px 20px auto auto!important;width:146px!important;height:auto!important;transform:none!important;display:flex!important;flex-flow:column nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;z-index:90!important;pointer-events:auto!important}
.site > header.hero .hero-actions .member-entry-link{position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;width:146px!important;min-width:146px!important;height:46px!important;min-height:46px!important;padding:0 10px!important;border:0!important;border-radius:999px!important;box-sizing:border-box!important;background:var(--cbhb-action-bg,#267d51)!important;color:var(--cbhb-action-text,#fff)!important;-webkit-text-fill-color:var(--cbhb-action-text,#fff)!important;font-size:15px!important;font-weight:800!important;text-decoration:none!important;white-space:nowrap!important;line-height:1!important;box-shadow:none!important}
.site > header.hero .hero-actions .member-entry-link:hover{background:var(--cbhb-action-hover,#216940)!important}
.site > header.hero .hero-actions .burger{position:static!important;display:grid!important;place-items:center!important;width:58px!important;min-width:58px!important;height:58px!important;min-height:58px!important;flex:0 0 58px!important;margin:0!important;padding:0!important;box-sizing:border-box!important;border:0!important;border-radius:50%!important;background:var(--cbhb-menu-bg2,var(--cbhb-action-bg,#267d51))!important;color:var(--cbhb-action-text,#fff)!important;font-size:25px!important;box-shadow:none!important;cursor:pointer!important}
.site > header.hero .hero-copy{z-index:5!important;pointer-events:none!important}
.site > header.hero .hero-visual{position:absolute!important;inset:0 10% 0 44%!important;width:auto!important;height:100%!important;display:flex!important;align-items:flex-end!important;justify-content:flex-end!important;overflow:visible!important;pointer-events:none!important;transform:none!important}
.site > header.hero .hero-visual img{display:block!important;position:static!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:right bottom!important;transform:none!important}


html[data-theme="octobre-rose"]{--cbhb-action-bg:#ed1682;--cbhb-action-hover:#d30b70;--cbhb-menu-bg2:#fa429e;--cbhb-action-text:#fff}
@media(max-width:760px){
 .site > header.hero .hero-actions{inset:12px 12px auto auto!important;width:94px!important;gap:9px!important}
 .site > header.hero .hero-actions .member-entry-link{width:94px!important;min-width:94px!important;height:36px!important;min-height:36px!important;font-size:12px!important;padding:0 4px!important}
 .site > header.hero .hero-actions .burger{width:45px!important;min-width:45px!important;height:45px!important;min-height:45px!important;flex-basis:45px!important;font-size:22px!important}
 .site > header.hero .hero-visual{inset:132px 2% 0 2%!important;width:auto!important;height:auto!important}
 
 
}
#cbhb-role-footer{width:min(96%,1840px);margin:34px auto 24px;max-width:1840px;box-sizing:border-box;clear:both}
#cbhb-role-footer .footer{width:100%;max-width:100%;box-sizing:border-box}

/* V4.7 — unique header component corrections; preserves approved burger positioning. */
html[data-theme="octobre-rose"] .site > header.hero .hero-actions .member-entry-link,
html[data-theme="octobre-rose"] .site > header.hero .hero-actions a.member-entry-link,
html[data-theme="octobre-rose"] .site > header.hero .hero-actions .login,
html[data-theme="octobre-rose"] .site > header.hero .hero-actions a.login {
  background-color:#ed1682!important;background-image:none!important;color:#fff!important;
  -webkit-text-fill-color:#fff!important;border-color:#ed1682!important;
}
html[data-theme="octobre-rose"] .site > header.hero .hero-actions .member-entry-link:hover,
html[data-theme="octobre-rose"] .site > header.hero .hero-actions .member-entry-link:focus-visible{
  background-color:#d30b70!important;background-image:none!important;
}


/* CBHB MASQUE UNIQUE v5.2 — référence exclusive du visuel d'accueil.
   src: /assets/accueil-collectif-bandeau-cbhb.png, format 1103×717, transparent.
   Les autres héros, la navigation, les couleurs saisonnières et le footer ne changent pas. */
.site > header.hero.hero-home {
  height:clamp(475px,34vw,540px)!important;
  min-height:475px!important;
  overflow:hidden!important;
}
.site > header.hero.hero-home .hero-visual.home-hero-official {
  position:absolute!important;
  inset:0 1% 0 34%!important;
  width:auto!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  display:flex!important;
  justify-content:flex-end!important;
  align-items:flex-end!important;
  overflow:visible!important;
  z-index:3!important;
  transform:none!important;
  pointer-events:none!important;
}
.site > header.hero.hero-home .hero-visual.home-hero-official > img {
  display:block!important;
  position:static!important;
  flex:0 0 auto!important;
  height:100%!important;
  width:auto!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:right bottom!important;
  transform:none!important;
}
/* Moitié de fenêtre / tablette : groupe plus visible sans masquer les commandes. */
@media (min-width:761px) and (max-width:1180px) {
 .site > header.hero.hero-home{height:460px!important;min-height:460px!important}
 .site > header.hero.hero-home .hero-visual.home-hero-official{inset:0 0 0 32%!important}
}
/* Mobile : 22% plus large que le viewport, image posée sur le bord inférieur.
   Le débordement horizontal volontaire est centré, jamais étiré verticalement. */
@media(max-width:760px){
 .site > header.hero.hero-home{height:420px!important;min-height:420px!important}
 .site > header.hero.hero-home .hero-visual.home-hero-official{
   inset:auto 0 0 0!important;
   width:100%!important;height:auto!important;
   max-width:none!important;max-height:none!important;
   justify-content:center!important;align-items:flex-end!important;
 }
 .site > header.hero.hero-home .hero-visual.home-hero-official > img{
   width:122%!important;height:auto!important;
   max-width:none!important;max-height:none!important;
   flex:0 0 122%!important;
   object-fit:contain!important;object-position:center bottom!important;
 }
}

/* CBHB V5.3 — member header uses exactly the public mask and its theme tokens.
   The parent contains only an accessible drawer: no independent color palette. */
html[data-role] .cbhb-member-menu-backdrop:not([hidden]){
 position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.54);display:block;
}
html[data-role] .cbhb-member-menu-drawer{
 position:fixed;z-index:1001;top:0;right:0;bottom:0;
 width:min(390px,90vw);padding:78px 26px 28px;
 transform:translateX(103%);transition:transform .24s ease;
 display:flex;flex-direction:column;overflow-y:auto;
 background:linear-gradient(160deg,var(--cbhb-dark,#032416),var(--cbhb-bg1,#155c3c));
 border-left:3px solid var(--cbhb-accent,#70f000);box-shadow:-20px 0 50px #0008;
 visibility:hidden;
}
html[data-role] .cbhb-member-menu-drawer.open{transform:translateX(0);visibility:visible}
html[data-role] .cbhb-member-menu-close{
 position:absolute;right:17px;top:14px;width:48px;height:48px;
 background:transparent!important;border:0!important;
 color:var(--cbhb-action-text,#fff)!important;font-size:36px;line-height:1;cursor:pointer;
}
html[data-role] .cbhb-member-menu-links{display:flex;flex-direction:column;gap:3px}
html[data-role] .cbhb-member-menu-links a{
 display:block;padding:12px;color:#fff!important;font-size:15px;font-weight:850;
 text-decoration:none;text-transform:uppercase;border-radius:10px;
}
html[data-role] .cbhb-member-menu-links a:nth-child(even){color:var(--cbhb-accent,#70f000)!important}
html[data-role] .cbhb-member-menu-links a:hover,
html[data-role] .cbhb-member-menu-links a:focus-visible{
 background:color-mix(in srgb,var(--cbhb-action-bg,#267d51) 25%,transparent);
 outline:2px solid var(--cbhb-accent,#70f000);outline-offset:1px;
}
html[data-role] body.cbhb-member-nav-open{overflow:hidden!important}
@media(prefers-reduced-motion:reduce){html[data-role] .cbhb-member-menu-drawer{transition:none}}

/* CBHB_VISUAL_20261015_SYNC_THEME_V1: carte réellement bord à bord, sans blanc ajouté au bloc. */
.site .location-module.standalone{padding:0!important;}
.site .location-module.standalone .location-card-map-only{display:block!important;width:100%!important;box-sizing:border-box!important;margin:0!important;padding:0!important;overflow:hidden!important;}
.site .location-module.standalone .location-card-map-only .map-embed{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;height:clamp(520px,68vh,760px)!important;min-height:520px!important;margin:0!important;padding:0!important;border-radius:0!important;overflow:hidden!important;}
.site .location-module.standalone .location-card-map-only .map-embed iframe{display:block!important;box-sizing:border-box!important;width:100%!important;height:100%!important;min-height:520px!important;border:0!important;margin:0!important;padding:0!important;}
@media(max-width:700px){.site .location-module.standalone .location-card-map-only .map-embed{height:480px!important;min-height:480px!important;}.site .location-module.standalone .location-card-map-only .map-embed iframe{min-height:480px!important;}}
/* Empêche un bref flash du logo normal avant l'application du thème saisonnier. */
html[data-theme]:not([data-theme="normal"]):not([data-theme="deuil"]) .site img.club-logo[src$="logo.webp"],html[data-theme]:not([data-theme="normal"]):not([data-theme="deuil"]) .site .footer-brand img[src$="logo.webp"]{visibility:hidden!important;}


/* CBHB_LOGO_HOME_CLICK_FIX_V1 */
/* Conserver exactement la position originale du logo */
.cbhb-logo-home {
  display: contents;
}
.cbhb-logo-home .club-logo {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* CBHB_PUBLIC_LOGIN_HIDDEN_20261105 */
/* Ne pas masquer les liens de connexion fonctionnels hors du bandeau public. */
.site > header.hero .hero-actions > a.member-entry-link,
.site > header.hero-home .hero-actions > a.member-entry-link { display:none !important; }
