/* ===========================================================
   Prestataires / Services — web (mobile-first)
   Aligné sur l'app mobile : palette de marque Orange + Bleu,
   cartes marketplace, CTA unique, carte de localisation.
   =========================================================== */
:root {
  --pr-orange: #F37A1F;
  --pr-orange-dark: #D9660F;
  --pr-orange-soft: #FFF4EA;
  --pr-orange-deep: #B45309;   /* orange en tant que texte : 5.02:1 */
  --pr-blue: #0B46D8;
  --pr-blue-soft: #EAF1FF;
  --pr-whatsapp: #059669;
  --pr-whatsapp-dark: #047857;
  --pr-bg: #FAFAF9;
  --pr-surface: #FFFFFF;
  --pr-line: #F0EEEC;
  --pr-text: #1C1917;
  --pr-muted: #78716C;
  --pr-shadow: 0 8px 22px rgba(28, 25, 23, .07);
}

body { background: var(--pr-bg); }

.pr-page {
  width: min(1180px, 100%);
  margin: 0 auto 40px;
  padding: 0 2px;
}

/* ── HERO */
.pr-hero {
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--pr-line);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--pr-orange-soft), var(--pr-surface));
  box-shadow: var(--pr-shadow);
}
.pr-kicker {
  display: inline-flex;
  color: var(--pr-orange-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pr-hero h1 {
  margin: 6px 0 14px;
  color: var(--pr-text);
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  line-height: 1.15;
}

/* ── Recherche */
.pr-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--pr-line);
  border-radius: 999px;
  background: var(--pr-surface);
}
.pr-search i { color: var(--pr-muted); }
.pr-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--pr-text);
}
.pr-search button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--pr-orange-dark);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
}

/* ── Catégories (rail défilant) */
.pr-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.pr-cats::-webkit-scrollbar { display: none; }
.pr-cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--pr-line);
  border-radius: 999px;
  background: var(--pr-surface);
  color: var(--pr-text);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.pr-cat i { color: var(--pr-orange-deep); font-size: .8rem; }
.pr-cat.is-active {
  background: var(--pr-blue);
  border-color: var(--pr-blue);
  color: #fff;
}
.pr-cat.is-active i { color: #fff; }

.pr-count {
  margin: 0 2px 12px;
  color: var(--pr-muted);
  font-size: .85rem;
  font-weight: 700;
}

/* ── Grille de cartes */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) { .pr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pr-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pr-line);
  border-radius: 20px;
  background: var(--pr-surface);
  box-shadow: var(--pr-shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
@media (hover: hover) {
  .pr-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(28, 25, 23, .12); }
}

.pr-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pr-orange-soft);
}
.pr-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--pr-orange-deep);
  font-size: 1.6rem;
}
.pr-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--pr-blue);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}
.pr-badge.is-urgent { background: var(--pr-orange-dark); }

.pr-body { flex: 1; padding: 12px; }
.pr-body h2 {
  margin: 0 0 7px;
  font-size: .95rem;
  line-height: 1.25;
  font-weight: 800;
}
.pr-body h2 a { color: var(--pr-text); text-decoration: none; }
.pr-provider,
.pr-zone {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 5px;
  overflow: hidden;
  color: var(--pr-muted);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pr-provider i, .pr-zone i { flex: 0 0 auto; font-size: .72rem; }
.pr-pinned { color: var(--pr-blue); }
.pr-price {
  margin: 8px 0 0;
  color: var(--pr-blue);
  font-size: 1rem;
  font-weight: 900;
}

.pr-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  margin: 0 12px 12px;
  border-radius: 12px;
  background: var(--pr-orange-dark);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
}
.pr-cta:hover { color: #fff; background: var(--pr-orange-deep); }

/* ── Pagination / vide */
.pr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  color: var(--pr-muted);
  font-weight: 700;
  font-size: .85rem;
}
.pr-pagination a {
  padding: 9px 16px;
  border: 1px solid var(--pr-line);
  border-radius: 999px;
  background: var(--pr-surface);
  color: var(--pr-orange-dark);
  text-decoration: none;
  font-weight: 800;
}
.pr-empty {
  padding: 44px 18px;
  border: 1px dashed var(--pr-line);
  border-radius: 22px;
  background: var(--pr-surface);
  text-align: center;
  color: var(--pr-muted);
}
.pr-empty i { color: var(--pr-orange-deep); font-size: 2rem; }
.pr-empty h2 { margin: 10px 0 4px; color: var(--pr-text); font-size: 1.1rem; }
.pr-empty a {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pr-blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

/* ===========================================================
   Détail
   =========================================================== */
.pr-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--pr-orange-dark);
  font-weight: 800;
  font-size: .85rem;
  text-decoration: none;
}
.pr-hero-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 22px;
  background: var(--pr-orange-soft);
  box-shadow: var(--pr-shadow);
}
.pr-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-title {
  margin: 16px 0 12px;
  color: var(--pr-text);
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  line-height: 1.15;
}

.pr-owner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--pr-line);
  border-radius: 18px;
  background: var(--pr-surface);
  color: inherit;
  text-decoration: none;
}
.pr-owner-avatar {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--pr-orange-soft);
  color: var(--pr-orange-deep);
  font-weight: 900;
}
.pr-owner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pr-owner-copy { flex: 1; min-width: 0; display: grid; }
.pr-owner-copy strong { color: var(--pr-text); font-size: .95rem; }
.pr-owner-copy small { color: var(--pr-muted); font-size: .78rem; font-weight: 600; }
.pr-owner i { color: var(--pr-muted); }

/* Barre tarif + contact : ne déborde jamais */
.pr-pricebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: var(--pr-orange-soft);
}
.pr-pricebar-copy { flex: 1; min-width: 0; }
.pr-pricebar-copy span {
  display: block;
  color: var(--pr-muted);
  font-size: .74rem;
  font-weight: 700;
}
.pr-pricebar-copy strong {
  display: block;
  margin-top: 3px;
  color: var(--pr-blue);
  font-size: clamp(1.05rem, 4vw, 1.4rem);
  font-weight: 900;
  line-height: 1.2;
}
.pr-contact {
  flex: 0 0 auto;
  max-width: 52%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--pr-whatsapp);
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
  white-space: nowrap;
}
.pr-contact:hover { color: #fff; background: var(--pr-whatsapp-dark); }

.pr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pr-chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--pr-blue-soft);
  color: var(--pr-blue);
  font-size: .78rem;
  font-weight: 800;
}
.pr-chip.is-urgent { background: var(--pr-orange-soft); color: var(--pr-orange-deep); }

.pr-section { margin-bottom: 24px; }
.pr-section h2 {
  margin: 0 0 10px;
  color: var(--pr-text);
  font-size: 1.15rem;
}
.pr-text { margin: 0; color: #44403C; font-size: .95rem; line-height: 1.6; }

/* ── Carte de localisation */
.pr-map-card {
  overflow: hidden;
  border: 1px solid var(--pr-line);
  border-radius: 20px;
  background: var(--pr-surface);
  box-shadow: var(--pr-shadow);
}
.pr-map { width: 100%; height: 220px; border: 0; display: block; }
.pr-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}
.pr-map-footer p {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pr-muted);
  font-size: .82rem;
  font-weight: 600;
}
.pr-map-footer p i { color: var(--pr-blue); }
.pr-directions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--pr-blue);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.pr-directions:hover { color: #fff; background: #0838AE; }
