/* Shared navigation: top on desktop, within thumb reach on smaller screens. */
body.has-site-navigation {
  --site-nav-space: calc(72px + env(safe-area-inset-bottom, 0px));
  --site-scroll-offset: 16px;
  padding-top: 0;
  padding-bottom: var(--site-nav-space);
}
.site-header-home {
  --site-brand-line: rgb(4 54 107 / 16%);
}
.site-header-home .page-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 32px;
  background: var(--blanc);
  border-radius: 0;
  box-shadow: none;
}
.site-header-home:not(.page-home) .page-container {
  padding-top: 28px;
}
.site-header-home .logo-reveal {
  width: 112px;
  height: 112px;
  margin: 0 auto 28px;
}
.site-header-home .logo-reveal-link { width: 100%; height: 100%; }
.site-header-home .logo-heart { display: block; top: 42.7%; width: clamp(10px, 10%, 16px); }
.site-header-home .logo-heart-face-back { left: 54.5%; top: 29.1%; }
.site-header-home .logo-bloom-ring {
  width: 60%;
  height: 60%;
  margin-left: -30%;
  margin-top: -30%;
  border-width: 3px;
}
.site-header-home .logo-reveal-inner { box-shadow: none; }
.site-header-home .logo-reveal-link:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 4px;
}
.has-site-navigation :is(section[id], h1[id], main[id]) { scroll-margin-top: var(--site-scroll-offset); }
.has-site-navigation :is(input, select, textarea, button, a) { scroll-margin-bottom: calc(var(--site-nav-space) + 16px); }
.site-header {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--bleu);
  color: var(--blanc);
  box-shadow: none;
  text-align: left;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
.site-brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--blanc);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.7px;
  text-decoration: none;
  white-space: nowrap;
}
.site-brand span { color: var(--jaune); }
.site-nav {
  position: fixed;
  z-index: 1100;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: var(--blanc);
  border-top: 1px solid rgb(4 54 107 / 16%);
  box-shadow: 0 -4px 20px rgb(4 54 107 / 7%);
}
.site-nav-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.site-nav-list > li { min-width: 0; margin: 0; padding: 0; }
.site-nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 55px;
  padding: 4px 8px;
  border-radius: 12px;
  color: var(--bleu);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.site-nav-link[aria-current="page"] { background: rgb(4 54 107 / 6%); }
.site-nav-link[aria-current="page"] .site-nav-label-short { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.site-nav-link--booking,
.site-nav-link--booking[aria-current="page"] { background: var(--jaune); }
.site-nav-icon { flex: 0 0 auto; width: 22px; height: 22px; }
.site-nav-label-full { display: none; }
.site-nav-link[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.site-header .site-nav-link:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; border-radius: 12px; }
.site-header :is(.site-brand, .lang-switcher-link):focus-visible { outline: 3px solid var(--jaune); outline-offset: 1px; border-radius: 8px; }
.site-header .lang-switcher { display: flex; flex: 0 0 auto; gap: 4px; }
.site-header .lang-switcher-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
}
.site-header .lang-switcher-active { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 25%); }
.site-header .lang-flag { display: block; width: 24px; height: 18px; object-fit: contain; }

@media (hover: hover) {
  .site-nav-link:not([aria-disabled="true"]):hover { background: rgb(4 54 107 / 10%); }
  .site-nav-link--booking:not([aria-disabled="true"]):hover { background: var(--jaune); box-shadow: inset 0 0 0 2px var(--bleu); }
  .site-header .lang-switcher-link:hover { background: rgb(255 255 255 / 15%); }
}
@media (min-width: 600px) {
  .site-header-home .page-container {
    width: calc(100% - 32px);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
  }
}
@media (min-width: 700px) {
  .site-header-home:not(.page-home) .page-container { padding-top: 36px; }
  .site-header-home .logo-reveal { width: 124px; height: 124px; margin-bottom: 36px; }
}
@media (min-width: 960px) {
  body.has-site-navigation { --site-nav-space: 0px; --site-scroll-offset: 100px; padding-top: 84px; padding-bottom: 0; }
  .site-header-home .page-container { width: calc(100% - 48px); }
  .site-header { position: fixed; z-index: 999; top: 0; right: 0; left: 0; box-shadow: 0 3px 16px rgb(4 54 107 / 7%); }
  .site-header-inner { height: 84px; padding: 0 40px; gap: 28px; }
  .site-brand { margin-right: auto; }
  .site-header-home .site-brand { visibility: hidden; width: 192px; flex: 0 0 192px; }
  .site-header-home:not(.page-home) .page-container { padding-top: 164px; }
  .site-header-home .logo-reveal {
    --logo-coin-size: 192px;
    position: absolute;
    z-index: 1000;
    top: 28px;
    left: max(40px, calc((100vw - 1280px) / 2 + 40px));
    width: 192px;
    height: 192px;
    margin: 0;
  }
  /* The surround stays still while the two faces rotate inside it. */
  .site-header-home .logo-reveal::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid var(--site-brand-line);
    border-radius: 50%;
    background: var(--blanc);
    box-shadow: 0 12px 28px rgb(4 54 107 / 12%);
    pointer-events: none;
  }
  .site-header-home .logo-heart { width: 10%; }
  .site-header-home .logo-bloom-ring { border-width: 4px; }
  .site-header-home .logo-reveal-link:focus-visible { outline-color: var(--jaune); }
  .site-nav { position: static; padding: 0; border: 0; background: transparent; box-shadow: none; margin-left: auto; }
  .site-nav-list { display: flex; align-items: center; gap: 24px; max-width: none; }
  .site-nav-link { flex-direction: row; min-height: 48px; padding: 0 4px; border-radius: 10px; color: var(--blanc); font-size: 16px; line-height: 22px; }
  .site-nav-link--booking { padding: 0 20px; color: var(--bleu); }
  .site-nav-icon, .site-nav-label-short { display: none; }
  .site-nav-label-full { display: inline; }
  .site-nav-link[aria-current="page"] { background: transparent; }
  .site-nav-link[aria-current="page"]::after { content: ''; position: absolute; right: 4px; bottom: 4px; left: 4px; height: 2px; border-radius: 2px; background: var(--jaune); }
  .site-nav-link--booking[aria-current="page"] { background: var(--jaune); box-shadow: inset 0 0 0 2px var(--bleu), 0 0 0 1px var(--jaune); }
  .site-nav-link--booking[aria-current="page"]::after { display: none; }
  .site-header .site-nav-link:focus-visible { outline-color: var(--jaune); border-radius: 10px; outline-offset: 4px; }
  .site-header .lang-switcher { padding-left: 16px; border-left: 1px solid rgb(255 255 255 / 22%); }
}
@media (min-width: 960px) and (hover: hover) {
  .site-nav-link:not([aria-disabled="true"]):hover { background: transparent; color: var(--jaune); }
  .site-nav-link--booking:not([aria-disabled="true"]):hover { background: var(--jaune); color: var(--bleu); box-shadow: inset 0 0 0 2px var(--bleu), 0 0 0 1px var(--jaune); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header-home .logo-reveal-inner { transition: transform 0.85s cubic-bezier(0.34, 1.35, 0.5, 1) !important; }
  .site-header-home .logo-reveal.logo-reveal-bloom .logo-bloom-ring { animation: logo-bloom-scale 0.5s ease forwards !important; }
  .site-header-home .logo-heart { animation: logo-heart-beat 3s ease-in-out infinite !important; }
}
