/*
Theme Name: Kowloon
Description: Thème de blocs sur mesure du restaurant Kowloon (Strasbourg). Charte graphique Kowloon 2026.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: kowloon
Update URI: false
*/

/* Charte graphique Kowloon 2026, valeurs dans theme.json. Cubano n'a pas Ç, Œ, ß ni € : ces signes passent en Lilita One. */
:root {
	--egg-tart: var(--wp--preset--color--egg-tart);
	--porcelain: var(--wp--preset--color--porcelain);
	--mahogany: var(--wp--preset--color--mahogany);
	--blue-house: var(--wp--preset--color--blue-house);
	--bauhinia: var(--wp--preset--color--bauhinia);
	--curry-fish-ball: var(--wp--preset--color--curry-fish-ball);
	--f-titres: var(--wp--preset--font-family--titres);
	--f-texte: var(--wp--preset--font-family--texte);
	--f-accent: var(--wp--preset--font-family--accent);
	--f-han-grand: var(--wp--preset--font-family--han-grand);
	--f-han-petit: var(--wp--preset--font-family--han-petit);
	--stroke-lattice: 1px;
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	/* Un élément atteint au clavier ne passe pas sous la barre du bas, ni sous la zone de la barre d'accueil de l'iPhone. */
	scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
body {
	margin: 0;
	background: var(--egg-tart);
	color: var(--porcelain);
	font-family: var(--f-texte);
	font-size: 16px;
	line-height: 1.55;
}
a {
	color: inherit;
}
:focus-visible {
	outline: 2px solid var(--bauhinia);
	outline-offset: 3px;
}
/* Sections sombres : fond noyer, encre ivoire. */
.noyer {
	background: var(--mahogany);
	color: var(--egg-tart);
}
.noyer :focus-visible {
	outline-color: var(--egg-tart);
}
/* Charte : jamais de rose sur le bleu foncé, les coins roses restent sur noyer. */
.noyer .coin {
	background: var(--bauhinia);
}
.ciel {
	background: var(--blue-house);
}
/* Lattices : cadre double à coins chinois et filet double à nœud. */
.cadre,
.is-style-cadre {
	position: relative;
	padding: 40px 24px;
	border: var(--stroke-lattice) solid currentColor;
	outline: var(--stroke-lattice) solid currentColor;
	outline-offset: -6px;
}
.cadre > .coin,
.is-style-cadre > .coin {
	position: absolute;
	width: 30px;
	height: 30px;
	background: currentColor;
	mask: url('assets/brand/lattice-coin.svg') center / contain no-repeat;
}
.coin.hg {
	top: 4px;
	left: 4px;
}
.coin.hd {
	top: 4px;
	right: 4px;
	transform: scaleX(-1);
}
.coin.bg {
	bottom: 4px;
	left: 4px;
	transform: scaleY(-1);
}
.coin.bd {
	bottom: 4px;
	right: 4px;
	transform: scale(-1);
}
.filet {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
}
.filet::before,
.filet::after {
	content: '';
	height: 5px;
	border-block: var(--stroke-lattice) solid currentColor;
}
.filet > i {
	width: 26px;
	height: 26px;
	background: var(--bauhinia);
	mask: url('assets/brand/lattice-noeud.svg') center / contain no-repeat;
}
.svg-ink svg {
	display: block;
	width: 100%;
	height: auto;
}

.wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding-inline: 20px;
}
section {
	padding-block: 56px;
}
h2,
h3 {
	font-family: var(--f-titres);
	font-weight: 400;
	line-height: 1;
	margin: 0 0 12px;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-wrap: balance;
}
h2 {
	font-size: clamp(2.2rem, 6vw, 3.4rem);
}
h3 {
	font-size: 1.6rem;
	margin: 0;
}
p {
	margin: 0 0 8px;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.lbl {
	display: block;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.script {
	font-family: var(--f-accent);
	font-size: 2rem;
	line-height: 1.1;
	color: var(--mahogany);
}
.noyer .script {
	color: var(--egg-tart);
}
.lead {
	font-size: 1.1rem;
	max-width: 46ch;
}
.small {
	font-size: 0.82rem;
}
.han {
	font-family: var(--f-han-petit);
	font-weight: 400;
}
.han-xl {
	font-family: var(--f-han-grand);
	color: var(--bauhinia);
	line-height: 1;
}
.row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}
.btn,
.wp-block-button__link {
	display: inline-block;
	font: 700 0.9rem/1 var(--f-texte);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid var(--porcelain);
	background: var(--porcelain);
	color: var(--egg-tart);
	padding: 14px 20px;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover,
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 0 var(--mahogany);
}
.btn-alt,
.is-style-contour .wp-block-button__link {
	background: transparent;
	color: var(--porcelain);
}
.btn-ivoire {
	background: var(--egg-tart);
	border-color: var(--egg-tart);
	color: var(--mahogany);
}
.btn-ivoire:hover {
	box-shadow: 0 4px 0 var(--bauhinia);
}
@media (prefers-reduced-motion: reduce) {
	.btn,
	.wp-block-button__link {
		transition: none;
	}
	.btn:hover,
	.wp-block-button__link:hover {
		transform: none;
	}
}
.link {
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration-color: var(--bauhinia);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* En-tête : sur téléphone, bandeau d'arrivée qui part au défilement ; la navigation est dans la barre du bas. */
.head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 14px 0 20px;
	background: var(--egg-tart);
}
.nom {
	/* Cible de 44 px de haut au pouce, comme les liens de langue : le texte seul en fait 20. */
	padding-block: 12px;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}
.brand {
	display: none;
	width: 72px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s;
}
.head.show-brand .brand {
	opacity: 1;
	visibility: visible;
}
.nav {
	display: none;
	align-items: center;
	gap: 28px;
}
.nav a:not(.btn) {
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}
.lang {
	display: flex;
	gap: 2px;
	font-weight: 700;
	font-size: 0.8rem;
}
.lang a {
	padding: 12px 6px;
	text-decoration: none;
}
.lang a[aria-current] {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Bandeau défilant */
.ticker {
	overflow: hidden;
}
.ticker-track {
	display: flex;
	width: max-content;
	padding: 10px 0;
	font-family: var(--f-titres);
	font-size: 1.25rem;
	text-transform: uppercase;
	white-space: nowrap;
	animation: defile 30s linear infinite;
}
.ticker-track span::after {
	content: '九龍';
	font-family: var(--f-han-grand);
	font-size: 1rem;
	margin-inline: 28px;
	color: var(--bauhinia);
}
/* Titre trop long pour sa colonne : coupé sans JavaScript ou sous réduction des animations, sinon il défile (kowloon.js). */
main :is(h1, h2, h3) {
	overflow-wrap: break-word;
	hyphens: auto;
}
/* Animations permises : le JS pose .titres-defilants, aucun titre ne se coupe. */
.titres-defilants main :is(h1, h2, h3),
main :is(h1, h2, h3).titre-mesure,
main :is(h1, h2, h3).titre-defile {
	overflow-wrap: normal;
	hyphens: manual;
}
.titre-defile {
	min-width: 0;
	overflow-x: clip;
	cursor: pointer;
}
.titre-piste {
	display: block;
}
@keyframes defile {
	to {
		transform: translateX(-50%);
	}
}
@media (prefers-reduced-motion: reduce) {
	.ticker-track {
		animation: none;
	}
}

/* Accueil : motif de nuages de la charte à gauche, texte à droite. */
.hero {
	position: relative;
	display: grid;
	justify-items: center;
	text-align: center;
	padding-block: 0;
	overflow: hidden;
}
.hero-visuel {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	padding: 48px 20px;
}
.hero-visuel::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--bauhinia);
	opacity: 0.2;
	mask: url('assets/brand/motif-nuages.svg') 0 0 / 150px auto repeat;
}
.hero-logo {
	position: relative;
	width: min(100%, 340px);
}
.hero-text {
	display: grid;
	gap: 12px;
	justify-items: center;
	padding: 40px 20px 56px;
}
.accroche {
	margin: 0;
	font-family: var(--f-titres);
	font-size: 1.5rem;
	line-height: 1.1;
	text-transform: uppercase;
}
.hero .row {
	justify-content: center;
	margin-top: 8px;
}
.hero .han-xl {
	display: none;
	position: absolute;
	right: -0.15em;
	top: 50%;
	font-size: clamp(5.5rem, 11vw, 12rem);
	writing-mode: vertical-rl;
	white-space: nowrap;
	transform: translateY(-50%);
	opacity: 0.2;
	pointer-events: none;
}

