/* ============================================================
   PF2026 — Page spéciale Halloween (page-halloween.php)
   Fond clair (crème et lavande), accents orange citrouille et violet spectre.
   Titres en Creepster, texte dans la police du site.
   ============================================================ */

.hw {
  --hw-orange: #F07C1A; --hw-orange-dark: #B4530A; --hw-violet: #6E3BB5; --hw-violet-dark: #4A2A7E;
  --hw-ink: #241B30; --hw-muted: #625A70; --hw-paper: #FFFBF5; --hw-lav: #F5F0FF; --hw-line: #ECE4F5;
  background: var(--hw-paper); color: var(--hw-ink); overflow-x: clip;
}
.hw h1, .hw h2 { font-family: 'Creepster', var(--font); font-weight: 400; letter-spacing: .03em; }
.hw h3 { font-family: var(--font); }

/* ---------- Héros ---------- */
.hw-hero { position: relative; padding: 56px 0 60px; background: radial-gradient(circle at 85% 20%, #FFE7CC 0, transparent 45%), linear-gradient(180deg, #F3ECFF 0%, var(--hw-paper) 100%); overflow: hidden; }
.hw-hero__moon { position: absolute; right: 7%; top: 30px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF6D8, #FFD98A 70%); box-shadow: 0 0 80px 30px rgba(255, 210, 120, .35); }
.hw-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 30px; align-items: center; }
.hw-eyebrow { display: inline-block; padding: 6px 13px; border-radius: var(--r-full); background: #fff; border: 1px solid var(--hw-line); font-weight: 700; font-size: 13px; color: var(--hw-orange-dark); }
.hw-hero__title { margin: 14px 0 12px; font-size: clamp(44px, 6.4vw, 78px); line-height: 1; color: var(--hw-violet-dark); text-shadow: 3px 3px 0 #FFD3A6; }
.hw-hero__lead { max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--hw-muted); margin: 0 0 16px; }
.hw-countdown { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 16px; border-radius: 14px; background: var(--hw-orange); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 6px 18px rgba(240, 124, 26, .3); }
.hw-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-jump a { padding: 7px 13px; border-radius: var(--r-full); background: #fff; border: 1px solid var(--hw-line); font-weight: 600; font-size: 14px; color: var(--hw-ink); text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.hw-jump a:hover { border-color: var(--hw-orange); color: var(--hw-orange-dark); }

.hw-parade { position: relative; height: 360px; }
.hw-parade img { position: absolute; width: 150px; height: auto; filter: drop-shadow(0 12px 14px rgba(36, 27, 48, .22)); animation: hw-float 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
.hw-parade img:nth-child(1) { left: 34%; top: 0; width: 190px; }
.hw-parade img:nth-child(2) { left: 2%; top: 80px; width: 170px; }
.hw-parade img:nth-child(3) { right: 0; top: 120px; width: 140px; }
.hw-parade img:nth-child(4) { left: 26%; bottom: 0; width: 150px; }
.hw-parade img:nth-child(5) { right: 30%; bottom: 10px; width: 110px; }
@keyframes hw-float { 50% { transform: translateY(-12px) rotate(-3deg); } }

/* ---------- Sections ---------- */
.hw-section { padding: 64px 0; scroll-margin-top: 90px; }
.hw-section--tint { background: var(--hw-lav); }
.hw-section--night { background: linear-gradient(180deg, #EFE7FB, #F8F2FF); }
.hw-head { max-width: 760px; margin-bottom: 28px; }
.hw-kicker { display: inline-block; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--hw-orange-dark); }
.hw-head h2 { margin: 6px 0 10px; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.05; color: var(--hw-violet-dark); }
.hw-head p { margin: 0; color: var(--hw-muted); font-size: 16.5px; line-height: 1.6; }
.hw-more { margin: 22px 0 0; font-weight: 700; }
.hw-more a { color: var(--hw-violet); }
.hw-note { color: var(--hw-muted); font-size: 14px; margin: -4px 0 14px; }
.hw-subtitle { margin: 40px 0 6px; font-size: 22px; font-weight: 800; }

/* ---------- Grille des Spectre ---------- */
.hw-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.hw-filters button { padding: 6px 13px; border-radius: var(--r-full); border: 1px solid var(--hw-line); background: #fff; font-weight: 700; font-size: 13.5px; color: var(--hw-ink); cursor: pointer; }
.hw-filters button small { color: var(--hw-muted); font-weight: 600; margin-left: 2px; }
.hw-filters button[aria-pressed="true"] { background: var(--hw-violet); border-color: var(--hw-violet); color: #fff; }
.hw-filters button[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.hw-grid li[hidden] { display: none; }
.hw-grid a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 8px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--hw-line); text-decoration: none; color: var(--hw-ink); text-align: center; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.hw-grid a:hover { transform: translateY(-4px); border-color: var(--hw-violet); box-shadow: 0 10px 22px rgba(110, 59, 181, .14); }
.hw-grid img { width: 88px; height: 88px; object-fit: contain; transition: transform .2s ease; }
.hw-grid a:hover img { transform: scale(1.08) rotate(-4deg); }
.hw-grid__num { font-size: 11.5px; color: var(--hw-muted); font-weight: 600; }
.hw-grid b { font-size: 14.5px; }
.hw-types { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.hw-types .type-badge { font-size: 9.5px; padding: 2px 6px; }

/* ---------- Citations du Pokédex ---------- */
.hw-quotes { columns: 3 280px; column-gap: 16px; }
.hw-quote { break-inside: avoid; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 14px; margin: 0 0 16px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--hw-line); box-shadow: 0 4px 14px rgba(74, 42, 126, .07); }
.hw-quote img { grid-row: span 2; width: 70px; height: 70px; object-fit: contain; }
.hw-quote blockquote { margin: 0; font-size: 15.5px; line-height: 1.5; font-style: italic; color: var(--hw-ink); }
.hw-quote figcaption { font-size: 13px; color: var(--hw-muted); }
.hw-quote figcaption a { font-weight: 800; color: var(--hw-violet); text-decoration: none; }

/* ---------- Citrouilles et Mimiqui ---------- */
.hw-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hw-feature { padding: 22px 24px; border-radius: 22px; background: #fff; border: 2px solid var(--hw-line); }
.hw-feature--pumpkin { background: linear-gradient(160deg, #FFF1E0, #fff 55%); border-color: #FFD6AE; }
.hw-feature--mimiqui { background: linear-gradient(160deg, #FFF9DD, #fff 55%); border-color: #F7E3A0; }
.hw-feature__art { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 170px; }
.hw-feature__art img { width: auto; max-height: 170px; filter: drop-shadow(0 8px 10px rgba(36, 27, 48, .2)); }
.hw-feature__arrow { font-size: 28px; color: var(--hw-orange); font-weight: 800; }
.hw-feature h3 { margin: 12px 0 10px; font-size: 21px; font-weight: 800; }
.hw-feature ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.55; }

/* ---------- Épisodes ---------- */
.hw-episodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.hw-episode { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--hw-line); }
.hw-episode__mons { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; background: radial-gradient(circle, #EFE5FF, #fff 70%); }
.hw-episode__mons img { width: 70px; height: 70px; object-fit: contain; }
.hw-episode__mons img + img { width: 52px; height: 52px; margin-top: -10px; }
.hw-episode__code { display: inline-block; padding: 2px 9px; border-radius: 8px; background: var(--hw-ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.hw-episode h3 { margin: 8px 0 6px; font-size: 17px; font-weight: 800; color: var(--hw-violet-dark); }
.hw-episode p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--hw-muted); }

/* ---------- Cartes ---------- */
.hw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.hw-cards a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--hw-ink); }
.hw-cards img { width: 100%; height: auto; aspect-ratio: 245 / 342; object-fit: cover; border-radius: 4.5% / 3.3%; box-shadow: 0 8px 20px rgba(36, 27, 48, .2); transition: transform .25s ease, box-shadow .25s ease; }
.hw-cards a:hover img { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 16px 30px rgba(110, 59, 181, .3); }
.hw-cards span { display: flex; flex-direction: column; gap: 2px; }
.hw-cards b { font-size: 14px; }
.hw-cards small { font-size: 12px; color: var(--hw-muted); }
.hw-exts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.hw-exts a { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--hw-line); text-decoration: none; color: var(--hw-ink); text-align: center; }
.hw-exts img { height: 60px; width: auto; max-width: 100%; object-fit: contain; }
.hw-exts small { color: var(--hw-orange-dark); font-weight: 700; }
.hw-exts a:hover { border-color: var(--hw-orange); }

/* ---------- Lieux hantés ---------- */
.hw-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hw-place { position: relative; padding: 20px 22px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--hw-line); }
.hw-place__mons { position: absolute; top: 12px; right: 14px; display: flex; }
.hw-place__mons img { width: 64px; height: 64px; object-fit: contain; margin-left: -12px; filter: drop-shadow(0 4px 6px rgba(36, 27, 48, .2)); }
.hw-place__where { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--hw-orange-dark); }
.hw-place h3 { margin: 4px 0 2px; font-size: 21px; font-weight: 800; padding-right: 110px; }
.hw-place__games { margin: 0 0 8px; font-size: 13.5px; color: var(--hw-violet); font-weight: 600; }
.hw-place p { line-height: 1.55; }
.hw-place__link { font-weight: 700; color: var(--hw-violet); }
.hw-go { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 14px 20px; border-radius: 18px; background: linear-gradient(100deg, #E8F6FF, #fff 60%); border: 1px solid #CFE9F7; text-decoration: none; color: var(--hw-ink); }
.hw-go img { width: 70px; height: 70px; object-fit: contain; flex: 0 0 auto; }
.hw-go span { flex: 1; line-height: 1.5; }
.hw-go__arrow { flex: 0 0 auto !important; font-size: 24px; font-weight: 800; color: #1E6FD9; }

/* ---------- Quiz ---------- */
.hw-quiz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.hw-quiz__card { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 16px 10px; border-radius: 18px; border: 2px dashed #D9CCEB; background: #fff; cursor: pointer; font: inherit; color: var(--hw-ink); }
.hw-quiz__card img { width: 120px; height: 120px; object-fit: contain; filter: brightness(0) opacity(.85); transition: filter .5s ease, transform .5s ease; }
.hw-quiz__card[aria-pressed="true"] { border-style: solid; border-color: var(--hw-orange); }
.hw-quiz__card[aria-pressed="true"] img { filter: none; transform: scale(1.06); }
.hw-quiz__name { font-weight: 800; font-size: 16px; min-height: 22px; }
.hw-quiz__score { margin-top: 16px; font-weight: 800; color: var(--hw-violet-dark); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hw-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hw-parade { height: 260px; order: -1; }
  .hw-parade img { width: 110px !important; }
  .hw-hero__moon { width: 110px; height: 110px; }
  .hw-features, .hw-episodes, .hw-places { grid-template-columns: minmax(0, 1fr); }
  .hw-quiz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hw-section { padding: 46px 0; }
  .hw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .hw-grid a { padding: 8px 4px; }
  .hw-grid img { width: 64px; height: 64px; }
  .hw-grid b { font-size: 12.5px; }
  .hw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-episode { grid-template-columns: 70px minmax(0, 1fr); }
  .hw-episode__mons img { width: 56px; height: 56px; }
  .hw-place h3 { padding-right: 70px; }
  .hw-place__mons img { width: 46px; height: 46px; }
  .hw-go { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-parade img { animation: none; }
}
