/* Boutemont — Héros vidéo 4.0. Écrit directement dans le <head> sur la page
   qui porte le widget : garder ce fichier court. Couleurs de la charte. */

.bmt-hero {
	--bmt-hero-ink: #F2EFE6;
	--bmt-hero-wheel: #F2EFE6;
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100svh;
	min-height: 420px;
	overflow: hidden;
	background-color: #1F2620;
	contain: layout paint;
}

/* Le film remplit toujours le bloc Elementor qui le contient, même si ce
   bloc est plus haut (hauteur minimale « 100vh » : sur iPhone, quand la
   barre d'adresse se replie, il restait une bande sous le film). */
.elementor-widget-boutemont_hero {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	align-self: stretch;
}

.elementor-widget-boutemont_hero > .elementor-widget-container {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
}

.elementor-widget-boutemont_hero .bmt-hero {
	flex: 1 0 auto;
}

.bmt-hero *,
.bmt-hero *::before,
.bmt-hero *::after {
	box-sizing: border-box;
}

.bmt-hero__pic {
	display: contents;
}

.bmt-hero .bmt-hero__media,
.bmt-hero__veil {
	position: absolute;
	inset: 0;
}

.bmt-hero .bmt-hero__media {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center center;
}

.bmt-hero__video {
	opacity: 0;
	transition: opacity .8s ease;
}

.bmt-hero__video.is-playing {
	opacity: 1;
}

.bmt-hero__veil {
	pointer-events: none;
}

/* Bandeau : trois colonnes, la molette reste au centre exact sans jamais
   chevaucher les logos, même sur un petit téléphone. */

.bmt-hero__strip {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: end;
	gap: 12px;
	padding: 20px 40px 22px;
}

.bmt-hero__side {
	display: flex;
	justify-content: flex-start;
	min-width: 0;
}

.bmt-hero__side--end {
	grid-column: 3;
	justify-content: flex-end;
}

.bmt-hero__cell {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	color: var(--bmt-hero-ink);
	text-decoration: none;
}

.bmt-hero .bmt-hero__logo {
	display: block;
	width: auto;
	height: 56px;
	max-width: 100%;
	object-fit: contain;
	filter: drop-shadow(0 1px 3px rgba(20, 24, 21, .45));
}

.bmt-hero__cell--white .bmt-hero__logo {
	filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(20, 24, 21, .45));
}

.bmt-hero__label {
	font-size: 10px;
	line-height: 1.3;
	letter-spacing: .2em;
	text-align: center;
	text-transform: uppercase;
	color: var(--bmt-hero-ink);
	text-shadow: 0 1px 2px rgba(20, 24, 21, .55);
}

a.bmt-hero__cell {
	transition: opacity .2s ease;
}

/* Pastille d'annonce : posée sur le film, elle défile avec lui */

