/* Prix Carburant — styles front.
   Volontairement sobres et sans couleur de marque : le thème garde la main.
   Tout est préfixé .pc- pour éviter les collisions. */

.pc-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

.pc-fil {
	font-size: 0.85rem;
	margin-bottom: 16px;
	color: #666;
}

.pc-fil a {
	color: inherit;
}

.pc-fil .pc-sep {
	margin: 0 6px;
	opacity: 0.5;
}

.pc-entete h1 {
	margin: 0 0 8px;
	line-height: 1.2;
}

.pc-sous-titre {
	margin: 0 0 12px;
	color: #555;
}

.pc-resume {
	font-size: 1.05rem;
	line-height: 1.6;
}

.pc-economie {
	font-weight: 600;
}

.pc-badges {
	margin: 12px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pc-badge {
	display: inline-block;
	font-size: 0.78rem;
	padding: 3px 10px;
	border-radius: 999px;
	background: #eef2f6;
	color: #33404d;
	border: 1px solid #dde4ec;
}

.pc-bloc {
	margin-top: 36px;
}

.pc-bloc h2 {
	font-size: 1.25rem;
	margin-bottom: 12px;
}

/* Tableaux */

.pc-table-prix,
.pc-classement {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 12px;
}

.pc-table-prix th,
.pc-table-prix td,
.pc-classement th,
.pc-classement td {
	padding: 10px 12px;
	border-bottom: 1px solid #e6e6e6;
	text-align: left;
	vertical-align: middle;
}

.pc-table-prix thead th,
.pc-classement thead th {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #666;
	border-bottom-width: 2px;
}

.pc-prix {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	white-space: nowrap;
}

.pc-rang {
	width: 40px;
	color: #888;
	font-variant-numeric: tabular-nums;
}

.pc-classement .pc-meilleure {
	background: #f2f9f3;
}

.pc-classement .pc-meilleure .pc-prix {
	color: #1a7f37;
}

.pc-adresse {
	display: block;
	font-weight: 400;
	font-size: 0.85rem;
	color: #666;
}

/* Logos d'enseigne */

.pc-station-cell {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pc-station-nom {
	min-width: 0;
}

.pc-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
}

.pc-logo svg {
	width: 100%;
	height: 100%;
	display: block;
}

.pc-logo-img {
	border-radius: 6px;
	object-fit: contain;
	background: #fff;
	border: 1px solid #ececec;
	padding: 2px;
	box-sizing: border-box;
}

.pc-logo-neutre {
	color: #8a94a6;
	background: #f1f3f5;
	border: 1px solid #e4e7eb;
	border-radius: 50%;
	box-sizing: border-box;
}

/* Le pictogramme est dimensionné en pourcentage du SVG, jamais par un
   padding en % : sur un élément flex, un padding en pourcentage se calcule
   sur la largeur du conteneur parent, pas sur celle de la pastille. */
.pc-logo-neutre svg {
	width: 62%;
	height: 62%;
}

.pc-entete-ligne {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 8px;
}

.pc-entete-ligne h1 {
	margin: 0;
}

/* Fraîcheur : le signal le plus important de la page. */

.pc-maj {
	font-size: 0.85rem;
	white-space: nowrap;
}

.pc-maj.pc-frais {
	color: #1a7f37;
}

.pc-maj.pc-moyen {
	color: #8a6d00;
}

.pc-maj.pc-vieux {
	color: #8a4b00;
}

.pc-rupture {
	display: inline-block;
	margin-left: 6px;
	font-size: 0.72rem;
	padding: 1px 7px;
	border-radius: 999px;
	background: #fdeceb;
	color: #a32020;
}

/* Filtres carburant */

.pc-filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 24px;
}

.pc-filtre {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #d6d6d6;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.9rem;
	color: #333;
}

.pc-filtre.is-actif {
	background: #1d2327;
	border-color: #1d2327;
	color: #fff;
}

/* Listes de liens */

