/* =========================================================================
   Accueil du Wiki Brainrot Fortnite — /wiki
   Feuille dediee : elle ne surcharge que la page d'accueil (classe
   .wiki-home-page). Les guides internes continuent d'utiliser wiki.css
   sans modification. Toutes les couleurs derivent des variables --kui-*
   du theme sombre du site.
   ========================================================================= */

.wiki-home-page {
  --whome-radius: 16px;
  --whome-line: rgba(118, 146, 255, .22);
  --whome-surface: #141a2e;
  --whome-surface-2: #111627;
  --whome-purple: #8b5cf6;
  --whome-cyan: #38bdf8;
  --whome-green: #4ade80;
  --whome-gold: #fbbf24;
}

/* ---------- Fil d'Ariane ------------------------------------------------ */
.wiki-home-page .wiki-breadcrumbs { margin: 0 0 14px; }

/* ---------- Hero -------------------------------------------------------- */
.wiki-home-page .whome-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 24px;
  min-height: 320px;
  max-height: 380px;
  padding: 26px clamp(20px, 2.4vw, 34px);
  border: 1px solid var(--whome-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 12%, rgba(139, 92, 246, .30), transparent 46%),
    radial-gradient(circle at 18% 90%, rgba(56, 189, 248, .16), transparent 44%),
    linear-gradient(135deg, #171c33 0%, #1b1e43 55%, #241a4d 100%);
  box-shadow: 0 22px 54px rgba(6, 9, 24, .42);
}

.wiki-home-page .whome-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.wiki-home-page .whome-kicker {
  color: #a5b4fc;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wiki-home-page .whome-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.03em;
}
.wiki-home-page .whome-title em {
  font-style: normal;
  background: linear-gradient(100deg, #c4b5fd, #a78bfa 55%, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wiki-home-page .whome-subtitle {
  margin: 0;
  color: #e8ecf9;
  font-size: clamp(.98rem, 1.25vw, 1.12rem);
  font-weight: 700;
  line-height: 1.35;
}

.wiki-home-page .whome-description {
  margin: 0;
  max-width: 56ch;
  color: #aab4cd;
  font-size: .88rem;
  line-height: 1.5;
}

/* ---------- Recherche --------------------------------------------------- */
.wiki-home-page .whome-searchbar {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: min(620px, 100%);
  margin-top: 6px;
  padding: 5px;
  border: 1px solid rgba(139, 92, 246, .55);
  border-radius: 14px;
  background: rgba(10, 12, 26, .62);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .10);
}
.wiki-home-page .whome-searchbar:focus-within {
  border-color: var(--whome-purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .24);
}

.wiki-home-page .wiki-search.whome-search {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 0 10px;
  gap: 10px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.wiki-home-page .whome-search-icon { flex: 0 0 auto; width: 19px; height: 19px; fill: #8d99b8; }
.wiki-home-page .wiki-search.whome-search input {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  color: #fff;
  font-size: .95rem;
}
.wiki-home-page .wiki-search.whome-search input::placeholder { color: #8089a4; }

.wiki-home-page .whome-search-clear {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 44px;
  min-height: 44px;
  color: #8d99b8;
  font-size: .76rem;
}
.wiki-home-page .whome-search-clear:hover { color: #fff; }

.wiki-home-page .whome-search-submit {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none;
  min-height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d4df0);
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}
.wiki-home-page .whome-search-submit:hover { filter: brightness(1.12); }
.wiki-home-page .whome-search-submit:active { transform: translateY(1px); }

.wiki-home-page .whome-search-examples {
  margin: 8px 0 0;
  color: #7f8aa8;
  font-size: .78rem;
}

/* ---------- Selecteur de langue ---------------------------------------- */
.wiki-home-page .whome-hero .wiki-language-bar {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  background: rgba(10, 12, 26, .55);
  backdrop-filter: blur(8px);
}
.wiki-home-page .whome-hero .wiki-language-label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wiki-home-page .whome-hero .wiki-language-link {
  min-width: 44px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  color: #b9c2da;
  background: transparent;
  font-size: .8rem;
  font-weight: 800;
}
.wiki-home-page .whome-hero .wiki-language-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}
.wiki-home-page .whome-hero .wiki-language-link.is-current {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d4df0);
}

/* ---------- Visuel du hero --------------------------------------------- */
.wiki-home-page .whome-hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(167, 139, 250, .34), transparent 62%),
    linear-gradient(160deg, #221a4a, #141a34);
}
.wiki-home-page .whome-hero-glow {
  position: absolute;
  inset: 12% 16% 24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 181, 253, .34), transparent 68%);
  filter: blur(18px);
}
.wiki-home-page .whome-hero-sprites { position: absolute; inset: 0; }
.wiki-home-page .whome-hero-sprite {
  position: absolute;
  filter: drop-shadow(0 10px 22px rgba(6, 9, 24, .55));
}
.wiki-home-page .whome-hero-sprite--1 { left: 26%; top: 16%; width: 46%; }
.wiki-home-page .whome-hero-sprite--2 { left: 6%;  top: 46%; width: 26%; opacity: .85; }
.wiki-home-page .whome-hero-sprite--3 { right: 7%; top: 24%; width: 24%; opacity: .8; }
.wiki-home-page .whome-hero-sprite--4 { right: 16%; bottom: 22%; width: 20%; opacity: .7; }

