/* CBHB — Pied de page : logo + cinq rubriques sur une seule ligne.
   Correctif cible, sans modification de styles.css ni des couleurs des themes. */
.site > .footer .footer-top,
.footer .footer-top {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(3px, .9vw, 14px) !important;
}
.site > .footer .footer-top > a:is(.footer-brand,.footer-nav),
.footer .footer-top > a:is(.footer-brand,.footer-nav) {
  box-sizing: border-box !important;
  grid-column: auto !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 110px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 6px 3px !important;
  margin: 0 !important;
  border-radius: 14px !important;
}
.site > .footer .footer-top > a.footer-brand img,
.footer .footer-top > a.footer-brand img {
  display: block !important;
  width: min(100%, 116px) !important;
  height: 100px !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
  object-fit: contain !important;
}
.site > .footer .footer-top > a.footer-nav img,
.footer .footer-top > a.footer-nav img {
  display: block !important;
  width: 100% !important;
  height: 92px !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
  object-fit: contain !important;
}
/* Conserver le correctif independant de largeur des matchs de l'accueil. */
body:has([data-cbhb-upcoming]) .white-block.cbhb-upcoming-layout {
  display: block !important;
  grid-template-columns: none !important;
  width: 100%;
  box-sizing: border-box;
}
body:has([data-cbhb-upcoming]) .cbhb-upcoming-layout .cbhb-upcoming-matches {
  width: 100%;
  max-width: none;
  min-width: 0;
}
@media (max-width: 700px) {
  .site > .footer .footer-top,
  .footer .footer-top {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 2px !important;
  }
  .site > .footer .footer-top > a:is(.footer-brand,.footer-nav),
  .footer .footer-top > a:is(.footer-brand,.footer-nav) {
    min-height: 68px !important;
    gap: 2px !important;
    padding: 3px 1px !important;
    border-radius: 7px !important;
  }
  .site > .footer .footer-top > a.footer-brand img,
  .footer .footer-top > a.footer-brand img {
    width: 100% !important;
    height: clamp(36px, 10vw, 58px) !important;
    max-width: 100% !important;
  }
  .site > .footer .footer-top > a.footer-nav img,
  .footer .footer-top > a.footer-nav img {
    width: 100% !important;
    height: clamp(30px, 9vw, 52px) !important;
    max-height: none !important;
  }
  .site > .footer .footer-top > a.footer-nav .footer-nav-label,
  .footer .footer-top > a.footer-nav .footer-nav-label {
    display: block !important;
    min-height: 0 !important;
    max-width: 100% !important;
    font-size: clamp(6px, 1.65vw, 10px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.04em !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    text-align: center !important;
  }
  .site > .footer .footer-top > a.footer-brand span,
  .footer .footer-top > a.footer-brand span {
    display: none !important;
  }
}
