/*
 * Horaires d'entraînement — styles front.
 * Jetons repris du thème ASCAR Carquois (autonome : ne dépend pas des
 * variables CSS du thème, pour rester correct même si le thème change).
 */

.horaires-entrainement {
	--horaires-cream: #f6f3ec;
	--horaires-ink: #14161a;
	--horaires-ink-70: rgba(20, 22, 26, 0.7);
	--horaires-ink-45: rgba(20, 22, 26, 0.45);
	--horaires-ink-12: rgba(20, 22, 26, 0.12);
	--horaires-white: #ffffff;
	--horaires-gold: #ffc91f;
	--horaires-red: #cf2027;
	--horaires-blue: #1b7fbf;
	--horaires-font-display: 'Oswald', sans-serif;

	/*
	 * Pas de fond ici : le composant reste transparent et se pose sur n'importe
	 * quelle section du thème (voir le mockup). Seule la couleur de texte est
	 * fixée, pour ne plus dépendre du texte hérité de la page (horaires__cat / __coach) —
	 * chaque élément visible (boutons, tableau) porte déjà son propre fond.
	 */
	color: var(--horaires-ink);
}

.horaires-entrainement__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

.horaires-entrainement__filter {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--horaires-ink-70);
	background: var(--horaires-white);
	border: 1px solid var(--horaires-ink-12);
	border-radius: 999px;
	padding: 7px 15px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.horaires-entrainement__filter:hover {
	border-color: var(--horaires-ink-45);
}

.horaires-entrainement__filter[aria-pressed="true"] {
	background: var(--horaires-ink);
	color: var(--horaires-cream);
	border-color: var(--horaires-ink);
}

.horaires-entrainement__table-wrap {
	overflow-x: auto;
	border: 1px solid var(--horaires-ink-12);
	border-radius: 8px;
	background: var(--horaires-white);
	box-shadow: 0 20px 44px -30px rgba(20, 22, 26, 0.5);
}

.horaires-entrainement__table {
	width: 100%;
	border-collapse: collapse;
	min-width: 620px;
}

.horaires-entrainement__table thead th {
	font-family: var(--horaires-font-display), sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-align: left;
	color: var(--horaires-ink-45);
	background: var(--horaires-cream);
	padding: 12px 16px;
	border-bottom: 1px solid var(--horaires-ink-12);
	white-space: nowrap;
}

.horaires-entrainement__table tbody td {
	padding: 13px 16px;
	border-bottom: 1px solid var(--horaires-ink-12);
	font-size: 14px;
	vertical-align: middle;
}

.horaires-entrainement__table tbody tr:last-child td {
	border-bottom: none;
}

.horaires-entrainement__table tbody tr.is-hidden {
	display: none;
}

.horaires-entrainement__table tbody tr:hover td {
	background: var(--horaires-cream);
}

.horaires-entrainement__day {
	font-family: var(--horaires-font-display), sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.03em;
	color: var(--horaires-ink);
	border-right: 1px solid var(--horaires-ink-12);
}

.horaires-entrainement__time {
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	white-space: nowrap;
	color: var(--horaires-ink-70);
}

.horaires-entrainement__cat {
	font-family: var(--horaires-font-display), sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--horaires-ink);
}

.horaires-entrainement__table tr.is-highlight .horaires-entrainement__cat {
	color: var(--horaires-red);
}

.horaires-entrainement__lieu {
	white-space: nowrap;
	color: var(--horaires-ink-70);
}

.horaires-entrainement__lieu-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	margin-right: 7px;
	vertical-align: 1px;
}

.horaires-entrainement__lieu-dot--gold { background: var(--horaires-gold); }
.horaires-entrainement__lieu-dot--blue { background: var(--horaires-blue); }
.horaires-entrainement__lieu-dot--ink { background: var(--horaires-ink); }

.horaires-entrainement__coach {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	color: var(--horaires-ink-70);
}

.horaires-entrainement__avatars {
	display: flex;
	flex-shrink: 0;
}

.horaires-entrainement__avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--horaires-ink);
	color: var(--horaires-cream);
	font-family: var(--horaires-font-display), sans-serif;
	font-size: 9.5px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.horaires-entrainement__avatars .horaires-entrainement__avatar + .horaires-entrainement__avatar {
	margin-left: -7px;
	border: 2px solid var(--horaires-white);
}

.horaires-entrainement-empty {
	color: var(--horaires-ink-70, #575b63);
}

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