/*
 * RU Stations : Bannière A, positions N° 1 à 3, régions, panneau Filtres, lecteur et « Comment on compte ».
 * Chargé après la feuille précédente (même ordre qu'avant le découpage :
 * aucun fichier de plus de 800 lignes, 20 novembre 2026).
 */

/* ---------- Livraison 6 : bannière A, positions, régions, panneau Filtres, lecteur ---------- */

/* Bannière : photo de fond (réglage « banniere_image ») sous un voile marine. */
.rupp-couverture:has(.rust-d-fond) {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: #06111f;
}

.rust-d-fond {
	position: absolute;
	inset: 0;
	z-index: -2;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: 60% 35%;
	pointer-events: none;
	user-select: none;
}

.rust-d-voile {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(6, 17, 31, .95) 0%, rgba(6, 17, 31, .82) 45%, rgba(6, 17, 31, .62) 100%);
	pointer-events: none;
}

.rupp-couverture:has(.rust-d-fond) .rupp-couverture-in {
	padding-block: 32px;
}

.rupp-couverture:has(.rust-d-fond) .rupp-couverture-apres {
	margin-block-start: 18px;
}

/* Les trois radios les plus écoutées (positions 1 à 3). */
.rust-d-top-liste {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rust-d-top-carte {
	display: grid;
	gap: 12px;
	min-inline-size: 0;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 14px;
	background: #0d2238;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
	color: #fff;
}

.rust-d-rang {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding-block-end: 10px;
	border-block-end: 1px solid rgba(255, 255, 255, .14);
}

.rust-d-rang-n {
	display: inline-grid;
	place-items: center;
	min-inline-size: 44px;
	block-size: 26px;
	padding: 0 8px;
	border-radius: 999px;
	background: #fff;
	color: #0b2a47;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}

.rust-d-top-carte:first-child .rust-d-rang-n {
	background: var(--rust-bleu, #1d5c8f);
	color: #fff;
}

.rust-d-rang-t {
	color: #d3e2f1;
	font-size: 12.5px;
	line-height: 1.35;
}

.rust-d-top-id {
	display: flex;
	align-items: center;
	gap: 10px;
	min-inline-size: 0;
}

.rust-d-top-nom,
.rust-d-top-nom:visited {
	display: grid;
	min-inline-size: 0;
	color: #fff;
	text-decoration: none;
}

.rust-d-top-nom strong {
	font-size: 14px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rust-d-top-nom span {
	margin-block-start: 3px;
	color: #b9cbdd;
	font-size: 12.5px;
	line-height: 1.4;
}

.rust-d-top-nom:hover strong,
.rust-d-top-nom:focus-visible strong {
	text-decoration: underline;
}

.rust-d-top-jouer {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: start;
	align-self: end;
	inline-size: auto;
	min-block-size: 34px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 9px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.rust-d-top-jouer:hover,
.rust-d-top-jouer:focus-visible {
	text-decoration: none;
}

@media (max-width: 600px) {
	.rust-d-top-jouer {
		min-block-size: 44px;
	}
}

.rust-d-top-jouer:hover,
.rust-d-top-jouer:focus-visible,
.rust-d-top-jouer.rust-joue {
	background: #fff;
	color: #0b1f33;
	border-color: #000;
}

.rust-d-top-note {
	margin: 10px 0 0;
	color: #c9d6e3;
	font-size: 13px;
	line-height: 1.5;
}

/* Onglets des régions. */
.rust-d-regions {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	margin: 0 0 16px;
	padding-block-end: 2px;
	border-block-end: 1px solid var(--rust-bord, rgba(0, 0, 0, .10));
	scrollbar-width: thin;
}

.rust-d-region,
.rust-d-region:visited {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-block-size: 44px;
	padding: 0 14px;
	border-block-end: 3px solid transparent;
	color: var(--rust-gris, #6b7280);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.rust-d-region:hover,
.rust-d-region:focus-visible {
	color: var(--rust-texte, #0e2438);
}

.rust-d-region.rust-on {
	color: var(--rust-bleu, #1d5c8f);
	border-block-end-color: var(--rust-bleu, #1d5c8f);
}

.rust-d-region-n {
	min-inline-size: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: #eef3f8;
	color: #5b6b7c;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

/* Barre d'outils : recherche, Filtres, ordre. */
.rust-d-outils {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-block-end: 14px;
}

.rust-d-outils-q {
	flex: 1 1 280px;
	min-inline-size: 0;
}

.rust-d-cherche-champ--clair {
	inline-size: 100%;
	min-block-size: 46px;
	padding: 0 14px;
	border: 1px solid var(--rust-bord-2, rgba(0, 0, 0, .16));
	border-radius: 12px;
	background: var(--ru-fond, #fff);
	color: var(--rust-texte, #0e2438);
	font: inherit;
	font-size: 16px;
}

.rust-d-ouvrir,
.rust-d-ouvrir:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-block-size: 46px;
	padding: 0 16px;
	border: 1px solid var(--rust-bord-2, rgba(0, 0, 0, .16));
	border-radius: 12px;
	background: var(--ru-fond, #fff);
	color: var(--rust-texte, #0e2438);
	font-weight: 700;
	text-decoration: none;
}

.rust-d-ouvrir:hover,
.rust-d-ouvrir:focus-visible {
	border-color: var(--rust-bleu, #1d5c8f);
	color: var(--rust-bleu, #1d5c8f);
}

.rust-d-ouvrir-icone {
	inline-size: 16px;
	block-size: 12px;
	background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 62% 2px no-repeat, linear-gradient(currentColor, currentColor) 50% 100% / 26% 2px no-repeat;
}

.rust-d-ouvrir-n {
	min-inline-size: 20px;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--rust-bleu, #1d5c8f);
	color: #fff;
	font-size: 12px;
	text-align: center;
}

.rust-d-tri {
	display: flex;
	gap: 8px;
}

/* Panneau Filtres : glisse de la droite vers la gauche. */
.rust-f {
	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
}

.rust-f:target,
.rust-f.rust-ouvert {
	visibility: visible;
	pointer-events: auto;
}

.rust-f--js:target:not(.rust-ouvert) {
	visibility: hidden;
	pointer-events: none;
}

.rust-f-fond {
	position: absolute;
	inset: 0;
	background: rgba(6, 17, 31, .55);
	opacity: 0;
	transition: opacity .25s ease;
}

.rust-f:target .rust-f-fond,
.rust-f.rust-ouvert .rust-f-fond {
	opacity: 1;
}

.rust-f-panneau {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	display: flex;
	flex-direction: column;
	inline-size: min(440px, 100%);
	margin: 0;
	background: var(--ru-fond, #fff);
	color: var(--rust-texte, #0e2438);
	box-shadow: -24px 0 60px rgba(3, 12, 24, .35);
	transform: translateX(100%);
	transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.rust-f:target .rust-f-panneau,
.rust-f.rust-ouvert .rust-f-panneau {
	transform: none;
}

.rust-f--js:target:not(.rust-ouvert) .rust-f-panneau {
	transform: translateX(100%);
}

body.rust-f-ouvert {
	overflow: hidden;
}

.rust-f-tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 22px;
	border-block-end: 1px solid var(--rust-bord, rgba(0, 0, 0, .10));
}

.rust-f-titre {
	margin: 0;
	font-size: 18px;
}

.rust-f-x,
.rust-f-x:visited {
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	border-radius: 50%;
	background: #f1f4f8;
	color: var(--rust-texte, #0e2438);
	font-size: 24px;
	line-height: 1;
	text-decoration: none;
}

.rust-f-corps {
	flex: 1;
	overflow: auto;
	overscroll-behavior: contain;
}

.rust-f-sec {
	margin: 0;
	padding: 16px 22px;
	border: 0;
	border-block-end: 1px solid var(--rust-bord, rgba(0, 0, 0, .10));
}

.rust-f-sec[hidden] {
	display: none;
}

.rust-f-sec-titre {
	padding: 0;
	margin-block-end: 10px;
	font-size: 14px;
	font-weight: 700;
}

.rust-f-puces {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rust-f-puce {
	position: relative;
}

.rust-f-puce input {
	position: absolute;
	opacity: 0;
	inline-size: 1px;
	block-size: 1px;
}

.rust-f-puce span {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	padding: 0 16px;
	border: 1px solid var(--rust-bord-2, rgba(0, 0, 0, .16));
	border-radius: 999px;
	background: var(--ru-fond, #fff);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.rust-f-puce input:checked + span {
	border-color: var(--rust-bleu, #1d5c8f);
	background: var(--rust-bleu, #1d5c8f);
	color: #fff;
}

.rust-f-puce input:focus-visible + span {
	outline: 2px solid var(--rust-bleu, #1d5c8f);
	outline-offset: 2px;
}

.rust-f-cherche input {
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 44px;
	margin-block-end: 8px;
	padding: 0 12px;
	border: 1px solid var(--rust-bord-2, rgba(0, 0, 0, .16));
	border-radius: 10px;
	font: inherit;
	font-size: 16px;
}

.rust-f-liste {
	max-block-size: 264px;
	overflow: auto;
	padding: 4px;
	border: 1px solid var(--rust-bord, rgba(0, 0, 0, .10));
	border-radius: 12px;
	overscroll-behavior: contain;
}

.rust-f-liste--court {
	max-block-size: 200px;
}

.rust-f-op {
	display: flex;
	align-items: center;
	gap: 10px;
	min-block-size: 44px;
	padding: 0 10px;
	border-radius: 8px;
	cursor: pointer;
}

.rust-f-op[hidden] {
	display: none;
}

.rust-f-op:hover {
	background: #f1f6fb;
}

.rust-f-op input {
	flex: none;
	accent-color: var(--rust-bleu, #1d5c8f);
	inline-size: 18px;
	block-size: 18px;
	margin: 0;
}

.rust-f-op-nom {
	flex: 1;
	min-inline-size: 0;
	font-size: 15px;
}

.rust-f-op-nom small {
	margin-inline-start: 4px;
	color: var(--rust-gris, #6b7280);
	font-size: 12.5px;
}

.rust-f-op-n {
	padding: 2px 8px;
	border-radius: 999px;
	background: #eef3f8;
	color: #5b6b7c;
	font-size: 12.5px;
	font-weight: 700;
}

.rust-f-op:has(input:checked) {
	background: #eaf2fa;
	font-weight: 700;
}

.rust-f-vide {
	margin: 0;
	padding: 12px;
	color: var(--rust-gris, #6b7280);
	font-size: 14px;
}

.rust-f-pied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 22px;
	border-block-start: 1px solid var(--rust-bord, rgba(0, 0, 0, .10));
}

.rust-f-effacer,
.rust-f-effacer:visited {
	color: var(--rust-bleu, #1d5c8f);
	font-weight: 600;
}

/* Lignes de la liste : logo (icône), nom, lieu et région, écoutes, ▶. */
.rust-d-ligne {
	grid-template-columns: 48px minmax(0, 1.4fr) minmax(0, 1.1fr) 110px 44px;
}

.rust-d-logo-img {
	object-fit: contain;
	background: #fff;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.rust-d-ligne-lieu {
	display: grid;
	min-inline-size: 0;
	font-size: 14px;
}

.rust-d-ligne-lieu em {
	color: var(--rust-gris, #6b7280);
	font-size: 12.5px;
	font-style: normal;
}

/* Lecteur : logo, son coupé, volume. */
.rust-d-logo--lecteur {
	inline-size: 48px;
	block-size: 48px;
	box-shadow: none;
}

@media (max-width: 900px) {
	.rust-d-top-liste {
		grid-template-columns: repeat(3, minmax(150px, 1fr));
		overflow-x: auto;
	}
}

/* Téléphone (Dany, 20 novembre 2026 : « tout est décalé, pas centré ») :
   plus de carrousel coupé au bord. Les 3 positions sont empilées, pleine
   largeur, une ligne chacune : position en haut, radio à gauche, Écouter à droite. */
@media (max-width: 640px) {
	.rust-d-top-liste {
		grid-template-columns: minmax(0, 1fr);
		overflow: visible;
		gap: 10px;
	}

	.rust-d-top-carte {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 10px 12px;
		padding: 12px 14px;
	}

	.rust-d-top-carte .rust-d-rang {
		grid-column: 1 / -1;
	}

	.rust-d-top-carte .rust-d-top-id {
		min-inline-size: 0;
	}

	.rust-d-top-carte .rust-d-top-jouer {
		align-self: center;
		justify-self: end;
	}

	.rust-d-ligne {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
	}

	.rust-d-ligne-lieu,
	.rust-d-ligne-ecoutes {
		grid-column: 2 / 3;
	}

}

@media (prefers-reduced-motion: reduce) {
	.rust-f-fond,
	.rust-f-panneau {
		transition: none;
	}
}

/* Bannière compacte : titre sur une ligne à l'ordinateur, cartes plus larges. */
.rupp-couverture:has(.rust-d-fond) .rupp-couverture-in {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
}

.rupp-couverture:has(.rust-d-fond) .rupp-titre {
	font-size: clamp(32px, 4.2vw, 52px);
	line-height: 1.05;
}

.rust-d-top-jouer,
.rust-d-ouvrir,
.rust-f-puce span {
	text-transform: none;
	letter-spacing: normal;
}

@media (max-width: 800px) {
	.rupp-couverture:has(.rust-d-fond) .rupp-couverture-in {
		grid-template-columns: 1fr;
	}
}

.rupp-couverture:has(.rust-d-fond) .rupp-titre {
	max-inline-size: none;
}

/* Livraison 7 (20 novembre 2026) : « Comment on compte », transparence des écoutes. */
.rust-d-calcul {
	margin: 6px 0 0;
	color: #c9d6e3;
	font-size: 13px;
	line-height: 1.55;
}
.rust-d-calcul summary {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	list-style: none;
}
.rust-d-calcul summary::-webkit-details-marker {
	display: none;
}
.rust-d-calcul summary::after {
	content: "";
	inline-size: 7px;
	block-size: 7px;
	margin-inline-start: 10px;
	border-inline-end: 2px solid currentColor;
	border-block-end: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}
.rust-d-calcul[open] summary::after {
	transform: rotate(-135deg) translateY(-2px);
}
.rust-d-calcul summary:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}
.rust-d-calcul p {
	margin: 4px 0 0;
	max-inline-size: 60ch;
	padding: 12px 14px;
	border-radius: 10px;
	background: #0b2238;
	border: 1px solid #24476a;
	color: #e4ecf4;
}

/* Fond foncé (positions N° 1 à 3) : aucun contour clair autour des logos.
   Le logo remplit tout son carré (pas de bandes blanches autour d'un logo
   qui n'est pas carré), et le filet des fonds clairs est retiré (21 novembre 2026). */
.rust-d-top-carte .rust-d-logo {
	box-shadow: none;
	background: #0d2238;
}

.rust-d-top-carte .rust-d-logo-img {
	object-fit: cover;
	background: transparent;
}
