/* (15/11/2026) PAGE VOTE v2 (vote.php). Couleurs du thème (style.css), clair et sombre. Récompenses en phrases, jamais en pastilles. */
.vt .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vt-hero::before { background-image: url("/assets/img/accueil/ciel-soir.webp"); }
.vt-hero::after { background: linear-gradient(180deg, rgba(90, 60, 160, .30), rgba(255, 190, 150, .10) 60%, rgba(242, 248, 255, 0) 100%); }
html[data-theme="dark"] .vt-hero::before { background-image: url("/assets/img/accueil/ciel-nuit.webp"); }
.vt-hero .hero-actions { margin-top: 24px; }
.vt-sec { padding: 72px 0 0; }
.vt-hero + .vt-sec { padding-top: 0; }
.vt > .vt-sec:last-child { padding-bottom: 40px; }
.vt-head { display: grid; gap: 8px; justify-items: center; text-align: center; max-width: 700px; margin: 0 auto 32px; }
.vt-head h2 { font-size: clamp(30px, 4vw, 44px); }
.vt-head p { color: var(--ink-3); font-size: 17px; }
.vt-head-left { justify-items: start; text-align: left; margin: 0; }
.vt-count { font-weight: 800; color: var(--ink) !important; background: var(--surface); border: 2px solid var(--outline); border-radius: 12px; padding: 6px 14px; box-shadow: 0 3px 0 var(--outline); font-size: 15px !important; }

