/* Carte Restaurant : styles publics.
   Tous les sélecteurs commencent par .crest-menu pour l'emporter sur les styles du thème.
   La couleur d'accentuation et les polices viennent des réglages (--crest-accent, --crest-font-*). */

.crest-menu {
	--crest-accent: #7b2d3b;
	--crest-line: rgba(128, 128, 128, 0.35);
	display: flow-root;
	position: relative;
	clear: both;
	float: none;
	width: auto;
	max-width: 1080px;
	height: auto;
	margin: 0 auto;
	padding: 0 1rem;
	box-sizing: border-box;
	line-height: 1.55;
	text-align: left;
	font-family: var(--crest-font-item, inherit);
}
.crest-menu *,
.crest-menu *::before,
.crest-menu *::after {
	box-sizing: border-box;
}

/* Neutralise les styles de thème qui sortent les éléments du flux (flottants, positions, hauteurs fixes) */
.crest-menu .crest-section,
.crest-menu .crest-items,
.crest-menu .crest-item,
.crest-menu .crest-item__body,
.crest-menu .crest-item__head,
.crest-menu .crest-item__title,
.crest-menu .crest-item__prices,
.crest-menu .crest-item__prices li {
	position: relative;
	float: none;
	height: auto;
	min-height: 0;
	max-height: none;
	overflow: visible;
	transform: none;
	top: auto;
	left: auto;
}

/* Le détail des plats suit la police choisie, même si le thème impose la sienne */
.crest-menu .crest-item,
.crest-menu .crest-item *,
.crest-menu .crest-nav a,
.crest-menu .crest-section__desc,
.crest-menu .crest-notice {
	font-family: inherit;
}

/* Navigation entre sections */
.crest-menu .crest-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0 0 2.5rem;
	padding: 0;
}
.crest-menu .crest-nav a {
	display: inline-block;
	padding: 0.35rem 1rem;
	border: 1px solid var(--crest-line);
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	font-size: 0.95rem;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.crest-menu .crest-nav a:hover,
.crest-menu .crest-nav a:focus-visible {
	background: var(--crest-accent);
	border-color: var(--crest-accent);
	color: #fff;
}
.crest-menu .crest-nav a:focus-visible {
	outline: 2px solid var(--crest-accent);
	outline-offset: 2px;
}

/* Sections */
.crest-menu .crest-section {
	display: block;
	margin: 0 0 3.25rem;
	padding: 0;
	scroll-margin-top: 90px;
}
.crest-menu .crest-section .crest-section {
	margin: 2.5rem 0 0;
}
.crest-menu .crest-section--notitle > .crest-section {
	margin: 0 0 3.25rem;
}
.crest-menu .crest-section--notitle > .crest-section__desc {
	margin-bottom: 2rem;
}
.crest-menu .crest-section__title {
	margin: 0 0 0.35rem;
	padding: 0;
	line-height: 1.2;
	font-family: var(--crest-font-title, Georgia, "Times New Roman", serif);
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
}
.crest-menu .crest-level-2 > .crest-section__title {
	font-size: clamp(1.8rem, 3.2vw, 2.4rem);
	text-align: center;
}
.crest-menu .crest-level-2 > .crest-section__title::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 3px;
	margin: 0.8rem auto 0;
	background: var(--crest-accent);
	border-radius: 2px;
}
.crest-menu .crest-level-3 > .crest-section__title,
.crest-menu .crest-level-4 > .crest-section__title {
	font-size: 1.45rem;
	color: var(--crest-accent);
	font-style: italic;
	font-weight: 500;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--crest-line);
}
.crest-menu .crest-section__desc {
	margin: 0.4rem 0 0;
	padding: 0;
	opacity: 0.75;
	font-style: italic;
}
.crest-menu .crest-level-2 > .crest-section__desc {
	text-align: center;
}

