/* Comparateur de deux grades (1.35.0, présentation refaite en 1.35.2). Chargé seulement sur la page qui porte [fp_comparateur].
   Mobile d'abord (360 px sans défilement horizontal de la page).
   Couleurs : palette du logo FSU 62. Une couleur par côté (A = bleu, B = vert), le jaune pour l'écart B moins A (un simple
   repère, pas un jugement), le rouge seulement pour le bouton « Comparer ». Jamais de rouge ni de vert « bien ou mal » pour un
   écart. Le thème applique `button:hover { color:#fff; background:#3f4047 }` : chaque bouton redéclare sa couleur et son fond
   dans ses états :hover, :focus et :active. */

/* --- Mise en page de la page (classe de body ajoutée par l'extension) ----------------------------------------------- */

/* Le gabarit page.php du thème met l'article et « À lire aussi » côte à côte : sur cette page, l'article prend toute la largeur. */
.fp-comparateur-page .fsu62-content-layout {
	display: block;
}

.fp-comparateur-page .fsu62-related {
	display: none;
}

/* Le bloc « Partager cette page » du thème est masqué ici : le bloc « Partager cette comparaison » partage la comparaison exacte. */
.fp-comparateur-page .fsu62-share {
	display: none;
}

.fp-comparateur {
	--fp-red: #c8282f;
	--fp-ink: #171717;
	--fp-blue: #245f87;
	--fp-blue-soft: #eaf3f9;
	--fp-line: #d5dbe0;
	--fp-muted: #4a5763;
	--fp-yellow: #efb33e;
	--fp-yellow-soft: #fff4d6;
	--fp-yellow-ink: #6b4a00;
	box-sizing: border-box;
	color: var(--fp-ink);
	margin: 1.25rem 0 2rem;
	max-width: 100%;
}

/* Identité de chaque côté : texte et pastilles (--side), filets (--side-band), fonds très clairs (--side-soft). */
.fp-comp-cote-a,
.fp-comp-legende-a,
.fp-comp-colonne-a {
	--side: #245f87;
	--side-ink: #245f87;
	--side-band: #307baa;
	--side-soft: #eaf3f9;
	--side-line: #b9d3e4;
}

.fp-comp-cote-b,
.fp-comp-legende-b,
.fp-comp-colonne-b {
	--side: #3a7a24;
	--side-ink: #2f6a1c;
	--side-band: #6aac4b;
	--side-soft: #eef7e9;
	--side-line: #c5dfb8;
}

.fp-comparateur *,
.fp-comparateur *::before,
.fp-comparateur *::after {
	box-sizing: border-box;
}

.fp-comparateur .fp-visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.fp-comp-titre {
	color: var(--fp-ink);
	margin: 0 0 .5rem;
}

.fp-comp-intro {
	color: var(--fp-muted);
	margin: 0 0 1.1rem;
}

.fp-comp-pastille {
	align-items: center;
	background: var(--side, var(--fp-blue));
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: .85rem;
	font-weight: 800;
	height: 1.7rem;
	justify-content: center;
	line-height: 1;
	width: 1.7rem;
}

/* --- Formulaire ------------------------------------------------------------------------------------- */

.fp-comp-colonnes {
	display: grid;
	gap: 1.4rem;
	grid-template-columns: minmax(0, 1fr);
}

.fp-comp-cote {
	background: var(--side-soft);
	border: 1px solid var(--side-line);
	border-radius: 14px;
	border-top: 4px solid var(--side-band);
	display: grid;
	gap: .8rem;
	margin: 0;
	min-width: 0;
	padding: 1.1rem 1rem 1rem;
}

.fp-comp-cote legend {
	align-items: center;
	background: var(--side);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 1rem;
	font-weight: 800;
	gap: .5rem;
	line-height: 1.2;
	margin-left: .2rem;
	padding: .25rem .9rem .25rem .3rem;
}

