/* Stacked Cards Interactive Glossary - cfd66c8c */

/* Surlignage orange par défaut */
.highlight-first-title-cfd66c8c-yes .elementor-toc__list-item:first-child .elementor-toc__list-item-text.has-highlight-cfd66c8c {
	background-color: #ff9800 !important;
	color: #fff !important;
	padding: 2px 8px !important;
	border-radius: 4px !important;
	font-weight: bold !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Surlignage au survol des autres éléments */
.elementor-toc__list-item .elementor-toc__list-item-text {
	transition: background-color 0.2s ease, color 0.2s ease;
}

.elementor-toc__list-item .elementor-toc__list-item-text:hover {
	background-color: #ff9800 !important;
	color: #fff !important;
	padding: 2px 8px !important;
	border-radius: 4px !important;
	font-weight: bold !important;
}

/* Grid wrapper: when stacked, collapse into a single centered column */
.stacked-glossary-cfd66c8c.is-stacked {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	position: relative;
	min-height: 380px;
	gap: 0 !important;
}

/* Each card in stacked mode */
.stacked-glossary-cfd66c8c.is-stacked > .e-con {
	position: absolute !important;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
				opacity 0.4s ease,
				box-shadow 0.3s ease;
	cursor: pointer;
	z-index: 1;
}

/* Stacking offsets — each card slightly shifted */
.stacked-glossary-cfd66c8c.is-stacked > .e-con:nth-child(1) { transform: translateY(0px) rotate(-2deg); z-index: 6; }
.stacked-glossary-cfd66c8c.is-stacked > .e-con:nth-child(2) { transform: translateY(18px) rotate(1.5deg); z-index: 5; }
.stacked-glossary-cfd66c8c.is-stacked > .e-con:nth-child(3) { transform: translateY(36px) rotate(-1deg); z-index: 4; }
.stacked-glossary-cfd66c8c.is-stacked > .e-con:nth-child(4) { transform: translateY(54px) rotate(2deg); z-index: 3; }
.stacked-glossary-cfd66c8c.is-stacked > .e-con:nth-child(5) { transform: translateY(72px) rotate(-1.5deg); z-index: 2; }
.stacked-glossary-cfd66c8c.is-stacked > .e-con:nth-child(6) { transform: translateY(90px) rotate(1deg); z-index: 1; }

/* Expanded card */
.stacked-glossary-cfd66c8c.is-stacked > .e-con.is-expanded-cfd66c8c {
	transform: translateY(0) rotate(0deg) scale(1.05) !important;
	z-index: 100 !important;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
	animation: cardPopIn-cfd66c8c 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Dimmed siblings */
.stacked-glossary-cfd66c8c.is-stacked.has-expanded-cfd66c8c > .e-con:not(.is-expanded-cfd66c8c) {
	opacity: 0.3;
	pointer-events: none;
	filter: blur(2px);
}

/* Pop-in keyframes (entrance effect) */
@keyframes cardPopIn-cfd66c8c {
	0% {
		transform: translateY(30px) rotate(0deg) scale(0.85);
		opacity: 0;
	}
	60% {
		transform: translateY(-5px) rotate(0deg) scale(1.08);
		opacity: 1;
	}
	100% {
		transform: translateY(0) rotate(0deg) scale(1.05);
		opacity: 1;
	}
}

/* Close button */
.card-close-btn-cfd66c8c {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.15);
	border: none;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	color: #333;
	transition: background 0.2s ease;
	z-index: 101;
}

.card-close-btn-cfd66c8c:hover {
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
}

.is-expanded-cfd66c8c .card-close-btn-cfd66c8c {
	display: flex;
}

/* Stack toggle button */
.stack-toggle-cfd66c8c {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 10px 22px;
	border-radius: 30px;
	border: 2px solid currentColor;
	background: transparent;
	cursor: pointer;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	color: inherit;
}

.stack-toggle-cfd66c8c:hover {
	background: rgba(0, 0, 0, 0.05);
}

.stack-toggle-cfd66c8c .toggle-icon-cfd66c8c {
	transition: transform 0.3s ease;
}

.stack-toggle-cfd66c8c.is-active-cfd66c8c .toggle-icon-cfd66c8c {
	transform: rotate(180deg);
}

/* Responsive: disable stacking on mobile */
@media (max-width: 767px) {
	.stacked-glossary-cfd66c8c.is-stacked > .e-con {
		position: relative !important;
		transform: none !important;
		opacity: 1 !important;
		filter: none !important;
		pointer-events: auto !important;
	}
	.stacked-glossary-cfd66c8c.is-stacked {
		min-height: auto;
		gap: 15px !important;
	}
	.stack-toggle-cfd66c8c {
		display: none;
	}
	.card-close-btn-cfd66c8c {
		display: none !important;
	}
}
