/* ============================================================
   Remod'Z — Premium Styles
   ============================================================ */

:root {
  --p:  #b026ff;
  --d:  #3a0066;
  --pk: #ff00ea;
  --bg: #030008;
}

/* ── Scroll smooth ── */
html.js { scroll-behavior: smooth; }

/* Curseur clignotant typewriter */
.typewriter-cursor {
  display: inline-block;
  color: var(--p);
  font-weight: 300;
  margin-left: 2px;
  animation: cursorBlink 0.75s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   HERO LAUNCH ANIMATIONS
   Les éléments commencent invisibles, s'animent quand
   body reçoit la classe .site-loaded (après le loader)
   ============================================================ */

/* États initiaux — tout caché */
.hero-badge,
.hero-line-1,
.hero-line-2,
.hero-sub-text,
.hero-ctas,
.hero-stats {
  opacity: 0;
  will-change: transform, opacity;
}

/* ── Badge : fade + montée ── */
.site-loaded .hero-badge {
  animation: heroFadeUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}

/* ── Ligne 1 & 2 : slide depuis le bas, wrapper overflow:hidden fait le masque ── */
.hero-line-1,
.hero-line-2 {
  /* translateY(100%) : la ligne est cachée sous son wrapper */
  transform: translateY(100%);
  opacity: 0;
}
.site-loaded .hero-line-1 {
  animation: heroSlideUp 0.72s cubic-bezier(0.22,1,0.36,1) 0.28s forwards;
}
.site-loaded .hero-line-2 {
  animation: heroSlideUp 0.72s cubic-bezier(0.22,1,0.36,1) 0.48s forwards;
}

/* ── Sous-titre : fade + montée douce ── */
.site-loaded .hero-sub-text {
  animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.72s forwards;
}

/* ── Boutons CTA : fade + montée ── */
.site-loaded .hero-ctas {
  animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.92s forwards;
}

/* ── Stats : fade + montée ── */
.site-loaded .hero-stats {
  animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 1.1s forwards;
}

/* Keyframes */
@keyframes heroSlideUp {
  from { opacity: 1; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1a0030; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--d); }

/* ── Hide default cursor on fine-pointer devices (desktop) ── */
@media (pointer: fine) {
  body, a, button, input, select, textarea, summary, label {
    cursor: none !important;
  }
}

/* ── Hide custom cursor entirely on touch/mobile ── */
@media (hover: none), (pointer: coarse) {
  #custom-cursor { display: none !important; }
  body, a, button, input, select, textarea, summary, label {
    cursor: auto !important;
  }
}

/* ============================================================
   1. CUSTOM CURSOR
   ============================================================ */
#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease;
}
body:hover #custom-cursor { opacity: 1; }

.cursor-dot {
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 0.05s;
}
.cursor-circle {
  width: 38px; height: 38px;
  border: 1.5px solid var(--p);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(176,38,255,0.04);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: width .2s, height .2s, background .2s, border-color .2s;
}
#custom-cursor.hovering .cursor-circle {
  width: 56px; height: 56px;
  background: rgba(176,38,255,0.12);
  border-color: var(--pk);
}
#custom-cursor.clicking .cursor-circle {
  transform: translate(-50%, -50%) scale(0.75);
  background: rgba(176,38,255,0.28);
}

/* ============================================================
   2. LOADER
   ============================================================ */
