/**
 * Affichage public de la carte.
 *
 * Volontairement sobre et neutre : la carte hérite des couleurs et des
 * typographies du thème du client plutôt que d'imposer les siennes.
 */

.vfr-menu {
	--vfr-rule: currentColor;
	max-width: 60rem;
	margin: 0 auto;
}

.vfr-menu__title {
	margin: 0 0 1rem;
}

.vfr-menu__empty {
	font-style: italic;
	opacity: 0.7;
}

/* Sélecteur de langue */

.vfr-menu__languages {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.vfr-menu__language {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.25em 0.7em;
	border: 1px solid;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.85em;
	opacity: 0.75;
}

.vfr-menu__language.is-current {
	opacity: 1;
	font-weight: 600;
}

/* La barre de filtres : des pastilles, comme le sélecteur de langue */
.vfr-menu__filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.vfr-menu__filtre {
	padding: 0.45em 1.1em;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.9em;
	cursor: pointer;
	opacity: 0.75;
}

.vfr-menu__filtre.is-active {
	background: color-mix(in srgb, currentColor 12%, transparent);
	opacity: 1;
	font-weight: 600;
}

[data-vfr-bloc][hidden] {
	display: none;
}

/* Catégories */

.vfr-category {
	margin-bottom: 2.5rem;
}

.vfr-category__header {
	margin-bottom: 1rem;
	border-bottom: 1px solid;
	border-color: color-mix(in srgb, currentColor 25%, transparent);
	padding-bottom: 0.4rem;
}

.vfr-category__name {
	margin: 0;
}

.vfr-category__service {
	margin: 0.2rem 0 0;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.65;
}

.vfr-category__description {
	margin: 0.4rem 0 0;
	opacity: 0.8;
}

/* Plats */

.vfr-dishes {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vfr-dish {
	display: flex;
	gap: 1rem;
	padding: 0.9rem 0;
	border-bottom: 1px solid;
	border-color: color-mix(in srgb, currentColor 12%, transparent);
}

.vfr-dish:last-child {
	border-bottom: 0;
}

.vfr-dish__media {
	flex: 0 0 88px;
}

.vfr-dish__media img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.vfr-dish__body {
	flex: 1 1 auto;
	min-width: 0;
}

.vfr-dish__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
}

.vfr-dish__name {
	margin: 0;
	font-size: 1.05em;
}

.vfr-dish__sold-out {
	font-size: 0.7em;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border: 1px solid;
	border-radius: 3px;
	padding: 0 0.4em;
	margin-left: 0.5em;
	vertical-align: middle;
	opacity: 0.7;
}

.vfr-dish--unavailable .vfr-dish__name {
	opacity: 0.55;
}

.vfr-dish__prices {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.9rem;
	white-space: nowrap;
}

.vfr-dish__price-label {
	font-size: 0.8em;
	opacity: 0.65;
	margin-right: 0.3em;
}

.vfr-dish__price-amount {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.vfr-dish__description {
	margin: 0.3rem 0 0;
	opacity: 0.85;
}

.vfr-dish__labels {
	list-style: none;
	margin: 0.45rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.vfr-dish__label {
	font-size: 0.75em;
	border: 1px solid;
	border-color: color-mix(in srgb, currentColor 25%, transparent);
	border-radius: 999px;
	padding: 0.05em 0.6em;
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
}

.vfr-dish__origin,
.vfr-dish__allergens {
	margin: 0.35rem 0 0;
	font-size: 0.78em;
	opacity: 0.65;
}

/* Formules */

.vfr-formulas {
	margin-top: 3rem;
}

/* La formule du jour ouvre la carte, avant les catégories */
.vfr-formulas--du-jour,
.vfr-formulas--menus {
	margin: 0 0 3rem;
}

.vfr-formula--du-jour {
	border-width: 2px;
	border-color: currentColor;
}

.vfr-formula__prix {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1.25rem;
	margin: 0;
	padding: 0;
}

.vfr-formula__prix-label {
	font-size: 0.85em;
	opacity: 0.75;
}

.vfr-formula {
	border: 1px solid;
	border-color: color-mix(in srgb, currentColor 20%, transparent);
	border-radius: 8px;
	padding: 1.1rem 1.3rem;
	margin-bottom: 1rem;
}

.vfr-formula--unavailable {
	opacity: 0.6;
}

/* La formule du jour : en tête, encadrée plus fort, avec son étiquette */
.vfr-formula--du-jour {
	border-width: 2px;
	border-color: currentColor;
}


.vfr-formula__options {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
	margin: 0.9rem 0 0;
	padding: 0.7rem 0 0;
	border-top: 1px dashed;
	border-color: color-mix(in srgb, currentColor 25%, transparent);
	font-size: 0.92em;
}

.vfr-formula__option-price {
	margin-left: 0.4em;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.vfr-formula__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}

.vfr-formula__name {
	margin: 0;
}

.vfr-formula__price {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.vfr-formula__description {
	margin: 0.3rem 0 0;
	opacity: 0.85;
}

.vfr-formula__courses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1rem;
	margin-top: 0.9rem;
}

.vfr-formula__course-label {
	margin: 0 0 0.3rem;
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.65;
}

.vfr-formula__items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vfr-formula__item {
	padding: 0.1rem 0;
}

.vfr-formula__item--unavailable {
	opacity: 0.5;
	text-decoration: line-through;
}

/* Mentions légales */

.vfr-menu__legal {
	margin-top: 2.5rem;
	padding-top: 1rem;
	border-top: 1px solid;
	border-color: color-mix(in srgb, currentColor 15%, transparent);
	font-size: 0.8em;
	opacity: 0.7;
}

/* QR Code */

.vfr-qr {
	margin: 0;
	max-width: 100%;
}

.vfr-qr__image svg {
	width: 100%;
	height: auto;
	display: block;
}

/* Variantes de mise en page */

.vfr-menu--colonnes .vfr-dishes {
	columns: 2;
	column-gap: 2.5rem;
}

.vfr-menu--colonnes .vfr-dish {
	break-inside: avoid;
	display: block;
}

.vfr-menu--colonnes .vfr-dish__media {
	display: none;
}

.vfr-menu--ardoise {
	background: #14181c;
	color: #f2ece1;
	padding: 2rem;
	border-radius: 8px;
}

.vfr-menu--ardoise .vfr-category__name,
.vfr-menu--ardoise .vfr-formula__name {
	font-variant: small-caps;
	letter-spacing: 0.04em;
}

/* Aperçu dans le back-office */

.vfr-menu--preview {
	font-size: 14px;
}

.vfr-menu--preview .vfr-menu__languages {
	display: none;
}

@media screen and (max-width: 600px) {
	.vfr-dish {
		gap: 0.75rem;
	}

	.vfr-dish__media,
	.vfr-dish__media img {
		flex-basis: 64px;
		width: 64px;
		height: 64px;
	}

	.vfr-menu--colonnes .vfr-dishes {
		columns: 1;
	}
}

/* Avis Google : la note et les cinq derniers avis, sous la carte */

.vfr-avis {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid;
	border-color: color-mix(in srgb, currentColor 25%, transparent);
}

.vfr-avis__entete {
	margin-bottom: 1.25rem;
}

.vfr-avis__titre {
	margin: 0 0 0.4rem;
}

.vfr-avis__resume {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
}

.vfr-avis__chiffres {
	font-size: 0.95em;
	opacity: 0.8;
}

.vfr-avis__etoiles {
	position: relative;
	display: inline-block;
	line-height: 1;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.vfr-avis__etoiles-vides {
	opacity: 0.25;
}

.vfr-avis__etoiles-pleines {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	color: #f5b301;
}

.vfr-avis__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
	.vfr-avis__liste {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.vfr-avis__liste {
		grid-template-columns: 1fr;
	}
}

.vfr-avis__item {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 100%;
	padding: 1rem 1.1rem;
	border: 1px solid;
	border-color: color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 0.6rem;
}

.vfr-avis__auteur {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.4rem;
}

.vfr-avis__photo {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.vfr-avis__nom {
	font-weight: 600;
}

.vfr-avis__nom a {
	color: inherit;
	text-decoration: none;
}

.vfr-avis__quand {
	margin-left: auto;
	font-size: 0.8em;
	opacity: 0.65;
	white-space: nowrap;
}

.vfr-avis__texte {
	margin: 0.5rem 0 0;
	font-size: 0.95em;
	line-height: 1.55;
}

/* Replié : quatre lignes, pas une de plus, quelle que soit la largeur.
 * Le bouton vit sur sa propre ligne, en bas de la carte — au même endroit
 * dans toutes les cartes d'une rangée. */
.vfr-avis__texte--court {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.vfr-avis__texte--complet,
.vfr-avis__suite--moins,
.vfr-avis__item.is-ouvert .vfr-avis__texte--court,
.vfr-avis__item.is-ouvert .vfr-avis__suite--plus {
	display: none;
}

.vfr-avis__item.is-ouvert .vfr-avis__texte--complet,
.vfr-avis__item.is-ouvert .vfr-avis__suite--moins {
	display: block;
}

.vfr-avis__suite {
	margin: auto 0 0;
	padding-top: 0.5rem;
	font-size: 0.9em;
}

.vfr-avis__plus {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.vfr-avis__pied {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: 1.25rem;
}

.vfr-avis__bouton {
	display: inline-block;
	padding: 0.55em 1.2em;
	border: 1px solid currentColor;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}

.vfr-avis__lien {
	font-size: 0.9em;
}

.vfr-avis__attribution {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin-left: auto;
	font-size: 0.8em;
	opacity: 0.7;
}

.vfr-avis__g {
	display: inline-grid;
	place-items: center;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	background: #4285f4;
	color: #fff;
	font-weight: 700;
	font-family: Arial, Helvetica, sans-serif;
}

/* La carte ne montre pas les avis à l'impression : ce n'est pas un menu. */
@media print {
	.vfr-avis {
		display: none;
	}
}

/* Avis Google en slider : Swiper habillé aux couleurs du thème */

.vfr-avis__slider {
	padding-bottom: 3rem;
}

/* Pagination à gauche, flèches à droite, sous les cartes : rien ne recouvre
 * un bouton « Lire la suite ». */
.vfr-avis__slider .swiper-pagination {
	bottom: 0.4rem;
	left: 0;
	width: auto;
	text-align: left;
}

.vfr-avis__slider .swiper-slide {
	height: auto;
}

.vfr-avis__slider .vfr-avis__item {
	height: 100%;
	box-sizing: border-box;
}

.vfr-avis__slider .swiper-button-prev,
.vfr-avis__slider .swiper-button-next {
	top: auto;
	bottom: 0;
	margin-top: 0;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: color-mix(in srgb, currentColor 8%, transparent);
	color: currentColor;
	border: 0;
	cursor: pointer;
	--swiper-navigation-size: 0.9rem;
	--swiper-navigation-color: currentColor;
}

.vfr-avis__slider .swiper-button-prev {
	left: auto;
	right: 2.75rem;
}

.vfr-avis__slider .swiper-button-next {
	right: 0;
}

.vfr-avis__slider .swiper-pagination-bullet {
	background: currentColor;
	opacity: 0.25;
}

.vfr-avis__slider .swiper-pagination-bullet-active {
	opacity: 0.9;
}