.fp-comp-cote legend .fp-comp-pastille {
	background: #fff;
	color: var(--side-ink);
}

.fp-comp-champ {
	display: grid;
	gap: .3rem;
	min-width: 0;
}

.fp-comp-champ[hidden],
.fp-comp-aide[hidden],
.fp-comp-filtres[hidden],
.fp-comp-compteur[hidden] {
	display: none;
}

.fp-comp-filtres {
	display: grid;
	gap: .8rem;
}

.fp-comp-champ label,
.fp-comp-etiquette {
	color: #273846;
	font-size: .9rem;
	font-weight: 700;
}

.fp-comp-champ select,
.fp-comp-champ input {
	background: #fff;
	border: 1px solid #8a97a3;
	border-radius: 8px;
	color: var(--fp-ink);
	font: inherit;
	font-size: 1rem;
	max-width: 100%;
	min-height: 44px;
	padding: .35rem .6rem;
	width: 100%;
}

.fp-comp-champ select:disabled {
	background: #eef1f4;
	color: #5a6672;
}

.fp-comp-champ select:focus-visible,
.fp-comp-champ input:focus-visible {
	border-color: var(--side);
	outline: 3px solid var(--side-band);
	outline-offset: 1px;
}

.fp-comp-aide {
	color: var(--fp-muted);
	font-size: .85rem;
	margin: 0;
}

.fp-comp-compteur {
	color: var(--side-ink);
	font-size: .85rem;
	font-weight: 700;
	margin: 0;
}

/* Puces « Catégorie » : un seul choix à la fois, « Toutes » par défaut. */
.fp-comp-puces {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
}

.fp-comparateur button.fp-comp-puce,
.fp-comparateur button.fp-comp-puce:visited {
	background: #fff;
	border: 2px solid var(--side);
	border-radius: 999px;
	color: var(--side-ink);
	cursor: pointer;
	font: inherit;
	font-size: .95rem;
	font-weight: 800;
	line-height: 1;
	min-height: 40px;
	min-width: 44px;
	padding: 0 .95rem;
}

.fp-comparateur button.fp-comp-puce:hover,
.fp-comparateur button.fp-comp-puce:focus,
.fp-comparateur button.fp-comp-puce:active {
	background: #fff;
	border-color: var(--side);
	color: var(--side-ink);
	text-decoration: underline;
}

.fp-comparateur button.fp-comp-puce[aria-pressed="true"],
.fp-comparateur button.fp-comp-puce[aria-pressed="true"]:hover,
.fp-comparateur button.fp-comp-puce[aria-pressed="true"]:focus,
.fp-comparateur button.fp-comp-puce[aria-pressed="true"]:active {
	background: var(--side);
	border-color: var(--side);
	color: #fff;
	text-decoration: none;
}

.fp-comparateur button.fp-comp-puce:focus-visible {
	outline: 3px solid var(--fp-ink);
	outline-offset: 2px;
}

.fp-comp-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1.3rem 0 0;
}

.fp-comparateur button.fp-comp-bouton,
.fp-comparateur button.fp-comp-bouton:visited {
	background: var(--fp-red);
	border: 2px solid var(--fp-red);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 1rem;
	font-weight: 800;
	min-height: 44px;
	padding: 0 1.6rem;
}

.fp-comparateur button.fp-comp-bouton:hover,
.fp-comparateur button.fp-comp-bouton:focus,
.fp-comparateur button.fp-comp-bouton:active {
	background: #a81f25;
	border-color: #a81f25;
	color: #fff;
}

.fp-comparateur button.fp-comp-bouton:focus-visible {
	outline: 3px solid var(--fp-blue);
	outline-offset: 2px;
}

.fp-comparateur a.fp-comp-recommencer,
.fp-comparateur a.fp-comp-recommencer:visited {
	align-items: center;
	color: var(--fp-blue);
	display: inline-flex;
	font-weight: 700;
	min-height: 44px;
	text-decoration: underline;
}

