/* ==========================================================================
   Hypp agency — Page Blog et archives de catégories (.hypp-blog-home)
   Chargé par functions.php uniquement sur ces pages, après style.css et
   blog.css (navigation, liens, titres et cartes .post partagés avec les
   articles). Newsletter et CTA projet : assets/css/sections.css.
   ========================================================================== */

/* ==========================================================================
   H01 — En-tête du blog
   ========================================================================== */

.hypp-blog-home .blog-hero {
  padding: 90px 0 40px;
  text-align: center;
}

.hypp-blog-home .blog-hero .kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 21px;
  font-weight: 600;
}

.hypp-blog-home .blog-hero .kicker a {
  color: inherit;
}

.hypp-blog-home .blog-hero h1 {
  max-width: 960px;
  margin: 0 auto 20px;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hypp-blog-home .blog-hero .intro {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -.02em;
}

/* ==========================================================================
   H02 — Filtres par catégorie (liens vers les archives)
   ========================================================================== */

.hypp-blog-home .filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 50px;
}

.hypp-blog-home .filters a {
  flex: none;
  padding: 9px 18px;
  border-radius: 980px;
  background: var(--gray);
  color: var(--ink);
  font-size: 14px;
  transition: background .2s;
}

.hypp-blog-home .filters a:hover {
  background: oklch(92% 0.006 150);
  text-decoration: none;
}

.hypp-blog-home .filters a.on {
  background: var(--ink);
  color: #fff;
}

/* ==========================================================================
   H03 — Article à la une (template-parts/post-featured.php)
   ========================================================================== */

.hypp-blog-home .featured {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  min-height: 460px;
  margin-bottom: 70px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--hypp-bg, var(--dark));
  color: var(--hypp-fg, #fff);
}

.hypp-blog-home .featured:hover {
  color: var(--hypp-fg, #fff);
  text-decoration: none;
}

.hypp-blog-home .featured .vis {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.hypp-blog-home .featured .vis--empty {
  background: var(--dark-2);
}

.hypp-blog-home .featured .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 52px 48px;
}

.hypp-blog-home .featured .tag {
  color: var(--hypp-fg, var(--mint));
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hypp-blog-home .featured h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  overflow-wrap: anywhere;
}

.hypp-blog-home .featured p {
  margin: 0;
  color: var(--hypp-fg-soft, var(--on-dark-soft));
  font-size: 18px;
}

.hypp-blog-home .featured .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--hypp-fg-soft, oklch(72% 0.02 160));
  font-size: 14px;
}

.hypp-blog-home .featured .pill {
  align-self: flex-start;
  margin-top: 10px;
}

.hypp-blog-home .featured:hover .pill-mint {
  background: #fff;
}

/* Contour sombre : l'anneau vert par défaut se perd sur le fond. */
.hypp-blog-home .featured:focus-visible {
  outline-color: var(--accent-dark);
}

/* ==========================================================================
   H04 — Liste des articles (cartes : template-parts/post-card.php, base dans blog.css)
   ========================================================================== */

.hypp-blog-home .listing {
  padding-bottom: 110px;
}

.hypp-blog-home .posts-head span {
  color: var(--ink-soft);
  font-size: 14px;
}

.hypp-blog-home .post .vis {
  height: 240px;
  transition: transform .35s;
}

@media (hover: hover) {

  .hypp-blog-home .post:hover .vis {
    transform: scale(1.02);
  }
}

.hypp-blog-home .empty {
  padding: 40px 0;
  color: var(--ink-soft);
  text-align: center;
}

/* Pagination WordPress (the_posts_pagination) */
.hypp-blog-home .hypp-pagination {
  margin-top: 56px;
}

.hypp-blog-home .hypp-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hypp-blog-home .hypp-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 980px;
  background: var(--gray);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
}

.hypp-blog-home .hypp-pagination a.page-numbers:hover {
  background: var(--line);
  text-decoration: none;
}

.hypp-blog-home .hypp-pagination .current {
  background: var(--ink);
  color: #fff;
}

.hypp-blog-home .hypp-pagination .dots {
  background: transparent;
}

/* ==========================================================================
   H05 — Responsive (colonnes de la grille : blog.css)
   ========================================================================== */

@media (max-width: 900px) {

  .hypp-blog-home .featured {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hypp-blog-home .featured .vis {
    height: clamp(220px, 50vw, 380px);
    min-height: 0;
  }

  .hypp-blog-home .featured .body {
    padding: 36px 28px;
  }
}

@media (max-width: 600px) {

  .hypp-blog-home .blog-hero {
    padding: 56px 0 28px;
  }

  .hypp-blog-home .blog-hero .kicker {
    font-size: 17px;
  }

  /* Une seule ligne qui défile plutôt qu'un empilement de pastilles. */
  .hypp-blog-home .filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-inline: -24px;
    padding: 10px 24px 36px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hypp-blog-home .filters::-webkit-scrollbar {
    display: none;
  }

  .hypp-blog-home .featured {
    margin-bottom: 56px;
    border-radius: 22px;
  }

  .hypp-blog-home .featured .body {
    padding: 28px 22px 30px;
  }

  .hypp-blog-home .featured p {
    font-size: 16px;
  }

  .hypp-blog-home .listing {
    padding-bottom: 72px;
  }
}
