/* Auclair Microbrasserie — charte (asset 11) */
:root {
  --or: #c69c4d;
  --creme: #f2ede4;
  --charbon: #1a1a1a;
  --foret: #29361f;
  --terre: #5a3e2b;
  --header-h: 3.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  background: var(--charbon);
  color: var(--creme);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--or);
  color: var(--charbon);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.35rem 1rem 0.35rem 1.25rem;
  background: rgba(26, 26, 26, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(198, 156, 77, 0.2);
  overflow-x: auto;
  overflow-y: hidden;
}

.brand {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--creme);
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: min-content;
  padding-right: 0.25rem;
}

.brand:hover,
.brand:focus-visible {
  color: var(--or);
}

.nav-desktop {
  display: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-desktop a {
  color: rgba(242, 237, 228, 0.85);
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--or);
}

.nav-mobile {
  position: relative;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or);
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(198, 156, 77, 0.45);
  border-radius: 2px;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile[open] summary {
  border-color: var(--or);
}

.nav-mobile ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 14rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: rgba(26, 26, 26, 0.97);
  border: 1px solid rgba(198, 156, 77, 0.25);
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.nav-mobile a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--creme);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile li:last-child a {
  border-bottom: 0;
}

.nav-mobile a:hover,
.nav-mobile a:focus-visible {
  background: rgba(198, 156, 77, 0.12);
  color: var(--or);
}

/* Wide enough for 11 links + AUCLAIR (Cinzel + letter-spacing); below this use Menu */
@media (min-width: 1320px) {
  .nav-mobile {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }
}

.section-nav {
  position: fixed;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.35rem;
}

.section-nav a {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(198, 156, 77, 0.55);
  background: transparent;
  text-indent: -9999px;
  overflow: hidden;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  border-color: var(--or);
  transform: scale(1.15);
}

.section-nav a.is-active {
  background: var(--or);
  border-color: var(--or);
}

@media (max-width: 600px) {
  .section-nav {
    display: none;
  }
}

main {
  padding-top: var(--header-h);
}

.panel {
  scroll-margin-top: calc(var(--header-h) + 0.25rem);
}

.panel img {
  display: block;
  width: 100%;
  height: auto;
}

.panel figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.panel figure {
  position: relative;
  margin: 0;
}

html.site-locked,
html.site-locked body {
  overflow: hidden;
  height: 100%;
}

.site-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
}

.site-gate__panel {
  width: 100%;
  max-width: 22rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(198, 156, 77, 0.35);
  border-radius: 4px;
  background: var(--charbon);
  text-align: center;
}

.site-gate__brand {
  margin: 0 0 0.75rem;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--or);
}

.site-gate h2 {
  margin: 0 0 0.35rem;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--creme);
}

.site-gate__hint {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  color: rgba(242, 237, 228, 0.7);
}

.site-gate__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.site-gate__form label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.75);
}

.site-gate__form input {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(198, 156, 77, 0.4);
  border-radius: 2px;
  background: #0d0d0d;
  color: var(--creme);
  font-family: inherit;
  font-size: 0.95rem;
}

.site-gate__form input:focus {
  outline: 2px solid var(--or);
  outline-offset: 1px;
}

.site-gate__form button {
  margin-top: 0.35rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 2px;
  background: var(--or);
  color: var(--charbon);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-gate__form button:hover {
  filter: brightness(1.08);
}

.site-gate__error {
  margin: 0;
  font-size: 0.78rem;
  color: #e8a87c;
}