/* --- les 7 sites --- */
.vt-sites { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.vt-site { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 14px 16px; padding: 20px;
	background: var(--surface); border: 3px solid var(--outline); border-radius: 20px; box-shadow: 0 5px 0 var(--outline);
	transition: transform .2s ease, box-shadow .2s ease, opacity .3s ease; }
.vt-site:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--outline); }
.vt-num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-family: var(--font-display); font-size: 22px;
	color: var(--ink-fixed, #1b1740); background: var(--gold); border: 3px solid var(--outline); box-shadow: 0 3px 0 var(--outline); }
.vt-site-in { display: grid; gap: 4px; align-content: start; }
.vt-site h3 { font-size: 19px; line-height: 1.2; color: var(--ink); }
.vt-delay { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.vt-delay svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.vt-plus { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.vt-state { font-size: 14px; font-weight: 800; color: var(--grass-dark, #2a8a37); min-height: 0; }
.vt-state:empty { display: none; }
.vt-go { grid-column: 1 / -1; justify-content: center; width: 100%; }
/* déjà voté (d'après ce navigateur) : carte atténuée, bouton secondaire */
.vt-site.done { opacity: .78; }
.vt-site.done .vt-num { background: var(--grass); color: #fff; }
.vt-site.done .vt-go, html[data-theme="dark"] .vt-site.done .vt-go { background: var(--surface); color: var(--ink) !important; }
html[data-theme="dark"] .vt-state { color: #7fe08a; }
.vt-hint { margin-top: 20px; text-align: center; color: var(--ink-3); font-size: 15px; }

/* --- ce que tu gagnes : 3 textes, bandeau de couleur en haut --- */
.vt-gains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vt-gain { --ac: var(--sky-4); display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--surface);
	border: 3px solid var(--outline); border-top: 10px solid var(--ac); border-radius: 22px; box-shadow: 0 5px 0 var(--outline); }
.vt-gain h3, .vt-top h2 { font-family: var(--font-display); font-weight: 400; color: var(--ink); }
.vt-gain h3 { font-size: 26px; line-height: 1.05; }
.vt-gain p, .vt-top p { color: var(--ink-2); font-size: 15.5px; font-weight: 600; }
.vt strong { color: var(--ink); font-weight: 800; }
.vt-small { font-size: 14px !important; color: var(--ink-3) !important; }

/* --- classement du mois --- */
.vt-top { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 30px 34px; border: 3px solid var(--outline); border-radius: 26px;
	box-shadow: 0 6px 0 var(--outline); background: linear-gradient(135deg, #ffe07a, var(--gold) 60%, #f5ab25); }
.vt-top h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 8px; }
.vt-top h2, .vt-top p, .vt-top strong, .vt-top .vt-small { color: #1b1740 !important; }
.vt-top code { background: rgba(255, 255, 255, .6); color: #1b1740; }
.vt-trophy { width: 110px; height: 110px; display: grid; place-items: center; background: var(--surface); border: 3px solid #1b1740; border-radius: 28px;
	box-shadow: 0 5px 0 #1b1740; transform: rotate(-6deg); }
.vt-trophy svg { width: 76px; height: 76px; shape-rendering: crispEdges; }

@media (max-width: 900px) {
	.vt-gains { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.vt-sites { grid-template-columns: 1fr; }
	.vt-top { grid-template-columns: 1fr; padding: 24px 20px; gap: 16px; }
	.vt-trophy { width: 80px; height: 80px; border-radius: 22px; }
	.vt-trophy svg { width: 56px; height: 56px; }
}
/* titre des sites un peu détaché du haut de page ; Serveurly (7e site, bonus) sur toute la largeur de la grille */
.vt-hero + .vt-sec { padding-top: 36px !important; }
@media (min-width: 640px) {
	.vt-sites { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 980px) { .vt-sites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* --- temps restant par pseudo (15/11) --- */
.vt-me { max-width: 560px; margin: -8px auto 28px; display: grid; gap: 8px; padding: 18px 20px; background: var(--surface);
	border: 3px solid var(--outline); border-radius: 20px; box-shadow: 0 5px 0 var(--outline); }
.vt-me label { font-weight: 800; color: var(--ink); font-size: 15.5px; }
.vt-me-row { display: flex; gap: 10px; }
.vt-me input { flex: 1; min-width: 0; padding: 11px 14px; font: 600 16px var(--font-body); color: var(--ink); background: var(--bg);
	border: 2px solid var(--outline); border-radius: 12px; }
.vt-me input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.vt-me .btn { flex: none; }
.vt-me-info { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.vt-me-info:empty { display: none; }
.vt-me-info button { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--sky-4); text-decoration: underline; cursor: pointer; }
html[data-theme="dark"] .vt-me-info button { color: #93c3ff; }
.vt-head-mini { margin-bottom: 18px; }
.vt-head-mini:has(.vt-count[hidden]) { display: none; }
.vt-state.ok { color: var(--grass-dark, #2a8a37); }
.vt-state.wait { color: var(--ruby-dark, #a8202f); }
html[data-theme="dark"] .vt-state.ok { color: #7fe08a; }
html[data-theme="dark"] .vt-state.wait { color: #ff9aa4; }
@media (max-width: 600px) { .vt-me { padding: 16px; } .vt-me .btn { padding-left: 16px; padding-right: 16px; } }

/* --- en-tête réduit (15/11, demande admin) --- */
.vt-hero { padding: 30px 0 40px; }
.vt-hero .eyebrow { margin-bottom: 10px; }
.vt-hero h1 { font-size: clamp(32px, 4.2vw, 46px); margin-bottom: 10px; }
.vt-hero .lede { font-size: 16px; padding: 8px 16px; max-width: 640px; }
.vt-hero .hero-actions { margin-top: 16px; }

/* --- SERVEURLY (15/11) : bloc « flamme », nuit chaude, braises qui montent, jauge de 20 flammes --- */
.vt-fl { grid-column: 1 / -1; position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto 1fr auto;
	grid-template-rows: auto; align-items: center; gap: 26px; padding: 28px 30px; color: #fff; border-color: #1b1740;
	background: radial-gradient(120% 140% at 8% 100%, #ff8a3d 0%, #e5394a 32%, #7a1f5c 62%, #2a1550 100%); box-shadow: 0 6px 0 #1b1740; }
.vt-fl:hover { box-shadow: 0 9px 0 #1b1740; }
.vt-fl::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
	background-image: linear-gradient(rgba(255, 255, 255, .18) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .18) 2px, transparent 2px);
	background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent 20%, #000 75%); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%); }
/* braises qui montent */
.vt-fl-embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.vt-fl-embers i { position: absolute; bottom: -10px; width: 6px; height: 6px; background: #ffc83d; box-shadow: 0 0 8px 2px rgba(255, 170, 60, .8); opacity: 0;
	animation: ember 5s linear infinite; }
.vt-fl-embers i:nth-child(1) { left: 6%; animation-delay: 0s; }
.vt-fl-embers i:nth-child(2) { left: 14%; animation-delay: 1.6s; width: 4px; height: 4px; }
.vt-fl-embers i:nth-child(3) { left: 23%; animation-delay: 3.1s; }
.vt-fl-embers i:nth-child(4) { left: 38%; animation-delay: .8s; width: 4px; height: 4px; }
.vt-fl-embers i:nth-child(5) { left: 55%; animation-delay: 2.4s; }
.vt-fl-embers i:nth-child(6) { left: 71%; animation-delay: 4s; width: 4px; height: 4px; }
.vt-fl-embers i:nth-child(7) { left: 84%; animation-delay: 1.2s; }
.vt-fl-embers i:nth-child(8) { left: 93%; animation-delay: 3.6s; width: 4px; height: 4px; }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 70% { opacity: .8; } 100% { transform: translate(18px, -260px); opacity: 0; } }
/* la flamme : tuile qui rougeoie, flamme qui vacille */
.vt-fl-icon { position: relative; width: 116px; height: 116px; display: grid; place-items: center; border-radius: 30px; background: rgba(27, 23, 64, .55);
	border: 3px solid #1b1740; box-shadow: 0 5px 0 #1b1740, inset 0 0 30px rgba(255, 138, 61, .45); transform: rotate(-5deg); }
.vt-fl-icon::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 200, 61, .65), transparent); filter: blur(6px);
	animation: glow 2.2s ease-in-out infinite; }
.vt-fl-icon svg { position: relative; width: 84px; height: 84px; shape-rendering: crispEdges; transform-origin: 50% 90%; animation: flick 1.6s steps(4) infinite;
	filter: drop-shadow(0 4px 0 rgba(27, 23, 64, .4)); }
@keyframes flick { 0%, 100% { transform: scale(1, 1); } 25% { transform: scale(1.04, .96); } 50% { transform: scale(.97, 1.05) skewX(-2deg); } 75% { transform: scale(1.02, .99) skewX(2deg); } }
@keyframes glow { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.vt-fl:hover .vt-fl-icon { transform: rotate(0) scale(1.05); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.vt-fl-body { display: grid; gap: 8px; min-width: 0; }
.vt-fl-kicker { justify-self: start; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #1b1740;
	background: #ffc83d; border: 2px solid #1b1740; border-radius: 999px; padding: 4px 11px; box-shadow: 0 2px 0 #1b1740; }
.vt-fl h3 { font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1; color: #fff;
	text-shadow: 0 4px 0 #1b1740, 2px 0 0 #1b1740, -2px 0 0 #1b1740, 0 -2px 0 #1b1740, 2px 2px 0 #1b1740, -2px 2px 0 #1b1740; }
.vt-fl-text { color: #ffe9dc; font-size: 15.5px; font-weight: 600; max-width: 60ch; }
.vt .vt-fl strong { color: #fff; }
/* jauge : 20 petites flammes, allumées selon les flammes du joueur */
.vt-fl-gauge { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.vt-fl-gauge span { width: 18px; height: 22px; background: rgba(27, 23, 64, .45); border: 2px solid rgba(27, 23, 64, .7);
	clip-path: polygon(50% 0, 78% 30%, 100% 62%, 86% 92%, 50% 100%, 14% 92%, 0 62%, 22% 30%); transition: background .4s ease; }
.vt-fl-gauge span.on { background: linear-gradient(180deg, #fff3b0, #ffc83d 45%, #ff8a3d); border-color: #1b1740; }
.vt-fl-gauge span:last-child { background: rgba(255, 200, 61, .25); }
.vt-fl-count { font-size: 14.5px; font-weight: 800; color: #fff; }
.vt-fl-side { display: grid; gap: 8px; justify-items: stretch; min-width: 230px; }
.vt-fl .vt-delay { color: #ffd9c4; justify-content: center; }
.vt-fl .vt-state { text-align: center; }
.vt-fl .vt-state.ok, html[data-theme="dark"] .vt-fl .vt-state.ok { color: #b9ffb4; }
.vt-fl .vt-state.wait, html[data-theme="dark"] .vt-fl .vt-state.wait { color: #ffe08a; }
.vt-fl-go, html[data-theme="dark"] .vt-fl-go { justify-content: center; color: #1b1740 !important; background: linear-gradient(180deg, #fff3b0, #ffc83d 50%, #ff9a3d) !important;
	border: 3px solid #1b1740; box-shadow: 0 4px 0 #1b1740; font-size: 16px; padding: 13px 18px; }
.vt-fl-go:hover { filter: brightness(1.06); }
.vt-site.vt-fl.done { opacity: 1; }
.vt-site.vt-fl.done .vt-fl-go, html[data-theme="dark"] .vt-site.vt-fl.done .vt-fl-go { background: rgba(255, 255, 255, .9) !important; color: #1b1740 !important; }
@media (max-width: 900px) {
	.vt-fl { grid-template-columns: auto 1fr; gap: 18px 20px; padding: 24px 22px; }
	.vt-fl-side { grid-column: 1 / -1; min-width: 0; }
	.vt-fl-icon { width: 92px; height: 92px; border-radius: 24px; align-self: start; }
	.vt-fl-icon svg { width: 66px; height: 66px; }
}
@media (max-width: 600px) {
	.vt-fl { grid-template-columns: 1fr; }
	.vt-fl-icon { width: 76px; height: 76px; border-radius: 20px; }
	.vt-fl-icon svg { width: 54px; height: 54px; }
	.vt-fl h3 { font-size: 32px; }
	.vt-hero { padding: 22px 0 30px; }
	.vt-fl-gauge { gap: 4px; }
	.vt-fl-gauge span { width: 11px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) { .vt-fl-embers, .vt-fl-icon::before { display: none; } .vt-fl-icon svg { animation: none; } }

/* --- ce que tu gagnes, version courte (15/11) : un gain par ligne avec son icône --- */
.vt-gain { gap: 6px; padding: 24px 24px 20px; }
.vt-when { font-size: 14px !important; font-weight: 800 !important; color: var(--ink-3) !important; margin-bottom: 8px; }
.vt-list { list-style: none; display: grid; gap: 4px; padding: 12px 0; border-top: 2px dashed color-mix(in srgb, var(--outline) 18%, transparent); border-bottom: 2px dashed color-mix(in srgb, var(--outline) 18%, transparent); }
html[data-theme="dark"] .vt-list { border-color: rgba(201, 211, 245, .16); }
.vt-list li { display: flex; align-items: center; gap: 12px; font-size: 16.5px; font-weight: 600; color: var(--ink-2); padding: 5px 0; }
.vt-list strong { font-family: var(--font-display); font-weight: 400; font-size: 21px; color: var(--ink); letter-spacing: .01em; }
.vt-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; }
.vt-ic svg { width: 26px; height: 26px; }
.vt-note { font-size: 13.5px !important; color: var(--ink-3) !important; margin-top: 8px; }
.vt-ic { width: 34px; height: 34px; border-radius: 10px; background: #f2f8ff; border: 2px solid #1b1740; box-shadow: 0 2px 0 #1b1740; }
.vt-ic svg { width: 24px; height: 24px; }

/* (15/11) icônes des gains = textures du jeu, en pixels nets, sans tuile */
.vt-ic { width: 34px; height: 34px; border: 0; box-shadow: none; background: none; border-radius: 0; }
.vt-ic img { width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(27, 23, 64, .25)); }

/* (15/11, demande admin) SERVEURLY sur le MÊME fond que les autres cartes, avec une touche chaude : bandeau orange en haut,
   halo doux derrière la flamme, braises discrètes. Les textes reprennent les couleurs du thème (clair et sombre). */
.vt-fl { color: var(--ink); background: var(--surface); border-color: var(--outline); border-top: 10px solid #ff8a3d; box-shadow: 0 6px 0 var(--outline); }
.vt-fl:hover { box-shadow: 0 9px 0 var(--outline); }
.vt-fl::before { opacity: 1; background: radial-gradient(60% 120% at 0% 100%, rgba(255, 138, 61, .16), transparent 70%), radial-gradient(40% 90% at 100% 0%, rgba(255, 200, 61, .12), transparent 70%);
	mask-image: none; -webkit-mask-image: none; }
.vt-fl-embers i { background: #ff9a3d; box-shadow: 0 0 6px 1px rgba(255, 138, 61, .55); }
.vt-fl-icon { background: linear-gradient(180deg, #ffb26b, #ff7a3d); border-color: var(--outline); box-shadow: 0 5px 0 var(--outline); }
.vt-fl-icon::before { background: radial-gradient(closest-side, rgba(255, 240, 180, .8), transparent); }
.vt-fl-kicker { color: #1b1740; background: #ffd27a; border-color: var(--outline); box-shadow: 0 2px 0 var(--outline); }
.vt-fl h3 { color: var(--ink); text-shadow: none; }
.vt-fl-text { color: var(--ink-2); }
.vt .vt-fl strong { color: var(--ink); }
.vt-fl-gauge span { background: color-mix(in srgb, var(--outline) 12%, var(--surface)); border-color: color-mix(in srgb, var(--outline) 35%, transparent); }
html[data-theme="dark"] .vt-fl-gauge span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.vt-fl-gauge span.on, html[data-theme="dark"] .vt-fl-gauge span.on { background: linear-gradient(180deg, #fff3b0, #ffc83d 45%, #ff8a3d); border-color: #1b1740; }
.vt-fl-gauge span:last-child { background: color-mix(in srgb, #ffc83d 30%, var(--surface)); }
.vt-fl-count { color: var(--ink); }
.vt-fl .vt-delay { color: var(--ink-3); }
.vt-fl .vt-state.ok { color: var(--grass-dark, #2a8a37); }
.vt-fl .vt-state.wait { color: var(--ruby-dark, #a8202f); }
html[data-theme="dark"] .vt-fl .vt-state.ok { color: #7fe08a; }
html[data-theme="dark"] .vt-fl .vt-state.wait { color: #ff9aa4; }
.vt-site.vt-fl.done .vt-fl-go, html[data-theme="dark"] .vt-site.vt-fl.done .vt-fl-go { background: var(--surface) !important; color: var(--ink) !important; }
