@charset "UTF-8";
/* Bouton "Enregistrer" des favoris (includes/favorites.php) et page
   favoris.php. Étoile vide = pas enregistré, pleine et dorée = enregistré. */
.fav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.fav-btn:hover {
  background: var(--btn-bg);
}
.fav-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease), fill 0.15s var(--ease);
}
.fav-btn.is-active {
  border-color: rgba(251, 188, 5, 0.6);
  background: rgba(251, 188, 5, 0.12);
  color: #e8a200;
}
:root[data-theme="dark"] .fav-btn.is-active { color: #fdd663; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fav-btn.is-active { color: #fdd663; }
}
.fav-btn.is-active svg {
  fill: currentColor;
  transform: scale(1.08);
}
.fav-btn:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
/* Pleine largeur dans l'encadré prix/contact d'une annonce ou d'un produit. */
.fav-btn-block {
  width: 100%;
  box-sizing: border-box;
}
/* Petite étoile seule (résultats de recherche). */
.fav-btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-color: transparent;
  flex-shrink: 0;
}
.fav-btn-icon span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.fav-btn-icon.is-active {
  border-color: transparent;
  background: rgba(251, 188, 5, 0.14);
}

/* ---- Page Mes favoris --------------------------------------------------- */
.fav-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.fav-page h1 {
  margin: 0 0 6px;
  font-size: 28px;
}
.fav-lead {
  margin: 0 0 24px;
  color: var(--text-muted);
}
.fav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.fav-tab {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.fav-tab span {
  margin-left: 4px;
  color: var(--text-muted);
  font-size: 11.5px;
}
.fav-tab.is-active {
  border-color: var(--link);
  background: var(--link-tint);
  color: var(--link);
}
.fav-group {
  margin: 0 0 28px;
}
.fav-group h2 {
  margin: 0 0 12px;
  font-size: 17px;
}
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.fav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}
.fav-card-link {
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none !important;
  flex: 1;
}
.fav-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: var(--btn-bg);
  color: var(--link);
  font-size: 30px;
  font-weight: 700;
}
.fav-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fav-card-img.is-logo img {
  width: 50%;
  height: 50%;
  object-fit: contain;
}
.fav-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px 44px;
  min-width: 0;
}
.fav-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.fav-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.fav-card-price {
  font-weight: 700;
  color: var(--success);
}
.fav-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fav-card .fav-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 11px;
  font-size: 12.5px;
}
.fav-empty {
  padding: 40px 20px;
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  text-align: center;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .fav-page { padding: 16px 12px 48px; }
  .fav-page h1 { font-size: 24px; }
  .fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fav-card-body { padding: 10px 10px 42px; }
  .fav-card-title { font-size: 14px; }
}
