/* ============================================================
 * AffiTable VS - Frontend styles
 * Toutes les règles sont scopées à .affivs-wrapper pour éviter
 * tout conflit avec le thème ou les autres plugins.
 * ============================================================ */

.affivs-wrapper {
	--affivs-radius-lg: 24px;
	--affivs-radius-md: 16px;
	--affivs-radius-sm: 10px;
	--affivs-radius-pill: 999px;

	--affivs-accent-a: #10b981;
	--affivs-accent-a-rgb: 16, 185, 129;
	--affivs-accent-b: #3b82f6;
	--affivs-accent-b-rgb: 59, 130, 246;
	--affivs-accent-equal: #94a3b8;
	--affivs-accent-profile: #f59e0b;
	--affivs-accent-profile-rgb: 245, 158, 11;
	--affivs-danger: #ef4444;
	--affivs-warning: #f97316;

	--affivs-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	box-sizing: border-box;
	max-width: 1180px;
	margin: 28px auto;
	padding: 28px;
	border-radius: var(--affivs-radius-lg);
	font-family: var(--affivs-font);
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--affivs-text);
	background: var(--affivs-bg);
	box-shadow: var(--affivs-shadow);
	-webkit-text-size-adjust: 100%;
	contain: layout style;
}
.affivs-wrapper *,
.affivs-wrapper *::before,
.affivs-wrapper *::after {
	box-sizing: border-box;
}

/* ============================================================
 * THÈME DARK (par défaut)
 * ============================================================ */
.affivs-theme-premium-dark {
	--affivs-bg: linear-gradient(160deg, #07111f 0%, #0b1628 55%, #0a1322 100%);
	--affivs-bg-solid: #0b1628;
	--affivs-card-bg: rgba(255, 255, 255, 0.97);
	--affivs-card-text: #0f172a;
	--affivs-card-subtitle: #475569;
	--affivs-card-border: rgba(255, 255, 255, 0.06);
	--affivs-panel-bg: rgba(255, 255, 255, 0.04);
	--affivs-panel-border: rgba(255, 255, 255, 0.08);
	--affivs-panel-text: #e2e8f0;
	--affivs-panel-text-muted: #94a3b8;
	--affivs-text: #e2e8f0;
	--affivs-text-muted: #94a3b8;
	--affivs-text-strong: #ffffff;
	--affivs-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6);
	--affivs-shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
	--affivs-row-divider: rgba(255, 255, 255, 0.06);
	--affivs-row-alt: rgba(255, 255, 255, 0.025);
	--affivs-chip-bg: rgba(255, 255, 255, 0.06);
	--affivs-chip-text: #e2e8f0;
}

/* ============================================================
 * THÈME LIGHT
 * ============================================================ */
.affivs-theme-premium-light {
	--affivs-bg: linear-gradient(160deg, #f8fafc 0%, #eef2ff 100%);
	--affivs-bg-solid: #f8fafc;
	--affivs-card-bg: #ffffff;
	--affivs-card-text: #0f172a;
	--affivs-card-subtitle: #475569;
	--affivs-card-border: rgba(15, 23, 42, 0.08);
	--affivs-panel-bg: #ffffff;
	--affivs-panel-border: rgba(15, 23, 42, 0.08);
	--affivs-panel-text: #1e293b;
	--affivs-panel-text-muted: #64748b;
	--affivs-text: #1e293b;
	--affivs-text-muted: #64748b;
	--affivs-text-strong: #0f172a;
	--affivs-shadow: 0 24px 50px -25px rgba(15, 23, 42, 0.18);
	--affivs-shadow-card: 0 12px 30px -15px rgba(15, 23, 42, 0.18);
	--affivs-row-divider: rgba(15, 23, 42, 0.08);
	--affivs-row-alt: rgba(15, 23, 42, 0.02);
	--affivs-chip-bg: rgba(15, 23, 42, 0.05);
	--affivs-chip-text: #1e293b;
}

/* Reset interne minimal */
.affivs-wrapper h3,
.affivs-wrapper h4 {
	margin: 0;
	font-weight: 700;
	color: inherit;
}
.affivs-wrapper p {
	margin: 0;
}
.affivs-wrapper ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.affivs-wrapper a {
	color: inherit;
	text-decoration: none;
}
.affivs-wrapper img {
	max-width: 100%;
	height: auto;
	display: block;
}
.affivs-wrapper .affivs-svg {
	display: inline-block;
	vertical-align: middle;
}

/* ============================================================
 * HERO PRODUITS
 * ============================================================ */
.affivs-hero {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 18px;
	align-items: stretch;
	margin-bottom: 22px;
}

.affivs-product-card {
	position: relative;
	background: var(--affivs-card-bg);
	color: var(--affivs-card-text);
	border-radius: var(--affivs-radius-md);
	padding: 22px 22px 24px;
	box-shadow: var(--affivs-shadow-card);
	display: flex;
	flex-direction: column;
	gap: 14px;
	overflow: hidden;
	border: 1px solid var(--affivs-card-border);
}

.affivs-product-card.affivs-product-a {
	border-top: 4px solid var(--affivs-accent-a);
}
.affivs-product-card.affivs-product-b {
	border-top: 4px solid var(--affivs-accent-b);
}

.affivs-product-badge {
	align-self: flex-start;
	background: linear-gradient(135deg, rgba(var(--affivs-accent-a-rgb), 0.12), rgba(var(--affivs-accent-a-rgb), 0.04));
	color: #047857;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: var(--affivs-radius-pill);
	border: 1px solid rgba(var(--affivs-accent-a-rgb), 0.25);
}
.affivs-product-b .affivs-product-badge {
	background: linear-gradient(135deg, rgba(var(--affivs-accent-b-rgb), 0.12), rgba(var(--affivs-accent-b-rgb), 0.04));
	color: #1d4ed8;
	border-color: rgba(var(--affivs-accent-b-rgb), 0.25);
}

.affivs-product-media {
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, #f8fafc, #eef2ff);
	border-radius: var(--affivs-radius-sm);
	overflow: hidden;
}
.affivs-product-image {
	max-height: 220px;
	object-fit: contain;
	width: auto;
}
.affivs-product-image-fallback {
	color: #cbd5e1;
}
.affivs-product-image-fallback .affivs-svg {
	width: 64px;
	height: 64px;
}

.affivs-product-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.affivs-product-name {
	font-size: 20px;
	line-height: 1.25;
	font-weight: 800;
	color: #0f172a;
}
.affivs-product-subtitle {
	color: var(--affivs-card-subtitle);
	font-size: 14px;
}
.affivs-product-price {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}
.affivs-old-price {
	font-size: 13px;
	color: #94a3b8;
	text-decoration: line-through;
	font-weight: 500;
}
.affivs-current-price {
	font-size: 18px;
}
.affivs-price-date {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 500;
}
.affivs-product-score {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	color: #92400e;
	padding: 6px 12px;
	border-radius: var(--affivs-radius-pill);
	font-weight: 800;
	font-size: 14px;
	width: fit-content;
}
.affivs-score-max {
	font-size: 11px;
	font-weight: 600;
	opacity: 0.7;
}
.affivs-product-reviews {
	font-size: 13px;
	color: var(--affivs-card-subtitle);
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.affivs-rating {
	color: #d97706;
	font-weight: 700;
}

.affivs-cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #ffffff !important;
	font-weight: 700;
	padding: 13px 20px;
	border-radius: var(--affivs-radius-sm);
	font-size: 15px;
	letter-spacing: 0.01em;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
	box-shadow: 0 10px 25px -10px rgba(37, 99, 235, 0.6);
	text-align: center;
	width: 100%;
}
.affivs-product-a .affivs-cta {
	background: linear-gradient(135deg, #10b981, #059669);
	box-shadow: 0 10px 25px -10px rgba(16, 185, 129, 0.6);
}
.affivs-cta:hover,
.affivs-cta:focus-visible {
	transform: translateY(-1px);
	filter: brightness(1.05);
	outline: none;
}
.affivs-cta:focus-visible {
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.45);
}
.affivs-cta-arrow {
	transition: transform .15s ease;
}
.affivs-cta:hover .affivs-cta-arrow {
	transform: translateX(2px);
}

.affivs-vs-badge {
	align-self: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 900;
	letter-spacing: 0.05em;
	box-shadow: 0 18px 40px -15px rgba(245, 158, 11, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.1);
	border: 4px solid rgba(255, 255, 255, 0.92);
	z-index: 2;
}

/* ============================================================
 * VERDICT RAPIDE
 * ============================================================ */
.affivs-quick-verdict {
	display: flex;
	gap: 18px;
	align-items: center;
	background: var(--affivs-panel-bg);
	border: 1px solid var(--affivs-panel-border);
	border-left: 5px solid var(--affivs-accent-a);
	padding: 20px 24px;
	border-radius: var(--affivs-radius-md);
	margin-bottom: 22px;
	color: var(--affivs-panel-text);
}
.affivs-quick-verdict.affivs-qv-winner-b {
	border-left-color: var(--affivs-accent-b);
}
.affivs-quick-verdict.affivs-qv-winner-equal {
	border-left-color: var(--affivs-accent-equal);
}
.affivs-quick-verdict.affivs-qv-winner-profile {
	border-left-color: var(--affivs-accent-profile);
}
.affivs-quick-verdict-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(var(--affivs-accent-a-rgb), 0.15);
	color: var(--affivs-accent-a);
	flex-shrink: 0;
}
.affivs-qv-winner-b .affivs-quick-verdict-icon {
	background: rgba(var(--affivs-accent-b-rgb), 0.15);
	color: var(--affivs-accent-b);
}
.affivs-qv-winner-profile .affivs-quick-verdict-icon {
	background: rgba(var(--affivs-accent-profile-rgb), 0.18);
	color: var(--affivs-accent-profile);
}
.affivs-quick-verdict-icon .affivs-svg {
	width: 24px;
	height: 24px;
}
.affivs-quick-verdict-title {
	font-size: 17px;
	margin-bottom: 4px;
	color: var(--affivs-text-strong);
}
.affivs-quick-verdict-text {
	color: var(--affivs-panel-text);
	font-size: 14.5px;
	line-height: 1.55;
}

/* ============================================================
 * MATRICE COMPARATIVE
 * ============================================================ */
.affivs-matrix {
	background: var(--affivs-panel-bg);
	border: 1px solid var(--affivs-panel-border);
	border-radius: var(--affivs-radius-md);
	overflow: hidden;
	margin-bottom: 22px;
}

