/* Brasserie Ommegang – menu
   Couleurs reprises de la carte imprimée : bleu Ommegang, or, marbre clair, bordeaux pour les prix. */
:root {
  --navy: #23406a;
  --navy-deep: #182d4d;
  --ink: #1b2a44;
  --muted: #5d6a80;
  --gold: #a88443;
  --gold-soft: #d9c79c;
  --wine: #a01238;
  --paper: #f3f6fa;
  --card: #ffffff;
  --line: #dbe2ec;
  --be-black: #111111;
  --be-yellow: #f4d03a;
  --be-red: #e0283c;
  --display: "Noto Serif Display", "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --text: "Sofia Sans Condensed", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.4;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h2, h3, h4, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--be-yellow); outline-offset: 2px; }
[hidden] { display: none !important; }

.flag {
  width: 30px; height: 20px; object-fit: cover;
  border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
  flex: none;
}

/* ---------- Accueil : choix de la langue ---------- */
body[data-page="home"] { background: var(--navy); color: #fff; }
.home { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; padding: 28px 20px 32px; }
.home-inner { width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; }
.home-logo { width: min(62vw, 250px); }
.home-tag {
  margin: 14px 0 22px; padding: 6px 14px;
  border: 1px solid var(--gold); color: var(--gold-soft);
  font-size: .95rem; letter-spacing: .14em;
}
.langs { width: 100%; border-top: 1px solid rgba(255, 255, 255, .18); }
.lang {
  display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 12px;
  padding: 13px 6px; min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  text-decoration: none; color: #fff;
}
.lang:hover, .lang:active { background: rgba(255, 255, 255, .07); }
.lang-flags { display: flex; gap: 5px; }
.lang-word { font-family: var(--display); font-weight: 500; font-size: 1.6rem; line-height: 1.1; }
.lang-name { color: var(--gold-soft); font-size: 1.05rem; }
.home-foot { margin-top: 26px; color: rgba(255, 255, 255, .65); font-size: .95rem; text-align: center; }

/* ---------- En-tête du menu ---------- */
.top {
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
}
.brand img { width: 132px; }
.switch {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
}
.tricolor { display: flex; height: 5px; }
.tricolor i { flex: 1; }
.tricolor i:nth-child(1) { background: var(--be-black); }
.tricolor i:nth-child(2) { background: var(--be-yellow); }
.tricolor i:nth-child(3) { background: var(--be-red); }

.sticky {
  position: sticky; top: 0; z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.tabs { display: flex; max-width: 760px; margin: 0 auto; padding: 10px 16px 0; gap: 8px; }
.tab {
  flex: 1; min-height: 46px; padding: 8px 10px;
  font: 700 1.15rem var(--text); color: var(--navy);
  background: transparent; border: 1.5px solid var(--navy); border-radius: 8px;
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.chips {
  display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  max-width: 760px; margin: 0 auto; padding: 10px 16px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 13px; min-height: 38px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap;
}
.chip.is-active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- Rubriques ---------- */
.menu { max-width: 760px; margin: 0 auto; padding: 4px 16px 24px; }
.section { padding-top: 30px; }
.photo {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 14px; margin-bottom: 18px;
}
.section-title {
  font-family: var(--display); font-weight: 500;
  font-size: 2rem; line-height: 1.15; color: var(--navy);
  padding-bottom: 10px; border-bottom: 2px solid var(--gold);
}
.section-note { margin-top: 10px; color: var(--muted); font-size: 1rem; max-width: 62ch; }
.group-title {
  margin-top: 26px; font: 700 1.05rem var(--text); color: var(--gold);
  letter-spacing: .02em;
}

.item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.items .item:last-child { border-bottom: 0; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.name { font: 700 1.2rem/1.25 var(--text); color: var(--ink); }
.price { flex: none; text-align: right; white-space: nowrap; }
.amount { font-weight: 700; font-size: 1.2rem; color: var(--wine); font-variant-numeric: tabular-nums; }
.cur { color: var(--wine); font-size: .95rem; }
.plabel { color: var(--muted); font-size: .95rem; margin-right: 2px; }
.orig { color: var(--gold); font-size: 1rem; font-style: italic; margin-top: 1px; }
.meta { color: var(--muted); font-size: .98rem; margin-top: 3px; }
.tag {
  display: inline-block; padding: 0 8px; border-radius: 999px;
  border: 1px solid currentColor; font-size: .9rem; font-weight: 600; line-height: 1.5;
}
.tag-veg, .tag-gf { color: #2c7a3d; }
.tag-na { color: var(--navy); }
.tag-raw { color: var(--wine); }
.desc { color: var(--muted); margin-top: 4px; max-width: 58ch; }
.desc.lines li { padding: 2px 0; }
.info { color: var(--muted); font-size: 1rem; margin-top: 4px; }

.prices { display: grid; gap: 6px; margin-top: 10px; }
.prices.n2 { grid-template-columns: repeat(2, 1fr); max-width: 260px; }
.prices.n3 { grid-template-columns: repeat(3, 1fr); max-width: 390px; }
.prices.n4 { grid-template-columns: repeat(4, 1fr); }
.prices div { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 4px; text-align: center; }
.prices dt { color: var(--muted); font-size: .92rem; line-height: 1.2; }
.prices .amount { font-size: 1.1rem; }
.prices .cur { font-size: .85rem; }

.item.is-star {
  background: var(--card); border: 1px solid var(--gold-soft); border-radius: 12px;
  padding: 14px; margin: 14px 0 4px;
}
.star { color: var(--gold); font-weight: 700; font-size: 1rem; margin-bottom: 4px; }

/* ---------- Pied de page ---------- */
.foot { background: var(--navy); color: #fff; text-align: center; padding: 28px 20px 36px; margin-top: 20px; }
.allergens { max-width: 46ch; margin: 0 auto 18px; color: var(--gold-soft); }
.foot-name { font-family: var(--display); font-weight: 500; font-size: 1.5rem; }
.foot-addr { color: rgba(255, 255, 255, .75); margin-top: 2px; }
.foot-links { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.foot-links a { padding: 8px 2px; }
.error { padding: 60px 20px; text-align: center; }

@media (min-width: 700px) {
  .brand img { width: 160px; }
  .top { padding-left: max(16px, calc(50% - 364px)); padding-right: max(16px, calc(50% - 364px)); }
  .section-title { font-size: 2.4rem; }
}