/* Liste des articles */
.crest-menu .crest-items {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem 3.5rem;
	margin: 1.6rem 0 0;
	padding: 0;
	width: 100%;
}
.crest-menu.crest-cols-2 .crest-items {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
	.crest-menu.crest-cols-2 .crest-items {
		grid-template-columns: minmax(0, 1fr);
	}
}

.crest-menu .crest-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin: 0;
	padding: 0;
	width: auto;
	min-width: 0;
	border: 0;
	background: none;
	break-inside: avoid;
}
.crest-menu .crest-item__img {
	flex: 0 0 76px;
	margin: 0;
	padding: 0;
}
.crest-menu .crest-item__img img {
	display: block;
	width: 76px;
	height: 76px;
	max-width: none;
	margin: 0;
	object-fit: cover;
	border-radius: 50%;
}
/* Colonne : ligne nom + prix, puis précisions, description, formats et allergènes, chacun sur sa propre ligne */
.crest-menu .crest-item__body {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0;
}
.crest-menu .crest-item__body > * {
	display: block;
	width: 100%;
	clear: both;
}
.crest-menu .crest-item__body > .crest-item__head {
	display: flex;
}
.crest-menu .crest-item__body > .crest-item__prices {
	display: flex;
	width: auto;
}

/* Nom + prix relié par des points */
.crest-menu .crest-item__head {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
}
.crest-menu .crest-item__title {
	display: block;
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
}
.crest-menu .crest-item__name {
	display: inline;
	margin: 0;
	padding: 0;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
}
.crest-menu .crest-item__leader {
	display: block;
	flex: 1 1 1rem;
	min-width: 1rem;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 2px dotted var(--crest-line);
}
.crest-menu .crest-item__price {
	display: block;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	font-weight: 700;
	white-space: nowrap;
	color: var(--crest-accent);
}
.crest-menu .crest-item__price small {
	margin-right: 0.4em;
	font-size: 0.8em;
	font-weight: 400;
	opacity: 0.75;
}

/* Pastilles */
.crest-menu .crest-badges {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin: 0 0 0 0.5rem;
	vertical-align: middle;
}
.crest-menu .crest-badge {
	display: inline-block;
	padding: 0.05rem 0.5rem;
	border: 1px solid var(--crest-accent);
	border-radius: 999px;
	color: var(--crest-accent);
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
}

.crest-menu .crest-item__details {
	margin: 0.15rem 0 0;
	padding: 0;
	font-size: 0.88rem;
	opacity: 0.7;
}
.crest-menu .crest-item__desc {
	margin: 0.3rem 0 0;
	padding: 0;
	font-size: 0.95rem;
	opacity: 0.85;
}
.crest-menu .crest-item__allergens {
	margin: 0.35rem 0 0;
	padding: 0;
	font-size: 0.78rem;
	opacity: 0.6;
}

/* Plusieurs formats (verre, pichet, bouteille) */
.crest-menu .crest-item__prices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.6rem;
	margin: 0.55rem 0 0;
	padding: 0;
	list-style: none;
}
.crest-menu .crest-item__prices li {
	display: block;
	margin: 0;
	padding: 0.15rem 0.75rem;
	border: 1px solid var(--crest-line);
	border-radius: 999px;
	font-size: 0.92rem;
	list-style: none;
}
.crest-menu .crest-item__prices li::before,
.crest-menu .crest-item__prices li::marker {
	content: none;
}
.crest-menu .crest-price-label {
	margin-right: 0.4em;
	opacity: 0.75;
}
.crest-menu .crest-price-amount {
	font-weight: 700;
	color: var(--crest-accent);
}

/* Épuisé */
.crest-menu .crest-item.is-unavailable .crest-item__name {
	text-decoration: line-through;
	opacity: 0.55;
}
.crest-menu .crest-item.is-unavailable .crest-item__desc,
.crest-menu .crest-item.is-unavailable .crest-item__details {
	opacity: 0.4;
}
.crest-menu .crest-soldout {
	display: block;
	flex: 0 0 auto;
	font-size: 0.85rem;
	font-style: italic;
	opacity: 0.7;
	white-space: nowrap;
}

