/* AKDB — landing : hero, cartes catégories, bandeau CTA, footer riche.
   Le chrome (topbar, nav, variables) vient de style.css. */

/* ---------- hero ---------- */

.hero {
  min-height: 520px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(8,11,15,.35), var(--bg) 96%),
    radial-gradient(ellipse at 50% 35%, rgba(195,144,57,.14), transparent 35%),
    radial-gradient(circle at 15% 55%, rgba(43,59,87,.3), transparent 30%),
    radial-gradient(circle at 88% 45%, rgba(74,57,38,.24), transparent 30%),
    url("images/background_v2.jpg") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 900px;
  height: 900px;
  right: -220px;
  top: -320px;
  opacity: .38;
  background:
    repeating-radial-gradient(circle, transparent 0 68px, rgba(201,155,71,.09) 69px 70px),
    linear-gradient(45deg, transparent 49.8%, rgba(201,155,71,.08) 50%, transparent 50.2%);
  transform: rotate(14deg);
  pointer-events: none;
}

.heroin {
  width: min(850px, calc(100% - 36px));
  text-align: center;
  padding: 52px 0 72px;
}

.hero h1 { margin: 12px 0 0; }
.hero h1 img {
  width: min(340px, 74vw);
  height: auto;
  filter: drop-shadow(0 12px 34px rgba(0,0,0,.45));
}

.hero-tagline {
  margin-top: 16px;
  color: #d2ab62;
  font-family: var(--display);
  font-size: 16px;
}
.intro {
  max-width: 640px;
  margin: 10px auto 26px;
  color: #abb3be;
}

.herosearch {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
  border: 1px solid #384557;
  border-radius: 8px;
  background: #121820;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  cursor: text;
}
.herosearch:focus-within { border-color: #536070; }
.herosearch svg { width: 19px; height: 19px; color: #9aa5b4; flex: 0 0 auto; }
.herosearch input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 15px;
}
.herosearch input::placeholder { color: #7e8897; }
.herosearch kbd { border-color: #745a29; color: #d4a94f; }

.popular {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #8e98a6;
  font-size: 12px;
}
.popular a {
  padding: 4px 10px;
  border: 1px solid #293341;
  border-radius: 5px;
  background: #161c24;
  transition: border-color .15s ease, color .15s ease;
}
.popular a:hover { border-color: #566274; color: #fff; }

/* ---------- sections ---------- */

.section {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 6px;
}
.section:last-of-type { padding-bottom: 56px; }

.title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 22px;
  color: #ddd8ce;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.title::before,
.title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border-soft);
}

/* ---------- cartes catégories ---------- */

.hotlinks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.hot {
  min-height: 150px;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: 1fr auto;
  gap: 13px;
  position: relative;
  padding: 18px 18px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #14181f);
  transition: border-color .15s ease, background .15s ease;
}
.hot:hover { border-color: #465161; background: var(--surface-2); }
.hot .icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #343e4b;
  border-radius: 7px;
  background: #10151b;
  color: var(--accent, var(--gold-soft));
  font-size: 26px;
}
.hot .icon img { width: 42px; height: 42px; border-radius: 5px; }
.hot h3 {
  margin: 1px 0 4px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hot p { margin: 0; color: #9da6b2; font-size: 12px; }
/* bandeau CTA en pied de carte, plus sombre que la carte */
.hotmeta {
  grid-column: 1 / -1;
  align-self: end;
  margin: 8px -18px 0;
  padding: 11px 40px 11px 18px;
  background: #0b0e13;
  border-top: 1px solid var(--border-soft);
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--accent, var(--gold-soft));
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  transition: background .15s ease;
}
.hot:hover .hotmeta { background: #101520; }
.arrow {
  position: absolute;
  right: 16px;
  bottom: 11px;
  color: var(--accent, var(--gold-soft));
  transition: transform .15s ease;
}
.hot:hover .arrow { transform: translateX(3px); }

/* ---------- bandeau CTA ---------- */

.featured {
  min-height: 124px;
  display: grid;
  grid-template-columns: 300px 1fr auto;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-deep);
  overflow: hidden;
}
.art {
  align-self: stretch;
  position: relative;
  overflow: hidden;
  /* lueur dorée + fines particules (tuiles répétées, tailles premières entre elles
     pour casser la régularité) ; le visuel est posé au-dessus via ::before */
  background:
    radial-gradient(circle at 41px 33px, rgba(240,208,128,.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 118px 86px, rgba(224,182,82,.55) 0 1.2px, transparent 2px),
    radial-gradient(circle at 187px 141px, rgba(240,208,128,.7) 0 .8px, transparent 1.5px),
    radial-gradient(circle at 73px 158px, rgba(224,182,82,.45) 0 1px, transparent 1.7px),
    radial-gradient(circle at 219px 58px, rgba(240,208,128,.6) 0 .9px, transparent 1.6px),
    radial-gradient(ellipse at 38% 52%, rgba(201,155,71,.3), transparent 62%),
    #10151c;
  background-repeat: repeat, repeat, repeat, repeat, repeat, no-repeat;
  background-size: 233px 199px, 191px 167px, 259px 211px, 173px 227px, 281px 179px, auto;
  animation: art-drift 90s linear infinite;
}
/* remontée lente : chaque couche décale d'une tuile exacte → boucle invisible */
@keyframes art-drift {
  to { background-position: 0 -199px, 0 -167px, 0 -211px, 0 -227px, 0 -179px, 0 0; }
}
.art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 55%, var(--surface-deep)),
    url("icons/web_ui/adventure_visu.png") center / cover no-repeat;
}
@media (prefers-reduced-motion: reduce) { .art { animation: none; } }
.featured h2 {
  margin: 0 0 5px;
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.featured p { margin: 0; color: #a4adb8; }
.cta {
  min-width: 170px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #9f782f;
  border-radius: 5px;
  color: #e1b75e;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
  transition: background .15s ease, color .15s ease;
}
.cta:hover { background: var(--gold); color: #171109; }

/* ---------- footer ---------- */

.homefoot {
  border-top: 1px solid var(--border-soft);
  background: #0c0f13;
}
.foot {
  width: min(1500px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  margin: 0 auto;
  padding: 40px 0 44px;
}
.foot p {
  max-width: 280px;
  margin: 14px 0 0;
  color: #858f9e;
  font-size: 12px;
}
.col b {
  display: block;
  margin-bottom: 12px;
  color: #aeb6c1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.col a {
  display: block;
  margin: 8px 0;
  color: #7f8998;
  font-size: 12px;
}
.col a:hover { color: #fff; }
.footmeta {
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  padding: 1rem;
  border-top: 1px solid var(--border-soft);
}

/* ---------- responsive ---------- */

@media (max-width: 1250px) {
  .hotlinks { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 850px) {
  .featured { grid-template-columns: 1fr; padding: 0 20px 22px; }
  .art { min-height: 110px; margin: 0 -20px; }
  .foot { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 620px) {
  .hero { min-height: 460px; }
  .hotlinks { grid-template-columns: 1fr; }
  .section { width: calc(100% - 32px); }
}
