/* ────────────────────────────────────────────────────────────
   index.css — styles spécifiques à la page d'accueil
   ──────────────────────────────────────────────────────────── */

main { padding: 0 0 48px; }

/* ── Keyframes supplémentaires ───────────────────────────── */
@keyframes neon-pulse-orange {
  0%, 100% { box-shadow: 0 0 8px 1px rgba(207,106,50,0.2), inset 0 0 4px rgba(207,106,50,0.03); }
  50%       { box-shadow: 0 0 28px 8px rgba(207,106,50,0.55), inset 0 0 12px rgba(207,106,50,0.1); }
}

@keyframes neon-pulse-green {
  0%, 100% { box-shadow: 0 0 8px 1px rgba(34,197,94,0.2), inset 0 0 4px rgba(34,197,94,0.03); }
  50%       { box-shadow: 0 0 28px 8px rgba(34,197,94,0.55), inset 0 0 12px rgba(34,197,94,0.1); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes countdown-tick {
  0%  { transform: scaleY(1.12); color: var(--primary); }
  15% { transform: scaleY(1); color: var(--text); }
}

/* ── Utilities ───────────────────────────────────────────── */
.anim-fade { animation: fade-in 0.5s ease forwards; }
.pulse     { animation: pulse 1.8s ease-in-out infinite; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 32px 0 36px;
  text-align: center;
}

.hero-stripe-top,
.hero-stripe-bottom {
  position: absolute;
  inset-inline: 0;
  height: 3px;
  display: flex;
  overflow: hidden;
}
.hero-stripe-top    { top: 0; }
.hero-stripe-bottom { bottom: 0; }
.stripe-red  { flex: 1; background: linear-gradient(90deg, #8B1A08, var(--red-tf2)); }
.stripe-blue { flex: 1; background: linear-gradient(90deg, #1a3a6b, var(--blue-tf2)); }

.hero-logo {
  display: inline-block;
  margin-bottom: 20px;
  animation: float 4s ease-in-out infinite, slide-up 0.55s ease forwards;
  filter: drop-shadow(0 0 22px rgba(207,106,50,0.5)) drop-shadow(0 0 44px rgba(120,30,0,0.3));
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(207,106,50,0.5);
  background: linear-gradient(135deg, rgba(140,26,8,0.4) 0%, rgba(207,106,50,0.1) 100%);
  box-shadow: 0 0 14px rgba(207,106,50,0.2);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
  animation: slide-up 0.55s ease 0.05s forwards;
  opacity: 0;
}
.badge-live .dot-green {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34,197,94,0.8);
  animation: pulse 1.5s ease-in-out infinite;
}
.badge-live .flame { animation: pulse 0.9s ease-in-out infinite; color: var(--primary); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(135deg, #e87030 0%, #FFD15C 35%, #e87030 65%, #c04010 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite, slide-up 0.55s ease 0.1s forwards;
  opacity: 0;
  filter: drop-shadow(0 0 20px rgba(207,106,50,0.35));
}

.hero-divider {
  display: flex;
  margin: 6px auto 0;
  max-width: 320px;
  height: 3px;
}

.hero-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
  animation: slide-up 0.55s ease 0.2s forwards;
  opacity: 0;
}

.hero-label {
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: rgba(122,106,90,0.6);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ── Trust bar ───────────────────────────────────────────── */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 32px 0;
  animation: slide-up 0.55s ease 0.3s forwards;
  opacity: 0;
}
@media (min-width: 640px) { .trust-bar { grid-template-columns: repeat(4, 1fr); } }

.trust-card {
  background: linear-gradient(135deg, #1c1711 0%, #17120e 100%);
  border: 1px solid rgba(0,0,0,0.5);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: default;
  transition: border-color 0.2s;
}
.trust-card:hover { border-color: rgba(207,106,50,0.35); }
.trust-icon { flex-shrink: 0; padding: 6px; border-radius: 2px; }
.trust-icon svg { width: 18px; height: 18px; }
.trust-title { font-family: var(--font-display); font-size: 0.85rem; line-height: 1.2; }
.trust-desc  { font-size: 0.65rem; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ── Banners Discord / Fairplay ──────────────────────────── */
.banners {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
  animation: slide-up 0.55s ease 0.35s forwards;
  opacity: 0;
}
@media (min-width: 600px) { .banners { grid-template-columns: 1fr 1fr; } }

.banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid;
  transition: border-color 0.2s, background 0.2s;
}
.banner-discord {
  border-color: rgba(88,101,242,0.45);
  background: linear-gradient(135deg, rgba(88,101,242,0.1) 0%, rgba(20,15,40,0.45) 100%);
}
.banner-discord:hover { border-color: var(--blue-discord); }

.banner-fairplay {
  border-color: rgba(207,106,50,0.35);
  background: linear-gradient(135deg, rgba(140,26,8,0.15) 0%, rgba(16,12,9,0.45) 100%);
}
.banner-fairplay:hover { border-color: var(--primary); }

.banner-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 2px solid;
  transition: border-color 0.2s;
}
.banner-icon svg { width: 20px; height: 20px; }

.banner-discord .banner-icon  { border-color: rgba(88,101,242,0.5); background: rgba(88,101,242,0.18); }
.banner-discord:hover .banner-icon { border-color: var(--blue-discord); }
.banner-fairplay .banner-icon { border-color: rgba(207,106,50,0.4); background: rgba(207,106,50,0.1); }
.banner-fairplay:hover .banner-icon { border-color: var(--primary); }

.banner-title { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.05em; }
.banner-sub   { font-size: 0.7rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }

/* ── Section label ───────────────────────────────────────── */
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 16px;
}
.section-label span { color: var(--primary); }

/* ── Cards grid ──────────────────────────────────────────── */
.cards-grid {
  display: grid;
  gap: 24px;
  animation: slide-up 0.55s ease 0.4s forwards;
  opacity: 0;
}
@media (min-width: 700px) { .cards-grid { grid-template-columns: 1fr 1fr; } }

/* ── Giveaway card ───────────────────────────────────────── */
.giveaway-card {
  border: 4px solid;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(170deg, #1c1711 0%, #17120e 100%);
}
.giveaway-card.paid {
  border-color: rgba(207,106,50,0.65);
  animation: neon-pulse-orange 3s ease-in-out infinite;
}
.giveaway-card.free {
  border-color: rgba(34,197,94,0.55);
  animation: neon-pulse-green 3s ease-in-out infinite;
}

/* Card header */
.card-header {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid #000;
  color: #fff;
}
.card-header.paid {
  background: linear-gradient(135deg, #8B1A08 0%, #CF6A32 50%, #8B1A08 100%);
  background-size: 200% auto;
  animation: gradient-shift 4s ease infinite;
}
.card-header.free {
  background: linear-gradient(135deg, #14532d 0%, #16a34a 50%, #14532d 100%);
  background-size: 200% auto;
  animation: gradient-shift 4s ease infinite;
}
.card-header-left {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}
.card-header-left svg { width: 16px; height: 16px; }
.card-header-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.2);
  padding: 2px 8px;
  border-radius: 2px;
}

/* Prize area */
.card-prize {
  padding: 18px;
  border-bottom: 2px solid rgba(0,0,0,0.4);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(207,106,50,0.04) 0%, transparent 100%);
}
.prize-img-wrap { flex-shrink: 0; position: relative; }
.prize-img-box {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
  border: 2px solid #000;
}
.prize-img-box.paid {
  background: #1a1400;
  box-shadow: 0 0 24px 8px rgba(255,210,0,0.4);
  outline: 2px solid rgba(255,210,0,0.7);
}
.prize-img-box.free {
  background: #0a1a08;
  box-shadow: 0 0 22px 7px rgba(34,197,94,0.35);
  outline: 2px solid rgba(34,197,94,0.65);
}
.prize-img-box img { width: 100%; height: 100%; object-fit: contain; }

.prize-star {
  position: absolute;
  top: -8px; right: -8px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #000;
  border-radius: 50%;
  font-size: 10px; font-weight: bold;
}
.prize-star.paid { background: var(--yellow); color: #000; box-shadow: 0 0 8px rgba(255,210,0,0.6); }
.prize-star.free { background: var(--green);  color: #fff; box-shadow: 0 0 8px rgba(34,197,94,0.5); }

.prize-info   { flex: 1; min-width: 0; }
.prize-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(207,106,50,0.3);
}
.prize-effect        { font-size: 0.8rem; margin-top: 3px; }
.prize-effect.paid   { color: var(--yellow); }
.prize-effect.free   { color: var(--green); }
.prize-desc          { font-size: 0.7rem; color: var(--muted); margin-top: 6px; line-height: 1.5; font-style: italic; opacity: 0.75; }

/* Countdown */
.card-countdown {
  padding: 14px 16px;
  border-bottom: 2px solid rgba(0,0,0,0.4);
  background: rgba(0,0,0,0.2);
}
.countdown-label {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.countdown-digits { display: flex; gap: 6px; flex-wrap: wrap; }
.digit-cell {
  background: rgba(0,0,0,0.4);
  border: 2px solid rgba(207,106,50,0.22);
  padding: 8px;
  min-width: 54px;
  flex: 1;
  text-align: center;
}
.digit-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary);
  text-shadow: 0 0 8px rgba(207,106,50,0.6);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}
.digit-lbl { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--muted); display: block; margin-top: 2px; }

/* Stats row */
.card-stats { display: flex; border-bottom: 2px solid rgba(0,0,0,0.4); }
.stat {
  flex: 1; padding: 10px 12px; text-align: center;
  border-right: 1px solid rgba(0,0,0,0.4);
}
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 1.3rem; color: var(--primary); line-height: 1; }
.stat-lbl { font-size: 0.6rem; color: var(--muted); margin-top: 2px; letter-spacing: 0.1em; }

/* Action */
.card-action { padding: 14px 16px; }
.btn-enter {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px;
  border: 2px solid rgba(0,0,0,0.5);
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  text-align: center;
}
.btn-enter:hover  { filter: brightness(1.15); transform: translateY(-1px); }
.btn-enter:active { transform: translateY(0); }
.btn-enter.paid {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(207,106,50,0.3);
}
.btn-enter.free {
  background: linear-gradient(135deg, #14532d, #16a34a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34,197,94,0.25);
}
.btn-hint { font-size: 0.65rem; color: var(--muted); text-align: center; margin-top: 7px; opacity: 0.7; }

/* Key selector */
.key-label    { font-size: 0.65rem; color: var(--muted); text-align: center; margin-bottom: 6px; }
.key-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.key-btn {
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 12px;
  border: 2px solid rgba(0,0,0,0.5);
  background: var(--bg-card2);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-align: center;
}
.key-btn:hover    { background: #2a1f17; color: #fff; transform: translateY(-1px); }
.key-btn.selected { background: var(--primary); color: #fff; transform: scale(1.04); box-shadow: 0 0 14px rgba(207,106,50,0.5); }

/* Live entrants */
.card-entrants { border-top: 2px solid rgba(0,0,0,0.4); padding: 10px 14px; background: rgba(0,0,0,0.22); }
.entrants-header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
  animation: pulse 1.5s ease-in-out infinite;
}
.entrants-lbl  { font-size: 0.62rem; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; }
.entrants-list { display: flex; flex-wrap: wrap; gap: 5px; }
.entrant-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0,0,0,0.3);
  padding: 2px 8px;
  font-size: 0.65rem;
}
.entrant-avatar  { width: 16px; height: 16px; border: 1px solid rgba(0,0,0,0.3); object-fit: cover; }
.entrant-keys    { color: var(--primary); font-size: 0.62rem; }

/* ── How it works ────────────────────────────────────────── */
.how-section {
  margin-top: 48px;
  animation: slide-up 0.55s ease 0.5s forwards;
  opacity: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--primary);
  margin-bottom: 24px;
  text-shadow: 0 0 14px rgba(207,106,50,0.25);
}

.steps-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  background: linear-gradient(135deg, #1c1711 0%, #17120e 100%);
  border: 2px solid rgba(0,0,0,0.5);
  padding: 20px 16px;
  min-height: 150px;
  transition: border-color 0.2s;
}
.step-card:hover { border-color: rgba(207,106,50,0.35); }
.step-num   { font-family: var(--font-display); font-size: 2.5rem; color: rgba(207,106,50,0.2); line-height: 1; margin-bottom: 8px; }
.step-title { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.06em; margin-bottom: 6px; }
.step-desc  { font-size: 0.72rem; color: var(--muted); line-height: 1.55; }

/* ── Footer overrides for home ───────────────────────────── */
.footer-links .discord-link:hover { color: var(--blue-discord); }
.footer-links .primary-link:hover { color: var(--primary); }
.footer-disclaimer p              { margin-bottom: 3px; }
.footer-disclaimer p:last-child   { opacity: 0.55; }

/* ── Skeleton ────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #1c1711 25%, #251e17 50%, #1c1711 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 2px;
}
