/* FUMA PRO CLUB WEBSITE — Correctif visuel 24/10/2026.
   Grille d'entete explicite : les onglets ne peuvent plus chevaucher la langue.
   Aucun changement de logique, Supabase, authentification ou MIX VS MIX. */
@media (min-width: 761px) {
  body > header {
    display: grid!important;
    grid-template-columns: minmax(160px, 235px) minmax(100px, 1fr) auto!important;
    grid-template-rows: minmax(50px, auto) minmax(37px, auto)!important;
    grid-template-areas: "brand badge tools" "nav nav nav"!important;
    height: auto!important;
    min-height: 105px!important;
    padding: 7px clamp(10px, 1.5vw, 26px) 6px!important;
    gap: 3px 12px!important;
    align-items: center!important;
    overflow: visible!important;
  }
  body > header > .brand {
    grid-area: brand!important;
    justify-self: start!important;
    margin: 0!important;
    min-width: 0!important;
    max-width: 100%!important;
    width: auto!important;
  }
  body > header .fpcProductionBadge {
    grid-area: badge!important;
    display: inline-flex!important;
    justify-self: start!important;
    align-self: center!important;
    min-width: 0!important;
    width: auto!important;
    max-width: 195px!important;
    height: 35px!important;
    padding: 4px 11px!important;
    gap: 7px!important;
    border-radius: 9px!important;
    box-shadow: inset 0 0 0 1px #29db7863, 0 0 9px #12dc6f35!important;
    position: static!important;
  }
  body > header .fpcProductionBadge .fpcProductionCrown {font-size: 20px!important;}
  body > header .fpcProductionBadge small {font-size: 8px!important;line-height: 1.12!important;}
  body > header .fpcProductionBadge strong {font-size: 10px!important;line-height: 1.12!important;}
  body > header > nav#nav {
    grid-area: nav!important;
    order: 0!important;
    display: flex!important;
    position: relative!important;
    justify-content: center!important;
    align-items: center!important;
    flex-direction: row!important;
    flex-wrap: nowrap!important;
    width: 100%!important;
    min-width: 0!important;
    max-width: 100%!important;
    margin: 0!important;
    padding: 6px 6px 3px!important;
    gap: clamp(7px, 1.3vw, 23px)!important;
    border-top: 1px solid rgba(224,187,71,.24)!important;
    overflow-x: auto!important;
    overflow-y: hidden!important;
    scrollbar-width: none;
    white-space: nowrap!important;
    z-index: 1!important;
  }
  body > header > nav#nav::-webkit-scrollbar {display:none;}
  body > header > nav#nav button {
    display: inline-flex!important;
    flex: 0 0 auto!important;
    padding: 5px 4px!important;
    font-size: clamp(10px, .87vw, 13px)!important;
    line-height: 1.1!important;
    white-space: nowrap!important;
  }
  body > header > .headerTools {
    grid-area: tools!important;
    order: 0!important;
    margin: 0!important;
    justify-self: end!important;
    justify-content: flex-end!important;
    display: flex!important;
    flex-wrap: nowrap!important;
    min-width: 0!important;
    width: auto!important;
    max-width: 100%!important;
    gap: clamp(4px, .5vw, 9px)!important;
    position: relative!important;
    z-index: 2!important;
  }
  body > header .headerTools .betaLang {margin:0!important;flex:0 0 auto!important;}
  body > header .headerTools .betaLang select {min-width: 58px!important;}
}
/* Sous 1180px, le badge n'occupe aucune largeur supplementaire. */
@media (min-width:761px) and (max-width:1180px) {
  body > header {grid-template-columns:minmax(165px, 1fr) auto!important;
    grid-template-areas: "brand tools" "nav nav"!important;}
  body > header .fpcProductionBadge {display:none!important;}
  body > header > nav#nav {justify-content:space-evenly!important;gap:7px!important;}
  body > header > nav#nav button {font-size:10px!important;padding:5px 3px!important;}
}
/* Sur telephone, on garde le menu deployant existant et on retire le badge surdimensionne. */
@media (max-width:760px) {
  body > header .fpcProductionBadge {display:none!important;}
  body > header {overflow:visible!important;}
  body > header .headerTools {max-width:100%!important;flex-wrap:wrap!important;}
}
/* Accueil : le nouveau visuel conserve sa composition mais le maillot principal est plus clair. */
.homeDashboard.homeV2 .homeHeroPanel {
 background-image:linear-gradient(180deg,#00170b06,#00100824 40%,#000000be),url('assets/home_hero_clear_20261024.webp')!important;
 background-position:center 48%!important;
}
.homeDashboard.homeV2 .homeActionCard:nth-child(3) {
 background-image:linear-gradient(90deg,#031208c8,#075b332e),url('assets/home_hero_clear_20261024.webp')!important;
}
/* Lisibilite du bloc d'actualites sans lui faire masquer le stade. */
.homeDashboard.homeV2 .homeHeroContextCard,
.homeDashboard.homeV2 .homeSpotlightCard {
 background:linear-gradient(145deg,#031708dc,#06140cce)!important;
 box-shadow:0 5px 12px #0008!important;
}

/* V6 — Recadrage vertical de l'accueil après passage de la navigation sur deux lignes.
   La hauteur du tableau de bord tient désormais compte de l'en-tête réel.
   Le bandeau conserve son personnage central et sa composition sans étirer l'image.
   Aucune logique applicative, de club ou de compte n'est modifiée. */
@media (min-width: 1181px) {
  .homeDashboard.homeV2 .homeActions,
  .homeDashboard.homeV2 .homeCenterV2,
  .homeDashboard.homeV2 .homeRightV2 {
    height: clamp(625px, calc(100vh - 155px), 810px)!important;
    height: clamp(625px, calc(100dvh - 155px), 810px)!important;
    min-height: 0!important;
    max-height: 810px!important;
  }
  .homeDashboard.homeV2 .homeCenterV2 {
    grid-template-rows: minmax(270px,1.35fr) minmax(130px,.65fr) minmax(175px,1fr)!important;
  }
  .homeDashboard.homeV2 .homeHeroPanel {
    background-size: cover!important;
    background-position: center 45%!important;
    min-height: 0!important;
  }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .homeDashboard.homeV2 .homeHeroPanel {
    min-height: clamp(285px, 31vw, 350px)!important;
    height: auto!important;
    background-size: cover!important;
    background-position: center 46%!important;
  }
}
@media (max-width: 760px) {
  .homeDashboard.homeV2 .homeHeroPanel {
    min-height: 340px!important;
    height: auto!important;
    background-size: cover!important;
    background-position: center 46%!important;
  }
}


/* V6 — VRAI rapport vertical du grand bandeau d'accueil (24 octobre 2026).
   Le visuel source est 2172x724 (ratio 3:1). L'ancienne grille forcait
   une hauteur independante de sa largeur et coupait les blocs inferieurs.
   Les colonnes prennent maintenant la hauteur necessaire au contenu. */
@media (min-width: 1181px) {
  .homeDashboard.homeV2 .homeGridV2 {
    align-items: stretch!important;
  }
  .homeDashboard.homeV2 .homeActions,
  .homeDashboard.homeV2 .homeCenterV2,
  .homeDashboard.homeV2 .homeRightV2 {
    height: auto!important;
    min-height: 0!important;
    max-height: none!important;
  }
  .homeDashboard.homeV2 .homeCenterV2 {
    grid-template-rows: max-content minmax(140px, .72fr) minmax(195px, 1fr)!important;
    align-content: stretch!important;
  }
  .homeDashboard.homeV2 .homeHeroPanel {
    box-sizing: border-box!important;
    width: 100%!important;
    height: auto!important;
    min-height: 0!important;
    max-height: none!important;
    aspect-ratio: 3 / 1!important;
    align-self: start!important;
    background-size: cover!important;
    background-position: center center!important;
  }
  .homeDashboard.homeV2 .homeActions {
    grid-template-rows: repeat(4,minmax(135px, 1fr))!important;
  }
  .homeDashboard.homeV2 .homeRightV2 {
    grid-template-rows: minmax(105px, .45fr) minmax(190px, 1.2fr) minmax(145px, .85fr) minmax(105px, auto)!important;
  }
  .homeDashboard.homeV2 .homeBottomGrid {
    min-height: 195px!important;
    height: auto!important;
  }
  .homeDashboard.homeV2 .homeUpcomingPanel {min-height: 140px!important;height:auto!important;}
  .homeDashboard.homeV2 .homeGazettePanel,
  .homeDashboard.homeV2 .homeLivePanel {height:auto!important;min-height:195px!important;}
}
/* Sur les petites largeurs, ne pas forcer un 3:1 trop plat et illisible. */
@media (min-width: 761px) and (max-width: 1180px) {
  .homeDashboard.homeV2 .homeHeroPanel {
    aspect-ratio: 2.45 / 1!important;
    height:auto!important;
    min-height:0!important;
    background-position:center center!important;
  }
}
@media (max-width: 760px) {
  .homeDashboard.homeV2 .homeHeroPanel {
    aspect-ratio:auto!important;
    height:auto!important;
    min-height:clamp(260px,65vw,350px)!important;
    background-position:center center!important;
  }
}
