/* =========================================================
   GameHost Halloween 2026
   Couche visuelle globale pour WHMCS Twenty-One personnalisé
   ========================================================= */

:root {
  --hw-orange: #ff7a00;
  --hw-orange-light: #ffae42;
  --hw-purple: #9a4dff;
  --hw-purple-deep: #4b167d;
  --hw-night: #08050d;
  --hw-panel: #130d1d;
  --hw-panel-2: #1b1028;
  --hw-border: rgba(255, 122, 0, .24);
  --hw-glow: 0 0 18px rgba(255, 122, 0, .22), 0 0 42px rgba(154, 77, 255, .12);
}

body.gh-halloween {
  --primary: var(--hw-orange);
  --semi-primary: #ff8f24;
  --darkBlue: var(--hw-night);
  --semi-dark: var(--hw-panel);
  --semi-dark-2: var(--hw-panel-2);
  --semi-dark-3: #0f0916;
  --border: #2e1c3d;
  background:
    radial-gradient(circle at 15% 12%, rgba(154,77,255,.13), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(255,122,0,.08), transparent 22%),
    #08050d;
  color: #f4eff8;
}

body.gh-halloween::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9996;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

/* Atmosphère décorative */
.gh-halloween-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9995;
}

.gh-hw-moon {
  position: absolute;
  width: 130px;
  height: 130px;
  right: 4vw;
  top: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 28%, rgba(105,61,24,.15) 0 7%, transparent 8%),
    radial-gradient(circle at 66% 61%, rgba(105,61,24,.12) 0 10%, transparent 11%),
    radial-gradient(circle at 50% 50%, #ffd289 0%, #ff9a32 65%, #ff6a00 100%);
  box-shadow: 0 0 45px rgba(255,122,0,.35), 0 0 110px rgba(154,77,255,.12);
  opacity: .78;
}

.gh-hw-moon::after {
  content: "";
  position: absolute;
  width: 118%;
  height: 118%;
  inset: -9%;
  border-radius: 50%;
  border: 1px solid rgba(255,177,85,.18);
  animation: ghHwPulse 4s ease-in-out infinite;
}

.gh-hw-bat {
  position: absolute;
  color: rgba(20, 9, 29, .92);
  font-size: 24px;
  text-shadow: -9px 1px 0 currentColor, 9px 1px 0 currentColor;
  transform: rotate(20deg) scaleX(1.6) scaleY(.55);
  filter: drop-shadow(0 0 4px rgba(154,77,255,.35));
  opacity: .85;
}
.gh-hw-bat-1 { right: 16vw; top: 125px; animation: ghHwBat1 8s ease-in-out infinite; }
.gh-hw-bat-2 { right: 22vw; top: 185px; font-size: 16px; animation: ghHwBat2 11s ease-in-out infinite; }
.gh-hw-bat-3 { left: 8vw; top: 155px; font-size: 14px; animation: ghHwBat3 13s ease-in-out infinite; }

.gh-hw-fog {
  position: absolute;
  width: 65vw;
  height: 170px;
  border-radius: 50%;
  filter: blur(45px);
  background: rgba(105,57,145,.14);
  opacity: .45;
}
.gh-hw-fog-1 { left: -18vw; top: 46vh; animation: ghHwFog 14s ease-in-out infinite alternate; }
.gh-hw-fog-2 { right: -20vw; top: 68vh; animation: ghHwFog 18s ease-in-out -4s infinite alternate-reverse; }