.affivs-matrix-head {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1.8fr);
	gap: 0;
	background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
	border-bottom: 1px solid var(--affivs-row-divider);
}
.affivs-matrix-th {
	padding: 14px 16px;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--affivs-panel-text-muted);
}
.affivs-matrix-th-a { color: var(--affivs-accent-a); }
.affivs-matrix-th-b { color: var(--affivs-accent-b); }

.affivs-matrix-body {
	display: flex;
	flex-direction: column;
}
.affivs-row {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1.8fr);
	border-top: 1px solid var(--affivs-row-divider);
	transition: background .15s ease;
}
.affivs-row:nth-child(odd) {
	background: var(--affivs-row-alt);
}
.affivs-row:hover {
	background: rgba(var(--affivs-accent-a-rgb), 0.04);
}
.affivs-row-importance-high {
	box-shadow: inset 3px 0 0 var(--affivs-accent-profile);
}
.affivs-cell {
	padding: 16px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14.5px;
	color: var(--affivs-panel-text);
	min-width: 0;
}
.affivs-criterion {
	font-weight: 700;
	color: var(--affivs-text-strong);
}
.affivs-criterion-icon {
	color: var(--affivs-accent-profile);
	display: inline-flex;
	flex-shrink: 0;
}
.affivs-criterion-icon .affivs-svg {
	width: 22px;
	height: 22px;
}
.affivs-criterion-label {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--affivs-text-strong);
}
.affivs-value-text {
	min-width: 0;
	word-break: break-word;
}
.affivs-advantage-pill {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 11px;
	border-radius: var(--affivs-radius-pill);
	letter-spacing: 0.02em;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	background: var(--affivs-chip-bg);
	color: var(--affivs-chip-text);
}
.affivs-advantage-a .affivs-advantage-pill {
	background: rgba(var(--affivs-accent-a-rgb), 0.15);
	color: #059669;
}
.affivs-advantage-b .affivs-advantage-pill {
	background: rgba(var(--affivs-accent-b-rgb), 0.15);
	color: var(--affivs-accent-b);
}
.affivs-advantage-equal .affivs-advantage-pill {
	background: rgba(148, 163, 184, 0.18);
	color: #475569;
}
.affivs-advantage-profile .affivs-advantage-pill {
	background: rgba(var(--affivs-accent-profile-rgb), 0.18);
	color: #b45309;
}
.affivs-advantage-pill-empty {
	opacity: 0.45;
}
.affivs-impact-text {
	color: var(--affivs-panel-text);
	font-size: 14px;
	line-height: 1.5;
}

/* Statuts */
.affivs-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	flex-shrink: 0;
	font-weight: 700;
}
.affivs-status .affivs-svg {
	width: 16px;
	height: 16px;
}
.affivs-status-yes {
	background: rgba(var(--affivs-accent-a-rgb), 0.18);
	color: #059669;
}
.affivs-status-no {
	background: rgba(239, 68, 68, 0.18);
	color: #b91c1c;
}
.affivs-status-partial {
	background: rgba(var(--affivs-accent-profile-rgb), 0.18);
	color: #b45309;
}
.affivs-status-warning {
	background: rgba(249, 115, 22, 0.18);
	color: #c2410c;
}
.affivs-status-neutral {
	width: 4px;
	height: 4px;
	background: var(--affivs-panel-text-muted);
	opacity: 0.5;
}

/* ============================================================
 * PROS / CONS / CHOOSE-IF
 * ============================================================ */
.affivs-pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-bottom: 22px;
}
.affivs-pc-card {
	background: var(--affivs-card-bg);
	color: var(--affivs-card-text);
	border-radius: var(--affivs-radius-md);
	padding: 20px;
	box-shadow: var(--affivs-shadow-card);
	border: 1px solid var(--affivs-card-border);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.affivs-pc-card-a { border-top: 4px solid var(--affivs-accent-a); }
.affivs-pc-card-b { border-top: 4px solid var(--affivs-accent-b); }
.affivs-pc-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
}
.affivs-pc-thumb {
	width: 56px;
	height: 56px;
	border-radius: var(--affivs-radius-sm);
	object-fit: contain;
	background: #f8fafc;
}
.affivs-pc-name {
	font-size: 17px;
	color: #0f172a;
}
.affivs-pc-block h4 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #475569;
	margin-bottom: 8px;
}
.affivs-pc-block ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.affivs-pc-block li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14.5px;
	color: #1f2937;
	line-height: 1.5;
}
.affivs-pc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	flex-shrink: 0;
}
.affivs-pc-icon .affivs-svg {
	width: 14px;
	height: 14px;
}
.affivs-pc-icon-pro {
	background: rgba(var(--affivs-accent-a-rgb), 0.18);
	color: #059669;
}
.affivs-pc-icon-con {
	background: rgba(239, 68, 68, 0.18);
	color: #b91c1c;
}
.affivs-pc-icon-profile {
	background: rgba(var(--affivs-accent-profile-rgb), 0.18);
	color: #b45309;
}
.affivs-pc-choose-if {
	background: rgba(var(--affivs-accent-profile-rgb), 0.08);
	border-radius: var(--affivs-radius-sm);
	padding: 12px 14px;
	border-left: 3px solid var(--affivs-accent-profile);
}
.affivs-pc-card .affivs-cta {
	margin-top: 4px;
}

/* ============================================================
 * VERDICT FINAL
 * ============================================================ */
.affivs-final-verdict {
	background: var(--affivs-panel-bg);
	border: 1px solid var(--affivs-panel-border);
	border-radius: var(--affivs-radius-md);
	padding: 24px 26px;
	margin-bottom: 18px;
}
.affivs-fv-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.affivs-fv-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	color: #b45309;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.affivs-fv-icon .affivs-svg { width: 22px; height: 22px; }
.affivs-fv-title {
	font-size: 20px;
	color: var(--affivs-text-strong);
}
.affivs-fv-summary {
	font-size: 16px;
	font-weight: 600;
	color: var(--affivs-text-strong);
	margin-bottom: 14px;
}
.affivs-fv-chips {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 14px 0;
}
.affivs-fv-chip {
	background: var(--affivs-card-bg);
	color: var(--affivs-card-text);
	border-radius: var(--affivs-radius-sm);
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1px solid var(--affivs-card-border);
	box-shadow: var(--affivs-shadow-card);
}
.affivs-fv-chip-label {
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #64748b;
	font-weight: 700;
}
.affivs-fv-chip-value {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}
.affivs-fv-chip-global { border-top: 3px solid var(--affivs-accent-a); }
.affivs-fv-chip-value { border-top: 3px solid var(--affivs-accent-b); }
.affivs-fv-chip-specific { border-top: 3px solid var(--affivs-accent-profile); }

.affivs-fv-chip-reason {
	font-size: 13px;
	line-height: 1.45;
	font-weight: 500;
	color: #475569;
	margin-top: 4px;
}

.affivs-fv-text {
	color: var(--affivs-panel-text);
	font-size: 14.5px;
	line-height: 1.6;
}
.affivs-fv-text p + p {
	margin-top: 0.8em;
}

.affivs-price-disclaimer {
	text-align: center;
	font-size: 12.5px;
	color: var(--affivs-text-muted);
	margin-top: 14px;
	font-style: italic;
	opacity: 0.8;
}

/* ============================================================
 * MODE COMPACT
 * ============================================================ */
.affivs-compact {
	padding: 20px;
}
.affivs-compact .affivs-product-media {
	min-height: 140px;
}
.affivs-compact .affivs-product-image {
	max-height: 160px;
}
.affivs-compact .affivs-cell {
	padding: 12px 14px;
	font-size: 14px;
}

/* ============================================================
 * RESPONSIVE - TABLETTE (1024px)
 * ============================================================ */
@media (max-width: 1024px) {
	.affivs-wrapper {
		padding: 22px;
	}
	.affivs-matrix-head,
	.affivs-row {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1.6fr);
	}
}

/* ============================================================
 * RESPONSIVE - MOBILE (≤768px)
 * Le tableau devient des cards empilées. Pas de scroll horizontal.
 * ============================================================ */
