@font-face { font-family: 'Lilita One'; src: url('/fonts/lilita-one.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  --navy: #0a0d26; --navy-2: #131a42; --line: #2a3678;
  --violet: #b57bdd; --lavender: #d7b4f2; --text: #f4f6ff; --muted: #a3a9d6;
  --blue: #4453d6; --white: #ffffff; --red: #ffffff; --gold: #b57bdd; --green: #4453d6; --orange: #b57bdd;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; font: 16px/1.65 'Nunito', sans-serif; color: var(--text); background: var(--navy); }
h1, h2, h3, .logo, .btn, .dock a, .big { font-family: 'Lilita One', sans-serif; font-weight: 400; letter-spacing: .02em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

/* Menu latéral : fermé (icônes) puis ouvert au survol */
.dock {
  position: fixed; left: 1rem; top: 1rem; bottom: 1rem; z-index: 50; width: 80px;
  display: flex; flex-direction: column; padding: 10px; overflow: hidden auto; scrollbar-width: none;
  background: var(--navy-2); border: 2px solid var(--line); border-radius: 30px; box-shadow: 0 16px 40px rgba(0,0,0,.5);
  transition: width .38s cubic-bezier(.2,1,.3,1), box-shadow .3s; animation: dockin .7s cubic-bezier(.2,1.2,.4,1) both;
}
.dock::-webkit-scrollbar { display: none; }
.dock:hover, .dock:focus-within { width: 262px; box-shadow: 0 24px 60px rgba(0,0,0,.65); }
.dock .brand { display: flex; align-items: center; gap: .8rem; padding: .2rem 0 1rem; margin-bottom: 1rem; border-bottom: 2px solid var(--line); text-decoration: none; white-space: nowrap; }
.dock .brand img { width: 56px; height: 56px; flex: none; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.dock .brand:hover img { transform: rotate(-12deg) scale(1.1); }
.dock .brand .lbl { font: 400 1.4rem 'Lilita One', sans-serif; color: var(--white); }
.dock .grp { display: flex; flex-direction: column; gap: .35rem; }
.dock .bottom { margin-top: auto; padding-top: .8rem; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: .35rem; }
.dock .item { display: flex; align-items: center; width: 100%; height: 58px; flex: none; border: 0; border-radius: 20px; background: none; color: var(--muted); text-decoration: none; cursor: pointer; white-space: nowrap; font: 400 1.15rem 'Lilita One', sans-serif; letter-spacing: .02em; transition: background .2s, color .2s; }
.dock .item svg { width: 30px; height: 30px; margin: 0 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.dock .item:hover { background: var(--line); color: var(--white); }
.dock .item:hover svg { transform: scale(1.18) rotate(-6deg); }
.dock .item.active { background: var(--violet); color: var(--navy); }
.dock .lbl { opacity: 0; transition: opacity .15s; }
.dock:hover .lbl, .dock:focus-within .lbl { opacity: 1; transition-delay: .12s; }
.dock .sec { position: relative; height: 26px; margin: .5rem 0 .1rem; font: 800 .72rem 'Nunito', sans-serif; letter-spacing: .18em; color: var(--muted); display: flex; align-items: center; padding-left: 1rem; white-space: nowrap; }
.dock .sec::before { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--line); transition: opacity .2s; }
.dock .sec span { opacity: 0; transition: opacity .15s; }
.dock:hover .sec::before, .dock:focus-within .sec::before { opacity: 0; }
.dock:hover .sec span, .dock:focus-within .sec span { opacity: 1; transition-delay: .12s; }
@keyframes dockin { from { transform: translateX(-150%); opacity: 0; } }

main, footer { padding-left: 8.5rem; padding-right: 1.5rem; }
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding-top: 2.5rem; padding-bottom: 2rem; }

h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: 1.02; color: var(--white); }
h2 { font-size: 1.8rem; color: var(--text); margin-bottom: 1rem; display: flex; align-items: center; gap: .7rem; }
h2::before { content: ''; width: 8px; height: 1.6rem; background: linear-gradient(var(--violet), var(--blue)); border-radius: 4px; }
h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 1.25rem 0 1.75rem; }
.muted { color: var(--muted); }
section { margin-top: 3.2rem; }
.hero { margin-top: 1rem; }
.pill { display: inline-block; padding: .2rem 1rem; border-radius: 99px; font-weight: 800; font-size: .9rem; background: rgba(181,123,221,.16); border: 2px solid var(--violet); color: var(--lavender); margin-bottom: 1rem; }

.card { background: var(--navy-2); border: 2px solid var(--line); border-radius: 18px; padding: 1.1rem 1.3rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.card.accent { border-bottom: 6px solid var(--violet); }
.card.accent.g { border-bottom-color: var(--blue); } .card.accent.o { border-bottom-color: var(--lavender); } .card.accent.b { border-bottom-color: var(--white); }
.card p { color: var(--muted); }
.card h3 { margin-bottom: .1rem; }
.big { font-size: clamp(1.7rem, 2.3vw, 2.1rem); white-space: nowrap; line-height: 1.15; margin-bottom: .1rem; color: var(--lavender); }
.g .big { color: var(--blue); } .o .big { color: var(--lavender); } .b .big { color: var(--white); }

.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .75rem 1.5rem; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; font-size: 1.05rem; color: var(--navy); background: var(--violet); box-shadow: 0 4px 0 #7d4ba3; transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #7d4ba3; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #7d4ba3; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--violet); transform: none; }
.btn.blue { background: var(--white); box-shadow: 0 4px 0 #9aa3d8; } .btn.blue:hover { box-shadow: 0 6px 0 #9aa3d8; }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* IP */
.ip .row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .45rem .8rem; margin-top: .55rem; background: var(--navy); border: 2px solid var(--line); border-radius: 12px; }
.ip code { font: 800 1.05rem 'Nunito', monospace; color: var(--lavender); overflow-wrap: anywhere; }
.ip small { color: var(--muted); display: block; font-weight: 600; }
.copy { cursor: pointer; border: 0; border-radius: 9px; padding: .35rem .8rem; font: 800 .85rem 'Nunito', sans-serif; color: var(--text); background: var(--line); }
.copy:hover { background: var(--violet); color: var(--navy); }

.discord { text-align: center; padding: 2.5rem 1.5rem; border: 2px solid var(--line); border-radius: 22px; background: var(--navy-2); }
.discord h2 { justify-content: center; } .discord h2::before { display: none; }
.discord p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.5rem; }

/* Vote */
.vote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.5rem; align-items: start; margin-top: 2rem; }
.field { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1rem 0; }
.field input { flex: 1; min-width: 180px; padding: .75rem .9rem; font: inherit; color: var(--text); background: var(--navy); border: 2px solid var(--line); border-radius: 12px; }
.field input:focus { border-color: var(--violet); outline: none; }
.err { color: var(--red); font-weight: 800; min-height: 1.5rem; }
.vlinks { display: grid; gap: .9rem; margin-top: 1rem; }
.vlinks[hidden] { display: none; }
.vlink { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; text-decoration: none; background: var(--navy); border: 2px solid var(--line); border-left: 8px solid var(--c); border-radius: 14px; transition: transform .12s, border-color .12s; }
.vlink:hover { transform: translateX(4px); border-color: var(--c); }
.vlink b { font: 400 1.25rem 'Lilita One', sans-serif; display: block; }
.vlink span { color: var(--muted); font-size: .9rem; }
.vlink svg { width: 22px; height: 22px; stroke: var(--c); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.who { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; color: var(--violet); font: 800 .9rem 'Nunito', sans-serif; cursor: pointer; text-decoration: underline; }

.tabs { display: flex; gap: .4rem; margin-bottom: 1rem; }
.tab { border: 0; cursor: pointer; padding: .35rem 1rem; border-radius: 99px; font: 800 .9rem 'Nunito', sans-serif; color: var(--muted); background: var(--navy); }
.tab[aria-pressed="true"] { background: var(--violet); color: var(--navy); }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: .6rem; }
.slot { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; flex: 1; }
.slot canvas { max-width: 100%; height: auto; }
.slot .nick { font: 400 1.15rem 'Lilita One', sans-serif; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .votes { font-weight: 800; color: var(--muted); font-size: .9rem; }
.slot .place { padding: 0 .8rem; border-radius: 99px; font: 400 .95rem 'Lilita One', sans-serif; color: var(--navy); margin-bottom: .2rem; }
.p1 .place { background: var(--white); } .p2 .place { background: var(--blue); } .p3 .place { background: var(--violet); }
.p1 .nick { color: var(--white); }
.empty { color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 1.5rem; background: var(--navy-2); border: 2px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); }
th { color: var(--lavender); font: 400 1rem 'Lilita One', sans-serif; }
tr:last-child td { border-bottom: 0; }
td.rank { font: 400 1.1rem 'Lilita One', sans-serif; width: 4rem; }
tr.r1 td.rank { color: var(--white); } tr.r2 td.rank { color: var(--blue); } tr.r3 td.rank { color: var(--violet); }

