/* POLICE ECRITURE */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* FOND DE PAGE */

body{
  background:#050505;
  color:white;
}


/* ===============================
              TOP BAR
================================ */


.topbar{
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
  background:
    linear-gradient(
      135deg,
      rgba(0,0,0,0.95) 0%,
      rgba(25,18,5,0.9) 45%,
      rgba(0,0,0,0.95) 100%
    );
  box-shadow: 0 10px 40px rgba(0,0,0,.7);
}

.topbar-inner{
  max-width:1300px;
  margin:auto;
  padding:14px 28px;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
}

.nav{
  display:flex;
  gap:18px;
  justify-self:start;
}

.nav-item{
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  outline: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.nav-item:hover{
  color: #ffffff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

.nav-item:focus,
.nav-item:active{
  background: transparent;
  border-color: transparent;
  color: rgba(255,255,255,.65);
}

.brand{
  justify-self:center;
  text-align:center;
  font-weight:bold;
  letter-spacing:.25em;
  transform: translateX(-10px);
}


/* ===============================
                HERO
================================ */


.hero-holocube{
  height:100vh;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,.95)),
    url("../images/background.png") center/cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:radial-gradient(circle, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 100%);
}

.hero-content{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:22px;
  text-align:center;
}

.hero-logo{
  width:420px;
  max-width:90%;
  filter:drop-shadow(0 20px 40px rgba(0,0,0,.8));
}

.hero-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 46px;
  min-width: 160px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #7a3f00;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid #f7c45f;
  text-align: center;
  line-height: 1;
  margin-top: 6px;
  background: linear-gradient(to bottom, #ffd978 0%, #f7b84a 55%, #f1a933 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    0 6px 0 #c68c25,
    0 18px 36px rgba(0,0,0,.65);
}

.hero-btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -1px 0 rgba(0,0,0,.08),
    0 7px 0 #c9892b,
    0 24px 44px rgba(0,0,0,.65);
}

.hero-btn:active{
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 2px 0 #c68c25,
    0 10px 20px rgba(0,0,0,.6);
}

.hero-btn-wrap{ transform: none; }

.hero-ip{
  margin-top:10px;
  font-size:16px;
  letter-spacing:.32em;
  opacity:.7;
  text-align:center;
}


/* ===============================
      SERVER INFO SECTION
================================ */


.server-info-section{
  padding: 120px 24px 80px;
  background: #121212;
}


/* ===============================
      CONTENU VOTE
================================ */