.wiki-home-page .whome-hero-quote {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: 250px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(10, 12, 26, .62);
  backdrop-filter: blur(8px);
}
.wiki-home-page .whome-hero-quote blockquote {
  margin: 0;
  color: #e2e6f5;
  font-size: .8rem;
  font-style: italic;
  line-height: 1.35;
}
.wiki-home-page .whome-hero-quote figcaption {
  margin-top: 4px;
  color: #8d99b8;
  font-size: .72rem;
  font-weight: 700;
}

/* ---------- Statistiques ------------------------------------------------ */
.wiki-home-page .whome-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.wiki-home-page .whome-stat {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 14px;
  padding: 16px 18px;
  border: 1px solid var(--whome-line);
  border-left: 3px solid var(--whome-accent, var(--whome-purple));
  border-radius: var(--whome-radius);
  background: var(--whome-surface);
}
.wiki-home-page .whome-stat--purple { --whome-accent: var(--whome-purple); }
.wiki-home-page .whome-stat--blue   { --whome-accent: var(--whome-cyan); }
.wiki-home-page .whome-stat--gold   { --whome-accent: var(--whome-gold); }
.wiki-home-page .whome-stat--green  { --whome-accent: var(--whome-green); }

.wiki-home-page .whome-stat-icon {
  grid-row: 1 / span 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--whome-accent) 16%, transparent);
}
.wiki-home-page .whome-stat-icon svg { width: 21px; height: 21px; fill: var(--whome-accent); }
.wiki-home-page .whome-stat strong {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.1;
}
.wiki-home-page .whome-stat-label { color: #dbe1f0; font-size: .85rem; font-weight: 700; }
.wiki-home-page .whome-stat small { grid-column: 2; color: #7f8aa8; font-size: .74rem; }

/* ---------- Sections ---------------------------------------------------- */
.wiki-home-page .whome-section { margin-top: 30px; }
.wiki-home-page .whome-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.wiki-home-page .whome-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 900;
}
.wiki-home-page .whome-section-intro {
  margin: 5px 0 0;
  max-width: 70ch;
  color: #99a3bd;
  font-size: .86rem;
  line-height: 1.45;
}
.wiki-home-page .whome-section-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--whome-line);
  border-radius: 10px;
  color: #cbd3e8;
  background: var(--whome-surface);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.wiki-home-page .whome-section-action:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, .6);
  background: rgba(139, 92, 246, .14);
}

/* ---------- Cartes de categories --------------------------------------- */
.wiki-home-page .whome-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.wiki-home-page .whome-cat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border: 1px solid var(--whome-line);
  border-radius: var(--whome-radius);
  color: inherit;
  background: var(--whome-surface);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.wiki-home-page a.whome-cat:hover,
.wiki-home-page a.whome-cat:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--whome-accent, var(--whome-purple)) 55%, transparent);
  background: var(--whome-surface-2);
}
.wiki-home-page .whome-cat.is-locked { border-style: dashed; opacity: .68; }

