body.post-type-archive-game,
body.post-type-archive-game .site,
body.post-type-archive-game .site-content {
	background: #0d1117;
}

.juka-game-archive {
	min-height: 70vh;
	padding: 48px 20px 72px;
	color: #f5f7fa;
	background:
		radial-gradient(
			circle at 15% 0%,
			rgba(85, 214, 190, 0.07),
			transparent 30rem
		),
		#0d1117;
}

.juka-game-archive,
.juka-game-archive * {
	box-sizing: border-box;
}

.juka-game-archive__container {
	width: min(1240px, 100%);
	margin: 0 auto;
}

.juka-game-archive__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 30px;
}

.juka-game-archive__eyebrow {
	margin: 0 0 7px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #55d6be;
}

.juka-game-archive__title {
	margin: 0;
	font-size: clamp(2.4rem, 5vw, 4rem);
	line-height: 1;
	letter-spacing: -0.04em;
	color: #f5f7fa;
}

.juka-game-archive__intro {
	margin: 13px 0 0;
	font-size: 1rem;
	color: #aeb8c5;
}

.juka-game-archive__count {
	display: flex;
	align-items: baseline;
	gap: 7px;
	padding-bottom: 5px;
	color: #aeb8c5;
}

.juka-game-archive__count strong {
	font-size: 1.5rem;
	color: #f5f7fa;
}

/*
 * =========================================================
 * Filtres
 * =========================================================
 */

.juka-game-filters {
	margin-bottom: 30px;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 18px;
	background: rgba(21, 27, 35, 0.94);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.juka-game-filters__form {
	display: grid;
	grid-template-columns:
		minmax(220px, 1.45fr)
		repeat(4, minmax(135px, 1fr))
		auto;
	gap: 14px;
	align-items: end;
}

.juka-game-filter {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 7px;
}

.juka-game-filter label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #8693a1;
}

.juka-game-filter input,
.juka-game-filter select {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 10px;
	outline: none;
	background: #10161e !important;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 400;

	/*
	 * Important :
	 * Kava applique également ses propres styles
	 * aux champs de formulaire.
	 */
	color: #f5f7fa !important;
	-webkit-text-fill-color: #f5f7fa !important;
	caret-color: #55d6be;
	opacity: 1;

	transition:
		border-color 160ms ease,
		box-shadow 160ms ease;
}

.juka-game-filter input[type="search"] {
	color: #f5f7fa !important;
	-webkit-text-fill-color: #f5f7fa !important;
	caret-color: #55d6be !important;
	background-color: #10161e !important;
}

.juka-game-filter input[type="search"]::-webkit-search-cancel-button {
	cursor: pointer;
}

.juka-game-filter input::placeholder {
	color: #65717e !important;
	-webkit-text-fill-color: #65717e !important;
	opacity: 1;
}

.juka-game-filter select {
	cursor: pointer;
}

.juka-game-filter select option {
	background: #151b23;
	color: #f5f7fa;
}

.juka-game-filter input:hover,
.juka-game-filter select:hover {
	border-color: rgba(85, 214, 190, 0.3);
}

.juka-game-filter input:focus,
.juka-game-filter select:focus {
	border-color: #55d6be;
	box-shadow:
		0 0 0 3px rgba(85, 214, 190, 0.09);
}

.juka-game-filter input:-webkit-autofill,
.juka-game-filter input:-webkit-autofill:hover,
.juka-game-filter input:-webkit-autofill:focus {
	-webkit-text-fill-color: #f5f7fa !important;
	-webkit-box-shadow:
		0 0 0 1000px #10161e inset !important;
	caret-color: #55d6be;
}

.juka-game-filters__actions {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 44px;
}

.juka-game-filter-submit {
	height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid #55d6be !important;
	border-radius: 10px;
	background: #55d6be !important;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #07110f !important;
	cursor: pointer;
	white-space: nowrap;
	transition:
		background-color 160ms ease,
		border-color 160ms ease;
}

.juka-game-filter-submit:hover {
	border-color: #8debd9 !important;
	background: #8debd9 !important;
}

