/* Direction B — « L'Ardoise du soir » : fond encre, éditorial, ambiance dîner. */
@import url('colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink-900);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brass-700); color: var(--cream); }

.m-app { max-width: 480px; margin: 0 auto; }

/* Header */
.m-head {
  text-align: center;
  padding: 34px 24px 18px;
  display: grid;
  justify-items: center;
  gap: 10px;
  position: relative;
}
.m-mark { width: 60px; height: 60px; object-fit: contain; }
.m-title {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: var(--cream);
}
.m-sub {
  margin: 0;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-400);
}

/* Tabs — segmented pill */
.m-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 16, 13, 0.86);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
}
.m-tabs-inner {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  border: 1px solid var(--brass-700);
  border-radius: var(--r-pill);
  padding: 4px;
}
.m-tab {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  border-radius: var(--r-pill);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-on-dark-muted);
  transition: background .2s, color .2s;
}
.m-tab.is-active { background: var(--brass-600); color: var(--ink-900); }

/* Panels */
.m-panel { display: none; padding: 30px 24px 108px; }
.m-panel.is-active { display: block; }

.m-eyebrow {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: 24px;
}

/* Section rule — short, left-aligned brass tick */
.m-rule { display: block; width: 44px; height: 2px; background: var(--brass-500, var(--brass-600)); margin: 10px 0 14px; }
.m-rule span, .m-rule i { display: none; }

/* Menus (formules) */
.m-menus { display: grid; gap: 16px; }
.m-formule {
  background: rgba(244, 236, 221, 0.045);
  border: 1px solid rgba(198, 168, 103, 0.28);
  border-radius: var(--r-md);
  padding: 22px;
  display: grid;
  gap: 10px;
}
.m-formule.is-feature { border-color: var(--brass-500, var(--brass-400)); background: rgba(198, 168, 103, 0.10); }
.m-formule-top {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-400);
}
.m-formule-name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.04; color: var(--cream); }
.m-tag {
  justify-self: start;
  font-family: var(--font-label); font-weight: 500; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 4px 11px; border-radius: var(--r-pill);
  background: rgba(198, 168, 103, 0.18); color: var(--brass-400);
}
.m-formule-dishes { margin: 0; font-family: var(--font-body); font-style: italic; font-size: 15.5px; line-height: 1.55; color: var(--fg-on-dark-muted); }
.m-formule-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(244, 236, 221, 0.14); }
.m-price { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--brass-400); white-space: nowrap; }
.m-per { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-on-dark-muted); }

/* Sections (carte / boissons) — editorial, left aligned */
.m-section { margin-bottom: 40px; }
.m-seclabel {
  font-family: var(--font-display); font-weight: 600; font-size: 27px; letter-spacing: 0;
  color: var(--cream); line-height: 1.1;
}
.m-secnote { font-family: var(--font-body); font-style: italic; font-size: 14px; color: var(--brass-400); margin-bottom: 10px; }
.m-row { padding: 14px 0; border-bottom: 1px solid rgba(244, 236, 221, 0.12); }
.m-row:last-child { border-bottom: 0; }
.m-row-head { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: baseline; }
.m-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--cream); }
.m-row-head .m-price { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--brass-400); }
.m-desc { font-family: var(--font-body); font-style: italic; font-size: 14px; line-height: 1.45; color: var(--fg-on-dark-muted); margin-top: 4px; max-width: 92%; }

.m-foot {
  font-family: var(--font-label); font-weight: 300; font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-on-dark-muted); margin-top: 30px; line-height: 1.6;
  text-align: center; opacity: 0.8;
}

/* Language toggle */
.m-lang { position: absolute; top: 18px; right: 16px; display: flex; gap: 2px; border: 1px solid var(--brass-700); border-radius: var(--r-pill); padding: 2px; }
.m-lang-btn { background: none; border: none; cursor: pointer; font-family: var(--font-label); font-weight: 500; font-size: 10px; letter-spacing: 0.08em; padding: 5px 10px; border-radius: var(--r-pill); color: var(--fg-on-dark-muted); }
.m-lang-btn.is-active { background: var(--brass-600); color: var(--ink-900); }

/* Tag + badges row */
.m-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.m-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.m-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-label); font-weight: 500; font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 3px 10px 3px 8px; border-radius: var(--r-pill); border: 1px solid;
}
.m-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.m-badge--maison { color: var(--brass-400); border-color: rgba(198,168,103,0.4); background: rgba(198,168,103,0.12); }
.m-badge--maison::before { background: var(--brass-400); }
.m-badge--france { color: var(--slate-300); border-color: rgba(124,144,151,0.4); background: rgba(124,144,151,0.12); }
.m-badge--france::before { width: 15px; height: 9px; border-radius: 1px; background: linear-gradient(90deg, #2b59c9 33%, #f4ecdd 33% 66%, #d2425a 66%); }

/* Wine region sub-header */
.m-subhead { font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: 18px; color: var(--brass-400); margin: 20px 0 4px; }
.m-wine-note { font-family: var(--font-body); font-style: italic; font-size: 13.5px; color: var(--fg-on-dark-muted); margin-top: 20px; text-align: center; }

/* Floating reserve button */
.m-fab {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-label); font-weight: 500; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; padding: 14px 30px; border-radius: var(--r-pill);
  background: var(--brass-600); color: var(--ink-900); box-shadow: var(--shadow-lg);
}
.m-fab::before { content: '◆'; font-size: 9px; color: var(--ink-800); }
.m-fab:active { background: var(--brass-700); color: var(--cream); }
