:root {
  --bg: #050816;
  --bg-alt: #050617;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.18);
  --accent-2: #ec4899;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --glass-bg: rgba(15, 23, 42, 0.75);
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
  --shadow-subtle: 0 12px 30px rgba(15, 23, 42, 0.6);
  --transition-fast: 200ms ease-out;
  --transition-med: 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #050816;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* FOND DYNAMIQUE - BASE */
.dynamic-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: radial-gradient(circle at 20% 30%, #020617 0%, #050816 50%, #000 100%);
  overflow: hidden;
}

/* ÉTOILES */
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

/* Petites étoiles */
.star.small {
  width: 2px;
  height: 2px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 1), 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Étoiles moyennes */
.star.medium {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 1), 0 0 12px rgba(99, 102, 241, 0.7), 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Grandes étoiles */
.star.large {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 16px rgba(236, 72, 153, 0.8), 0 0 24px rgba(236, 72, 153, 0.4);
}

/* Étoiles colorées selon le thème */
.star.blue {
  background: rgba(99, 102, 241, 1);
  box-shadow: 0 0 8px rgba(99, 102, 241, 1), 0 0 16px rgba(99, 102, 241, 0.6), 0 0 24px rgba(99, 102, 241, 0.3);
}

.star.pink {
  background: rgba(236, 72, 153, 1);
  box-shadow: 0 0 8px rgba(236, 72, 153, 1), 0 0 16px rgba(236, 72, 153, 0.6), 0 0 24px rgba(236, 72, 153, 0.3);
}

.star.green {
  background: rgba(34, 197, 94, 1);
  box-shadow: 0 0 8px rgba(34, 197, 94, 1), 0 0 16px rgba(34, 197, 94, 0.6), 0 0 24px rgba(34, 197, 94, 0.3);
}

.star.purple {
  background: rgba(139, 92, 246, 1);
  box-shadow: 0 0 8px rgba(139, 92, 246, 1), 0 0 16px rgba(139, 92, 246, 0.6), 0 0 24px rgba(139, 92, 246, 0.3);
}

.star.cyan {
  background: rgba(56, 189, 248, 1);
  box-shadow: 0 0 8px rgba(56, 189, 248, 1), 0 0 16px rgba(56, 189, 248, 0.6), 0 0 24px rgba(56, 189, 248, 0.3);
}

/* GRADIENT OVERLAY SUBTIL */
.gradient-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: 
    radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  opacity: 0.4;
  pointer-events: none;
}

/* NOISE OVERLAY */
.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1600 900' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}

/* ANIMATION SCINTILLEMENT */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.container {
  width: min(1120px, 100% - 2.8rem);
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.95),
      rgba(2, 6, 23, 0.86),
      transparent
    );
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.75);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1rem;
}

.logo-subtitle {
  font-size: 0.74rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: center;
  transform: scaleX(0);
  opacity: 0;
  transition: transform var(--transition-med), opacity var(--transition-fast);
}

.nav-links a:hover {
  color: #e5e7eb;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 180ms ease, opacity 150ms ease;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.header-cta {
  font-size: 0.86rem;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.1rem;
  background: radial-gradient(circle at 0 0, #f97316, #6366f1 45%, #22d3ee 100%);
  color: #0b1020;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.55);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.header-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.7), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.header-cta:hover::after {
  opacity: 0.9;
}

/* HERO */

.hero {
  padding: 4.2rem 0 3.8rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.8fr);
  gap: 3.5rem;
  align-items: center;
}

.giveaway-card {
  max-width: 400px;
  margin: 0 auto 2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
  border: 2px solid rgba(45, 212, 191, 0.8);
  box-shadow: 0 20px 60px rgba(6, 78, 59, 0.8), 0 0 0 1px rgba(45, 212, 191, 0.4), inset 0 0 20px rgba(45, 212, 191, 0.1);
  overflow: hidden;
  position: relative;
}

.giveaway-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12), transparent 70%),
    radial-gradient(circle at 0% 100%, rgba(34, 197, 94, 0.15), transparent 70%);
  pointer-events: none;
}

.giveaway-header {
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(56, 189, 248, 0.1));
  border-bottom: 1px solid rgba(45, 212, 191, 0.3);
}

