/**
 * BookGolf Widgets — FlyOverGreen teaser card.
 */

.bgw-fog {
	border: 1px solid #e4e4e7;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	/*
	 * 760px pour rester sous le breakpoint Tailwind md (768px) utilisé par
	 * le contenu FOG : au-delà, leur player se limite à 2/3 de l'iframe et
	 * crée des bandes noires. Sous 768, leur layout est w-full.
	 */
	max-width: 760px;
	margin: 1em auto;
	font-family: inherit;
	color: inherit;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.bgw-fog__header {
	display: flex;
	align-items: center;
	gap: 0.875em;
	padding: 0.875em 1em;
	background: #fafafa;
	cursor: pointer;
	transition: background-color 0.15s ease;
	user-select: none;
}

.bgw-fog__header:hover,
.bgw-fog__header:focus-within {
	background: #f4f4f5;
}

.bgw-fog__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
}

.bgw-fog__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.bgw-fog__text {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.35;
}

.bgw-fog__title {
	display: block;
	margin: 0 0 0.15em;
	font-size: 1rem;
	font-weight: 600;
	color: #18181b;
}

.bgw-fog__title a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease;
}

.bgw-fog__title a:hover,
.bgw-fog__title a:focus-visible {
	border-bottom-color: currentColor;
}

.bgw-fog__subtitle {
	display: block;
	font-size: 0.82em;
	color: #71717a;
}

.bgw-fog__subtitle a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.bgw-fog__toggle {
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	padding: 0.5em;
	margin: -0.5em;
	cursor: pointer;
	color: #71717a;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s ease, color 0.15s ease;
}

.bgw-fog__toggle:hover {
	color: #18181b;
}

.bgw-fog__toggle:focus-visible {
	outline: 2px solid #10b981;
	outline-offset: 2px;
}

.bgw-fog__toggle svg {
	width: 18px;
	height: 18px;
	display: block;
	transition: transform 0.25s ease;
}

.bgw-fog[data-expanded="true"] .bgw-fog__toggle svg {
	transform: rotate(90deg);
}

.bgw-fog__panel {
	border-top: 1px solid #e4e4e7;
	background: #000;
}

.bgw-fog__panel iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	background: #000;
}

.bgw-fog__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	padding: 0.75em 1em;
	background: #fafafa;
	border-top: 1px solid #e4e4e7;
	color: #18181b;
	text-decoration: none;
	font-size: 0.9em;
	font-weight: 500;
	transition: background-color 0.15s ease;
}

.bgw-fog__cta:hover,
.bgw-fog__cta:focus-visible {
	background: #f4f4f5;
	text-decoration: underline;
}

.bgw-fog__cta-arrow {
	transition: transform 0.2s ease;
}

.bgw-fog__cta:hover .bgw-fog__cta-arrow {
	transform: translateX(2px);
}

@media (max-width: 480px) {
	.bgw-fog__title { font-size: 0.95rem; }
}
