:root {
  --deep: #140c08;
  --bg: #1f140e;
  --bg2: #2a1b13;
  --brown: #3a2618;
  --gold: #e8c47e;
  --gold2: #d9b46c;
  --line: #b8914f;
  --text: #f2e4cc;
  --muted: #d8c6a8;
  --dim: #bfae93;
  --hair: rgba(217, 180, 108, .2);
  --serif: 'Cinzel', Georgia, serif;
  --sans: 'Lato', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
a:hover { color: #f6dca4; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page {
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}

/* ---------- Accueil ---------- */
.home {
  background: radial-gradient(120% 60% at 50% 0%, #3a2416 0%, var(--bg) 60%);
  padding: 48px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.logo {
  width: 104px; height: 104px; border-radius: 50%;
  border: 2px solid var(--gold2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 34px; color: var(--gold2);
}
.logo-img { height: 200px; width: auto; display: block; filter: drop-shadow(0 0 18px rgba(232, 196, 126, .25)); }
.brand { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.brand h1 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 36px; letter-spacing: .06em; color: var(--gold); }
.brand .kicker { font-family: var(--serif); font-size: 14px; letter-spacing: .3em; color: var(--gold2); }
.brand .addr { margin-top: 10px; font-size: 15px; color: var(--muted); }
.ctas { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.cta {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; font-family: var(--serif); font-size: 17px; letter-spacing: .06em;
  color: var(--text); background: rgba(217, 180, 108, .06);
  transition: background .2s, border-color .2s;
}
.cta:hover { color: var(--text); background: rgba(217, 180, 108, .14); border-color: var(--gold); }
.block { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.block h2 { margin: 0; text-align: center; font-family: var(--serif); font-size: 16px; letter-spacing: .14em; color: var(--gold2); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { padding: 7px 12px; border: 1px solid rgba(217, 180, 108, .4); border-radius: 999px; font-size: 13px; }
.socials { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.social {
  min-height: 72px; border-radius: 10px; background: rgba(217, 180, 108, .08);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: var(--text); font-size: 14px;
}
.social:hover { color: var(--text); background: rgba(217, 180, 108, .16); }
.map { width: 100%; height: 220px; border: 1px solid rgba(217, 180, 108, .35); border-radius: 12px; display: block; background: #e9e4da; }
.address { display: flex; gap: 10px; font-size: 15px; }
.address address { font-style: normal; line-height: 1.5; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.btn {
  min-height: 48px; border-radius: 10px; padding: 0 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-size: 15px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text);
}
.btn:hover { color: var(--text); background: rgba(217, 180, 108, .1); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }
.btn.gold:hover { background: #f0d293; color: var(--bg); }
.btn:disabled { opacity: .55; cursor: default; }
.legal { font-size: 12px; color: var(--dim); text-align: center; margin: 0; }

/* Encadré de l'Espace gérant */
.admin-zone {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 20px 24px; border-radius: 16px; text-align: center;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(232, 196, 126, .18), transparent 70%),
    linear-gradient(180deg, #2c1c12, #1a110b);
  border: 1px solid rgba(232, 196, 126, .55);
  box-shadow: inset 0 0 0 4px rgba(31, 20, 14, .9), inset 0 0 0 5px rgba(232, 196, 126, .25), 0 12px 30px rgba(0, 0, 0, .35);
}
.admin-zone h2 { margin: 0; font-family: var(--serif); font-size: 15px; letter-spacing: .16em; color: var(--gold2); }
.admin-zone h2::before, .admin-zone h2::after { content: "◆"; font-size: 8px; vertical-align: middle; margin: 0 10px; color: var(--line); }
.admin-zone p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }

/* Bouton Espace gérant : reflet doré qui passe + cadenas qui oscille */
.admin-link {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold);
  background: rgba(217, 180, 108, .08);
  font-family: var(--serif); font-size: 15px; letter-spacing: .08em; text-decoration: none;
  animation: admin-glow 2.8s ease-in-out infinite;
}
.admin-link::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(246, 220, 164, .45), transparent);
  transform: skewX(-20deg);
  animation: admin-shine 2.8s ease-in-out infinite;
}
.admin-link svg { animation: admin-lock 2.8s ease-in-out infinite; transform-origin: 50% 30%; }
.admin-link:hover { color: var(--bg); background: var(--gold); }
@keyframes admin-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes admin-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 196, 126, 0); }
  50% { box-shadow: 0 0 18px 2px rgba(232, 196, 126, .35); }
}
@keyframes admin-lock {
  0%, 70%, 100% { transform: rotate(0); }
  76% { transform: rotate(-14deg); }
  82% { transform: rotate(12deg); }
  88% { transform: rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .admin-link, .admin-link::after, .admin-link svg { animation: none; }
}

/* ---------- Cartes ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg); padding: 18px 20px 0;
  border-bottom: 1px solid var(--hair);
}
.top .home-link {
  display: block; text-align: center; text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .08em; color: var(--gold);
}
.tabs { display: flex; margin-top: 10px; }
.tab {
  flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-family: var(--serif); font-size: 14px; letter-spacing: .06em;
  color: var(--muted); border-bottom: 2px solid transparent;
}
.tab.on { color: var(--gold); border-bottom-color: var(--gold); }
.menu { padding: 4px 20px 40px; }
.sec {
  margin: 30px 0 4px; display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .14em; color: var(--gold2);
  scroll-margin-top: 110px;
}
.sec::after { content: ""; flex: 1; height: 1px; background: rgba(217, 180, 108, .35); }
.sec .tag { font-family: var(--sans); font-size: 13px; letter-spacing: 0; font-weight: 400; padding: 3px 10px; border-radius: 999px; background: rgba(217, 180, 108, .14); color: var(--gold); white-space: nowrap; }
.sub { margin: 16px 0 2px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.row { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 16px; }
.lead { flex: 1; min-width: 16px; border-bottom: 1px dotted rgba(217, 180, 108, .45); transform: translateY(-4px); }
.price { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.unit { font-size: 12px; font-weight: 400; color: var(--dim); }
.loading, .error { padding: 40px 0; text-align: center; color: var(--dim); }

/* Cocktails */
.item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(217, 180, 108, .12); }
.ph {
  flex: none; width: 88px; height: 88px; padding: 0; border-radius: 10px; overflow: hidden;
  background: var(--brown); border: 1px solid rgba(217, 180, 108, .25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--dim); font-size: 11px; cursor: zoom-in; position: relative;
}
.ph:hover { border-color: var(--gold); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zoom { position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(20, 12, 8, .75); display: flex; align-items: center; justify-content: center; }
.txt { flex: 1; min-width: 0; }
.txt .line1 { display: flex; align-items: baseline; gap: 8px; }
.name { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.classic { font-size: 14px; font-style: italic; color: var(--gold); margin-top: 2px; }
.desc { font-size: 13px; color: var(--dim); margin-top: 4px; line-height: 1.45; }

.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(12, 7, 5, .96);
  display: flex; flex-direction: column;
}
.lightbox[hidden] { display: none; }
.lb-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; font-size: 13px; color: var(--dim); }
.lb-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 8px 16px; }
.lb-photo {
  width: 100%; max-width: 420px; aspect-ratio: 3 / 4; max-height: 100%;
  border-radius: 14px; overflow: hidden; background: var(--brown); border: 1px solid rgba(217, 180, 108, .3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--dim); font-size: 14px;
}
.lb-photo img { width: 100%; height: 100%; object-fit: cover; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(232, 196, 126, .5); background: rgba(31, 20, 14, .85);
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: var(--brown); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-info { padding: 14px 24px 28px; text-align: center; }
.lb-name { font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--gold); }
.lb-sub { margin-top: 4px; font-size: 15px; font-style: italic; color: var(--muted); }
.lb-desc { margin-top: 6px; font-size: 13px; color: var(--dim); line-height: 1.45; }

/* ---------- Espace gérant ---------- */
.admin { padding: 20px 20px 120px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-head .t1 { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--gold); }
.admin-head .t2 { font-size: 13px; color: var(--dim); }
.admin .tabs .tab { font-family: var(--sans); font-size: 15px; border-bottom-color: var(--hair); background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.admin .tabs .tab.on { border-bottom-color: var(--gold); font-weight: 700; color: var(--gold); }
.note { margin-top: 18px; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; background: rgba(217, 180, 108, .1); color: #e8d3a8; }
.note.ok { background: rgba(110, 170, 110, .14); color: #bfe0b8; }
.note.err { background: rgba(200, 90, 80, .16); color: #f2c3bb; }
.cats { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.cat { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(217, 180, 108, .4); background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.cat.on { background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 700; }
.admin h2 { margin: 26px 0 4px; font-family: var(--serif); font-size: 17px; letter-spacing: .1em; color: var(--gold2); }
.grid-head, .line { display: grid; grid-template-columns: minmax(0, 1fr) 84px 44px 44px; gap: 8px; align-items: center; }
.grid-head { font-size: 12px; color: var(--dim); padding-bottom: 6px; }
.line { padding: 8px 0; border-bottom: 1px solid rgba(217, 180, 108, .12); }
.line .sub-unit { font-size: 12px; color: var(--dim); padding: 0 4px; }
.inp {
  width: 100%; height: 44px; border-radius: 8px; padding: 0 10px;
  border: 1px solid rgba(217, 180, 108, .45); background: var(--bg2); color: var(--text); font-size: 15px;
}
.inp.num { text-align: right; }
.inp.ghost { background: transparent; border-color: transparent; padding: 0 4px; }
.inp.ghost:hover, .inp.ghost:focus { border-color: rgba(217, 180, 108, .45); background: var(--bg2); }
textarea.inp { height: auto; min-height: 70px; padding: 10px; resize: vertical; }
.check { width: 22px; height: 22px; justify-self: center; accent-color: var(--gold); }
.icon-btn { width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(217, 180, 108, .3); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--dim); }
.icon-btn:hover { color: #f2c3bb; border-color: #c86a5e; }
.add { margin-top: 18px; width: 100%; min-height: 48px; border-radius: 10px; border: 1px dashed rgba(217, 180, 108, .5); background: transparent; color: var(--gold); font-size: 15px; cursor: pointer; }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; }
.savebar > div { max-width: 560px; margin: 0 auto; padding: 16px 20px 24px; background: #170f0a; border-top: 1px solid var(--hair); }
.savebar .btn { width: 100%; min-height: 52px; font-size: 16px; }

.card { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(217, 180, 108, .12); }
.card .ph { width: 84px; height: 84px; cursor: pointer; }
.card .ph.empty { border-style: dashed; }
.card .nm { font-size: 15px; font-weight: 700; }
.card .sm { font-size: 13px; color: var(--dim); }
.card .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.card .acts .inp { width: 84px; }
.card .acts .btn { min-height: 44px; font-size: 14px; color: var(--gold); }
.card details { margin-top: 8px; font-size: 14px; }
.card summary { cursor: pointer; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
.card details .fields { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.dispo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-height: 44px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.field label { font-size: 13px; color: var(--muted); }
.field .inp { height: 48px; font-size: 16px; }
.login { padding: 60px 24px; display: flex; flex-direction: column; gap: 8px; }
.login h1 { margin: 0 0 4px; font-family: var(--serif); color: var(--gold); font-size: 26px; text-align: center; }
.login .btn { margin-top: 20px; }
.login .btn.back { margin: -36px 0 28px; align-self: flex-start; min-height: 44px; font-size: 14px; color: var(--muted); }
.preview { margin-top: 16px; padding: 16px; border-radius: 10px; border: 1px solid rgba(217, 180, 108, .35); background: var(--bg2); display: flex; justify-content: center; gap: 18px; }
.preview figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; }
.qrbox { width: 110px; height: 110px; background: #fbf6ec; border-radius: 6px; padding: 8px; }
.qrbox svg { width: 100%; height: 100%; display: block; }

@media (min-width: 600px) {
  body { padding: 24px 0; }
  .page { min-height: calc(100vh - 48px); border-radius: 16px; overflow: clip; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
  .top { top: 0; }
}
