/**
 * Page Cas pratiques — hero aligné hub Sites, bandeau aperçus, stats dans le hero
 *
 * @package Emotta
 */

/* --- Titre or rose (ligne 2 du H1) --- */
.emotta-cas-pratiques__title-gold {
	display: inline-block;
	margin-top: 0.35rem;
	background: linear-gradient(
		105deg,
		#fce7f3 0%,
		#e9d5ff 28%,
		#f5d0a8 62%,
		#fbcfe8 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 28px rgba(251, 207, 232, 0.12));
}

/* --- Bandeau 3 aperçus (sous les CTA) --- */
.emotta-cas-pratiques__preview-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
	margin-top: 2.75rem;
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 640px) {
	.emotta-cas-pratiques__preview-strip {
		flex-wrap: nowrap;
		gap: 0.75rem;
		margin-top: 3rem;
	}
}

.emotta-cas-pratiques__preview-tile {
	position: relative;
	flex: 1 1 100%;
	min-width: 0;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(15, 23, 42, 0.45);
	box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.65);
	transition:
		transform 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

@media (min-width: 640px) {
	.emotta-cas-pratiques__preview-tile {
		flex: 1 1 0;
	}
}

.emotta-cas-pratiques__preview-tile:hover {
	transform: translateY(-3px);
	border-color: rgba(251, 207, 232, 0.35);
	box-shadow: 0 22px 48px -24px rgba(244, 114, 182, 0.2);
}

.emotta-cas-pratiques__preview-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.emotta-cas-pratiques__preview-fallback {
	position: absolute;
	inset: 0;
	display: block;
	background: linear-gradient(145deg, rgba(124, 58, 237, 0.25), rgba(244, 114, 182, 0.12));
}

.emotta-cas-pratiques__preview-cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.4rem 0.55rem 0.45rem;
	font-size: 0.65rem;
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
	text-align: left;
	background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
}

.emotta-cas-pratiques__preview-strip--empty {
	min-height: 5.5rem;
	align-items: stretch;
}

.emotta-cas-pratiques__preview-placeholder {
	flex: 1 1 0;
	min-height: 4.5rem;
	min-width: 0;
	border-radius: 0.85rem;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(244, 114, 182, 0.06));
}

html[data-emotta-theme='light'] .emotta-cas-pratiques__preview-tile {
	border-color: rgba(15, 23, 42, 0.1);
	background: #f8fafc;
	box-shadow: 0 8px 28px -16px rgba(15, 23, 42, 0.15);
}

html[data-emotta-theme='light'] .emotta-cas-pratiques__preview-cap {
	color: #0f172a;
	background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.95));
}