.vote-content{
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ── Boutons de vote ── */

.vote-tabs{
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.vote-tab{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  border: 2px solid rgba(243,182,61,.2);
  border-radius: 14px;
  padding: 28px 36px;
  min-width: 200px;
  text-decoration: none;
  color: #ffffff;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.vote-tab:hover{
  background: #222;
  border-color: #f3b63d;
  transform: translateY(-4px);
}

.vote-tab-icon{
  font-size: 32px;
  line-height: 1;
}

.vote-tab-label{
  font-size: 16px;
  font-weight: 700;
  color: #f3b63d;
  letter-spacing: .05em;
}

.vote-tab-sub{
  font-size: 12px;
  color: rgba(255,255,255,.45);
  letter-spacing: .03em;
}


/* ── Texte intro ── */

.vote-intro{
  width: 100%;
  max-width: 700px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 60px;
  text-align: left;
}

.vote-intro h3{
  font-size: 18px;
  color: #f3b63d;
  margin-bottom: 14px;
  text-align: left;
}

.vote-intro p{
  font-size: 14px;
  line-height: 1.7;
  opacity: .85;
  margin-bottom: 10px;
}

.vote-intro p:last-child{ margin-bottom: 0; }

.vote-rewards-list {
  list-style: none;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vote-rewards-list li {
  font-size: 14px;
  opacity: .9;
  padding: 8px 12px;
  background: rgba(255,255,255,.04);
  border-radius: 6px;
  border-left: 3px solid #f3b63d;
}

.vote-reward-rank {
  font-weight: 700;
  margin-right: 8px;
}

/* ── Titre classement ── */

.classement-titre{
  font-size: 22px;
  color: #f3b63d;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: .08em;
}


/* ── Leaderboard ── */

.vote-leaderboard-wrap{
  width: 100%;
  max-width: 700px;
}

.lb-list{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lb-row{
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  overflow: hidden;
  transition: background .15s;
}

.lb-row:hover{ background: #212121; }

.lb-row.top1{ border-color: rgba(255,215,0,.35); }
.lb-row.top2{ border-color: rgba(192,192,192,.35); }
.lb-row.top3{ border-color: rgba(205,127,50,.35); }

.lb-bar{
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: rgba(243,182,61,.06);
  pointer-events: none;
  transition: width .5s ease;
}

.lb-rank{
  font-size: 13px;
  font-weight: 700;
  min-width: 52px;
  color: rgba(255,255,255,.7);
  flex-shrink: 0;
}

.lb-row.top1 .lb-rank{ color: #ffd700; }
.lb-row.top2 .lb-rank{ color: #c0c0c0; }
.lb-row.top3 .lb-rank{ color: #cd7f32; }

.lb-avatar{
  width: 28px;
  height: 28px;
  border-radius: 4px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.lb-name{
  flex: 1;
  font-size: 15px;
  color: #ffffff;
}

.lb-votes{
  font-size: 13px;
  font-weight: 600;
  color: #f3b63d;
  white-space: nowrap;
}

.lb-note{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-dot{
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf50;
  flex-shrink: 0;
  animation: blink 1.5s infinite;
}

@keyframes blink{
  0%,100%{ opacity:1 }
  50%{ opacity:.3 }
}


/* ── Date édition ── */

.vote-date{
  margin-top: 50px;
  text-align: center;
  font-size: 14px;
  opacity: .5;
}


/* ===============================
            FOOTER
================================ */


.site-footer{
  background:
    linear-gradient(
      135deg,
      rgba(0,0,0,0.98) 0%,
      rgba(30,20,5,0.95) 45%,
      rgba(0,0,0,0.98) 100%
    );
  color: #cfcfcf;
  padding: 80px 24px 30px;
  font-size: 14px;
}

.footer-inner{
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 60px;
  align-items: start;
}

.footer-brand img{
  width: 160px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.8));
}

.footer-col h4{
  font-size: 12px;
  letter-spacing: .18em;
  margin-bottom: 16px;
  color: #fff;
}

.footer-col a{
  display: block;
  color: #9f9f9f;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .15s ease;
}

.footer-col a:hover{ color: #f3b63d; }

/* ── Socials ── */

.footer-socials{
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 20px;
}

.footer-socials h4{
  font-size: 12px;
  letter-spacing: .18em;
  color: #fff;
  margin-bottom: 4px;
}

.footer-socials-icons{
  display: flex;
  gap: 18px;
}

.footer-socials a{
  color: inherit;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}

.footer-socials a svg{
  fill: #ffffff !important;
  transition: fill .15s ease, transform .15s ease;
}

.footer-socials a.footer-icon:hover svg{ fill: #5865F2 !important; transform: translateY(-2px); } /* Discord */
.footer-socials a.youtube:hover svg{ fill: #FF0000 !important; transform: translateY(-2px); } /* YouTube */
.footer-socials a.tiktok:hover svg{ fill: #ff2d78 !important; transform: translateY(-2px); } /* TikTok */
.footer-socials a.instagram:hover svg{ fill: #E1306C !important; transform: translateY(-2px); } /* Instagram */
.footer-socials a.twitter:hover svg{ fill: #1DA1F2 !important; transform: translateY(-2px); } /* Twitter */

.footer-socials a,
.footer-socials a:hover,
.footer-socials a:focus,
.footer-socials a:active{
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.footer-bottom{
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #8f8f8f;
}

.footer-bottom a,
.footer-bottom a:visited{
  color: #8f8f8f;
  text-decoration: none;
}

.footer-bottom a:hover{ color: #f3b63d; }


/* ===============================
        RESPONSIVE
================================ */


@media (max-width: 900px){
  .footer-inner{ grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px){

  html, body{ overflow-x: hidden; width: 100%; }

  .topbar{ position: relative; }

  .topbar-inner{
    max-width: 100%;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .brand{ order: -1; transform: none !important; margin-bottom: 6px; }
  .nav{ order: 0; justify-content: center; flex-wrap: wrap; gap: 10px; }

  .vote-tabs{ flex-direction: column; align-items: center; }
  .vote-tab{ width: 100%; max-width: 320px; }
}