/* FlashWorld — thème Halloween. Retirer ce fichier (et la classe body) rend le site vert. */

body.halloween {
  --hw-bar: 0px;
  --black: #0c0614;
  --dark: #140a22;
  --surface: #1c1030;
  --card: #221238;
  --green: #ff7a18;
  --green-dim: rgba(255, 122, 24, 0.16);
  --green-border: rgba(255, 122, 24, 0.34);
  --green-glow: rgba(240, 180, 41, 0.14);
  --gold: #f0b429;
  --slime: #82c919;
  background-color: #0c0614;
  background-image:
    linear-gradient(180deg, rgba(12, 6, 20, 0.78), rgba(12, 6, 20, 0.9)),
    url("../halloween/scene.webp");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

@media (max-width: 1320px) {
  body.halloween { --hw-bar: 0px; }
}

/* Accueil : pas de barre pleine largeur, le hero reste dégagé */
body.hw-home { --hw-bar: 0px; }

.hw-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px auto 0;
  padding: 6px 16px 6px 6px;
  max-width: min(100%, 520px);
  border-radius: 999px;
  color: #fff8f0;
  text-decoration: none;
  background: rgba(12, 6, 20, 0.45);
  border: 1px solid rgba(255, 122, 24, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hw-pill img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hw-pill span {
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.15;
}

.hw-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

body.hw-home .hero-sub { margin-bottom: 0; }

body.hw-home .hero-content .hw-pill {
  animation: hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Bandeau événement ── */
.hw-banner {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 190;
  height: var(--hw-bar);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  padding: 0 20px;
  color: #fff8f0;
  text-decoration: none;
  background: #3a1408;
}

.hw-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hw-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 6, 20, 0.72), rgba(90, 28, 0, 0.28) 50%, rgba(12, 6, 20, 0.72));
}

.hw-banner-mark,
.hw-banner span {
  position: relative;
  z-index: 1;
}

