:root {
  --paper: #f7f3ea;
  --paper-2: #efe9db;
  --ink: #26221e;
  --muted: #6d655b;
  --gold: #a98a4d;
  --gold-soft: #cdb98d;
  --line: #d8cdb4;
  --font-title: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Jost', 'Gill Sans', system-ui, sans-serif;
}
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-weight: 400; line-height: 1.45; -webkit-text-size-adjust: 100%; }

/* ---------- en-tête ---------- */
.hero { text-align: center; padding: 30px 16px 14px; }
.logo { font-family: var(--font-title); font-size: 2.1rem; letter-spacing: .18em; font-weight: 500; margin: 0; line-height: 1; padding-left: .18em; }
.city { font-family: var(--font-body); font-size: .62rem; letter-spacing: .6em; margin-top: 8px; padding-left: .6em; color: var(--muted); }
.lang { display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
.lang button { font: 500 .72rem var(--font-body); letter-spacing: .12em; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 7px 11px; min-width: 44px; min-height: 36px; border-radius: 2px; cursor: pointer; }
.lang button[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: #fff; }

.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav ul { list-style: none; margin: 0; padding: 0 10px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; white-space: nowrap; padding: 13px 11px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a.on { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- sections ---------- */
main { max-width: 640px; margin: 0 auto; padding: 8px 16px 60px; }
.sec { margin: 38px 0 0; }
.sec h2 { font-family: var(--font-title); font-weight: 500; color: var(--gold); text-align: center; font-size: 1.6rem; line-height: 1.15; margin: 0 0 6px; }
.sec-price { text-align: center; color: var(--gold); font-weight: 600; font-size: .95rem; letter-spacing: .04em; margin: 0 0 6px; }
.note { text-align: center; font-size: .82rem; color: var(--muted); margin: 8px auto 16px; max-width: 34em; }
.foot { font-size: .78rem; color: var(--muted); margin: 14px auto 0; max-width: 34em; text-align: center; }

.framed { position: relative; border: 1px solid var(--gold-soft); padding: 22px 18px 20px; margin-left: -4px; margin-right: -4px; }
.framed::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--gold-soft); pointer-events: none; }
.framed.daily { background: var(--paper-2); }

.items { list-style: none; margin: 18px 0 0; padding: 0; }
.item { padding: 9px 0; }
.row { display: flex; align-items: baseline; gap: 8px; }
.name { font-weight: 500; font-size: .86rem; letter-spacing: .015em; text-transform: uppercase; }
.dots { flex: 1; align-self: baseline; height: 0; min-width: 14px; border-bottom: 1.5px dotted var(--gold-soft); position: relative; top: -2px; }
.price { font-weight: 600; font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price::after { content: '\00a0€'; font-weight: 500; }
.desc { font-size: .8rem; color: var(--muted); margin-top: 2px; padding-right: 3.5em; }
.prices { display: flex; justify-content: flex-end; gap: 18px; margin-top: 4px; flex-wrap: wrap; }
.prices span { font-size: .78rem; color: var(--muted); }
.prices b { font-size: .9rem; color: var(--ink); font-weight: 600; margin-left: 4px; }
.prices b::after { content: '\00a0€'; font-weight: 500; }
.hd { font-family: var(--font-title); color: var(--gold); text-align: center; font-size: 1rem; margin: 22px 0 4px; letter-spacing: .02em; }

.center .item { text-align: center; }
.center .row { justify-content: center; }
.center .dots { display: none; }
.center .desc { padding-right: 0; }
.center .prices { justify-content: center; }
.center .price { margin-left: 4px; }
.center .name { text-transform: none; font-weight: 500; font-size: .92rem; }

.cols { display: flex; justify-content: flex-end; gap: 0; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 18px 0 -6px; }
.cols span, .cell { width: 76px; flex: none; text-align: right; }
.grid .dots { display: none; }
.grid .name { flex: 1; }
.grid .row { align-items: baseline; }
.grid .cell { font-weight: 600; font-size: .88rem; font-variant-numeric: tabular-nums; }
.grid .cell::after { content: '\00a0€'; font-weight: 500; }
.grid .name { text-transform: none; font-weight: 500; }

footer { text-align: center; color: var(--muted); font-size: .72rem; padding: 0 16px 36px; letter-spacing: .08em; }
.loading { text-align: center; padding: 60px 16px; color: var(--muted); }
@media (min-width: 700px) { .sec h2 { font-size: 1.9rem; } main { padding-top: 20px; } }
@media print { .nav, .lang { display: none; } }

/* ---------- polices par langue ---------- */
html[lang='ja'] { --font-title: 'Noto Serif JP', 'Cinzel', serif; --font-body: 'Jost', 'Noto Sans JP', sans-serif; }
html[lang='zh'] { --font-title: 'Noto Serif SC', 'Cinzel', serif; --font-body: 'Jost', 'Noto Sans SC', sans-serif; }
html[lang='ru'] { --font-title: 'Cormorant SC', 'Cinzel', serif; }
html[lang='ja'] .name, html[lang='zh'] .name, html[lang='ru'] .name { text-transform: none; }
html[lang='ja'] .nav a, html[lang='zh'] .nav a { letter-spacing: .02em; }

/* ---------- page de garde ---------- */
.cover { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; text-align: center; }
.cover[hidden], #carte[hidden], .showbar[hidden], .sheet[hidden] { display: none; }
.cover-in { width: 100%; max-width: 380px; }
.cover .logo { font-size: 2.6rem; }
.cover .city { margin-top: 10px; }
.orn { height: 1px; width: 120px; margin: 26px auto 24px; background: linear-gradient(90deg, transparent, var(--gold), transparent); position: relative; }
.orn::after { content: ''; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; margin-left: -3.5px; background: var(--paper); border: 1px solid var(--gold); transform: rotate(45deg); }
.choose { color: var(--muted); font-size: .85rem; letter-spacing: .04em; margin: 0 0 20px; }
.langlist { display: grid; gap: 10px; }
.langlist button { font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; letter-spacing: .04em; min-height: 54px; background: transparent; color: var(--ink); border: 1px solid var(--gold-soft); border-radius: 2px; cursor: pointer; transition: background .15s, color .15s; }
.langlist button:active, .langlist button:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.langlist button[lang='ja'] { font-family: 'Noto Sans JP', sans-serif; } .langlist button[lang='zh'] { font-family: 'Noto Sans SC', sans-serif; }

.langbtn { margin-top: 16px; font: 500 .8rem var(--font-body); letter-spacing: .06em; border: 1px solid var(--gold-soft); background: transparent; color: var(--ink); padding: 8px 16px; min-height: 40px; border-radius: 2px; cursor: pointer; }

/* ---------- sélection + info client ---------- */
.tip { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 12px 14px; background: var(--paper-2); border: 1px solid var(--gold-soft); font-size: .84rem; line-height: 1.4; }
.tip span:first-child { font-size: 1.25rem; line-height: 1; }
.pick { cursor: pointer; -webkit-tap-highlight-color: transparent; position: relative; transition: background .12s; }
.item.pick { padding-left: 10px; padding-right: 10px; margin: 0 -10px; border-left: 3px solid transparent; }
.item.pick.sel, .sec-price.sel { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.item.pick.sel { border-left-color: var(--gold); }
.item.pick.sel .name::before { content: '✓ '; color: var(--gold); }
.sec-price.pick { display: table; margin: 0 auto 6px; padding: 4px 14px; border: 1px solid var(--gold-soft); border-radius: 20px; }
.sec-price.sel::before { content: '✓ '; }
.desc { padding-right: 3.5em; }
.item.pick .desc { padding-right: 0; }

.showbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 40%); display: flex; justify-content: center; }
.showbar button { width: 100%; max-width: 420px; min-height: 52px; border: 0; border-radius: 3px; background: var(--ink); color: #fff; font: 600 1rem var(--font-body); letter-spacing: .04em; box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; }
main { padding-bottom: 110px; }

/* ---------- écran serveur ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; background: #fff; color: #111; overflow-y: auto; }
.sheet-in { max-width: 560px; margin: 0 auto; padding: 18px 18px calc(30px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 2px solid #111; padding-bottom: 12px; }
.sheet-t { font: 600 1.7rem 'Cinzel', serif; line-height: 1.1; }
.sheet-s { color: #555; font-size: .9rem; margin-top: 4px; }
.x { font: 500 .9rem var(--font-body); border: 1px solid #bbb; background: #fff; padding: 8px 14px; min-height: 40px; border-radius: 3px; cursor: pointer; white-space: nowrap; }
.sh-sec { font: 600 .8rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #8a6d2f; margin: 22px 0 6px; }
.sh-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #e4e4e4; }
.qty { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.qty button { width: 40px; height: 36px; font-size: 1.3rem; border: 1px solid #ccc; background: #fafafa; border-radius: 3px; cursor: pointer; line-height: 1; }
.qty span { font: 700 1.5rem var(--font-body); min-width: 40px; text-align: center; }
.sh-name { font: 600 1.25rem/1.25 var(--font-body); }
.sh-desc { color: #555; font-size: .95rem; margin-top: 3px; }
.sh-pr { margin-top: 5px; font-size: .95rem; color: #333; }
.clear { display: block; margin: 28px auto 0; font: 500 .9rem var(--font-body); border: 0; background: none; color: #a33; text-decoration: underline; cursor: pointer; padding: 10px; }

/* ---------- appui long : version française ---------- */
.pick, .sec h2, .hd, .note, .foot, .tip { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.peek { position: fixed; inset: 0; z-index: 40; background: rgba(20,16,10,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.peek[hidden] { display: none; }
.peek-card { background: #fff; color: #111; width: 100%; max-width: 480px; padding: 22px 22px 16px; border-radius: 4px; border-top: 4px solid var(--gold); box-shadow: 0 20px 60px rgba(0,0,0,.4); font-family: 'Jost', sans-serif; }
.pk-top { font: 600 .72rem 'Jost', sans-serif; letter-spacing: .16em; color: #8a6d2f; margin-bottom: 10px; }
.pk-sec { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #777; margin-bottom: 4px; }
.pk-name { font: 600 1.45rem/1.25 'Jost', sans-serif; }
.pk-desc { font-size: 1.05rem; color: #444; margin-top: 8px; line-height: 1.4; } .pk-desc.big { font-size: 1.3rem; color: #111; margin: 0; }
.pk-pr { margin-top: 12px; font-size: 1.05rem; } .pk-pr b { font-weight: 600; }
.pk-close { margin-top: 18px; text-align: center; font-size: .78rem; color: #888; }

.sh-own { margin-top: 4px; font-size: .9rem; color: #777; line-height: 1.3; }

/* ---------- mode malvoyant ---------- */
.hero-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.accbtn[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cover .accbtn { margin-top: 18px; font: 500 .85rem var(--font-body); border: 1px solid var(--gold-soft); background: transparent; color: var(--ink); padding: 10px 16px; min-height: 44px; border-radius: 2px; cursor: pointer; }
.cover .accbtn[aria-pressed='true'] { background: var(--ink); color: #fff; }
html.a11y { font-size: 125%; --paper: #fff; --paper-2: #f1f1f1; --ink: #000; --muted: #1f1f1f; --gold: #6b4a00; --gold-soft: #6b4a00; --line: #444; }
html.a11y body { font-weight: 500; }
html.a11y .name, html.a11y .price, html.a11y .cell { font-weight: 700; }
html.a11y .desc, html.a11y .note, html.a11y .foot { font-size: .95rem; color: #000; }
html.a11y .dots { border-bottom-color: #000; }
html.a11y .framed, html.a11y .framed::before { border-color: #000; }
html.a11y .nav a { color: #000; font-size: .85rem; } html.a11y .nav a.on { color: #6b4a00; border-bottom-width: 3px; }
html.a11y .item.pick.sel { background: #e6e6e6; border-left-color: #000; border-left-width: 5px; }
html.a11y .sec h2 { font-weight: 600; }

html.a11y2 { font-size: 160%; }
html.a11y2 .name, html.a11y2 .desc, html.a11y2 .nav a, html.a11y2 .note { overflow-wrap: anywhere; }
html.a11y2 .sec h2 { font-size: 1.5rem; }
html.a11y2 .showbar button { font-size: .95rem; }

/* bouton malvoyant : pictogramme œil + Aa, en haut à droite */
body { position: relative; }
.accfab { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 12; display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px 0 12px; border: 2px solid var(--ink); border-radius: 26px; background: var(--paper); color: var(--ink); font: 700 16px 'Jost', sans-serif; cursor: pointer; }
.accfab .aa b { font-weight: 700; }
.accfab[aria-pressed='true'] { background: var(--ink); color: #fff; }
.accfab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* le logo suit la largeur de l'écran (pas de débordement en texte agrandi) et laisse la place au bouton */
.logo { font-size: clamp(1.4rem, 8vw, 2.1rem); }
.cover .logo { font-size: clamp(1.5rem, 9vw, 2.6rem); }
.hero { padding-top: calc(66px + env(safe-area-inset-top)); }
.cover { padding-top: calc(72px + env(safe-area-inset-top)); }

/* ---------- lexique ---------- */
.gl { border-bottom: 1.5px dotted var(--gold); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 22%, transparent) 0); cursor: help; }
.gl:focus-visible { outline: 2px solid var(--gold); }
.lex .item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.lex .name { color: var(--gold); text-transform: none; font-size: .95rem; }
.lex .desc { padding-right: 0; margin-top: 4px; font-size: .86rem; color: var(--ink); }
.gloss { position: fixed; inset: 0; z-index: 35; background: rgba(20,16,10,.5); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.gloss[hidden] { display: none; }
.gloss-card { width: 100%; max-width: 560px; background: var(--paper); color: var(--ink); border-top: 4px solid var(--gold); padding: 22px 22px calc(20px + env(safe-area-inset-bottom)); border-radius: 12px 12px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.3); }
.gl-term { font-family: var(--font-title); color: var(--gold); font-size: 1.5rem; line-height: 1.2; }
.gl-def { margin-top: 10px; font-size: 1.02rem; line-height: 1.5; }
.gl-fr { margin-top: 12px; font-size: .82rem; color: var(--muted); }
.gloss-close { margin-top: 16px; text-align: center; font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* recherche */
#searchbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; }
#searchbtn[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero-btns { gap: 8px; }
.searchrow { max-width: 420px; margin: 12px auto 0; padding: 0 16px; }
.searchrow[hidden] { display: none; }
.searchrow input { width: 100%; font: 500 1rem var(--font-body); padding: 12px 14px; border: 1px solid var(--gold); border-radius: 2px; background: #fff; color: #111; }
.sec[hidden], li.item[hidden] { display: none; }
.searching .hd, .searching .note, .searching .foot { display: none; }
.nores { text-align: center; color: var(--muted); padding: 40px 0; }
/* retirer un plat de l'écran serveur */
.sh-row .del { margin-left: auto; flex: none; width: 40px; height: 40px; border: 1px solid #d5d5d5; background: #fff; color: #a33; border-radius: 50%; font-size: 1.05rem; line-height: 1; cursor: pointer; }
.sh-row .del:active { background: #fbe9e9; }
