:root {
    --bs-font-sans-serif: 'Rubik', sans-serif;
}

[data-bs-theme=dark] {
    --bs-body-bg: #2e2c47;
    --bs-body-bg-rgb: 46, 44, 71;
    --bs-primary-color-contrast: #2e2c47 !important;
}

body {
    background: #d1d0d6;
}

h1 {
    color: #2e2c47;
    background-color: var(--bs-primary);
    text-align: center;
    padding: 1rem 0;
    font-weight: 700;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
}

.btn {
    font-weight: bold;
}

.content {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.home {
    min-height: 100vh;
    padding-bottom: 7rem;
}

.home .navbar {
    margin-bottom: 5rem;
}

.home::after {
    position: absolute;
    z-index: 0;
    bottom: -1px;
    height: 240px;
    left: 0;
    right: 0;
    content: "";
    background: url(../svg/header_shape.svg) center / cover no-repeat;
}

.top-header,
.home {
    position: relative;
}

.top-header .logo {
    max-height: 100px;
}

.home .logo {
    max-height: 175px;
}

.home::before,
.top-header::after {
    position: absolute;
    background-color: rgba(46, 44, 71, 0.7);
    content: "";
    z-index: 0;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.navbar .nav-item {
    margin-right: 0.25rem;
    margin-left: 0.25rem;
}

.navbar .nav-item .nav-link {
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
}

.navbar .nav-item .nav-link:hover,
.navbar .nav-item .nav-link.active,
.navbar .dropdown-toggle::after {
    color: var(--bs-primary);
}

.footer {
    position: relative;
    margin-top: 350px;
}

.home-footer {
    background-color: #34324b !important;
}

.footer .logo {
    max-height: 200px;
}

.footer .text-bg-primary a {
    color: #2e2c47;
}

.footer-links .list-inline-item:not(:last-child)::after {
    margin-left: 0.5rem;
    font-weight: bolder;
    content: "-";
}

.footer::before {
    position: absolute;
    z-index: -1;
    height: 280px;
    top: -275px;
    left: 0;
    right: 0;
    content: "";
    background: url('../svg/footer_shape.svg') center / cover no-repeat;
}

/* --- VOTE PAGE MODERN STYLES --- */
.vote-hero {
    background: linear-gradient(90deg, #ffde59 0%, #ffa726 100%);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(255, 222, 89, 0.18), 0 2px 12px rgba(46,44,71,0.10);
    padding: 2.5rem 1rem 2.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: visible;
}
.vote-hero-content {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    justify-content: center;
}
.vote-hero-icon img {
    width: 64px;
    height: 64px;
}
.vote-hero-star {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    color: #fff;
    background: linear-gradient(120deg, #ffde59 60%, #ffa726 100%);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    box-shadow: 0 4px 16px rgba(255,222,89,0.18);
    margin-right: 0.5rem;
}
.vote-hero-star i {
    color: #ff9800;
    text-shadow: 0 2px 8px #fff7;
}
.vote-hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #2e2c47;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 12px #fff7, 0 1px 0 #ffde59;
    text-transform: uppercase;
    display: block;
    text-align: center;
    line-height: 1.2;
}
@media (max-width: 600px) {
    .vote-hero-title {
        font-size: 1.2rem;
    }
    .vote-hero-star {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
    .vote-hero-content {
        gap: 1rem;
    }
}
.vote-hero-text h1 {
    color: #2e2c47;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px #fff7;
}

.vote-sites .vote-site-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #2e2c47;
    color: #fff;
    border-radius: 18px;
    padding: 1.5rem 1rem;
    box-shadow: 0 2px 12px rgba(46,44,71,0.10);
    transition: transform 0.15s, box-shadow 0.15s;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    width: 100%;
    min-height: 180px;
}
.vote-sites .vote-site-btn:hover {
    background: #ffde59;
    color: #2e2c47;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 6px 24px rgba(255,222,89,0.18);
}
.vote-site-img img {
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ffde59;
    width: 60px;
    height: 60px;
}
.vote-site-label {
    font-weight: bold;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}
.vote-site-desc {
    font-size: 0.95rem;
    color: #ffde59;
}

.vote-section-title {
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2e2c47 !important;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #fff3;
}

.vote-podium-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.vote-podium-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(46,44,71,0.10);
    padding: 1.5rem 1rem;
    min-width: 180px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #2e2c47 !important;
}
.podium-1 {
    border: 3px solid #ffde59;
    background: linear-gradient(90deg, #ffde59 0%, #fffbe7 100%) !important;
}
.podium-2 {
    border: 3px solid #bdbdbd;
    background: linear-gradient(90deg, #bdbdbd 0%, #f5f5f5 100%) !important;
}
.podium-3 {
    border: 3px solid #ff9800;
    background: linear-gradient(90deg, #ff9800 0%, #fff3e0 100%) !important;
}
.vote-podium-rank {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #2e2c47 !important;
}
.vote-podium-avatar img {
    border-radius: 50%;
    border: 2px solid #2e2c47;
    margin-bottom: 0.5rem;
}
.vote-podium-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #2e2c47 !important;
}
.vote-podium-votes {
    font-size: 1rem;
    color: #2e2c47 !important;
    margin-bottom: 0.2rem;
}
.vote-podium-reward {
    font-size: 1.1rem;
    color: #ff9800 !important;
    font-weight: 700;
}

.vote-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
.vote-ranking-item {
    background: #f5f5f5 !important;
    border-radius: 12px;
    padding: 0.7rem 1.2rem;
    min-width: 320px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    box-shadow: 0 1px 4px rgba(46,44,71,0.06);
    color: #2e2c47 !important;
    font-weight: 600;
}
.vote-ranking-item .vote-ranking-rank {
    font-weight: bold;
    font-size: 1.2rem;
    width: 2.2rem;
    text-align: center;
    color: #2e2c47 !important;
}
.vote-ranking-avatar img {
    border-radius: 50%;
    border: 2px solid #2e2c47;
    width: 32px;
    height: 32px;
}
.vote-ranking-name {
    flex: 1;
    font-weight: 600;
    color: #2e2c47 !important;
}
.vote-ranking-votes {
    color: #2e2c47 !important;
    font-weight: 500;
}
.vote-ranking-reward {
    color: #2196f3 !important;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Color for top 6 ranks */
.rank-4 { background: #e3f2fd !important; color: #2e2c47 !important; }
.rank-5 { background: #e1bee7 !important; color: #2e2c47 !important; }
.rank-6 { background: #ffe0b2 !important; color: #2e2c47 !important; }

.vote-rewards-table th, .vote-rewards-table td {
    vertical-align: middle;
    font-size: 1.1rem;
    color: #2e2c47 !important;
}
.vote-rewards-table img {
    border-radius: 8px;
    margin-right: 0.5rem;
}
.vote-rewards .card-title {
    color: #2e2c47 !important;
    font-weight: 700;
    font-size: 1.3rem;
}

.vote-site-btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #ffde59 0%, #ffa726 100%);
    color: #2e2c47;
    border-radius: 18px;
    padding: 1.1rem 0.5rem;
    box-shadow: 0 2px 12px rgba(46,44,71,0.10);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    width: 100%;
    min-height: 60px;
    max-width: 180px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    text-align: center;
}
.vote-site-btn-action:hover {
    background: linear-gradient(90deg, #ffa726 0%, #ffde59 100%);
    color: #2e2c47;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 6px 24px rgba(255,222,89,0.18);
}
.vote-site-btn-label {
    display: block;
    width: 100%;
}

.vote-top3-reward-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(46,44,71,0.10);
    padding: 1.5rem 1rem;
    text-align: center;
    margin: 0 auto;
    max-width: 420px;
}
.vote-top3-reward-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff9800;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
}
.vote-top3-reward-content {
    font-size: 1.1rem;
    color: #2e2c47;
    font-weight: 600;
}
.vote-top3-reward-placeholder {
    color: #bdbdbd;
    font-style: italic;
}

.vote-paliers-modern {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(46,44,71,0.10);
    padding: 2rem 1.5rem 2.5rem 1.5rem;
    margin: 0 auto;
    max-width: 700px;
    margin-bottom: 2rem;
}
.vote-paliers-modern .reward-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.vote-paliers-modern .reward-step {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    min-width: 140px;
    text-align: center;
    box-shadow: none;
    font-size: 1rem;
    font-weight: 500;
    color: #2e2c47;
    margin-bottom: 0.5rem;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.vote-paliers-modern .reward-step:not(.reached):hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 32px rgba(255,222,89,0.18);
}
.vote-paliers-modern .reward-step.reached {
    border: 3px solid #4caf50;
    background: linear-gradient(120deg, #e3f2fd 0%, #a5d6a7 100%);
    color: #2e2c47;
    box-shadow: 0 6px 24px rgba(76,175,80,0.18);
}
.vote-paliers-modern .reward-step .reward-step-icon {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
    color: #ff9800;
    display: block;
}
.vote-paliers-modern .reward-step.reached .reward-step-icon {
    color: #4caf50;
}
.vote-paliers-modern .reward-step .reward-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.vote-paliers-modern .reward-step .reward-step-desc {
    font-size: 0.98rem;
    color: #2e2c47;
    opacity: 0.85;
}
.vote-paliers-modern .reward-step .reward-step-badge {
    position: absolute;
    top: -18px;
    right: -18px;
    background: #ff9800;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(255,152,0,0.15);
}
.vote-paliers-modern .reward-step.reached .reward-step-badge {
    background: #4caf50;
}

/* --- Minecraft Modern Floating Home Style --- */
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Rubik', 'Montserrat', Arial, sans-serif;
  background: #dbeafe;
  position: relative;
  overflow-x: hidden;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('/darkwave/assets/svg/header_shape.svg') center/cover no-repeat;
  /* Remplace par ton image dynamique si besoin */
}

.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.10) 60%,
    rgba(255, 222, 89, 0.55) 100%
  );
  /* Pas de blur ici, juste le dégradé */
}

/* --- Glassmorphism sur le bloc central --- */
.floating-card {
  position: relative;
  z-index: 2;
  margin: 7vh auto 0 auto;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border-radius: 2.5rem;
  box-shadow: 0 8px 40px 0 rgba(31, 38, 135, 0.18), 0 1.5px 8px 0 rgba(0,0,0,0.10);
  padding: 32px 24px;
  max-width: 420px;
  width: 90vw;
  text-align: center;
  /* border: 2.5px solid #b5e0a5; */
  transition: box-shadow 0.2s;
}

.floating-card img.logo {
  width: 120px;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px #0003);
}

.floating-card h1 {
  font-size: 2.3rem;
  color: #3a5d23;
  margin-bottom: 18px;
  letter-spacing: 2px;
  font-weight: 900;
  text-shadow: 0 2px 0 #b5e0a5;
}

.floating-card .server-btn {
  width: 100%;
  max-width: 320px;
  margin: 24px auto 0 auto;
  padding: 18px 0;
  background: linear-gradient(90deg, #ffe259 0%, #ffa751 100%);
  color: #2d2d2d;
  font-size: 1.3rem;
  font-weight: 900;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 16px #0002;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
  letter-spacing: 1px;
  display: block;
}
.floating-card .server-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px #0003;
  background: linear-gradient(90deg, #ffe259 0%, #ffb751 100%);
}

.floating-card .socials {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 22px;
}
.floating-card .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px #0001;
  color: #3a5d23;
  font-size: 1.7rem;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  text-decoration: none;
}
.floating-card .socials a:hover {
  background: #b5e0a5;
  color: #2d2d2d;
  transform: scale(1.12);
}

/* --- Barre de navigation flottante Oneblock --- */
.floating-navbar {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  box-shadow: 0 4px 24px #0002;
  display: flex;
  align-items: center;
  padding: 0 24px 0 24px;
  height: 56px;
  gap: 32px;
  backdrop-filter: blur(8px);
}
.floating-navbar .nav-links {
  display: flex;
  gap: 24px;
}
.floating-navbar .nav-links a {
  color: #444;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
  text-transform: uppercase;
}
.floating-navbar .nav-links a:hover {
  color: #ffa751;
}
.discord-btn {
  background: #5865F2;
  color: #fff;
  border-radius: 12px;
  padding: 8px 18px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.discord-btn:hover {
  background: #4752c4;
}

@media (max-width: 600px) {
  .floating-card {
    padding: 32px 4vw 24px 4vw;
    max-width: 98vw;
  }
  .floating-card h1 {
    font-size: 1.3rem;
  }
}

.vote-disabled {
  background: #cccccc !important;
  color: #666 !important;
  cursor: not-allowed !important;
  border: none !important;
  pointer-events: none;
  position: relative;
}
.vote-timer {
  margin-right: 0.5em;
  font-weight: 600;
  font-size: 0.95em;
}
.btn.disabled, .btn:disabled {
  pointer-events: none;
  opacity: 0.65;
}
.vote-global-dark {
  color: #333 !important;
  font-weight: 700;
}