/* Infos express */
.express {
	padding-block: 20px;
}
.express-in {
	display: grid;
	gap: 14px;
	justify-items: center;
	text-align: center;
}
.express .row {
	justify-content: center;
}
.express p {
	margin: 0;
}
.express .plage,
.numero {
	white-space: nowrap;
}
.infos .telephone {
	margin-top: 4px;
}
.gbook {
	display: inline-grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	align-items: center;
	text-align: start;
	text-decoration: none;
}
.g {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid currentColor;
	display: grid;
	place-items: center;
	font-weight: 700;
}

/* Groupes */
.groups {
	display: grid;
	gap: 32px;
}
.groups-intro {
	position: relative;
}
.sticker {
	display: inline-grid;
	place-items: center;
	width: 92px;
	height: 92px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--bauhinia);
	color: var(--mahogany);
	font-family: var(--f-titres);
	font-size: 1.6rem;
	text-transform: uppercase;
	transform: rotate(-12deg);
}
.form {
	display: grid;
	gap: 18px;
}
.two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
label {
	display: grid;
	gap: 2px;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
input,
select,
textarea {
	font: inherit;
	font-weight: 400;
	font-size: 1rem;
	letter-spacing: 0;
	text-transform: none;
	color: inherit;
	background: transparent;
	border: 0;
	border-bottom: var(--stroke-lattice) solid currentColor;
	border-radius: 0;
	padding: 8px 0;
	width: 100%;
	min-width: 0;
}
/* Le focus d'une date se pose sur ses parties, jamais sur le champ : le contour vient de ce champ. */
input[type='date']:focus-within {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}
/* Sur le noyer, le calendrier et les flèches du navigateur passent en clair, sinon ils ne se voient pas. */
.noyer input[type='date'],
.noyer input[type='number'] {
	color-scheme: dark;
}
::placeholder {
	color: inherit;
	opacity: 1;
}
select option {
	color: var(--mahogany);
}
textarea {
	min-height: 60px;
	resize: vertical;
}
.consent {
	grid-template-columns: 16px 1fr;
	gap: 10px;
	align-items: start;
	font-weight: 400;
	font-size: 0.85rem;
	letter-spacing: 0;
	text-transform: none;
}
.consent input {
	width: 14px;
	height: 14px;
	margin-top: 3px;
	padding: 0;
}
.form .btn {
	justify-self: start;
}
.sent {
	border-top: var(--stroke-lattice) solid currentColor;
	padding-top: 12px;
}

/* Marché de Noël */
.noel-in {
	text-align: center;
}
.noel-in .lead {
	margin-inline: auto;
}
.noel-in .row {
	justify-content: center;
	margin-top: 20px;
}
/* Horaires en évidence : même grille que les infos pratiques, plus grande, centrée. */
.noel-horaires {
	max-width: 30rem;
	margin: 20px auto 0;
	font-size: 1.15rem;
	font-weight: 700;
}
.noel-horaires div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: var(--stroke-lattice) solid currentColor;
	text-align: left;
}
.noel-horaires dd {
	margin: 0;
	text-align: right;
}
.noel-horaires .jour,
.noel-horaires .plage {
	white-space: nowrap;
}

