/* =========================================================
   GE-conso – Mes favoris (favoris.php)
   Dépend de base.css (chargé avant ce fichier).
   ========================================================= */

/* =========================================
   1. HEADER
========================================= */
.btn-nav-primary {
  background: var(--red-primary);
  color: var(--white);
}

.btn-nav-primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

/* =========================================
   2. CONTENEUR PRINCIPAL
========================================= */
.fav-wrapper {
  max-width: 1240px;
  margin: 24px auto 70px;
  padding: 0 24px;
}

.breadcrumb {
  margin-bottom: 18px;
}

/* =========================================
   3. BANNIÈRE RÉSUMÉ DES FAVORIS
========================================= */
.fav-hero-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: 22px;
  padding: 30px 34px;
  box-shadow: 0 16px 38px rgba(16, 37, 66, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 5px solid var(--red-primary);
}

.fav-hero-left h1 {
  font-size: 1.95rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fav-hero-left h1 i {
  color: var(--red-primary);
  background: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.fav-hero-left p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
}

.fav-stats-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.fav-stat-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 12px 18px;
  min-width: 140px;
}

.fav-stat-pill strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--yellow-accent);
  line-height: 1.2;
}

.fav-stat-pill span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
}

/* =========================================
   4. BARRE DE FILTRES & ACTIONS
========================================= */
.filter-toolbar {
  background: var(--white);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 8px 24px rgba(16, 37, 66, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  background: #f8fafc;
  color: var(--navy-dark);
  border: 1.5px solid var(--border-light);
  padding: 8px 14px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.79rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--navy-dark);
}

.filter-chip.active {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

.btn-clear-all {
  background: transparent;
  color: var(--red-primary);
  border: 1.5px solid #fecaca;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-clear-all:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: var(--white);
}

/* =========================================
   5. GRILLE DES FAVORIS
========================================= */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.fav-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16, 37, 66, 0.06);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(16, 37, 66, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 37, 66, 0.11);
}

.fav-card-media {
  position: relative;
  height: 205px;
  background: #e2e8f0;
}

.fav-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fav-badge-cat {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(16, 37, 66, 0.88);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 50px;
}

.fav-badge-promo {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red-primary);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 5px 11px;
  border-radius: 7px;
}

.btn-remove-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--red-primary);
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-remove-fav:hover {
  transform: scale(1.08);
  background: var(--red-primary);
  color: var(--white);
}

.fav-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 14px;
}

.fav-venue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  margin-bottom: 4px;
}

.fav-venue-name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.fav-rating {
  font-weight: 800;
  color: var(--navy-dark);
}

.fav-rating span {
  color: #f59e0b;
}

.fav-offer-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.28;
  margin-bottom: 6px;
}

.fav-address {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.fav-address i {
  color: var(--red-primary);
  margin-right: 5px;
}

.fav-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.fav-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.fav-price-now {
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--red-primary);
}

.fav-price-old {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-open-offer {
  background: var(--navy-dark);
  color: var(--white);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s ease;
}

.btn-open-offer:hover {
  background: var(--red-primary);
}

/* =========================================
   6. ÉTAT VIDE (AUCUN FAVORI)
========================================= */
.empty-state-box {
  background: var(--white);
  border-radius: 20px;
  padding: 52px 28px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(16, 37, 66, 0.05);
}

.empty-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fee2e2;
  color: var(--red-primary);
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.empty-state-box h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.empty-state-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 22px;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-demo-load {
  background: var(--navy-dark);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-demo-load:hover {
  background: var(--navy-light);
}

.btn-explore-offers {
  background: var(--red-primary);
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-explore-offers:hover {
  background: var(--red-dark);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 860px) {
  .favorites-grid {
    grid-template-columns: 1fr;
  }

  .fav-hero-banner {
    padding: 24px 20px;
  }

  .fav-hero-left h1 {
    font-size: 1.5rem;
  }
}
