/* ============================================================
   C365 — HOME ENHANCE
   Améliorations design de la page d'accueil (index.php).
   Chargé APRÈS dark-shared.css, tout est scopé à .page-home —
   aucune autre page (catégorie, article) n'est affectée.
   ============================================================ */

/* ════════ 1 · En-tête : cartes statistiques ════════ */
.page-home .hv3-page-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}
.page-home .hv3-page-intro-text { font-size: 13px; }

.page-home .hv3-stat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-home .hv3-statc {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: var(--bg1);
  border: 1px solid var(--line2);
  border-radius: var(--rad);
}
.page-home .hv3-statc-num {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.page-home .hv3-statc-lbl {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg3);
}
.page-home .hv3-statc.is-out .hv3-statc-num { color: var(--status-out); }
.page-home .hv3-statc.is-ann .hv3-statc-num { color: var(--acc3); }
.page-home .hv3-statc.is-live {
  border-color: color-mix(in srgb, var(--status-out) 35%, var(--line2));
}
.page-home .hv3-statc.is-live .hv3-statc-num { color: var(--status-out); }
.page-home .hv3-statc.is-live .hv3-statc-lbl::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--status-out);
  vertical-align: middle;
  animation: hv3e-pulse 2s ease-in-out infinite;
}
@keyframes hv3e-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ════════ 4 · Hiérarchie typographique ════════ */
.page-home .hv3-title-text { font-weight: 600; color: var(--fg); }

/* ════════ 5 · Affordance de tri ════════ */
.page-home .hv3-arr-asc,
.page-home .hv3-arr-desc { opacity: 0.42; }
.page-home .hv3-th-sort:hover .hv3-arr-asc,
.page-home .hv3-th-sort:hover .hv3-arr-desc { opacity: 0.7; }
.page-home .hv3-tbl-head button.hv3-th:hover { color: var(--fg); }

/* ════════ 3 · Vignettes des articles « À surveiller » ════════ */
.page-home .hv3-latest-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: start;
}
.page-home .hv3-li-thumb {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: var(--rad);
  overflow: hidden;
  background: var(--bg3);
}
.page-home .hv3-li-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .hv3-li-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg4);
}
.page-home .hv3-li-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ════════ 7 · Indice de défilement de la command bar ════════ */
@media (max-width: 680px) {
  .page-home .hv3-cmd-left {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hv3-statc.is-live .hv3-statc-lbl::before { animation: none; }
}
