/* Nuancier de navigation — présent sur toutes les pages (intro + fiches iro).
   Chaque échantillon calcule SON propre contraste (via .is-light / .is-dark,
   généré côté serveur en PHP) puisqu'il a sa propre couleur de fond,
   indépendante du fond de la page en cours. */
.iro-nav {
	margin: 2rem 0;
}

.iro-nav-list {
	position: relative; /* ancre les échantillons sortants (position absolue pendant leur fondu) */
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;	
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.iro-nav-list li {	
	transition: opacity 0.22s ease, transform 0.22s ease;	
	opacity: 1;	
	transform: scale(1);
} 

.iro-nav-list li.is-hiding,
.iro-nav-list li.is-entering {	
	opacity: 0;	
	transform: scale(0.7);	
	pointer-events: none;
} 

.iro-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 136px;
	height: 96px;
	border-radius: .3rem;
	text-decoration: none;
	line-height: 1.3;
	transition: transform 0.15s ease;
}

.iro-swatch:hover,
.iro-swatch:focus-visible {
	transform: scale(1.08);
	z-index: 1;
}

.iro-swatch.is-light {
	color: #111;
}
.iro-swatch.is-dark {
	color: #fff;
}

.iro-swatch-kanji {
	font-size: 0.85rem;
	font-weight: normal;
	text-align: center;
}

.iro-swatch-romanji {
	font-size: 0.7rem;
	letter-spacing: 0.01em;
	text-align: center;
}

@media (max-width: 480px) {
	.iro-nav-list {		
		gap: 0.5rem;
	}	
	.iro-swatch {
		width: 82px;		
		height: 58px;
	}
	.iro-swatch-kanji {
		font-size: 0.7rem;
	}
	.iro-swatch-romanji {		
		font-size: 0.5rem;
	}
}

/* --- Filtres par saison (ajout) --- */
.iro-nav-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 0 0 1.5rem;
}

.iro-filter-btn, .iro-light .iro-filter-btn {
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: transparent;
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 0.8rem;
	cursor: pointer;
	color: inherit;
	transition: background 0.15s ease, color 0.15s ease;
	font-family: inherit;
	letter-spacing: 0.01rem;
}

.iro-dark .iro-filter-btn {
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.iro-filter-btn:hover {	
	background: rgba(0, 0, 0, 0.06);
}

.iro-light .iro-filter-btn:hover {
	background: rgba(0, 0, 0, 0.06);
}

.iro-dark .iro-filter-btn:hover {	
	background: rgba(255, 255, 255, 0.06);
}

.iro-filter-btn.is-active {
	background: rgba(0, 0, 0, 0.7);
	border-color: transparent;
	color: #fff;
}

.iro-light .iro-filter-btn.is-active {
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
}

.iro-dark .iro-filter-btn.is-active {
	background: rgba(255, 255, 255, 0.25);
	color: #000;
}

.iro-nav-list li.is-filtered-out {
	display: none;
}
