
/* ----- RUST THEME BASE ----- */
:root {
  --text: #e7e7e7;
  --muted: #c7c7c7;
  --accent: #f04923;
  --accent-2: #ff6a3d;
  --blur: 2px;
}

* { box-sizing: border-box }
html, body { height: 100% }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* --- Video Background --- */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -2;
}

.bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.25));
}

/* Layout 3 colonnes */
.wrap {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr minmax(60px, 90px);
}

/* Logo haut-gauche */
.brand {
  position: absolute;
  left: 64px;
  top: 26px;
  user-select: none;
}
.brand a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.brand a:hover { color: #ff4444; cursor: pointer }
.brand .logo {
  width: 66px;
  height: 66px;
  border-radius: 50px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
}
.brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}
.brand .name {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 2px;
}

/* Menu gauche */
.menu { align-self: center; padding: 0 24px 0 38px }
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  outline: none;
}
.item .label {
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  transition: transform .08s ease, opacity .2s ease;
}
.item .bullet {
  width: 10px;
  height: 10px;
  border: 2px solid var(--muted);
  border-radius: 2px;
  opacity: .25;
  transition: all .12s ease;
}
.item:hover .label { transform: translateX(4px) }
.item:hover .bullet { opacity: .7; border-color: var(--accent) }
.item.active .label {
  color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.item.active .bullet {
  opacity: 1;
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.divider { height: 18px }

.hint { margin-top: 16px; color: #d4d4d4; opacity: .75; font-size: 13px }
.kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  background: rgba(0,0,0,.35);
  font-size: 12px;
}

/* Contenu (colonne centrale) */
.main {
  padding: 48px 48px 20px;
  max-width: 1020px;
  margin-left: auto;
}
.main h1 { margin: 0 0 16px; font-size: 38px }
.main h2 { margin: 32px 0 10px; font-size: 24px }
.main p, .main li { color: #eaeaea; line-height: 1.6 }
.main a { color: #fff; font-weight: 700; text-decoration: underline }

/* Colonne droite (icônes sociales) */
.sidebar {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  color: var(--text);
  opacity: .85;
  transition: transform .08s ease, opacity .2s ease, border-color .2s ease;
}
.icon-btn:hover {
  transform: translateY(-2px);
  opacity: 1;
  border-color: rgba(255,255,255,.14);
}

/* Responsive */
@media (max-width:980px) {
  .wrap { grid-template-columns: 1fr }
  .brand { left: 22px; top: 18px }
  .menu { padding: 90px 22px 22px }
  .item .label { font-size: 28px }
  .sidebar { position: fixed; right: 12px; top: 50%; transform: translateY(-50%) }
}
@media (max-width:520px) {
  .item .label { font-size: 24px }
  .icon-btn { width: 40px; height: 40px }
}

/* ---- Bloc flou (glassmorphism) ---- */
.glass-box {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  max-width: 600px;
}

/* ---- Community Section ---- */
.community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px;
  max-width: 2200px;
  margin: 0 auto 20px;
  background: rgba(0,0,0,0.55);
  border-radius: 15px;
}
.community-left { flex: 1; color: #fff }
.community-left h2 { font-size: 42px; margin: 10px auto }
.community-left p { color: #ccc; line-height: 1.6 }

.discord-count {
  display: block;
  background: rgba(71, 71, 71, 0.08);
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  margin: 0 auto 12px;
}
.discord-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 12px 20px;
  background: #fc4848;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.discord-btn:hover { background: #fdfeff }

.community-right {
  flex: 1;
  display: flex;
  justify-content: center;
}
.avatars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 600px;
}
.avatars img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #7289da;
}

.main h2:last-child,
.main p:last-child,
.main ul:last-child { margin-bottom: 0 }

@media (max-width:980px) {
  .community { flex-direction: column; text-align: center }
  .community-right { justify-content: center; margin-top: 20px }
}

/* Sticky Footer Layout */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.wrap {
  flex: 1; /* prend toute la place dispo avant le footer */
}

.site-footer {
  margin-top: auto; /* colle le footer en bas si contenu court */
}


.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: #bbb;
  font-size: 15px;
}

.footer-container p { margin: 5px 0 }
.footer-container .brand-name {
  color: #bbb;
  font-weight: 900;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #bbb;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover {
  color: #fff;
  transform: translateY(-3px);
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .footer-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---- Glass Grid ---- */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  transform: translateX(-300px); /* décale vers la gauche */
  
}


.glass-box {
  text-align: left;
  padding: 40px;
}

.main {
  display: flex;
  justify-content: center;   /* centre horizontalement */
  align-items: center;       /* centre verticalement */
  min-height: 100vh;         /* prend toute la hauteur de la fenêtre */
  padding: 40px;
}

/* --- Leaderboard Styling --- */
table.leaderboard {
  width: 100%;
  max-width: 1100px;
  border-collapse: collapse;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-family: Inter, sans-serif;
  border-radius: 10px;
  overflow: hidden;
  position: absolute;
  top: 230px;
  right: 255px;

}

.leaderboard th,
.leaderboard td {
  padding: 12px 16px;
  text-align: center;
}

.leaderboard thead {
  background-color: #111;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.leaderboard tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

.leaderboard tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.player-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.player-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #555;
}

.rank-1 td:first-child::before {
  content: "🥇 ";
}

.rank-2 td:first-child::before {
  content: "🥈 ";
}

.rank-3 td:first-child::before {
  content: "🥉 ";
}

/* Ajustements visuels supplémentaires */

.leaderboard td:first-child {
  padding-left: 16px; /* décale un peu le rang pour l'éloigner du bord */
}

.leaderboard td:nth-child(2) {
  text-align: left; /* aligne les pseudos à gauche */
}

.player-info img {
  margin-right: 8px; /* espace entre image et pseudo */
}

/* Barres verticales entre les colonnes (sauf la dernière) */
.leaderboard th:not(:last-child),
.leaderboard td:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Lignes horizontales entre chaque ligne */
.leaderboard tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Supprimer la dernière bordure si tu veux un look propre */
.leaderboard tbody tr:last-child {
  border-bottom: none;
}

/* ---- Giveaway Section ---- */
.giveaway-info {
  background: linear-gradient(120deg, rgba(240,73,35,0.85), rgba(255,106,61,0.75));
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  padding: 18px 22px 14px 22px;
  margin: 18px auto 22px auto;
  max-width: 1100px;
  width: 95%;
  text-align: left;
  border: 2px solid #f04923;
  height: min-content;
  min-height: unset;
}
.giveaway-info h2 {
  margin-top: 0;
  font-size: 1.4em;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.giveaway-info ul {
  margin: 10px 0 0 0;
  padding-left: 18px;
}
.giveaway-info li {
  margin-bottom: 6px;
  font-size: 0.98em;
  color: #fff;
}
.giveaway-info p {
  font-size: 1em;
  color: #fff;
  margin-bottom: 7px;
}
    
  #bg-video-1, #bg-video-2 {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 2s ease;
    }
