/* ================================
   HOUSEHANTED MEDIA CENTER
   Thème final
   ================================ */

/* Fond principal */
html,
body {
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 140, 255, 0.08), transparent 34%),
    radial-gradient(circle at 95% 15%, rgba(220, 20, 60, 0.05), transparent 28%),
    #08111d !important;
}

body::before {
  content: "";
  display: block;
  width: min(1720px, calc(100% - 32px));
  height: 165px;
  margin: 14px auto 6px;

  background-image: url("/images/househanted-banner.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;

  border-radius: 15px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(14, 165, 233, 0.12);
}

/* Réduire l'espace après la bannière */
#page_wrapper {
  padding-top: 8px !important;
}

/* Barre de recherche */
#information-widgets {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

#information-widgets form {
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.24) !important;
}

/* Titres des sections */
h2 {
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.10);
}

/* Cartes principales */
.service-card,
.bookmark,
[class*="service-card"] {
  border: 1px solid rgba(100, 180, 255, 0.10) !important;
  border-radius: 13px !important;
  background: rgba(20, 32, 49, 0.82) !important;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease !important;
}

/* Survol PC */
.service-card:hover,
.bookmark:hover,
[class*="service-card"]:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 174, 255, 0.36) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.32),
    0 0 18px rgba(0, 150, 255, 0.10) !important;
}

/* Widgets à l'intérieur des cartes */
.service-card [class*="bg-theme"],
[class*="service-card"] [class*="bg-theme"] {
  border-radius: 9px !important;
}

/* Badges d'état */
.service-card [class*="text-emerald"],
[class*="service-card"] [class*="text-emerald"] {
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.30);
}

/* Scrollbar discrète */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #08111d;
}

::-webkit-scrollbar-thumb {
  background: rgba(71, 104, 143, 0.58);
  border-radius: 12px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 165, 233, 0.55);
}

/* Téléphone et tablette */
@media (max-width: 768px) {
  body::before {
    width: calc(100% - 16px);
    height: 105px;
    margin: 8px auto 2px;
    border-radius: 11px;
    background-position: center;
  }

  #page_wrapper {
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-top: 4px !important;
  }

  #information-widgets {
    margin-bottom: 12px !important;
  }

  h2 {
    font-size: 1.35rem !important;
    margin-top: 16px !important;
    margin-bottom: 10px !important;
  }

  .service-card,
  [class*="service-card"] {
    border-radius: 12px !important;
  }
}

/* Petit téléphone */
@media (max-width: 480px) {
  body::before {
    height: 82px;
    background-size: cover;
  }
}
