/* ==========================================================================
   Mot-clé — Radio Anar
   Complète rubrique.css (à charger avant) : titre en hashtag, texte du mot,
   liste des autres mots-clés en étiquettes collées.
   Utilise les variables --rub-* définies dans rubrique.css.
   ========================================================================== */

/* ---- Titre en hashtag --------------------------------------------------- */

.mot-title .hash {
	color: var(--rub-accent);
	margin-right: 2px;
}

/* ---- Texte / descriptif du mot-clé ------------------------------------- */

.mot-texte {
	max-width: 680px;
	margin: 0 0 32px;
	font-family: var(--rub-font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--rub-ink);
}

.mot-texte p {
	margin: 0 0 16px;
}

.mot-texte a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--rub-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

.mot-texte a:hover {
	color: var(--rub-accent);
}

/* ---- Autres mots-clés : mêmes étiquettes que sous les articles ---------- */

.mot-tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 12px;
	margin: 0;
	padding: 0;
}

.mot-tags li {
	margin: 0;
	padding: 0;
}

.mot-tag {
	display: inline-block;
	padding: 5px 12px 4px;
	font-family: var(--rub-font-mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-decoration: none;
	color: var(--rub-ink);
	background: var(--rub-paper);
	border: 2px solid var(--rub-ink);
	border-radius: 2px;
	box-shadow: 3px 3px 0 var(--rub-ink);
	transform: rotate(-1.5deg);
	transition: transform 0.15s ease, box-shadow 0.15s ease,
		background 0.15s ease, color 0.15s ease;
}

.mot-tags li:nth-child(even) .mot-tag {
	transform: rotate(1.2deg);
}

.mot-tags li:nth-child(3n) .mot-tag {
	transform: rotate(-0.6deg);
}

.mot-tag .hash {
	color: var(--rub-accent);
	margin-right: 1px;
	transition: color 0.15s ease;
}

.mot-tag:hover,
.mot-tag:focus-visible {
	background: var(--rub-accent);
	color: var(--rub-paper);
	transform: translate(-1px, -2px) rotate(0deg);
	box-shadow: 5px 5px 0 var(--rub-ink);
}

.mot-tag:hover .hash,
.mot-tag:focus-visible .hash {
	color: inherit;
}

.mot-tag:focus-visible {
	outline: 2px solid var(--rub-ink);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.mot-tag,
	.mot-tag .hash {
		transition: none;
	}
}

@media (max-width: 640px) {
	.mot-tag {
		font-size: 12px;
		padding: 4px 10px 3px;
	}
}