.juka-game-filter-reset {
	font-size: 0.8rem;
	font-weight: 500;
	color: #aeb8c5 !important;
	text-decoration: none;
	white-space: nowrap;
}

.juka-game-filter-reset:hover {
	color: #55d6be !important;
}

/*
 * =========================================================
 * Grille
 * =========================================================
 */

.juka-game-grid {
	display: grid;
	grid-template-columns:
		repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.juka-game-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 18px;
	background: #151b23;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.17);
	transition:
		transform 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease;
}

.juka-game-card:hover {
	transform: translateY(-4px);
	border-color: rgba(85, 214, 190, 0.3);
	box-shadow: 0 22px 45px rgba(0, 0, 0, 0.25);
}

.juka-game-card__cover {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #111720;
}

.juka-game-card__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 250ms ease;
}

.juka-game-card:hover
.juka-game-card__cover img {
	transform: scale(1.035);
}

.juka-game-card__cover-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #aeb8c5;
}

.juka-game-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.juka-game-card__title {
	margin: 0 0 15px;
	font-size: 1.45rem;
	line-height: 1.2;
}

.juka-game-card__title a {
	color: #f5f7fa;
	text-decoration: none;
}

.juka-game-card__title a:hover {
	color: #55d6be;
}

.juka-game-card__genres {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 24px;
}

.juka-game-card__genres span {
	padding: 6px 9px;
	border: 1px solid rgba(85, 214, 190, 0.16);
	border-radius: 999px;
	background: rgba(85, 214, 190, 0.07);
	font-size: 0.78rem;
	line-height: 1;
	color: #dffaf5;
}

.juka-game-card__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.juka-game-card__release {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.juka-game-card__release span {
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #778391;
}

.juka-game-card__release strong {
	font-size: 0.88rem;
	font-weight: 500;
	color: #aeb8c5;
}

.juka-game-card__link {
	flex: 0 0 auto;
	font-size: 0.86rem;
	font-weight: 600;
	color: #55d6be !important;
	text-decoration: none;
}

.juka-game-card__link:hover {
	color: #8debd9 !important;
}

/*
 * =========================================================
 * Pagination
 * =========================================================
 */

.juka-game-archive .navigation.pagination {
	margin-top: 40px;
}

.juka-game-archive .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.juka-game-archive .page-numbers {
	padding: 9px 13px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 9px;
	background: #151b23;
	color: #aeb8c5 !important;
	text-decoration: none;
}

.juka-game-archive .page-numbers.current,
.juka-game-archive a.page-numbers:hover {
	border-color: rgba(85, 214, 190, 0.35);
	color: #55d6be !important;
}

/*
 * =========================================================
 * Aucun résultat
 * =========================================================
 */

.juka-game-archive__empty {
	padding: 40px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 18px;
	background: #151b23;
	text-align: center;
	color: #aeb8c5;
}

.juka-game-archive__empty strong {
	display: block;
	margin-bottom: 8px;
	font-size: 1.15rem;
	color: #f5f7fa;
}

.juka-game-archive__empty p {
	margin: 0 0 18px;
}

.juka-game-archive__empty a {
	color: #55d6be;
}

/*
 * =========================================================
 * Responsive
 * =========================================================
 */

@media (max-width: 1180px) {
	.juka-game-filters__form {
		grid-template-columns:
			repeat(3, minmax(0, 1fr));
	}

	.juka-game-filter--search {
		grid-column: span 2;
	}
}

@media (max-width: 900px) {
	.juka-game-grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}

	.juka-game-filters__form {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}

	.juka-game-filter--search {
		grid-column: 1 / -1;
	}
}

@media (max-width: 620px) {
	.juka-game-archive {
		padding: 32px 14px 52px;
	}

	.juka-game-archive__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.juka-game-filters {
		padding: 16px;
	}

	.juka-game-filters__form {
		grid-template-columns: 1fr;
	}

	.juka-game-filter--search {
		grid-column: auto;
	}

	.juka-game-filters__actions {
		justify-content: space-between;
	}

	.juka-game-grid {
		grid-template-columns: 1fr;
	}

	.juka-game-card__footer {
		align-items: flex-start;
		flex-direction: column;
	}
}
