/* Terroir — papier kraft, polaroïd, manuscrit (compact mobile) */
body.tpl-terroir { background-color: var(--bg); background-image: radial-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1.2px), radial-gradient(color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1.2px); background-size: 22px 22px, 31px 31px; background-position: 0 0, 11px 7px; }
.tr-head { position: relative; display: grid; grid-template-columns: 46% 1fr; gap: .9rem; align-items: center; padding: calc(1.8rem + env(safe-area-inset-top)) 1rem .4rem; }
.tr-polaroid { position: relative; margin: 0; padding: .45rem .45rem 1.8rem; background: #fff; box-shadow: 0 14px 24px -14px rgba(60,40,20,.5), 0 2px 4px rgba(60,40,20,.1); transform: rotate(-4deg); animation: trDrop 1s var(--spring) both .1s; }
@keyframes trDrop { from { opacity: 0; transform: rotate(-14deg) translateY(-24px) scale(.9); } }
.tr-polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tr-polaroid figcaption { position: absolute; left: 0; right: 0; bottom: .3rem; text-align: center; font-family: var(--script); font-size: 1rem; color: #5b4636; white-space: nowrap; }
.tr-tape { position: absolute; width: 58px; height: 18px; background: rgba(255, 236, 190, .8); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tr-tape.t1 { top: -8px; left: -12px; transform: rotate(-32deg); }
.tr-tape.t2 { top: -7px; right: -14px; transform: rotate(28deg); }
.tr-stamp { position: absolute; top: calc(1.1rem + env(safe-area-inset-top)); right: .9rem; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 2px dashed var(--accent); color: var(--accent); transform: rotate(12deg); font-family: var(--script); font-weight: 700; font-size: .92rem; line-height: 1; text-align: center; background: color-mix(in srgb, var(--bg) 85%, transparent); animation: trStamp .6s var(--spring) both .9s; z-index: 2; }
.tr-stamp span { padding: .3rem; }
@keyframes trStamp { from { opacity: 0; transform: rotate(40deg) scale(1.8); } }
.tr-id { min-width: 0; padding-top: 1.2rem; }
.tr-logo { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 700; font-size: 1rem; border: 2.5px solid #fff; box-shadow: 0 5px 12px -5px rgba(60,40,20,.4); margin-bottom: .3rem; }
.tr-logo img { width: 100%; height: 100%; object-fit: cover; }
.tr-hello { font-family: var(--script); font-size: 1.2rem; color: var(--accent); line-height: 1; }
.tr-name { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(1.75rem, 8vw, 2.2rem); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tr-squiggle { width: 120px; height: 12px; margin: .3rem 0 0; color: var(--accent); }
.tr-squiggle path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: trDraw 1.2s ease forwards .7s; }
@keyframes trDraw { to { stroke-dashoffset: 0; } }
.tr-tag { margin-top: .35rem; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.tr-note { margin: 1rem 1rem .9rem; padding: .7rem .95rem; background: #fff8e6; border-left: 4px solid var(--accent); font-family: var(--script); font-size: 1.12rem; line-height: 1.25; transform: rotate(-.6deg); box-shadow: 0 6px 14px -10px rgba(60,40,20,.35); }
.tr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding: .3rem 1rem 0; }
.tr-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: .85rem .85rem .95rem; background: var(--surface); border-radius: 6px; box-shadow: 0 10px 18px -14px rgba(60,40,20,.5); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); transform: rotate(var(--r, -.7deg)); transition: transform .3s var(--spring); }
.tr-card:nth-child(even) { --r: .8deg; }
.tr-card::after { content: ''; position: absolute; inset: 4px; border: 1.5px dashed color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 4px; pointer-events: none; }
.tr-card:active { transform: rotate(0) scale(.97); }
.tr-card.is-first { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: .85rem; align-items: center; background: var(--accent); color: var(--on-accent); }
.tr-card.is-first .tr-ico { grid-row: span 2; }
.tr-card.is-first::after { border-color: rgba(255,255,255,.35); }
.tr-card.is-first small { color: inherit; opacity: .9; }
.tr-ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: .35rem; border-radius: 50%; border: 2px dashed currentColor; color: var(--accent); transform: rotate(-8deg); }
.tr-card.is-first .tr-ico { color: inherit; margin: 0; }
.tr-ico svg { width: 21px; height: 21px; }
.tr-card b { font-family: var(--display); font-size: 1.02rem; font-weight: 700; line-height: 1.15; }
.tr-card small { font-family: var(--script); font-size: 1.02rem; color: var(--muted); line-height: 1.05; }
.tr-daily { position: relative; display: flex; align-items: center; gap: .8rem; margin: 1.5rem 1rem 0; padding: .65rem; background: #fff; box-shadow: 0 12px 22px -16px rgba(60,40,20,.5); transform: rotate(.6deg); }
.tr-daily-label { position: absolute; top: -13px; left: 12px; padding: .1rem .6rem; background: var(--accent); color: var(--on-accent); font-family: var(--script); font-size: 1.05rem; transform: rotate(-3deg); }
.tr-daily img { width: 70px; height: 70px; object-fit: cover; flex-shrink: 0; }
.tr-daily div { flex: 1; min-width: 0; }
.tr-daily b { display: block; font-family: var(--display); font-size: 1rem; }
.tr-daily small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.tr-price { font-family: var(--script); font-size: 1.35rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.tpl-terroir .sheet-title, .tpl-terroir .menu-sec-title { font-style: italic; }
.tpl-terroir .dish { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 6px; }
.tpl-terroir .dish-price { font-family: var(--script); font-size: 1.3rem; }
.tpl-terroir .cs-dock { border-radius: 8px; background: rgba(255,250,241,.92); border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.tpl-terroir .cs-dock a { border-radius: 6px; }
