/* =============================================================================
   Mes favoris - cards des prestataires favorisés, partagées entre la page
   PUBLIQUE favourite.php (/mes-favoris, accessible sans compte) et la version
   COMPTE user-favourite.php (espace internaute, verrouillée). Les cards sont
   RENDUES CÔTÉ CLIENT par favourite.js depuis le localStorage
   `1001salles:favourites` (synchronisé avec la table user_favourite pour un
   connecté - cf. main.js §25). Grille calquée sur .quote-grid (1 → 2 → 3
   colonnes), card épurée (média + identité + actions). Réutilise .provider-chip
   (styles.css) pour le type de prestataire.
   ========================================================================== */
.fav-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 640px) {
	.fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 1280px) {
	.fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
/* display:grid (0,1,0) écraserait l'attribut [hidden] → rétablir le masquage. */
.fav-grid[hidden] { display: none; }
[data-fav-empty]:not([hidden]) { display: flex; flex-direction: column; align-items: center; }

/* ---------- Card favori ---------- */
.fav-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #f0f0f0;
	border-radius: 18px;
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.fav-card:hover {
	border-color: #e2e2e2;
	box-shadow: 0 6px 20px rgba(10, 10, 10, .06);
}

.fav-card-media {
	position: relative;
	height: 160px;
	flex-shrink: 0;
	overflow: hidden;
	background: #f5f5f5;
}
.fav-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Vignette sans image : pictogramme signet discret centré. */
.fav-card-media-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #c8c8c8;
	font-size: 30px;
}
/* Bouton « retirer des favoris » en haut-droite de la photo (croix sur pastille blanche). */
.fav-card-remove {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 34px;
	height: 34px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, .95);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0a0a0a;
	box-shadow: 0 1px 3px rgba(10, 10, 10, .12);
	transition: color .15s ease, background-color .15s ease;
}
.fav-card-remove:hover { color: #D33A3A; background: #fff; }
.fav-card-remove i { font-size: 14px; }

.fav-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	flex: 1;
}
@media (min-width: 640px) { .fav-card-body { padding: 18px; } }

.fav-card-title {
	font-size: 16px;
	font-weight: 700;
	color: #0a0a0a;
	line-height: 1.3;
}
.fav-card-title a { transition: color .15s ease; }
.fav-card-title a:hover { color: rgb(var(--brand)); }

.fav-card-city {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #757575;
}
.fav-card-city i { font-size: 11px; color: #9a9a9a; }

/* ---------- Actions : « Voir la fiche » (brand) + « Demander un devis » (contour) ---------- */
.fav-card-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
	padding-top: 4px;
}
.fav-card-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 16px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	background: rgb(var(--brand));
	transition: background-color .15s ease;
}
.fav-card-cta i { font-size: 13px; }
.fav-card-cta:hover { background: rgb(var(--brand-dark)); }
.fav-card-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 16px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	color: #0a0a0a;
	background: #fff;
	border: 1px solid #ededed;
	transition: border-color .15s ease, color .15s ease;
}
.fav-card-ghost:hover { border-color: rgb(var(--brand)); color: rgb(var(--brand)); }

/* « Tout retirer » (en-tête de page) : lien texte discret virant au rouge. */
.fav-clear {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex-shrink: 0;
	height: 38px;
	padding: 0 12px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #757575;
	transition: color .15s ease, background-color .15s ease;
}
.fav-clear:hover { color: #D33A3A; background: #F7F7F7; }
.fav-clear i { font-size: 13px; }
.fav-clear[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
	.fav-card { transition: none; }
}