#loader {
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo {
  animation: flicker 3s infinite alternate, fadeInDown 0.6s ease both;
}
.loader-bar-wrap {
  width: 220px;
  height: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--d), var(--p), var(--pk));
  border-radius: 99px;
  animation: loadBar 1.6s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes loadBar {
  0%   { width: 0; }
  60%  { width: 80%; }
  100% { width: 100%; }
}
@keyframes fadeInDown {
  from { opacity:0; transform:translateY(-20px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ============================================================
   3. GLASSMORPHISM
   ============================================================ */
.glass-header {
  background: rgba(3,0,8,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.glass-card {
  background: rgba(255,255,255,0.012);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.glass-card:hover {
  background: rgba(255,255,255,0.022);
}
.glass-btn {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

/* ============================================================
   4. ANIMATIONS
   ============================================================ */
@keyframes gradientText {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animate-gradient-text {
  background-size: 200% auto;
  animation: gradientText 4s linear infinite;
}

/* Neon flicker logo */
.logo-neon {
  color: #fff;
  text-shadow:
    0 0 2px rgba(255,255,255,0.35),
    0 0 18px var(--p),
    0 0 40px var(--p),
    0 0 70px rgba(176,38,255,0.5);
  animation: flicker 6s infinite alternate;
}
@keyframes flicker {
  0%,19.9%,22%,62.9%,64%,65%,70%,100% {
    opacity:1;
    text-shadow:
      0 0 2px rgba(255,255,255,0.35),
      0 0 18px var(--p),
      0 0 40px var(--p),
      0 0 70px rgba(176,38,255,0.5);
  }
  20%,21.9%,63%,63.9%,64.9%,69.9% {
    opacity:0.4;
    text-shadow:none;
  }
}

/* Float / pulse ambient blobs */
@keyframes pulseSlow {
  0%,100% { transform: translate(-50%,-33%) scale(1); opacity:.12; }
  50%      { transform: translate(-50%,-33%) scale(1.06); opacity:.18; }
}
@keyframes float1 {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(-20px,30px); }
}
@keyframes float2 {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(25px,-20px); }
}
@keyframes pingSlow {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.3; transform:scale(1.8); }
}
.animate-pulse-slow { animation: pulseSlow 8s ease-in-out infinite; }
.animate-float-1    { animation: float1  10s ease-in-out infinite; }
.animate-float-2    { animation: float2  12s ease-in-out infinite; }
.animate-ping-slow  { animation: pingSlow 2s ease-in-out infinite; }

/* ============================================================
   5. NAVIGATION
   ============================================================ */
.nav-link {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(176,38,255,0.1);
}
.nav-link.active { color: var(--p); }

/* ============================================================
   MOBILE MENU — Full Screen Overlay
   ============================================================ */
#mobileMenu {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(3, 0, 8, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.35s;
  padding-top: calc(80px + env(safe-area-inset-top));
  padding-bottom: env(safe-area-inset-bottom);
}
#mobileMenu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s;
}
@media (min-width: 768px) {
  #mobileMenu { display: none !important; }
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  gap: 0.25rem;
}

.nav-link-mobile {
  display: block;
  color: #9ca3af;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  padding: 0.85rem 2rem;
  border-radius: 0.875rem;
  width: 100%;
  min-height: 52px;
  opacity: 0;
  transform: translateY(18px);
  transition: color 0.25s, background 0.25s,
              opacity 0.38s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}
.nav-link-mobile:active {
  color: #fff;
  background: rgba(176,38,255,0.12);
}
@media (hover: hover) {
  .nav-link-mobile:hover {
    color: #fff;
    background: rgba(176,38,255,0.08);
  }
}

/* Staggered entrance animation */
#mobileMenu.open .nav-link-mobile:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.06s; }
#mobileMenu.open .nav-link-mobile:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
#mobileMenu.open .nav-link-mobile:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
#mobileMenu.open .nav-link-mobile:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
#mobileMenu.open .nav-link-mobile:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.30s; }

.discord-btn-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1.5rem;
  padding: 0.875rem 2.5rem;
  background: #5865F2;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0.875rem;
  width: 100%;
  min-height: 52px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s;
  transition-delay: 0s;
  -webkit-tap-highlight-color: transparent;
}
#mobileMenu.open .discord-btn-mobile {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.36s;
}
.discord-btn-mobile:active { background: #4752C4; }

/* Hamburger open state */
.menu-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); width: 100%; }


/* ============================================================
   6. SHIMMER BORDER (Pack Premium)
   ============================================================ */
.shimmer-border { position: relative; }
.shimmer-border::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 1.6rem;
  padding: 1.5px;
  background: linear-gradient(90deg, transparent, var(--p), var(--pk), transparent);
  background-size: 200% auto;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shimmerBorder 3s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes shimmerBorder {
  to { background-position: 200% center; }
}

