/*
 * Filtres en boutons des pages de type de ressource (Rezom, lots 2 et 3).
 * Couleurs et polices reprises de css/base/_variables.scss :
 * noir #1a1b13, clair #f8f5f5, rouge #e04c18, gris foncé #515151.
 */

.rezom-filtres {
	flex-basis: 100%;
	margin: 0 0.5% 3vh;
}

.rezom-filtres[hidden],
[data-rezom-carte][hidden],
.rezom-filtres__vide[hidden] {
	display: none;
}

.rezom-filtres__groupe {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.rezom-filtres__titre {
	flex-basis: 100%;
	margin: 0 0 4px;
	font-family: 'acumin_pro_condensedbold', sans-serif;
	font-size: 120%;
	text-transform: uppercase;
	color: #1a1b13;
}

.rezom-filtres__bouton {
	min-height: 44px; /* cible tactile confortable */
	padding: 8px 16px;
	border: 2px solid #1a1b13;
	border-radius: 0;
	background: transparent;
	color: #1a1b13;
	font-family: 'acumin_pro_condensedbold', sans-serif;
	font-size: 100%;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.rezom-filtres__bouton:hover {
	background: #1a1b13;
	color: #f8f5f5;
}

.rezom-filtres__bouton[aria-pressed="true"] {
	background: #1a1b13;
	color: #f8f5f5;
	box-shadow: inset 0 -4px 0 #e04c18;
}

.rezom-filtres__bouton:focus-visible {
	outline: 3px solid #e04c18;
	outline-offset: 2px;
}

.rezom-filtres__bouton:disabled {
	border-color: #c5c5c5;
	color: #515151;
	background: transparent;
	cursor: not-allowed;
	text-decoration: line-through;
}

.rezom-filtres__statut {
	margin: 8px 0 0;
	color: #515151;
	font-weight: 600;
}

.rezom-filtres__vide {
	margin: 12px 0 0;
	font-weight: 600;
}

.rezom-filtres__apercu {
	margin: 0 0 12px;
	padding: 8px 12px;
	border-left: 4px solid #e04c18;
	background: #fff;
	color: #1a1b13;
}

@media (prefers-reduced-motion: reduce) {
	.rezom-filtres__bouton {
		transition: none;
	}
}
