/*
 * RU Stations : Fenêtre « Partager », mini-lecteur, téléphone et coque de RU Design.
 * 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).
 */

/* ---------- Fenêtre « Partager » ---------- */

.rust-p-fenetre {
	inline-size: min(480px, calc(100% - 32px));
	max-block-size: calc(100% - 32px);
	padding: var(--ru-esp-boite, 24px);
	border: 1px solid var(--rust-bord, rgba(0, 0, 0, .10));
	border-radius: 13px;
	background: var(--ru-fond, #fff);
	color: var(--ru-texte, #0e2438);
	box-shadow: 0 20px 60px rgba(14, 36, 56, .25);
}

.rust-p-fenetre::backdrop {
	background: rgba(14, 36, 56, .55);
}

.rust-p-fenetre h2 {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 600;
}

.rust-p-fenetre p {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--ru-discret, #6b7280);
}

.rust-p-fenetre [data-rust-choix] {
	display: grid;
	gap: 8px;
	margin-bottom: 12px;
}

.rust-p-opt {
	display: grid;
	gap: 2px;
	inline-size: 100%;
	min-height: 56px;
	padding: 12px 14px;
	border: 1px solid var(--ru-bord-2, rgba(0, 0, 0, .16));
	border-radius: 10px;
	background: var(--ru-fond, #fff);
	font: inherit;
	text-align: start;
	text-transform: none;
	letter-spacing: normal;
	color: var(--ru-texte, #0e2438);
	cursor: pointer;
}

.rust-p-opt:hover,
.rust-p-opt:focus-visible {
	border-color: var(--ru-contour-survol, #0a0a0a);
	color: var(--ru-accent, #1d5c8f);
}

.rust-p-opt strong {
	font-size: 15px;
	font-weight: 600;
}

.rust-p-opt small {
	font-size: 13px;
	color: var(--ru-discret, #6b7280);
}

.rust-p-seg {
	display: inline-flex;
	gap: 4px;
	margin-bottom: 12px;
	padding: 4px;
	border: 1px solid var(--ru-bord, rgba(0, 0, 0, .10));
	border-radius: 10px;
	background: var(--ru-surface-2, #f4f4f5);
}

.rust-p-seg button {
	min-height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	color: var(--ru-texte, #0e2438);
	cursor: pointer;
}

.rust-p-seg button.rust-on {
	background: var(--ru-accent, #1d5c8f);
	color: var(--ru-sur-accent, #fff);
}

.rust-p-code {
	display: block;
	inline-size: 100%;
	min-height: 96px;
	margin-bottom: 12px;
	padding: 10px 12px;
	border: 1px solid var(--ru-bord-2, rgba(0, 0, 0, .16));
	border-radius: 9px;
	background: var(--ru-surface-2, #f4f4f5);
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 13px;
	color: var(--ru-texte, #0e2438);
	resize: vertical;
}

.rust-p-fenetre .rust-p-reponse {
	display: block;
	margin: 12px 0 0;
}

.rust-p-fenetre form {
	margin: 12px 0 0;
}

/* ---------- Mini-lecteur du bas ---------- */

/*
 * Coque mobile (Standard mobile RU) : la barre du bas de RU Design est le
 * dernier bloc du cadre. Les lecteurs se collent au bas de la zone qui
 * défile, juste au-dessus d'elle, sans jamais la cacher (aucune hauteur
 * écrite à la main).
 */

/* ---------- Téléphone ---------- */

@media (max-width: 900px) {
	.rust-p-cartes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.rust-p {
		gap: var(--ru-esp-sections-tel, 24px);
	}

	.rust-p .rust-p-station {
		gap: var(--ru-esp-sections-tel, 24px);
	}

	.rust-p-deux,
	.rust-p-colonnes,
	.rust-p-cartes {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.rust-p-prog-l {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.rust-p-ondes {
		padding: 16px;
	}

	.rust-p-actions .ru-btn {
		flex: 1 1 100%;
	}

	.rust-p-infos {
		padding-left: 40px;
	}
}

/* ---------- Coque de RU Design : page des radios ---------- */

/* Le thème du site peut mettre des capitales aux boutons et une marge aux sections : la page garde le standard RU. */
.ru-page-pub--ru-stations .ru-btn,
.ru-page-pub--ru-stations .rust-p button,
.rust-p-fenetre button {
	text-transform: none;
	letter-spacing: normal;
}

.ru-page-pub--ru-stations .rupp-couverture {
	margin: 0;
	padding: 0;
}

/* À l'ordinateur, la coque mobile ne donne pas de marge : la page garde celle des pages publiques. */
@media (min-width: 641px) {
	.ru-page-pub--ru-stations .rud-coque-contenu .rupp-in {
		padding-left: var(--rupp-pad, 24px);
		padding-right: var(--rupp-pad, 24px);
	}
}

/* Fenêtre « Partager » de RU Design : jamais deux choix collés. */
.rust-p-partage [data-rust-choix] {
	display: grid;
	gap: 12px;
}

.rust-p-partage [data-rust-integrer] {
	display: grid;
	gap: 12px;
}

.rust-p-partage [data-rust-integrer][hidden] {
	display: none;
}
