/**
 * Pricing tables — shortcode [avision_pricing_tables]
 * Glassmorphism, scoped .avi-pricing pour ne pas polluer le thème.
 */

.avi-pricing {
	--avi-pricing-text: #f8fafc;
	--avi-pricing-muted: rgba(248, 250, 252, 0.72);
	/* Navy glass (#0f172a / #1e293b) — opacité élevée pour éviter le rendu « gris » sur fonds clairs */
	--avi-pricing-navy: 15, 23, 42;
	--avi-pricing-navy-slate: 30, 41, 59;
	--avi-pricing-glass-bg: rgba(var(--avi-pricing-navy), 0.62);
	--avi-pricing-glass-border: rgba(255, 255, 255, 0.1);
	--avi-pricing-gold: #f59e0b;
	--avi-pricing-gold-soft: rgba(245, 158, 11, 0.35);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--avi-pricing-text);
	line-height: 1.5;
	box-sizing: border-box;
	margin: 2rem 0;
	width: 100%;
}

.avi-pricing *,
.avi-pricing *::before,
.avi-pricing *::after {
	box-sizing: border-box;
}

.avi-pricing__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: stretch;
	justify-content: center;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0.5rem;
}

/* Cartes : BEM .avi-pricing__card ; alias .avi-pricing-card si utilisé ailleurs */
.avi-pricing__card,
.avi-pricing-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: 20px;
	background:
		linear-gradient(
			165deg,
			rgba(var(--avi-pricing-navy-slate), 0.58) 0%,
			rgba(var(--avi-pricing-navy), 0.72) 45%,
			rgba(var(--avi-pricing-navy), 0.82) 100%
		);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.avi-pricing__card:hover,
.avi-pricing-card:hover {
	transform: translateY(-4px);
	box-shadow:
		0 16px 48px rgba(0, 0, 0, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.avi-pricing__card--agency {
	z-index: 2;
	transform: scale(1.04);
	border: 1px solid rgba(245, 158, 11, 0.65);
	background:
		linear-gradient(
			165deg,
			rgba(var(--avi-pricing-navy-slate), 0.62) 0%,
			rgba(var(--avi-pricing-navy), 0.78) 50%,
			rgba(15, 23, 42, 0.9) 100%
		);
	box-shadow:
		0 0 0 1px rgba(245, 158, 11, 0.35),
		0 0 40px rgba(245, 158, 11, 0.22),
		0 12px 44px rgba(245, 158, 11, 0.14),
		0 8px 32px rgba(0, 0, 0, 0.38),
		inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.avi-pricing__card--agency:hover {
	transform: scale(1.04) translateY(-4px);
	border-color: #f59e0b;
	box-shadow:
		0 0 0 1px rgba(245, 158, 11, 0.5),
		0 0 52px rgba(245, 158, 11, 0.28),
		0 20px 56px rgba(245, 158, 11, 0.2),
		0 16px 48px rgba(0, 0, 0, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.avi-pricing__badge {
	position: absolute;
	top: -0.65rem;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	padding: 0.35rem 1rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0f172a;
	background: linear-gradient(135deg, #fcd34d 0%, var(--avi-pricing-gold) 50%, #d97706 100%);
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	box-shadow: 0 4px 20px var(--avi-pricing-gold-soft);
}

.avi-pricing__eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--avi-pricing-muted);
	margin: 0 0 0.35rem;
}

.avi-pricing__title {
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: var(--avi-pricing-text);
	line-height: 1.2;
}

.avi-pricing__pitch {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	color: var(--avi-pricing-muted);
}

.avi-pricing__price-row {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.avi-pricing__amount {
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--avi-pricing-text);
}

.avi-pricing__currency {
	font-size: 1.25rem;
	font-weight: 600;
	opacity: 0.9;
}

.avi-pricing__period {
	font-size: 1rem;
	color: var(--avi-pricing-muted);
	font-weight: 500;
}

.avi-pricing__list {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	flex: 1;
}

.avi-pricing__list li {
	position: relative;
	padding: 0.55rem 0 0.55rem 1.75rem;
	font-size: 0.9375rem;
	color: rgba(248, 250, 252, 0.92);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.avi-pricing__list li:last-child {
	border-bottom: none;
}

.avi-pricing__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: linear-gradient(135deg, #34d399, #10b981);
	box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.avi-pricing__card--agency .avi-pricing__list li::before {
	background: linear-gradient(135deg, #fcd34d, var(--avi-pricing-gold));
	box-shadow: 0 0 12px var(--avi-pricing-gold-soft);
}

.avi-pricing__cta {
	margin-top: auto;
	display: block;
	width: 100%;
	text-align: center;
	padding: 0.875rem 1.25rem;
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.avi-pricing__cta:focus-visible {
	outline: 2px solid var(--avi-pricing-gold);
	outline-offset: 3px;
}

.avi-btn-checkout-premium {
	color: #0f172a;
	background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.avi-btn-checkout-premium:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	color: #0f172a;
}

.avi-btn-checkout-agency {
	color: #0f172a;
	background: linear-gradient(135deg, #fcd34d 0%, var(--avi-pricing-gold) 45%, #d97706 100%);
	border: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 6px 24px var(--avi-pricing-gold-soft);
}

.avi-btn-checkout-agency:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 32px rgba(245, 158, 11, 0.45);
	color: #0f172a;
}

@media (max-width: 768px) {
	.avi-pricing__card--agency {
		transform: none;
		order: -1;
	}

	.avi-pricing__card--agency:hover {
		transform: translateY(-4px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.avi-pricing__card,
	.avi-pricing-card,
	.avi-pricing__cta {
		transition: none;
	}
}