html[data-emotta-theme='light'] .emotta-cas-pratiques__preview-placeholder {
	border-color: rgba(15, 23, 42, 0.12);
	background: linear-gradient(135deg, #f8fafc, #fdf2f8);
}

/* --- Barre de stats compacte (une ligne) --- */
.emotta-cas-pratiques__stats-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 0;
	padding: 0.5rem 0.35rem;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

.emotta-cas-pratiques__stat-pill {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-width: 0;
	padding: 0.35rem 0.65rem;
}

.emotta-cas-pratiques__stat-pill--wide {
	flex: 1.15 1 12rem;
}

.emotta-cas-pratiques__stat-divider {
	align-self: stretch;
	width: 1px;
	min-height: 2rem;
	margin: 0.25rem 0;
	background: linear-gradient(
		180deg,
		transparent,
		rgba(251, 207, 232, 0.25) 30%,
		rgba(167, 139, 250, 0.35) 70%,
		transparent
	);
	flex-shrink: 0;
}

.emotta-cas-pratiques__stat-label {
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(203, 213, 225, 0.85);
	white-space: nowrap;
}

.emotta-cas-pratiques__stat-value {
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: #fff;
	font-variant-numeric: tabular-nums;
	background: linear-gradient(180deg, #fff, #e2e8f0);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.emotta-cas-pratiques__stat-word {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 9rem;
	background: linear-gradient(90deg, #fbcfe8, #fde68a, #e9d5ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@media (max-width: 419px) {
	.emotta-cas-pratiques__stats-bar {
		border-radius: 1rem;
		flex-direction: column;
		align-items: stretch;
		padding: 0.35rem;
	}

	.emotta-cas-pratiques__stat-divider {
		width: 100%;
		height: 1px;
		min-height: 0;
		margin: 0;
		background: linear-gradient(
			90deg,
			transparent,
			rgba(251, 207, 232, 0.2) 40%,
			rgba(167, 139, 250, 0.25) 60%,
			transparent
		);
	}

	.emotta-cas-pratiques__stat-pill {
		padding: 0.4rem 0.75rem;
		justify-content: space-between;
	}

	.emotta-cas-pratiques__stat-pill--wide .emotta-cas-pratiques__stat-word {
		max-width: none;
	}
}

html[data-emotta-theme='light'] .emotta-cas-pratiques__stats-bar {
	border-color: rgba(15, 23, 42, 0.08);
	background: #fff;
	box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.1);
}

html[data-emotta-theme='light'] .emotta-cas-pratiques__stat-label {
	color: rgb(100 116 139);
}

html[data-emotta-theme='light'] .emotta-cas-pratiques__stat-value {
	background: none;
	-webkit-background-clip: unset;
	background-clip: unset;
	color: rgb(15 23 42);
}

html[data-emotta-theme='light'] .emotta-cas-pratiques__stat-word {
	background: linear-gradient(90deg, #9d174d, #b45309, #6b21a8);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* --- Titres de section --- */
.emotta-cas-pratiques__section-head .home-hub__eyebrow {
	margin-bottom: 0;
}

/* --- Grille réalisations --- */
.emotta-cas-pratiques__grid.emotta-realisations-grid {
	margin-top: 3rem;
	gap: 1.75rem;
}

@media (min-width: 1024px) {
	.emotta-cas-pratiques__grid.emotta-realisations-grid {
		gap: 2rem;
	}
}

.emotta-cas-pratiques__grid.emotta-realisations-grid > article:only-child {
	max-width: min(100%, 28rem);
}

/* --- Méthode : pastilles or rose --- */
.emotta-cas-pratiques__steps {
	position: relative;
}

@media (min-width: 1024px) {
	.emotta-cas-pratiques__steps::before {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		top: 1.35rem;
		height: 1px;
		background: linear-gradient(
			90deg,
			transparent,
			rgba(251, 207, 232, 0.25) 15%,
			rgba(167, 139, 250, 0.3) 50%,
			rgba(251, 207, 232, 0.2) 85%,
			transparent
		);
		pointer-events: none;
	}
}

.emotta-cas-pratiques__step {
	position: relative;
	border-radius: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.07);
	background: rgba(255, 255, 255, 0.02);
	padding: 1.35rem 1.25rem 1.4rem;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
	transition:
		border-color 0.2s ease,
		background 0.2s ease;
}

.emotta-cas-pratiques__step:hover {
	border-color: rgba(251, 207, 232, 0.18);
	background: rgba(244, 114, 182, 0.04);
}

.emotta-cas-pratiques__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 9999px;
	font-size: 0.9rem;
	font-weight: 800;
	color: #1a1020;
	background: linear-gradient(145deg, #fce7f3, #e9d5ff 45%, #fcd34d 110%);
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 10px 24px -12px rgba(244, 114, 182, 0.35);
}

.emotta-cas-pratiques__step-title {
	margin-top: 1rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.02em;
}

.emotta-cas-pratiques__step-text {
	margin-top: 0.45rem;
	font-size: 0.875rem;
	line-height: 1.62;
	color: rgba(203, 213, 225, 0.95);
}

html[data-emotta-theme='light'] .emotta-cas-pratiques__step {
	border-color: rgba(15, 23, 42, 0.08);
	background: #fff;
	box-shadow: 0 4px 24px -12px rgba(15, 23, 42, 0.1);
}

html[data-emotta-theme='light'] .emotta-cas-pratiques__step:hover {
	border-color: rgba(244, 114, 182, 0.25);
	background: rgba(253, 242, 248, 0.6);
}

html[data-emotta-theme='light'] .emotta-cas-pratiques__step-title {
	color: rgb(15 23 42);
}

html[data-emotta-theme='light'] .emotta-cas-pratiques__step-text {
	color: rgb(71 85 105);
}

.emotta-cas-pratiques__empty {
	backdrop-filter: blur(6px);
}
