/**
 * DMR75 — sélecteur de période des statistiques.
 *
 * Les gabarits d'origine s'appuyaient sur les classes Bootstrap
 * (navbar, btn btn-primary) alors que Bootstrap n'est pas chargé sur ces
 * pages : le sélecteur retombait en trois liens nus. On le redessine ici,
 * sans dépendance.
 */

.dmr-stats-nav {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 22px;
	padding: 4px;
	border: 1px solid rgba(128, 128, 128, 0.25);
	border-radius: 10px;
	background: rgba(128, 128, 128, 0.07);
}

.dmr-stats-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 7px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.dmr-stats-nav__link i {
	font-size: 13px;
	opacity: 0.6;
}

.dmr-stats-nav__link:hover,
.dmr-stats-nav__link:focus {
	background: rgba(128, 128, 128, 0.16);
	color: inherit;
}

/* La période affichée : contraste plein, et non cliquable puisqu'on y est. */
.dmr-stats-nav__link.is-current {
	background: #0f4a7b;
	color: #fff;
	pointer-events: none;
}

.dmr-stats-nav__link.is-current i {
	opacity: 0.85;
}

@media (max-width: 575px) {
	.dmr-stats-nav {
		display: flex;
		width: 100%;
	}

	.dmr-stats-nav__link {
		flex: 1 1 auto;
		justify-content: center;
		padding: 8px 10px;
		font-size: 14px;
	}
}