.crest-menu .crest-notice {
	margin: 2rem 0 0;
	text-align: center;
	font-size: 0.85rem;
	opacity: 0.65;
}
.crest-warning {
	margin: 0 0 1rem;
	padding: 0.6rem 0.9rem;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	color: #8a2424;
	font: 14px/1.4 system-ui, sans-serif;
}
.crest-empty {
	text-align: center;
	opacity: 0.7;
}

@media print {
	.crest-menu .crest-nav,
	.crest-menu .crest-item__img {
		display: none;
	}
}

/* ------------------------------------------------------------------
   Disposition « colonnes » : sections côte à côte, nom à gauche, prix à droite
   (sans pointillés), description dessous. Réglé par affichage="colonnes".
   ------------------------------------------------------------------ */
.crest-menu .crest-sections {
	display: block;
}
.crest-menu.crest-layout-colonnes {
	max-width: 1280px;
}
.crest-menu.crest-layout-colonnes .crest-sections,
.crest-menu.crest-layout-colonnes .crest-section--notitle {
	display: grid;
	grid-template-columns: repeat(var(--crest-sec-cols, 3), minmax(0, 1fr));
	gap: 3rem 4rem;
	align-items: start;
}
.crest-menu.crest-layout-colonnes .crest-section--notitle {
	grid-column: 1 / -1;
	margin: 0;
}
.crest-menu.crest-layout-colonnes .crest-section--notitle > .crest-items,
.crest-menu.crest-layout-colonnes .crest-section--notitle > .crest-section__desc,
.crest-menu.crest-layout-colonnes .crest-sections > .crest-section:only-child {
	grid-column: 1 / -1;
}
.crest-menu.crest-layout-colonnes .crest-sections > .crest-section,
.crest-menu.crest-layout-colonnes .crest-section--notitle > .crest-section {
	margin: 0;
}

/* Titres de colonnes : à gauche, couleur d'accentuation, sans filet */
.crest-menu.crest-layout-colonnes .crest-level-2 > .crest-section__title {
	margin: 0 0 1.2rem;
	font-size: clamp(2rem, 3.4vw, 2.8rem);
	font-weight: 400;
	line-height: 1.1;
	text-align: left;
	color: var(--crest-accent);
}
.crest-menu.crest-layout-colonnes .crest-level-2 > .crest-section__title::after {
	content: none;
}
.crest-menu.crest-layout-colonnes .crest-level-2 > .crest-section__desc {
	text-align: left;
}
.crest-menu.crest-layout-colonnes .crest-level-3 > .crest-section__title,
.crest-menu.crest-layout-colonnes .crest-level-4 > .crest-section__title {
	font-size: 1.6rem;
	font-weight: 400;
	font-style: normal;
	border-bottom: 0;
	padding-bottom: 0;
}

/* Articles */
.crest-menu.crest-layout-colonnes .crest-items {
	grid-template-columns: minmax(0, 1fr);
	gap: 2.2rem 0;
	margin-top: 0;
}
.crest-menu.crest-layout-colonnes .crest-item__name {
	font-size: 1.15rem;
	font-weight: 400;
}
.crest-menu.crest-layout-colonnes .crest-item__leader {
	border-bottom: 0;
}
.crest-menu.crest-layout-colonnes .crest-item__price {
	font-size: 1.15rem;
	font-weight: 400;
	color: inherit;
}
.crest-menu.crest-layout-colonnes .crest-item__desc {
	margin-top: 0.4rem;
	font-size: 0.95rem;
	line-height: 1.9;
	opacity: 1;
}
.crest-menu.crest-layout-colonnes .crest-item__details {
	opacity: 0.8;
}

@media (max-width: 1000px) {
	.crest-menu.crest-layout-colonnes .crest-sections,
	.crest-menu.crest-layout-colonnes .crest-section--notitle {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.crest-menu.crest-layout-colonnes .crest-sections,
	.crest-menu.crest-layout-colonnes .crest-section--notitle {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.5rem 0;
	}
}