.bmt-hero__ann {
	position: absolute;
	left: 16px;
	right: 16px;
	top: var(--bmt-hero-ann-top, 196px);
	z-index: 3;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.bmt-hero__ann[hidden] {
	display: none;
}

.bmt-hero .bmt-hero__ann-pill {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	max-width: 100%;
	margin: 0;
	padding: 7px 7px 7px 22px;
	border-radius: 999px;
	background: var(--bmt-hero-ann-bg, #F2EFE6);
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
	color: var(--bmt-hero-ann-ink, #323533);
	pointer-events: auto;
}

.bmt-hero .bmt-hero__ann-pill--no-btn {
	padding-right: 22px;
}

/* Message long (annonce du jour) : sur deux lignes, centré */
.bmt-hero .bmt-hero__ann-pill--long {
	max-width: 720px;
	padding-top: 10px;
	padding-bottom: 10px;
	border-radius: 22px;
	text-align: center;
}

.bmt-hero__ann-text {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 19px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.2;
}

.bmt-hero .bmt-hero__ann-btn,
.bmt-hero .bmt-hero__ann-btn:hover,
.bmt-hero .bmt-hero__ann-btn:focus {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--bmt-hero-ann-btn, #4F7539);
	color: #FFFFFF;
	font-family: 'Open Sans', system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	text-decoration: none;
	transition: opacity .2s ease;
}

.bmt-hero .bmt-hero__ann-btn:hover {
	opacity: .88;
}

/* Bouton son : au centre du bandeau, à la place de l'ancienne molette */

.bmt-hero button.bmt-hero__sound,
.bmt-hero button.bmt-hero__sound:hover,
.bmt-hero button.bmt-hero__sound:focus,
.bmt-hero button.bmt-hero__sound:active {
	position: relative;
	align-self: end;
	justify-self: center;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	height: 40px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 16px 0 12px !important;
	border: 1px solid rgba(242, 239, 230, .55) !important;
	border-radius: 999px !important;
	background: rgba(20, 24, 21, .35) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--bmt-hero-ink) !important;
	font-family: 'Open Sans', system-ui, sans-serif !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: .16em !important;
	line-height: 1 !important;
	text-transform: uppercase !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .2s ease;
}

.bmt-hero button.bmt-hero__sound {
	grid-column: 2;
}

.bmt-hero button.bmt-hero__sound[hidden] {
	display: none !important;
}

.bmt-hero button.bmt-hero__sound:hover {
	background: rgba(20, 24, 21, .55) !important;
}

.bmt-hero button.bmt-hero__sound:focus:not(:focus-visible) {
	outline: none !important;
}

.bmt-hero__sound-ico {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bmt-hero__sound-ico--on,
.bmt-hero__sound[aria-pressed="true"] .bmt-hero__sound-ico--muted {
	display: none;
}

.bmt-hero__sound[aria-pressed="true"] .bmt-hero__sound-ico--on {
	display: block;
}

/* Avis Google, en texte */

.bmt-hero__cell--google {
	align-items: flex-end;
	gap: 4px;
	text-align: right;
}

.bmt-hero__rating-score {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 34px;
	font-weight: 500;
	line-height: 1;
	color: var(--bmt-hero-ink);
	text-shadow: 0 1px 2px rgba(20, 24, 21, .55);
}

.bmt-hero__rating-score span {
	font-size: .5em;
	opacity: .75;
}

.bmt-hero__stars {
	display: inline-flex;
	gap: 1px;
	font-size: 20px;
	line-height: 1;
	color: var(--bmt-hero-star, #FFFFFF);
	text-shadow: 0 1px 3px rgba(20, 24, 21, .6);
}

.bmt-hero__star {
	position: relative;
	display: inline-block;
	color: var(--bmt-hero-star-empty, rgba(255, 255, 255, .34));
}

.bmt-hero__star-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--bmt-hero-star, #FFFFFF);
}

.bmt-hero__rating-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
	font-size: 12px;
	letter-spacing: .05em;
	color: rgba(242, 239, 230, .72);
	text-shadow: 0 1px 2px rgba(20, 24, 21, .55);
}

.bmt-hero__google i {
	font-style: normal;
}

.bmt-hero__google:not(.bmt-hero__google--mono) i:nth-child(1),
.bmt-hero__google:not(.bmt-hero__google--mono) i:nth-child(4) { color: #4285F4; }
.bmt-hero__google:not(.bmt-hero__google--mono) i:nth-child(2),
.bmt-hero__google:not(.bmt-hero__google--mono) i:nth-child(6) { color: #EA4335; }
.bmt-hero__google:not(.bmt-hero__google--mono) i:nth-child(3) { color: #FBBC05; }
.bmt-hero__google:not(.bmt-hero__google--mono) i:nth-child(5) { color: #34A853; }

.bmt-hero .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

a.bmt-hero__cell:hover,
a.bmt-hero__cell:focus-visible {
	opacity: .85;
}

a.bmt-hero__cell:focus-visible {
	outline: 2px solid var(--bmt-hero-ink);
	outline-offset: 4px;
}


@media (max-width: 767px) {
	.bmt-hero__strip {
		gap: 8px;
		padding: 14px 18px 16px;
	}

	.bmt-hero .bmt-hero__logo {
		height: 44px;
	}

	.bmt-hero__label {
		font-size: 9px;
		letter-spacing: .14em;
	}

	.bmt-hero__rating-score {
		font-size: 26px;
	}

	.bmt-hero__ann {
		top: var(--bmt-hero-ann-top, 150px);
	}

	.bmt-hero .bmt-hero__ann-pill {
		gap: 8px;
		padding: 4px 4px 4px 14px;
	}

	.bmt-hero__ann-text {
		font-size: 15px;
	}

	.bmt-hero .bmt-hero__ann-btn,
	.bmt-hero .bmt-hero__ann-btn:hover,
	.bmt-hero .bmt-hero__ann-btn:focus {
		height: 32px;
		padding: 0 14px;
		font-size: 10px;
		letter-spacing: .14em;
	}

	/* Bouton son plus compact sur téléphone */
	.bmt-hero button.bmt-hero__sound,
	.bmt-hero button.bmt-hero__sound:hover,
	.bmt-hero button.bmt-hero__sound:focus,
	.bmt-hero button.bmt-hero__sound:active {
		gap: 6px;
		height: 36px !important;
		padding: 0 12px 0 9px !important;
		font-size: 9.5px !important;
		letter-spacing: .1em !important;
		white-space: nowrap;
	}

	.bmt-hero__sound-ico {
		width: 16px;
		height: 16px;
	}

	.bmt-hero__rating-meta {
		font-size: 10.5px;
	}
}

/* iPhone (Safari) : la barre d'adresse flotte par-dessus le bas de la page.
   Le bandeau (Tripadvisor, son, note Google) remonte pour rester visible ;
   le film, lui, continue jusqu'en bas de l'écran. */
@supports (-webkit-touch-callout: none) {
	@media (max-width: 1024px) {
		.bmt-hero .bmt-hero__strip {
			bottom: max(env(safe-area-inset-bottom, 0px), var(--bmt-hero-ios-lift, 36px));
		}
	}
}

@media (max-width: 380px) {
	.bmt-hero__label {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bmt-hero__dot {
		animation: none;
		opacity: 1;
	}

	.bmt-hero__video {
		transition: none;
	}
}

@media (max-width: 767px) {
	.bmt-hero .bmt-hero__ann-pill--no-btn {
		padding-right: 14px;
	}
	.bmt-hero .bmt-hero__ann-pill--long {
		border-radius: 18px;
		padding-top: 8px;
		padding-bottom: 8px;
	}
}

/* 4.4.2 : calque sombre sous la note Google et le logo Tripadvisor,
 * comme sous le bouton « Activer le son » : lisibles sur toutes les images. */
.bmt-hero--layer .bmt-hero__strip .bmt-hero__cell {
	padding: 10px 14px 9px;
	border-radius: 14px;
	background: rgba(20, 24, 21, var(--bmt-hero-layer, .2));
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.bmt-hero--layer .bmt-hero__strip a.bmt-hero__cell {
	transition: background-color .2s ease;
}
.bmt-hero--layer .bmt-hero__strip a.bmt-hero__cell:hover,
.bmt-hero--layer .bmt-hero__strip a.bmt-hero__cell:focus-visible {
	background: rgba(20, 24, 21, calc(var(--bmt-hero-layer, .35) + .2));
}
.bmt-hero--layer .bmt-hero__rating-meta {
	color: rgba(242, 239, 230, .88);
}
@media (max-width: 767px) {
	.bmt-hero--layer .bmt-hero__strip .bmt-hero__cell {
		padding: 7px 10px 6px;
		border-radius: 12px;
	}
}