.hw-banner-mark {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hw-banner span {
  font-family: var(--cond);
  font-size: clamp(12px, 2vw, 16px);
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.hw-banner:hover span { color: var(--gold); }

/* ── Décalage sous nav + bandeau ── */
body.halloween .page-hero { padding-top: calc(64px + var(--hw-bar) + 80px); }
body.halloween .page-hero--compact { padding-top: calc(64px + var(--hw-bar) + 44px); }
body.halloween .shop-hero { padding-top: calc(64px + var(--hw-bar) + 72px); }
body.halloween .cgu-hero { padding-top: calc(140px + var(--hw-bar)); }
body.halloween .legal-wrap { padding-top: calc(64px + var(--hw-bar) + 28px); }
body.halloween .staff-page { padding-top: calc(64px + var(--hw-bar) + 40px); }
body.halloween .shop-tabs { top: calc(64px + var(--hw-bar)); }

@media (max-width: 1320px) {
  body.halloween .nav-drawer {
    top: calc(64px + var(--hw-bar));
    max-height: calc(100vh - 64px - var(--hw-bar));
  }
}

/* ── Nav & logo ── */
body.halloween nav {
  background: rgba(12, 6, 20, 0.84);
  border-bottom-color: rgba(255, 122, 24, 0.2);
}

body.halloween nav.solid { background: rgba(12, 6, 20, 0.96); }

.hw-logo {
  display: block;
  height: 50px;
  width: auto;
}

body.halloween .nav-logo {
  gap: 8px;
}

/* ── Boutons : orange, survol or ── */
body.halloween .btn-nav-green:hover,
body.halloween .btn-big-green:hover {
  background: var(--gold);
  filter: none;
  box-shadow: 0 0 28px rgba(240, 180, 41, 0.35);
}

body.halloween .btn-nav-outline:hover,
body.halloween .btn-big-outline:hover {
  border-color: rgba(240, 180, 41, 0.7);
  color: var(--gold);
}

/* ── Hero accueil ── */
body.halloween .hero-overlay {
  background:
    linear-gradient(to top,
      rgba(12, 6, 20, 1) 0%,
      rgba(12, 6, 20, 0.62) 28%,
      rgba(40, 8, 28, 0.12) 58%,
      rgba(12, 6, 20, 0.5) 100%);
}

.hw-hero-logo {
  display: block;
  width: min(820px, 90vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

body.halloween .hero h1 { margin-bottom: 18px; }

.hw-sky {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hw-sky span {
  position: absolute;
  top: 22%;
  left: -8%;
  width: 46px;
  height: 24px;
  opacity: 0.8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%23110a16' d='M32 20c-1-7-7-12-13-10 2 2 2 5 0 7-6-1-12 2-14 7 4 0 6 2 6 4-4 2-2 6 2 5 2-3 6-4 8-2 2 4 6 4 8 2 4 1 6-3 2-5 0-2 2-4 6-4-2-5-8-8-14-7-2-2-2-5 0-7-6-2-12 3-13 10z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 0 rgba(255, 122, 24, 0.35));
  animation: hw-fly 16s linear infinite;
}

.hw-sky span:nth-child(2) { top: 38%; width: 30px; height: 16px; animation-duration: 22s; animation-delay: -8s; opacity: 0.55; }
.hw-sky span:nth-child(3) { top: 14%; width: 22px; height: 12px; animation-duration: 13s; animation-delay: -3s; opacity: 0.45; }
.hw-sky span:nth-child(4) { top: 48%; width: 38px; height: 20px; animation-duration: 19s; animation-delay: -12s; opacity: 0.7; }
.hw-sky span:nth-child(5) { top: 28%; width: 18px; height: 10px; animation-duration: 11s; animation-delay: -5s; opacity: 0.4; }

@keyframes hw-fly {
  0% { transform: translateX(0) translateY(0); }
  40% { transform: translateX(48vw) translateY(-18px); }
  100% { transform: translateX(112vw) translateY(8px); }
}

/* ── Cartes & surfaces ── */
body.halloween .stats-strip,
body.halloween .videos-section,
body.halloween .features-section,
body.halloween .form-section,
body.halloween .page-hero,
body.halloween .staff-page,
body.halloween .streams-section,
body.halloween .streams-info {
  background-color: rgba(12, 6, 20, 0.82);
}

body.halloween .page-hero-overlay {
  background: rgba(18, 6, 32, 0.62);
}

body.halloween .shop-hero {
  background:
    radial-gradient(ellipse 55% 75% at 82% 40%, rgba(255, 122, 24, 0.18), transparent 70%),
    linear-gradient(90deg, rgba(12, 6, 20, 0.9) 0%, rgba(12, 6, 20, 0.6) 45%, rgba(30, 10, 50, 0.3) 100%),
    linear-gradient(180deg, rgba(12, 6, 20, 0.2) 0%, rgba(12, 6, 20, 0) 50%, #0c0614 100%),
    url('../boutique/fond-los-santos.webp') center 35% / cover no-repeat,
    #0c0614;
}

body.halloween .shop-card,
body.halloween .illegal-card,
body.halloween .video-card {
  border-color: rgba(150, 80, 210, 0.32);
}

body.halloween .shop-card:hover,
body.halloween .illegal-card:hover {
  border-color: rgba(255, 122, 24, 0.75);
  box-shadow: 0 14px 36px rgba(255, 90, 0, 0.18);
}

body.halloween .metier-card:hover,
body.halloween .feat-card:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 122, 24, 0.45);
}

body.halloween .nav-drawer {
  background: rgba(12, 6, 20, 0.98);
}

/* ── Pages légales : le vert codé en dur passe à l'orange ── */
body.halloween .legal-wrap h1 span,
body.halloween .legal-section h2,
body.halloween .legal-section ul li::before,
body.halloween .legal-section a,
body.halloween .cgu-ariane a:hover,
body.halloween .cgu-badge,
body.halloween .cgu-essentiel-titre,
body.halloween .cgu-retour:hover,
body.halloween .cgu-sommaire a:hover span {
  color: #ff7a18;
}

body.halloween .legal-note {
  background: rgba(255, 122, 24, 0.1);
  border-left-color: #ff7a18;
}

body.halloween .cgu-badge {
  background: rgba(255, 122, 24, 0.12);
  border-color: rgba(255, 122, 24, 0.35);
}

body.halloween .cgu-badge::before {
  background: #ff7a18;
  box-shadow: 0 0 10px #ff7a18;
}

body.halloween .cgu-essentiel li::before { background: #ff7a18; }

body.halloween .cgu-hero h1 span {
  -webkit-text-stroke: 1.5px #ff7a18;
}

body.halloween .cgu-essentiel {
  border-top-color: #ff7a18;
}

body.halloween .cgu-sommaire a:hover {
  background: rgba(255, 122, 24, 0.08);
  border-bottom-color: #ff7a18;
}

body.halloween .cgu-hero {
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(255, 122, 24, 0.18), transparent 70%),
    linear-gradient(90deg, rgba(12, 6, 20, 0.9) 0%, rgba(12, 6, 20, 0.6) 55%, rgba(12, 6, 20, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 6, 20, 0.55) 0%, rgba(12, 6, 20, 0.92) 75%, #0c0614 100%),
    url("../boutique/banniere.jpg") center / cover no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .hw-sky { display: none; }
}

@media (max-width: 640px) {
  .hw-banner { gap: 8px; padding: 0 10px; }
  .hw-banner span { letter-spacing: 0.35px; font-size: 11.5px; }
  .hw-banner-mark { width: 28px; height: 28px; }
  .hw-logo { height: 34px; }
  .hw-pill { max-width: calc(100% - 8px); gap: 8px; }
  .hw-pill span { font-size: 12px; letter-spacing: 0.4px; }
}
