/* ==========================
   FICHIER : wp-content/themes/numinous-child/assets/css/press-home.css
   ========================== */

:root {
  /* Palette neutre (noir, gris, accent jaune) */
  --bg:#fafafa;
  --ink:#111111;
  --muted:#6b7280;
  --line:#e5e7eb;
  --brand:#111111;
  --accent:#ffc83d;
  --card:#ffffff;
  --chip:#f1f5f9;
  --chip-ink:#111111;

  /* Rayons globalisés */
  --r-lg:12px;   /* hero, sections, cards, widgets */
  --r-md:10px;   /* mini-cards, tuiles, inputs, boutons */
  --r-pill:999px;/* pills/badges/chips */
}

/* Scope principal */
.press-home {
  font:15px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
}
.press-home .press-wrap {
  max-width:1160px;
  margin:auto;
  padding:6px 20px 20px;
}

/* Images responsives */
.press-home .media img,
.press-home .thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Pills catégories */
.press-home .topnav {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:12px 0;
  margin:0 0 18px;
}
.press-home .topnav a {
  padding:8px 14px;
  border-radius:var(--r-pill);
  background:var(--chip);
  text-decoration:none;
  color:var(--chip-ink);
  font-weight:700;
  border:1px solid var(--line);
}
.press-home .topnav a.is-active {
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}

/* ====================
   HERO + SOUS-UNES
   ==================== */

/* Hero en plein largeur */
.press-home .hero {
  display:block;          /* plus de grille 2 colonnes */
}
.press-home .hero-card {
  position:relative;
  border-radius:var(--r-lg);
  overflow:hidden;
  background:var(--card);
  box-shadow:0 6px 16px rgba(0,0,0,.05);
  border:1px solid var(--line);
  margin-bottom:18px;     /* espace avec les mini */
}
.press-home .hero-card .media {
  aspect-ratio:16/9;
  background:#e5e7eb;
  display:block;
}
.press-home .hero-card .badge {
  position:absolute;
  top:12px;
  left:12px;
  background:var(--accent);
  color:#1b1400;
  font-weight:800;
  font-size:.78rem;
  padding:6px 10px;
  border-radius:var(--r-pill);
  box-shadow:0 2px 6px rgba(0,0,0,.1);
}
.press-home .hero-card .content {
  padding:14px 16px 16px;
}
.press-home .hero-card h2 {
  font-size:1.8rem;
  line-height:1.22;
  margin:.2rem 0 .4rem;
}
.press-home .hero-card h2 a {
  text-decoration:none;
  color:inherit;
}
.press-home .meta {
  display:flex;
  gap:10px;
  align-items:center;
  color:var(--muted);
  font-size:.92rem;
}
.press-home .meta .sep {
  opacity:.35;
}
.press-home .deck {
  margin:.35rem 0 0;
}

/* Sous-unes : 3 mini cartes sous le hero, image au-dessus du titre */
.press-home .subgrid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.press-home .mini {
  display:flex;
  flex-direction:column;
  border-radius:var(--r-md);
  overflow:hidden;
  background:var(--card);
  border:1px solid var(--line);
}

.press-home .mini .thumb {
  background:#e5e7eb;
  aspect-ratio:16/10;
  display:block;
}

.press-home .mini .content {
  padding:10px 11px 12px;
}

.press-home .mini h3 {
  font-size:1.02rem;
  margin:.1rem 0 .25rem;
}

.press-home .mini h3 a {
  text-decoration:none;
  color:inherit;
}


/* ====================
   Layout principal
   ==================== */

.press-home .layout {
  display:grid;
  grid-template-columns:1.4fr .6fr;
  gap:22px;
  margin:20px 0;
}
.press-home .section {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:14px 14px 8px;
}
.press-home .section h3 {
  font-size:1.18rem;
  margin:4px 6px 10px;
}
.press-home .grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.press-home .card {
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
  transition:transform .15s ease, box-shadow .15s ease;
}
.press-home .card:hover {
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,.06);
}
.press-home .card .media {
  background:#e5e7eb;
  aspect-ratio:16/10;
  display:block;
}
.press-home .card .body {
  padding:12px 12px 14px;
}
.press-home .card h4 {
  font-size:1.02rem;
  margin:0 0 .35rem;
}
.press-home .card h4 a {
  text-decoration:none;
  color:inherit;
}