/* Maintenance */
.maint { text-align: center; padding: 4rem 1.5rem; max-width: 640px; margin: 3rem auto 0; }
.maint svg { width: 80px; height: 80px; stroke: var(--violet); animation: wob 2.6s ease-in-out infinite; transform-origin: 30% 75%; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.maint h1 { font-size: 3rem; margin: 1rem 0 .5rem; } .maint p { color: var(--muted); margin-bottom: 1.5rem; }

/* Pages légales */
.legal { max-width: 800px; }
.legal h1 { font-size: 3rem; margin-bottom: .5rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; } .legal h2::before { height: 1.1rem; width: 6px; }
.legal p, .legal li { color: #cfcde6; margin-bottom: .7rem; } .legal ul { padding-left: 1.3rem; }
.legal a { color: var(--violet); }
.legal h1 { color: var(--white); }
.legal table { margin: .8rem 0; } .legal .table-wrap { margin: 1rem 0; }
.todo { background: var(--violet); color: var(--navy); padding: 0 .35rem; border-radius: 4px; font-weight: 800; }

footer { padding-top: 2rem; padding-bottom: 2rem; text-align: center; color: var(--muted); font-size: .9rem; }
footer a { margin: 0 .6rem; }
footer p + p { margin-top: .4rem; font-size: .8rem; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 99; background: var(--violet); color: var(--navy); padding: .6rem 1.2rem; border-radius: 12px; font-weight: 800; transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 900px) { .vote-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  main, footer { padding-left: 1.1rem; padding-right: 1.1rem; }
  footer { padding-bottom: 6rem; } main { padding-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Animations ---------- */
@keyframes dockin-m { from { transform: translate(-50%, 160%); opacity: 0; } }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } }
@keyframes drop { 0% { transform: translateY(-1.2em) rotate(-8deg); opacity: 0; } 60% { transform: translateY(.12em) rotate(2deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes float { to { transform: translateY(-120vh) rotate(160deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.92); } }
@keyframes wob { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes slidein { from { opacity: 0; transform: translateX(-24px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
main { animation: fadein .6s ease both; position: relative; z-index: 1; }
footer { position: relative; z-index: 1; }
.bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg span { position: absolute; bottom: -60px; border-radius: 6px; animation: float linear infinite; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,1,.3,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.card { transition: transform .25s cubic-bezier(.3,1.4,.5,1), border-color .2s, box-shadow .25s; }
.cards .card:hover { transform: translateY(-8px); border-color: var(--violet); box-shadow: 0 16px 30px rgba(0,0,0,.35); }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-130%); }
.btn:hover::after { transform: translateX(130%); transition: transform .6s; }
.pill { animation: bob 3.2s ease-in-out infinite; }
.slot { animation: rise .8s cubic-bezier(.2,1.2,.4,1) both; } .slot.p1 { animation-delay: .1s; } .slot.p2 { animation-delay: .3s; } .slot.p3 { animation-delay: .45s; }
.vlink { animation: slidein .5s cubic-bezier(.2,1.2,.4,1) both; } .vlink:nth-child(2) { animation-delay: .1s; } .vlink:nth-child(3) { animation-delay: .2s; }
.copy.done { background: var(--blue); color: var(--navy); }
.maint h1, .maint .code { animation: bob 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .bg { display: none; } .reveal { opacity: 1; transform: none; } *, *::before, *::after { animation: none !important; } }

@media (max-width: 760px) {
  .dock { top: auto; right: auto; bottom: .8rem; left: 50%; width: auto; height: auto; flex-direction: row; padding: 6px; border-radius: 26px; transform: translateX(-50%); animation-name: dockin-m; overflow: visible; }
  .dock:hover, .dock:focus-within { width: auto; }
  .dock .brand, .dock .sec { display: none; }
  .dock .grp, .dock .bottom { flex-direction: row; margin: 0; padding: 0; border: 0; gap: .1rem; }
  .dock .item { flex-direction: column; justify-content: center; width: 58px; height: 60px; gap: .05rem; font-size: .68rem; border-radius: 18px; }
  .dock .item svg { margin: 0; width: 24px; height: 24px; }
  .dock .lbl { opacity: 1; }
  main, footer { padding-left: 1.1rem; }
}

/* ================= Accueil : héros + cercle qui tourne ================= */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: center; min-height: calc(100vh - 6.5rem); margin-top: 0; }
.orbit { position: relative; width: min(470px, 100%); aspect-ratio: 1; margin: 0 auto; }
.orbit .path { position: absolute; inset: 4%; border-radius: 50%; border: 2px dashed rgba(181,123,221,.5); }
.orbit .disc { position: absolute; inset: 17%; border-radius: 50%; background: var(--navy-2); border: 2px solid var(--line); display: grid; place-items: center; }
.orbit .disc img { width: 48%; animation: bob 4s ease-in-out infinite; }
.orbit .ring { position: absolute; inset: 0; animation: spin 50s linear infinite; }
.orbit .slot { position: absolute; inset: 0; transform: rotate(var(--a)); }
.chip { position: absolute; left: 50%; top: 4%; padding: .4rem 1.15rem; border-radius: 99px; white-space: nowrap; font: 400 1.3rem 'Lilita One', sans-serif; transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); animation: unspin 50s linear infinite; }
.c1 { background: var(--violet); color: var(--navy); } .c2 { background: var(--white); color: var(--navy); }
.c3 { background: var(--navy-2); border: 2px solid var(--violet); color: var(--white); } .c4 { background: var(--navy-2); border: 2px solid var(--white); color: var(--white); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unspin { from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); } to { transform: translate(-50%, -50%) rotate(calc(-360deg - var(--a))); } }

/* IP : compact */
.ipcard { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; padding: .9rem 1.5rem 1rem; }
.ipcol h3 { margin-bottom: .1rem; }
.irow { display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center; gap: .6rem; padding: .4rem 0; border-top: 1px solid var(--line); }
.irow span { color: var(--muted); font-size: .9rem; }
.irow code { font: 800 1.05rem 'Nunito', sans-serif; color: var(--white); overflow-wrap: anywhere; }

/* Footer */
.foot { margin-top: 5rem; padding: 0; text-align: left; background: var(--navy-2); border-top: 3px solid var(--violet); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 2.8rem 1.5rem 2.2rem 8.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.foot-brand { display: flex; align-items: flex-start; gap: 1rem; }
.foot-brand img { width: 52px; height: 52px; }
.foot-brand b { font: 400 1.5rem 'Lilita One', sans-serif; color: var(--white); }
.foot-brand p { color: var(--muted); max-width: 32ch; margin-top: .2rem; }
.foot-col { display: flex; flex-direction: column; gap: .45rem; }
.foot-col h4 { font: 400 1.15rem 'Lilita One', sans-serif; color: var(--violet); margin-bottom: .3rem; }
.foot-col a { margin: 0; color: var(--text); text-decoration: none; width: fit-content; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.foot-col a:hover { color: var(--violet); border-color: var(--violet); }
.foot-bar { border-top: 2px solid var(--line); padding: 1rem 1.5rem 1rem 8.5rem; text-align: center; color: var(--muted); font-size: .85rem; background: var(--navy); }

/* Vote vérifié */
.vrows { display: grid; gap: .8rem; margin-top: 1rem; } .vrows[hidden] { display: none; }
.vrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.1rem; background: var(--navy); border: 2px solid var(--line); border-left: 8px solid var(--c, var(--violet)); border-radius: 14px; animation: slidein .5s cubic-bezier(.2,1.2,.4,1) both; }
.vrow:nth-child(2) { animation-delay: .1s; } .vrow:nth-child(3) { animation-delay: .2s; }
.vrow.ok { border-color: var(--violet); }
.vinfo b { display: block; font: 400 1.2rem 'Lilita One', sans-serif; }
.vstat { color: var(--muted); font-size: .88rem; display: block; min-height: 1.3rem; }
.vrow.ok .vstat { color: var(--lavender); font-weight: 800; }
.vbtns { display: flex; gap: .5rem; }
.btn.small { padding: .45rem 1rem; font-size: .95rem; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; min-height: 0; } .orbit { width: min(340px, 90%); } .ipcard { grid-template-columns: 1fr; } .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .foot-in, .foot-bar { padding-left: 1.1rem; padding-right: 1.1rem; } .foot-bar { padding-bottom: 6rem; } .foot { margin-top: 3rem; } }
@media (prefers-reduced-motion: reduce) { .chip { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))) !important; } }

/* Lignes de vote (texte à gauche, bouton carré à droite) */
.vrow { gap: 1rem; padding: .85rem .85rem .85rem 1.2rem; border: 2px solid var(--line); border-left: 2px solid var(--line); border-radius: 18px; flex-wrap: nowrap; }
.vrow:hover { border-color: var(--violet); }
.vt { font-size: 1.05rem; }
.vt b { display: inline; font: 400 1.25rem 'Lilita One', sans-serif; }
.dur { color: var(--muted); font-weight: 800; }
.vstat { margin-top: .1rem; font-weight: 800; }
.vstat.idle { background: linear-gradient(90deg, var(--violet), var(--white)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vstat.wait { color: var(--muted); font-weight: 600; }
.vinfo .linkbtn { display: block; margin-top: .2rem; padding: 0; }
.vbtn { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--violet); color: var(--navy); box-shadow: 0 4px 0 #7d4ba3; transition: transform .12s, box-shadow .12s; }
.vbtn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.vbtn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #7d4ba3; } .vbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #7d4ba3; }
.vbtn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.noskin { display: grid; place-items: center; text-align: center; padding: .5rem; margin: auto; color: var(--muted); font-weight: 800; font-size: .85rem; border: 2px dashed var(--line); border-radius: 14px; }
.vinfo .linkbtn[hidden] { display: none; }

/* ================= Corrections v7 ================= */
/* Cartes de statut : trait du bas et valeurs TOUJOURS violets */
.card.accent, .card.accent.g, .card.accent.b, .card.accent.o { border-bottom-color: var(--violet); }
.big, .g .big, .b .big, .o .big { color: var(--violet); }
.stat h3 { font: 400 1.05rem 'Lilita One', sans-serif; color: var(--white); margin-bottom: .15rem; }
.big small { font: 800 .95rem 'Nunito', sans-serif; color: var(--muted); margin-left: .4rem; }
.stat .sub { color: var(--violet); font-weight: 800; }

/* Cercle -> ellipse inclinée */
.orbit { width: min(540px, 100%); aspect-ratio: 1.6; }
.orbit .path { position: absolute; left: 50%; top: 50%; width: 90%; aspect-ratio: 90 / 42; transform: translate(-50%, -50%) rotate(-20deg); border: 2px dashed rgba(181,123,221,.55); border-radius: 50%; }
.orbit .logo-c { position: absolute; left: 50%; top: 50%; width: 27%; transform: translate(-50%, -50%); z-index: 2; }
.orbit .logo-c img { width: 100%; display: block; animation: bob 4s ease-in-out infinite; border-radius: 22%; box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.orbit .chip { left: 50%; top: 50%; animation: none; will-change: transform; }

/* Points forts : boucliers */
.shields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.4rem; }
.shield { position: relative; aspect-ratio: 5 / 5.3; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.7rem 1.5rem 3.4rem; transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.shield:hover { transform: translateY(-8px) rotate(-1.5deg); }
.shield .bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.shield .bg path { fill: var(--navy-2); stroke: var(--violet); stroke-width: 3; vector-effect: non-scaling-stroke; transition: fill .25s; }
.shield:hover .bg path { fill: #1a2358; }
.shield > :not(.bg) { position: relative; z-index: 1; }
.shield .ico { width: 54px; height: 54px; margin: .1rem 0 .55rem; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shield h3 { font-size: 1.4rem; color: var(--white); margin-bottom: .2rem; }
.shield p { color: var(--lavender); font-size: .92rem; line-height: 1.4; max-width: 17ch; }

/* Section Discord */
.dcard { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; padding: 2rem 2.2rem; background: var(--navy-2); border: 2px solid var(--line); border-bottom: 6px solid var(--violet); border-radius: 22px; }
.dcard h2 { margin-bottom: .6rem; } .dcard p { color: var(--muted); max-width: 46ch; margin-bottom: 1.2rem; }
.dc-stats { display: flex; gap: 2rem; margin-bottom: 1.4rem; }
.dc-stats b { display: block; font: 400 2.2rem/1.1 'Lilita One', sans-serif; color: var(--violet); }
.dc-stats span { color: var(--white); font-weight: 800; }
.dc-list { list-style: none; display: grid; gap: .8rem; }
.dc-list li { display: flex; gap: 1rem; align-items: center; padding: .8rem 1rem; background: var(--navy); border: 2px solid var(--line); border-radius: 16px; transition: border-color .2s, transform .2s; }
.dc-list li:hover { border-color: var(--violet); transform: translateX(6px); }
.dc-list svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: var(--violet); stroke: var(--navy); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box; width: 22px; height: 22px; }
.dc-list b { display: block; font: 400 1.1rem 'Lilita One', sans-serif; color: var(--white); }
.dc-list span { color: var(--lavender); font-size: .9rem; }

/* Lignes de vote : badge-anneau + bouton pilule (remplace l'ancien style) */
.vrow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .8rem 1rem; background: var(--navy); border: 2px solid var(--line); border-radius: 22px; }
.vrow:hover { border-color: var(--violet); }
.vring { position: relative; width: 52px; height: 52px; flex: none; }
.vring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vring circle { fill: none; stroke-width: 4; }
.vring .trk { stroke: var(--line); }
.vring .bar { stroke: var(--violet); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset .9s linear; }
.vring i { position: absolute; inset: 0; display: grid; place-items: center; font: 400 1.15rem 'Lilita One', sans-serif; font-style: normal; color: var(--white); }
.vmid b { display: block; font: 400 1.2rem/1.2 'Lilita One', sans-serif; }
.vmid .vstat { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .88rem; }
.vmid .vstat::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.vmid .vstat.idle { background: none; color: var(--lavender); } .vmid .vstat.idle::before { background: var(--violet); box-shadow: 0 0 0 4px rgba(181,123,221,.25); }
.vmid .vstat.ok { color: var(--white); } .vmid .vstat.ok::before { background: var(--white); }
.vmid .vstat.wait { color: var(--muted); }
.vmid .linkbtn { display: block; margin-top: .15rem; padding: 0; }
.vmid .linkbtn[hidden] { display: none; }
.vgo { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: 99px; background: var(--violet); color: var(--navy); text-decoration: none; font: 400 1.05rem 'Lilita One', sans-serif; box-shadow: 0 4px 0 #7d4ba3; transition: transform .12s, box-shadow .12s; }
.vgo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vgo:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #7d4ba3; } .vgo:active { transform: translateY(3px); box-shadow: 0 1px 0 #7d4ba3; }
.vgo[aria-disabled="true"] { opacity: .35; pointer-events: none; }
@media (max-width: 480px) { .vrow { grid-template-columns: auto 1fr; } .vgo { grid-column: 1 / -1; justify-content: center; } }

/* Règlement */
.rnav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.rnav a { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem .35rem .4rem; border-radius: 99px; background: var(--navy-2); border: 2px solid var(--line); text-decoration: none; font-weight: 800; font-size: .9rem; transition: border-color .15s, background .15s; }
.rnav a:hover { border-color: var(--violet); background: var(--navy); }
.rnav b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--violet); color: var(--navy); font: 400 .9rem 'Lilita One', sans-serif; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.rule { scroll-margin-top: 1.5rem; padding: 1.3rem 1.5rem 1.4rem; }
.rule.wide { grid-column: 1 / -1; }
.rule header { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.rule header .no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--violet); color: var(--navy); font: 400 1.4rem 'Lilita One', sans-serif; flex: none; }
.rule h2 { margin: 0; font-size: 1.35rem; } .rule h2::before { display: none; }
.rule header svg { margin-left: auto; width: 28px; height: 28px; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.rule ul { list-style: none; display: grid; gap: .65rem; }
.rule li { position: relative; padding-left: 1.3rem; color: #dfe3ff; line-height: 1.55; }
.rule li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--violet); transform: rotate(45deg); }
.rule p.note { margin-top: 1rem; color: var(--lavender); font-weight: 600; }
.rule .intro { margin-bottom: 1rem; color: #dfe3ff; }
.mods { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mods > div { padding: 1rem 1.2rem; border-radius: 16px; background: var(--navy); border: 2px solid var(--line); }
.mods h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; margin-bottom: .6rem; }
.mods h3 svg { width: 22px; height: 22px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mods .ok h3 svg { stroke: var(--violet); } .mods .no h3 svg { stroke: var(--white); }
.mods .ok { border-color: var(--violet); }
.mods li::before { background: transparent; border: 2px solid var(--violet); }
.mods .no li::before { border-color: var(--white); }
.reminder { grid-column: 1 / -1; display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.4rem 1.6rem; background: var(--navy-2); border: 2px solid var(--violet); border-left-width: 10px; border-radius: 18px; }
.reminder svg { flex: none; width: 38px; height: 38px; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reminder h2 { margin: 0 0 .4rem; } .reminder h2::before { display: none; }
.reminder p { color: #dfe3ff; max-width: none; } .reminder p + p { margin-top: .6rem; }
@media (max-width: 900px) { .dcard { grid-template-columns: 1fr; } .rules, .mods { grid-template-columns: 1fr; } }

.vmid .vstat { align-items: flex-start; line-height: 1.35; }
.vmid .vstat::before { margin-top: .45em; }

/* Pages légales : sous-titres, code, tableaux */
.legal h3 { font-size: 1.15rem; color: var(--violet); margin: 1.6rem 0 .4rem; }
.legal code { background: var(--navy-2); border: 1px solid var(--line); padding: 0 .4rem; border-radius: 6px; font-size: .92em; color: var(--lavender); }
.legal b { color: var(--white); }
.legal .table-wrap td { color: #dfe3ff; font-size: .95rem; vertical-align: top; }
.legal .table-wrap table { min-width: 640px; }
.legal li > code, .legal li > b { }