.giveaway-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(45, 212, 191, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #a7f3d0;
}

.giveaway-body {
  padding: 1.4rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.giveaway-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.giveaway-amount {
  font-weight: 700;
  background: linear-gradient(135deg, #bbf7d0, #4ade80);
  -webkit-background-clip: text;
  color: transparent;
  font-size: 1.4rem;
}

.giveaway-description {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.giveaway-stats {
  text-align: center;
  padding: 0.6rem 0;
}

.giveaway-counter {
  font-size: 0.88rem;
  color: #a7f3d0;
  font-weight: 500;
}

.giveaway-counter span {
  font-weight: 700;
  color: #4ade80;
  font-size: 1rem;
}

.giveaway-btn {
  width: 100%;
  border-radius: 12px;
  padding: 0.75rem 1.2rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(21, 128, 61, 0.8);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  margin-top: 0.2rem;
}

.giveaway-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(21, 128, 61, 0.95);
  background: linear-gradient(135deg, #16a34a, #15803d);
}

/* GIVEAWAY MODAL */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(440px, 100%);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.98);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 1);
  padding: 1.4rem 1.5rem 1.3rem;
  position: relative;
}

.modal h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.modal p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.modal-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
}

.modal-input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.7);
}

.modal-hint {
  margin-top: 0.4rem;
  font-size: 0.78rem;
}

.modal-submit {
  margin-top: 0.9rem;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: radial-gradient(circle at 0 0, #f97316, #6366f1 45%, #22d3ee 100%);
  color: #020617;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.9);
}

.modal-message {
  margin-top: 0.6rem;
  font-size: 0.82rem;
}

.modal-message.success {
  color: #4ade80;
}

.modal-message.error {
  color: #fb7185;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
}

.hero-content h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0.7rem 0 0.9rem;
}

.hero-subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 34rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at 0 0, rgba(251, 146, 60, 0.3), rgba(15, 23, 42, 0.96));
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(120deg, #e5e7eb, #a5b4fc, #f9a8d4);
  -webkit-background-clip: text;
  color: transparent;
}

.highlight::after {
  content: "";
  position: absolute;
  inset: 70% -3px 0;
  background: radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.4), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin: 1.7rem 0 1.5rem;
}

.btn {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.78rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  border: none;
  background: radial-gradient(circle at 0 0, #f97316, #6366f1 45%, #22d3ee 100%);
  color: #020617;
  font-weight: 600;
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.8);
}

.btn-primary .btn-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.9), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.95);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.85);
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
}

.btn-large {
  padding-inline: 1.8rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.4rem;
}

.stat-card {
  min-width: 100px;
  border-radius: 18px;
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.1), rgba(15, 23, 42, 0.96));
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.stat-label {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}

.hero-showcase {
  position: relative;
}

.glass-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.server-card {
  padding: 0;
  transform-origin: center;
  animation: floatCard 7s ease-in-out infinite;
}

.server-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
  border: 4px solid rgba(15, 23, 42, 0.98);
  flex-shrink: 0;
}

.server-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-banner {
  height: 90px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, #f97316, #ec4899, #6366f1);
  overflow: hidden;
}

.server-main {
  padding: 0.9rem 1rem 1rem;
  position: relative;
}

.server-main-top {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: -32px;
  position: relative;
  z-index: 1;
}

.server-main-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1.2rem;
}

.server-name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

.server-status {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.2;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
}

