.vhof-wrap {
	--vhof-gold: #d4af37;
	--vhof-silver: #a8a8a8;
	--vhof-bronze: #b0692f;
	--vhof-accent: #3876c3;
	--vhof-bg: #14161c;
	--vhof-card-bg: #1d2029;
	--vhof-text: #f3f3f4;
	--vhof-text-muted: #9a9ea8;
	font-family: inherit;
	color: var(--vhof-text) !important;
}

/* Bandeau statut */
.vhof-banner {
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 16px;
	text-align: center;
}
.vhof-banner-active { background: rgba(56,118,195,.15); color: var(--vhof-accent); }
.vhof-banner-ended { background: rgba(212,175,55,.15); color: var(--vhof-gold); }

/* Filtre */
.vhof-filter-bar { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.vhof-filter-select,
select.vhof-filter-select {
	padding: 8px 14px !important;
	border-radius: 999px !important;
	border: 1px solid rgba(255,255,255,.15) !important;
	background-color: var(--vhof-card-bg, #1d2029) !important;
	color: var(--vhof-text, #f3f3f4) !important;
	font-size: 14px !important;
	-webkit-appearance: none;
	appearance: none;
}
.vhof-filter-select option {
	background-color: var(--vhof-card-bg, #1d2029);
	color: var(--vhof-text, #f3f3f4) !important;
}

.vhof-results.vhof-loading { opacity: .5; pointer-events: none; transition: opacity .15s; }
.vhof-empty { text-align: center; color: var(--vhof-text-muted) !important; padding: 30px 0; }

/* ============ PODIUM (top 3) ============ */
.vhof-podium {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: end;
	gap: 12px;
	margin-bottom: 24px;
}
.vhof-podium-step {
	background: var(--vhof-card-bg);
	border-radius: 16px;
	padding: 16px 12px 20px;
	text-align: center;
	position: relative;
	min-width: 0;
	box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.vhof-podium-1 { order: 2; padding-top: 28px; transform: translateY(-14px); }
.vhof-podium-2 { order: 1; }
.vhof-podium-3 { order: 3; }
.vhof-podium-rank {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	color: #14161c;
}
.vhof-gold .vhof-podium-rank, .vhof-gold.vhof-item { --medal: var(--vhof-gold); }
.vhof-silver .vhof-podium-rank, .vhof-silver.vhof-item { --medal: var(--vhof-silver); }
.vhof-bronze .vhof-podium-rank, .vhof-bronze.vhof-item { --medal: var(--vhof-bronze); }
.vhof-blue .vhof-podium-rank, .vhof-blue.vhof-item { --medal: var(--vhof-accent); }
.vhof-podium-rank { background: var(--medal, var(--vhof-accent)); }

/*
 * Dimensions FIXES en pixels plutôt que fluides (aspect-ratio calculé sur
 * la largeur de la colonne de grille) : une image dont la taille
 * intrinsèque est inhabituelle pouvait forcer une colonne de la grille à
 * s'élargir (bug CSS Grid classique — "min-width: auto" par défaut sur
 * les éléments de grille), débordant sur les colonnes voisines. Avec une
 * largeur/hauteur fixes + centrage par marge, la vignette ne dépend plus
 * jamais de la taille réelle de sa colonne.
 */
.vhof-podium-thumb {
	display: block;
	width: 110px;
	height: 110px;
	margin: 0 auto 10px;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	border: 2px solid var(--medal, transparent);
}
.vhof-podium-1 .vhof-podium-thumb { width: 130px; height: 130px; }
.vhof-podium-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vhof-podium-title {
	display: block;
	color: var(--vhof-text) !important;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	margin-bottom: 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ============ Liste (classique / reste après podium) ============ */
.vhof-list { display: flex; flex-direction: column; gap: 10px; }
.vhof-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--vhof-card-bg);
	border-radius: 12px;
	padding: 10px;
}
.vhof-rank {
	flex: 0 0 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--medal, var(--vhof-accent));
	color: #14161c;
	font-weight: 700;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vhof-thumb {
	flex: 0 0 84px;
	width: 84px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
	display: block;
}
.vhof-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vhof-info { flex: 1 1 auto; min-width: 0; }
.vhof-title {
	display: block;
	color: var(--vhof-text) !important;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vhof-stats { display: flex; gap: 10px; margin-top: 3px; font-size: 12px; }
.vhof-stats,
.vhof-stat,
.vhof-widget .vhof-stats,
.vhof-widget .vhof-stat {
	color: var(--vhof-text-muted, #9a9ea8) !important;
}
.vhof-stat::before { margin-right: 4px; }
.vhof-stat-views::before { content: "\1F441\FE0F"; }
.vhof-stat-likes::before { content: "\2764\FE0F"; }
.vhof-stat-comments::before { content: "\1F4AC"; }
.vhof-stat-rating::before { content: "\2B50"; }

.vhof-score,
.vhof-widget .vhof-score {
	font-size: 12px;
	color: var(--vhof-text-muted, #9a9ea8) !important;
	margin-top: 4px;
}
.vhof-score span,
.vhof-widget .vhof-score span {
	color: var(--vhof-gold, #d4af37) !important;
	font-weight: 700;
	font-size: 14px;
}

/* Partage social */
.vhof-social { display: flex; gap: 8px; margin-top: 6px; }
.vhof-social a {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255,255,255,.1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--vhof-text, #f3f3f4) !important;
	transition: background .15s, color .15s;
}
.vhof-social a:hover { background: var(--vhof-accent, #3876c3); color: #fff; }

/* ============ Style "cards" (grille) ============ */
.vhof-style-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}
.vhof-style-cards .vhof-item {
	flex-direction: column;
	align-items: stretch;
	text-align: left;
}
.vhof-style-cards .vhof-thumb { flex: none; width: 100%; height: 120px; }
.vhof-style-cards .vhof-rank { position: absolute; margin: 8px; }
.vhof-style-cards .vhof-item { position: relative; }

/* ============ Règles & Prix ============ */
.vhof-rules-prizes {
	margin-top: 26px;
	padding: 18px;
	border-radius: 12px;
	background: var(--vhof-card-bg, #1d2029);
	color: var(--vhof-text, #f3f3f4) !important;
}
.vhof-rules-prizes h3 {
	margin-top: 0;
	color: var(--vhof-text, #f3f3f4) !important;
}
.vhof-rules-prizes p,
.vhof-rules-prizes li {
	color: var(--vhof-text, #f3f3f4) !important;
}

/* ============ Mobile ============ */
@media (max-width: 560px) {
	/*
	 * Sur mobile, 3 colonnes côte à côte n'ont pas la place de respirer :
	 * soit tout devient minuscule, soit le 1er/3ème est coupé par le bord
	 * de l'écran. On passe donc à un carrousel défilable au doigt
	 * (scroll-snap natif du navigateur, sans dépendance JS) : chaque
	 * podium garde une taille confortable et l'utilisateur balaie pour
	 * voir les 3, rien n'est jamais rogné.
	 */
	.vhof-podium {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 12px;
		padding: 4px 24px 10px;
		margin: 0 -24px 24px;
		scrollbar-width: none;
	}
	.vhof-podium::-webkit-scrollbar { display: none; }
	.vhof-podium-step {
		flex: 0 0 78%;
		scroll-snap-align: center;
		order: initial !important;
		transform: none !important;
		padding-top: 16px !important;
	}
	.vhof-podium-1 { order: 1 !important; }
	.vhof-podium-2 { order: 2 !important; }
	.vhof-podium-3 { order: 3 !important; }
	.vhof-podium-thumb,
	.vhof-podium-1 .vhof-podium-thumb { width: 150px; height: 150px; }
	.vhof-podium-title { font-size: 14px; }
	.vhof-thumb { flex-basis: 64px; width: 64px; height: 44px; }
	.vhof-title { font-size: 13px; }
	.vhof-style-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Badges vainqueur ============ */
.vhof-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.vhof-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, var(--vhof-gold, #d4af37), #f4d873);
	color: #14161c;
	font-weight: 700;
	font-size: 12px;
	padding: 6px 12px;
	border-radius: 999px;
}

/* ============ Archive ============ */
.vhof-archive-list { list-style: none; margin: 0 0 20px; padding: 0; }
.vhof-archive-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	background: var(--vhof-card-bg, #1d2029);
	border-radius: 10px;
	margin-bottom: 8px;
	color: var(--vhof-text, #f3f3f4) !important;
}
.vhof-archive-item a { color: inherit; font-weight: 600; text-decoration: none; }
.vhof-archive-meta { font-size: 12px; color: var(--vhof-text-muted, #9a9ea8) !important; }
.vhof-archive-ended .vhof-archive-item { opacity: .7; }

/* Style grille */
.vhof-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}
.vhof-archive-card {
	--card-color: hsl(var(--vhof-card-hue, 210), 80%, 60%);
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: var(--vhof-card-bg, #1d2029);
	box-shadow: 0 8px 20px rgba(0,0,0,.2);
	transition: transform .15s ease;
}
.vhof-archive-card:hover { transform: translateY(-3px); }
.vhof-archive-card-media {
	height: 110px;
	background-size: cover;
	background-position: center;
	background-color: var(--card-color);
	display: flex;
	align-items: center;
	justify-content: center;
}
.vhof-archive-card-gradient {
	background-image: linear-gradient(135deg, var(--card-color), hsl(calc(var(--vhof-card-hue, 210) + 60), 80%, 45%));
}
.vhof-archive-card-gradient span { font-size: 30px; }
.vhof-archive-card-body { padding: 12px 14px 16px; border-top: 3px solid var(--card-color); }
.vhof-archive-card-title {
	display: block;
	font-weight: 700;
	font-size: 15px;
	color: var(--vhof-text, #f3f3f4) !important;
	text-decoration: none;
	margin-bottom: 4px;
}
.vhof-archive-card-meta { font-size: 12px; color: var(--vhof-text-muted, #9a9ea8) !important; }
.vhof-archive-card.is-ended { opacity: .6; }

/* ============ Compte à rebours ============ */
.vhof-countdown {
	background: var(--vhof-card-bg, #1d2029);
	border-radius: 12px;
	padding: 14px 18px;
	text-align: center;
	color: var(--vhof-text, #f3f3f4) !important;
}
.vhof-countdown-label { font-size: 13px; color: var(--vhof-text-muted, #9a9ea8) !important; margin-bottom: 4px; }
.vhof-countdown-value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vhof-countdown-ended { color: var(--vhof-gold, #d4af37); }

/* ============ Widget top3 ============ */
.vhof-widget-top3 .vhof-widget-title { font-weight: 700; margin-bottom: 10px; }
.vhof-widget-title a,
.vhof-countdown-label a {
	color: inherit !important;
	text-decoration: none;
}
.vhof-widget-title a:hover,
.vhof-countdown-label a:hover { text-decoration: underline; }
