/**
 * Styles du plugin Palmarès — extraction fidèle des règles
 * .palmares-* et .podium-* de assets/css/main.css du thème
 * (elles y restent, dormantes, sans conflit : mêmes valeurs),
 * précédée des variables Affiche redéfinies sous la portée
 * .rint-palmares pour que le panneau garde son apparence sur
 * n'importe quel thème hôte, et suivie des styles propres au
 * bloc d'attente (mode « en pause ») et aux éléments
 * structurels utilisés par le shortcode.
 */

.rint-palmares {
	--bg: #07070c;
	--card: #101018;
	--card-border: rgba(255, 255, 255, 0.12);
	--text: #f4f1ea;
	--muted: #a7a3b5;
	--cyan: #35e0ff;
	--gold: #eec25e;
	--neon: #ff2233;
	--radius: 12px;
	--font-title: 'Arial Black', Arial, sans-serif;
	--gradient: linear-gradient(90deg, #ff2233, #eec25e, #35e0ff);
	color: var(--text);
}
.rint-palmares .btn {
	display: inline-flex; align-items: center; gap: 0.4rem;
	font: inherit; font-weight: 700; text-decoration: none;
	border-radius: 999px; border: 1px solid var(--card-border);
	padding: 0.55rem 1.1rem; cursor: pointer; background: transparent; color: var(--text);
}
.rint-palmares .btn-primary { background: var(--neon); border-color: var(--neon); color: #fff; }
.rint-palmares .btn-ghost { background: transparent; }
.rint-palmares .btn-lg { padding: 0.75rem 1.5rem; font-size: 1.05rem; }
.rint-palmares .btn-sm { padding: 0.3rem 0.8rem; font-size: 0.9rem; }
.rint-palmares .eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.82rem; font-weight: 700; }
.rint-palmares .section-title { font-family: var(--font-title); }
.rint-palmares .lead { font-size: 1.12rem; }
.rint-palmares .narrow { max-width: 44rem; }
.rint-palmares .muted { color: var(--muted); }
.rint-palmares .subsection-title { margin-top: 1.4rem; }
.rint-palmares-pause { border: 1px solid var(--card-border); border-radius: 14px; padding: 1.4rem 1.5rem; background: var(--card); }
.rint-palmares-pause .hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1rem; }

.rint-badge-explicite {
	display: inline-block;
	font-family: var(--font-title);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.14em 0.55em;
	border-radius: 999px;
	border: 1px solid rgba(238, 194, 94, 0.8);
	color: var(--gold);
	background: rgba(238, 194, 94, 0.1);
	white-space: nowrap;
	vertical-align: 0.1em;
}

/* ---------- Palmarès ---------- */
.palmares-statut { color: var(--muted); font-style: italic; }
.palmares-classement {
	margin: 0.6rem 0 0;
	padding-left: 1.5rem;
	font-size: 1.05rem;
}
.palmares-classement li { margin-bottom: 0.3rem; }
.palmares-classement a { text-decoration: none; }
.palmares-classement a:hover { text-decoration: underline; }
.palmares-liste {
	list-style: none;
	margin: 1.6rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 0.55rem 1.4rem;
}
.palmares-item {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	background: var(--card);
	border: 1px solid var(--card-border);
	border-radius: var(--radius);
	padding: 0.55rem 0.8rem;
}
.palmares-titre {
	flex: 1 1 auto;
	text-decoration: none;
	color: var(--text);
	font-weight: 600;
}
.palmares-titre:hover { color: var(--cyan); }
.palmares-votes { color: var(--muted); white-space: nowrap; font-size: 0.92rem; }
.palmares-nombre { color: var(--gold); font-weight: 700; }
.palmares-voter { white-space: nowrap; }
.palmares-voter[disabled] {
	opacity: 0.65;
	cursor: default;
	color: var(--gold);
	border-color: rgba(238, 194, 94, 0.5);
}


/* ---------- Palmarès en podium ---------- */
.palmares-podium {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem;
	margin: 1.1rem 0 0.4rem;
}
.palmares-podium[hidden] { display: none; }
.podium-carte {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	background: var(--card);
	border: 1px solid var(--card-border);
	border-radius: 14px;
	padding: 1rem 1.1rem;
	overflow: hidden;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.podium-carte:hover { transform: translateY(-2px); }
.podium-rang-1 {
	grid-column: 1 / -1;
	border-color: rgba(238, 194, 94, 0.65);
	background: linear-gradient(120deg, rgba(238, 194, 94, 0.13), rgba(255, 34, 51, 0.07) 60%, rgba(53, 224, 255, 0.06)), var(--card);
	box-shadow: 0 0 34px rgba(238, 194, 94, 0.16);
	padding: 1.3rem 1.3rem;
}
.podium-rang-2 { border-color: rgba(53, 224, 255, 0.45); }
.podium-rang-3 { border-color: rgba(255, 34, 51, 0.45); }
.podium-rang-num {
	font-family: var(--font-title);
	line-height: 0.9;
	color: var(--muted);
	font-size: 2.6rem;
	min-width: 2.4rem;
	text-align: center;
}
.podium-rang-1 .podium-rang-num {
	font-size: clamp(4rem, 10vw, 5.6rem);
	min-width: 4.6rem;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.podium-rang-2 .podium-rang-num { color: var(--cyan); }
.podium-rang-3 .podium-rang-num { color: var(--neon); }
.podium-infos { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.podium-titre {
	font-weight: 700;
	font-size: 1.08rem;
	color: var(--text);
	text-decoration: none;
	overflow-wrap: anywhere;
}
.podium-titre:hover { color: var(--cyan); }
.podium-rang-1 .podium-titre { font-size: clamp(1.3rem, 4vw, 1.7rem); font-family: var(--font-title); letter-spacing: 0.02em; }
.podium-votes { color: var(--muted); font-size: 0.95rem; }
.podium-votes strong { color: var(--gold); font-size: 1.15em; }
.podium-actions { display: flex; flex-direction: column; gap: 0.45rem; align-items: stretch; }
.podium-actions .chanson-btn { font-size: 0.88rem; padding: 0.35rem 0.8rem; text-align: center; }
.podium-actions .palmares-voter { justify-content: center; }
.palmares-classement:empty { margin: 0; }
@media (max-width: 720px) {
	.palmares-podium { grid-template-columns: 1fr; }
	.podium-carte { flex-wrap: wrap; }
	.podium-actions { flex-direction: row; flex: 1 1 100%; }
	.podium-actions > * { flex: 1; }
}

.palmares-voter { transition: border-color 0.15s ease, color 0.15s ease, transform 0.1s ease; }
.palmares-voter:active { transform: scale(0.96); }
