/*
Theme Name: Tanuki
Description: Thème sur mesure pour le traiteur Tanuki Sushi (Genève). Éditeur de blocs + produits Pods.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: tanuki
*/

@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--ink: #1c1917;
	--ink-2: #2a2522;
	--paper: #fbf7f1;
	--paper-2: #f3ebdf;
	--line: #e7dccb;
	--muted: #6f655c;
	--red: #d6402c;
	--red-dark: #b03221;
	--sakura: #f9e0da;
	--matcha: #5b7650;
	--white: #fff;
	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 10px 30px -12px rgba(28, 25, 23, .18);
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1180px;
	--gutter: clamp(18px, 4vw, 32px);
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.005em;
	margin: 0 0 .5em;
	font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; font-variation-settings: "opsz" 30; }
p { margin: 0 0 1em; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Thème classique : les groupes de blocs ajoutent un conteneur interne, neutralisé ici. */
.wp-block-group__inner-container { display: contents; }
.wp-block-group > :last-child, .wp-block-group__inner-container > :last-child { margin-bottom: 0; }

/* ---------- Contenu des pages ---------- */
.entry > * { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.entry > .section, .entry > .alignfull { max-width: none; padding-inline: 0; }
.entry > :first-child:not(.section) { margin-top: clamp(40px, 6vw, 72px); }
.entry > :last-child:not(.section) { margin-bottom: clamp(56px, 8vw, 96px); }
.entry > p, .entry > ul, .entry > ol, .entry > h2, .entry > h3 { max-width: calc(760px + 2 * var(--gutter)); }

.section { padding-block: clamp(56px, 7vw, 96px); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #efe7dc; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding-block: clamp(36px, 5vw, 56px); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
	color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section__head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section__head p { color: #c9bfb3; }
.section__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--row > div { max-width: 640px; }

/* ---------- Boutons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button__link, .btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 26px; border-radius: 999px;
	font: 600 .98rem/1 var(--sans); text-decoration: none;
	background: var(--ink); color: #fff; border: 2px solid transparent;
	transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.wp-block-button__link:hover, .btn:hover { transform: translateY(-2px); color: #fff; background: var(--ink-2); }
.is-style-tnk-red .wp-block-button__link, .btn--red { background: var(--red); color: #fff; }
.is-style-tnk-red .wp-block-button__link:hover, .btn--red:hover { background: var(--red-dark); color: #fff; }
.is-style-tnk-ghost .wp-block-button__link { background: transparent; color: currentColor; border-color: currentColor; }
.is-style-tnk-ghost .wp-block-button__link:hover { background: transparent; color: var(--red); border-color: var(--red); }
.is-style-tnk-light .wp-block-button__link { background: #fff; color: var(--ink); }
.is-style-tnk-light .wp-block-button__link:hover { background: var(--sakura); color: var(--ink); }
.wp-block-button__link::after { content: "→"; font-weight: 400; transition: transform .2s ease; }
.wp-block-button__link:hover::after { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 247, 241, .86);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(28, 25, 23, .5); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 56px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font: 650 1.45rem/1 var(--serif); letter-spacing: -.01em; }
.brand__tag { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
	display: block; padding: 10px 16px; border-radius: 999px;
	color: var(--ink); text-decoration: none; font-weight: 550; font-size: .97rem;
	transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav .current-menu-item > a, .nav .current_page_item > a { color: var(--red); background: var(--sakura); }
.header-call {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 11px 18px; border-radius: 999px; background: var(--red); color: #fff;
	text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap;
	transition: background .2s ease;
}
.header-call:hover { background: var(--red-dark); color: #fff; }
.header-call svg { width: 17px; height: 17px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
	:root { --header-h: 66px; }
	.brand__mark { width: 46px; }
	.brand__name { font-size: 1.25rem; }
	.header-call span { display: none; }
	.header-call { padding: 11px; }
	.nav-toggle {
		display: inline-grid; place-items: center; width: 44px; height: 44px;
		border: 0; border-radius: 999px; background: var(--paper-2); cursor: pointer; padding: 0;
	}
	.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
		content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s ease, background .25s ease;
	}
	.nav-toggle span::before { position: absolute; top: -6px; }
	.nav-toggle span::after { position: absolute; top: 6px; }
	.nav-open .nav-toggle span { background: transparent; }
	.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
	.nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--paper); border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 18px; display: none;
	}
	.nav-open .nav { display: block; }
	.nav ul { flex-direction: column; }
	.nav a { padding: 14px 16px; font-size: 1.05rem; }
	.site-header__inner { gap: 10px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	background: var(--ink); color: #efe7dc;
	padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px);
}
.hero::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 140px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cg fill='%231c1917' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Ccircle cx='0' cy='0' r='27'/%3E%3Ccircle cx='0' cy='0' r='20'/%3E%3Ccircle cx='0' cy='0' r='13'/%3E%3Ccircle cx='56' cy='0' r='27'/%3E%3Ccircle cx='56' cy='0' r='20'/%3E%3Ccircle cx='56' cy='0' r='13'/%3E%3Ccircle cx='28' cy='14' r='27'/%3E%3Ccircle cx='28' cy='14' r='20'/%3E%3Ccircle cx='28' cy='14' r='13'/%3E%3Ccircle cx='0' cy='28' r='27'/%3E%3Ccircle cx='0' cy='28' r='20'/%3E%3Ccircle cx='0' cy='28' r='13'/%3E%3Ccircle cx='56' cy='28' r='27'/%3E%3Ccircle cx='56' cy='28' r='20'/%3E%3Ccircle cx='56' cy='28' r='13'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom left / 56px 28px;
	-webkit-mask: linear-gradient(transparent, #000);
	mask: linear-gradient(transparent, #000);
	pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: #ff8a73; font-weight: 500; }
.hero__lead { font-size: 1.15rem; color: #d6ccc0; max-width: 520px; margin-bottom: 32px; }
.hero .eyebrow { color: #ff8a73; }
.hero .is-style-tnk-ghost .wp-block-button__link { color: #fff; }
.hero__media { position: relative; margin: 0; }
.hero__media::before {
	content: ""; position: absolute; width: 74%; aspect-ratio: 1; right: -8%; top: -10%;
	border-radius: 50%; background: var(--red); opacity: .95; z-index: 0;
}
.hero__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.hero__media figcaption {
	position: absolute; z-index: 2; left: -22px; bottom: 28px; margin: 0;
	background: var(--paper); color: var(--ink); border-radius: 16px; padding: 14px 18px;
	box-shadow: var(--shadow); font-size: .95rem; line-height: 1.35; max-width: 260px; text-align: left;
}
.hero__media figcaption strong { display: block; font: 600 1.05rem/1.2 var(--serif); }
.hero__media figcaption a { color: var(--red-dark); font-weight: 600; text-decoration: none; }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { max-width: 560px; }
	.hero__media figcaption { left: 12px; bottom: -18px; }
}

/* ---------- Bandeau infos ---------- */
.infobar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.infobar li {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 22px 22px 22px 76px; line-height: 1.45; font-size: .97rem; color: var(--muted);
}
.infobar li strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.infobar li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.infobar li::before {
	content: ""; position: absolute; left: 20px; top: 22px; width: 40px; height: 40px; border-radius: 12px; background: var(--sakura);
}
.infobar li::after {
	content: ""; position: absolute; left: 30px; top: 32px; width: 20px; height: 20px; background: var(--red);
	-webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
@media (max-width: 900px) { .infobar { grid-template-columns: 1fr; } }

/* ---------- Annonce ---------- */
.notice {
	display: flex; gap: 14px; align-items: flex-start;
	background: var(--sakura); border: 1px solid #f2c3b9; color: #7a2417;
	border-radius: var(--radius); padding: 18px 22px; margin-top: 20px;
}
.notice::before {
	content: "!"; flex: none; width: 28px; height: 28px; border-radius: 50%;
	display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; font-size: .9rem; line-height: 1;
}
.notice p { margin: 0; }

/* ---------- Catégories (accueil) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.cat-card {
	position: relative; display: block; overflow: hidden; border-radius: var(--radius);
	aspect-ratio: 4 / 5; color: #fff; text-decoration: none; background: var(--ink); isolation: isolate;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); z-index: -1; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 25, 23, 0) 40%, rgba(28, 25, 23, .85)); z-index: -1; }
.cat-card:hover { color: #fff; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card__label { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; }
.cat-card__label strong { font: 600 1.45rem/1.1 var(--serif); }
.cat-card__label small { font-size: .85rem; opacity: .8; margin-top: 4px; }
.cat-card__label small::after { content: " →"; }

/* ---------- Commander ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 900px) { .split, .split--rev { grid-template-columns: 1fr; } }
.illus img { width: 100%; border-radius: 28px; }
.steps { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li {
	counter-increment: step; position: relative; padding: 18px 20px 18px 74px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); line-height: 1.5;
}
.steps li::before {
	content: counter(step); position: absolute; left: 18px; top: 16px; width: 40px; height: 40px; border-radius: 50%;
	display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 1.05rem/1 var(--serif);
}
.steps li strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 2px; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.pay li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.pay li:first-child { background: none; border: 0; padding-left: 0; font-weight: 400; color: var(--muted); }

/* ---------- Visite / horaires ---------- */
.visit { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: stretch; }
.visit__photo { margin: 0; }
.card .infos { grid-template-columns: 1fr; gap: 22px; }
.split .map { aspect-ratio: auto; height: 100%; min-height: 380px; }
.card .wp-block-buttons { margin-top: 8px; }
.visit__photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.section--dark .card { background: var(--ink-2); border-color: #3a332e; color: #efe7dc; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }

.hours { margin: 0 0 20px; }
.hours table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours.wp-block-table table { table-layout: auto; border: 0; }
.hours.wp-block-table td { padding: 11px 0; border: 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.hours.wp-block-table td:first-child { padding-right: 16px; }
.hours.wp-block-table td:last-child { white-space: nowrap; }
.hours.wp-block-table td:last-child { text-align: right; font-weight: 600; }
.hours.wp-block-table tr:last-child td { border-bottom: 0; }
.section--dark .hours.wp-block-table td, .site-footer .hours.wp-block-table td { border-color: #3d3631; }

.contact-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.contact-list li { position: relative; padding-left: 34px; line-height: 1.45; }
.contact-list li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: var(--red);
	-webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.contact-list a { color: inherit; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--red); }

.map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.gallery-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.gallery-2 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery-2 figure { margin: 0; }
@media (max-width: 640px) { .gallery-2 { grid-template-columns: 1fr; } }

/* ---------- Bandeau de page ---------- */
.page-hero {
	position: relative; background: var(--paper-2); text-align: center; overflow: hidden;
	padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px);
}
.page-hero::before {
	content: ""; position: absolute; inset: 0; opacity: .9;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cg fill='%23f3ebdf' stroke='%23d6402c' stroke-opacity='.10' stroke-width='1.2'%3E%3Ccircle cx='0' cy='0' r='27'/%3E%3Ccircle cx='0' cy='0' r='20'/%3E%3Ccircle cx='0' cy='0' r='13'/%3E%3Ccircle cx='56' cy='0' r='27'/%3E%3Ccircle cx='56' cy='0' r='20'/%3E%3Ccircle cx='56' cy='0' r='13'/%3E%3Ccircle cx='28' cy='14' r='27'/%3E%3Ccircle cx='28' cy='14' r='20'/%3E%3Ccircle cx='28' cy='14' r='13'/%3E%3Ccircle cx='0' cy='28' r='27'/%3E%3Ccircle cx='0' cy='28' r='20'/%3E%3Ccircle cx='0' cy='28' r='13'/%3E%3Ccircle cx='56' cy='28' r='27'/%3E%3Ccircle cx='56' cy='28' r='20'/%3E%3Ccircle cx='56' cy='28' r='13'/%3E%3C/g%3E%3C/svg%3E") repeat center / 56px 28px;
	-webkit-mask: radial-gradient(ellipse at center, transparent 30%, #000 85%);
	mask: radial-gradient(ellipse at center, transparent 30%, #000 85%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { margin: 0; }
.page-hero__lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 14px auto 0; }

/* ---------- Carte : onglets ---------- */
.menu-intro { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.menu-intro p { margin: 0; color: var(--muted); }

.menu-tabs { margin-top: 8px; }
.menu-tabs__nav {
	position: sticky; top: var(--header-h); z-index: 20;
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
	padding: 12px 2px; margin-bottom: 24px;
	background: var(--paper);
}
.admin-bar .menu-tabs__nav { top: calc(var(--header-h) + 32px); }
.menu-tabs__nav::-webkit-scrollbar { display: none; }
.menu-tabs__nav { position: -webkit-sticky; position: sticky; }
.menu-tab {
	flex: none; display: inline-flex; align-items: center; gap: 10px;
	padding: 9px 16px 9px 10px; border-radius: 999px;
	background: #fff; border: 1px solid var(--line); color: var(--ink);
	text-decoration: none; font-weight: 600; font-size: .98rem;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.menu-tab img { width: 28px; height: 28px; object-fit: contain; }
.menu-tab em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--paper-2); border-radius: 999px; padding: 3px 8px; }
.menu-tab:hover { border-color: var(--ink); color: var(--ink); }
.menu-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.menu-tab[aria-selected="true"] em { background: var(--red); color: #fff; }
.menu-tab[aria-selected="true"] img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .6)); }

/* Sans JavaScript : toutes les catégories s'affichent l'une après l'autre. */
.menu-panel { scroll-margin-top: calc(var(--header-h) + 80px); }
.menu-panel + .menu-panel { margin-top: 56px; }
.menu-tabs.is-ready .menu-panel + .menu-panel { margin-top: 0; }
.menu-tabs.is-ready .menu-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-panel[hidden] { display: none; }
.menu-panel__desc { color: var(--muted); max-width: 680px; }
.menu-tabs.is-ready .menu-panel:not([hidden]) { animation: tnk-fade .35s ease both; }
@keyframes tnk-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Produit ---------- */
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.dish {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
	border: 1px solid var(--line); overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
.dish:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dish__img { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.dish:hover .dish__img img { transform: scale(1.04); }
.dish__code {
	position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px;
	background: rgba(28, 25, 23, .78); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .04em;
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.dish__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.dish__title { font: 600 1.14rem/1.25 var(--serif); margin: 0; letter-spacing: -.005em; font-variation-settings: "opsz" 24; }
.dish__meta { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.dish__qty { color: var(--muted); font-size: .9rem; }
.dish__price { font: 650 1.2rem/1 var(--sans); color: var(--red-dark); white-space: nowrap; }
.dish__price small { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .05em; }
.dish-single { max-width: 420px; margin: 0 auto 40px; }
@media (max-width: 560px) {
	.dish-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.dish__body { padding: 12px 12px 14px; gap: 6px; }
	.dish__title { font-size: 1rem; }
	.dish__price { font-size: 1.02rem; }
	.dish__code { left: 8px; top: 8px; font-size: .68rem; padding: 4px 8px; }
	.menu-tab { padding: 7px 13px 7px 8px; font-size: .92rem; }
	.menu-tab img { width: 24px; height: 24px; }
}
.tnk-empty { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #cfc5b9; padding-top: clamp(56px, 7vw, 88px); font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ff8a73; }
.site-footer__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.site-footer__brand img { width: 72px; margin-bottom: 14px; background: var(--paper); border-radius: 18px; padding: 8px; }
.site-footer__name { font: 600 1.6rem/1.1 var(--serif); color: #fff; margin-bottom: 8px; }
.site-footer__brand p:last-child { max-width: 320px; }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center;
	border-top: 1px solid #3a332e; padding-block: 22px; font-size: .88rem; color: #9b9086;
}
.site-footer__bottom ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.site-footer__bottom a { color: #cfc5b9; text-decoration: none; }
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.infos > * { min-width: 0; }
@media (max-width: 900px) { .site-footer__grid, .infos { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Divers ---------- */
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.post-list time { color: var(--muted); font-size: .9rem; }
.wp-block-image { margin: 0 0 1.5em; }
.wp-block-image img { border-radius: var(--radius-sm); }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 40px auto; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- Icônes (classe icon-xxx sur un élément de liste) ---------- */
.icon-pin { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.icon-clock { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.icon-phone { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.icon-file { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
.icon-bag { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l1 14H5z'/%3E%3Cpath d='M9 10V6a3 3 0 0 1 6 0v4'/%3E%3C/svg%3E"); }

/* Mobile : toutes les catégories visibles d'un coup (pas de défilement horizontal caché). */
@media (max-width: 700px) {
	.menu-tabs__nav { position: static; flex-wrap: wrap; gap: 8px; overflow: visible; padding: 4px 0; margin-bottom: 18px; }
	.menu-tab { flex: 1 1 calc(33.333% - 8px); flex-direction: column; justify-content: center; gap: 4px; padding: 10px 4px 8px; border-radius: 16px; font-size: .88rem; text-align: center; }
	.menu-tab img { width: 28px; height: 28px; }
	.menu-tab em { display: none; }
}