@media (max-width: 768px) {
	.affivs-wrapper {
		padding: 16px;
		margin: 18px auto;
		border-radius: 18px;
	}

	/* HERO en colonne avec VS au milieu */
	.affivs-hero {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.affivs-vs-badge {
		width: 56px;
		height: 56px;
		font-size: 18px;
		margin: -6px 0;
		justify-self: center;
	}
	.affivs-product-card {
		padding: 18px;
	}
	.affivs-product-media {
		min-height: 160px;
	}

	/* Verdict rapide */
	.affivs-quick-verdict {
		padding: 16px;
		gap: 12px;
	}

	/* MATRICE → cards empilées */
	.affivs-matrix-head {
		display: none;
	}
	.affivs-matrix {
		background: transparent;
		border: none;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.affivs-row {
		display: block;
		background: var(--affivs-panel-bg);
		border: 1px solid var(--affivs-panel-border);
		border-radius: var(--affivs-radius-md);
		padding: 14px 16px;
	}
	.affivs-row:nth-child(odd) {
		background: var(--affivs-panel-bg);
	}
	.affivs-row:hover {
		background: var(--affivs-panel-bg);
	}
	.affivs-row-importance-high {
		box-shadow: inset 3px 0 0 var(--affivs-accent-profile);
	}
	.affivs-cell {
		padding: 8px 0;
		border: none;
		font-size: 14.5px;
	}
	.affivs-criterion {
		font-size: 15px;
		padding-bottom: 10px;
		border-bottom: 1px solid var(--affivs-row-divider);
		margin-bottom: 4px;
	}
	.affivs-cell[data-mobile-label]::before {
		content: attr(data-mobile-label);
		display: block;
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: 0.06em;
		color: var(--affivs-panel-text-muted);
		margin-bottom: 4px;
		font-weight: 700;
	}
	.affivs-value-a {
		border-left: 3px solid var(--affivs-accent-a);
		padding-left: 12px;
		background: rgba(var(--affivs-accent-a-rgb), 0.05);
		border-radius: 6px;
		margin-top: 6px;
	}
	.affivs-value-b {
		border-left: 3px solid var(--affivs-accent-b);
		padding-left: 12px;
		background: rgba(var(--affivs-accent-b-rgb), 0.05);
		border-radius: 6px;
		margin-top: 6px;
	}
	.affivs-impact {
		margin-top: 8px;
		padding-top: 10px;
		border-top: 1px solid var(--affivs-row-divider);
	}

	/* Pros / Cons en colonne */
	.affivs-pros-cons {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	/* Verdict final chips en colonne */
	.affivs-fv-chips {
		grid-template-columns: 1fr;
	}
	.affivs-final-verdict {
		padding: 18px;
	}
}

/* ============================================================
 * ACCESSIBILITÉ
 * ============================================================ */
.affivs-wrapper a:focus-visible,
.affivs-wrapper button:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.affivs-wrapper * {
		transition: none !important;
	}
}

/* ============================================================
 * AffiTable VS 4.0.24 - Correctif responsive container-aware
 * Objectif : empêcher les cartes desktop de se compresser en colonnes
 * étroites quand le bloc est inséré dans un conteneur WordPress réduit.
 * ============================================================ */
.affivs-wrapper {
	container-type: inline-size;
	container-name: affivs;
	max-width: 1320px !important;
	padding: clamp(12px, 2.4%, 38px) !important;
	border-radius: 34px !important;
	background:
		radial-gradient(circle at 50% 42%, rgba(245, 158, 11, 0.14), transparent 13%),
		radial-gradient(circle at 18% 10%, rgba(var(--affivs-accent-a-rgb), 0.15), transparent 30%),
		radial-gradient(circle at 82% 12%, rgba(var(--affivs-accent-b-rgb), 0.16), transparent 31%),
		linear-gradient(158deg, #040b16 0%, #08172d 52%, #060f1e 100%) !important;
	border: 1px solid rgba(148, 163, 184, 0.13) !important;
	box-shadow:
		0 34px 90px -44px rgba(2, 6, 23, 0.95),
		inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
	overflow: hidden !important;
}

/* Base sûre : rendu compact vertical/liste. Elle évite toute casse si le bloc est affiché dans une colonne étroite. */
.affivs-hero {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 14px !important;
	align-items: stretch !important;
	margin-bottom: 20px !important;
	isolation: isolate !important;
}

.affivs-vs-badge {
	display: none !important;
}

.affivs-product-card {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	min-width: 0 !important;
	width: 100% !important;
	min-height: 0 !important;
	gap: 12px !important;
	padding: clamp(12px, 3.5vw, 16px) !important;
	border-radius: 22px !important;
	background:
		radial-gradient(circle at 0% 48%, rgba(var(--affivs-accent-a-rgb), .07), transparent 34%),
		linear-gradient(145deg, #ffffff 0%, #fbfdff 62%, #f8fafc 100%) !important;
	border: 1px solid rgba(226, 232, 240, .96) !important;
	box-shadow:
		0 18px 42px -30px rgba(2, 6, 23, .88),
		0 1px 0 rgba(255, 255, 255, .98) inset !important;
	overflow: hidden !important;
	color: #0f172a !important;
}

.affivs-product-card.affivs-product-b {
	background:
		radial-gradient(circle at 0% 48%, rgba(var(--affivs-accent-b-rgb), .08), transparent 34%),
		linear-gradient(145deg, #ffffff 0%, #fbfdff 62%, #f8fafc 100%) !important;
}

.affivs-product-card::before {
	content: "" !important;
	position: absolute !important;
	inset: 0 0 auto 0 !important;
	height: 4px !important;
	background: linear-gradient(90deg, var(--affivs-accent-a), rgba(var(--affivs-accent-a-rgb), .34), transparent) !important;
	z-index: 2 !important;
}
.affivs-product-card.affivs-product-b::before {
	background: linear-gradient(90deg, var(--affivs-accent-b), rgba(var(--affivs-accent-b-rgb), .34), transparent) !important;
}
.affivs-product-card::after {
	content: "" !important;
	position: absolute !important;
	inset: auto auto -58px 12% !important;
	width: 42% !important;
	height: 140px !important;
	background: radial-gradient(circle, rgba(var(--affivs-accent-a-rgb), .10), transparent 70%) !important;
	pointer-events: none !important;
	z-index: 0 !important;
}
.affivs-product-card.affivs-product-b::after {
	background: radial-gradient(circle, rgba(var(--affivs-accent-b-rgb), .11), transparent 70%) !important;
}

.affivs-product-card > * {
	position: relative !important;
	z-index: 1 !important;
}

.affivs-product-rank {
	display: none !important;
}

.affivs-product-head {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 7px !important;
	width: 100% !important;
	min-width: 0 !important;
	padding: 0 !important;
}

.affivs-product-badge,
.affivs-product-b .affivs-product-badge {
	position: static !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	width: auto !important;
	max-width: 100% !important;
	min-height: 26px !important;
	margin: 0 !important;
	padding: 6px 11px !important;
	border-radius: 999px !important;
	font-size: clamp(9px, 2.8vw, 11px) !important;
	font-weight: 850 !important;
	line-height: 1 !important;
	letter-spacing: .04em !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	box-shadow: none !important;
}

.affivs-product-name {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	font-size: clamp(18px, 5.2vw, 23px) !important;
	line-height: 1.12 !important;
	letter-spacing: -0.035em !important;
	color: #071226 !important;
	white-space: normal !important;
	overflow-wrap: normal !important;
	word-break: normal !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

.affivs-product-subtitle {
	width: 100% !important;
	font-size: 12.8px !important;
	line-height: 1.35 !important;
	color: #64748b !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

.affivs-product-main {
	display: grid !important;
	grid-template-columns: minmax(88px, 112px) minmax(0, 1fr) !important;
	align-items: center !important;
	gap: 12px !important;
	width: 100% !important;
	min-width: 0 !important;
	flex: none !important;
}

.affivs-product-media {
	width: 100% !important;
	height: 118px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 7px !important;
	border-radius: 16px !important;
	background: #ffffff !important;
	border: 1px solid rgba(226, 232, 240, .92) !important;
	box-shadow:
		0 18px 30px -24px rgba(2, 6, 23, .55),
		inset 0 1px 0 rgba(255,255,255,1) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: hidden !important;
}

.affivs-product-image {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 108px !important;
	object-fit: contain !important;
	filter: drop-shadow(0 11px 11px rgba(15, 23, 42, .16)) !important;
	transform: none !important;
	transform-origin: center center !important;
}

.affivs-product-content {
	display: flex !important;
	flex-direction: column !important;
	align-self: stretch !important;
	justify-content: center !important;
	gap: 7px !important;
	min-width: 0 !important;
	padding: 0 !important;
}

.affivs-product-highlights {
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.affivs-product-highlight {
	display: grid !important;
	grid-template-columns: 23px minmax(0, 1fr) !important;
	align-items: center !important;
	gap: 7px !important;
	min-width: 0 !important;
	font-size: clamp(11.6px, 3.2vw, 13px) !important;
	font-weight: 720 !important;
	line-height: 1.22 !important;
	color: #172033 !important;
}

.affivs-highlight-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 23px !important;
	height: 23px !important;
	border-radius: 999px !important;
	background: rgba(var(--affivs-accent-a-rgb), .13) !important;
	color: #047857 !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.85) !important;
}
.affivs-product-b .affivs-highlight-icon {
	background: rgba(var(--affivs-accent-b-rgb), .13) !important;
	color: #1d4ed8 !important;
}
.affivs-highlight-icon .affivs-svg {
	width: 13px !important;
	height: 13px !important;
}
.affivs-highlight-text {
	min-width: 0 !important;
}

.affivs-product-price,
.affivs-current-price,
.affivs-old-price,
.affivs-price-date {
	display: none !important;
}

.affivs-product-score {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	align-self: flex-start !important;
	gap: 5px !important;
	min-width: 0 !important;
	min-height: 30px !important;
	margin: 1px 0 0 !important;
	padding: 5px 9px !important;
	border-radius: 999px !important;
	border: 1px solid rgba(245, 158, 11, .24) !important;
	background:
		radial-gradient(circle at 20% 20%, #fff8db, transparent 38%),
		linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%) !important;
	color: #92400e !important;
	box-shadow: none !important;
}
.affivs-product-a .affivs-product-score {
	border-color: rgba(var(--affivs-accent-a-rgb), .24) !important;
	background:
		radial-gradient(circle at 20% 20%, #fefce8, transparent 38%),
		linear-gradient(135deg, rgba(240, 253, 244, .98), rgba(220, 252, 231, .9)) !important;
	color: #047857 !important;
}
.affivs-score-medal {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 19px !important;
	height: 19px !important;
	border-radius: 999px !important;
	background: linear-gradient(145deg, #fbbf24, #d97706) !important;
	color: #ffffff !important;
	font-size: 10.5px !important;
	line-height: 1 !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.45) !important;
}
.affivs-score-value {
	font-size: 16px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	letter-spacing: -0.02em !important;
}
.affivs-score-max {
	font-size: 11px !important;
	font-weight: 850 !important;
	opacity: .9 !important;
}

.affivs-product-reviews {
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
	font-size: 12.2px !important;
	line-height: 1.2 !important;
	color: #64748b !important;
}
.affivs-rating {
	font-size: 13px !important;
	font-weight: 850 !important;
	color: #f59e0b !important;
}
.affivs-reviews-count {
	color: #64748b !important;
}

.affivs-product-card .affivs-cta,
.affivs-cta {
	position: static !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: auto !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 11px 15px !important;
	border-radius: 14px !important;
	font-size: 14.8px !important;
	font-weight: 880 !important;
	letter-spacing: -0.01em !important;
	background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
	box-shadow:
		0 18px 26px -22px rgba(37, 99, 235, .9),
		inset 0 1px 0 rgba(255, 255, 255, .22) !important;
	color: #ffffff !important;
}
.affivs-product-a .affivs-cta {
	background: linear-gradient(135deg, #10b981, #059669) !important;
	box-shadow:
		0 18px 26px -22px rgba(16,185,129,.9),
		inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}
.affivs-product-card .affivs-cta span {
	position: static !important;
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
	clip: auto !important;
	white-space: normal !important;
	border: 0 !important;
}
.affivs-product-card .affivs-cta-arrow {
	width: 20px !important;
	height: 20px !important;
}
.affivs-product-card:hover,
.affivs-product-card .affivs-cta:hover,
.affivs-product-card .affivs-cta:focus-visible {
	transform: none !important;
}

/* Fallback desktop basé sur le viewport pour les navigateurs sans container queries. */
@media (min-width: 900px) {
	.affivs-hero {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) !important;
		gap: 0 !important;
		align-items: stretch !important;
		margin-bottom: 24px !important;
	}
	.affivs-vs-badge {
		display: flex !important;
		align-self: center !important;
		justify-self: center !important;
		width: 76px !important;
		height: 76px !important;
		margin-inline: -2px !important;
		border-radius: 999px !important;
		border: 3px solid rgba(255,255,255,.88) !important;
		background:
			radial-gradient(circle at 35% 22%, rgba(255,255,255,.55), transparent 28%),
			linear-gradient(145deg, #f7b23d 0%, #d97706 78%) !important;
		box-shadow:
			0 0 0 7px rgba(255,255,255,.045),
			0 0 38px rgba(245,158,11,.34),
			0 22px 48px -22px rgba(245,158,11,.96),
			inset 0 -4px 0 rgba(0,0,0,.13) !important;
		z-index: 6 !important;
		color: #fff !important;
		font-size: 23px !important;
		font-weight: 900 !important;
	}
	.affivs-product-card {
		min-height: 520px !important;
		padding: clamp(22px, 2.2vw, 32px) !important;
		gap: 20px !important;
		border-radius: 30px !important;
	}
	.affivs-product-head {
		gap: 15px !important;
	}
	.affivs-product-badge,
	.affivs-product-b .affivs-product-badge {
		min-height: 34px !important;
		padding: 8px 18px !important;
		font-size: 12px !important;
		box-shadow:
			0 16px 30px -24px rgba(2, 6, 23, .95),
			inset 0 1px 0 rgba(255, 255, 255, .78) !important;
	}
	.affivs-product-name {
		font-size: clamp(26px, 2.6vw, 40px) !important;
		line-height: 1.02 !important;
		letter-spacing: -0.055em !important;
		display: block !important;
		overflow: visible !important;
		-webkit-line-clamp: initial !important;
	}
	.affivs-product-subtitle {
		font-size: 15px !important;
		-webkit-line-clamp: initial !important;
	}
	.affivs-product-main {
		display: grid !important;
		grid-template-columns: minmax(190px, 52%) minmax(0, 1fr) !important;
		align-items: center !important;
		gap: clamp(20px, 2vw, 34px) !important;
		flex: 1 1 auto !important;
	}
	.affivs-product-media {
		height: auto !important;
		min-height: 300px !important;
		padding: clamp(10px, 1.4vw, 18px) !important;
		border-radius: 22px !important;
	}
	.affivs-product-image {
		max-height: 330px !important;
		filter: drop-shadow(0 22px 20px rgba(15, 23, 42, .15)) !important;
	}
	.affivs-product-content {
		gap: 16px !important;
	}
	.affivs-product-highlights {
		gap: 18px !important;
	}
	.affivs-product-highlight {
		grid-template-columns: 44px minmax(0, 1fr) !important;
		gap: 14px !important;
		font-size: clamp(15px, 1.18vw, 17px) !important;
		line-height: 1.28 !important;
	}
	.affivs-highlight-icon {
		width: 44px !important;
		height: 44px !important;
	}
	.affivs-highlight-icon .affivs-svg {
		width: 20px !important;
		height: 20px !important;
	}
	.affivs-product-score {
		gap: 8px !important;
		min-height: 52px !important;
		min-width: 168px !important;
		margin: 8px 0 0 !important;
		padding: 9px 18px !important;
		border-radius: 16px !important;
		box-shadow: 0 18px 30px -24px rgba(180, 83, 9, .95) !important;
	}
	.affivs-score-medal {
		width: 28px !important;
		height: 28px !important;
		font-size: 15px !important;
	}
	.affivs-score-value {
		font-size: clamp(22px, 2vw, 28px) !important;
		letter-spacing: -0.04em !important;
	}
	.affivs-score-max {
		font-size: 15px !important;
	}
	.affivs-product-reviews {
		font-size: 15px !important;
	}
	.affivs-rating {
		font-size: 17px !important;
	}
	.affivs-product-card .affivs-cta,
	.affivs-cta {
		min-height: 58px !important;
		padding: 14px 18px !important;
		border-radius: 16px !important;
		font-size: 18px !important;
	}
}

/* Correction réelle du problème observé : si le conteneur du shortcode est étroit, on force la version compacte même sur écran desktop. */
@container affivs (max-width: 899px) {
	.affivs-hero {
		display: flex !important;
		flex-direction: column !important;
		gap: 14px !important;
		align-items: stretch !important;
	}
	.affivs-vs-badge {
		display: none !important;
	}
	.affivs-product-card {
		display: flex !important;
		flex-direction: column !important;
		min-height: 0 !important;
		padding: clamp(12px, 3.5cqw, 16px) !important;
		gap: 12px !important;
	}
	.affivs-product-head {
		gap: 7px !important;
	}
	.affivs-product-badge,
	.affivs-product-b .affivs-product-badge {
		min-height: 26px !important;
		padding: 6px 11px !important;
		font-size: clamp(9px, 2.8cqw, 11px) !important;
		box-shadow: none !important;
	}
	.affivs-product-name {
		font-size: clamp(18px, 5.2cqw, 23px) !important;
		line-height: 1.12 !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
	}
	.affivs-product-subtitle {
		font-size: 12.8px !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
	}
	.affivs-product-main {
		display: grid !important;
		grid-template-columns: minmax(84px, 112px) minmax(0, 1fr) !important;
		align-items: center !important;
		gap: 12px !important;
		flex: none !important;
	}
	.affivs-product-media {
		height: 118px !important;
		min-height: 0 !important;
		padding: 7px !important;
		border-radius: 16px !important;
	}
	.affivs-product-image {
		max-height: 108px !important;
		filter: drop-shadow(0 11px 11px rgba(15, 23, 42, .16)) !important;
		transform: none !important;
	}
	.affivs-product-content {
		gap: 7px !important;
	}
	.affivs-product-highlights {
		gap: 6px !important;
	}
	.affivs-product-highlight {
		grid-template-columns: 23px minmax(0, 1fr) !important;
		gap: 7px !important;
		font-size: clamp(11.6px, 3.2cqw, 13px) !important;
		line-height: 1.22 !important;
	}
	.affivs-highlight-icon {
		width: 23px !important;
		height: 23px !important;
	}
	.affivs-highlight-icon .affivs-svg {
		width: 13px !important;
		height: 13px !important;
	}
	.affivs-product-score {
		min-width: 0 !important;
		min-height: 30px !important;
		gap: 5px !important;
		padding: 5px 9px !important;
		border-radius: 999px !important;
		margin: 1px 0 0 !important;
		box-shadow: none !important;
	}
	.affivs-score-medal {
		width: 19px !important;
		height: 19px !important;
		font-size: 10.5px !important;
	}
	.affivs-score-value {
		font-size: 16px !important;
		letter-spacing: -0.02em !important;
	}
	.affivs-score-max {
		font-size: 11px !important;
	}
	.affivs-product-reviews {
		font-size: 12.2px !important;
		gap: 5px !important;
	}
	.affivs-rating {
		font-size: 13px !important;
	}
	.affivs-product-card .affivs-cta,
	.affivs-cta {
		min-height: 44px !important;
		padding: 11px 15px !important;
		border-radius: 14px !important;
		font-size: 14.8px !important;
	}
}

/* Container desktop : version premium horizontale uniquement quand le shortcode a réellement la largeur nécessaire. */
@container affivs (min-width: 900px) {
	.affivs-hero {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) !important;
		gap: 0 !important;
		align-items: stretch !important;
	}
	.affivs-vs-badge {
		display: flex !important;
	}
	.affivs-product-card {
		min-height: 520px !important;
		padding: clamp(22px, 2.2cqw, 32px) !important;
		gap: 20px !important;
		border-radius: 30px !important;
	}
	.affivs-product-head {
		gap: 15px !important;
	}
	.affivs-product-badge,
	.affivs-product-b .affivs-product-badge {
		min-height: 34px !important;
		padding: 8px 18px !important;
		font-size: 12px !important;
		box-shadow:
			0 16px 30px -24px rgba(2, 6, 23, .95),
			inset 0 1px 0 rgba(255, 255, 255, .78) !important;
	}
	.affivs-product-name {
		font-size: clamp(26px, 3.1cqw, 40px) !important;
		line-height: 1.02 !important;
		display: block !important;
		overflow: visible !important;
		-webkit-line-clamp: initial !important;
	}
	.affivs-product-main {
		display: grid !important;
		grid-template-columns: minmax(190px, 52%) minmax(0, 1fr) !important;
		align-items: center !important;
		gap: clamp(20px, 2.5cqw, 34px) !important;
		flex: 1 1 auto !important;
	}
	.affivs-product-media {
		height: auto !important;
		min-height: 300px !important;
		padding: clamp(10px, 1.4cqw, 18px) !important;
	}
	.affivs-product-image {
		max-height: 330px !important;
		filter: drop-shadow(0 22px 20px rgba(15, 23, 42, .15)) !important;
	}
	.affivs-product-highlights {
		gap: 18px !important;
	}
	.affivs-product-highlight {
		grid-template-columns: 44px minmax(0, 1fr) !important;
		gap: 14px !important;
		font-size: clamp(15px, 1.35cqw, 17px) !important;
		line-height: 1.28 !important;
	}
	.affivs-highlight-icon {
		width: 44px !important;
		height: 44px !important;
	}
	.affivs-highlight-icon .affivs-svg {
		width: 20px !important;
		height: 20px !important;
	}
	.affivs-product-score {
		min-height: 52px !important;
		min-width: 168px !important;
		gap: 8px !important;
		padding: 9px 18px !important;
		border-radius: 16px !important;
		box-shadow: 0 18px 30px -24px rgba(180, 83, 9, .95) !important;
	}
	.affivs-score-medal {
		width: 28px !important;
		height: 28px !important;
		font-size: 15px !important;
	}
	.affivs-score-value {
		font-size: clamp(22px, 2.2cqw, 28px) !important;
		letter-spacing: -0.04em !important;
	}
	.affivs-score-max {
		font-size: 15px !important;
	}
	.affivs-product-reviews {
		font-size: 15px !important;
	}
	.affivs-rating {
		font-size: 17px !important;
	}
	.affivs-product-card .affivs-cta,
	.affivs-cta {
		min-height: 58px !important;
		padding: 14px 18px !important;
		border-radius: 16px !important;
		font-size: 18px !important;
	}
}

@media (max-width: 430px) {
	.affivs-product-main {
		grid-template-columns: minmax(78px, 92px) minmax(0, 1fr) !important;
		gap: 10px !important;
	}
	.affivs-product-media {
		height: 102px !important;
	}
	.affivs-product-image {
		max-height: 94px !important;
	}
	.affivs-product-highlight {
		font-size: 11.8px !important;
	}
	.affivs-product-card .affivs-cta,
	.affivs-cta {
		min-height: 42px !important;
		font-size: 14.2px !important;
	}
}

/* v4.0.25 — le bloc avis utilisateur avait été masqué.
   v4.0.26 — il est restauré dans le rendu (avec l'icône étoile PNG) selon les besoins
   de la bibliothèque d'icônes. Le bloc reste conditionné par `settings.show_reviews`
   et n'apparaît que si `rating` ou `reviews_count` est renseigné. */

/* ============================================================
 * BIBLIOTHEQUE D'ICONES PNG (v4.0.26+)
 * Icônes premium injectées via Affitable_VS_Icons.
 * Toutes les règles sont scopées à .affivs-wrapper pour éviter
 * d'interférer avec d'autres plugins.
 * ============================================================ */

/* Base : conteneur inline-flex avec image contain, taille par défaut 28px. */
.affivs-wrapper .affitable-vs-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
	line-height: 0;
	vertical-align: middle;
}
.affivs-wrapper .affitable-vs-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	border: 0;
	background: transparent;
	max-width: none;
}

/* Variantes de taille selon le contexte d'usage. */
.affivs-wrapper .affitable-vs-badge-icon {
	width: 22px;
	height: 22px;
}
.affivs-wrapper .affitable-vs-feature-icon {
	width: 30px;
	height: 30px;
}
.affivs-wrapper .affitable-vs-star-icon {
	width: 18px;
	height: 18px;
}

/* ------------------------------------------------------------
 * BADGE PRODUIT (avec icône optionnelle)
 * Le badge existant est conservé, on ajoute juste le support
 * d'une icône à gauche du texte.
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-product-badge.has-icon {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.affivs-wrapper .affivs-product-badge.has-icon .affitable-vs-icon img {
	/* L'icône PNG hérite des couleurs natives, on ne la teinte pas. */
	filter: none;
}
.affivs-wrapper .affivs-product-badge-text {
	display: inline-block;
	line-height: 1.1;
}

/* ------------------------------------------------------------
 * POINT DIFFERENCIANT (highlight) avec PNG
 * Le PNG est posé À L'INTÉRIEUR du wrapper .affivs-highlight-icon
 * existant pour conserver le rond coloré (vert/bleu) du thème.
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-highlight-icon.affivs-has-png {
	overflow: hidden;
}
.affivs-wrapper .affivs-highlight-img {
	width: 62%;
	height: 62%;
	object-fit: contain;
	display: block;
	max-width: none;
}
/* Override des !important historiques sur .affivs-highlight-icon .affivs-svg :
   on neutralise la taille SVG pour notre image PNG (l'image n'est PAS un .affivs-svg). */
.affivs-wrapper .affivs-product-highlight .affitable-vs-feature-icon {
	margin-right: 2px;
}

/* ------------------------------------------------------------
 * SCORE + LAURIER DECORATIF
 * Le laurier est positionné absolument et CENTRÉ sur le pill score,
 * mais avec une largeur suffisante pour que les branches dépassent
 * de chaque côté du pill (~30 à 40 px de chaque côté).
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-score-block {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 88px;
	padding: 6px 28px;
	margin: 4px 0;
}
.affivs-wrapper .affivs-score-block.has-laurel {
	min-width: 220px;
}
.affivs-wrapper .affivs-vs-laurel {
	width: 72px;
	height: auto;
	object-fit: contain;
	display: block;
}
.affivs-wrapper .affivs-score-block .affivs-vs-laurel,
.affivs-wrapper .affivs-score-laurel {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 240px;
	height: auto;
	max-height: 110px;
	opacity: 1;
	pointer-events: none;
	z-index: 0;
}
.affivs-wrapper .affivs-score-block .affivs-product-score {
	position: relative;
	z-index: 1;
	margin: 0;
}

/* ------------------------------------------------------------
 * LIGNE AVIS UTILISATEURS (étoile PNG)
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-product-reviews {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin: 0;
	font-size: 13px;
	color: var(--affivs-card-subtitle);
}
.affivs-wrapper .affivs-product-reviews .affitable-vs-star-icon {
	margin-right: 2px;
}
.affivs-wrapper .affivs-reviews-count {
	color: #94a3b8;
	font-size: 12.5px;
}

/* ------------------------------------------------------------
 * MEDAILLON VS (image centrale entre les deux cartes)
 * Lorsque l'image est active, on désactive le fond gradient et
 * la bordure du badge existant pour laisser l'image respirer.
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-vs-badge.affivs-vs-badge-image {
	background: transparent;
	box-shadow: none;
	border: none;
	width: 96px;
	height: 96px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.affivs-wrapper .affivs-vs-badge-image .affivs-vs-medallion {
	width: 88px;
	height: 88px;
	object-fit: contain;
	display: block;
}

/* ------------------------------------------------------------
 * RESPONSIVE
 * ------------------------------------------------------------ */
@media (max-width: 768px) {
	.affivs-wrapper .affitable-vs-icon {
		width: 26px;
		height: 26px;
	}
	.affivs-wrapper .affitable-vs-badge-icon {
		width: 20px;
		height: 20px;
	}
	.affivs-wrapper .affitable-vs-feature-icon {
		width: 26px;
		height: 26px;
	}
	.affivs-wrapper .affivs-vs-badge.affivs-vs-badge-image {
		width: 64px;
		height: 64px;
	}
	.affivs-wrapper .affivs-vs-badge-image .affivs-vs-medallion {
		width: 56px;
		height: 56px;
	}
	.affivs-wrapper .affivs-score-block .affivs-vs-laurel,
	.affivs-wrapper .affivs-score-laurel {
		width: 200px;
		max-height: 92px;
	}
}
@media (max-width: 480px) {
	.affivs-wrapper .affivs-vs-badge.affivs-vs-badge-image {
		width: 56px;
		height: 56px;
	}
	.affivs-wrapper .affivs-vs-badge-image .affivs-vs-medallion {
		width: 48px;
		height: 48px;
	}
	.affivs-wrapper .affivs-score-block .affivs-vs-laurel,
	.affivs-wrapper .affivs-score-laurel {
		width: 170px;
		max-height: 80px;
	}
}

/* ============================================================
 * AffiTable VS 4.0.28 - Correctifs stabilité / images / avantage
 * ============================================================ */
.affivs-wrapper .affivs-matrix-head,
.affivs-wrapper .affivs-row {
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.28fr) minmax(0, 1.28fr) minmax(128px, .82fr) minmax(0, 1.55fr) !important;
}
.affivs-wrapper .affivs-matrix-th-advantage {
	color: var(--affivs-accent-profile);
}
.affivs-wrapper .affivs-advantage {
	align-items: center;
}
.affivs-wrapper .affivs-advantage-badge {
	display: inline-flex;
	max-width: 100%;
}
.affivs-wrapper .affivs-advantage-pill {
	min-height: 30px;
	border: 1px solid rgba(148, 163, 184, .18);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.affivs-wrapper .affivs-advantage-a .affivs-advantage-pill {
	background: rgba(var(--affivs-accent-a-rgb), 0.16);
	color: #059669;
	border-color: rgba(var(--affivs-accent-a-rgb), .32);
}
.affivs-wrapper .affivs-advantage-b .affivs-advantage-pill {
	background: rgba(var(--affivs-accent-b-rgb), 0.16);
	color: var(--affivs-accent-b);
	border-color: rgba(var(--affivs-accent-b-rgb), .32);
}
.affivs-wrapper .affivs-advantage-equal .affivs-advantage-pill {
	background: rgba(148, 163, 184, 0.18);
	color: #64748b;
	border-color: rgba(148, 163, 184, .32);
}
.affivs-wrapper .affivs-advantage-profile .affivs-advantage-pill {
	background: rgba(var(--affivs-accent-profile-rgb), 0.20);
	color: #b45309;
	border-color: rgba(var(--affivs-accent-profile-rgb), .34);
}
.affivs-wrapper .affivs-advantage-empty .affivs-advantage-pill {
	background: rgba(148, 163, 184, .10);
	color: var(--affivs-panel-text-muted);
	border-color: rgba(148, 163, 184, .18);
	box-shadow: none;
}

/* Images produit : zone nette inspirée Affimax, sans srcset ni miniature forcée. */
.affivs-wrapper .affivs-product-media {
	width: clamp(220px, 28vw, 350px) !important;
	max-width: 100% !important;
	height: clamp(200px, 24vw, 300px) !important;
	min-height: 0 !important;
	padding: clamp(10px, 1.4vw, 18px) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	justify-self: center !important;
	background: linear-gradient(160deg, #f8fafc, #eef2ff) !important;
}
.affivs-wrapper .affivs-product-image {
	width: 100% !important;
	max-width: 350px !important;
	height: 300px !important;
	max-height: 300px !important;
	object-fit: contain !important;
	object-position: center !important;
	image-rendering: auto !important;
	filter: drop-shadow(0 18px 18px rgba(15, 23, 42, .14)) !important;
}
.affivs-wrapper .affivs-product-image-fallback {
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* Statuts lisibles : icône + libellé, sans check vert ambigu. */
.affivs-wrapper .affivs-status {
	width: auto !important;
	height: auto !important;
	min-height: 24px !important;
	padding: 3px 9px 3px 5px !important;
	border-radius: 999px !important;
	gap: 5px !important;
	font-size: 12px !important;
	line-height: 1 !important;
	white-space: nowrap !important;
}
.affivs-wrapper .affivs-status .affivs-svg {
	width: 15px !important;
	height: 15px !important;
}
.affivs-wrapper .affivs-status-label {
	display: inline-block !important;
	font-weight: 750 !important;
}
.affivs-wrapper .affivs-status-neutral {
	background: rgba(148, 163, 184, .14) !important;
	color: var(--affivs-panel-text-muted) !important;
	opacity: 1 !important;
}
.affivs-wrapper .affivs-status-warning {
	background: rgba(249, 115, 22, 0.18) !important;
	color: #c2410c !important;
}

@media (max-width: 1024px) {
	.affivs-wrapper .affivs-matrix-head,
	.affivs-wrapper .affivs-row {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.18fr) minmax(0, 1.18fr) minmax(118px, .9fr) minmax(0, 1.45fr) !important;
	}
}

@media (max-width: 768px) {
	.affivs-wrapper .affivs-product-main {
		display: grid !important;
		grid-template-columns: 128px minmax(0, 1fr) !important;
		gap: 14px !important;
		align-items: center !important;
	}
	.affivs-wrapper .affivs-product-media {
		width: 128px !important;
		height: 128px !important;
		min-height: 0 !important;
		flex: 0 0 128px !important;
		padding: 8px !important;
	}
	.affivs-wrapper .affivs-product-image {
		width: 128px !important;
		height: 128px !important;
		max-width: 128px !important;
		max-height: 128px !important;
		object-fit: contain !important;
	}
	.affivs-wrapper .affivs-matrix-head {
		display: none !important;
	}
	.affivs-wrapper .affivs-row,
	.affivs-wrapper .affivs-row.affivs-mobile-card {
		display: block !important;
		grid-template-columns: none !important;
		background: var(--affivs-panel-bg) !important;
		border: 1px solid var(--affivs-panel-border) !important;
		border-radius: var(--affivs-radius-md) !important;
		padding: 14px 16px !important;
		overflow: hidden !important;
	}
	.affivs-wrapper .affivs-cell {
		padding: 8px 0 !important;
		border: none !important;
		font-size: 14.5px !important;
	}
	.affivs-wrapper .affivs-cell[data-mobile-label]::before {
		content: attr(data-mobile-label) !important;
		display: block !important;
		font-size: 11px !important;
		text-transform: uppercase !important;
		letter-spacing: 0.06em !important;
		color: var(--affivs-panel-text-muted) !important;
		margin-bottom: 5px !important;
		font-weight: 800 !important;
	}
	.affivs-wrapper .affivs-advantage,
	.affivs-wrapper .affivs-impact {
		margin-top: 8px !important;
		padding-top: 10px !important;
		border-top: 1px solid var(--affivs-row-divider) !important;
	}
	.affivs-wrapper .affivs-advantage-pill {
		white-space: normal !important;
		line-height: 1.25 !important;
	}
}

@media (max-width: 430px) {
	.affivs-wrapper .affivs-product-main {
		grid-template-columns: 120px minmax(0, 1fr) !important;
		gap: 10px !important;
	}
	.affivs-wrapper .affivs-product-media {
		width: 120px !important;
		height: 120px !important;
	}
	.affivs-wrapper .affivs-product-image {
		width: 120px !important;
		height: 120px !important;
		max-width: 120px !important;
		max-height: 120px !important;
	}
}
.affivs-wrapper .affivs-status-img {
	width: 16px !important;
	height: 16px !important;
	object-fit: contain !important;
	flex: 0 0 16px !important;
}

/* ============================================================
 * AffiTable VS 4.0.32 - IA : ALT naturel, statuts neutres et pastilles avantage
 * ============================================================ */
.affivs-wrapper .affivs-advantage-badge {
	width: 100% !important;
	justify-content: center !important;
}
.affivs-wrapper .affivs-advantage-pill {
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;	
	max-width: 100% !important;
	min-width: 0 !important;
	line-height: 1.25 !important;
	text-align: center !important;
	justify-content: center !important;
	word-break: normal !important;
	overflow-wrap: anywhere !important;
}
.affivs-wrapper .affivs-value-a,
.affivs-wrapper .affivs-value-b {
	align-items: flex-start !important;
}
.affivs-wrapper .affivs-value-text {
	line-height: 1.45 !important;
}

/* Carte produit entièrement cliquable quand un CTA existe. */
.affivs-product-card.affivs-card-clickable {
	cursor: pointer !important;
}
.affivs-product-card.affivs-card-clickable .affivs-cta,
.affivs-product-card.affivs-card-clickable a,
.affivs-product-card.affivs-card-clickable button {
	cursor: pointer !important;
}
.affivs-product-card.affivs-card-clickable:focus-visible {
	outline: 3px solid rgba(16, 185, 129, .45) !important;
	outline-offset: 4px !important;
}
.affivs-product-card.affivs-product-b.affivs-card-clickable:focus-visible {
	outline-color: rgba(37, 99, 235, .45) !important;
}

/* 4.0.38 — libellé score comparatif / indice technique */
.affivs-score-label {
	font-size: 10.5px !important;
	font-weight: 850 !important;
	line-height: 1 !important;
	letter-spacing: .01em !important;
	text-transform: uppercase !important;
	opacity: .86 !important;
}
.affivs-score-technical {
	min-height: 42px !important;
	padding: 4px 0 !important;
}
.affivs-score-technical .affivs-product-score {
	border-color: rgba(100, 116, 139, .24) !important;
	background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%) !important;
	color: #334155 !important;
}
.affivs-score-technical .affivs-score-label {
	text-transform: none !important;
	font-size: 12px !important;
}

/* 4.0.38 — score comparatif explicite et aide accessible */
.affivs-score-help {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 16px !important;
	height: 16px !important;
	margin-left: 6px !important;
	border-radius: 999px !important;
	font-size: 10px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	border: 1px solid rgba(15, 23, 42, .18) !important;
	background: rgba(255, 255, 255, .72) !important;
	color: currentColor !important;
	vertical-align: middle !important;
	cursor: help !important;
}
.affivs-score-help:focus-visible {
	outline: 2px solid rgba(16, 185, 129, .55) !important;
	outline-offset: 2px !important;
}



/* ============================================================
 * AffiTable VS 4.1.0 — COUCHE DE RAFFINEMENT PREMIUM
 * ------------------------------------------------------------
 * Objectif : élever le rendu vers une finition "guide d'achat
 * haut de gamme" sans toucher à la structure responsive existante
 * (mêmes classes, mêmes grilles). On ne retravaille que la matière :
 * profondeur, typographie, traitement doré "récompense", finitions
 * d'icônes et micro-interactions.
 *
 * Signature unique : le système OR CHAMPAGNE (médaillon VS, score,
 * verdict). C'est le seul endroit où l'on prend un parti fort ;
 * tout le reste reste sobre et discipliné.
 * ============================================================ */

.affivs-wrapper {
	/* Or champagne (matière, pas aplat) */
	--affivs-gold-1: #f8e7ad;
	--affivs-gold-2: #eccb78;
	--affivs-gold-3: #cda14f;
	--affivs-gold-4: #a87c33;
	--affivs-gold-grad: linear-gradient(150deg, #f8e7ad 0%, #eccb78 32%, #cda14f 64%, #a87c33 100%);
	--affivs-gold-ring: rgba(205, 161, 79, .55);

	/* Accents enrichis (plus joaillerie, mêmes familles vert/bleu) */
	--affivs-a-deep: #047857;
	--affivs-b-deep: #1d4ed8;

	/* Surfaces premium */
	--affivs-pearl-grad: linear-gradient(168deg, #ffffff 0%, #fbfcfe 58%, #f4f7fb 100%);
	--affivs-hairline: rgba(15, 23, 42, .08);

	/* Typo */
	--affivs-display: var(--affivs-font);
	--affivs-eyebrow-spacing: .12em;

	font-feature-settings: "ss01" 1, "cv05" 1, "tnum" 0;
}

/* Texture : grain ultra-fin posé sous les dégradés du fond (reste DERRIÈRE le contenu). */
.affivs-wrapper {
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
		radial-gradient(120% 80% at 50% -8%, rgba(236, 203, 120, .10), transparent 46%),
		radial-gradient(circle at 16% 8%, rgba(var(--affivs-accent-a-rgb), .16), transparent 32%),
		radial-gradient(circle at 84% 10%, rgba(var(--affivs-accent-b-rgb), .17), transparent 33%),
		linear-gradient(158deg, #050c17 0%, #0a1729 52%, #070f1f 100%) !important;
	background-size: 160px 160px, auto, auto, auto, auto !important;
	background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat !important;
	border: 1px solid rgba(148, 163, 184, .14) !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, .05) inset,
		0 40px 100px -50px rgba(2, 6, 23, .98) !important;
}
/* Filet doré discret en haut du bloc (signature). */
.affivs-wrapper::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--affivs-gold-ring), transparent);
	opacity: .7;
	pointer-events: none;
	z-index: 3;
}
.affivs-wrapper { position: relative; }

/* ------------------------------------------------------------
 * CARTES PRODUIT — plinthes "musée" éclairées
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-product-card {
	background:
		radial-gradient(130% 60% at 50% -10%, rgba(255, 255, 255, .9), transparent 55%),
		var(--affivs-pearl-grad) !important;
	border: 1px solid rgba(226, 232, 240, .9) !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 1) inset,
		0 2px 6px -2px rgba(2, 6, 23, .14),
		0 26px 50px -30px rgba(2, 6, 23, .55),
		0 40px 70px -50px rgba(var(--affivs-accent-a-rgb), .55) !important;
}
.affivs-wrapper .affivs-product-card.affivs-product-b {
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 1) inset,
		0 2px 6px -2px rgba(2, 6, 23, .14),
		0 26px 50px -30px rgba(2, 6, 23, .55),
		0 40px 70px -50px rgba(var(--affivs-accent-b-rgb), .55) !important;
}
/* Liseré supérieur en dégradé net */
.affivs-wrapper .affivs-product-card::before {
	height: 3px !important;
	background: linear-gradient(90deg, var(--affivs-accent-a), rgba(var(--affivs-accent-a-rgb), .15) 70%, transparent) !important;
	opacity: .95 !important;
}
.affivs-wrapper .affivs-product-card.affivs-product-b::before {
	background: linear-gradient(90deg, var(--affivs-accent-b), rgba(var(--affivs-accent-b-rgb), .15) 70%, transparent) !important;
}

/* Puits image : niche douce et éclairée */
.affivs-wrapper .affivs-product-media {
	background:
		radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f3f6fb 70%, #eef2f8 100%) !important;
	border: 1px solid rgba(226, 232, 240, .95) !important;
	box-shadow:
		inset 0 2px 10px rgba(15, 23, 42, .06),
		inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

/* ------------------------------------------------------------
 * TYPOGRAPHIE — registre éditorial
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-product-name {
	font-family: var(--affivs-display) !important;
	color: #0a1424 !important;
	text-wrap: balance;
}
.affivs-wrapper .affivs-product-subtitle {
	color: #586577 !important;
}
/* Eyebrows uniformes (badges, en-têtes, libellés) */
.affivs-wrapper .affivs-product-badge,
.affivs-wrapper .affivs-matrix-th,
.affivs-wrapper .affivs-fv-chip-label,
.affivs-wrapper .affivs-pc-block h4,
.affivs-wrapper .affivs-score-label,
.affivs-wrapper .affivs-cell[data-mobile-label]::before {
	letter-spacing: var(--affivs-eyebrow-spacing) !important;
}

/* Badge produit : pastille soignée avec filet */
.affivs-wrapper .affivs-product-badge {
	background: linear-gradient(135deg, rgba(var(--affivs-accent-a-rgb), .14), rgba(var(--affivs-accent-a-rgb), .05)) !important;
	border: 1px solid rgba(var(--affivs-accent-a-rgb), .26) !important;
	color: var(--affivs-a-deep) !important;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset !important;
}
.affivs-wrapper .affivs-product-b .affivs-product-badge {
	background: linear-gradient(135deg, rgba(var(--affivs-accent-b-rgb), .14), rgba(var(--affivs-accent-b-rgb), .05)) !important;
	border-color: rgba(var(--affivs-accent-b-rgb), .26) !important;
	color: var(--affivs-b-deep) !important;
}

/* ------------------------------------------------------------
 * PASTILLES D'ICÔNES — système duotone unifié (PNG + SVG)
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-highlight-icon {
	background:
		radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .9), transparent 60%),
		linear-gradient(150deg, rgba(var(--affivs-accent-a-rgb), .20), rgba(var(--affivs-accent-a-rgb), .08)) !important;
	border: 1px solid rgba(var(--affivs-accent-a-rgb), .24) !important;
	color: var(--affivs-a-deep) !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .9),
		0 6px 14px -10px rgba(var(--affivs-accent-a-rgb), .8) !important;
}
.affivs-wrapper .affivs-product-b .affivs-highlight-icon {
	background:
		radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .9), transparent 60%),
		linear-gradient(150deg, rgba(var(--affivs-accent-b-rgb), .20), rgba(var(--affivs-accent-b-rgb), .08)) !important;
	border-color: rgba(var(--affivs-accent-b-rgb), .24) !important;
	color: var(--affivs-b-deep) !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .9),
		0 6px 14px -10px rgba(var(--affivs-accent-b-rgb), .8) !important;
}
.affivs-wrapper .affivs-highlight-text {
	color: #1b2638 !important;
	font-weight: 650 !important;
}

/* ------------------------------------------------------------
 * SCORE — plaque "récompense" propre (corrige le débordement
 * et le conflit laurier "10" / note chiffrée).
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-score-block,
.affivs-wrapper .affivs-score-block.has-laurel {
	min-height: 0 !important;
	min-width: 0 !important;
	max-width: 100% !important;
	padding: 2px 0 !important;
	margin: 8px 0 2px !important;
	overflow: visible !important;
	align-self: flex-start !important;
}
/* Le laurier (qui contient déjà un "10") devient un halo doré ambiant,
   plus une note concurrente : on conserve l'asset mais on le sublime. */
.affivs-wrapper .affivs-score-block .affivs-vs-laurel,
.affivs-wrapper .affivs-score-laurel {
	width: 150px !important;
	max-height: 86px !important;
	opacity: .13 !important;
	filter: grayscale(.15) brightness(1.55) saturate(.65) !important;
}
/* Plaque score : perle + filet, médaille dorée, chiffre tabulaire à l'accent. */
.affivs-wrapper .affivs-product-score,
.affivs-wrapper .affivs-product-a .affivs-product-score,
.affivs-wrapper .affivs-product-b .affivs-product-score {
	position: relative;
	z-index: 1;
	display: inline-flex !important;
	align-items: center !important;
	gap: 9px !important;
	padding: 8px 14px 8px 11px !important;
	border-radius: 15px !important;
	background:
		radial-gradient(120% 80% at 50% -10%, #ffffff, transparent 60%),
		var(--affivs-pearl-grad) !important;
	border: 1px solid var(--affivs-hairline) !important;
	box-shadow:
		0 1px 0 #fff inset,
		0 12px 24px -18px rgba(2, 6, 23, .6) !important;
	color: #0f172a !important;
	font-variant-numeric: tabular-nums;
}
/* Médaille dorée (signature) en tête de plaque */
.affivs-wrapper .affivs-product-score::before {
	content: "";
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .85), transparent 42%),
		var(--affivs-gold-grad);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .55),
		inset 0 -2px 4px rgba(120, 84, 28, .45),
		0 4px 10px -4px rgba(168, 124, 51, .9);
}
/* Texte de la plaque : libellé empilé en eyebrow AU-DESSUS des chiffres.
   Plaque plus étroite (zéro débordement du "?" en colonne ~208px) + lecture
   plus éditoriale : on annonce la nature du score, puis on l'assène. */
.affivs-wrapper .affivs-score-text {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center !important;
	gap: 2px !important;
	line-height: 1 !important;
	min-width: 0 !important;
}
.affivs-wrapper .affivs-score-figures {
	display: inline-flex !important;
	align-items: baseline !important;
	gap: 4px !important;
	line-height: 1 !important;
}
.affivs-wrapper .affivs-score-label {
	display: block !important;
	font-size: 9.5px !important;
	font-weight: 800 !important;
	letter-spacing: .1em !important;
	text-transform: uppercase !important;
	white-space: nowrap !important;
	line-height: 1 !important;
	color: #6b7686 !important;
	opacity: 1 !important;
}
.affivs-wrapper .affivs-score-value {
	font-size: 18px !important;
	line-height: 1 !important;
	color: #0a1424 !important;
}
.affivs-wrapper .affivs-product-a .affivs-score-value { color: var(--affivs-a-deep) !important; }
.affivs-wrapper .affivs-product-b .affivs-score-value { color: var(--affivs-b-deep) !important; }
.affivs-wrapper .affivs-score-max { color: #94a3b8 !important; }
.affivs-wrapper .affivs-score-help {
	border: 1px solid rgba(15, 23, 42, .16) !important;
	background: rgba(255, 255, 255, .85) !important;
	color: #64748b !important;
}
/* Indice technique : reste neutre mais raffiné. */
.affivs-wrapper .affivs-score-technical .affivs-product-score {
	background: linear-gradient(180deg, #fbfcfe, #eef2f7) !important;
	border-color: rgba(100, 116, 139, .22) !important;
}
.affivs-wrapper .affivs-score-technical .affivs-product-score::before {
	background:
		radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .8), transparent 45%),
		linear-gradient(150deg, #cbd5e1, #94a3b8);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 10px -5px rgba(71, 85, 105, .7);
}

/* Ligne avis : étoile dorée nette */
.affivs-wrapper .affivs-rating { color: var(--affivs-gold-4) !important; }

/* ------------------------------------------------------------
 * CTA — bouton premium avec voile lumineux
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-cta {
	position: relative !important;
	overflow: hidden !important;
	background: linear-gradient(135deg, #2f6bf5 0%, #1d4ed8 60%, #1b40bd 100%) !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, .22) inset,
		0 14px 26px -16px rgba(37, 99, 235, .95),
		0 6px 12px -8px rgba(2, 6, 23, .5) !important;
}
.affivs-wrapper .affivs-product-a .affivs-cta {
	background: linear-gradient(135deg, #12c98a 0%, #059669 58%, #047857 100%) !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, .22) inset,
		0 14px 26px -16px rgba(16, 185, 129, .95),
		0 6px 12px -8px rgba(2, 6, 23, .5) !important;
}
.affivs-wrapper .affivs-cta::after {
	content: "";
	position: absolute;
	top: 0;
	left: -120%;
	width: 60%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-18deg);
	pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
	.affivs-wrapper .affivs-cta:hover {
		transform: translateY(-2px) !important;
		filter: brightness(1.04);
	}
	.affivs-wrapper .affivs-cta:hover::after {
		animation: affivs-sheen .85s ease;
	}
}
@keyframes affivs-sheen {
	from { left: -120%; }
	to   { left: 130%; }
}

/* ------------------------------------------------------------
 * MÉDAILLON VS — joyau central
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-vs-badge {
	background:
		radial-gradient(circle at 36% 24%, rgba(255, 255, 255, .65), transparent 30%),
		var(--affivs-gold-grad) !important;
	border: 3px solid rgba(255, 255, 255, .9) !important;
	box-shadow:
		0 0 0 6px rgba(236, 203, 120, .10),
		0 0 34px rgba(205, 161, 79, .4),
		0 22px 44px -20px rgba(168, 124, 51, .95),
		inset 0 -4px 6px rgba(120, 84, 28, .4),
		inset 0 2px 2px rgba(255, 255, 255, .55) !important;
}
.affivs-wrapper .affivs-vs-text {
	color: #5a4012 !important;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}
/* Médaillon image : socle doré subtil + reflet animé au survol */
.affivs-wrapper .affivs-vs-badge.affivs-vs-badge-image {
	position: relative;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 42%, rgba(236, 203, 120, .22), transparent 62%) !important;
}
.affivs-wrapper .affivs-vs-badge-image::after {
	content: "";
	position: absolute;
	inset: 4%;
	border-radius: 50%;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
	opacity: 0;
	pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
	.affivs-wrapper .affivs-hero:hover .affivs-vs-badge-image::after {
		animation: affivs-shimmer 1.1s ease;
	}
}
@keyframes affivs-shimmer {
	0%   { opacity: 0; transform: translateX(-30%) rotate(0deg); }
	35%  { opacity: 1; }
	100% { opacity: 0; transform: translateX(30%) rotate(0deg); }
}

/* Lift discret de carte (desktop précis uniquement) */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
	.affivs-wrapper .affivs-product-card {
		transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease !important;
	}
	.affivs-wrapper .affivs-product-card.affivs-card-clickable:hover {
		transform: translateY(-5px) !important;
		box-shadow:
			0 1px 0 rgba(255, 255, 255, 1) inset,
			0 4px 10px -2px rgba(2, 6, 23, .16),
			0 40px 70px -34px rgba(2, 6, 23, .6),
			0 50px 90px -48px rgba(var(--affivs-accent-a-rgb), .7) !important;
	}
	.affivs-wrapper .affivs-product-b.affivs-card-clickable:hover {
		box-shadow:
			0 1px 0 rgba(255, 255, 255, 1) inset,
			0 4px 10px -2px rgba(2, 6, 23, .16),
			0 40px 70px -34px rgba(2, 6, 23, .6),
			0 50px 90px -48px rgba(var(--affivs-accent-b-rgb), .7) !important;
	}
}

/* ------------------------------------------------------------
 * VERDICT RAPIDE — panneau verre + médaille
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-quick-verdict {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)) !important;
	border: 1px solid rgba(148, 163, 184, .16) !important;
	border-left: 4px solid var(--affivs-accent-a) !important;
	box-shadow: 0 18px 40px -34px rgba(2, 6, 23, .9), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
	backdrop-filter: blur(2px);
}
.affivs-wrapper .affivs-qv-winner-b { border-left-color: var(--affivs-accent-b) !important; }
.affivs-wrapper .affivs-qv-winner-profile { border-left-color: var(--affivs-gold-3) !important; }
.affivs-wrapper .affivs-quick-verdict-icon {
	background:
		radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .8), transparent 45%),
		var(--affivs-gold-grad) !important;
	color: #5a4012 !important;
	border: 1px solid rgba(255, 255, 255, .55);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .55),
		0 10px 20px -10px rgba(168, 124, 51, .8) !important;
}
.affivs-wrapper .affivs-quick-verdict-title { letter-spacing: -.01em; }

/* ------------------------------------------------------------
 * MATRICE — table de données raffinée
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-matrix {
	background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)) !important;
	border: 1px solid rgba(148, 163, 184, .16) !important;
	box-shadow: 0 22px 48px -38px rgba(2, 6, 23, .9) !important;
}
.affivs-wrapper .affivs-matrix-head {
	background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent) !important;
	border-bottom: 1px solid rgba(148, 163, 184, .18) !important;
}
.affivs-wrapper .affivs-matrix-th-advantage {
	color: var(--affivs-gold-2) !important;
	position: relative;
}
.affivs-wrapper .affivs-matrix-th-advantage::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--affivs-gold-3), transparent);
	opacity: .6;
}
.affivs-wrapper .affivs-row { transition: background .18s ease, box-shadow .18s ease !important; }
.affivs-wrapper .affivs-row-winner-a { box-shadow: inset 3px 0 0 rgba(var(--affivs-accent-a-rgb), .55); }
.affivs-wrapper .affivs-row-winner-b { box-shadow: inset 3px 0 0 rgba(var(--affivs-accent-b-rgb), .55); }
.affivs-wrapper .affivs-row-importance-high {
	background: linear-gradient(90deg, rgba(236, 203, 120, .08), transparent 40%) !important;
	box-shadow: inset 3px 0 0 var(--affivs-gold-3) !important;
}
@media (hover: hover) and (pointer: fine) {
	.affivs-wrapper .affivs-row:hover {
		background: rgba(255, 255, 255, .045) !important;
	}
}
/* Icône critère : pastille duotone dorée */
.affivs-wrapper .affivs-criterion-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background:
		radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .14), transparent 60%),
		linear-gradient(150deg, rgba(236, 203, 120, .18), rgba(205, 161, 79, .06)) !important;
	border: 1px solid rgba(205, 161, 79, .26);
	color: var(--affivs-gold-2) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.affivs-wrapper .affivs-criterion-icon .affivs-svg { width: 18px !important; height: 18px !important; }