.server-main-stats {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.7rem 0 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.stat-dot.online {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.dot-separator {
  opacity: 0.7;
}

.stat-text strong {
  color: #e5e7eb;
  font-weight: 600;
}

.server-cta {
  width: 100%;
  margin-top: 0.1rem;
  border-radius: 999px;
  border: none;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: #22c55e;
  color: #052e16;
  box-shadow: 0 14px 30px rgba(21, 128, 61, 0.7);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.server-cta:hover {
  transform: translateY(-1px);
  background: #16a34a;
  box-shadow: 0 18px 40px rgba(21, 128, 61, 0.9);
}

.floating-card {
  position: absolute;
  right: -10px;
  border-radius: 18px;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-subtle);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card-top {
  top: -12px;
  transform: translateX(15px);
  animation: floatCardSmall 8.5s ease-in-out infinite;
}

.card-bottom {
  bottom: -8px;
  transform: translateX(10px);
  animation: floatCardSmall 6.8s ease-in-out infinite;
}

/* SECTIONS GÉNÉRIQUES */

.section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.1rem;
}

.section-header.left {
  text-align: left;
  margin-left: 0;
}

.section-header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-header p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

/* FEATURES */

.features {
  position: relative;
}

.features::before {
  content: "";
  position: absolute;
  inset: 0 5%;
  border-radius: 40px;
  background: radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.18), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  position: relative;
  z-index: 1;
}

/* OPENING COUNTDOWN */

.opening {
  position: relative;
}

.opening-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.opening-text {
  text-align: center;
}

.opening-text h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.opening-text p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.opening-text strong {
  color: #e5e7eb;
  font-weight: 600;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 2rem 1.8rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9), 0 0 0 1px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 800px;
}

.time-box {
  border-radius: 20px;
  padding: 1.8rem 1.2rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.5);
  text-align: center;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
  position: relative;
  overflow: hidden;
}

.time-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(56, 189, 248, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.time-box:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.time-box:hover::before {
  opacity: 1;
}

.time-value {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  background: linear-gradient(135deg, #e5e7eb, #a5b4fc, #f9a8d4);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.time-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 500;
}

.countdown.is-opened .time-label {
  color: #22c55e;
}

.feature-card {
  border-radius: 20px;
  padding: 1.1rem 1rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-subtle);
  transform-origin: center;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), background var(--transition-med);
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  background: radial-gradient(circle at 0 0, rgba(251, 146, 60, 0.5), rgba(55, 65, 81, 0.9));
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
  border-color: rgba(129, 140, 248, 0.9);
  background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.28), rgba(15, 23, 42, 0.98));
}

/* COMMUNITY */

.community-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  gap: 2.5rem;
  align-items: center;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  color: #e5e7eb;
}

.community-note {
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
}

.community-note p {
  margin: 0 0 0.4rem;
}

.note-author {
  font-size: 0.78rem;
  color: var(--muted);
}

.community-showcase {
  position: relative;
}

.activity-timeline {
  border-radius: 22px;
  padding: 1.1rem 1rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem 0.8rem;
  align-items: flex-start;
  padding: 0.45rem 0;
}

.activity-item + .activity-item {
  border-top: 1px dashed rgba(55, 65, 81, 0.7);
}

.activity-item h4 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
}

.activity-item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.activity-item .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #a855f7;
  margin-top: 0.35rem;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.8);
}

/* FAQ */

.faq {
  position: relative;
}

.faq::before {
  content: "";
  position: absolute;
  inset: 0 8%;
  border-radius: 40px;
  background: radial-gradient(circle at 100% 0, rgba(236, 72, 153, 0.18), transparent 65%);
  opacity: 0.5;
  pointer-events: none;
}

.faq-list {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
}

.faq-item {
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.45);
  margin-bottom: 0.7rem;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.faq-question {
  padding: 0.85rem 1rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
}

.faq-toggle {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  font-size: 0.86rem;
  color: var(--muted);
  transition: max-height 220ms ease, padding-bottom 220ms ease;
}

.faq-item.is-open .faq-answer {
  padding-bottom: 0.75rem;
}

.faq-item.is-open .faq-toggle {
  background: rgba(129, 140, 248, 0.28);
  border-color: rgba(129, 140, 248, 0.9);
}

/* FINAL CTA */

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem;
  border-radius: 32px;
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.6), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(191, 219, 254, 0.7);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.9);
}

.final-cta-inner h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.final-cta-inner p {
  margin: 0;
  font-size: 0.92rem;
  color: #e5e7eb;
}

/* FOOTER */

.site-footer {
  padding: 1.4rem 0 1.8rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-note {
  opacity: 0.9;
}

/* ANIMATIONS */

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) rotate3d(1, 0, 0, 0deg);
  }
  50% {
    transform: translateY(-10px) rotate3d(1, 0, 0, 5deg);
  }
}