.pc-liste-liens {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pc-liste-liens li {
	margin: 0 0 6px;
}

.pc-liste-liens .pc-compte {
	display: inline-block;
	margin-left: 6px;
	font-size: 0.75rem;
	color: #777;
}

.pc-colonnes {
	column-width: 200px;
	column-gap: 28px;
}

.pc-services {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pc-services li {
	background: #f4f5f6;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 0.88rem;
}

/* Couche « analyse » : graphiques, tuiles, encadrés */

.pc-graph {
	--pcg-surface: #fff;
	--pcg-1: #2a78d6;
	--pcg-2: #eb6834;
	--pcg-grid: #e1e0d9;
	--pcg-baseline: #c3c2b7;
	--pcg-muted: #898781;
	--pcg-ink: #52514e;
	margin: 8px 0 4px;
}

@media (prefers-color-scheme: dark) {
	.pc-graph {
		--pcg-surface: #1a1a19;
		--pcg-1: #3987e5;
		--pcg-2: #d95926;
		--pcg-grid: #2c2c2a;
		--pcg-baseline: #383835;
		--pcg-ink: #c3c2b7;
	}
}

.pc-graph svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.pcg-grid { stroke: var(--pcg-grid); stroke-width: 1; }
.pcg-ax { fill: var(--pcg-muted); font-size: 11px; }
.pcg-bval { fill: var(--pcg-ink); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.pcg-annot { fill: var(--pcg-ink); font-size: 11.5px; font-weight: 600; }
.pcg-ligne { fill: none; stroke: var(--pcg-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pcg-aire { fill: var(--pcg-1); opacity: .09; }
.pcg-hit:hover { fill: var(--pcg-1); fill-opacity: .18; }
.pcg-bar { transition: opacity .12s; }
.pcg-bar:hover { opacity: .82; }

.pc-tuiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin: 24px 0 8px;
}

.pc-tuile {
	background: #fff;
	border: 1px solid rgba(11, 11, 11, .10);
	border-radius: 10px;
	padding: 16px 18px;
}

.pc-tuile-v {
	display: block;
	font-size: 1.8rem;
	font-weight: 650;
	line-height: 1.1;
	letter-spacing: -.01em;
}

.pc-tuile-l {
	display: block;
	margin-top: 5px;
	font-size: .82rem;
	color: #555;
}

.pc-tuile-n {
	display: block;
	margin-top: 3px;
	font-size: .75rem;
	color: #888;
}

.pc-callout {
	background: #fafafa;
	border: 1px solid rgba(11, 11, 11, .08);
	border-left: 3px solid #2a78d6;
	border-radius: 8px;
	padding: 13px 17px;
	margin-top: 14px;
	font-size: .92rem;
	line-height: 1.6;
}

.pc-h2note {
	color: #666;
	font-size: .9rem;
	margin: 0 0 12px;
}

.pc-ecart { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.pc-ecart.pc-hausse { color: #a8480f; }
.pc-ecart.pc-baisse { color: #1a7f37; }

.pc-lien-analyse {
	display: inline-block;
	margin-top: 8px;
	font-weight: 600;
}

.pc-apercu-analyse { margin-top: 40px; }

.pc-note,
.pc-source {
	font-size: 0.82rem;
	color: #6a6a6a;
	margin-top: 12px;
}

.pc-vide {
	padding: 20px;
	background: #f7f7f7;
	border-radius: 6px;
	color: #555;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

@media (max-width: 600px) {
	.pc-classement thead {
		display: none;
	}

	.pc-classement tr {
		display: grid;
		grid-template-columns: 40px 1fr auto;
		gap: 4px 8px;
		padding: 10px 0;
		border-bottom: 1px solid #e6e6e6;
	}

	.pc-classement td,
	.pc-classement th {
		border: 0;
		padding: 0;
	}

	.pc-classement .pc-maj {
		grid-column: 2 / 4;
	}

	.pc-station-cell {
		gap: 8px;
	}

	.pc-logo {
		width: 32px !important;
		height: 32px !important;
	}

	.pc-entete-ligne {
		gap: 12px;
	}
}