.wiki-home-page .whome-cat--progression { --whome-accent: var(--whome-cyan); }
.wiki-home-page .whome-cat--mutations   { --whome-accent: var(--whome-purple); }
.wiki-home-page .whome-cat--spawn       { --whome-accent: var(--whome-gold); }
.wiki-home-page .whome-cat--luck        { --whome-accent: #f472b6; }
.wiki-home-page .whome-cat--eternal     { --whome-accent: #818cf8; }
.wiki-home-page .whome-cat--lucky       { --whome-accent: var(--whome-green); }
.wiki-home-page .whome-cat--box         { --whome-accent: #fb923c; }
.wiki-home-page .whome-cat--llama       { --whome-accent: #2dd4bf; }
.wiki-home-page .whome-cat--wheel       { --whome-accent: #a78bfa; }
.wiki-home-page .whome-cat--mechanics   { --whome-accent: var(--whome-cyan); }

.wiki-home-page .whome-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--whome-accent, var(--whome-purple)) 16%, transparent);
}
.wiki-home-page .whome-cat-icon svg { width: 21px; height: 21px; fill: var(--whome-accent, var(--whome-purple)); }
.wiki-home-page .whome-cat-icon img { width: 24px; height: 24px; object-fit: contain; }

.wiki-home-page .whome-cat-body { display: grid; gap: 3px; min-width: 0; }
.wiki-home-page .whome-cat-title { color: #fff; font-size: .95rem; font-weight: 800; }
.wiki-home-page .whome-cat-desc {
  overflow: hidden;
  color: #99a3bd;
  font-size: .78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.wiki-home-page .whome-cat-count {
  justify-self: start;
  margin-top: 3px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #cbd3e8;
  background: rgba(255, 255, 255, .06);
  font-size: .72rem;
  font-weight: 700;
}
.wiki-home-page .whome-cat-arrow { color: #7f8aa8; font-size: 1rem; }
.wiki-home-page a.whome-cat:hover .whome-cat-arrow { color: var(--whome-accent, var(--whome-purple)); }

/* ---------- Guides recents --------------------------------------------- */
.wiki-home-page .whome-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.wiki-home-page .whome-recent {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--whome-line);
  border-radius: var(--whome-radius);
  color: inherit;
  background: var(--whome-surface);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.wiki-home-page .whome-recent:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, .5);
}
.wiki-home-page .whome-recent-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 84px;
  border-radius: 11px;
  background: linear-gradient(140deg, #1d2440, #161b31);
}
.wiki-home-page .whome-recent-media img { width: 100%; height: 100%; object-fit: cover; }
.wiki-home-page .whome-recent-media svg { width: 28px; height: 28px; fill: #6f7ca0; }

.wiki-home-page .whome-recent-body {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}
.wiki-home-page .whome-recent-title {
  overflow: hidden;
  color: #fff;
  font-size: .93rem;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.wiki-home-page .whome-recent-tag {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(139, 92, 246, .16);
  font-size: .71rem;
  font-weight: 800;
}
.wiki-home-page .whome-recent-date { color: #7f8aa8; font-size: .75rem; }

/* ---------- Panneau de resultats --------------------------------------- */
.wiki-home-page .whome-results { margin-top: 22px; }

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 1180px) {
  .wiki-home-page .whome-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .wiki-home-page .whome-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
    max-height: none;
  }
  .wiki-home-page .whome-hero-quote { display: none; }
}

@media (max-width: 780px) {
  .wiki-home-page .whome-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 58px 18px 22px;
  }
  .wiki-home-page .whome-hero-visual { display: none; }
  .wiki-home-page .whome-hero .wiki-language-bar { top: 14px; right: 14px; }
  .wiki-home-page .whome-searchbar { width: 100%; flex-wrap: wrap; }
  .wiki-home-page .wiki-search.whome-search { flex: 1 1 100%; }
  .wiki-home-page .whome-search-submit { flex: 1 1 100%; margin-top: 6px; }
  .wiki-home-page .whome-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wiki-home-page .whome-stat { padding: 13px; gap: 2px 10px; }
  .wiki-home-page .whome-stat strong { font-size: 1.3rem; }
  .wiki-home-page .whome-cat-grid,
  .wiki-home-page .whome-recent-grid { grid-template-columns: minmax(0, 1fr); }
  .wiki-home-page .whome-section-action { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .wiki-home-page .whome-stat-icon { width: 34px; height: 34px; }
  .wiki-home-page .whome-stat-icon svg { width: 17px; height: 17px; }
  .wiki-home-page .whome-recent { grid-template-columns: 76px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .wiki-home-page .whome-cat,
  .wiki-home-page .whome-recent,
  .wiki-home-page .whome-search-submit { transition: none; }
  .wiki-home-page a.whome-cat:hover,
  .wiki-home-page .whome-recent:hover { transform: none; }
}