@keyframes floatCardSmall {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
  }

  .hero {
    padding-top: 3.1rem;
  }

  .hero-showcase {
    order: -1;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-inner {
    grid-template-columns: minmax(0, 1fr);
  }

   .opening-inner {
    gap: 2rem;
  }

  .countdown {
    gap: 0.9rem;
    padding: 1.5rem 1.2rem;
  }

  .time-box {
    padding: 1.4rem 0.9rem;
  }

  .final-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 0.2rem;
  }

  .nav-links {
    position: absolute;
    right: 0.9rem;
    top: 3.1rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0.9rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: var(--shadow-soft);
    min-width: 180px;
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .nav-links.is-open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding-block: 2.8rem;
  }

  .giveaway-card {
    max-width: 380px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  /* Optimisation étoiles sur mobile */
  .star.small {
    width: 1.5px;
    height: 1.5px;
  }

  .star.medium {
    width: 2px;
    height: 2px;
  }

  .star.large {
    width: 3px;
    height: 3px;
  }

  .gradient-overlay {
    opacity: 0.5;
  }

  .container {
    width: min(100% - 1.2rem, 100%);
  }

  .hero {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin: 0.5rem 0 0.7rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    margin: 1.4rem 0 1.2rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    font-size: 0.88rem;
  }

  .hero-stats {
    gap: 0.6rem;
  }

  .server-card {
    max-width: 100%;
    margin: 0 auto;
  }

  .floating-card {
    display: none;
  }

  .giveaway-card {
    max-width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 20px;
  }

  .giveaway-header {
    padding: 0.9rem 1rem;
  }

  .giveaway-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }

  .giveaway-body {
    padding: 1.2rem 1rem 1.3rem;
    gap: 0.7rem;
  }

  .giveaway-title {
    font-size: 1.1rem;
  }

  .giveaway-amount {
    font-size: 1.2rem;
  }

  .giveaway-description {
    font-size: 0.85rem;
  }

  .giveaway-counter {
    font-size: 0.82rem;
  }

  .giveaway-counter span {
    font-size: 0.95rem;
  }

  .giveaway-btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .opening-text h2 {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
  }

  .opening-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .countdown {
    gap: 0.6rem;
    padding: 1rem 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-box {
    padding: 1rem 0.6rem;
  }

  .time-value {
    font-size: 1.8rem;
  }

  .time-label {
    font-size: 0.7rem;
    margin-top: 0.3rem;
  }

  .section {
    padding-block: 2.5rem;
  }

  .section-header h2 {
    font-size: clamp(1.4rem, 5vw, 1.6rem);
  }

  .section-header p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .feature-card {
    padding: 1rem 0.9rem;
  }

  .feature-card h3 {
    font-size: 0.95rem;
  }

  .feature-card p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .community-note {
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
  }

  .activity-timeline {
    padding: 1rem 0.9rem;
  }

  .activity-item h4 {
    font-size: 0.88rem;
  }

  .activity-item p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .faq-question {
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
  }

  .faq-answer {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .final-cta-inner {
    padding: 1.2rem 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .final-cta-inner h2 {
    font-size: clamp(1.2rem, 5vw, 1.4rem);
  }

  .final-cta-inner p {
    font-size: 0.88rem;
  }

  .btn-large {
    width: 100%;
    padding: 0.85rem 1.2rem;
  }

  .site-footer {
    padding: 1.2rem 0 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .logo-title {
    font-size: 0.9rem;
  }

  .logo-subtitle {
    font-size: 0.7rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .server-main-stats {
    font-size: 0.75rem;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .server-cta {
    font-size: 0.82rem;
    padding: 0.5rem 0.9rem;
  }

  .modal-backdrop {
    padding: 1rem;
  }

  .modal {
    width: 100%;
    padding: 1.2rem 1.1rem;
    border-radius: 18px;
  }

  .modal h3 {
    font-size: 1.1rem;
  }

  .modal p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .modal-label {
    font-size: 0.82rem;
    margin-top: 0.9rem;
  }

  .modal-input {
    padding: 0.6rem 0.8rem;
    font-size: 0.86rem;
  }

  .modal-submit {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }

  .modal-message {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}

