/* Header accueil statique : logo à gauche (inset), menu + CTA à droite */

/* Hauteur barre : ~72px desktop, ~56px mobile (override Hostinger 41px/256px) */
header.block-header {
  height: auto !important;
  min-height: 0 !important;
}

header.block-header > .background,
.block-header .background {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
}

.top-blocks--sticky,
.top-blocks {
  height: auto !important;
  min-height: 0 !important;
}

@media (min-width: 921px) {
  .block-header-layout-desktop.hoari-header-layout {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin-inline: auto !important;
    padding: 12px 16px !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    transition: padding 0.35s ease !important;
  }

  .block-header-layout-desktop.hoari-header-layout.hoari-header-layout--compact {
    padding-block: 8px !important;
  }

  .block-header-layout-mobile.hoari-header-layout {
    display: none !important;
  }
}

@media (max-width: 920px) {
  .block-header-layout-desktop.hoari-header-layout {
    display: none !important;
  }
}

.block-header-layout-desktop.hoari-header-layout > .block-header__nav.hoari-header-nav--legacy {
  display: none !important;
}

.block-header-layout-desktop.hoari-header-layout .block-header-logo,
.block-header-layout-desktop.hoari-header-layout .block-header__logo {
  order: 1 !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  margin-left: clamp(24px, 3vw, 40px) !important;
}

.block-header-layout-desktop.hoari-header-layout
  .block-header-logo__image {
  display: block !important;
  width: 120px !important;
  max-height: 48px !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  transition:
    width 0.35s ease,
    max-height 0.35s ease !important;
}

.block-header-layout-desktop.hoari-header-layout.hoari-header-layout--compact
  .block-header-logo__image {
  width: 88px !important;
  max-height: 36px !important;
}

.block-header-layout-desktop.hoari-header-layout
  .block-header-layout-desktop__right-side {
  order: 2 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  min-width: 0 !important;
}

.block-header-layout-desktop.hoari-header-layout .block-header__nav {
  width: auto !important;
  --nav-link-text-color: rgb(252, 249, 242);
  --nav-link-text-color-hover: rgb(252, 249, 242);
}

.block-header-layout-desktop.hoari-header-layout .block-header__nav-links {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: clamp(10px, 1.6vw, 22px) !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.block-header-layout-desktop.hoari-header-layout .block-header-item,
.block-header-layout-desktop.hoari-header-layout .block-header-item__label,
.block-header-layout-desktop.hoari-header-layout .item-content-wrapper {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  min-height: 2.5rem !important;
}

.block-header-layout-desktop.hoari-header-layout
  .block-header__nav
  a.item-content {
  color: rgb(252, 249, 242) !important;
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem) !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.block-header-layout-desktop.hoari-header-layout
  .block-header__nav
  .item-content-wrapper:hover
  .item-content,
.block-header-layout-desktop.hoari-header-layout
  .block-header__nav
  .item-content-wrapper:focus-within
  .item-content,
.block-header-layout-desktop.hoari-header-layout
  .block-header__nav
  .item-content-wrapper--active
  .item-content {
  color: rgb(252, 249, 242) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 7px !important;
}

.block-header-layout-desktop.hoari-header-layout
  a.item-content.hoari-header-nav-cta--jazz {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.5rem !important;
  padding: 0.45rem 1rem !important;
  border: 1px solid rgba(252, 249, 242, 0.45) !important;
  border-radius: 9999px !important;
  background: rgba(252, 249, 242, 0.1) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.block-header-layout-desktop.hoari-header-layout
  a.item-content.hoari-header-nav-cta--jazz:hover,
.block-header-layout-desktop.hoari-header-layout
  a.item-content.hoari-header-nav-cta--jazz:focus-visible {
  background: rgba(252, 249, 242, 0.18) !important;
  text-decoration: none !important;
}

.block-header-layout-desktop.hoari-header-layout
  a.item-content.hoari-header-nav-cta--reserve {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.5rem !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: 9999px !important;
  background: rgb(252, 249, 242) !important;
  color: rgb(29, 65, 157) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.block-header-layout-desktop.hoari-header-layout
  a.item-content.hoari-header-nav-cta--reserve:hover,
.block-header-layout-desktop.hoari-header-layout
  a.item-content.hoari-header-nav-cta--reserve:focus-visible {
  background: #fff !important;
  text-decoration: none !important;
}

/* Mobile */
@media (max-width: 920px) {
  .block-header-layout-mobile.hoari-header-layout {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 8px 16px !important;
    min-height: 56px !important;
    box-sizing: border-box !important;
  }

  header.block-header {
    min-height: 56px !important;
  }
}

.block-header-layout-mobile.hoari-header-layout .block-header-logo,
.block-header-layout-mobile.hoari-header-layout .block-header__logo {
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  width: auto !important;
  height: auto !important;
  margin-left: 16px !important;
}

.block-header-layout-mobile.hoari-header-layout .block-header-logo__image {
  width: 64px !important;
  max-height: 40px !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  transition:
    width 0.35s ease,
    max-height 0.35s ease !important;
}

.top-blocks--sticky .block-header-layout-mobile.hoari-header-layout
  .block-header-logo__image,
.block-header-layout-mobile.hoari-header-layout.hoari-header-layout--compact
  .block-header-logo__image {
  width: 52px !important;
  max-height: 32px !important;
}

.block-header-layout-mobile__dropdown .block-header__nav a.item-content {
  color: rgb(252, 249, 242) !important;
  font-size: 1.0625rem !important;
  text-decoration: none !important;
}

.block-header-layout-mobile__dropdown
  a.item-content.hoari-header-nav-cta--jazz,
.block-header-layout-mobile__dropdown
  a.item-content.hoari-header-nav-cta--reserve {
  display: inline-flex !important;
  width: fit-content !important;
  margin-top: 6px !important;
}

.block-header-layout-mobile__dropdown
  a.item-content.hoari-header-nav-cta--reserve {
  margin-top: 10px !important;
}
