/* O'Ana Brunch : page « La carte » (s'ajoute à site.css) */

/* Une seule colonne de lecture, alignée du haut en bas */
.carte-intro .wrap, .notice .wrap, .cats .wrap, #list, .carte-foot-note { max-width: 820px; }

/* ---------- Intro ---------- */
.carte-intro { padding: 44px 0 40px; overflow: hidden; }
.carte-intro::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(700px 360px at 90% 0%, rgba(201,162,74,.16), transparent 60%); }
.carte-intro .frond { right: -30px; top: -70px; width: 220px; transform: rotate(28deg); }
.carte-intro h1 { font-size: clamp(2.6rem, 9vw, 3.8rem); color: var(--gold-light); margin-top: 10px; }
.carte-intro p { color: var(--on-dark-muted); margin-top: 8px; max-width: 40ch; }
.carte-intro .ornament { margin-top: 18px; }

.notice { background: #fbf0d6; border-bottom: 1px solid #ecd9a8; color: #5c430f; font-size: .92rem; padding: 12px 0; }
.notice .wrap { display: flex; gap: 10px; align-items: flex-start; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: #8a6a24; }

/* ---------- Rubriques (barre collante sous l'en-tête) ---------- */
.cats { position: sticky; top: var(--header-h); z-index: 40; background: rgba(248, 243, 231, .97); border-bottom: 1px solid var(--line); }
.cats-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 11px; padding-bottom: 11px; }
.cats-row::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; white-space: nowrap; text-decoration: none; font-weight: 700; font-size: .92rem; letter-spacing: .01em;
  color: var(--green-800); background: var(--paper); border: 1px solid var(--line);
  min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--r-pill);
  transition: border-color var(--t-1) var(--ease-out), background-color var(--t-1) var(--ease-out), color var(--t-1) var(--ease-out);
}
.cats a:hover { border-color: var(--gold); }
.cats a[aria-current="true"] { background: var(--green-800); color: var(--gold-light); border-color: var(--green-800); }

/* ---------- Liste des plats ---------- */
.cat { font-size: clamp(2rem, 6vw, 2.5rem); color: var(--green-800); margin: 52px 0 6px; scroll-margin-top: calc(var(--header-h) + 76px); }
.cat-note { color: var(--text-muted); font-size: .95rem; margin-bottom: 6px; }
.sub { display: flex; align-items: center; gap: 12px; margin: 24px 0 4px; font-family: var(--font-body); font-weight: 700; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dish {
  display: flex; gap: 14px; align-items: center; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 14px 10px 10px; margin-top: 10px; cursor: pointer; box-shadow: var(--shadow-1);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: border-color var(--t-1) var(--ease-out), box-shadow var(--t-2) var(--ease-out), transform var(--t-1) var(--ease-out);
}
.dish:hover { border-color: var(--gold); box-shadow: var(--shadow-2); }
.dish:active { transform: scale(.99); }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 14px; flex: none; overflow: hidden; background: radial-gradient(circle at 50% 45%, #2b4536, var(--green-900) 85%) center / cover no-repeat; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge360 { position: absolute; left: 6px; bottom: 6px; font-size: .64rem; font-weight: 700; letter-spacing: .04em; color: var(--green-950); background: var(--gold-light); border-radius: var(--r-pill); padding: 1px 7px; }
.dish .txt { flex: 1; min-width: 0; }
.dish .name { display: block; font-weight: 700; font-size: 1.06rem; line-height: 1.3; }
.dish .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; color: var(--text-muted); margin-top: 3px; }
.dish .tags { display: block; font-size: .8rem; font-weight: 700; color: var(--leaf); margin-top: 5px; }
.dish .tags.unknown { color: #8a6a24; }
.price { flex: none; align-self: flex-start; padding-top: 2px; font-weight: 700; font-size: 1.06rem; color: var(--gold-ink); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

.carte-foot-note { color: var(--text-muted); font-size: .9rem; padding-top: 40px; padding-bottom: 56px; }

/* ---------- Fiche du plat ---------- */
dialog { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(9, 14, 11, .7); }
@media (min-width: 760px) { dialog { width: 660px; height: min(92vh, 940px); margin: auto; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); } }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: sheet-in 260ms var(--ease-out); }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.99); } to { opacity: 1; transform: none; } }
}
.sheet { display: flex; flex-direction: column; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.stage { position: relative; flex: none; height: min(56vh, 460px); background: radial-gradient(circle at 50% 45%, #2b4536, var(--green-950) 82%); touch-action: none; cursor: grab; }
.stage:active { cursor: grabbing; }
.stage canvas { display: block; width: 100%; height: 100%; }
.close { position: absolute; z-index: 3; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 253, 247, .95); color: var(--green-900); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-1); }
.seg { position: absolute; z-index: 3; top: calc(14px + env(safe-area-inset-top)); left: 12px; display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: rgba(255, 253, 247, .95); box-shadow: var(--shadow-1); }
.seg button { border: 0; background: none; padding: 0 14px; min-height: 40px; border-radius: 11px; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--green-900); }
.seg button[aria-pressed="true"] { background: var(--green-900); color: var(--gold-light); }
#photo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: var(--green-950); }
.stage.photo .hint { display: none; }
.hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; pointer-events: none; }
.hint b { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--on-dark); border: 1px solid rgba(227, 198, 126, .6); border-radius: var(--r-pill); padding: 5px 14px; background: rgba(14, 26, 20, .62); }
.nogl { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-dark-muted); font-size: .95rem; padding: 20px; text-align: center; }
.info { padding: 24px 22px calc(32px + env(safe-area-inset-bottom)); }
.info .head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.info h2 { font-size: clamp(1.9rem, 6vw, 2.3rem); color: var(--green-800); }
.info .price { font-size: 1.3rem; }
.info .d-desc { color: var(--text-muted); margin-top: 10px; }
.info .d-opt { color: var(--gold-ink); font-weight: 700; font-size: .95rem; margin-top: 10px; }
.info h3 { font-family: var(--font-body); font-weight: 700; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin: 26px 0 12px; }
.ingr { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ingr li { font-size: .92rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 13px; }
.allergens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.al { display: flex; align-items: center; gap: 9px; font-size: .9rem; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); color: #6c746e; }
.al .dot { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #c3c8bf; font-size: .72rem; font-weight: 800; }
.al.on { color: var(--ink); font-weight: 700; background: #fbf0d6; border-color: var(--gold-light); }
.al.on .dot { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.callout { font-size: .95rem; color: #5c430f; background: #fbf0d6; border: 1px solid #ecd9a8; border-radius: 14px; padding: 13px 15px; }
.warn { margin-top: 14px; font-size: .86rem; color: var(--text-muted); }
