/* ============================================================
   TV Finder — styles de la page d'accueil
   ============================================================ */

/* ---------- Hero ---------- */

.hero {
  background: var(--dark);
  color: #ffffff;
  padding: 56px 0 60px;
  margin-bottom: 8px;
}

.hero .updated {
  color: var(--dark-muted);
  margin-bottom: 14px;
}

.hero h1 {
  color: #ffffff;
  max-width: 820px;
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
}

.hero-lead {
  color: #d6d6d1;
  font-size: 1.08rem;
  max-width: 720px;
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid #3a3a3a;
  box-shadow: none;
}

.btn-ghost:hover {
  background: #1f1f1f;
  border-color: #4a4a4a;
  filter: none;
  box-shadow: none;
}

.btn-ghost::after { content: ""; margin: 0; }

/* Le bouton « afficher plus » sur fond clair */
.show-more-wrap .btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.show-more-wrap .btn-ghost:hover {
  background: var(--accent-soft);
  border-color: #f0c9a8;
}

/* ---------- Filtres de l'accueil ---------- */

.home-filters {
  position: sticky;
  top: 62px;
  z-index: 20;
}

/* ---------- Grille de cartes produits ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 1000px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card.hidden { display: none; }

.card-media {
  background: var(--bg);
  border-radius: var(--radius-sm);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}

.card-specs {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 4px; }

.card-rating {
  font-size: 12.5px;
  color: #4a4a46;
  margin-top: auto;
}

.card-price {
  font-family: 'Geist Mono', monospace;
  font-size: 1.15rem;
  font-weight: 600;
}

.card-link {
  font-size: 12.5px;
  color: var(--accent-strong);
  text-decoration: none;
  line-height: 1.4;
}

.card-link:hover { text-decoration: underline; }

.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* ---------- Grille des sélections ---------- */

.sel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .sel-grid { grid-template-columns: 1fr; }
}

.sel-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
}

.sel-col h3 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.sel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sel-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}

.sel-list li:last-child { border-bottom: none; }

.sel-list a {
  text-decoration: none;
  color: var(--text);
}

.sel-list a:hover { color: var(--accent-strong); text-decoration: underline; }

.sel-count {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Ajustements d'accueil ---------- */

body.home section { margin: 56px 0; }

body.home .prose p { max-width: 780px; }

body.home .faq { background: var(--surface); }