.affivs-wrapper .affivs-criterion-label { letter-spacing: -.005em; }

/* Statuts : pastilles plus matières */
.affivs-wrapper .affivs-status {
	border: 1px solid transparent !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25) !important;
}
.affivs-wrapper .affivs-status-yes {
	background: linear-gradient(135deg, rgba(var(--affivs-accent-a-rgb), .22), rgba(var(--affivs-accent-a-rgb), .12)) !important;
	color: var(--affivs-a-deep) !important;
	border-color: rgba(var(--affivs-accent-a-rgb), .3) !important;
}
.affivs-wrapper .affivs-status-no {
	background: linear-gradient(135deg, rgba(239, 68, 68, .2), rgba(239, 68, 68, .1)) !important;
	color: #b91c1c !important;
	border-color: rgba(239, 68, 68, .28) !important;
}
.affivs-wrapper .affivs-status-partial {
	background: linear-gradient(135deg, rgba(236, 203, 120, .26), rgba(205, 161, 79, .12)) !important;
	color: #92651b !important;
	border-color: rgba(205, 161, 79, .32) !important;
}

/* Pastilles "Avantage" : reliefs subtils */
.affivs-wrapper .affivs-advantage-pill {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -12px rgba(2, 6, 23, .6) !important;
}
.affivs-wrapper .affivs-advantage-a .affivs-advantage-pill {
	background: linear-gradient(135deg, rgba(var(--affivs-accent-a-rgb), .2), rgba(var(--affivs-accent-a-rgb), .1)) !important;
}
.affivs-wrapper .affivs-advantage-b .affivs-advantage-pill {
	background: linear-gradient(135deg, rgba(var(--affivs-accent-b-rgb), .2), rgba(var(--affivs-accent-b-rgb), .1)) !important;
}
.affivs-wrapper .affivs-advantage-profile .affivs-advantage-pill {
	background: linear-gradient(135deg, rgba(236, 203, 120, .28), rgba(205, 161, 79, .12)) !important;
	color: #92651b !important;
	border-color: rgba(205, 161, 79, .34) !important;
}