/* Bandeau supérieur */
.gh-halloween .gh-top-news {
  background: linear-gradient(90deg, #12091b 0%, #261035 48%, #160b20 100%) !important;
  border-bottom: 1px solid rgba(255,122,0,.32) !important;
  box-shadow: 0 6px 28px rgba(0,0,0,.28);
}
.gh-halloween .gh-top-news-badge {
  background: rgba(255,122,0,.12) !important;
  border-color: rgba(255,122,0,.34) !important;
  color: #ffb35d !important;
}
.gh-halloween .gh-top-news-dot,
.gh-halloween .gh-top-news-online {
  background: var(--hw-orange) !important;
  box-shadow: 0 0 12px rgba(255,122,0,.9) !important;
}
.gh-halloween .gh-top-news-primary {
  background: linear-gradient(135deg, #ff7a00, #d84b00) !important;
  border-color: #ff8d26 !important;
  box-shadow: 0 8px 26px rgba(255,122,0,.22);
}

/* Navigation */
.gh-halloween .theme-navbar {
  background: rgba(8,5,13,.94) !important;
  border-bottom: 1px solid rgba(154,77,255,.18);
  box-shadow: 0 10px 36px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}
.gh-halloween .theme-navbar .links > a,
.gh-halloween .theme-navbar .links > li > a,
.gh-halloween .theme-navbar a {
  transition: color .2s ease, text-shadow .2s ease, border-color .2s ease;
}
.gh-halloween .theme-navbar a:hover {
  color: #ff9c3d !important;
  text-shadow: 0 0 14px rgba(255,122,0,.30);
}

/* Boutons / CTA */
.gh-halloween .--fill-primary,
.gh-halloween .btn-primary,
.gh-halloween .page-item.active .page-link,
.gh-halloween .spotlight-tld .btn:not(.domain-contact-support) {
  background: linear-gradient(135deg, #ff7a00 0%, #d95000 100%) !important;
  border-color: #ff8e2a !important;
  box-shadow: 0 8px 22px rgba(255,122,0,.18);
}
.gh-halloween .--fill-primary:hover,
.gh-halloween .btn-primary:hover {
  background: linear-gradient(135deg, #ff912f 0%, #ef650a 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255,122,0,.28);
}

/* Titres et accents */
.gh-halloween .primary-color,
.gh-halloween .se-head .se-title-1,
.gh-halloween a:not(.btn):not(.theme-btn):hover {
  color: #ff9635;
}
.gh-halloween .se-head .se-title-2,
.gh-halloween .products-headline .title-1,
.gh-halloween .header-lined h1 {
  text-shadow: 0 0 24px rgba(154,77,255,.12);
}

/* Cartes / panneaux WHMCS */
.gh-halloween .card,
.gh-halloween .panel,
.gh-halloween .list-group-item,
.gh-halloween .modal-content,
.gh-halloween .domain-promo-box,
.gh-halloween .spotlight-tlds,
.gh-halloween .sidebar .card {
  background-color: rgba(19,13,29,.96) !important;
  border-color: rgba(154,77,255,.20) !important;
}
.gh-halloween .card:hover,
.gh-halloween .panel:hover {
  border-color: rgba(255,122,0,.24) !important;
}
.gh-halloween .card-header,
.gh-halloween .panel-heading {
  background: linear-gradient(90deg, rgba(154,77,255,.08), rgba(255,122,0,.04)) !important;
  border-bottom-color: rgba(154,77,255,.16) !important;
}

/* Champs */
.gh-halloween .form-control,
.gh-halloween select.form-control,
.gh-halloween .input-group-text {
  background-color: #0f0916 !important;
  color: #f7f2fa !important;
  border-color: #332043 !important;
}
.gh-halloween .form-control:focus,
.gh-halloween select.form-control:focus {
  border-color: rgba(255,122,0,.7) !important;
  box-shadow: 0 0 0 .2rem rgba(255,122,0,.10) !important;
}

/* Breadcrumb */
.gh-halloween .master-breadcrumb {
  background: #0d0813 !important;
  border-bottom: 1px solid rgba(154,77,255,.12);
}

/* Footer */
.gh-halloween .theme-footer {
  position: relative;
  background:
    radial-gradient(circle at 80% 0%, rgba(154,77,255,.11), transparent 35%),
    linear-gradient(180deg, #0b0710, #060409) !important;
  border-top: 1px solid rgba(255,122,0,.18);
}
.gh-halloween .theme-footer::before {
  content: "HALLOWEEN CHEZ GAMEHOST";
  display: block;
  text-align: center;
  font-family: var(--third-font);
  font-size: 11px;
  letter-spacing: 4px;
  font-weight: 700;
  color: rgba(255,166,72,.65);
  padding-top: 18px;
}

/* Petit détail citrouille CSS devant certains grands titres */
.gh-halloween .se-head .se-title-2::before,
.gh-halloween .products-headline .title-1::before,
.gh-halloween .header-lined h1::before {
  content: "🎃";
  display: inline-block;
  margin-right: 10px;
  font-size: .72em;
  filter: drop-shadow(0 0 8px rgba(255,122,0,.35));
  transform: translateY(-1px);
}

/* Scrollbar */
.gh-halloween ::-webkit-scrollbar { width: 10px; height: 10px; }
.gh-halloween ::-webkit-scrollbar-track { background: #08050d; }
.gh-halloween ::-webkit-scrollbar-thumb {
  background: linear-gradient(#6f2dbd, #ff7a00);
  border-radius: 10px;
  border: 2px solid #08050d;
}

@keyframes ghHwPulse {
  0%,100% { transform: scale(.97); opacity: .25; }
  50% { transform: scale(1.06); opacity: .65; }
}
@keyframes ghHwBat1 {
  0%,100% { transform: translate(0,0) rotate(18deg) scaleX(1.6) scaleY(.55); }
  50% { transform: translate(-34px,14px) rotate(6deg) scaleX(1.45) scaleY(.6); }
}
@keyframes ghHwBat2 {
  0%,100% { transform: translate(0,0) rotate(-14deg) scaleX(1.5) scaleY(.55); }
  50% { transform: translate(30px,-12px) rotate(8deg) scaleX(1.65) scaleY(.48); }
}
@keyframes ghHwBat3 {
  0%,100% { transform: translate(0,0) rotate(22deg) scaleX(1.5) scaleY(.55); }
  50% { transform: translate(46px,20px) rotate(2deg) scaleX(1.65) scaleY(.50); }
}
@keyframes ghHwFog {
  from { transform: translateX(-5vw) scale(1); opacity: .22; }
  to { transform: translateX(12vw) scale(1.12); opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-halloween *, .gh-halloween *::before, .gh-halloween *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 991.98px) {
  .gh-hw-moon { width: 82px; height: 82px; top: 120px; right: 4vw; opacity: .55; }
  .gh-hw-bat-2, .gh-hw-bat-3 { display: none; }
}

@media (max-width: 575.98px) {
  .gh-hw-moon { width: 58px; height: 58px; top: 132px; opacity: .42; }
  .gh-hw-bat { display: none; }
  .gh-halloween .theme-footer::before { letter-spacing: 2px; font-size: 9px; }
  .gh-halloween .se-head .se-title-2::before,
  .gh-halloween .products-headline .title-1::before,
  .gh-halloween .header-lined h1::before { margin-right: 6px; }
}


/* ==========================================================
   ANIMATION HALLOWEEN GLOBALE — BAS DE TOUTES LES PAGES
   Injectée depuis footer.tpl ; aucun élément n'est cliquable.
   ========================================================== */
.gh-halloween .gh-hw-bottom-scene {
  position: relative;
  height: 155px;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  user-select: none;
  background:
    radial-gradient(ellipse at 50% 105%, rgba(111,45,189,.18), transparent 55%),
    linear-gradient(180deg, rgba(6,4,9,0) 0%, rgba(8,5,13,.65) 42%, #050307 100%);
  border-top: 1px solid rgba(255,122,0,.08);
}

.gh-halloween .gh-hw-ground {
  position: absolute;
  z-index: 5;
  left: -3%;
  right: -3%;
  bottom: -28px;
  height: 74px;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  background: linear-gradient(180deg, #100b16 0%, #050307 70%);
  box-shadow: 0 -8px 30px rgba(154,77,255,.10);
}

.gh-halloween .gh-hw-graveyard {
  position: absolute;
  z-index: 4;
  inset: 0;
}

.gh-halloween .gh-hw-tomb {
  position: absolute;
  bottom: 27px;
  width: 34px;
  height: 53px;
  border: 1px solid rgba(211,196,224,.22);
  border-radius: 17px 17px 4px 4px;
  background: linear-gradient(145deg, #292131, #151019 70%);
  box-shadow: inset -5px -5px 10px rgba(0,0,0,.35), 0 0 18px rgba(154,77,255,.08);
  transform-origin: bottom center;
  animation: ghHwTombSway 5.5s ease-in-out infinite;
}
.gh-halloween .gh-hw-tomb::before {
  content: "RIP";
  position: absolute;
  top: 16px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 800;
  color: rgba(239,228,245,.42);
}
.gh-halloween .gh-hw-tomb i {
  position: absolute;
  width: 16px;
  height: 4px;
  left: 8px;
  bottom: -4px;
  border-radius: 50%;
  background: rgba(0,0,0,.52);
}
.gh-halloween .gh-hw-tomb-1 { left: 7%; transform: rotate(-6deg); animation-delay: -.9s; }
.gh-halloween .gh-hw-tomb-2 { left: 26%; width: 39px; height: 62px; transform: rotate(4deg); animation-delay: -2.1s; }
.gh-halloween .gh-hw-tomb-3 { left: 48%; width: 30px; height: 47px; transform: rotate(-3deg); animation-delay: -3.4s; }
.gh-halloween .gh-hw-tomb-4 { right: 25%; width: 42px; height: 66px; transform: rotate(5deg); animation-delay: -1.6s; }
.gh-halloween .gh-hw-tomb-5 { right: 7%; width: 33px; height: 51px; transform: rotate(-5deg); animation-delay: -4.2s; }

.gh-halloween .gh-hw-pumpkin,
.gh-halloween .gh-hw-ghost {
  position: absolute;
  z-index: 8;
  display: block;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255,122,0,.35));
}
.gh-halloween .gh-hw-pumpkin { bottom: 24px; font-size: 29px; animation: ghHwPumpkinGlow 2.8s ease-in-out infinite; }
.gh-halloween .gh-hw-pumpkin-1 { left: 16%; animation-delay: -.8s; }
.gh-halloween .gh-hw-pumpkin-2 { right: 15%; font-size: 25px; animation-delay: -1.9s; }

.gh-halloween .gh-hw-ghost {
  font-size: 27px;
  opacity: .72;
  filter: grayscale(.25) drop-shadow(0 0 12px rgba(205,170,255,.35));
}
.gh-halloween .gh-hw-ghost-1 { left: 36%; bottom: 52px; animation: ghHwGhostFloat1 6.5s ease-in-out infinite; }
.gh-halloween .gh-hw-ghost-2 { right: 34%; bottom: 62px; font-size: 22px; animation: ghHwGhostFloat2 7.4s ease-in-out infinite -2.8s; }

.gh-halloween .gh-hw-scene-fog {
  position: absolute;
  z-index: 7;
  left: -20%;
  width: 140%;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(198,174,215,.14) 0%, rgba(120,82,146,.08) 45%, transparent 72%);
  filter: blur(8px);
}
.gh-halloween .gh-hw-scene-fog-1 { bottom: 20px; animation: ghHwBottomFog 9s ease-in-out infinite alternate; }
.gh-halloween .gh-hw-scene-fog-2 { bottom: 48px; opacity: .55; animation: ghHwBottomFog2 12s ease-in-out infinite alternate-reverse; }

.gh-halloween .gh-hw-fence {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 23px;
  height: 44px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  opacity: .28;
}
.gh-halloween .gh-hw-fence::before,
.gh-halloween .gh-hw-fence::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #4c3b55;
  box-shadow: 0 0 6px rgba(154,77,255,.12);
}
.gh-halloween .gh-hw-fence::before { bottom: 11px; }
.gh-halloween .gh-hw-fence::after { bottom: 27px; }
.gh-halloween .gh-hw-fence span {
  position: relative;
  width: 3px;
  height: 42px;
  background: #5b4865;
}
.gh-halloween .gh-hw-fence span::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -3px;
  width: 9px;
  height: 9px;
  background: #5b4865;
  transform: rotate(45deg);
}

@keyframes ghHwGhostFloat1 {
  0%,100% { transform: translate(0, 8px) rotate(-5deg); opacity: .38; }
  35% { transform: translate(24px, -18px) rotate(4deg); opacity: .82; }
  70% { transform: translate(48px, 2px) rotate(-2deg); opacity: .52; }
}
@keyframes ghHwGhostFloat2 {
  0%,100% { transform: translate(0, 5px) scale(.92); opacity: .3; }
  45% { transform: translate(-34px, -22px) scale(1.08); opacity: .7; }
  75% { transform: translate(-58px, -4px) scale(.98); opacity: .46; }
}
@keyframes ghHwPumpkinGlow {
  0%,100% { transform: translateY(0) rotate(-2deg); filter: drop-shadow(0 0 7px rgba(255,122,0,.22)); }
  50% { transform: translateY(-4px) rotate(2deg); filter: drop-shadow(0 0 16px rgba(255,122,0,.62)); }
}
@keyframes ghHwBottomFog {
  from { transform: translateX(-7%) scaleX(.94); opacity: .45; }
  to { transform: translateX(9%) scaleX(1.08); opacity: .8; }
}
@keyframes ghHwBottomFog2 {
  from { transform: translateX(5%) scaleX(1.04); opacity: .28; }
  to { transform: translateX(-10%) scaleX(.92); opacity: .62; }
}
@keyframes ghHwTombSway {
  0%,100% { margin-bottom: 0; }
  50% { margin-bottom: 2px; }
}

@media (max-width: 767.98px) {
  .gh-halloween .gh-hw-bottom-scene { height: 120px; }
  .gh-halloween .gh-hw-tomb-2,
  .gh-halloween .gh-hw-tomb-4,
  .gh-halloween .gh-hw-ghost-2 { display: none; }
  .gh-halloween .gh-hw-tomb { transform: scale(.82); transform-origin: bottom center; }
  .gh-halloween .gh-hw-ghost-1 { left: 52%; bottom: 43px; font-size: 23px; }
  .gh-halloween .gh-hw-pumpkin { font-size: 23px; }
  .gh-halloween .gh-hw-fence { opacity: .20; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-halloween .gh-hw-bottom-scene *,
  .gh-halloween .gh-hw-bottom-scene *::before,
  .gh-halloween .gh-hw-bottom-scene *::after {
    animation: none !important;
  }
}
