:root {
  --primary: #a83e2b;
  --gold: #b88a3e;
  --bg: #f7f3ee;
  --card: #ffffff;
  --ink: #241f1b;
  --muted: #8c8377;
  --line: #ece4d9;
  --ph-bg1: #f1e9dd;
  --ph-bg2: #e6dccc;
  --ph-ico: #c4b29a;
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --shadow: 0 8px 26px rgba(60, 40, 20, .09);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); padding-bottom: 60px;
}

/* ---------- En-tête ---------- */
.hero {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(135deg, var(--primary), #7f2c1d);
  color: #fdf6ef; box-shadow: var(--shadow);
}
.hero-inner {
  max-width: 940px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 15px 18px;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.logo {
  width: 50px; height: 50px; flex: 0 0 50px; border-radius: 12px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: 1px;
}
.hero h1 {
  margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .3px;
}
.tagline { margin: 3px 0 0; font-size: 12.5px; opacity: .88; letter-spacing: .2px; }
.langs { display: flex; gap: 6px; flex-wrap: wrap; }
.langs button {
  border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff;
  border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-weight: 600;
  cursor: pointer; text-transform: uppercase; letter-spacing: .5px;
}
.langs button.active { background: #fff; color: var(--primary); border-color: #fff; }

/* ---------- Navigation catégories ---------- */
.catnav {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 13px;
  max-width: 940px; margin: 0 auto; scrollbar-width: none;
}
.catnav::-webkit-scrollbar { display: none; }
.catnav a {
  white-space: nowrap; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.13); padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
}

/* ---------- Carte ---------- */
.menu { max-width: 940px; margin: 0 auto; padding: 16px 18px; }
.cat-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .3px;
  color: var(--ink); margin: 30px 2px 14px; scroll-margin-top: 134px;
}
.cat-title::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.cat-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 16px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-2px); }
.card.out { opacity: .6; }

/* Emplacement photo — sobre et pro */
.media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--ph-bg1), var(--ph-bg2));
  display: grid; place-items: center;
}
.media .photo { width: 100%; height: 100%; object-fit: cover; }
.media .ico { color: var(--ph-ico); width: 42px; height: 42px; }
.media .ico svg { width: 100%; height: 100%; }
.media .ph-note {
  position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #a8997f; font-weight: 600;
}
.badge3d {
  position: absolute; top: 10px; right: 10px;
  background: rgba(28,22,18,.86); color: #fff; border: none; cursor: pointer;
  font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
  padding: 7px 12px; border-radius: 999px; display: flex; align-items: center; gap: 5px;
  backdrop-filter: blur(2px);
}
.badge3d span { font-size: 13px; line-height: 1; }
.badge-out {
  position: absolute; top: 10px; left: 10px; background: #241f1b; color: #fff;
  font-size: 10.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}

.body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.body h3 { margin: 0; font-family: var(--serif); font-size: 16.5px; font-weight: 600; line-height: 1.25; }
.desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }
.allergens { display: flex; flex-wrap: wrap; gap: 5px; }
.allergens span {
  font-size: 10px; color: #97703a; background: #f8f1e6;
  border: 1px solid #ecdcc4; padding: 2px 8px; border-radius: 999px;
  letter-spacing: .2px;
}
.price-row { display: flex; align-items: baseline; justify-content: flex-end; margin-top: 2px; }
.price { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--primary); }

/* ---------- Pied ---------- */
.foot { text-align: center; color: var(--muted); font-size: 11.5px; padding: 24px; letter-spacing: .3px; }
.foot b { color: var(--primary); font-family: var(--serif); }

/* ---------- Modale "sur la table" ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(20,14,10,.62);
  display: grid; place-items: center; padding: 16px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--card); border-radius: 18px; padding: 16px;
  width: 100%; max-width: 560px; position: relative;
}
.modal-card h3 { margin: 2px 38px 12px 4px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border-radius: 50%; border: none; background: #f0e9df; cursor: pointer; font-size: 15px;
}
.ar-btn {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; border: none; font-weight: 600;
  padding: 11px 17px; border-radius: 999px; cursor: pointer; font-size: 14px;
}
.modal-note { color: var(--muted); font-size: 12px; text-align: center; margin: 11px 0 2px; line-height: 1.5; }
