/* More – Tableau comparatif (Elementor) */

.mct {
	--mct-border: #ece6d9;
	--mct-head-bg: #fbf7ef;
	--mct-cell-bg: #ffffff;
	--mct-hl-head-bg: #d8b26a;
	--mct-hl-head-color: #ffffff;
	--mct-hl-cell-bg: #fdf6e6;
	--mct-accent: #c9a24f;
	--mct-yes: var(--mct-accent);
	--mct-no: #2b2b2b;
	--mct-opt: var(--mct-accent);
	--mct-symbol-size: 18px;
	--mct-gap: 0px;
	--mct-gap-color: #ffffff;

	color: #2b2b2b;
	font-size: 14px;
	line-height: 1.4;
}

.mct__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--mct-border);
	border-radius: 4px;
}

.mct__table {
	width: 100%;
	min-width: 760px;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
	table-layout: auto;
}

.mct__table th,
.mct__table td {
	border: 0;
	border-bottom: 1px solid var(--mct-border);
	background-color: var(--mct-cell-bg);
	padding: 9px 12px;
	vertical-align: middle;
	font-weight: 400;
	text-align: center;
	/* Neutralise les styles de tableau du thème (texte blanc sur th, etc.) */
	color: #2b2b2b;
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
}

.mct-vlines-yes .mct__table th,
.mct-vlines-yes .mct__table td {
	border-right: 1px solid var(--mct-border);
}

.mct-vlines-yes .mct__table tr > :last-child {
	border-right: 0;
}

.mct__table tbody:last-child > tr:last-child > *,
.mct__table tbody:last-child .mct__group-cell[rowspan] {
	border-bottom: 0;
}

/* Espace entre les groupes */
.mct__section + .mct__section > tr:first-child > * {
	border-top: var(--mct-gap) solid var(--mct-gap-color);
}

/* Alignements */
.mct__table .mct-align-left { text-align: left; }
.mct__table .mct-align-center { text-align: center; }
.mct__table .mct-align-right { text-align: right; }

/* En-tête */
.mct__table thead th {
	background-color: var(--mct-head-bg);
	padding: 14px 12px;
	font-weight: 600;
	vertical-align: middle;
}

.mct__th-inner {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	max-width: 100%;
}

.mct__th-inner--top {
	flex-direction: column;
	gap: 4px;
}

.mct-align-left .mct__th-inner--top { align-items: flex-start; }
.mct-align-right .mct__th-inner--top { align-items: flex-end; }

.mct__th-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mct__th-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}

.mct__th-sub {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	color: #666;
}

.mct__th-icon,
.mct__group-icon,
.mct__note-icon {
	display: inline-flex;
	line-height: 1;
	color: var(--mct-accent);
	fill: var(--mct-accent);
	flex: 0 0 auto;
}

.mct__th-icon { font-size: 26px; }
.mct__group-icon { font-size: 34px; }
.mct__note-icon { font-size: 26px; }

.mct__th-icon svg,
.mct__group-icon svg,
.mct__note-icon svg {
	width: 1em;
	height: 1em;
}

/* 1re colonne */
.mct__table tbody th.mct__label {
	font-weight: 500;
	white-space: nowrap;
}

.mct__row--note > th.mct__label {
	font-weight: 600;
	padding-top: 14px;
	padding-bottom: 14px;
}

/* Colonne mise en avant */
.mct__table thead th.is-highlight {
	background-color: var(--mct-hl-head-bg);
	color: var(--mct-hl-head-color);
}

.mct__table thead th.is-highlight .mct__th-sub,
.mct__table thead th.is-highlight .mct__th-icon {
	color: inherit;
	fill: currentColor;
}

.mct__table tbody .is-highlight {
	background-color: var(--mct-hl-cell-bg);
}

/* Groupes */
.mct__table .mct__group-cell {
	text-align: left;
	vertical-align: top;
	padding: 16px;
	background-color: var(--mct-cell-bg);
}

.mct__group-inner {
	display: flex;
	align-items: center;
	gap: 14px;
}

.mct__group-title {
	font-size: 15px;
	font-weight: 600;
}

.mct__group-row .mct__group-cell {
	background-color: var(--mct-head-bg);
	padding: 12px 16px;
}

.mct--groups-side .mct__th--group {
	width: 200px;
}

.mct--groups-side .mct__label {
	font-size: 13px;
	color: #555;
}

.mct--groups-side .mct__table tbody th.mct__label {
	white-space: normal;
	font-weight: 400;
}

/* Note fusionnée */
.mct__table td.mct__note {
	color: #555;
}

.mct__note-inner {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-align: left;
}

/* Symboles */
.mct__symbol {
	display: inline-block;
	width: var(--mct-symbol-size);
	height: var(--mct-symbol-size);
	vertical-align: middle;
}

.mct__symbol--yes { color: var(--mct-yes); }
.mct__symbol--no { color: var(--mct-no); }
.mct__symbol--opt { color: var(--mct-opt); }

/* Liens */
.mct__link {
	color: #a8843a;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.mct__link:hover,
.mct__link:focus {
	color: #7d6026;
}

.mct__link-arrow {
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-left: 6px;
	vertical-align: -0.15em;
	transition: transform .2s ease;
}

.mct__link:hover .mct__link-arrow {
	transform: translateX(3px);
}

/* Légende */
.mct__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 28px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.mct__scroll + .mct__legend {
	margin: 12px 0 0;
}

.mct__legend li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

/* Texte réservé aux lecteurs d'écran */
.mct__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* 1re colonne figée */
.mct--sticky .mct__col-first {
	position: sticky;
	left: 0;
	z-index: 2;
}

.mct--sticky .mct__col-first::after {
	content: "";
	position: absolute;
	top: 0;
	right: -1px;
	bottom: 0;
	width: 1px;
	background: var(--mct-border);
}
