/* LBV — Formules widget. Fully scoped under .lbv-formulas, safe for multiple instances per page. */

.lbv-formulas {
	--lbv-font-title: "berthold-block-w1g", sans-serif;
	--lbv-font-body: "museo-sans-rounded", -apple-system, BlinkMacSystemFont, sans-serif;
	--lbv-font-accent: "giulia-plain", sans-serif;
	--lbv-color-ink: #191919;
	--lbv-color-tag-text: #280606;
	--lbv-color-green: #85c61e;
	--lbv-color-primary: #ff0d22;
	/* Elementor global colors ("Accentué" / a red named "f7adafa" in the Kit) —
	   read live from the page so the buttons stay in sync with the Kit;
	   fallbacks match the Kit's current values in case they're not printed
	   on a given page. */
	--lbv-color-accent: var(--e-global-color-accent, #ffffff);
	--lbv-color-ghost-btn: var(--e-global-color-f7adafa, #ff0d22);
	--lbv-color-band-bg: #fbead1;
	--lbv-color-tag-bg: #feeacf;
	--lbv-color-card-bg: #ffffff;
	--lbv-color-variants-bg: #fee9cd80;
	--lbv-color-muted: #55524d;
	--lbv-radius: 12px;
	--lbv-gap: 24px;
	--lbv-cols: 3;
	--lbv-peek: 40px;

	box-sizing: border-box;
	display: flex;
	flex-direction: column;

	/* Full-bleed: break out of Elementor's boxed container so the alternating
	   section backgrounds span the whole viewport regardless of where this
	   widget sits in the page structure. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.lbv-formulas *,
.lbv-formulas *::before,
.lbv-formulas *::after {
	box-sizing: border-box;
}

.lbv-formulas__section {
	padding: 48px 20px;
}

.lbv-formulas__section:nth-of-type(odd) {
	background: var(--lbv-color-band-bg);
}

.lbv-formulas__section:nth-of-type(even) {
	background: #ffffff;
}

.lbv-formulas__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.lbv-formulas__header {
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lbv-formulas__header h2 {
	margin: 0;
	font-family: 'berthold-block-w1g' !important;;
	font-size: 3rem;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 2.8rem;
	color: #000000;
}

.lbv-formulas__header p {
	margin: 0;
	font-family: var(--lbv-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 20px;
	color: var(--lbv-color-ink);
}

/* Carousel */

.lbv-carousel {
	position: relative;
}

.lbv-carousel__track {
	display: flex;
	gap: var(--lbv-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px 2px 12px;
	padding-right: calc(50vw - 50%);
	margin-right: calc(50% - 50vw);
	cursor: grab;
}

.lbv-carousel__track::-webkit-scrollbar {
	display: none;
}

.lbv-carousel__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

/* Card */

.lbv-formula-card {
	scroll-snap-align: start;
	flex: 0 0 calc((100% - (var(--lbv-cols) - 1) * var(--lbv-gap) - var(--lbv-peek)) / var(--lbv-cols));
	display: flex;
	flex-direction: column;
	background: var(--lbv-color-card-bg);
	border: 2px solid var(--lbv-color-ink);
	border-radius: var(--lbv-radius);
	overflow: hidden;
}

.lbv-formula-card__image {
	display: block;
	width: 100%;
	height: 272px !important;
	object-fit: cover;
}

.lbv-formula-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px;
	flex: 1 1 auto;
}

.lbv-formula-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin: 0;
}

.lbv-formula-card__tag {
	align-self: flex-start;
	transform: rotate(-1deg);
	font-family: var(--lbv-font-accent);
	font-style: italic;
	font-weight: 400;
	font-size: 0.9rem;
	line-height: 24px;
	color: var(--lbv-color-tag-text);
	background: var(--lbv-color-tag-bg);
	padding: 6px 10px;
	border: solid #000000;
	border-width: 2px 2px 5px 5px;
	border-radius: var(--lbv-radius);
}

.lbv-formula-card__title {
	margin: 0;
	font-family: 'berthold-block-w1g' !important;;
	font-size: 2.2rem;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 2.3rem;
	color: #000000;
}

.lbv-formula-card__description {
	margin: 0;
	font-family: var(--lbv-font-body);
	font-weight: 500;
	font-size: 1.2rem;
	line-height: 1.4rem;
	color: #000000;
}

.lbv-formula-card__benefits {
	list-style: none;
	margin: 12px 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lbv-formula-card__benefits li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-family: var(--lbv-font-body);
	font-size: 1.2rem;
	font-weight: 900;
	line-height: 1.3rem;
	color: #000000;
}

.lbv-formula-card__benefits svg {
	flex: 0 0 auto;
	margin-top: 2px;
}

.lbv-formula-card__variants {
	margin: 0;
	padding: 10px 12px 12px;
	border-radius: var(--lbv-radius);
	background: var(--lbv-color-variants-bg);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lbv-formula-card__variants strong {
	font-family: var(--lbv-font-accent);
	font-style: italic;
	font-weight: 500;
	font-size: 1.3rem;
	line-height: 20px;
	color: #000000;
}

.lbv-formula-card__variants span {
	font-family: var(--lbv-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.2rem;
	color: #000000;
}

.lbv-formula-card__footnote {
	margin: 0;
	font-family: var(--lbv-font-body);
	font-weight: 500;
	font-size: 0.8rem;
	line-height: 1rem;
	color: #000000;
}

.lbv-formula-card__actions {
	margin-top: auto;
	padding-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lbv-formula-card__btn {
	display: block !important;
	width: 265px !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	text-align: center !important;
	text-decoration: none !important;
	text-transform: uppercase !important;
	font-family: 'berthold-block-w1g' !important; !important;
	font-weight: 900 !important;
	font-size: 1rem !important;
	line-height: normal !important;
	cursor: pointer !important;
	box-shadow: 0 10px 10px 0 rgba(234, 36, 36, 0.15) !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

.lbv-formula-card__btn--ghost {
	padding: 16px 24px !important;
	border-style: solid !important;
	border-width: 4px !important;
	border-color: var(--lbv-color-ghost-btn) !important;
	border-radius: 10px !important;
	background-color: var(--lbv-color-accent) !important;
	fill: var(--lbv-color-ghost-btn) !important;
	color: var(--lbv-color-ghost-btn) !important;
}

.lbv-formula-card__btn--ghost:hover {
	background-color: #000000 !important;
	border-color: #000000 !important;
	color: #ffffff !important;
}

.lbv-formula-card__btn--solid {
	padding: 20px 30px !important;
	border: none !important;
	border-radius: 12px !important;
	background-color: var(--lbv-color-primary) !important;
	color: #ffffff !important;
}

.lbv-formula-card__btn--solid:hover {
	background-color: #000000 !important;
}

/* Responsive: 3 / 2 / 1 columns, 24px gap */

@media (max-width: 1024px) {
	.lbv-formulas {
		--lbv-cols: 2;
	}
}

@media (max-width: 767px) {
	.lbv-formulas {
		--lbv-cols: 1;
	}

	.lbv-formulas__section {
		padding: 32px 20px;
	}

	.lbv-formulas__header h2 {
		font-size: 1.6rem;
		line-height: 1.2em;
	}

	.lbv-formula-card__image {
		height: 212px;
	}

	.lbv-formula-card__title {
		font-size: 1.4rem;
		line-height: 1.2em;
	}

	.lbv-formula-card__description {
		font-size: 1rem;
	}
}

/* Slide panels: apercu (left) + customizer (right), built into the widget. */

.lbv-panel {
	position: fixed;
	inset: 0;
	z-index: 10000;
	visibility: hidden;
	pointer-events: none;
}

.lbv-panel.is-open {
	visibility: visible;
	pointer-events: auto;
}

.lbv-panel__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.lbv-panel.is-open .lbv-panel__overlay {
	opacity: 1;
}

.lbv-panel__content {
	position: absolute;
	top: 0;
	bottom: 0;
	width: min(480px, 100%);
	background: #ffffff;
	overflow-y: auto;
	transition: transform 0.35s ease;
}

.lbv-panel--left .lbv-panel__content {
	left: 0;
	transform: translateX(-100%);
}

.lbv-panel--left.is-open .lbv-panel__content {
	transform: translateX(0);
}

.lbv-panel--right .lbv-panel__content {
	right: 0;
	transform: translateX(100%);
}

.lbv-panel--right.is-open .lbv-panel__content {
	transform: translateX(0);
}

.lbv-panel__back,
.lbv-panel__close {
	position: fixed;
	top: 6px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
	color: #191919;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.lbv-panel.is-open .lbv-panel__back,
.lbv-panel.is-open .lbv-panel__close {
	opacity: 1;
	pointer-events: auto;
}

.lbv-panel--left .lbv-panel__back {
	left: 6px;
}

.lbv-panel--right .lbv-panel__close {
	right: 6px;
}

.lbv-panel__back:hover,
.lbv-panel__close:hover {
	background: #191919;
	color: #ffffff;
}

.lbv-panel__body {
	min-height: 100%;
}

.lbv-panel__loader {
	padding: 64px 24px;
	text-align: center;
	font-family: var(--lbv-font-body);
	color: var(--lbv-color-muted);
}

body.lbv-panel-open {
	overflow: hidden;
}

/* "En savoir plus" panel content — one static block per formula, shown/hidden
   by JS inside the shared .lbv-panel--left body (see initPanels() / openApercu()). */

.lbv-preview {
	padding: 0 12px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lbv-preview__image {
	display: block;
	width: calc(100% + 24px);
	height: 212px;
	margin: 0 -12px 12px;
	border-radius: 0 0 10px 10px;
	overflow: hidden;
}

.lbv-preview__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lbv-preview__title {
	margin: 0;
	font-family: 'berthold-block-w1g' !important;;
	font-size: 1.6rem;
	font-weight: 900;
	text-transform: uppercase;
	line-height: 1.2em;
	color: #000000;
}

.lbv-preview__tags {
	margin: 12px 0 0;
}

.lbv-preview__tags .lbv-formula-card__tag {
	padding: 8px 12px;
	font-size: 1rem;
}

.lbv-preview__description {
	margin: 12px 0 0;
	font-family: var(--lbv-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.4rem;
	color: #000000;
}

.lbv-preview__partner {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	font-family: var(--lbv-font-body);
	font-style: italic;
}

.lbv-preview__partner img {
	max-width: 96px;
}

.lbv-preview__benefits {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.lbv-preview__benefits li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-family: var(--lbv-font-body);
	font-weight: 900;
	font-size: 1rem;
	line-height: 1.2rem;
	color: #000000;
}

.lbv-preview__benefits i {
	flex: 0 0 auto;
	margin-top: 3px;
	font-size: 0.85rem;
	color: #9ad89c;
}

.lbv-preview__footnote {
	margin: 12px 0 0;
	font-family: var(--lbv-font-body);
	font-weight: 500;
	font-size: 0.9rem;
	line-height: 1rem;
	color: #000000;
}

.lbv-preview__variants {
	margin: 12px 0 0;
	padding: 12px;
	border-radius: var(--lbv-radius);
	background: var(--lbv-color-variants-bg);
}

.lbv-preview__variants strong {
	display: block;
	margin: 0 0 10px;
	font-family: 'berthold-block-w1g' !important;;
	font-weight: 900;
	text-transform: uppercase;
	font-size: 1.2rem;
	color: #000000;
}

.lbv-preview__variants-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.lbv-preview__variant {
	display: flex;
	align-items: center;
	gap: 6px;
	width: calc(50% - 6px);
	font-family: var(--lbv-font-accent);
	font-style: italic;
	font-weight: 500;
	font-size: 1.1rem;
	line-height: 1.2rem;
	color: #000000;
}

.lbv-preview__variant img {
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
}

.lbv-preview__variant-logo {
	width: auto !important;
	height: 20px !important;
	margin-left: 2px;
}

.lbv-preview__variants-note {
	margin: 10px 0 0;
	font-family: var(--lbv-font-body);
	font-weight: 700;
	font-size: 0.9rem;
	color: #000000;
}

/* Single-image galleries (meal photos / example menu) — each photo keeps
   the 12px rounded corners it has in the source templates, so both
   galleries stay inset like the rest of the reading content. */

.lbv-gallery {
	position: relative;
	border-radius: var(--lbv-radius);
	overflow: hidden;
}

.lbv-gallery__track {
	display: flex;
	gap: 12px;
	transition: transform 0.3s ease;
	touch-action: pan-y pinch-zoom;
}

.lbv-gallery__slide {
	flex: 0 0 calc(100% - 42px);
}

.lbv-gallery__slide img {
	display: block;
	width: 100%;
	border-radius: var(--lbv-radius);
}

.lbv-gallery__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 32px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--lbv-color-primary);
	font-size: 1rem;
	cursor: pointer;
}

.lbv-gallery__arrow--prev {
	left: 8px;
}

.lbv-gallery__arrow--next {
	right: 8px;
}

/* "La qualité de la Brigade !" / "Nos secrets de fabrication" blocks */

.lbv-preview__quality {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.lbv-preview__quality img {
	width: 25%;
	flex: 0 0 auto;
}

.lbv-preview__quality h3 {
	margin: 0 0 4px;
	font-family: 'berthold-block-w1g' !important;;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.6rem;
	line-height: 1.8rem;
	color: #000000;
}

.lbv-preview__quality p {
	margin: 0;
	font-family: var(--lbv-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.4rem;
	color: #000000;
}

/* "Voir un exemple de menu" accordion (native <details>, no JS needed) —
   values match the source templates' nested-accordion widget exactly:
   closed = a single rounded pink pill; open = the pill's top corners go
   square and the revealed content continues the same pink background,
   rounded only at the very bottom. */

.lbv-accordion {
	margin-top: 12px;
	border-radius: 10px;
}

.lbv-accordion summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	list-style: none;
	padding: 18px 12px;
	background: #f3bdb8;
	border-radius: 10px;
	font-family: 'berthold-block-w1g' !important;;
	font-weight: 900;
	text-transform: uppercase;
	font-size: 1.1rem;
	color: #191919;
	cursor: pointer;
	transition: color 0.2s ease, border-radius 0.2s ease;
}

.lbv-accordion summary::-webkit-details-marker {
	display: none;
}

.lbv-accordion summary::marker {
	content: '';
}

.lbv-accordion summary:hover {
	color: var(--lbv-color-primary);
}

.lbv-accordion summary i {
	font-size: 0.85em;
	transition: transform 0.2s ease;
}

.lbv-accordion[open] summary {
	border-radius: 12px 12px 0 0;
	color: var(--lbv-color-primary);
}

.lbv-accordion[open] summary i {
	transform: rotate(180deg);
}

.lbv-accordion__content {
	background: #f3bdb8;
	border-radius: 0 0 12px 12px;
	padding: 12px;
}

.lbv-accordion .lbv-gallery {
	margin: 0;
}

/* "Comment ça marche ?" numbered tabs — values match the source
   "[REDESIGN] Preview - *" templates' "Work" container exactly. */

.lbv-preview__work {
	position: relative;
	margin: 24px -12px 0;
	background: #feeacf;
	padding: 5%;
	text-align: center;
	overflow: hidden;
}

.lbv-preview__work h3 {
	margin: 0 0 24px;
	font-family: 'berthold-block-w1g' !important;;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.6rem;
	line-height: 1;
	color: #000000;
}

.lbv-tabs {
	position: relative;
}

.lbv-tabs__nav {
	position: relative;
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 20px;
}

/* The connecting "stepper" line running behind the numbered pills. */
.lbv-tabs__nav::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 15%;
	width: 70%;
	height: 4px;
	background: #000000;
	transform: translateY(-50%);
	z-index: 0;
}

button.lbv-tabs__btn {
	position: relative;
	z-index: 1;
	padding: 12px 20px;
	border: 3px solid #000000;
	border-radius: 10px;
	background: #ffffff;
	font-family: "giulia-plain", Sans-serif !important;
	font-style: italic;
	font-weight: 700;
	font-size: 1rem;
	color: #000000 !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

button.lbv-tabs__btn, button.lbv-tabs__btn:focus {
	background-color: #fff;
}

button.lbv-tabs__btn:hover,
button.lbv-tabs__btn.is-active {
	background: #85da97;
}

.lbv-tabs__panel {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.lbv-tabs__panel.is-active {
	display: flex;
}

.lbv-tabs__panel img {
	max-height: 148px;
	width: auto;
	margin: 0 auto;
}

.lbv-tabs__panel h4 {
	margin: 0;
	font-family: 'berthold-block-w1g' !important;;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.7rem;
	line-height: 1.8rem;
	color: #000000;
}

.lbv-tabs__panel p {
	margin: 0;
	font-family: var(--lbv-font-body);
	font-weight: 500;
	font-size: 1.1rem;
	line-height: 1.4rem;
	color: #000000;
}

@media (max-width: 767px) {
	.lbv-preview__work h3 {
		line-height: 1em;
	}

	.lbv-tabs__nav {
		gap: 12px;
	}

	.lbv-tabs__panel h4 {
		line-height: 0.9em;
	}

	.lbv-tabs__panel p {
		font-size: 1rem;
	}
}

/* Price block — "damier" pattern band (downloaded from prod, see
   inc/assets/img/damier.png) with the actual price card sitting on top,
   matching the source templates' "Prix" container exactly. */

.lbv-preview__price {
	margin: 0 -12px;
	background-image: url('../img/damier.png');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	padding: 24px;
}

.lbv-preview__price-card {
	background: var(--lbv-color-accent);
	border-radius: var(--lbv-radius);
	padding: 5%;
}

.lbv-preview__price h3 {
	margin: 0 0 8px;
	font-family: 'berthold-block-w1g' !important;;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.6rem;
	line-height: 1em;
	color: #000000;
}

.lbv-preview__price-amount {
	color: var(--lbv-color-primary);
}

.lbv-preview__price p {
	margin: 0 0 24px;
	font-family: var(--lbv-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.4rem;
	color: #000000;
}

.lbv-preview__price-note {
	font-family: var(--lbv-font-accent);
	font-style: italic;
	font-weight: 700;
	font-size: 1.1rem;
	line-height: 1.2rem;
}

.lbv-preview__price-logos {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.lbv-preview__price-logos img {
	height: 72px;
	width: auto;
}

.lbv-preview__price-logos span {
	font-family: var(--lbv-font-accent);
	font-style: italic;
	font-weight: 500;
	font-size: 1rem;
}

/* CTA row (reuses .lbv-formula-card__btn) + call block */

.lbv-preview__cta {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lbv-preview__call {
	margin-top: 12px;
	background: var(--lbv-color-tag-bg);
	border-radius: var(--lbv-radius);
	padding: 16px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.lbv-preview__call-top {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	width: 100%;
}

.lbv-preview__call-top img {
	width: 40%;
	flex: 0 0 auto;
}

.lbv-preview__call h3 {
	margin: 0 0 6px;
	font-family: 'berthold-block-w1g' !important;;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.2rem;
	color: #000000;
}

.lbv-preview__call p {
	margin: 0;
	font-family: var(--lbv-font-body);
	font-size: 0.9rem;
	color: #000000;
}

.lbv-preview__call-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	padding-top: 12px;
}

.lbv-preview__call-actions .lbv-formula-card__btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100% !important;
	padding: 20px 30px !important;
	font-size: 20px !important;
	white-space: nowrap;
	box-shadow: none !important;
	border: none !important;
	border-radius: 10px !important;
	background-color: var(--lbv-color-ink) !important;
	color: #ffffff !important;
}
