.seotop-page .entry-header {
	margin-bottom: 1.5rem;
}

.seotop-page .seotop-updated {
	display: block;
	margin-top: 0.5rem;
	color: #7A7A7A;
	font-size: 0.9em;
}

.seotop-list {
	display: grid;
	row-gap: 28px;
	margin: 36px 0;
}

.seotop-item {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	grid-template-areas:
		"media title"
		"media badges"
		"media desc"
		"media price"
		"media stock"
		"media cta";
	gap: 10px 30px;
	align-items: start;
	border: 1px solid #eee;
	border-radius: 10px;
	background: #fff;
	padding: 16px;
}

.seotop-item__title {
	grid-area: title;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	font-size: 1.5rem;
	line-height: 1.3;
}

.seotop-item__rank {
	font-weight: 700;
}

.seotop-item__media {
	grid-area: media;
	align-self: start;
}

.seotop-item__media img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
}

.seotop-item__badges {
	grid-area: badges;
	margin: 0;
}

.seotop-item__desc {
	grid-area: desc;
	margin: 10px 0 12px;
}

.seotop-item__price {
	grid-area: price;
	margin-bottom: 8px;
	color: #004dc9;
}

.seotop-item__stock {
	grid-area: stock;
}

.seotop-item__stock p.stock {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 0.95em;
}

.seotop-item__stock p.stock::before {
	font-size: 1.1em;
	line-height: 1;
}

.seotop-item__stock p.stock.in-stock {
	color: #2E7D32;
}

.seotop-item__stock p.stock.in-stock::before {
	content: "\2713";
}

.seotop-item__stock p.stock.out-of-stock {
	color: #C41109;
}

.seotop-item__stock p.stock.out-of-stock::before {
	content: "\2715";
}

/* Précommande (backorders = notify) : pas de puce, juste le mot d'état en orange. */
.seotop-item__stock p.stock.available-on-backorder {
	color: #B57806;
	font-weight: 600;
}

.seotop-item__stock-date {
	margin: 2px 0 0;
	color: #7A7A7A;
	font-size: 0.85em;
}

.seotop-item__cta {
	grid-area: cta;
}

.seotop-item__cta a.button {
	margin: 0 !important;
	text-decoration: none !important;
	white-space: normal;
	line-height: 1.3;
}

/* Hub /selections/ */

.post-type-archive-top_selection .site-main .page-header {
	margin-bottom: 2rem;
}

.post-type-archive-top_selection .site-main article {
	margin: 0 0 20px;
}

@media (min-width: 768px) {
	.post-type-archive-top_selection .site-main article {
		margin: 0;
	}
}

.seotop-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	padding: 22px 24px;
	border: 1px solid #e6ebf5;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(23, 85, 143, 0.05);
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.seotop-card:hover {
	border-color: #C2D4F5;
	box-shadow: 0 6px 18px rgba(23, 85, 143, 0.10);
}

.seotop-card__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.3;
}

.seotop-card__title a {
	color: #232323;
	text-decoration: none;
}

/* Le lien du titre couvre toute la carte : un seul lien, tout le bloc cliquable. */
.seotop-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.seotop-card:hover .seotop-card__title a,
.seotop-card:focus-within .seotop-card__title a {
	color: #196EEB;
}

.seotop-card__podium {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Même style que les badges « À partir de 8 ans / 2 à 4 joueurs » du site (.custom-game-summary .game-tag). */
.seotop-card__podium li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 4px 10px 4px 7px;
	border-radius: 4px;
	background: #EAF0FD;
	color: #17558F;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.3;
}

.seotop-card__medal {
	font-size: 13px;
	line-height: 1;
}

.seotop-card__excerpt {
	flex: 1 1 auto;
	margin: 0;
	font-size: 0.95em;
	color: #444;
}

.seotop-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 14px;
	margin: 4px 0 0;
	padding-top: 12px;
	border-top: 1px solid #eef1f7;
}

.seotop-card__meta {
	color: #7A7A7A;
	font-size: 0.85em;
}

.seotop-card__link {
	margin-left: auto;
	color: #196EEB;
	font-size: 0.9em;
	font-weight: 600;
	white-space: nowrap;
}

.seotop-card:hover .seotop-card__link {
	color: #004dc9;
}

/* Maillage : phrase « Voir aussi » sur les pages catégorie (R16), un peu plus petite que la description. */

.seotop-see-also {
	margin: 10px 0 0;
	font-size: 0.875em;
}

.seotop-see-also a {
	font-weight: 600;
}

/* Maillage : bloc « Ce jeu figure dans nos sélections » sur les fiches produit (R17) */

/* Même conteneur centré que les produits associés de Shoptimizer (le bloc Catégories est en pleine largeur). */
.seotop-in-tops {
	box-sizing: border-box;
	max-width: calc(1170px + 5.2325em);
	margin: 36px auto;
	padding: 0 2.617924em;
}

.seotop-in-tops__title {
	margin: 0 0 14px;
	font-size: 1.25rem;
}

.seotop-in-tops__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.seotop-in-tops__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 14px 18px;
	border: 1px solid #e6ebf5;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(23, 85, 143, 0.05);
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.seotop-in-tops__item:hover,
.seotop-in-tops__item:focus-within {
	border-color: #C2D4F5;
	box-shadow: 0 6px 18px rgba(23, 85, 143, 0.10);
}

.seotop-in-tops__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.seotop-in-tops__rank {
	flex: 0 0 auto;
	margin-top: 1px;
	white-space: nowrap;
	padding: 3px 10px;
	border-radius: 999px;
	background: #EAF0FD;
	color: #17558F;
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1.3;
}

.seotop-in-tops__link {
	flex: 1 1 auto;
	color: #232323;
	font-family: Outfit, sans-serif;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.seotop-in-tops__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.seotop-in-tops__item:hover .seotop-in-tops__link,
.seotop-in-tops__item:focus-within .seotop-in-tops__link {
	color: #196EEB;
}

.seotop-in-tops__cta {
	align-self: flex-end;
	margin-top: auto;
	color: #196EEB;
	font-size: 0.9em;
	font-weight: 600;
	white-space: nowrap;
}

.seotop-in-tops__item:hover .seotop-in-tops__cta {
	color: #004dc9;
}

.post-type-archive-top_selection .site-main article .blog-loop-content-wrapper {
	height: 100%;
	padding: 0;
	margin: 0;
}

@media (min-width: 768px) {
	.post-type-archive-top_selection .site-main {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 24px;
	}

	.post-type-archive-top_selection .site-main > .page-header {
		grid-column: 1 / -1;
		margin-bottom: 0.5rem;
	}
}

.seotop-notice {
	padding: 12px 16px;
	border-left: 3px solid #EBA51B;
	background: #FBF0D8;
}

@media (max-width: 768px) {
	.seotop-in-tops {
		padding: 0 15px;
	}
}

@media (max-width: 640px) {
	.seotop-item {
		grid-template-columns: 1fr;
		grid-template-areas:
			"title"
			"media"
			"badges"
			"desc"
			"price"
			"stock"
			"cta";
	}

	.seotop-item__media img {
		max-width: 220px;
	}
}

/* Pagination du hub /selections/ : centrée, y compris avec les points de suspension (« … »).
   `#main` est en grid côté thème (classe `flow`), donc la nav de pagination reste coincée
   dans une seule colonne sans ce `grid-column` ; sans effet si jamais le parent n'est pas une
   grid, donc sans risque pour les autres pages du plugin. */
.seotop-page main.site-main nav.pagination {
	grid-column: 1 / -1;
	width: 100%;
}
.seotop-page nav.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
}
