/*
 * TRV-UI-002 — glue de mise en page propre à l'écran d'accueil réel (hero,
 * section "Mes Trouvailles", états vide/erreur, dégagement pour la nav
 * mobile fixe). Volontairement séparé de css/trouvailles.css (pack de
 * charte fourni, non modifié). N'utilise que les variables --tv-* déjà
 * définies — aucune couleur nouvelle (AV-UI-001 §4).
 */

.tv-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 40px;
}

.tv-hero__illustration {
  width: 100%;
  max-width: 300px;
  justify-self: end;
}

.tv-hero__subtitle {
  color: var(--tv-muted);
  font-size: 16px;
  max-width: 46ch;
  margin-top: 10px;
}

.tv-trouvailles__title {
  margin: 8px 0 24px;
}

.tv-opportunity__title {
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0 14px;
}

.tv-icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}

.tv-opportunity__body .tv-badge {
  margin-bottom: 14px;
}

.tv-opportunity__body .tv-button {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.tv-state {
  padding: 48px 32px;
  text-align: center;
  color: var(--tv-muted);
}

.tv-state__title {
  font-family: var(--tv-font-display);
  font-size: 20px;
  color: var(--tv-ink);
  margin: 0 0 8px;
}

@media (max-width: 1024px) {
  .tv-hero { grid-template-columns: 1.15fr 1fr; }
}

@media (max-width: 720px) {
  .tv-hero { grid-template-columns: 1fr; padding: 32px 0 24px; text-align: center; }
  .tv-hero__illustration { max-width: 190px; justify-self: center; }
  .tv-hero__subtitle { margin-left: auto; margin-right: auto; }
  /* dégagement pour la nav mobile fixe du pack (tv-mobile-nav, ~88px) */
  body { padding-bottom: 88px; }
}

/*
 * TRV-006 — formulaire de recherche (chasses.php) et cartes de résultat
 * brut. Volontairement distinctes de .tv-opportunity : un résultat de
 * recherche n'est pas une bonne affaire détectée, jamais stylé pareil.
 * Aucune nouvelle couleur, uniquement les --tv-* déjà définies.
 */

.tv-search-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 24px;
}

.tv-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tv-field label {
  font-size: 13px;
  color: var(--tv-muted);
}

.tv-input {
  border: 1px solid var(--tv-sand);
  border-radius: var(--tv-radius-sm);
  padding: 10px 12px;
  font: 14px var(--tv-font-ui);
  background: #fff;
  color: var(--tv-ink);
}

.tv-input:focus {
  outline: 2px solid var(--tv-green-light);
  border-color: var(--tv-green);
}

.tv-field--prix {
  max-width: 120px;
}

.tv-validation-error {
  color: var(--tv-orange);
  font-size: 14px;
  margin: -12px 0 20px;
}

.tv-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tv-result__title {
  font-size: 16px;
  font-weight: 700;
}

.tv-result__price {
  font: 700 20px var(--tv-font-ui);
  color: var(--tv-ink);
}

.tv-result__meta {
  font-size: 13px;
  color: var(--tv-muted);
}

@media (max-width: 720px) {
  .tv-search-form { flex-direction: column; align-items: stretch; }
  .tv-field--prix { max-width: none; }
}
