/* MFC Big Ideas — styles isolés, préfixe strict .mfc-big-ideas__ */

.mfc-big-ideas {
	position: relative;
	isolation: isolate; /* contient le stacking context : rien ne déborde du composant */
	overflow: hidden;
	/* Sortie du conteneur Elementor contraint (boxed) : plein viewport réel,
	   sans toucher au layout des éléments autour (marge négative auto-compensée). */
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	height: 100vh;
	height: 100svh; /* écrase 100vh sur les navigateurs qui le supportent (barres mobiles) */
	background: #000;
}

.mfc-big-ideas--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	background: #f5f5f5;
	color: #a00;
	font-family: sans-serif;
	text-align: center;
	padding: 20px;
}

.mfc-big-ideas__backgrounds {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.mfc-big-ideas__background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	opacity: 0;
	will-change: opacity;
}

.mfc-big-ideas__background.is-active {
	opacity: 1;
}

.mfc-big-ideas__background-media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.mfc-big-ideas__background-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	will-change: transform;
}

.mfc-big-ideas__background-overlay {
	position: absolute;
	inset: 0;
	background: var(--mfc-overlay-color, rgba(0, 0, 0, 0.45));
	pointer-events: none;
}

.mfc-big-ideas__stage {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 24px;
	text-align: left;
}

.mfc-big-ideas__items {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0 0 0 40px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 70%;
}

.mfc-big-ideas__item {
	opacity: var(--mfc-inactive-opacity, 0.18);
	color: inherit;
	/* Police du thème par défaut ; le contrôle Typography Elementor
	   (sélecteur .mfc-big-ideas__text, imprimé après cette feuille) prend
	   le dessus dès qu'une famille est explicitement choisie. */
	font-family: "Boska-Variable", serif;
	font-weight: 400;
}

.mfc-big-ideas__item.is-active {
	opacity: 1;
	color: var(--mfc-active-color, inherit);
}

.mfc-big-ideas__text {
	display: inline-block;
	/* Repli de lisibilité : le contrôle Typography Elementor (imprimé après cette
	   feuille de style) prend le dessus dès qu'il est réglé, même spécificité. */
	font-size: clamp(1.5rem, 1rem + 2.2vw, 3rem);
	line-height: 1.25;
}

.mfc-big-ideas__marker {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	color: var(--mfc-active-color, inherit);
	will-change: transform, opacity;
}

.mfc-big-ideas__marker.is-visible {
	opacity: 1;
}

/* Fallback statique : GSAP/ScrollTrigger absents, ou aperçu éditeur Elementor */
.mfc-big-ideas--static .mfc-big-ideas__background,
.mfc-big-ideas--static .mfc-big-ideas__item {
	transition: opacity 0.3s ease;
}

@media (max-width: 1024px) {
	.mfc-big-ideas__items {
		max-width: 85%;
	}
}

@media (max-width: 767px) {
	.mfc-big-ideas__stage {
		padding: 16px;
	}

	.mfc-big-ideas__items {
		/* Largeur raisonnable même en plein viewport : le texte ne colle jamais aux bords. */
		max-width: 90%;
		padding-left: 28px;
		gap: 16px;
	}
}
