/* compare/tableau-sources — tableau comparatif de chiffres publies par source.
 * Engagement 5 : aucun hexadecimal, valeurs de repli comprises. */

.ivy-compare--tableau-sources {
	padding-block: clamp( 80px, 9vw, 136px );
	color: var( --ivy-ink, rgb( 14 47 56 ) );
}

.ivy-compare--tableau-sources .ivy-compare__inner {
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: calc( 1376px + 2 * clamp( 20px, 2.4vw, 32px ) );
	margin-inline: auto;
	padding-inline: clamp( 20px, 2.4vw, 32px );
}

.ivy-compare--tableau-sources .ivy-compare__title {
	margin: 0;
	color: var( --ivy-title-color, inherit );
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.ivy-compare--tableau-sources .ivy-compare__text {
	margin: 16px 0 0;
	color: var( --ivy-text-color, var( --ivy-muted, rgb( 86 101 106 ) ) );
	line-height: 1.45;
}

.ivy-compare--tableau-sources .ivy-compare__table {
	inline-size: 100%;
	margin: clamp( 40px, 4.5vw, 64px ) 0 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
	font-variant-numeric: lining-nums;
}

.ivy-compare--tableau-sources .ivy-compare__table thead th {
	padding: 0 16px 14px 0;
	border: 0;
	border-block-end: 1px solid var( --ivy-line, rgb( 14 47 56 / 0.12 ) );
	background: transparent;
	color: var( --ivy-heading_row-color, var( --ivy-muted, rgb( 86 101 106 ) ) );
	font-size: calc( var( --ivy-font-body ) * 0.7647 );
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: start;
}

.ivy-compare--tableau-sources .ivy-compare__table thead th:first-child {
	inline-size: 40%;
}

.ivy-compare--tableau-sources .ivy-compare__table thead th:not( :first-child ),
.ivy-compare--tableau-sources .ivy-compare__table td {
	text-align: end;
}

.ivy-compare--tableau-sources .ivy-compare__table tbody th {
	text-align: start;
}

.ivy-compare--tableau-sources .ivy-compare__table tbody th,
.ivy-compare--tableau-sources .ivy-compare__table td {
	padding: 22px 16px 22px 0;
	border: 0;
	border-block-end: 1px solid var( --ivy-line, rgb( 14 47 56 / 0.12 ) );
	background: transparent;
	vertical-align: baseline;
}

.ivy-compare--tableau-sources .ivy-compare__source-name {
	display: block;
	color: var( --ivy-item_title-color, inherit );
	font-family: var( --ivy-font-titre, inherit );
	font-size: calc( var( --ivy-font-body ) * 1.1765 );
	font-weight: 500;
	line-height: 1.2;
}

.ivy-compare--tableau-sources .ivy-compare__source-period {
	display: block;
	margin-block-start: 4px;
	color: var( --ivy-item_text-color, var( --ivy-muted, rgb( 86 101 106 ) ) );
	font-size: calc( var( --ivy-font-body ) * 0.8235 );
	font-weight: 400;
	line-height: 1.55;
}

.ivy-compare--tableau-sources .ivy-compare__cell {
	color: var( --ivy-cell-color, inherit );
	font-size: var( --ivy-font-h4 );
	letter-spacing: -0.02em;
	line-height: 1.55;
}

.ivy-compare--tableau-sources .ivy-compare__note {
	margin: 24px 0 0;
	color: var( --ivy-note-color, var( --ivy-muted, rgb( 86 101 106 ) ) );
	line-height: 1.55;
}

@media ( max-width: 699px ) {
	.ivy-compare--tableau-sources .ivy-compare__table thead {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		margin: -1px;
		padding: 0;
		border: 0;
		overflow: hidden;
		white-space: nowrap;
	}

	.ivy-compare--tableau-sources .ivy-compare__table tr,
	.ivy-compare--tableau-sources .ivy-compare__table tbody th,
	.ivy-compare--tableau-sources .ivy-compare__table td {
		display: block;
	}

	.ivy-compare--tableau-sources .ivy-compare__table tr {
		padding-block: 16px;
		border-block-end: 1px solid var( --ivy-line, rgb( 14 47 56 / 0.12 ) );
	}

	.ivy-compare--tableau-sources .ivy-compare__table tbody th,
	.ivy-compare--tableau-sources .ivy-compare__table td {
		padding: 4px 0;
		border: 0;
	}

	.ivy-compare--tableau-sources .ivy-compare__table td {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		font-size: calc( var( --ivy-font-body ) * 1.1765 );
	}

	.ivy-compare--tableau-sources .ivy-compare__table td::before {
		content: attr( data-titre );
		color: var( --ivy-muted, rgb( 86 101 106 ) );
		font-size: calc( var( --ivy-font-body ) * 0.8235 );
		letter-spacing: 0;
	}
}