/* Page introuvable */
/* Page courte : le pied de page et son logo restent sous l'écran, un seul logo visible. */
.introuvable {
	min-height: 100vh;
}
.introuvable .wrap {
	text-align: center;
}
.introuvable h1 {
	font-family: var(--f-titres);
	font-weight: 400;
	font-size: clamp(2.2rem, 6vw, 3.4rem);
	line-height: 1;
	margin: 0 0 12px;
	text-transform: uppercase;
	text-wrap: balance;
	overflow-wrap: anywhere;
}
.introuvable .illu {
	margin: 0 auto 24px;
}
.introuvable .lead {
	margin-inline: auto;
}
.introuvable .row {
	justify-content: center;
	margin-top: 20px;
}

/* Carte */
.section-head {
	text-align: center;
	margin-bottom: 32px;
}
.menu {
	display: grid;
	gap: 48px;
}
.rubrique {
	display: grid;
	gap: 12px;
	align-content: start;
}
.rubrique-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.rubrique-head .han {
	color: var(--bauhinia);
	font-size: 1.6rem;
	line-height: 1;
}
.dish {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 12px;
	align-items: baseline;
}
.dish-name {
	min-width: 0;
	overflow-wrap: anywhere;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.dish-name .han {
	margin-left: 6px;
	font-size: 0.95rem;
	text-transform: none;
}
.price {
	white-space: nowrap;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.desc {
	grid-column: 1 / -1;
	font-size: 0.92rem;
}
.evin {
	font-size: 0.82rem;
	font-style: italic;
}
.rubrique-sous-titre {
	margin: 0;
	font-size: 0.92rem;
	font-style: italic;
}
/* Marque texte : une icône de la charte pourra la remplacer, le texte restant pour les lecteurs d'écran. */
.mentions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.mention {
	padding: 0 6px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.menu-mentions {
	grid-column: 1 / -1;
	display: grid;
	gap: 4px;
}
/* Prix et allergènes : même niveau, même style, dans le cadre (#164). */
.menu-mention,
.menu-allergenes {
	margin: 0;
	font-size: 0.82rem;
	font-style: italic;
	text-align: center;
}
/* Charte : l'illustration est ancrée à un bord, ici posée sur le filet du bas. */
.illu {
	width: 150px;
	justify-self: end;
	margin-top: 8px;
	padding-bottom: 6px;
	border-bottom: 5px double currentColor;
}
/* Formules : même composition qu'une rubrique, sans illustration. */
.formules {
	grid-column: 1 / -1;
	display: grid;
	gap: 48px;
}
.formule {
	display: grid;
	gap: 12px;
	align-content: start;
	min-width: 0;
}
.formule-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
}
.formule-head h3 {
	min-width: 0;
	overflow-wrap: anywhere;
}
.formule-head .han {
	color: var(--bauhinia);
	font-size: 1.6rem;
	line-height: 1;
	overflow-wrap: anywhere;
}
.formule-service {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.formule-tarifs,
.formule-lignes {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-wrap: anywhere;
}
.formule-tarifs {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.formule-bloc h4 {
	margin: 0 0 4px;
	font-size: 0.92rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.formule-lignes {
	font-size: 0.92rem;
}
.formule-lignes .ou {
	font-style: italic;
}

/* Carte en trois onglets (#145), piste « B · Trois cartes » de la maquette : une rubrique par bande, plats sur deux colonnes. */
.cartes-onglets {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 36px;
	margin-bottom: 32px;
}
.cartes-onglets[hidden],
.carte-groupe[hidden] {
	display: none;
}
.cartes-onglets button {
	padding: 10px 2px;
	border: 0;
	border-bottom: 4px solid transparent;
	background: none;
	color: inherit;
	font: 400 1.5rem/1 var(--f-titres);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	cursor: pointer;
}
.cartes-onglets button[aria-selected='true'] {
	border-bottom-color: var(--bauhinia);
}
/* Double filet de la charte autour de la carte affichée. */
.menu {
	/* minmax(0, 1fr) : la carte se rétrécit sous la largeur de son contenu le plus long, au lieu de déborder. */
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	padding: 48px 12px;
	border: var(--stroke-lattice) solid currentColor;
	outline: var(--stroke-lattice) solid currentColor;
	outline-offset: -6px;
}
/* L'écart entre deux rubriques est une marge, pas un gap : la mention Evin suit le dernier filet de près (17 novembre, Édouard). */
.carte-groupe {
	--ecart-rubriques: 72px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
}
.carte-groupe > * + * {
	margin-top: var(--ecart-rubriques);
}
.carte-groupe > .evin {
	margin: 32px 0 0;
}
/* Sans le script, les cartes se suivent avec l'écart de deux rubriques. La mention des prix reste près de la carte (11 novembre, Édouard). */
.carte-groupe + .carte-groupe {
	margin-top: 40px;
}
.menu .rubrique {
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	min-width: 0;
}
.menu .rubrique-head {
	flex-wrap: wrap;
}
.menu .rubrique-head h3 {
	/* Un mot plus large que la colonne défile (titre-piste, kowloon.js) : pas de coupure au milieu du mot. */
	min-width: 0;
	font-size: clamp(1.6rem, 5.2vw, 3rem);
}
.menu .rubrique-head .han {
	min-width: 0;
	font-size: clamp(1.7rem, 4.4vw, 2.6rem);
	overflow-wrap: anywhere;
}
.menu .rubrique-sous-titre {
	font-size: 1rem;
}
.plats {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	margin-top: 12px;
}
.menu .dish {
	gap: 4px 16px;
	align-content: start;
}
.menu .dish-name .han {
	display: block;
	margin: 2px 0 0;
}
.menu .desc {
	font-size: 1rem;
}
/* Le filet à nœud ferme la rubrique. L'illustration est le dernier élément de la grille des plats, dans la colonne de droite :
   à côté du dernier plat quand leur nombre est impair, sur sa propre ligne sinon (11 novembre, Édouard). */
.menu .rubrique > .filet {
	order: 9;
}
.menu .illu {
	grid-column: -2;
	justify-self: end;
	align-self: end;
	width: auto;
	max-width: 100%;
	margin: 0 12px 0 0;
	padding: 0;
	border: 0;
}
.menu .illu svg {
	width: auto;
	max-width: 100%;
	height: 130px;
}
/* Formules : feuillets centrés, séparés par un simple filet, sans cadre dans le cadre de la carte (#165, 16 novembre, Édouard). */
.menu .formules {
	gap: 64px;
}
.menu .formule {
	position: relative;
	gap: 16px;
	text-align: center;
}
/* Sur téléphone, le filet est horizontal, au milieu de l'écart entre deux formules. */
.menu .formule + .formule::before {
	content: '';
	position: absolute;
	top: -32px;
	left: 20%;
	right: 20%;
	border-top: var(--stroke-lattice) solid currentColor;
}
.menu .formule-head {
	flex-direction: column;
	align-items: center;
}
.menu .formule-head h3 {
	font-family: var(--f-accent);
	font-size: 2rem;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: none;
	color: var(--mahogany);
}
.menu .formule-head .han {
	font-size: 1.3rem;
}
.menu .formule-bloc h4 {
	font-family: var(--f-titres);
	font-weight: 400;
	font-size: 1.25rem;
}
.menu .formule-lignes {
	font-size: 1rem;
}

/* Esprit */
.spirit-in {
	display: grid;
	gap: 16px;
	align-items: center;
}
.spirit .han-xl {
	font-size: clamp(5rem, 18vw, 10rem);
}

/* Infos pratiques */
.infos {
	display: grid;
	gap: 32px;
}
.infos .is-style-cadre h3 {
	margin-top: 20px;
	font-size: 1.2rem;
}
.hours {
	margin: 8px 0 0;
}
.hours div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: var(--stroke-lattice) solid currentColor;
}
.hours dd {
	margin: 0;
	text-align: right;
}
.hours .jour,
.hours .plage {
	white-space: nowrap;
}
.infos .is-style-cadre .wp-block-buttons {
	margin-top: 12px;
}
details {
	border-bottom: var(--stroke-lattice) solid currentColor;
	padding: 14px 0;
}
summary {
	cursor: pointer;
	font-weight: 700;
}
details p {
	margin-top: 8px;
}

/* Pied de page et barre mobile */
.foot {
	padding-block: 32px 100px;
}
.foot-in {
	display: grid;
	gap: 16px;
	justify-items: center;
	text-align: center;
}
.foot-logo {
	width: 96px;
}
.links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.links a {
	text-decoration: none;
}
.foot-bas {
	display: grid;
	gap: 8px;
}
.foot-bas p {
	margin: 0;
}
.credits {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 16px;
}
.bar {
	position: fixed;
	inset: auto 0 0;
	z-index: 6;
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr 1fr;
	padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
	background: var(--egg-tart);
	border-top: 2px solid var(--porcelain);
}
.bar a {
	text-align: center;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 15px 2px;
	border-left: var(--stroke-lattice) solid var(--porcelain);
}
.bar a:first-child {
	border-left: 0;
}
.bar a.main {
	background: var(--porcelain);
	color: var(--egg-tart);
}
/* Contour à l'intérieur de la case : dehors, il mordrait sur le bouton bleu voisin. */
.bar a:focus-visible {
	outline-offset: -5px;
}
.bar a.main:focus-visible {
	outline-color: var(--egg-tart);
}

@media (min-width: 760px) {
	html {
		scroll-padding-top: 72px;
		scroll-padding-bottom: 0;
	}
	.wrap {
		padding-inline: 64px;
	}
	.head {
		position: sticky;
		top: 0;
		z-index: 5;
		padding: 12px 64px;
		border-bottom: var(--stroke-lattice) solid var(--porcelain);
	}
	.nom {
		display: none;
	}
	.brand {
		display: block;
	}
	.lang {
		gap: 10px;
	}
	.lang a {
		padding: 0;
	}
	.nav {
		display: flex;
	}
	.bar {
		display: none;
	}
	section {
		padding-block: 88px;
	}
	.hero {
		grid-template-columns: 47% 1fr;
		justify-items: start;
		text-align: left;
		align-items: center;
		min-height: clamp(460px, 44vw, 680px);
	}
	.hero-visuel {
		align-self: stretch;
		padding: 48px 8%;
	}
	.hero-visuel::before {
		mask-size: clamp(130px, 16vw, 260px) auto;
	}
	.hero-logo {
		width: min(100%, 620px);
	}
	.hero-text {
		justify-items: start;
		padding: 48px 13vw 48px 6%;
	}
	.hero .han-xl {
		display: block;
	}
	.hero .row {
		justify-content: start;
	}
	.accroche {
		font-size: clamp(1.4rem, 2vw, 1.9rem);
	}
	.express-in {
		grid-template-columns: 1fr auto auto;
		gap: 40px;
		align-items: center;
		justify-items: stretch;
		text-align: start;
	}
	.express .row {
		justify-content: start;
	}
	.groups,
	.infos {
		grid-template-columns: 1fr 1.2fr;
		gap: 80px;
		align-items: start;
	}
	.cartes-onglets button {
		font-size: 2rem;
	}
	.menu {
		gap: 32px;
		padding: 88px 80px 48px;
	}
	.carte-groupe + .carte-groupe {
		margin-top: 64px;
	}
	.carte-groupe {
		--ecart-rubriques: 96px;
	}
	.plats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 72px;
	}
	.menu .illu {
		margin-right: 48px;
	}
	.menu .illu svg {
		height: 210px;
	}
	.formules,
	.menu .formules {
		grid-template-columns: repeat(3, 1fr);
		align-items: stretch;
		gap: 56px;
	}
	/* Sur écran large, le filet est vertical, au milieu de l'écart entre deux colonnes. */
	.menu .formule + .formule::before {
		top: 0;
		bottom: 0;
		left: -28px;
		right: auto;
		border-top: 0;
		border-left: var(--stroke-lattice) solid currentColor;
	}
	/* Une ou deux formules : colonnes d'un tiers, groupe centré. */
	.formules:has(> .formule:first-child:nth-last-child(2)) {
		grid-template-columns: repeat(2, calc((100% - 112px) / 3));
		justify-content: center;
	}
	.formules:has(> .formule:only-child) {
		grid-template-columns: calc((100% - 112px) / 3);
		justify-content: center;
	}
	.spirit-in {
		grid-template-columns: auto 1fr;
		gap: 64px;
	}
	.foot {
		padding-bottom: 32px;
	}
	.foot-in {
		grid-template-columns: auto 1fr;
		justify-items: start;
		text-align: left;
		gap: 24px 32px;
		align-items: center;
	}
	.foot .links {
		justify-content: start;
	}
	.foot-bas {
		grid-column: 1 / -1;
		justify-self: stretch;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 8px 32px;
	}
}