/* ------------------------------------------------------------
 * PROS / CONS — cartes nettes
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-pc-card {
	background: var(--affivs-pearl-grad) !important;
	border: 1px solid rgba(226, 232, 240, .9) !important;
	box-shadow:
		0 1px 0 #fff inset,
		0 22px 46px -32px rgba(2, 6, 23, .5) !important;
}
.affivs-wrapper .affivs-pc-thumb {
	border: 1px solid rgba(226, 232, 240, .9) !important;
	box-shadow: inset 0 1px 0 #fff, 0 6px 14px -10px rgba(2, 6, 23, .4) !important;
	background: #fff !important;
}
.affivs-wrapper .affivs-pc-name { color: #0a1424 !important; font-family: var(--affivs-display) !important; }
.affivs-wrapper .affivs-pc-block h4 { color: #64748b !important; }
.affivs-wrapper .affivs-pc-icon { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4) !important; }
.affivs-wrapper .affivs-pc-icon-pro {
	background: linear-gradient(135deg, rgba(var(--affivs-accent-a-rgb), .22), rgba(var(--affivs-accent-a-rgb), .1)) !important;
	color: var(--affivs-a-deep) !important;
}
.affivs-wrapper .affivs-pc-icon-con {
	background: linear-gradient(135deg, rgba(239, 68, 68, .2), rgba(239, 68, 68, .1)) !important;
	color: #b91c1c !important;
}
.affivs-wrapper .affivs-pc-choose-if {
	background:
		linear-gradient(180deg, rgba(236, 203, 120, .12), rgba(236, 203, 120, .04)) !important;
	border-left: 3px solid var(--affivs-gold-3) !important;
	border: 1px solid rgba(205, 161, 79, .2);
	border-left: 3px solid var(--affivs-gold-3) !important;
}
.affivs-wrapper .affivs-pc-icon-profile {
	background: linear-gradient(135deg, rgba(236, 203, 120, .28), rgba(205, 161, 79, .12)) !important;
	color: #92651b !important;
}

/* ------------------------------------------------------------
 * VERDICT FINAL — panneau éditorial + médaille
 * ------------------------------------------------------------ */
