/* Correctifs mobiles FaunaFlow — 2026-09-12
   Le pictogramme est dessine sur le bouton lui-meme : il ne peut plus
   disparaitre si les trois spans internes sont compresses par le header. */

/* Navigation sans zone morte.
   Par defaut le hamburger est visible. Une seule regle, a partir de 1400 px,
   le remplace par les liens complets. */
.site-header {
  min-height: 80px;
  padding: 10px 3vw;
  background: rgba(255, 253, 249, 0.94);
  border-bottom-color: rgba(56, 89, 132, 0.13);
  box-shadow: 0 8px 26px rgba(68, 74, 80, 0.05);
}

.site-header .menu-button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 0 0 44px !important;
  min-width: 44px !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  color: #263e60 !important;
  background-color: rgba(255, 253, 248, 0.9) !important;
  background-image:
    linear-gradient(#263e60, #263e60),
    linear-gradient(#263e60, #263e60),
    linear-gradient(#263e60, #263e60) !important;
  background-repeat: no-repeat !important;
  background-size: 24px 3px, 24px 3px, 24px 3px !important;
  background-position: center 12px, center 20px, center 28px !important;
  border: 1px solid rgba(38, 62, 96, 0.22) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(38, 62, 96, 0.12) !important;
  overflow: visible !important;
  position: relative;
  z-index: 31;
}

.site-header .menu-button span {
  display: none !important;
}

.site-header nav {
  display: none !important;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 30;
  padding: 25px;
  background: #fffaf3;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.site-header nav.open {
  display: grid !important;
}

.site-header nav a {
  display: flex !important;
  align-items: center;
  min-height: 44px;
  padding: 9px;
  font-size: 15px;
}

/* Le parcours de reservation masque son en-tete dans son style embarque.
   On conserve le formulaire immersif, mais on garde la navigation globale. */
body.booking-page > .site-header {
  display: flex !important;
}

@media (min-width: 1400px) {
  .site-header .menu-button {
    display: none !important;
  }

  .site-header nav,
  .site-header nav.open {
    display: flex !important;
    position: static;
    inset: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header nav a {
    display: inline !important;
    min-height: 0;
    padding: 0;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .site-header {
    column-gap: 8px;
  }

  .site-header .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header .menu-button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 44px !important;
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    color: #263e60 !important;
    background-color: rgba(255, 253, 248, 0.9) !important;
    background-image:
      linear-gradient(currentColor, currentColor),
      linear-gradient(currentColor, currentColor),
      linear-gradient(currentColor, currentColor) !important;
    background-repeat: no-repeat !important;
    background-size: 24px 3px, 24px 3px, 24px 3px !important;
    background-position: center 12px, center 20px, center 28px !important;
    border: 1px solid rgba(38, 62, 96, 0.22) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(38, 62, 96, 0.12) !important;
    overflow: visible !important;
    position: relative;
    z-index: 31;
  }

  .site-header .menu-button span {
    display: none !important;
  }

  .site-header .site-account-control {
    flex-shrink: 0;
  }

  .site-header nav a {
    display: flex !important;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 620px) {
  .site-header,
  body:has(.home-page) .site-header {
    padding-right: 10px;
    padding-left: 10px;
    column-gap: 6px;
  }

  .site-header .brand {
    gap: 6px;
  }

  .site-header .brand img,
  body:has(.home-page) .brand img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  .site-header .brand strong {
    font-size: 15px;
  }

  .site-header .brand small {
    white-space: nowrap;
    letter-spacing: 0.06em;
    font-size: 8px;
  }

  .site-header .site-account-control {
    --site-account-width: clamp(104px, 34vw, 140px);
  }

  .story-visual {
    max-width: calc(100% - 24px);
  }
}

@media (max-width: 420px) {
  .site-header .brand {
    gap: 4px;
  }

  .site-header .brand img,
  body:has(.home-page) .brand img {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .site-header .brand strong {
    font-size: 14px;
  }

  .site-header .brand small {
    letter-spacing: 0.04em;
    font-size: 7px;
  }

  .site-header .site-account-control {
    --site-account-width: 64px;
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 44px !important;
    aspect-ratio: auto;
    background-color: rgba(255, 253, 248, 0.9);
    background-image: none;
    border: 1px solid rgba(38, 62, 96, 0.22);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(38, 62, 96, 0.1);
    overflow: hidden;
  }

  .site-header .site-account-control::before {
    content: "Compte";
    color: #263e60;
    font: 600 11px/1 Arial, Helvetica, sans-serif;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-header .site-account-frame,
  .site-header .site-account-label {
    display: none !important;
  }
}