/* Chips */
.press-home .chips {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.press-home .chips a {
  font-size:.82rem;
  background:var(--chip);
  padding:7px 11px;
  border-radius:var(--r-pill);
  color:var(--chip-ink);
  text-decoration:none;
  font-weight:700;
  border:1px solid var(--line);
}

/* Sidebar */
.press-home .sidebar .widget {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:14px;
  margin-bottom:14px;
}
.press-home .widget h4 {
  margin:.2rem 0 .6rem;
  font-size:1.06rem;
}
.press-home .newsletter form {
  display:grid;
  gap:10px;
}
.press-home .input {
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  width:100%;
}
.press-home .btn {
  padding:10px 12px;
  border-radius:var(--r-md);
  border:1px solid var(--brand);
  background:var(--brand);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

/* Catégories en tuiles */
.press-home .cat-row {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:14px;
}
.press-home .cat-row .tile {
  border:1px solid var(--line);
  border-radius:var(--r-md);
  overflow:hidden;
  background:#fff;
}
.press-home .tile .media {
  aspect-ratio:4/3;
  background:#e5e7eb;
  display:block;
}
.press-home .tile .body {
  padding:10px;
}
.press-home .tile h5 {
  font-size:1.02rem;
  margin:.2rem 0 .2rem;
}

/* ==========================
   LES PLUS LUS — liste avec miniatures (bloc .popular-widget)
   ========================== */

.press-home .popular-widget { margin:0; } /* harmonisation */
.press-home .popular-widget .popular-list {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:12px;
}
.press-home .popular-widget .popular-item {
  display:grid;
  grid-template-columns:88px 1fr;
  gap:12px;
  align-items:center;
}
.press-home .popular-widget .thumb {
  width:88px;
  aspect-ratio:4/3;
  display:block;
  border-radius:8px;
  overflow:hidden;
  background:#e5e7eb;
  box-shadow:0 4px 10px rgba(0,0,0,.06);
}
.press-home .popular-widget .thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.press-home .popular-widget .thumb .noimg {
  display:block;
  width:100%;
  height:100%;
  background:#eee;
}
.press-home .popular-widget .title {
  font-weight:800;
  color:#111;
  text-decoration:none;
  line-height:1.25;
  display:inline-block;
}
.press-home .popular-widget .title:hover {
  text-decoration:underline;
}
.press-home .popular-widget .sub {
  margin-top:4px;
  font-size:.85rem;
  color:#6b7280;
  display:flex;
  align-items:center;
  gap:8px;
}
.press-home .popular-widget .rank {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:11px;
  background:#111;
  color:#fff;
  font-weight:700;
  line-height:1;
}

/* ===== Fallback : widget "Les plus lus" natif du thème (sans miniatures) ===== */

.press-home .sidebar .widget ol,
.press-home .sidebar .widget ul {
  margin:0;
  padding-left:0;
  list-style:none;
}
.press-home .sidebar .widget li {
  margin:10px 0;
  line-height:1.35;
}
.press-home .sidebar .widget li a {
  font-weight:800;
  color:#111;
  text-decoration:none;
}
.press-home .sidebar .widget li a:hover {
  text-decoration:underline;
}

/* ====================
   Responsive
   ==================== */

@media (max-width:1024px) {
  /* layout principal */
  .press-home .layout {
    grid-template-columns:1fr;
  }
  .press-home .grid {
    grid-template-columns:repeat(2,1fr);
  }
  .press-home .cat-row {
    grid-template-columns:repeat(2,1fr);
  }

  /* Sous-unes : 2 colonnes sur tablette */
  .press-home .subgrid {
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:640px) {
  .press-home .topnav {
    gap:6px;
  }
  .press-home .grid {
    grid-template-columns:1fr;
  }
  .press-home .popular-widget .popular-item {
    grid-template-columns:76px 1fr;
  }
  .press-home .popular-widget .thumb {
    width:76px;
  }

  /* Sous-unes : 1 colonne sur mobile */
  .press-home .subgrid {
    grid-template-columns:1fr;
  }
}

/* ===== SUJETS DU MOMENT – pills noires + encadré ===== */

.press-home .topics {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:12px 14px;
  border:1px solid #111;   /* encadré noir autour du bloc */
  border-radius:12px;
  background:#fff;
}
.press-home .topics a {
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:#111;         /* pastille noire */
  color:#fff;              /* texte blanc */
  font-weight:800;
  line-height:1;
  text-decoration:none;
  border:1px solid #111;   /* liseré noir */
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  transition:all .15s ease;
}
.press-home .topics a:hover {
  background:transparent;  /* effet survol : pastille évidée */
  color:#111;
}

/* Grand article additionnel (même style que hero-card) */
.press-home .hero-card--alt {
  margin:8px 0;
}

/* Grille 4 vignettes en dessous */
.press-home .mini-grid-4 {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.press-home .mini--v2 {
  display:grid;
  grid-template-columns:1fr;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  overflow:hidden;
  background:var(--card);
}
.press-home .mini--v2 .thumb {
  aspect-ratio:16/10;
  display:block;
  background:#e5e7eb;
}
.press-home .mini--v2 .content {
  padding:10px;
}
.press-home .mini--v2 h3 {
  font-size:1.02rem;
  margin:.2rem 0 .2rem;
}
.press-home .mini--v2 h3 a {
  text-decoration:none;
  color:inherit;
}

@media (max-width:1024px) {
  .press-home .mini-grid-4 {
    grid-template-columns:repeat(2,1fr);
  }
}
@media (max-width:640px) {
  .press-home .mini-grid-4 {
    grid-template-columns:1fr;
  }
}