.fp-comparateur a.fp-comp-recommencer:hover,
.fp-comparateur a.fp-comp-recommencer:focus,
.fp-comparateur a.fp-comp-recommencer:active {
	color: #1d3f58;
}

.fp-comparateur a.fp-comp-recommencer:focus-visible {
	outline: 3px solid var(--fp-blue);
	outline-offset: 2px;
}

.fp-comp-attente,
.fp-comp-erreur {
	background: var(--fp-blue-soft);
	border-left: 4px solid var(--fp-blue);
	border-radius: 0 8px 8px 0;
	color: #1d3f58;
	margin: 1.25rem 0 0;
	padding: .7rem .9rem;
}

/* --- Résumé ----------------------------------------------------------------------------------------- */

.fp-comp-resume {
	margin: 2rem 0 0;
}

.fp-comparateur h3.fp-comp-resume-titre,
.fp-comp-partage h3 {
	border: 0;
	color: var(--fp-ink);
	font-size: 1.5rem;
	line-height: 1.2;
	margin: 0 0 .8rem;
	padding: 0;
}

.fp-comparateur h3.fp-comp-resume-titre::after {
	background: linear-gradient(90deg, #307baa 0 25%, #6aac4b 25% 50%, #efb33e 50% 75%, #c8282f 75% 100%);
	border-radius: 3px;
	content: "";
	display: block;
	height: 4px;
	margin-top: .45rem;
	width: 4.5rem;
}

.fp-comp-legende {
	display: grid;
	gap: .6rem;
	grid-template-columns: minmax(0, 1fr);
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.fp-comp-legende li {
	align-items: flex-start;
	background: var(--side-soft);
	border-left: 5px solid var(--side-band);
	border-radius: 0 10px 10px 0;
	display: flex;
	gap: .65rem;
	margin: 0;
	min-width: 0;
	padding: .6rem .8rem;
}

.fp-comp-legende strong {
	color: var(--fp-ink);
	display: block;
	line-height: 1.3;
}

.fp-comp-situation {
	color: var(--fp-muted);
	display: block;
	font-size: .88rem;
	line-height: 1.35;
}

/* Cartes : premier échelon, dernier échelon, carrière. Le tableau reste un vrai tableau (en-têtes, légende) pour les
   lecteurs d'écran ; il est seulement mis en forme en blocs empilés, un chiffre par ligne. */
.fp-comp-cartes {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr);
}

.fp-comp-carte {
	background: #fff;
	border: 1px solid var(--fp-line);
	border-radius: 14px;
	border-top: 4px solid var(--fp-yellow);
	min-width: 0;
	padding: .9rem 1rem 1rem;
}

.fp-comp-carte h4 {
	color: var(--fp-ink);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 .7rem;
}

.fp-comp-hero {
	background: var(--fp-yellow-soft);
	border-left: 5px solid var(--fp-yellow);
	border-radius: 0 10px 10px 0;
	display: grid;
	gap: .1rem;
	margin: 0 0 .5rem;
	padding: .55rem .8rem .6rem;
}

.fp-comp-hero-etiquette {
	color: var(--fp-yellow-ink);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.fp-comp-hero-valeur {
	color: var(--fp-ink);
	font-size: clamp(1.7rem, 5vw, 2.15rem);
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1.1;
	white-space: normal;
}

.fp-comp-hero-pct {
	color: #3d2f00;
	font-size: .95rem;
	font-weight: 700;
}

.fp-comp-mesures {
	border-collapse: collapse;
	display: block;
	margin: 0;
	width: 100%;
}

.fp-comp-mesures caption,
.fp-comp-mesures thead {
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.fp-comp-mesures tbody,
.fp-comp-mesures tr,
.fp-comp-mesures th,
.fp-comp-mesures td {
	background: transparent;
	border: 0;
	display: block;
}

.fp-comp-mesures,
.fp-comp-mesures tbody {
	border: 0;
}

.fp-comp-mesures tbody tr {
	border: 0;
	border-top: 1px solid #e6eaee;
	padding: .55rem 0 .5rem;
}

.fp-comp-mesures tbody tr:first-child {
	border-top: 0;
}

.fp-comp-mesures th[scope="row"] {
	color: #273846;
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .04em;
	padding: 0 0 .25rem;
	text-align: left;
	text-transform: uppercase;
}

.fp-comp-mesures td {
	align-items: center;
	display: flex;
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	gap: .6rem;
	justify-content: space-between;
	line-height: 1.3;
	padding: .12rem 0;
	text-align: right;
	white-space: nowrap;
}

/* Étiquette de chaque valeur : pastille A ou B dans la couleur du côté. */
.fp-comp-mesures td::before {
	align-items: center;
	background: var(--fp-blue);
	border-radius: 50%;
	color: #fff;
	content: attr(data-side);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: .75rem;
	font-weight: 800;
	height: 1.5rem;
	justify-content: center;
	width: 1.5rem;
}

.fp-comp-mesures td[data-side="B"]::before {
	background: #3a7a24;
}

.fp-comp-mesures td.fp-comp-ecart {
	background: var(--fp-yellow-soft);
	border-left: 4px solid var(--fp-yellow);
	border-radius: 0 8px 8px 0;
	color: var(--fp-ink);
	font-weight: 800;
	margin-top: .3rem;
	padding: .3rem .55rem;
	white-space: normal;
}

.fp-comp-mesures td.fp-comp-ecart::before {
	background: transparent;
	border-radius: 0;
	color: var(--fp-yellow-ink);
	font-size: .75rem;
	height: auto;
	letter-spacing: .04em;
	text-transform: uppercase;
	width: auto;
}

/* Écart déjà donné en grand au-dessus : gardé pour les lecteurs d'écran, masqué à l'écran. */
.fp-comp-mesures td.fp-comp-ecart-repete {
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.fp-comp-note {
	color: var(--fp-muted);
	font-size: .88rem;
	margin: .9rem 0 0;
}

/* --- Grilles côte à côte ---------------------------------------------------------------------------- */

/* Deux colonnes seulement quand chacune a au moins 31 rem ; sinon l'une sous l'autre. */
.fp-comp-grilles {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 31rem), 1fr));
	margin: 2rem 0 0;
}

.fp-comp-colonne {
	border-top: 4px solid var(--side-band);
	min-width: 0;
	padding-top: .8rem;
}

/* Le conteneur mesuré est le bloc du tableau, pas la colonne : un conteneur (confinement de mise en page) empêcherait le subgrid. */
.fp-comp-colonne .fp-grade {
	container: fpcol / inline-size;
}

.fp-comp-colonne h3 {
	align-items: center;
	border: 0;
	color: var(--fp-ink);
	display: flex;
	font-size: 1.2rem;
	gap: .55rem;
	line-height: 1.3;
	margin: 0 0 .15rem;
	padding: 0;
}

.fp-comp-colonne > .fp-comp-situation {
	margin: 0 0 .5rem 2.25rem;
}

.fp-comp-colonne .fp-grid {
	margin: .5rem 0 0;
}

/* Tableau : les chiffres ne se cassent jamais ; en dernier recours, le tableau défile dans son propre cadre. */
.fp-comp-colonne .fp-grid-scroll {
	-webkit-overflow-scrolling: touch;
	border-color: var(--side-line);
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
}

.fp-comp-colonne .fp-grid-scroll::before {
	background: var(--side-band);
}

.fp-comp-colonne .fp-grid-table {
	table-layout: auto;
	width: 100%;
}

.fp-comp-colonne .fp-grid-table col {
	width: auto;
}

.fp-comp-colonne .fp-grid-table th,
.fp-comp-colonne .fp-grid-table td {
	white-space: nowrap;
}

.fp-comp-colonne .fp-grid-table thead th {
	background: var(--side);
	position: static;
	white-space: normal;
}

.fp-comp-colonne .fp-grid-table thead {
	background: var(--side);
}

.fp-comp-colonne .fp-grid-table tbody th,
.fp-comp-colonne .fp-grid-table tbody th a.fp-step-anchor,
.fp-comp-colonne .fp-grid-table tbody th a.fp-step-anchor:visited,
.fp-comp-colonne .fp-grid-table tbody th a.fp-step-anchor:hover,
.fp-comp-colonne .fp-grid-table tbody th a.fp-step-anchor:focus {
	color: var(--side-ink);
}

.fp-comp-colonne .fp-grid-table tbody tr:nth-child(even) {
	background: var(--side-soft);
}

.fp-comp-colonne .fp-grid-table tbody tr.fp-row-below-smic,
.fp-comp-colonne .fp-grid-table tbody tr.fp-row-below-smic:nth-child(even) {
	background: var(--fp-yellow-soft);
}

.fp-comp-colonne .fp-grid-table tbody tr:last-child th,
.fp-comp-colonne .fp-grid-table tbody tr:last-child td {
	border-bottom: 0;
}

/* Le « gain » d'un échelon n'est ni bon ni mauvais ici : même teinte neutre pour le signe plus, moins ou nul. */
.fp-comp-colonne .fp-step-gain.is-positive,
.fp-comp-colonne .fp-step-gain.is-negative,
.fp-comp-colonne .fp-step-gain.is-zero {
	color: var(--fp-muted);
}

.fp-comp-colonne .fp-smic-detail summary {
	white-space: normal;
}

.fp-comp-colonne .fp-smic-detail {
	white-space: normal;
}

/* Le détail « garantie SMIC » s'ouvre en bandeau fixé en bas de l'écran, à toutes les largeurs : un panneau en position
   absolue serait coupé par le cadre défilant du tableau. */
.fp-comp-colonne .fp-smic-panel {
	bottom: 1rem;
	left: 1rem;
	margin: 0 auto;
	max-width: 26rem;
	position: fixed;
	right: 1rem;
	top: auto;
	white-space: normal;
	width: auto;
}

/* Colonne étroite (mesurée sur la colonne, pas sur l'écran) : libellés courts, « Indice brut » masqué, marges réduites. */
@container fpcol (max-width: 33rem) {
	.fp-comp-colonne .fp-grid-table .fp-label-full {
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}

	.fp-comp-colonne .fp-grid-table .fp-label-compact {
		display: inline;
	}

	.fp-comp-colonne .fp-grid-table th,
	.fp-comp-colonne .fp-grid-table td {
		padding: .38rem .35rem;
	}

	.fp-comp-colonne .fp-grid-table thead th {
		font-size: .74rem;
		letter-spacing: -.01em;
		text-transform: uppercase;
	}

	.fp-comp-colonne .fp-grid-table col:nth-child(2),
	.fp-comp-colonne .fp-grid-table thead th:nth-child(2),
	.fp-comp-colonne .fp-grid-table tbody td:nth-child(2) {
		display: none;
	}
}

/* Très étroit (téléphone) : chiffres un peu plus petits pour que tout tienne sans défiler. */
@container fpcol (max-width: 27rem) {
	.fp-comp-colonne .fp-grid-table {
		font-size: .86rem;
	}

	.fp-comp-colonne .fp-grid-table th,
	.fp-comp-colonne .fp-grid-table td {
		padding: .34rem .18rem;
	}
}

.fp-comp-voir {
	margin: .6rem 0 0;
}

.fp-comparateur .fp-comp-voir a,
.fp-comparateur .fp-comp-voir a:visited {
	align-items: center;
	color: var(--side-ink, var(--fp-blue));
	display: inline-flex;
	font-weight: 700;
	min-height: 40px;
}

.fp-comparateur .fp-comp-voir a:hover,
.fp-comparateur .fp-comp-voir a:focus,
.fp-comparateur .fp-comp-voir a:active {
	color: var(--fp-ink);
}

.fp-comparateur .fp-comp-voir a:focus-visible {
	outline: 3px solid var(--side-band, var(--fp-blue));
	outline-offset: 2px;
}

/* --- Partage ---------------------------------------------------------------------------------------- */

.fp-comp-partage {
	border-top: 1px solid var(--fp-line);
	margin: 2rem 0 0;
	padding-top: 1rem;
}

.fp-comp-partage h3 {
	font-size: 1.15rem;
}

.fp-comp-partage p {
	margin: 0 0 .5rem;
}

.fp-comp-partage-ligne {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.fp-comp-partage-ligne input {
	background: #fff;
	border: 1px solid #8a97a3;
	border-radius: 8px;
	color: var(--fp-ink);
	flex: 1 1 14rem;
	font: inherit;
	font-size: .9rem;
	min-height: 44px;
	min-width: 0;
	padding: .35rem .6rem;
}

.fp-comparateur button.fp-comp-copier,
.fp-comparateur button.fp-comp-copier:visited {
	background: #fff;
	border: 2px solid var(--fp-blue);
	border-radius: 999px;
	color: var(--fp-blue);
	cursor: pointer;
	font: inherit;
	font-size: .95rem;
	font-weight: 800;
	min-height: 44px;
	padding: 0 1.2rem;
}

.fp-comparateur button.fp-comp-copier[hidden] {
	display: none;
}

.fp-comparateur button.fp-comp-copier:hover,
.fp-comparateur button.fp-comp-copier:focus,
.fp-comparateur button.fp-comp-copier:active {
	background: var(--fp-blue-soft);
	border-color: var(--fp-blue);
	color: #1d3f58;
}

.fp-comparateur button.fp-comp-copier:focus-visible {
	outline: 3px solid var(--fp-blue);
	outline-offset: 2px;
}

.fp-comp-copie {
	color: #1d3f58;
	font-weight: 700;
}

.fp-comp-copie[hidden] {
	display: none;
}

@media (min-width: 640px) {
	.fp-comp-colonnes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fp-comp-legende {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* --- 1.35.3 : grade abrégé à côté des pastilles, boutons de partage ------------------------------------------------ */

.fp-comp-mesures td .fp-comp-abrege {
	color: var(--fp-muted);
	flex: 1 1 auto;
	font-size: .82rem;
	font-weight: 600;
	min-width: 0;
	overflow: hidden;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fp-comp-mesures td .fp-comp-valeur {
	flex: 0 0 auto;
}

.fp-comp-reseaux {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin: .8rem 0 0;
}

/* Ronds sobres, comme le bloc de partage du thème : trait gris, icône encre, bleu au survol (jamais de rouge). */
.fp-comparateur .fp-comp-rond,
.fp-comparateur .fp-comp-rond:visited {
	align-items: center;
	background: #fff;
	border: 2px solid #b7c0c7;
	border-radius: 50%;
	color: var(--fp-ink);
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	text-decoration: none;
	width: 44px;
}

.fp-comparateur .fp-comp-rond:hover,
.fp-comparateur .fp-comp-rond:focus,
.fp-comparateur .fp-comp-rond:active {
	background: var(--fp-blue-soft);
	border-color: var(--fp-blue);
	color: var(--fp-blue);
}

.fp-comparateur .fp-comp-rond:focus-visible {
	outline: 3px solid var(--fp-blue);
	outline-offset: 2px;
}

.fp-comparateur button.fp-comp-rond[hidden] {
	display: none;
}

.fp-comp-rond svg {
	fill: currentColor;
	height: 22px;
	width: 22px;
}

/* --- 1.35.4 --------------------------------------------------------------------------------------------------------- */

/* Partage centré. */
.fp-comp-partage {
	text-align: center;
}

.fp-comparateur .fp-comp-partage h3 {
	text-align: center;
}

.fp-comparateur .fp-comp-partage h3::after {
	display: none;
}

.fp-comp-partage-ligne {
	justify-content: center;
	margin: 0 auto;
	max-width: 40rem;
}

.fp-comp-partage-ligne input {
	text-align: center;
}

.fp-comp-reseaux {
	justify-content: center;
}

/* Résultats de la recherche de grade, sous le champ. */
.fp-comp-resultats {
	background: #fff;
	border: 1px solid #8a97a3;
	border-radius: 8px;
	list-style: none;
	margin: 0;
	overflow: hidden;
	padding: 0;
}

.fp-comp-resultats[hidden] {
	display: none;
}

.fp-comp-resultats [role="option"] {
	border-top: 1px solid #e6eaee;
	cursor: pointer;
	display: grid;
	gap: .05rem;
	margin: 0;
	min-height: 44px;
	padding: .4rem .7rem;
}

.fp-comp-resultats [role="option"]:first-child {
	border-top: 0;
}

.fp-comp-resultats [role="option"]:hover,
.fp-comp-resultats [role="option"].is-active {
	background: var(--side-soft);
	box-shadow: inset 4px 0 0 var(--side-band);
}

.fp-comp-resultat-nom {
	color: var(--fp-ink);
	font-weight: 700;
	line-height: 1.3;
}

.fp-comp-resultat-groupe {
	color: var(--fp-muted);
	font-size: .8rem;
	line-height: 1.3;
}

.fp-comp-resultats-suite {
	background: #f6f8fa;
	border-top: 1px solid #e6eaee;
	color: var(--fp-muted);
	font-size: .85rem;
	margin: 0;
	padding: .45rem .7rem;
}

@media (min-width: 768px) {
	/* Premier et dernier échelon côte à côte ; la carrière dessous, sur toute la largeur, en carte basse et horizontale. */
	.fp-comp-cartes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fp-comp-carte-carriere {
		align-items: center;
		column-gap: 2rem;
		display: grid;
		grid-column: 1 / -1;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.fp-comp-carte-carriere h4 {
		grid-column: 1 / -1;
	}

	.fp-comp-carte-carriere .fp-comp-hero {
		margin: 0;
	}

	.fp-comp-carte-carriere .fp-comp-mesures tbody tr {
		border-top: 0;
		padding: 0;
	}
}

/* Grilles côte à côte : le titre, la situation, le tableau et le lien de chaque colonne partagent les mêmes rangées, donc le
   haut des deux tableaux est aligné même si un titre tient sur deux lignes. */
@supports (grid-template-rows: subgrid) {
	.fp-comp-colonne {
		display: grid;
		grid-row: span 4;
		grid-template-rows: subgrid;
		row-gap: 0;
	}
}

/* --- Écart échelon par échelon ------------------------------------------------------------------------------------- */

.fp-comp-ecarts {
	margin: 2rem 0 0;
}

.fp-comp-ecarts .fp-comp-intro {
	margin: 0 0 .9rem;
}

.fp-comp-ecarts-cadre {
	border: 1px solid var(--fp-line);
	border-radius: 12px;
	max-width: 100%;
	overflow-x: auto;
}

.fp-comp-ecarts-table {
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
	margin: 0;
	width: 100%;
}

.fp-comp-ecarts-table th,
.fp-comp-ecarts-table td {
	border: 0;
	border-bottom: 1px solid #e6eaee;
	font-size: .92rem;
	padding: .45rem .4rem;
	text-align: left;
	vertical-align: middle;
}

.fp-comp-ecarts-table tbody tr:last-child th,
.fp-comp-ecarts-table tbody tr:last-child td {
	border-bottom: 0;
}

.fp-comp-ecarts-table thead th {
	background: #eef1f4;
	color: var(--fp-ink);
	font-weight: 800;
	line-height: 1.25;
}

.fp-comp-ecarts-table thead th.fp-comp-ecarts-groupe {
	background: var(--fp-yellow);
	border-bottom: 1px solid rgba(0, 0, 0, .15);
	text-align: center;
}

.fp-comp-ecarts-table thead th.fp-comp-ecarts-groupe .fp-comp-pastille {
	font-size: .75rem;
	height: 1.4rem;
	vertical-align: middle;
	width: 1.4rem;
}

.fp-comp-pastille-a {
	background: #245f87;
}

.fp-comp-pastille-b {
	background: #3a7a24;
}

.fp-comp-ecarts-table thead th.fp-comp-ecarts-sous {
	background: var(--fp-yellow-soft);
}

.fp-comp-ecarts-table tbody th[scope="row"] {
	color: #273846;
	font-weight: 700;
	white-space: normal;
}

.fp-comp-ecarts-table td.fp-comp-ecarts-ecart {
	background: var(--fp-yellow-soft);
	color: var(--fp-ink);
	font-weight: 800;
}

.fp-comp-mt {
	display: block;
	white-space: nowrap;
}

.fp-comp-pt {
	color: var(--fp-muted);
	display: block;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
}

.fp-comp-pt.fp-comp-pt-libre {
	white-space: normal;
}

.fp-comp-ecarts-table td.fp-comp-ecarts-ecart .fp-comp-pt {
	color: #3d2f00;
}

@media (max-width: 480px) {
	.fp-comp-ecarts-table th,
	.fp-comp-ecarts-table td {
		font-size: .85rem;
		padding: .4rem .25rem;
	}

	}

@media (min-width: 768px) {
	.fp-comp-ecarts-table th,
	.fp-comp-ecarts-table td {
		font-size: 1rem;
		padding: .55rem .8rem;
	}

	.fp-comp-pt {
		font-size: .8rem;
	}
}

.fp-comp-note-carriere {
	margin-top: .9rem;
}

.fp-comparateur .fp-comp-note a,
.fp-comparateur .fp-comp-note a:visited {
	color: var(--fp-blue);
	font-weight: 700;
}

.fp-comparateur .fp-comp-note a:hover,
.fp-comparateur .fp-comp-note a:focus,
.fp-comparateur .fp-comp-note a:active {
	color: #1d3f58;
}

/* --- 1.35.6 : boutons centrés, comparaison automatique -------------------------------------------------------------- */

.fp-comp-actions {
	justify-content: center;
}

.fp-comp-resume {
	scroll-margin-top: 5.5rem;
}

.fp-comparateur h3.fp-comp-resume-titre:focus {
	outline: none;
}

.fp-comparateur h3.fp-comp-resume-titre:focus-visible {
	outline: 3px solid var(--fp-blue);
	outline-offset: 4px;
}

.fp-comp-encours {
	color: var(--fp-blue);
	font-weight: 700;
	margin: 1rem 0 0;
	text-align: center;
}

.fp-comp-encours[hidden] {
	display: none;
}

.fp-comp-form.is-loading {
	cursor: progress;
	opacity: .55;
	pointer-events: none;
}

/* Avec JavaScript, la comparaison part toute seule : « Comparer » reste là, en version discrète. */
.fp-comp-form.fp-js button.fp-comp-bouton,
.fp-comp-form.fp-js button.fp-comp-bouton:visited {
	background: #fff;
	border-color: var(--fp-blue);
	color: var(--fp-blue);
}

.fp-comp-form.fp-js button.fp-comp-bouton:hover,
.fp-comp-form.fp-js button.fp-comp-bouton:focus,
.fp-comp-form.fp-js button.fp-comp-bouton:active {
	background: var(--fp-blue-soft);
	border-color: var(--fp-blue);
	color: #1d3f58;
}
