* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 80;
  transform: translateY(-180%);
  background: #ffffff;
  color: #1c1917;
  border: 2px solid #f59e0b;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
  border-radius: 0.375rem;
}

#histoire,
#menu,
#infos {
  scroll-margin-top: 88px;
}

.hero-photo {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.1) saturate(1.08);
}

.text-shadow {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.site-nav {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav-top {
  background: rgba(0, 0, 0, 0.2);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand-top,
.links-top,
.control-top {
  color: #ffffff;
}

.brand-scrolled {
  color: #991b1b;
}

.links-scrolled {
  color: #44403c;
}

.control-scrolled {
  color: #1c1917;
}

.mobile-menu-panel {
  animation: slide-down 0.2s ease-out;
}

.menu-star svg {
  fill: currentColor;
}

.status-dot {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.5rem;
  border-radius: 9999px;
  background: #a8a29e;
  vertical-align: middle;
}

.status-dot.is-open {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.status-dot.is-closed {
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.18);
}

@media (max-width: 640px) {
  #histoire,
  #menu,
  #infos {
    scroll-margin-top: 76px;
  }

  .hero-photo {
    object-position: center 30%;
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