/* ============================================================
   7. MARQUEE
   ============================================================ */
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track:hover { animation-play-state: paused; }

/* ============================================================
   8. FORM INPUTS
   ============================================================ */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.3s ease;
  display: block;
}
.form-input::placeholder { color: #4b5563; }
.form-input:focus {
  outline: none;
  border-color: var(--p);
  background: rgba(176,38,255,0.06);
  box-shadow: 0 0 0 3px rgba(176,38,255,0.12), 0 0 20px rgba(176,38,255,0.1);
}
select.form-input option { background: #0d000f; color: #e5e7eb; }

/* ============================================================
   9. BEFORE/AFTER SLIDER
   ============================================================ */
#ba-slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
#ba-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 600px;
  cursor: ew-resize;
  background: transparent;
}
#ba-slider::-moz-range-thumb {
  width: 44px;
  height: 600px;
  cursor: ew-resize;
  background: transparent;
  border: none;
}

/* ============================================================
   10. SCROLL REVEAL SÉQUENTIEL
   ============================================================ */
.js .reveal-seq > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2,0.8,0.2,1);
}
.js .reveal-seq.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   11. STEP CARDS (How it works)
   ============================================================ */
.step-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(176,38,255,0.08);
}

/* ============================================================
   12. FAQ ITEM
   ============================================================ */
.faq-item summary { user-select: none; }
.faq-item[open] { background: rgba(176,38,255,0.02); }

/* ============================================================
   13. BADGE PAIEMENT
   ============================================================ */
.payment-badge {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.payment-badge:hover {
    border-color: rgba(176,38,255,0.4);
    box-shadow: 0 0 30px rgba(176,38,255,0.06);
}

/* Shimmer border subtle (variante légère) */
.shimmer-border-subtle { position: relative; }
.shimmer-border-subtle::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--p) 40%, var(--pk) 60%, transparent 100%);
    background-size: 200% auto;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: shimmerBorder 4s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}

/* ============================================================
   14. PRÉREQUIS PC
   ============================================================ */
.prereq-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.prereq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(176,38,255,0.07);
}

/* ============================================================
   15. FLOATING DISCORD PULSE
   ============================================================ */
#floatingDiscord {
  animation: discordPulse 3s ease-in-out infinite;
}
@keyframes discordPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(88,101,242,0.4); }
  50%      { box-shadow: 0 0 0 10px rgba(88,101,242,0); }
}

/* ============================================================
   16. COOKIE BANNER
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8888;
  background: rgba(3,0,8,0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(176,38,255,0.18);
  transform: translateY(115%);
  transition: transform 0.75s cubic-bezier(0.22,1,0.36,1),
              opacity 0.4s ease;
  opacity: 0;
  overflow: hidden;
}

#cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

/* Shimmer line at top */
.cookie-shimmer-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--p) 30%,
    var(--pk) 50%,
    var(--p) 70%,
    transparent 100%);
  background-size: 200% auto;
  animation: shimmerBorder 4s linear infinite;
  opacity: 0.7;
}

/* Cookie icon pulse glow */
.cookie-icon-glow {
  box-shadow: 0 0 18px rgba(176,38,255,0.2);
  transition: box-shadow 0.3s ease;
  animation: cookieIconPulse 3s ease-in-out infinite;
}
@keyframes cookieIconPulse {
  0%,100% { box-shadow: 0 0 12px rgba(176,38,255,0.2); }
  50%      { box-shadow: 0 0 28px rgba(176,38,255,0.45), 0 0 50px rgba(255,0,234,0.1); }
}

/* Accept button gradient + glow */
.cookie-accept-btn {
  background: linear-gradient(135deg, var(--d), var(--p) 55%, var(--pk));
  background-size: 200% auto;
  transition: background-position 0.5s ease, box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 20px rgba(176,38,255,0.35);
}
.cookie-accept-btn:hover {
  background-position: right center;
  box-shadow: 0 0 36px rgba(176,38,255,0.65), 0 0 60px rgba(255,0,234,0.2);
  transform: translateY(-1px);
}
.cookie-accept-btn:active {
  transform: scale(0.97);
}