.affivs-wrapper .affivs-final-verdict {
	background:
		radial-gradient(120% 60% at 50% -10%, rgba(236, 203, 120, .07), transparent 50%),
		linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)) !important;
	border: 1px solid rgba(148, 163, 184, .16) !important;
	box-shadow: 0 24px 52px -38px rgba(2, 6, 23, .92), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}
.affivs-wrapper .affivs-fv-icon {
	background:
		radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .8), transparent 45%),
		var(--affivs-gold-grad) !important;
	color: #5a4012 !important;
	border: 1px solid rgba(255, 255, 255, .55);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .55),
		0 10px 22px -10px rgba(168, 124, 51, .85) !important;
}
.affivs-wrapper .affivs-fv-title { font-family: var(--affivs-display) !important; letter-spacing: -.01em; }
.affivs-wrapper .affivs-fv-chip {
	background: var(--affivs-pearl-grad) !important;
	border: 1px solid rgba(226, 232, 240, .9) !important;
	box-shadow: 0 1px 0 #fff inset, 0 14px 28px -22px rgba(2, 6, 23, .5) !important;
}
.affivs-wrapper .affivs-fv-chip-label { color: #64748b !important; }
.affivs-wrapper .affivs-fv-chip-value { color: #0a1424 !important; }
.affivs-wrapper .affivs-fv-chip-reason { color: #475569 !important; }
/* Le "meilleur choix global" porte le filet doré (récompense) */
.affivs-wrapper .affivs-fv-chip-global { border-top: 3px solid var(--affivs-gold-3) !important; }

.affivs-wrapper .affivs-price-disclaimer { opacity: .65 !important; }

/* Bouton "voir plus de critères" (injecté en JS) — accordé au thème */
.affivs-wrapper .affivs-toggle-more {
	border: 1px solid rgba(205, 161, 79, .4) !important;
	color: var(--affivs-gold-2) !important;
	background: rgba(236, 203, 120, .06) !important;
}

/* ------------------------------------------------------------
 * MOUVEMENT RÉDUIT — on neutralise tous les effets premium
 * ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.affivs-wrapper .affivs-cta::after,
	.affivs-wrapper .affivs-vs-badge-image::after { animation: none !important; }
	.affivs-wrapper .affivs-product-card,
	.affivs-wrapper .affivs-cta,
	.affivs-wrapper .affivs-row { transition: none !important; }
}

/* 4.1.16 — Lisibilité renforcée des badges d'égalité */
.affivs-wrapper .affivs-advantage-badge.affivs-advantage-equal .affivs-advantage-pill,
.affivs-wrapper .affivs-advantage-equal .affivs-advantage-pill,
.affivs-advantage-badge.affivs-advantage-equal .affivs-advantage-pill,
.affivs-advantage-equal .affivs-advantage-pill,
.affivs-wrapper .affivs-badge-equal,
.affivs-badge-equal,
.affivs-wrapper .affivs-equal,
.affivs-equal,
.affivs-wrapper .affivs-advantage-equal,
.affivs-advantage-equal {
	color: #ffffff !important;
	text-shadow: 0 1px 1px rgba(15, 23, 42, .35);
}
.affivs-wrapper .affivs-advantage-badge.affivs-advantage-equal .affivs-advantage-pill {
	background: linear-gradient(135deg, rgba(148, 163, 184, .24), rgba(100, 116, 139, .18)) !important;
	border-color: rgba(148, 163, 184, .42) !important;
}


/* 4.1.17 — Alignement type tableur des cartes Pros / Cons */
.affivs-wrapper .affivs-pros-cons {
	align-items: stretch;
}
.affivs-wrapper .affivs-pc-card {
	height: 100%;
}
.affivs-wrapper .affivs-pc-card .affivs-cta {
	margin-top: auto !important;
}
.affivs-wrapper .affivs-pc-block-placeholder {
	visibility: hidden;
	pointer-events: none;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden;
}
@media (max-width: 767px) {
	.affivs-wrapper .affivs-pc-block-placeholder {
		display: none !important;
	}
}

/* ------------------------------------------------------------
 * DATA GAPS — bloc neutre “À vérifier avant achat”
 * ------------------------------------------------------------ */
.affivs-pc-data-gaps {
	background: rgba(249, 115, 22, 0.07);
	border-radius: var(--affivs-radius-sm);
	padding: 12px 14px;
	border-left: 3px solid #f59e0b;
}
.affivs-pc-icon-gap {
	background: rgba(249, 115, 22, 0.16);
	color: #c2410c;
}
.affivs-wrapper .affivs-pc-data-gaps {
	background: linear-gradient(180deg, rgba(249, 115, 22, .10), rgba(249, 115, 22, .04)) !important;
	border: 1px solid rgba(245, 158, 11, .20) !important;
	border-left: 3px solid #f59e0b !important;
}
.affivs-wrapper .affivs-pc-icon-gap {
	background: linear-gradient(135deg, rgba(249, 115, 22, .22), rgba(249, 115, 22, .10)) !important;
	color: #c2410c !important;
}
