/* Shared footer for Bonheur Ship PHP pages */
.ship-footer.site-footer,
.site-footer.ship-footer {
  margin-top: 42px;
  padding: 26px 0 34px;
  background: linear-gradient(135deg, #58cde8 0%, #39b8d8 60%, #7fd9ee 100%);
  color: #10344a;
  border-top: 1px solid #a7dfeb;
  text-align: center;
}

.ship-footer .container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.ship-footer a {
  color: #0f4f73;
  margin-right: 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ship-footer a:hover {
  opacity: 0.85;
}

.ship-footer .footer-operator {
  margin-top: 8px;
  font-size: 14px;
}

.ship-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  margin-top: 6px;
}

.ship-footer .footer-links a {
  margin-right: 0;
  line-height: 1.3;
}

.ship-footer small {
  font-size: 13px;
}

.ship-footer-emoji-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 0 0 18px;
}

.ship-footer-emoji-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #0f4f73;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(14, 56, 130, 0.1);
}

.ship-footer-emoji-nav a:hover,
.ship-footer-emoji-nav a.is-active {
  opacity: 1;
  background: #ffffff;
}

.ship-footer-emoji {
  font-size: 20px;
  line-height: 1;
}

.ship-footer-emoji-label {
  line-height: 1.3;
}

.ship-bottom-nav {
  display: none;
}

.ship-global-bottom-nav {
  display: none;
}

.ship-bottom-bars {
  display: none;
}

@media (max-width: 960px) {
  .ship-footer-emoji-nav {
    display: none;
  }

  .ship-bottom-bars {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1100;
    margin: 0;
    background: #ffffff;
    border-top: 1px solid #d7e8f7;
    box-shadow: 0 -8px 24px rgba(14, 56, 130, 0.1);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: none;
    touch-action: manipulation;
    pointer-events: auto;
  }

  .ship-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    z-index: auto;
    min-height: 56px;
    margin: 0;
    padding: 4px 4px 2px;
    background: transparent;
    border-top: 0;
    box-shadow: none;
    -webkit-transform: none;
    transform: none;
  }

  .ship-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    margin: 0;
    padding: 4px 4px;
    border-radius: 14px;
    color: #10344a;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .ship-bottom-nav a:hover,
  .ship-bottom-nav a:focus-visible,
  .ship-bottom-nav a.is-active {
    background: #e8f0ff;
    color: #0f4f73;
    opacity: 1;
  }

  .ship-bottom-nav-icon {
    font-size: 22px;
    line-height: 1;
  }

  .ship-global-bottom-nav {
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
    background: #f3f8fd;
    border-top: 1px solid #d7e8f7;
  }

  .ship-global-bottom-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 0 8px calc(4px + env(safe-area-inset-bottom, 0px));
    border: 0;
    background: transparent;
    color: #0f4f73;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .ship-global-bottom-toggle:hover,
  .ship-global-bottom-toggle:focus-visible,
  .ship-bottom-bars.is-open .ship-global-bottom-toggle {
    color: #1a95b0;
  }

  .ship-global-bottom-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-135deg) translateY(1px);
    transition: transform 0.2s ease;
  }

  .ship-bottom-bars.is-open .ship-global-bottom-chevron {
    transform: rotate(45deg) translateY(-2px);
  }

  .ship-global-bottom-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    z-index: 3;
    max-height: min(58vh, 420px);
    overflow-y: auto;
    padding: 10px 12px 12px;
    background: #ffffff;
    border-top: 1px solid #d7e8f7;
    box-shadow: 0 -10px 28px rgba(14, 56, 130, 0.14);
    -webkit-overflow-scrolling: touch;
  }

  .ship-bottom-bars.is-open .ship-global-bottom-panel,
  .ship-global-bottom-panel:not([hidden]) {
    display: block;
  }

  .ship-global-bottom-category + .ship-global-bottom-category {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #d7e8f7;
  }

  .ship-global-bottom-category-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    color: #10344a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
  }

  .ship-global-bottom-links {
    display: grid;
    gap: 4px;
  }

  .ship-global-bottom-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 8px;
    border-radius: 10px;
    color: #0f4f73;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .ship-global-bottom-links a img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .ship-global-bottom-links a span[aria-hidden="true"] {
    flex: 0 0 auto;
    width: 1.4em;
    text-align: center;
  }

  .ship-global-bottom-links a:hover,
  .ship-global-bottom-links a:focus-visible,
  .ship-global-bottom-links a.is-active {
    background: #e8f0ff;
    color: #0f4f73;
    opacity: 1;
  }

  body:has(.ship-bottom-bars) {
    padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px));
  }

  .ship-footer.site-footer,
  .site-footer.ship-footer {
    padding-bottom: 28px;
  }
}

