/* Studio Lumile AffiLink – tableau comparatif */

.affx-cmp {
	--affx-cmp-border: #e3e6ea;
	--affx-cmp-ink: #14181d;
	--affx-cmp-muted: #5f6b76;
	--affx-cmp-label-w: 160px;
	--affx-cmp-col-min: 180px;
	--affx-feat-w: 2px;
	--affx-feat-c: #f5b301;
	--affx-cta-bg: #14181d;
	--affx-cta-color: #ffffff;
	width: 100%;
	max-width: 100%;
	color: var(--affx-cmp-ink);
}

.affx-cmp *,
.affx-cmp *::before,
.affx-cmp *::after {
	box-sizing: border-box;
}

/* Le défilement horizontal est porté par ce conteneur : sur mobile, le
   tableau garde une largeur lisible et la colonne des libellés reste collée. */
.affx-cmp-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border: 1px solid var(--affx-cmp-border);
	border-radius: 12px;
}

.affx-cmp-table {
	width: 100%;
	min-width: calc( var(--affx-cmp-label-w) + var(--affx-cmp-cols, 2) * var(--affx-cmp-col-min) );
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	margin: 0;
	background: transparent;
}

.affx-cmp--nolabels .affx-cmp-table {
	min-width: calc( var(--affx-cmp-cols, 2) * var(--affx-cmp-col-min) );
}

.affx-cmp-table th,
.affx-cmp-table td {
	margin: 0;
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--affx-cmp-border);
	border-right: 1px solid var(--affx-cmp-border);
	vertical-align: middle;
	text-align: center;
	background-clip: padding-box;
	transition: background-color .2s ease, color .2s ease;
}

.affx-cmp-table tr:last-child > th,
.affx-cmp-table tr:last-child > td {
	border-bottom: 0;
}

.affx-cmp-table tr > *:last-child {
	border-right: 0;
}

/* Colonne des libellés */
.affx-cmp-table th.affx-cmp-label {
	width: var(--affx-cmp-label-w);
	text-align: left;
	font-weight: 600;
	font-size: 14px;
	color: var(--affx-cmp-ink);
	background: #f6f7f9;
	position: sticky;
	left: 0;
	z-index: 2;
}

/* Lignes de titre de groupe */
.affx-cmp-table th.affx-cmp-group {
	text-align: left;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--affx-cmp-muted);
	background: #eceef1;
	padding: 10px 16px;
}

.affx-cmp-cell {
	position: relative;
	overflow-wrap: anywhere;
}

/* Colonne mise en avant */
.affx-cmp-cell.is-featured {
	background-color: #fffbea;
	box-shadow: inset var(--affx-feat-w) 0 0 var(--affx-feat-c), inset calc( -1 * var(--affx-feat-w) ) 0 0 var(--affx-feat-c);
}

.affx-cmp-badge {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX( -50% );
	max-width: 100%;
	padding: 3px 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.4;
	text-transform: uppercase;
	white-space: nowrap;
	color: #14181d;
	background: var(--affx-feat-c);
	border-radius: 0 0 8px 8px;
}

/* Contenus */
.affx-cmp-img {
	display: block;
	overflow: hidden;
}

.affx-cmp-img a {
	display: block;
}

.affx-cmp-img img {
	display: block;
	width: 100%;
	height: 140px;
	margin: 0 auto;
	object-fit: contain;
	transition: transform .3s ease;
}

.affx-cmp-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--affx-cmp-ink);
}

.affx-cmp-title a,
.affx-cmp-title a:hover {
	color: inherit;
	text-decoration: none;
}

.affx-cmp-merchant {
	font-size: 13px;
	color: var(--affx-cmp-muted);
}

.affx-cmp-desc {
	font-size: 14px;
	line-height: 1.5;
	color: var(--affx-cmp-muted);
	text-align: left;
}

.affx-cmp-desc p {
	margin: 0 0 .5em;
}

.affx-cmp-desc p:last-child {
	margin-bottom: 0;
}

.affx-cmp-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--affx-cmp-ink);
	white-space: nowrap;
}

.affx-cmp-value {
	font-size: 14px;
	line-height: 1.5;
}

.affx-cmp-yes,
.affx-cmp-no {
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.affx-cmp-yes {
	color: #1a9d4a;
}

.affx-cmp-no {
	color: #c0392b;
}

.affx-cmp-empty {
	color: #a0a8b0;
}

.affx-cmp-cta {
	display: inline-block;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--affx-cta-color);
	background: var(--affx-cta-bg);
	border: 1px solid transparent;
	border-radius: 8px;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
}

.affx-cmp-cta:hover,
.affx-cmp-cta:focus {
	color: var(--affx-cta-color);
	opacity: .88;
}

.affx-cmp-disclosure {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	color: var(--affx-cmp-muted);
}

/* Mobile : colonnes un peu plus étroites, libellés compacts. */
@media ( max-width: 640px ) {
	.affx-cmp-table th,
	.affx-cmp-table td {
		padding: 10px 10px;
	}

	.affx-cmp {
		--affx-cmp-label-w: 110px;
		--affx-cmp-col-min: 150px;
	}
}
