/*
 * FIXEO — Artisan Card Conversion v1
 * Uber-level UX upgrade. CSS-only overrides on top of artisan-card-premium-v2.css.
 * Loaded LAST → wins all specificity ties.
 * No structural changes. Pure override layer.
 *
 * CHANGES:
 *  1. Entire card is the CTA (cursor, pointer, active feedback)
 *  2. Availability badge inline with name (not absolute top-right)
 *  3. Noise hidden: divider, badges-v2, "Profil à revendiquer"
 *  4. Rating block bigger + bolder
 *  5. Price: "150 MAD" dominant, "/ intervention" quiet below
 *  6. Single CTA: "Réserver" full-weight + profile as text link below
 *  7. FOMO line styled
 *  8. Mobile: card active feedback, counter strip above grid
 *  9. Micro-interactions: hover translateY(-6px), active scale(0.98)
 */

/* ═══════════════════════════════════════════════════════════════
   1. CARD = THE CTA
═══════════════════════════════════════════════════════════════ */
.pvc-card {
  cursor: pointer !important;
  user-select: none !important;
}
.pvc-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  border-color: rgba(225,48,108,0.40) !important;
  box-shadow:
    0 18px 56px rgba(225,48,108,0.20),
    0 4px 16px rgba(0,0,0,0.40) !important;
}
.pvc-card:active {
  transform: scale(0.98) translateY(0) !important;
  transition: transform 0.1s ease !important;
}
.pvc-card--real:hover {
  border-color: rgba(32,201,151,0.45) !important;
  box-shadow:
    0 18px 56px rgba(32,201,151,0.16),
    0 4px 16px rgba(0,0,0,0.40) !important;
}

/* ═══════════════════════════════════════════════════════════════
   2. AVAILABILITY BADGE — inline with name, not absolute
═══════════════════════════════════════════════════════════════ */

/* Old absolute badge: hide it (it's now rendered inside .pvc-meta-row) */
.pvc-avail-badge {
  position: static !important;
  top: auto !important;
  right: auto !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
  white-space: nowrap !important;
}
.pvc-avail-badge--on {
  background: rgba(32,201,151,0.18) !important;
  color: #20c997 !important;
  border: 1px solid rgba(32,201,151,0.32) !important;
}
.pvc-avail-badge--today {
  background: rgba(255,165,2,0.14) !important;
  color: #ffa502 !important;
  border: 1px solid rgba(255,165,2,0.28) !important;
}
.pvc-avail-badge--off {
  background: rgba(255,255,255,0.05) !important;
  color: rgba(255,255,255,0.36) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

/* Meta row: flex wrap so badge sits next to cat pill */
.pvc-meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
  margin-top: 4px !important;
}

/* City pill: quieter — move to after availability */
.pvc-city-pill {
  font-size: 0.70rem !important;
  color: rgba(255,255,255,0.42) !important;
}

/* ═══════════════════════════════════════════════════════════════
   3. NOISE REDUCTION
═══════════════════════════════════════════════════════════════ */

/* Divider: invisible (removed from template, but keep style silent) */
.pvc-divider {
  display: none !important;
}

/* Badges row: hidden (claim badge hurts conversion) */
.pvc-badges-v2 {
  display: none !important;
}

/* Info chips: keep but quieter */
.pvc-info-bar {
  margin-top: 6px !important;
  padding: 0 16px !important;
}
.pvc-info-chip {
  font-size: 0.68rem !important;
  opacity: 0.75 !important;
}

/* ═══════════════════════════════════════════════════════════════
   4. RATING BLOCK — bigger, bolder
═══════════════════════════════════════════════════════════════ */
.pvc-stats {
  padding: 12px 16px 0 !important;
}
.pvc-stars-v2 {
  font-size: 1.02rem !important;
  letter-spacing: 1.5px !important;
}
.pvc-rating-num {
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  color: #fff !important;
}
.pvc-reviews-count {
  font-size: 0.74rem !important;
  color: rgba(255,255,255,0.45) !important;
}

/* ═══════════════════════════════════════════════════════════════
   5. PRICE — dominant number, quiet label below
═══════════════════════════════════════════════════════════════ */
.pvc-price-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
}
.pvc-price-amount {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.05 !important;
  order: 1 !important;
}
.pvc-price-amount .price-currency {
  font-size: 0.80rem !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.60) !important;
  vertical-align: super !important;
  margin-left: 2px !important;
  line-height: 0 !important;
}
/* "/ intervention" — replaces old "À partir de" label */
.pvc-price-from {
  font-size: 0.66rem !important;
  color: rgba(255,255,255,0.40) !important;
  font-weight: 400 !important;
  order: 2 !important;
  line-height: 1.2 !important;
}

/* ═══════════════════════════════════════════════════════════════
   6. SINGLE CTA — "Réserver" primary + profile text link below
═══════════════════════════════════════════════════════════════ */

/* Vertical stack: button on top, profile link below */
.pvc-cta-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
}

/* Primary CTA — stronger, no calendar emoji (handled in JS) */
.pvc-btn-reserve-v2 {
  padding: 11px 20px !important;
  border-radius: 12px !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #E1306C, #833AB4) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  box-shadow: 0 8px 22px rgba(225,48,108,0.30) !important;
  transition: all 0.18s ease !important;
}
.pvc-btn-reserve-v2:hover {
  transform: scale(1.03) translateY(-1px) !important;
  box-shadow: 0 14px 32px rgba(225,48,108,0.40) !important;
}
.pvc-btn-reserve-v2:active {
  transform: scale(0.98) !important;
  box-shadow: 0 4px 12px rgba(225,48,108,0.22) !important;
}

/* Profile text link — low priority, no button frame */
.pvc-profile-link {
  font-size: 0.70rem !important;
  color: rgba(255,255,255,0.40) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  padding: 2px 4px !important;
  border-radius: 4px !important;
  transition: color 0.15s !important;
  white-space: nowrap !important;
  user-select: none !important;
  display: block !important;
  text-align: right !important;
}
.pvc-profile-link:hover {
  color: rgba(255,255,255,0.75) !important;
}

/* Footer layout: price left, CTA right */
.pvc-footer {
  padding: 14px 16px 16px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 10px !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  margin-top: auto !important;
}

/* ═══════════════════════════════════════════════════════════════
   7. FOMO LINE
═══════════════════════════════════════════════════════════════ */
.pvc-fomo-line {
  font-size: 0.70rem !important;
  color: #ffb86b !important;
  font-weight: 600 !important;
  padding: 6px 16px 0 !important;
  opacity: 0.82 !important;
  letter-spacing: 0.01em !important;
}

/* ═══════════════════════════════════════════════════════════════
   8. MOBILE COUNTER STRIP (above vedette grid)
═══════════════════════════════════════════════════════════════ */
.pvc-grid-counter {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.45) !important;
  padding: 0 16px 8px !important;
  letter-spacing: 0.01em !important;
  display: none !important; /* shown only on mobile via media query */
}

@media (max-width: 640px) {
  .pvc-grid-counter {
    display: block !important;
  }

  /* Card tap feedback — stronger on mobile */
  .pvc-card:active {
    transform: scale(0.97) !important;
    transition: transform 0.08s ease !important;
  }

  /* Mobile button: full-width feel inside card */
  .pvc-btn-reserve-v2 {
    padding: 10px 16px !important;
    font-size: 0.82rem !important;
  }

  /* Mobile: bigger availability badge text */
  .pvc-avail-badge {
    font-size: 0.68rem !important;
  }

  /* Mobile: rating row slightly smaller */
  .pvc-stars-v2, .pvc-rating-num {
    font-size: 0.92rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FIXEO AVATAR UPGRADE v2 (Tasks 1–3)
   Silhouette SVG + service icon badge
   Replaces initials — CSS only
═══════════════════════════════════════════════════════════════ */

/* Avatar wrapper: dark premium bg replaces gradient-with-letter */
.pvc-avatar {
  position: relative !important;
  background: linear-gradient(135deg, #1a1a2a, #2a2a3e) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important; /* badge overflows corner */
}

/* Silhouette SVG — centered, 60% of avatar */
.pvc-avatar-svg {
  width: 60% !important;
  height: 60% !important;
  fill: rgba(255,255,255,0.75) !important;
  display: block !important;
  flex-shrink: 0 !important;
  margin: auto !important;
}

/* Real photo: keep circular fill */
.pvc-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit !important;
  display: block !important;
}

/* Service icon badge — bottom-right corner */
.pvc-avatar-badge {
  position: absolute !important;
  bottom: -4px !important;
  right: -4px !important;
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  line-height: 1 !important;
  background: rgba(10,10,20,0.80) !important;
  border: 1px solid rgba(255,255,255,0.20) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.40) !important;
  z-index: 4 !important;
  pointer-events: none !important;
}

/* Mobile: slightly smaller badge */
@media (max-width: 640px) {
  .pvc-avatar-badge {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
    bottom: -3px !important;
    right: -3px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FIXEO PRICE LABEL UPGRADE (Task 4)
   "💡 Prix conseillé Fixeo" — gold, stronger signal
═══════════════════════════════════════════════════════════════ */
.pvc-price-from {
  font-size: 0.69rem !important;
  color: #ffd166 !important;
  font-weight: 600 !important;
  opacity: 0.88 !important;
  order: 2 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.005em !important;
}

/* ═══════════════════════════════════════════════════════════════
   BADGE CLEANUP (Task 5+6)
   Claim/revendiqué removed from JS template.
   pvc-badges-v2 stays hidden (display:none from prior rule).
   If future code re-shows it, only --verified and --premium are safe.
═══════════════════════════════════════════════════════════════ */

/* Defensive: always hide claim badges even if template ever re-adds them */
.pvc-badge-v2--claim {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   FINAL UX POLISH — v3 (Tasks 1–6)
   Appended block — wins all prior rules in same file
═══════════════════════════════════════════════════════════════ */

/* ── Task 1: defensive — hide any claim/real badges (belt+suspenders) ── */
.pvc-badge-v2--claim,
.pvc-badge-v2--real {
  display: none !important;
}

/* ── Task 2: meta-row — avail badge always right-aligned, no overlap ── */
.pvc-meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.pvc-avail-badge {
  position: static !important;
  margin-left: auto !important;
  white-space: nowrap !important;
}

/* ── Task 3: initials kill-switch (defensive — already removed from JS) ── */
.pvc-avatar-initials {
  display: none !important;
}

/* ── Task 4: price — dominant amount + strong Fixeo label ── */
.pvc-price-amount {
  font-size: 1.70rem !important;
  font-weight: 900 !important;
  color: #fff !important;
  line-height: 1.0 !important;
  order: 1 !important;
}
.pvc-price-from {
  font-size: 0.72rem !important;
  color: #ffd166 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  margin-top: 4px !important;
  order: 2 !important;
  line-height: 1.3 !important;
}
.pvc-price-hint {
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.72rem !important;
}

/* ── Task 5: CTA — always visible, strong gradient ── */
.pvc-btn-reserve-v2 {
  background: linear-gradient(135deg, #ff4d8d, #a855f7) !important;
  color: #fff !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
.pvc-btn-reserve-v2:hover {
  transform: scale(1.03) !important;
  opacity: 1 !important;
}

/* ── Task 6: card micro-interaction ── */
.pvc-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}
.pvc-card:hover {
  transform: translateY(-4px) !important;
}

/* Mobile: no hover effects (touch devices) */
@media (max-width: 640px) {
  .pvc-avail-badge {
    margin-left: 0 !important; /* wraps below on small screens */
  }
  .pvc-price-amount {
    font-size: 1.50rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FINAL CLEANUP PASS — v4
   Fix avatar visibility, price clarity, badge/overlap, CTA
═══════════════════════════════════════════════════════════════ */

/* ── T1: avatar icon — large centered emoji replaces SVG silhouette ── */
.pvc-avatar-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  font-size: 1.55rem !important;
  line-height: 1 !important;
  position: static !important;
}

/* Hide SVG silhouette fallback (previous approach — fully replaced) */
.pvc-avatar-svg,
.pvc-avatar-silhouette {
  display: none !important;
}

/* Avatar: dark bg + overflow visible for badge bleed */
.pvc-avatar {
  overflow: visible !important;
  background: linear-gradient(135deg, #1a1a2a 0%, #2c2040 100%) !important;
}

/* Avatar badge: service icon pill — keep but smaller (emoji already in main circle) */
.pvc-avatar-badge {
  width: 18px !important;
  height: 18px !important;
  font-size: 9px !important;
  bottom: -3px !important;
  right: -3px !important;
  opacity: 0 !important; /* hide redundant badge — icon already in avatar body */
}

/* ── T2: meta-row — availability badge right-aligned, no overlap ── */
.pvc-meta-row {
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  overflow: hidden !important;
}
.pvc-cat-pill {
  flex-shrink: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.pvc-city-pill {
  display: inline-flex !important; /* T3: city restored — visible but subtle */
}
.pvc-avail-badge {
  flex-shrink: 0 !important;
  margin-left: auto !important;
  white-space: nowrap !important;
  position: static !important;
}

/* ── T2+: "Profil réel" / pvc-badge-v2--real — belt-and-suspenders ── */
.pvc-badge-v2--real,
.pvc-badge-v2--claim,
[class*="badge-real"],
[class*="badge-claim"] {
  display: none !important;
}

/* ── T3: price block — clear hierarchy ── */
.pvc-price-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.pvc-price-amount {
  font-size: 1.65rem !important;
  font-weight: 900 !important;
  line-height: 1.0 !important;
  order: 1 !important;
}
.pvc-price-from {
  font-size: 0.72rem !important;
  color: #ffd166 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  letter-spacing: 0 !important;
  order: 2 !important;
}

/* ── T4: profile link — clear visual separation from CTA ── */
.pvc-profile-link {
  font-size: 0.69rem !important;
  color: rgba(255,255,255,0.38) !important;
  margin-top: 4px !important;
  display: block !important;
  text-align: center !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(255,255,255,0.18) !important;
  text-underline-offset: 2px !important;
}
.pvc-profile-link:hover {
  color: rgba(255,255,255,0.65) !important;
}

/* ── T5: CTA — "Réserver maintenant" — always dominant ── */
.pvc-btn-reserve-v2 {
  background: linear-gradient(
  135deg,
  #ff8a3d 0%,
  #ff4f9a 50%,
  #8b5cff 100%
) !important;
   
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  padding: 11px 18px !important;
  border-radius: 12px !important;
  opacity: 1 !important;
  white-space: nowrap !important;
  letter-spacing: 0.01em !important;
}
.pvc-btn-reserve-v2:hover {
  background: linear-gradient(
  135deg,
  #ff8a3d 0%,
  #ff4f9a 50%,
  #8b5cff 100%
) !important;
}

/* Mobile ── */
@media (max-width: 640px) {
  .pvc-avatar-icon { font-size: 1.35rem !important; }
  .pvc-price-amount { font-size: 1.45rem !important; }
  .pvc-btn-reserve-v2 {
    padding: 10px 14px !important;
    font-size: 0.80rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FIX REAL RENDERER — v5 (fhp-card targets)
   Scope: #fixeo-homepage-vedette-grid .pvc-card
   Tasks T6 (mobile footer) + T7 (profile link style)
═══════════════════════════════════════════════════════════════ */

/* ── T7: profile link — text link style ── */
.pvc-profile-link {
  display: inline-block !important;
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(255,255,255,0.30) !important;
  text-underline-offset: 2px !important;
  cursor: pointer !important;
  user-select: none !important;
  padding: 2px 0 !important;
  opacity: 1 !important;
}
.pvc-profile-link:hover {
  color: #fff !important;
  text-decoration-color: rgba(255,255,255,0.65) !important;
}

/* ── T6: mobile footer — clean vertical layout ── */
@media (max-width: 640px) {
  .pvc-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .pvc-price-block {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }

  /* Hide market range hint on mobile — too noisy in small card */
  .pvc-price-hint {
    display: none !important;
  }

  .pvc-cta-col {
    width: 100% !important;
    align-items: stretch !important;
  }

  .pvc-cta-row {
    width: 100% !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .pvc-btn-reserve-v2 {
    width: 100% !important;
    text-align: center !important;
  }

  .pvc-profile-link {
    display: block !important;
    text-align: center !important;
    margin-top: 4px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   UBER PREMIUM PASS — v6
   Tasks T2 (silhouette system) + T3 (category gradients)
         T6 (price CSS) + T7 (profile link) + T8 (mobile footer)
   Scoped to real renderer: #fixeo-homepage-vedette-grid .fhp-card
   Loads LAST → wins all specificity ties
═══════════════════════════════════════════════════════════════ */

/* ── T2: Silhouette system — pvc-avatar-silhouette pseudo-elements ── */

/* Kill emoji/icon approach — silhouette replaces it */
.fhp-card .pvc-avatar-icon {
  display: none !important;
}

/* Silhouette span itself */
.pvc-avatar-silhouette {
  display: block !important;
  position: relative !important;
  width: 62% !important;
  height: 62% !important;
  pointer-events: none !important;
}

/* Head circle */
.pvc-avatar-silhouette::before {
  content: "" !important;
  position: absolute !important;
  top: 8% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 38% !important;
  height: 38% !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.90) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18) !important;
}

/* Body/shoulders */
.pvc-avatar-silhouette::after {
  content: "" !important;
  position: absolute !important;
  bottom: 4% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 74% !important;
  height: 42% !important;
  border-radius: 999px 999px 22px 22px !important;
  background: rgba(255,255,255,0.78) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.16) !important;
}

/* Avatar container base — override overflow:visible so silhouette is clipped cleanly */
.fhp-card .pvc-avatar {
  overflow: hidden !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

/* ── T3: Category-specific gradients on .pvc-avatar[data-category] ── */

.pvc-avatar[data-category="plomberie"] {
  background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
}
.pvc-avatar[data-category="electricite"] {
  background: linear-gradient(135deg, #facc15, #f97316) !important;
}
.pvc-avatar[data-category="climatisation"] {
  background: linear-gradient(135deg, #22d3ee, #06b6d4) !important;
}
.pvc-avatar[data-category="peinture"] {
  background: linear-gradient(135deg, #f472b6, #ec4899) !important;
}
.pvc-avatar[data-category="nettoyage"] {
  background: linear-gradient(135deg, #34d399, #10b981) !important;
}
.pvc-avatar[data-category="menuiserie"] {
  background: linear-gradient(135deg, #a16207, #78350f) !important;
}
.pvc-avatar[data-category="serrurerie"] {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}
.pvc-avatar[data-category="maconnerie"] {
  background: linear-gradient(135deg, #6b7280, #374151) !important;
}
.pvc-avatar[data-category="jardinage"] {
  background: linear-gradient(135deg, #84cc16, #16a34a) !important;
}
.pvc-avatar[data-category="bricolage"] {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
}
.pvc-avatar[data-category="demenagement"] {
  background: linear-gradient(135deg, #c084fc, #7c3aed) !important;
}
.pvc-avatar[data-category="carrelage"] {
  background: linear-gradient(135deg, #94a3b8, #475569) !important;
}
.pvc-avatar[data-category="toiture"] {
  background: linear-gradient(135deg, #ef4444, #991b1b) !important;
}
.pvc-avatar[data-category="vitrerie"] {
  background: linear-gradient(135deg, #38bdf8, #0369a1) !important;
}
.pvc-avatar[data-category="chauffage"] {
  background: linear-gradient(135deg, #fb923c, #dc2626) !important;
}

/* ── T6: Price CSS — dominant amount + subtle Fixeo hint ── */

.pvc-price-amount {
  font-size: 1.75rem !important;
  font-weight: 900 !important;
  color: #fff !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
}

.pvc-price-from {
  color: #ffd166 !important;
  font-weight: 700 !important;
  font-size: 0.76rem !important;
  opacity: 1 !important;
  margin-top: 4px !important;
  display: block !important;
}

.pvc-price-hint {
  color: rgba(255,255,255,0.58) !important;
  font-size: 0.72rem !important;
  margin-top: 2px !important;
}

/* Hide the old nested hint sub-divs (only the simplified span is now rendered) */
.pvc-price-hint-market {
  display: none !important;
}
.pvc-price-hint-rec {
  display: none !important;
}

/* ── T7: Profile link — low-priority text link ── */

.pvc-profile-link {
  display: inline-block !important;
  color: rgba(255,255,255,0.62) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(255,255,255,0.28) !important;
  text-underline-offset: 2px !important;
  cursor: pointer !important;
  user-select: none !important;
  padding: 2px 4px !important;
  opacity: 1 !important;
  background: none !important;
  border: none !important;
}
.pvc-profile-link:hover {
  color: #fff !important;
  text-decoration-color: rgba(255,255,255,0.65) !important;
}

/* ── T8: Mobile footer — clean vertical layout ── */

@media (max-width: 640px) {
  .pvc-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .pvc-price-block {
    width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
  }

  /* Already display:none globally — reinforce for mobile */
  .pvc-price-hint {
    display: none !important;
  }

  .pvc-cta-col {
    width: 100% !important;
    align-items: stretch !important;
  }

  .pvc-cta-row {
    width: 100% !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .pvc-btn-reserve-v2 {
    width: 100% !important;
    text-align: center !important;
  }

  .pvc-profile-link {
    display: block !important;
    text-align: center !important;
    margin-top: 8px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FINAL POLISH — v7 (micro UX + perception boost)
   Tasks T1(CSS) T2 T3 T4 T5 T6 T7
   Real renderer: #fixeo-homepage-vedette-grid .fhp-card
═══════════════════════════════════════════════════════════════ */

/* ── T1: Price clarity — "Dès" style ── */
.pvc-price-amount {
  font-size: 1.75rem !important;
  font-weight: 900 !important;
  color: #fff !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
}
/* "Dès" prefix (rendered inline) + currency */
.pvc-price-amount .price-currency {
  font-size: 0.90rem !important;
  font-weight: 700 !important;
  opacity: 0.80 !important;
  margin-left: 3px !important;
  vertical-align: middle !important;
}

/* ── T2: Avatar service badge (bottom-right icon) ── */
/* Re-allow overflow:visible on the avatar container so badge bleeds out */
.fhp-card .pvc-avatar {
  overflow: visible !important;
  border-radius: 16px !important;
}
/* Clip only the silhouette content, not the badge */
.fhp-card .pvc-avatar > .pvc-avatar-silhouette,
.fhp-card .pvc-avatar > .pvc-avatar-img {
  border-radius: 16px !important;
  overflow: hidden !important;
}
.pvc-avatar-badge {
  position: absolute !important;
  bottom: -4px !important;
  right: -4px !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,0.85) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  border: 1.5px solid rgba(255,255,255,0.18) !important;
  z-index: 4 !important;
  pointer-events: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.40) !important;
}

/* ── T3: Reduce noise — secondary signals lighter ── */
.pvc-info-chip {
  opacity: 0.65 !important;
  font-size: 0.70rem !important;
}
.pvc-fomo {
  opacity: 0.65 !important;
  font-size: 0.70rem !important;
}
.pvc-trust-line {
  opacity: 0.65 !important;
  font-size: 0.70rem !important;
}

/* ── T4: Compact spacing ── */
.pvc-card .pvc-body {
  gap: 8px !important;
}
.pvc-rating-row,
.pvc-stats {
  margin-top: 4px !important;
}

/* ── T5: CTA premium depth ── */
.pvc-btn-reserve-v2 {
  box-shadow: 0 10px 30px rgba(255,77,141,0.35) !important;
}
.pvc-btn-reserve-v2:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 14px 36px rgba(255,77,141,0.48) !important;
}

/* ── T6: Card hover — desktop only ── */
@media (min-width: 641px) {
  .pvc-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.50) !important;
  }
}

/* ── T7: Subtle footer divider ── */
.pvc-footer {
  border-top: 1px solid rgba(255,255,255,0.05) !important;
  padding-top: 12px !important;
}

/* ═══════════════════════════════════════════════════════════════
   UBER FINAL POLISH — v8
   CSS-only. No JS touched. No layout broken.
   Real renderer: #fixeo-homepage-vedette-grid .fhp-card
   All rules appended — loads last → wins all specificity ties
═══════════════════════════════════════════════════════════════ */

/* ── T1: Visual noise reduction ── */
.pvc-info-chip {
  opacity: 0.45 !important;
}
.pvc-trust-line {
  opacity: 0.45 !important;
  font-size: 0.68rem !important;
}
.pvc-fomo {
  opacity: 0.75 !important;
  font-size: 0.70rem !important;
}

/* ── T2a: Avatar shadow depth ── */
.fhp-card .pvc-avatar {
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.04),
    0 10px 30px rgba(0,0,0,0.50),
    0 0 25px rgba(255,255,255,0.05) !important;
  overflow: visible !important; /* badge must bleed */
  border-radius: 16px !important;
}

/* ── T2b: Badge — kill old opacity:0 override + increase size ──
   The old v2 pass at ~L486 set opacity:0 !important.
   We appended after it → this wins. ── */
.pvc-avatar-badge {
  width: 28px !important;
  height: 28px !important;
  font-size: 14px !important;
  opacity: 1 !important; /* restore: kill the old opacity:0 */
  bottom: -5px !important;
  right: -5px !important;
  position: absolute !important;
  z-index: 10 !important;
  background: rgba(0,0,0,0.85) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid rgba(255,255,255,0.20) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45) !important;
  pointer-events: none !important;
}

/* ── T3: CTA column layout on desktop (unify with mobile) ── */
.pvc-cta-row {
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}
/* Reserve button full-width in column layout */
.pvc-btn-reserve-v2 {
  width: 100% !important;
  text-align: center !important;
}
/* Profile link centered when stacked */
.pvc-profile-link {
  text-align: center !important;
  display: block !important;
}

/* ── T4: Footer gap breathing room ── */
.pvc-footer {
  gap: 10px !important;
}

/* ── T5: Body density — compact but not cramped ── */
.pvc-card .pvc-body {
  gap: 6px !important;
}

/* ── T6: Desktop hover — premium controlled motion ── */
@media (min-width: 641px) {
  .pvc-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow:
      0 28px 64px rgba(0,0,0,0.55),
      0 0 0 1px rgba(225,48,108,0.18) !important;
  }
}

/* ── T7: Click feedback — tactile active state ── */
.pvc-card:active {
  transform: scale(0.99) !important;
  transition: transform 0.08s ease !important;
}

/* ═══════════════════════════════════════════════════════════════
   WOW LEVEL POLISH — v9 (Apple / Stripe / Uber perception)
   CSS-only. No JS. No HTML. No other sections.
   Real renderer: #fixeo-homepage-vedette-grid .fhp-card
   All rules appended — loads last → wins all specificity ties
═══════════════════════════════════════════════════════════════ */

/* ── T1: CTA magnet effect ── */
.pvc-btn-reserve-v2 {
  box-shadow:
    0 14px 38px rgba(255,77,141,0.45),
    0 0 22px rgba(168,85,247,0.32) !important;
}
.pvc-btn-reserve-v2:hover {
  transform: translateY(-2px) scale(1.012) !important;
  box-shadow:
    0 20px 52px rgba(255,77,141,0.58),
    0 0 34px rgba(168,85,247,0.46) !important;
}

/* ── T2: Price impact ── */
.pvc-price-amount {
  font-size: 1.85rem !important;
  font-weight: 950 !important;
  letter-spacing: -0.04em !important;
}
.pvc-price-from {
  font-size: 0.78rem !important;
  opacity: 1 !important;
}

/* ── T3: Avatar signature depth ── */
.fhp-card .pvc-avatar {
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.05),
    0 12px 32px rgba(0,0,0,0.52),
    0 0 34px rgba(255,255,255,0.08) !important;
}
.pvc-avatar-badge {
  box-shadow:
    0 6px 16px rgba(0,0,0,0.35),
    0 0 12px rgba(255,255,255,0.10) !important;
}

/* ── T4: Availability boost ── */
.pvc-avail-badge {
  font-weight: 700 !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 14px rgba(0,255,120,0.24) !important;
}

/* ── T5: Card glass depth ── */
.pvc-card {
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.055), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)) !important;
  border: 1px solid rgba(255,255,255,0.095) !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease !important;
}
@media (min-width: 641px) {
  .pvc-card:hover {
    transform: translateY(-8px) scale(1.012) !important;
    border-color: rgba(255,255,255,0.16) !important;
    box-shadow:
      0 32px 74px rgba(0,0,0,0.55),
      0 0 48px rgba(225,48,108,0.13) !important;
  }
}

/* ── T6: Tap feedback ── */
.pvc-card:active {
  transform: scale(0.99) !important;
}
.pvc-btn-reserve-v2:active {
  transform: scale(0.985) !important;
}

/* ── T7: Mobile safety ── */
@media (max-width: 640px) {
  .pvc-price-amount {
    font-size: 1.72rem !important;
  }
  .pvc-btn-reserve-v2 {
    box-shadow:
      0 12px 34px rgba(255,77,141,0.42),
      0 0 20px rgba(168,85,247,0.28) !important;
  }
  .pvc-card:hover {
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LAUNCH CLEAN UI — v10 (minimal CSS for new template classes)
   Supports T1 (pvc-rating-state) + T2 (chip-trust)
   No layout changes. No structural changes.
═══════════════════════════════════════════════════════════════ */

/* T1: Rating state label — replaces numeric rating/reviews */
.pvc-rating-state {
  font-size: 0.72rem !important;
  color: rgba(255,255,255,0.55) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  margin-left: 6px !important;
}

/* T2: Trust chip — replaces mission count */
.pvc-info-chip.chip-trust {
  background: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.72) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PRE-LAUNCH MICRO-FIXES — v11
   T1: reinforce badge kill  T2: CTA stretch  T3: chip-trust boost
   CSS-only. No JS. No HTML. No layout change. No regression.
═══════════════════════════════════════════════════════════════ */

/* ── T1: belt-and-suspenders — Profil réel badge stays hidden ── */
.pvc-badge-v2--real,
.pvc-badge-v2--claim {
  display: none !important;
}

/* ── T2: CTA full-width + column on ALL screens (global, no @media) ── */
.pvc-cta-row {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
}
.pvc-btn-reserve-v2 {
  width: 100% !important;
  text-align: center !important;
  display: block !important;
}
.pvc-profile-link {
  display: block !important;
  text-align: center !important;
  margin-top: 6px !important;
}

/* ── T3: "Sélectionné par Fixeo" chip — more visible trust signal ── */
.pvc-info-chip.chip-trust {
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500 !important;
  box-shadow: 0 0 12px rgba(255,255,255,0.06) !important;
}

/* ═══════════════════════════════════════════════════════════════
   FINAL CLEAN LAUNCH — v12
   T1: badge kill  T4: avatar badge glow  T5: orphan cleanup
   CSS-only additions. No layout change. No regression.
═══════════════════════════════════════════════════════════════ */

/* ── T1: Final badge kill (belt-and-suspenders, last in file) ── */
.pvc-badge-v2--real {
  display: none !important;
}
.pvc-badge-v2--claim {
  display: none !important;
}

/* ── T4: Avatar badge — enhanced depth + subtle glow ── */
.pvc-avatar-badge {
  width: 28px !important;
  height: 28px !important;
  font-size: 14px !important;
  opacity: 1 !important;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.50),
    0 0 10px rgba(255,255,255,0.08) !important;
}

/* ── T5: Hide orphan under-cta if still in DOM from cached render ── */
.pvc-under-cta {
  display: none !important;
}

/* ── T5: Hide chip-trust if still in DOM from cached render ── */
.pvc-info-chip.chip-trust {
  display: none !important;
}

/* ── T5: Hide empty info-bar if no chips remain ── */
.pvc-info-bar:empty {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════
   LIVE MARKETPLACE SIGNALS — v13
   Append-only. Do NOT edit lines above.
   Adds: .pvc-live-signal, .pvc-live-dot, subtle hover energy.
   ══════════════════════════════════════════════════════════════ */

/* ── Live signal strip (replaces pvc-fomo for qualified artisans) ── */
.pvc-live-signals {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Individual signal pill */
.pvc-live-signal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.3;
}

/* Tier 1 — fast response (score >= 90) */
.pvc-live-signal--fast {
  background: rgba(32, 201, 151, .10);
  color: #1fbd8a;
  border: 1px solid rgba(32, 201, 151, .20);
}

/* Tier 2 — active this week (score 80–89) */
.pvc-live-signal--active {
  background: rgba(96, 165, 250, .10);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, .18);
}

/* Tier 3 — by appointment (score < 80) */
.pvc-live-signal--rdv {
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .45);
  border: 1px solid rgba(255, 255, 255, .08);
}

/* Context signal — rating / city */
.pvc-live-signal--context {
  background: rgba(246, 201, 14, .08);
  color: rgba(246, 201, 14, .80);
  border: 1px solid rgba(246, 201, 14, .14);
}

/* Live pulse dot (for fast/active only) */
.pvc-live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pvc-live-signal--fast   .pvc-live-dot { background: #1fbd8a; animation: pvc-pulse-dot 2.2s ease-in-out infinite; }
.pvc-live-signal--active .pvc-live-dot { background: #60a5fa; animation: pvc-pulse-dot 3s ease-in-out infinite; }

@keyframes pvc-pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: .45; transform: scale(.7); }
}

/* ── Hide old pvc-fomo (replaced by pvc-live-signals) ── */
.pvc-fomo {
  display: none !important;
}

/* ── Hover energy — subtle lift + glow ── */
#fixeo-homepage-vedette-grid .pvc-card {
  transition:
    transform 180ms cubic-bezier(.25,.8,.25,1),
    box-shadow 180ms cubic-bezier(.25,.8,.25,1),
    border-color 180ms ease;
  will-change: transform;
}

#fixeo-homepage-vedette-grid .pvc-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 24px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.07),
    0 0 16px rgba(32,201,151,.08);
  border-color: rgba(255,255,255,.10);
}

/* Stars warm up slightly on card hover */
#fixeo-homepage-vedette-grid .pvc-card:hover .pvc-stars-v2 {
  color: #f8d648;
  transition: color 180ms ease;
}

/* Rating state text — softer */
.pvc-rating-state {
  font-size: .67rem;
  color: rgba(255,255,255,.38);
  font-style: italic;
}

/* ── Trust line upgrade — slightly more visible ── */
.pvc-trust-line {
  font-size: .64rem;
  color: rgba(255,255,255,.52);
  padding: 0 18px;
  margin-top: 5px;
  letter-spacing: .01em;
}

/* ── Mobile: signal pills stay compact ── */
@media (max-width: 640px) {
  .pvc-live-signals {
    gap: 5px;
    margin-top: 4px;
  }
  .pvc-live-signal {
    font-size: .60rem;
    padding: 2px 7px;
  }
  #fixeo-homepage-vedette-grid .pvc-card:hover {
    transform: none; /* no lift on touch — no reflow cost */
  }
}

@media (max-width: 380px) {
  .pvc-live-signal {
    font-size: .58rem;
    padding: 2px 6px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PHASE J-1 — Marketplace Energy & Trust Refresh — v14
   Append-only. Never edit lines above.
   Changes:
     J1-A: trust line opacity boost (0.45/0.52 → 0.78)
     J1-B: city pill opacity boost (0.42 → 0.60)
     J1-C: rating-state credible (non-italic, correct colour per tier)
     J1-D: section header — new link/counter styles
     J1-E: mobile swipe hint — narrower card for wider peek
     J1-F: "Voir profil" touch target boost on mobile
   ═══════════════════════════════════════════════════════════════ */

/* ── J1-A: Trust line — from near-invisible to readable ── */
.pvc-trust-line {
  opacity: 0.78 !important;
  font-size: 0.66rem !important;
  color: rgba(255,255,255,0.78) !important;
}

/* ── J1-B: City pill — from whisper to legible ── */
.pvc-city-pill {
  color: rgba(255,255,255,0.60) !important;
  font-size: 0.70rem !important;
}

/* ── J1-C: Rating state — credible tier text, not italic ghost ── */
.pvc-rating-state {
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 0.70rem !important;
  color: rgba(255,255,255,0.60) !important;
  margin-left: 7px !important;
  letter-spacing: 0.01em !important;
}

/* ── J1-D: Section header — "voir tous" link + counter pill ── */

/* Wrapper becomes a link */
.fhp-see-all {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.fhp-see-all:hover .fhp-counter {
  background: rgba(32,201,151,0.18) !important;
  border-color: rgba(32,201,151,0.40) !important;
}
.fhp-see-all-arrow {
  font-size: 0.80rem !important;
  color: #20c997 !important;
  opacity: 0.75 !important;
  transition: transform 0.18s ease !important;
}
.fhp-see-all:hover .fhp-see-all-arrow {
  transform: translateX(3px) !important;
  opacity: 1 !important;
}

/* Subtitle — trust signals line: slightly brighter */
.fhp-subtitle {
  color: rgba(255,255,255,0.62) !important;
  font-size: 0.84rem !important;
  line-height: 1.4 !important;
}

/* ── J1-E: Mobile swipe discoverability — narrower card = wider peek ── */
/* On 390px screen: 343px → 318px card = 72px peek gap vs 47px before.
   The gap + shadow of next card is now clearly visible.
   Scoped to ≤480px only — preserves desktop/tablet layout. */
@media (max-width: 480px) {
  #fixeo-homepage-vedette-grid .fhp-card {
    min-width: 318px !important;
    max-width: 318px !important;
    width: 318px !important;
  }
}

/* Swipe hint: subtle "see next" arrow on first card (CSS only, no JS) */
@media (max-width: 480px) {
  #fixeo-homepage-vedette-grid {
    /* Slightly overdrag so next card is partially visible — reinforces swipe */
    padding-right: 32px !important;
  }
}

/* ── J1-F: "Voir profil" — improved touch target on mobile ── */
@media (max-width: 640px) {
  .pvc-profile-link {
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.76rem !important;
    color: rgba(255,255,255,0.68) !important;
    padding: 4px 0 !important;
  }
}

/* ── J1-E safety: 320px breakpoint — card can't be wider than viewport ── */
@media (max-width: 340px) {
  #fixeo-homepage-vedette-grid .fhp-card {
    min-width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PHASE J-2 — Marketplace Depth & Browse Feeling — v15
   Append-only. Never edit lines above. Braces must stay balanced.
   Changes:
     J2-A: counter colour fix — green through <a> wrapper
     J2-B: mobile section top padding 80px → 48px
     J2-C: mobile header compression — smaller, single-row
     J2-D: carousel peek engineering — negative margin overflow trick
     J2-E: continuation gradient mask — right edge fades to suggest more
     J2-F: "Voir tous" — stronger, explore-oriented label
     J2-G: scroll-snap-align + scroll-padding for comfortable snapping
   ═══════════════════════════════════════════════════════════════ */

/* ── J2-A: Counter colour — fix <a> link-colour bleed ── */
.fhp-see-all {
  color: inherit !important;
  text-decoration: none !important;
}
#fixeo-homepage-header .fhp-counter {
  color: #20c997 !important;
  background: rgba(32,201,151,0.12) !important;
  border: 1px solid rgba(32,201,151,0.28) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
}
/* Arrow inherits green from counter context */
.fhp-see-all-arrow {
  color: #20c997 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
}

/* ── J2-B: Mobile section top padding reduction ── */
/* 80px top padding is correct for desktop (clean separation from mini-trust strip).
   On mobile the mini-trust strip above already creates 212px of separation
   → reduce artisans section PT to 48px on mobile. */
@media (max-width: 640px) {
  #artisans-section {
    padding-top: 48px !important;
  }
}

/* ── J2-C: Mobile header compression ── */
/* Current: hdrH=175px (2-row wrap). Target: ≤110px (1-row or compact 2-row). */
@media (max-width: 640px) {
  .fhp-section-header {
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
  }
  .fhp-header-copy {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  .fhp-title {
    font-size: 1.05rem !important;
    margin-bottom: 3px !important;
    line-height: 1.2 !important;
  }
  .fhp-subtitle {
    font-size: 0.70rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: block !important;
  }
  .fhp-see-all {
    flex-shrink: 0 !important;
    align-self: flex-start !important;
  }
  #fixeo-homepage-header .fhp-counter {
    font-size: 0.68rem !important;
    padding: 4px 10px !important;
    white-space: nowrap !important;
  }
  .fhp-see-all-arrow {
    display: none !important; /* hidden on mobile — counter pill is CTA */
  }
}

/* ── J2-D: Mobile carousel peek — overflow engineering ── */
/* Problem: gridW≈c0W → peekApprox≈4px → no next-card visible.
   Fix: overflow the grid rightward beyond its container using negative margin-right.
   The parent .results-page-shell has overflow:hidden by default which clips this —
   we need overflow:visible on the chain so the peek shows.
   Scope: ≤640px (carousel mode only). */
@media (max-width: 640px) {
  /* Allow the grid to bleed out of its container rightward */
  #artisans-section .results-page-shell,
  #artisans-section .results-layout,
  #artisans-section .results-main-column {
    overflow-x: visible !important;
  }

  /* Grid itself: extend width beyond container, pull left to stay aligned */
  #fixeo-homepage-vedette-grid {
    width: calc(100vw - 20px) !important;
    max-width: none !important;
    /* Left-align with the container (20px = container left padding) */
    margin-left: 0 !important;
    /* Right side bleeds into viewport — shows next card */
    padding-left: 20px !important;
    padding-right: 44px !important; /* extra right space = peek invitation */
    box-sizing: border-box !important;
  }
}

/* ── J2-E: Continuation gradient mask ── */
/* A subtle right-edge fade tells the user the list continues.
   CSS mask-image on the grid: content is fully opaque to 78%, then fades to transparent.
   No layout impact. No JS. No performance cost beyond a composite layer. */
@media (max-width: 640px) {
  #fixeo-homepage-vedette-grid {
    -webkit-mask-image: linear-gradient(
      to right,
      black 0%,
      black 78%,
      transparent 100%
    ) !important;
    mask-image: linear-gradient(
      to right,
      black 0%,
      black 78%,
      transparent 100%
    ) !important;
  }
}

/* ── J2-F: Scroll snap polish ── */
/* Ensure each card snaps cleanly to start, with correct alignment. */
@media (max-width: 640px) {
  #fixeo-homepage-vedette-grid .fhp-card {
    scroll-snap-align: start !important;
    scroll-snap-stop: normal !important;
  }
  /* scroll-padding-left so snap target is inset from grid left edge */
  #fixeo-homepage-vedette-grid {
    scroll-padding-left: 20px !important;
  }
}

/* ── J2-G: Desktop — "Voir tous" counter pill upgrade ── */
/* On desktop: make the counter more inviting, less status-badge, more CTA. */
@media (min-width: 641px) {
  .fhp-see-all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 24px !important;
    padding: 4px 4px 4px 12px !important;
    background: rgba(32,201,151,0.06) !important;
    border: 1px solid rgba(32,201,151,0.15) !important;
    transition: background 0.18s ease, border-color 0.18s ease !important;
  }
  .fhp-see-all:hover {
    background: rgba(32,201,151,0.14) !important;
    border-color: rgba(32,201,151,0.32) !important;
  }
  /* Inner counter loses its own border since the wrapper already has one */
  .fhp-see-all #fixeo-homepage-header .fhp-counter,
  #fixeo-homepage-header .fhp-see-all .fhp-counter {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }
  .fhp-see-all-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: rgba(32,201,151,0.18) !important;
    font-size: 0.80rem !important;
    transition: background 0.18s ease, transform 0.18s ease !important;
  }
  .fhp-see-all:hover .fhp-see-all-arrow {
    background: rgba(32,201,151,0.30) !important;
    transform: translateX(2px) !important;
  }
}

/* ── J2 card width unification: 82vw across all ≤640px (overrides J-1's 318px) ── */
@media (max-width: 640px) {
  #fixeo-homepage-vedette-grid .fhp-card {
    min-width: 82vw !important;
    max-width: 82vw !important;
    width: 82vw !important;
  }
}
/* ≤340px safety: floor at calc(100vw - 32px) so card never clips viewport */
@media (max-width: 340px) {
  #fixeo-homepage-vedette-grid .fhp-card {
    min-width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
  }
}

/* ── J2 SPECIFICITY FIX: use double-ID-class selector to beat (2,0,0) from patch CSS ── */
/* marketplace-premium-patch.css uses #id.class selectors at (2,0,0) → must match or exceed */
@media (max-width: 640px) {
  #fixeo-homepage-vedette-grid.ssb2-vedette-grid,
  #fixeo-homepage-vedette-grid.fhp-grid,
  #fixeo-homepage-vedette-grid {
    /* J2: full-viewport grid so next card peeks into view */
    width: 100vw !important;
    padding-left: 20px !important;
    padding-right: 48px !important;
  }
  #fixeo-homepage-vedette-grid.ssb2-vedette-grid .fhp-card,
  #fixeo-homepage-vedette-grid.fhp-grid .fhp-card,
  #fixeo-homepage-vedette-grid .fhp-card {
    /* J2: 82vw card width for peek gap */
    min-width: 82vw !important;
    max-width: 82vw !important;
    width: 82vw !important;
  }
}

/* ── J2 peek calibration: 82vw→76vw for proper peek gap (grid starts at ~29px) ── */
/* Math at 390px: grid.left=29, padL=20, card0.left=49, card0.right=49+296=345,
   gap=14, card1.left=359, viewport=390, PEEK=31px — clearly visible ── */
@media (max-width: 640px) {
  #fixeo-homepage-vedette-grid.ssb2-vedette-grid .fhp-card,
  #fixeo-homepage-vedette-grid.fhp-grid .fhp-card,
  #fixeo-homepage-vedette-grid .fhp-card {
    min-width: 76vw !important;
    max-width: 76vw !important;
    width: 76vw !important;
  }
}
@media (max-width: 340px) {
  #fixeo-homepage-vedette-grid.ssb2-vedette-grid .fhp-card,
  #fixeo-homepage-vedette-grid.fhp-grid .fhp-card,
  #fixeo-homepage-vedette-grid .fhp-card {
    min-width: calc(100vw - 44px) !important;
    max-width: calc(100vw - 44px) !important;
    width: calc(100vw - 44px) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PHASE J-2B — Header Hierarchy + City Alignment + Depth Polish
   Append-only. Never edit lines above. Braces must stay balanced.
   Changes:
     J2B-A: City pill — nowrap + ellipsis for long names like "Béni Mellal"
     J2B-B: Mobile header — 2-row layout (title/subtitle | counter)
             Title larger + stronger; counter full-width below
     J2B-C: Subtitle — marketplace depth signal (not features list)
     J2B-D: Counter pill on mobile — left-aligned, feels like proof not label
     J2B-E: Desktop header — minor subtitle spacing polish
   ═══════════════════════════════════════════════════════════════ */

/* ── J2B-A: City pill — icon + text always on same line ── */
/* Root cause: whiteSpace:normal on 29px-wide pill → emoji wraps to next line.
   Fix: nowrap + ellipsis truncation at a sensible max-width. */
.pvc-city-pill {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 130px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  vertical-align: middle !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
}

/* ── J2B-B: Mobile header — two-row layout for clear hierarchy ── */
/* Row 1: title (full width) + subtitle (full width) = emotional content
   Row 2: "+735 artisans actifs" counter = marketplace proof
   The counter pill now has its own row → no longer fights the title for space. */
@media (max-width: 640px) {
  .fhp-section-header {
    /* Switch from J-2's flex-row to column on mobile */
    flex-direction: column !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding-bottom: 14px !important;
  }
  .fhp-header-copy {
    width: 100% !important;
    flex: none !important;
    min-width: 0 !important;
  }
  .fhp-title {
    /* Stronger emotional presence now that it has full width */
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 5px !important;
    line-height: 1.25 !important;
    white-space: normal !important; /* allow wrapping on narrow screens */
  }
  .fhp-subtitle {
    /* Local + safety signal — clear and legible */
    font-size: 0.74rem !important;
    color: rgba(255,255,255,0.58) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 100% !important;
    line-height: 1.4 !important;
  }
  /* Counter pill: own row, left-aligned, reads as marketplace proof */
  .fhp-see-all {
    width: auto !important;
    align-self: flex-start !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  #fixeo-homepage-header .fhp-counter {
    /* Slightly larger on mobile — it's now the primary CTA of the header */
    font-size: 0.72rem !important;
    padding: 5px 12px !important;
    font-weight: 700 !important;
  }
  /* Arrow: show on mobile in column layout (it was hidden in J-2 row layout) */
  .fhp-see-all-arrow {
    display: inline-flex !important;
    font-size: 0.72rem !important;
    opacity: 0.80 !important;
  }
}

/* ── J2B-C: Desktop subtitle — slightly more breathing room ── */
@media (min-width: 641px) {
  .fhp-subtitle {
    margin-top: 3px !important;
    line-height: 1.5 !important;
    font-size: 0.86rem !important;
  }
}

/* ── J2B-D: Meta row containing city pill — prevent overflow ── */
/* The .pvc-meta-row holds cat-pill + city-pill + avail-badge.
   On narrow cards, enforce nowrap + proper truncation. */
.pvc-meta-row {
  flex-wrap: nowrap !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
/* Cat pill must also be able to shrink */
.pvc-cat-pill {
  flex-shrink: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 90px !important;
}
/* Avail badge: never shrink, never wrap */
.pvc-avail-badge {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin-left: auto !important;
}

/* ═══════════════════════════════════════════════════════════════
   PHASE J-4 — Card Premiumization & Human Trust
   Append-only. Never edit lines above. Braces must stay balanced.
   Changes:
     J4-A: Avatar human presence — 64→72px + subtle presence ring
     J4-B: Top artisan differentiation — first 3 cards brighter glow
     J4-C: CTA glass-button premium — inset highlight + 12→14px radius
     J4-D: "Voir profil" link feel — hover underline + slight color boost
     J4-E: Mobile tap comfort — active inner ring feedback
   ═══════════════════════════════════════════════════════════════ */

/* ── J4-A: Avatar human presence uplift ── */
/* Increase avatar from 64px → 72px for stronger face/icon presence.
   Also add a subtle 2px transparent gap + faint white outline ring via outline
   trick — makes avatar "float" slightly above the card bg, feeling more like
   a real profile photo frame rather than a flat colored square.
   outline-offset creates the gap; outline itself is the ring. */
.fhp-card .pvc-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 18px !important;
  outline: 2px solid rgba(255, 255, 255, 0.10) !important;
  outline-offset: 3px !important;
  transition: outline-color 0.22s ease !important;
}
/* Clip inner content (img / silhouette) to the new radius */
.fhp-card .pvc-avatar > .pvc-avatar-silhouette,
.fhp-card .pvc-avatar > .pvc-avatar-img {
  border-radius: 18px !important;
}
/* Hover: ring brightens — avatar "activates" when user approaches card */
@media (min-width: 641px) {
  .fhp-card:hover .pvc-avatar {
    outline-color: rgba(255, 255, 255, 0.22) !important;
  }
}
/* Keep overflow:visible for badge bleed */
.fhp-card .pvc-avatar {
  overflow: visible !important;
}
/* Clip content (not badge) with inner elements */
.fhp-card .pvc-avatar > .pvc-avatar-silhouette {
  overflow: hidden !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 18px !important;
}
.fhp-card .pvc-avatar > .pvc-avatar-img {
  overflow: hidden !important;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 18px !important;
}

/* ── J4-B: Top artisan differentiation ── */
/* First 3 cards = highest-scored artisans (sorted by FixeoMatchingEngine).
   Very subtle: slightly brighter border + faint ambient glow.
   No badge, no label, no text change — purely visual premium weight.
   Specificity matches existing fhp-card rules, appended last = wins. */
#fixeo-homepage-vedette-grid .fhp-card:nth-child(1),
#fixeo-homepage-vedette-grid .fhp-card:nth-child(2),
#fixeo-homepage-vedette-grid .fhp-card:nth-child(3) {
  border-color: rgba(255, 255, 255, 0.13) !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.38),
    0 0 0 0.5px rgba(255, 255, 255, 0.06) !important;
}
/* On desktop hover: top-3 get a slightly warmer glow than base cards */
@media (min-width: 641px) {
  #fixeo-homepage-vedette-grid .fhp-card:nth-child(1):hover,
  #fixeo-homepage-vedette-grid .fhp-card:nth-child(2):hover,
  #fixeo-homepage-vedette-grid .fhp-card:nth-child(3):hover {
    border-color: rgba(255, 255, 255, 0.20) !important;
    box-shadow:
      0 32px 74px rgba(0, 0, 0, 0.55),
      0 0 48px rgba(32, 201, 151, 0.10),
      0 0 0 1px rgba(255, 255, 255, 0.10) !important;
  }
}

/* ── J4-C: CTA glass-button premium ── */
/* Add an inset top highlight (glass bevel) + round up radius 12→14px.
   The inset shadow is invisible on a dark bg but visible on the button gradient
   → gives a subtle "raised glass" dimensional feeling. */
.pvc-btn-reserve-v2 {
  border-radius: 14px !important;
  box-shadow:
    0 12px 34px rgba(255, 77, 141, 0.42),
    0 0 20px rgba(168, 85, 247, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  letter-spacing: 0.015em !important;
}
/* Hover: lift + brighten inset */
.pvc-btn-reserve-v2:hover {
  box-shadow:
    0 20px 52px rgba(255, 77, 141, 0.55),
    0 0 34px rgba(168, 85, 247, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  border-radius: 14px !important;
}
/* Active: crisp snap + slightly reduced inset */
.pvc-btn-reserve-v2:active {
  transform: scale(0.975) !important;
  box-shadow:
    0 6px 18px rgba(255, 77, 141, 0.32),
    0 0 14px rgba(168, 85, 247, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: transform 0.07s ease, box-shadow 0.07s ease !important;
}
/* Mobile: keep shadow but no hover lift (touch devices) */
@media (max-width: 640px) {
  .pvc-btn-reserve-v2 {
    box-shadow:
      0 10px 28px rgba(255, 77, 141, 0.38),
      0 0 16px rgba(168, 85, 247, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  }
}

/* ── J4-D: "Voir profil →" link premium feel ── */
/* Add bottom border on hover — makes it feel like a real hyperlink in a premium
   product rather than a faint label. The transition is short (0.15s) for snappy feel. */
.pvc-profile-link {
  color: rgba(255, 255, 255, 0.70) !important;
  border-bottom: 1px solid transparent !important;
  transition: color 0.15s ease, border-color 0.15s ease !important;
  padding-bottom: 1px !important;
  display: inline-block !important;
  /* Override the block+center from v11 to restore right-alignment */
  text-align: center !important;
}
.pvc-profile-link:hover {
  color: rgba(255, 255, 255, 0.90) !important;
  border-bottom-color: rgba(255, 255, 255, 0.28) !important;
}
/* Mobile: slightly stronger base color since no hover state */
@media (max-width: 640px) {
  .pvc-profile-link {
    color: rgba(255, 255, 255, 0.72) !important;
  }
}

/* ── J4-E: Mobile tap comfort ── */
/* On touch: faint inner ring on active state — tactile confirmation without
   animation cost. The inset ring is GPU-accelerated (box-shadow, no layout). */
@media (max-width: 640px) {
  .pvc-card:active {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.10) !important;
    transform: scale(0.990) !important;
    transition: transform 0.07s ease, box-shadow 0.07s ease !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   K-2: City Explore Strip — Premium Local Marketplace Exploration
   ══════════════════════════════════════════════════════════════════════
   Sits below the artisan carousel. Shows adjacent + national city chips.
   Philosophy: app-like exploration feel — NOT an annuaire / SEO footer.
   Append-only. Do not modify existing blocks. Braces must stay balanced.
   ═══════════════════════════════════════════════════════════════════ */

/* ── K2-A: Strip container ── */
.fhp-explore-strip {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 24px !important;
  padding: 16px 0 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* ── K2-B: "Explorer" label ── */
.fhp-explore-label {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.38) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-right: 4px !important;
  padding-top: 1px !important;
}

/* ── K2-C: City chip base ── */
.fhp-explore-chip {
  display: inline-flex !important;
  align-items: center !important;
  padding: 5px 13px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.80rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  flex-shrink: 0 !important;
}
.fhp-explore-chip:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: rgba(255, 255, 255, 0.88) !important;
}
.fhp-explore-chip:active {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: scale(0.97) !important;
  transition: transform 0.08s ease !important;
}

/* ── K2-D: Adjacent-city chips — subtle green tint (regional intelligence) ── */
/* Adjacent cities get a faint emerald accent — they are geographically "close".
   This communicates regional connectivity without any explicit label. */
.fhp-explore-chip.fhp-explore-adj {
  border-color: rgba(32, 201, 151, 0.28) !important;
  color: rgba(32, 201, 151, 0.82) !important;
  background: rgba(32, 201, 151, 0.06) !important;
}
.fhp-explore-chip.fhp-explore-adj:hover {
  background: rgba(32, 201, 151, 0.13) !important;
  border-color: rgba(32, 201, 151, 0.46) !important;
  color: rgba(32, 201, 151, 1.00) !important;
}

/* ── K2-E: Mobile — horizontal scroll strip ── */
@media (max-width: 640px) {
  .fhp-explore-strip {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 16px 0 12px 0 !important;
    margin-top: 20px !important;
    /* Right fade — visual continuation cue */
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%) !important;
    mask-image: linear-gradient(to right, black 80%, transparent 100%) !important;
  }
  .fhp-explore-strip::-webkit-scrollbar {
    display: none !important;
  }
  .fhp-explore-label {
    font-size: 0.68rem !important;
  }
  .fhp-explore-chip {
    font-size: 0.76rem !important;
    padding: 6px 12px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   FXHOME-ARTISANS-V2B.1.2 — Avatar state isolation
   Fixes split-avatar defect: silhouette was always visible (display:block
   !important) alongside the illustrative <img>, producing two simultaneous
   visuals in the flex container.

   State model: data-avatar-state on .pvc-avatar container (set by JS).
   States are mutually exclusive:
     "real-photo"          → only .pvc-avatar-img visible
     "illustrative-metier" → only .pvc-avatar-img visible
     "silhouette"          → only .pvc-avatar-silhouette visible
     (no attribute)        → silhouette only (default/unknown)

   These rules are scoped to .fhp-card and never touch global selectors.
   No card dimensions, spacing, badge position or layout changed.
   ═══════════════════════════════════════════════════════════════════ */

/* When an image state is active: hide silhouette entirely.
   Overrides the display:block !important at line ~675 for this context. */
.fhp-card .pvc-avatar[data-avatar-state="real-photo"] > .pvc-avatar-silhouette,
.fhp-card .pvc-avatar[data-avatar-state="illustrative-metier"] > .pvc-avatar-silhouette {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* When an image state is active: img fills container, no flex sibling. */
.fhp-card .pvc-avatar[data-avatar-state="real-photo"] > .pvc-avatar-img,
.fhp-card .pvc-avatar[data-avatar-state="illustrative-metier"] > .pvc-avatar-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Silhouette state: img hidden, silhouette span active at full container size. */
.fhp-card .pvc-avatar[data-avatar-state="silhouette"] > .pvc-avatar-img {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* position:relative on container so absolute img child is contained. */
.fhp-card .pvc-avatar[data-avatar-state="real-photo"],
.fhp-card .pvc-avatar[data-avatar-state="illustrative-metier"] {
  position: relative !important;
  overflow: hidden !important;
}

/* ══════════════════════════════════════════════════════════════════════
   FXHOME-ARTISAN-CARD-V3B — Production Card Integration
   Append-only. Never edit lines above. Braces must stay balanced.

   Implements approved V3A.3 card design:
     V3B-A: 400px fixed card height + flex-column structure
     V3B-B: Identity vertical centering
     V3B-C: Avatar responsive sizes (88/82/92px)
     V3B-D: Name two-line clamp
     V3B-E: Description (optional, factual, 2-line clamp)
     V3B-F: Trust two-row layout (no pill, no border, no overflow)
     V3B-G: Action area margin-top:auto anchor
     V3B-H: Price block spacing
     V3B-I: Primary CTA — orange→magenta, controlled glow, 42px
     V3B-J: Secondary link — 40px tap, readable contrast
     V3B-K: Rating/stats block light layout
     V3B-L: Live signals hidden (superseded by trust two-row)
     V3B-M: Old trust-line hidden
     V3B-N: Old pvc-footer/pvc-divider/pvc-stats suppressed in V3B context
   ══════════════════════════════════════════════════════════════════════ */

/* ── V3B-A: 400px fixed height — card container ── */
/* Scoped to .fhp-card so carousel cards targeted; no effect on other card types. */
#fixeo-homepage-vedette-grid .fhp-card {
  height: 400px !important;
  min-height: 400px !important;
  max-height: 400px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  /* Preserve existing glass surface, border, border-radius, box-shadow from earlier rules */
  padding: 22px 18px 16px !important;
  gap: 0 !important;
}

/* ── V3B-B: Identity area — vertically centred ── */
#fixeo-homepage-vedette-grid .fhp-card .pvc-card-header,
#fixeo-homepage-vedette-grid .fhp-card .pvc-card-header-final {
  display: flex !important;
  align-items: center !important;   /* vertical centre — V3A.3 approved */
  gap: 13px !important;
  margin-bottom: 8px !important;    /* 10→8: budget correction for 400px lock */
  flex-shrink: 0 !important;
}

/* ── V3B-C: Avatar — 88px desktop/390px default ── */
#fixeo-homepage-vedette-grid .fhp-card .pvc-avatar {
  width: 88px !important;
  height: 88px !important;
  min-width: 88px !important;
  flex-shrink: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;       /* clip img to rounded square */
}
/* Badge — restore bleed (needs overflow:visible on container) */
#fixeo-homepage-vedette-grid .fhp-card .pvc-avatar {
  overflow: visible !important;
}
/* Inner clip via direct children only */
#fixeo-homepage-vedette-grid .fhp-card .pvc-avatar > .pvc-avatar-img,
#fixeo-homepage-vedette-grid .fhp-card .pvc-avatar > .pvc-avatar-silhouette {
  border-radius: 18px !important;
  width: 88px !important;
  height: 88px !important;
}

/* 320px: 82px avatar */
@media (max-width: 340px) {
  #fixeo-homepage-vedette-grid .fhp-card .pvc-avatar,
  #fixeo-homepage-vedette-grid .fhp-card .pvc-avatar > .pvc-avatar-img,
  #fixeo-homepage-vedette-grid .fhp-card .pvc-avatar > .pvc-avatar-silhouette {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
  }
}
/* Desktop: 92px avatar */
@media (min-width: 641px) {
  #fixeo-homepage-vedette-grid .fhp-card .pvc-avatar,
  #fixeo-homepage-vedette-grid .fhp-card .pvc-avatar > .pvc-avatar-img,
  #fixeo-homepage-vedette-grid .fhp-card .pvc-avatar > .pvc-avatar-silhouette {
    width: 92px !important;
    height: 92px !important;
    min-width: 92px !important;
  }
}

/* ── V3B-D: Artisan name — two-line clamp ── */
#fixeo-homepage-vedette-grid .fhp-card .pvc-name {
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.015em !important;
  color: #fff !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 0 0 2px 0 !important;
}
/* Accessible full name via title attribute set in JS already */

/* ── V3B-E: Description — optional, factual, 2-line clamp ── */
#fixeo-homepage-vedette-grid .fhp-card .pvc-desc-v3b {
  font-size: 0.76rem !important;
  color: rgba(255,255,255,0.58) !important;
  line-height: 1.50 !important;
  margin: 0 0 9px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
/* .pvc-desc-v3b is only rendered when content exists — no empty-gap issue */

/* ── V3B-F: Trust two-row block ── */
/*
 * flex-direction:column — each item on its own line.
 * Full label visible at every viewport. No overflow.
 * No pill/chip/border/background — text-only rows.
 * Mirrors V3A.3 validated layout (trustScrollW==trustClientW at all vp).
 */
#fixeo-homepage-vedette-grid .fhp-card .pvc-trust-v3b {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin-bottom: 10px !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
}
#fixeo-homepage-vedette-grid .fhp-card .pvc-trust-v3b-item {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 0.68rem !important;
  color: rgba(255,255,255,0.44) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  min-width: 0 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}
#fixeo-homepage-vedette-grid .fhp-card .pvc-trust-v3b-icon {
  font-size: 0.72rem !important;
  opacity: 0.65 !important;
  flex-shrink: 0 !important;
}

/* ── V3B-G: Action area — margin-top:auto anchors to bottom ── */
/*
 * .pvc-action-v3b wraps sep+price+CTA+link.
 * margin-top:auto pushes it to the bottom of the flex column,
 * guaranteeing CTA vertical alignment across all 6 states.
 * Missing description or missing rating rows → no layout shift.
 */
#fixeo-homepage-vedette-grid .fhp-card .pvc-action-v3b {
  margin-top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  flex-shrink: 0 !important;
}

/* ── V3B-N: Suppress old structural elements in V3B cards ── */
/*
 * The old pvc-divider / pvc-stats / pvc-live-signals / pvc-trust-line /
 * pvc-footer / pvc-cta-col / pvc-cta-row are still in the JS output
 * for compatibility with other code that may inspect or style them.
 * V3B hides them with display:none scoped to the carousel grid.
 */
#fixeo-homepage-vedette-grid .fhp-card .pvc-divider:not(.pvc-divider-v3b),
#fixeo-homepage-vedette-grid .fhp-card .pvc-stats,
#fixeo-homepage-vedette-grid .fhp-card .pvc-live-signals,
#fixeo-homepage-vedette-grid .fhp-card .pvc-trust-line,
#fixeo-homepage-vedette-grid .fhp-card .pvc-footer,
#fixeo-homepage-vedette-grid .fhp-card .pvc-cta-col,
#fixeo-homepage-vedette-grid .fhp-card .pvc-cta-row {
  display: none !important;
}

/* ── V3B-H: Price block spacing ── */
#fixeo-homepage-vedette-grid .fhp-card .pvc-price-v3b {
  margin-bottom: 14px !important;
}
#fixeo-homepage-vedette-grid .fhp-card .pvc-price-v3b .pvc-price-amount {
  font-size: 1.10rem !important;     /* V3B: pricing.main = "À partir de 150 MAD" — full sentence */
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 3px !important;
}
#fixeo-homepage-vedette-grid .fhp-card .pvc-price-v3b .pvc-price-from {
  font-size: 0.63rem !important;
  color: rgba(255,212,100,0.65) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  display: block !important;
}

/* ── V3B-I: Primary CTA — orange→magenta, controlled glow, 42px ── */
#fixeo-homepage-vedette-grid .fhp-card .pvc-btn-v3b {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  border: none !important;
  font-family: inherit !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  cursor: pointer !important;
  letter-spacing: 0.015em !important;
  /* V3A.3 approved gradient — no wash-out */
   
   background-image: linear-gradient(
  135deg,
  #ff8a3d 0%,
  #ff4f9a 50%,
  #8b5cff 100%
) !important;

   background-color: #ff4f9a !important;

  /* Controlled glow — single tight shadow, no diffuse bloom */
  box-shadow:
  0 3px 10px rgba(225,48,108,0.14),
  0 1px 3px rgba(0,0,0,0.30),
  inset 0 1px 0 rgba(255,255,255,0.04) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  margin-bottom: 6px !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
#fixeo-homepage-vedette-grid .fhp-card .pvc-btn-v3b:hover {
  transform: scale(1.02) !important;
  box-shadow:
    0 5px 18px rgba(225,48,108,0.30),
    0 2px 6px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
#fixeo-homepage-vedette-grid .fhp-card .pvc-btn-v3b:active {
  transform: scale(0.97) !important;
}

/* ── V3B-J: Secondary link — 40px tap area, readable contrast ── */
#fixeo-homepage-vedette-grid .fhp-card .pvc-profile-v3b {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.58) !important;
  text-decoration: none !important;
  min-height: 40px !important;
  padding: 0 8px !important;
  border: none !important;
  border-bottom: 1px solid transparent !important;
  background: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: color 0.18s, border-color 0.18s !important;
  -webkit-tap-highlight-color: transparent !important;
  letter-spacing: 0.01em !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
  text-align: center !important;
}
#fixeo-homepage-vedette-grid .fhp-card .pvc-profile-v3b:hover {
  color: rgba(255,255,255,0.85) !important;
  border-bottom-color: rgba(255,255,255,0.22) !important;
}
#fixeo-homepage-vedette-grid .fhp-card .pvc-profile-v3b:focus-visible {
  outline: 2px solid rgba(255,90,31,0.55) !important;
  outline-offset: 2px !important;
}

/* ── V3B-K: Rating/stats block — compact above trust ── */
/* Kept visible: stars + pvc-rating-state still shows above description
 * in the natural DOM flow (header → stats → liveSignals suppressed →
 * description → trust → action). They come before description in the
 * DOM so they are hidden along with pvc-stats block.
 * Wait — pvc-stats is suppressed in V3B-N. That means starsHtml / rating
 * are not displayed. This is correct: V3B identity area shows name+city+cat
 * only; rating appears as live signal within trust area (see _liveSignalsHtml
 * which is also hidden). The rating is part of pvc-stats which is suppressed.
 *
 * Rating factual data IS still rendered via _liveSignalsHtml (suppressed) and
 * via pvc-stats (suppressed). In V3B, rating is NOT displayed — the product-
 * truth spec says only show when genuine rating>0 AND reviews>0, and the
 * V3A.3 approach showed it in the identity meta-row.
 *
 * To show rating in V3B without changing the suppressed blocks, we detect
 * the pvc-live-signal--rating element and expose it if it exists.
 * But pvc-live-signals is display:none. Need an alternate approach.
 *
 * DECISION: Rating shown via JS — pvc-line element added to identity block.
 * This requires no new element — _liveSignalsHtml already returns HTML for
 * the rating. Instead: V3B-K re-exposes .pvc-live-signal--rating only.
 */
#fixeo-homepage-vedette-grid .fhp-card .pvc-live-signals {
  display: none !important; /* keep suppressed — individual rating handled below */
}
/* Rating pill: expose within identity when factual (V3B-K exception).
 * Re-enable display on just the rating signal, scoped to identity area.
 * The HTML position: pvc-live-signals follows pvc-stats which is suppressed.
 * pvc-live-signals at DOM level is between pvc-stats and pvc-trust-v3b —
 * its display:none keeps it invisible. For V3B, rating is in identity meta
 * via _liveSignalsHtml position OR in pvc-stats. Both suppressed.
 *
 * SIMPLEST CORRECT APPROACH: pvc-stats stays hidden. Rating is NOT shown
 * in V3B card — this is truthful and conservative. The product can add
 * a dedicated rating row in a future sprint when the data is more reliable.
 * This avoids over-engineering and stays within scope.
 */

/* ── V3B-L: Live signals block fully suppressed ── */
/* (Already in V3B-N above — belt-and-suspenders) */

/* ── V3B-M: Old single trust-line suppressed ── */
/* (Already in V3B-N above — belt-and-suspenders) */

/* ── V3B-P: Separator inside action area ── */
#fixeo-homepage-vedette-grid .fhp-card .pvc-divider-v3b {
  height: 1px !important;
  background: rgba(255,255,255,0.07) !important;
  margin-bottom: 13px !important;
  flex-shrink: 0 !important;
}

/* ── V3B-Q: 320px adjustments ── */
/*
 * 320px card = 288px via J-2 76vw rule. Padding same (18px).
 * Inner = 252px. Trust rows fit (longest item ~162px < 252px). ✓
 * Reduce font sizes and avatar to maintain 400px.
 */
@media (max-width: 340px) {
  #fixeo-homepage-vedette-grid .fhp-card {
    padding: 20px 16px 14px !important;
  }
  #fixeo-homepage-vedette-grid .fhp-card .pvc-name {
    font-size: 0.88rem !important;
  }
  #fixeo-homepage-vedette-grid .fhp-card .pvc-desc-v3b {
    font-size: 0.73rem !important;
  }
  #fixeo-homepage-vedette-grid .fhp-card .pvc-price-v3b .pvc-price-amount {
    font-size: 0.98rem !important;
  }
  #fixeo-homepage-vedette-grid .fhp-card .pvc-trust-v3b-item {
    font-size: 0.62rem !important;
  }
}

/* ── V3B-R: Identity meta lines — city/cat ── */
#fixeo-homepage-vedette-grid .fhp-card .pvc-line {
  font-size: 0.70rem !important;
  color: rgba(255,255,255,0.50) !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 0 2px 0 !important;
}
#fixeo-homepage-vedette-grid .fhp-card .pvc-line-available {
  margin: 0 !important;
}
/* Empty available line: no gap */
#fixeo-homepage-vedette-grid .fhp-card .pvc-line-available:empty {
  display: none !important;
}

/* ── V3B-S: Identity column — tight gap ── */
#fixeo-homepage-vedette-grid .fhp-card .pvc-identity,
#fixeo-homepage-vedette-grid .fhp-card .pvc-identity-final {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

/* End FXHOME-ARTISAN-CARD-V3B */

/* ── V3B-T: Desktop 1px overflow correction ── */
/* Desktop cards are 393px wide (grid rule, frozen). Description renders to
 * 2 full lines at wider card = same height. 1px overflow from action total.
 * Reduce pvc-price-v3b margin-bottom by 1px on desktop only. */
@media (min-width: 641px) {
  #fixeo-homepage-vedette-grid .fhp-card .pvc-price-v3b {
    margin-bottom: 13px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   FXHOME-ARTISAN-CARD-V3B.2 — Mobile Description, Upper Alignment, Trust Icon Polish
   Sprint: fxhome-artisan-card-v3b2
   Append-only block. Never edit lines above. Braces must stay balanced.

   Root cause (confirmed audit):
     css/artisan-card-mobile-v2.css L85:
       .pvc-card-header { padding: 20px 20px 0 !important }
       Specificity: (0,1,0) — V3B never sets padding on .pvc-card-header.
       Rule wins uncontested at ≤640px.
       Effect: +20px internal top padding on header flex container.
       Budget impact: 400px card → 420px used → 20px overflow clipped.
       Description (36px) clipped → invisible on mobile.
       Combined with card padding-top:22px → avatar top inset = 42px (target: 24–30px).

   Fixes:
     V3B2-A: Zero out .pvc-card-header padding at ≤640px (restore 400px budget).
     V3B2-B: Advance padding-top to 24px + tighten header-mb to 6px (upper target hit,
             exact 400px: 24+108+6+36+9+32+10+159+16 = 400px).
     V3B2-C: inline SVG trust icons replacing platform-dependent emoji.
     V3B2-D: 360px and 412px explicit checks (same budget path).
   ══════════════════════════════════════════════════════════════════════ */

/* ── V3B2-A: Neutralise V2 mobile padding on .pvc-card-header ── */
/*
 * artisan-card-mobile-v2.css L85:
 *   .pvc-card-header { padding: 20px 20px 0 !important }  — specificity (0,1,0)
 * V3B2 override:
 *   #fixeo-homepage-vedette-grid .fhp-card .pvc-card-header — specificity (1,2,0)
 * Result: padding suppressed at all mobile widths ≤640px.
 * No need to scope inside a media query — the higher specificity wins everywhere,
 * and at desktop the V2 rule doesn't fire anyway.
 */
#fixeo-homepage-vedette-grid .fhp-card .pvc-card-header,
#fixeo-homepage-vedette-grid .fhp-card .pvc-card-header-final {
  padding: 0 !important;    /* override artisan-card-mobile-v2.css L85: padding:20px 20px 0 */
}

/* ── V3B2-B: Upper alignment — advance padding-top, tighten header-mb ── */
/*
 * Budget with V2 padding removed:
 *   pad-top:24 + header:108 + header-mb:6 + desc:36 + desc-mb:9 + trust:32 +
 *   trust-mb:10 + action:159 + pad-bottom:16 = 400px exactly.
 * Avatar top inset = 24px (target: 24–30px). ✓
 * Applies at all viewports including 360px, 390px, 412px.
 */
#fixeo-homepage-vedette-grid .fhp-card {
  padding-top: 24px !important;    /* was 22px: +2px to hit upper-inset target */
}
#fixeo-homepage-vedette-grid .fhp-card .pvc-card-header,
#fixeo-homepage-vedette-grid .fhp-card .pvc-card-header-final {
  margin-bottom: 6px !important;   /* was 8px: −2px budget recovery */
}

/* ── V3B2-B.1: 320px budget recheck ── */
/* At ≤340px: V3B-Q sets padding: 20px 16px 14px.
 * padding-top:20 + header:108 + mb:6 + desc:36 + dm:9 + trust:32 + tm:10 + action:159 + pb:14 = 394px ✓
 * 6px surplus absorbed by margin-top:auto on action area. */

/* ── V3B2-B.2: Desktop recheck ── */
/* Desktop: padding-top:24 wins over V3B's 22. Budget:
 * 24+108+6+36+9+32+10+159+13(price-mb)+... → action height may differ.
 * V3B-T already corrects desktop overflow. Trust margin-bottom at desktop = 10px.
 * Final: 24+108+6+36+9+32+10+[action varies] — margin-top:auto on action absorbs slack. ✓ */

/* ── V3B2-C: Inline SVG trust icons ── */
/*
 * Platform-dependent emoji replaced in JS (see fixeo_homepage_premium_patch.js).
 * SVG icons: 14×14px inline, currentColor, aria-hidden="true".
 * CSS sizing ensures consistent baseline alignment across all platforms.
 */
#fixeo-homepage-vedette-grid .fhp-card .pvc-trust-v3b-icon svg {
  width: 14px !important;
  height: 14px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  color: rgba(255,255,255,0.38) !important;
}
/* Neutralise old emoji font-size rule — SVG ignores font-size,
 * but opacity was set there and should still apply */
#fixeo-homepage-vedette-grid .fhp-card .pvc-trust-v3b-icon {
  font-size: 0 !important;         /* collapse any text node fallback */
  line-height: 0 !important;
  opacity: 1 !important;           /* SVG colour handled by currentColor above */
}

/* End FXHOME-ARTISAN-CARD-V3B.2 */

/* ── V3B2-E: Narrow card (≤280px) price margin micro-correction ── */
/*
 * At 360px viewport (card=274px): one artisan with long description
 * produces sH=402 (2px over 400). Root: long content at narrow inner width.
 * Reduce pvc-price-v3b margin-bottom by 2px at very narrow card widths.
 * Scoped to card narrower than 280px via container query fallback using
 * the viewport width proxy (≤320px fires the existing V3B-Q rule;
 * 320–360px is the gap). Use a ≤370px breakpoint to catch 360px viewport.
 * This does not affect 390px or wider.
 */
@media (max-width: 370px) {
  #fixeo-homepage-vedette-grid .fhp-card .pvc-price-v3b {
    margin-bottom: 12px !important;
  }
}
/* End V3B2-E */

/* ══════════════════════════════════════════════════════════════════════
   FXHOME-ARTISAN-CARD-V3B-ESTIMATOR — Modal CSS Parity Block
   Phase 7C.9L.3S — append-only, never edit lines above.
   Scope: #fixeo-reservation-modal .fhp-card ...
   Purpose: Port official V3B card structural rules into the reservation
   modal, which is NOT a descendant of #fixeo-homepage-vedette-grid.
   All V3B layout rules were scoped to the homepage grid; without this
   block, .pvc-trust-v3b-item defaults to display:inline, trust rows
   collapse, and card spacing is browser-default (unstyled).
   Differences from homepage:
     - NO fixed 400px height (estimator cards stack vertically, auto height)
     - pvc-price-v3b and pvc-price-block: not rendered (estimatorMode)
     - pvc-profile-v3b opens in new tab (target=_blank in HTML)
     - pvc-card:hover lift/scale intentionally not ported (scroll context)
   ══════════════════════════════════════════════════════════════════════ */

/* ── M-A: Card shell — flex column, official padding, no fixed height ── */
#fixeo-reservation-modal .fhp-card {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 24px 18px 16px !important;
  gap: 0 !important;
}

/* ── M-B: Card header — avatar + identity side by side ── */
#fixeo-reservation-modal .fhp-card .pvc-card-header,
#fixeo-reservation-modal .fhp-card .pvc-card-header-final {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  margin-bottom: 6px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

/* ── M-C: Avatar — 88px square, rounded, clipped ── */
#fixeo-reservation-modal .fhp-card .pvc-avatar {
  width: 88px !important;
  height: 88px !important;
  min-width: 88px !important;
  flex-shrink: 0 !important;
  border-radius: 18px !important;
  overflow: visible !important;
}
#fixeo-reservation-modal .fhp-card .pvc-avatar > .pvc-avatar-img,
#fixeo-reservation-modal .fhp-card .pvc-avatar > .pvc-avatar-silhouette {
  border-radius: 18px !important;
  width: 88px !important;
  height: 88px !important;
}

/* ── M-D: Identity column — name + city/métier lines ── */
#fixeo-reservation-modal .fhp-card .pvc-identity,
#fixeo-reservation-modal .fhp-card .pvc-identity-final {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

/* ── M-E: Artisan name — two-line clamp ── */
#fixeo-reservation-modal .fhp-card .pvc-name {
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.015em !important;
  color: #fff !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 0 0 2px 0 !important;
}

/* ── M-F: City / métier lines ── */
#fixeo-reservation-modal .fhp-card .pvc-line {
  font-size: 0.70rem !important;
  color: rgba(255,255,255,0.50) !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 0 2px 0 !important;
}
#fixeo-reservation-modal .fhp-card .pvc-line-available {
  margin: 0 !important;
}
#fixeo-reservation-modal .fhp-card .pvc-line-available:empty {
  display: none !important;
}

/* ── M-G: Description — 2-line clamp ── */
#fixeo-reservation-modal .fhp-card .pvc-desc-v3b {
  font-size: 0.76rem !important;
  color: rgba(255,255,255,0.58) !important;
  line-height: 1.50 !important;
  margin: 0 0 9px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

/* ── M-H: Trust block — two rows, each on its own line ── */
#fixeo-reservation-modal .fhp-card .pvc-trust-v3b {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin-bottom: 10px !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
}
#fixeo-reservation-modal .fhp-card .pvc-trust-v3b-item {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 0.68rem !important;
  color: rgba(255,255,255,0.44) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  min-width: 0 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}
#fixeo-reservation-modal .fhp-card .pvc-trust-v3b-icon {
  font-size: 0 !important;
  line-height: 0 !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}
#fixeo-reservation-modal .fhp-card .pvc-trust-v3b-icon svg {
  width: 14px !important;
  height: 14px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  color: rgba(255,255,255,0.38) !important;
}

/* ── M-I: Action area — pushed to bottom by margin-top:auto ── */
#fixeo-reservation-modal .fhp-card .pvc-action-v3b {
  margin-top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  flex-shrink: 0 !important;
}

/* ── M-J: Separator ── */
#fixeo-reservation-modal .fhp-card .pvc-divider-v3b {
  height: 1px !important;
  background: rgba(255,255,255,0.07) !important;
  margin-bottom: 13px !important;
  flex-shrink: 0 !important;
}

/* ── M-K: Primary CTA ── */
#fixeo-reservation-modal .fhp-card .pvc-btn-v3b {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  border: none !important;
  font-family: inherit !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  cursor: pointer !important;
  letter-spacing: 0.015em !important;
  background-image: linear-gradient(135deg, #ff5a1f 0%, #d42b69 100%) !important;
  background-color: #d42b69 !important;
  box-shadow:
    0 3px 12px rgba(225,48,108,0.22),
    0 1px 4px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.09) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  margin-bottom: 6px !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
#fixeo-reservation-modal .fhp-card .pvc-btn-v3b:hover {
  transform: scale(1.02) !important;
  box-shadow:
    0 5px 18px rgba(225,48,108,0.30),
    0 2px 6px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
#fixeo-reservation-modal .fhp-card .pvc-btn-v3b:active {
  transform: scale(0.97) !important;
}

/* ── M-L: Profile link — new tab, same visual treatment ── */
#fixeo-reservation-modal .fhp-card .pvc-profile-v3b {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.58) !important;
  text-decoration: none !important;
  min-height: 40px !important;
  padding: 0 8px !important;
  border: none !important;
  border-bottom: 1px solid transparent !important;
  background: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: color 0.18s, border-color 0.18s !important;
  -webkit-tap-highlight-color: transparent !important;
  letter-spacing: 0.01em !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
  text-align: center !important;
}
#fixeo-reservation-modal .fhp-card .pvc-profile-v3b:hover {
  color: rgba(255,255,255,0.85) !important;
  border-bottom-color: rgba(255,255,255,0.22) !important;
}
#fixeo-reservation-modal .fhp-card .pvc-profile-v3b:focus-visible {
  outline: 2px solid rgba(255,90,31,0.55) !important;
  outline-offset: 2px !important;
}

/* ── M-N: Suppress old structural elements (same as V3B-N on homepage) ── */
#fixeo-reservation-modal .fhp-card .pvc-divider:not(.pvc-divider-v3b),
#fixeo-reservation-modal .fhp-card .pvc-stats,
#fixeo-reservation-modal .fhp-card .pvc-live-signals,
#fixeo-reservation-modal .fhp-card .pvc-trust-line,
#fixeo-reservation-modal .fhp-card .pvc-footer,
#fixeo-reservation-modal .fhp-card .pvc-cta-col,
#fixeo-reservation-modal .fhp-card .pvc-cta-row {
  display: none !important;
}

/* End FXHOME-ARTISAN-CARD-V3B-ESTIMATOR */


/* ══════════════════════════════════════════════════════════════════════════
   FIXEO Artisan Section V1 — fxhome-artisan-section-v1a2-int1.1
   Section-level styling ONLY.
   Scope: #artisans-section + .fxas-* namespace.
   Card CSS: artisan-card-conversion-v1.css (FROZEN — do not touch).
   Frozen cards: _buildCard / _getPricing / _descSanitize (FROZEN).

   Grid layout selectors use #artisans-section #fixeo-homepage-vedette-grid
   (specificity 2,0,0) to beat compound (1,1,0) selectors in competing
   frozen files. Only the properties strictly necessary to override are set.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Box-sizing reset scoped to this section only ── */
#artisans-section *,
#artisans-section *::before,
#artisans-section *::after { box-sizing: border-box; }

/* ══════════════════════════════════════════════════════════════════════════
   1. SECTION WRAPPER — atmosphere + spacing
   ══════════════════════════════════════════════════════════════════════════ */

/* Override .section { padding: 80px 0 } from main.css.
   !important required: main.css uses .section class with value 80px 0. */
#artisans-section.section {
  position: relative;
  overflow: hidden;
  padding: 88px 0 80px !important;
  background: linear-gradient(180deg,
    #07091a 0%,
    #0c1030 40%,
    #0c1030 60%,
    #07091a 100%
  );
}

/* Indigo stage glow — purely decorative, behind card grid */
#artisans-section.section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 560px;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(72, 52, 212, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Orange/magenta brand atmosphere — top-right, restrained */
#artisans-section.section::after {
  content: '';
  position: absolute;
  top: -60px; right: 0;
  width: 380px; height: 380px;
  max-width: 40%;
  background: radial-gradient(ellipse at 70% 30%,
    rgba(225, 48, 108, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Soft fade transitions at section edges */
#artisans-section .fxas-fade-top,
#artisans-section .fxas-fade-bot {
  position: absolute;
  left: 0; right: 0;
  height: 56px;
  pointer-events: none;
  z-index: 1;
}

#artisans-section .fxas-fade-top {
  top: 0;
  background: linear-gradient(to bottom, #07091a 0%, transparent 100%);
}

#artisans-section .fxas-fade-bot {
  bottom: 0;
  background: linear-gradient(to top, #07091a 0%, transparent 100%);
}

/* ══════════════════════════════════════════════════════════════════════════
   2. SECTION HEADER — V1A.2 layout
   ══════════════════════════════════════════════════════════════════════════ */

/* z-index: above decorative pseudo-elements */
#artisans-section .results-page-shell {
  position: relative;
  z-index: 2;
}

/* Override old .fhp-section-header (display:flex; border-bottom).
   V1A.2: Desktop = two-column grid; Mobile = single column stack.
   !important on display and grid-template-columns: inline CSS in index.html
   sets these properties on .fhp-section-header without !important — this file
   loads after all inline <style> blocks in document order, so !important
   guarantees the win here. */
#artisans-section .fhp-section-header {
  display: grid !important;
  grid-template-columns: minmax(0, 700px) minmax(220px, 280px) !important;
  align-items: start !important;
  gap: 40px !important;
  margin-bottom: 44px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* Copy sub-wrapper — holds eyebrow + h2 + subtitle */
#artisans-section .fhp-header-copy {
  min-width: 0;
}

/* Eyebrow — decorative label, aria-hidden in markup */
#artisans-section .fhp-eyebrow {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin: 0 0 10px;
}

/* Title — real h2, dynamic city
   !important: inline CSS in index.html sets font-size on .fhp-title */
#artisans-section .fhp-title {
  font-size: clamp(1.8rem, 2.4vw, 2.2rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.025em !important;
  line-height: 1.10 !important;
  margin: 0 0 12px !important;
}

/* Highlighted city name within title */
#artisans-section .fhp-title em {
  font-style: normal;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 180, 120, 0.90) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
#artisans-section .fhp-subtitle {
  font-size: 0.90rem !important;
  color: rgba(255, 255, 255, 0.46) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  max-width: 480px;
}

/* ══════════════════════════════════════════════════════════════════════════
   3. COUNTER — V1A.2 stacked proof block
   ══════════════════════════════════════════════════════════════════════════ */

/* Override old .fhp-counter (single inline pill with 🟢 pseudo).
   !important on display/flex-direction: artisan-card-conversion-v1.css
   J2-A block sets display/color/background on #fixeo-homepage-header .fhp-counter
   using ID selector (1,1,0) — scoping to #artisans-section gives (2,0,0) which beats it. */
#artisans-section .fhp-counter {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  padding: 16px 20px !important;
  border-radius: 14px !important;
  background: rgba(32, 201, 151, 0.07) !important;
  border: 1px solid rgba(32, 201, 151, 0.20) !important;
  color: #20c997 !important;
  white-space: normal !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  width: 100% !important;
  max-width: 280px !important;
  min-width: 0 !important;
}

/* Suppress 🟢 pseudo-element from old counter
   !important: artisan-card-conversion-v1.css J2-A uses content on .fhp-see-all-arrow */
#artisans-section .fhp-counter::before {
  content: none !important;
  display: none !important;
}

/* Counter number */
#artisans-section .fhp-counter-number {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}

/* Counter label — hard requirement: no overflow, no ellipsis */
#artisans-section .fhp-counter-label {
  font-size: 0.67rem;
  font-weight: 600;
  color: rgba(32, 201, 151, 0.85);
  letter-spacing: 0.02em;
  line-height: 1.35;
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

/* Old .fhp-see-all wraps counter — adapt for new design */
#artisans-section .fhp-see-all {
 display: none !important;
 flex-direction: column !important;
  align-items: flex-start !important;
  text-decoration: none !important;
  align-self: start !important;
  margin-top: 22px !important;
}

/* Hide directional arrow in new design */
#artisans-section .fhp-see-all-arrow {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   4. GRID STAGE — layout overrides
   Specificity note: bare #fixeo-homepage-vedette-grid = (1,0,0).
   Compound #fixeo-homepage-vedette-grid.ssb2-vedette-grid = (1,1,0).
   #artisans-section #fixeo-homepage-vedette-grid = (2,0,0) — beats both.
   This is the sole authority for section-level grid layout.
   ══════════════════════════════════════════════════════════════════════════ */

#artisans-section .results-main-column {
  position: relative;
  z-index: 2;
}

/* ── Desktop 3-column grid (≥1108px) ──
   Breakpoint calculation:
     3 cards × 320px = 960px
     2 gaps × 26px  =  52px
     Total card+gap  = 1012px
     Safe padding each side = 48px total
     Minimum viewport = 1012 + 48 = 1060px
   To ensure 1099px stays as tablet carousel (per spec):
     Breakpoint = 1108px (1108 - 48 = 1060px available ≥ 1012px)
   At 1024px: 1024 < 1108 → horizontal carousel ✅
   At 1099px: 1099 < 1108 → horizontal carousel ✅
   At 1108px: 1108 ≥ 1108 → 3-column grid ✅ (1108-48=1060px available)
   At 1120px: 1120 ≥ 1108 → 3-column grid ✅
   At 1280px: 3-column grid ✅
   At 1440px: 3-column grid ✅

   !important on grid-template-columns: services-uber-premium.css L46-52 uses
   compound selector (1,1,0) with !important. #artisans-section prefix gives
   (2,0,0) — beats (1,1,0) by specificity. Loading last ensures source-order
   tie-breaking also favours this file.
   !important on display, overflow-x, width: same competing rules in same files.
*/
@media (min-width: 1108px) {
  #artisans-section #fixeo-homepage-vedette-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 320px) !important;
    gap: 26px !important;
    justify-content: center !important;
    overflow-x: visible !important;
    width: auto !important;
    padding: 0 !important;
    margin-left: 0 !important;
  }
  #artisans-section #fixeo-homepage-vedette-grid .fhp-card {
    min-width: unset !important;
    max-width: unset !important;
    width: auto !important;
    flex-shrink: unset !important;
    scroll-snap-align: unset !important;
  }
}

/* ── Tablet/mid horizontal carousel (641px – 1107px) ──
   Includes 1024px which is NOT wide enough for 3-column (1024-48=976px < 1012px).
   Cards remain exactly 320×400px, horizontal scroll, no orphan.
   !important on display/flex properties: overrides services-uber-premium.css
   @media(769px–1024px) compound rule (1,1,0) setting display:grid.
*/
@media (min-width: 641px) and (max-width: 1107px) {
  #artisans-section #fixeo-homepage-vedette-grid {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 20px !important;
    padding: 8px 24px 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: unset !important;
    margin-left: 0 !important;
  }
  #artisans-section #fixeo-homepage-vedette-grid::-webkit-scrollbar {
    display: none !important;
  }
  #artisans-section #fixeo-homepage-vedette-grid .fhp-card {
    min-width: 320px !important;
    max-width: 320px !important;
    width: 320px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }
}

/* ── 320px next-card preview fix (≤340px only) ──
   Problem: at 320px viewport, .results-main-column has 8px padL, placing
   the grid at x=29 from the viewport. With 100vw grid width and 276px card,
   card2 starts at x=339 — 19px past the viewport edge (no peek visible).

   Fix: use negative margin-left to shift the grid left, aligning it closer
   to the viewport left edge. Combined with reduced padL, card2 peeks 18-24px.

   Calculation at 320px:
     grid.left (before fix) = 29px
     target grid.left       = 8px (shift -21px via margin-left)
     grid padL              = 4px (reduced from 20px via override)
     card1.left = 8 + 4     = 12px
     card1.right = 12 + 276 = 288px
     gap = 14px
     card2.left = 288 + 14  = 302px
     peek = 320 - 302       = 18px ✅

   .results-main-column padL zeroed so it doesn't add to grid's offset.
   overflow-x:visible on the ancestor chain already set by artisan-card-conversion-v1.css J2-D.

   !important on padding-left: inline CSS and conversion CSS both set padL=20px
   with lower specificity selectors; #artisans-section scoped (2,0,0) beats them.
   !important on margin-left: no existing rule sets margin-left on grid with
   higher specificity; !important added for cascade safety.
*/
@media (max-width: 340px) {
  #artisans-section .results-main-column {
    padding-left: 0 !important;
  }
  #artisans-section #fixeo-homepage-vedette-grid {
    margin-left: -21px !important;
    padding-left: 4px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   5. CONTINUATION ACTIONS — V1A.2 layout
   ══════════════════════════════════════════════════════════════════════════ */

.fxas-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 36px;
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

/* Primary action — ghost button */
.fxas-btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}

.fxas-btn-more:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.fxas-btn-more:focus-visible {
  outline: 2px solid rgba(32, 201, 151, 0.55);
  outline-offset: 3px;
}

.fxas-btn-more-arrow {
  font-size: 1.0em;
  transition: transform 0.18s;
}

.fxas-btn-more:hover .fxas-btn-more-arrow {
  transform: translateX(3px);
}

/* Secondary action */
.fxas-secondary-action {
  margin-top: 22px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.36);
  text-align: center;
  line-height: 1.5;
}

.fxas-secondary-action button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.fxas-secondary-action button:hover {
  color: rgba(255, 255, 255, 0.80);
}

.fxas-secondary-action button:focus-visible {
  outline: 2px solid rgba(32, 201, 151, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   6. RESPONSIVE — MOBILE (≤640px)
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {

  /* Section padding override.
     !important: artisan-card-conversion-v1.css J2-B sets
     #artisans-section { padding-top:48px !important } with bare ID selector (1,0,0).
     This file's #artisans-section.section is (1,1,0) and loads later — wins. */
  #artisans-section.section {
    padding: 52px 0 56px !important;
  }

  /* Header: collapse to single column
     !important on display/flex-direction: inline CSS sets these on .fhp-section-header */
  #artisans-section .fhp-section-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #artisans-section .fhp-eyebrow {
    margin-bottom: 8px;
  }

  /* Title sizes
     !important: artisan-card-conversion-v1.css J2-C sets .fhp-title font-size 1.05rem !important
     Using #artisans-section scope (1,1,0) vs J2-C bare .fhp-title (0,1,0) — wins without !important.
     Adding !important for robustness against other rules. */
  #artisans-section .fhp-title {
    font-size: 30px !important;
    line-height: 1.08 !important;
    margin-bottom: 10px !important;
  }

  #artisans-section .fhp-subtitle {
    font-size: 0.86rem !important;
    max-width: none !important;
    margin-bottom: 16px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }

  #artisans-section .fhp-counter {
    margin-top: 0 !important;
    width: auto !important;
    max-width: none !important;
    display: inline-flex !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    align-self: flex-start !important;
  }

  #artisans-section .fhp-counter-number {
    font-size: 1.45rem;
  }

  #artisans-section .fhp-counter-label {
    font-size: 0.66rem !important;
  }

  #artisans-section .fhp-see-all {
    margin-top: 0 !important;
    margin-bottom: 22px !important;
  }

  .fxas-actions {
    margin-top: 24px;
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
  }

  .fxas-btn-more {
    width: 100%;
    white-space: normal;
    text-align: center;
    font-size: 0.88rem;
    min-height: 52px;
  }

  .fxas-secondary-action {
    text-align: left;
    margin-top: 20px;
  }
}

/* Very small: 320–374px */
@media (max-width: 374px) {
  #artisans-section .fhp-title {
    font-size: 26px !important;
  }
  #artisans-section .fhp-counter-number {
    font-size: 1.35rem !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   7. RESPONSIVE — TABLET (641px – 1107px)
   ══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 641px) and (max-width: 1107px) {

  #artisans-section.section {
    padding: 64px 0 !important;
  }

  #artisans-section .fhp-section-header {
    grid-template-columns: minmax(0, 480px) minmax(180px, 240px) !important;
    gap: 24px !important;
    margin-bottom: 36px !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #artisans-section .fhp-see-all {
    margin-top: 0 !important;
  }

  #artisans-section .fhp-counter {
    max-width: none !important;
    width: 100% !important;
  }

  .fxas-actions {
    margin-top: 28px;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px;
  }

  .fxas-btn-more {
    white-space: nowrap;
  }

  .fxas-secondary-action {
    text-align: left;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   8. RESPONSIVE — DESKTOP (≥1108px)
   ══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 1108px) {

  #artisans-section.section {
    padding: 88px 0 80px !important;
  }

  #artisans-section .fhp-section-header {
    margin-bottom: 48px !important;
  }

  .fxas-actions {
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 44px;
  }

  .fxas-secondary-action {
    margin-top: 0;
    text-align: left;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   9. ACCESSIBILITY
   ══════════════════════════════════════════════════════════════════════════ */

#artisans-section .fxas-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   10. REDUCED MOTION
   ══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  #artisans-section.section::before,
  #artisans-section.section::after,
  #artisans-section .fxas-fade-top,
  #artisans-section .fxas-fade-bot {
    animation: none !important;
  }
  .fxas-btn-more,
  .fxas-btn-more-arrow {
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   !important audit — all uses justified:
   1.  #artisans-section.section { padding } — overrides main.css .section
   2.  #artisans-section .fhp-section-header { display, grid-template-columns,
       align-items, gap, margin-bottom, padding-bottom, border-bottom } —
       overrides index.html inline CSS on .fhp-section-header
   3.  #artisans-section .fhp-title { font-size, font-weight, color,
       letter-spacing, line-height, margin } — overrides inline CSS + J2-C
   4.  #artisans-section .fhp-subtitle { font-size, color, line-height, margin } —
       overrides inline CSS
   5.  #artisans-section .fhp-counter { display, flex-direction, align-items, gap,
       padding, border-radius, background, border, color, white-space, font-size,
       font-weight, width, max-width, min-width } — overrides J2-A + inline CSS
   6.  #artisans-section .fhp-counter::before { content, display } — suppresses emoji
   7.  #artisans-section .fhp-see-all { display, flex-direction, align-items,
       text-decoration, align-self, margin-top } — overrides inline CSS
   8.  #artisans-section .fhp-see-all-arrow { display } — hides old arrow element
   9.  Desktop+tablet grid: #artisans-section #fixeo-homepage-vedette-grid
       { display, grid-template-columns, gap, justify-content, overflow-x, width,
         padding, margin-left } — overrides services-uber-premium.css compound (1,1,0)
   10. Desktop+tablet card: { min-width, max-width, width, flex-shrink,
       scroll-snap-align } — overrides carousel fixed-width rules
   11. Mobile section padding — overrides J2-B (1,0,0) bare ID selector
   12. Mobile header flex overrides — inline CSS
   13. Mobile title font-size, subtitle — inline + J2-C
   14. Mobile counter overrides — inline CSS
   15. 320px peek: .results-main-column padding-left, grid margin-left,
       grid padding-left — inline CSS + conversion CSS (1,0,0) selectors
   ══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   PHASE 5B — Artisan Results State Unification
   data-results-state: "discovery" | "loading" | "targeted"
   Set by fixeo_homepage_premium_patch.js _setResultsState().
   CSS reacts; JS owns semantic state.
   Frozen: artisan card layout, reservation modal, FABs, RAFI.
   ═══════════════════════════════════════════════════════════════════ */

/* ── TARGETED state: suppress the generic discovery header ──────────
   The discovery header (eyebrow + title + counter block) is informational
   for browsing, not for targeted results. In targeted mode the bridge
   context header (fxasb-*) already identifies trade/city. */
#artisans-section[data-results-state="targeted"] #fixeo-homepage-header,
#artisans-section[data-results-state="loading"]  #fixeo-homepage-header {
  display: none !important;
}

/* ── TARGETED state: also suppress the explore strip ────────────────
   City explore chips are discovery-mode UI; irrelevant during targeted results. */
#artisans-section[data-results-state="targeted"] #fixeo-homepage-explore,
#artisans-section[data-results-state="loading"]  #fixeo-homepage-explore {
  display: none !important;
}

/* ── LOADING state: suppress pagination (never show stale pages) ────
   v12-pagination is injected by homepage-v13.js MutationObserver.
   In loading state it must never be visible. */
#artisans-section[data-results-state="loading"] #v12-pagination,
#artisans-section[data-results-state="loading"] .v12-pagination {
  display: none !important;
}

/* ── LOADING state: ensure loading indicator shows ──────────────────
   (loading-artisans is display:none by default; JS reveals it.
    This rule ensures it is not suppressed by homepage-mode overrides.) */
#artisans-section[data-results-state="loading"] #loading-artisans {
  display: block !important;
}

/* ── DISCOVERY state: section actions always visible ────────────────
   In discovery mode the "Voir plus d'artisans" CTA should be visible. */
#artisans-section[data-results-state="discovery"] #fxas-section-actions {
  display: block;
}

/* ── TARGETED state: actions remain (may have different CTA) ────────
   Actions rendered fresh each _renderPremiumGrid call; no suppression needed. */

/* ── DISCOVERY state: restore pagination if present ────────────────
   (Legacy pagination should also hide in discovery since vedette grid
   doesn't use artisans-container. CSS guard.) */
#artisans-section[data-results-state="discovery"] #v12-pagination,
#artisans-section[data-results-state="discovery"] .v12-pagination {
  display: none !important;
}

/* ── Reduced motion: no impact (state changes are display:none/block) */


/* ═══════════════════════════════════════════════════════════════════
   PHASE 5B.1 — Targeted results cleanup
   Two surgical rules:
   1. Suppress pagination in ALL artisan-section states
      (homepage-v13.js MutationObserver injects #v12-pagination after
      #artisans-container; it must never be visible on the homepage.)
   2. Suppress legacy #other-see-more-wrap in ALL homepage artisan states
      (main.js renderArtisans injects "Voir plus d'artisans" button;
      fixeo-search-mode's display:revert un-hides it in targeted mode.
      This rule overrides that revert with maximum specificity.)
   ═══════════════════════════════════════════════════════════════════ */

/* Rule 1 — Pagination: hide in ALL states (absolute — no state condition) */
#artisans-section #v12-pagination,
#artisans-section .v12-pagination {
  display: none !important;
}

/* Rule 2 — Legacy CTA: hide in ALL states.
   Override the fixeo-search-mode display:revert !important at index.html:2341.
   #fxas-section-actions (canonical CTA) is the only CTA owner. */
#artisans-section #other-see-more-wrap,
#artisans-section .other-see-more-wrap {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   PHASE 5B.3 — Artisan Results Loader Lifecycle Hotfix
   
   ROOT CAUSE:
   _enterSearchMode() adds body class fixeo-search-mode, which triggers:
     html body.fixeo-search-mode #loading-artisans { display: revert !important }
     specificity: (0,2,1,1)
   This re-shows #loading-artisans AFTER renderArtisans() already hid it via
   loadingEl.style.display = 'none', creating the impossible mixed state:
     targeted results visible + loader visible simultaneously.

   FIX STRATEGY:
   1. CSS: override with higher or equal specificity using
      html body prefix to match the opposing rule's element count.
      (0,2,1,2) beats (0,2,1,1) — wins the !important cascade.
   2. JS: _setResultsState('targeted') explicitly sets display:none
      via inline style (wins regardless of specificity when applied after CSS class).

   Both discovery and targeted states must deterministically hide the loader.
   Only loading state leaves the loader display-unblocked (JS may show it).
   ═══════════════════════════════════════════════════════════════════ */

/* TARGETED state: loader must be hidden.
   Specificity (0,2,1,2) — beats fixeo-search-mode rule at (0,2,1,1). */
html body #artisans-section[data-results-state="targeted"] #loading-artisans {
  display: none !important;
}

/* DISCOVERY state: loader must be hidden.
   Applies when body does NOT have fixeo-search-mode (discovery mode).
   Guards against any async callback that might show loader after reset. */
html body #artisans-section[data-results-state="discovery"] #loading-artisans {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════════════════
   PHASE 5C.1 — Artisan section vertical rhythm & next-chapter transition
   
   ROOT CAUSE OF OVERSIZED GAP
   On mobile (375–430px):
     #artisans-section.section padding-bottom: 56px  (this file, ≤640px block)
     #fixeo-chapter-4.fxpaf-rafi padding-top: 48px   (fixeo-post-artisan-flow-v1.css, ≤560px)
     Total transition whitespace: 104px
   Target: 56–88px controlled chapter-transition breathing room.
   Fix: reduce artisans-section padding-bottom 56px→24px at ≤640px.
   New total: 24 + 48 = 72px (within target range).
   
   fxpaf-rafi is frozen (RAFI freeze). Artisans-section adjusted only.
   fxas-actions internal rhythm: marginal compaction for mobile density.
   Desktop (≥1108px): unchanged — gap there is intentional design space.
   Tablet (641–1107px): 64px pb remains adequate; minor bottom trim applied.
   ═══════════════════════════════════════════════════════════════════ */

/* ── MOBILE ≤640px: reduce section bottom padding ───────────────────
   Was: padding: 52px 0 56px → New: padding: 52px 0 24px
   Specificity (1,1,0) + !important — same block as existing mobile override. */
@media (max-width: 640px) {
  #artisans-section.section {
    padding-bottom: 24px !important;
  }

  /* Compact fxas-actions top margin: 24px→18px — maintains breathing room
     between last artisan card and CTA without wasting vertical space. */
  .fxas-actions {
    margin-top: 18px;
  }

  /* Compact secondary-action top margin: 20px→14px — "Publier" stays
     visually grouped with "Voir plus" without crowding. */
  .fxas-secondary-action {
    margin-top: 14px;
  }
}

/* ── TABLET 641–1107px: minor bottom trim ───────────────────────────
   No overflow concern; just tighten slightly for proportionality. */
@media (min-width: 641px) and (max-width: 1107px) {
  #artisans-section.section {
    padding-bottom: 48px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   PHASE 5C.1 — Artisan section vertical rhythm & next-chapter transition
   
   ROOT CAUSE OF OVERSIZED GAP
   On mobile (375–430px):
     #artisans-section.section padding-bottom: 56px  (this file, ≤640px block)
     #fixeo-chapter-4.fxpaf-rafi padding-top: 48px   (fixeo-post-artisan-flow-v1.css, ≤560px)
     Total transition whitespace: 104px
   Target: 56–88px controlled chapter-transition breathing room.
   Fix: reduce artisans-section padding-bottom 56px->24px at ≤640px.
   New total: 24 + 48 = 72px (within target range).
   
   fxpaf-rafi is frozen (RAFI freeze). Artisans-section adjusted only.
   fxas-actions internal rhythm: marginal compaction for mobile density.
   Desktop (>=1108px): unchanged — gap there is intentional design space.
   Tablet (641–1107px): 64px pb remains adequate; minor bottom trim applied.
   ═══════════════════════════════════════════════════════════════════ */

/* MOBILE ≤640px: reduce section bottom padding
   Was: padding: 52px 0 56px → New bottom: 24px
   Specificity (1,1,0) + !important — same as existing mobile override block. */
@media (max-width: 640px) {
  #artisans-section.section {
    padding-bottom: 24px !important;
  }

  /* Compact fxas-actions top margin: 24px→18px */
  .fxas-actions {
    margin-top: 18px;
  }

  /* Compact secondary-action top margin: 20px→14px */
  .fxas-secondary-action {
    margin-top: 14px;
  }
}

/* TABLET 641–1107px: minor bottom trim */
@media (min-width: 641px) and (max-width: 1107px) {
  #artisans-section.section {
    padding-bottom: 48px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PHASE 5C.2 — Remove residual artisan section height gap

   ROOT CAUSE (true owner of the blank area)
   homepage-conversion-optimizer.css, @media (max-width:768px), line 5869:
     #artisans-section .container,
     #artisans-section .results-main-column,
     #artisans-section .results-list,
     #artisans-section #artisans-container.artisans-grid {
       padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)) !important;
     }
   Also earlier blocks at 132px and 168px (last wins = 136px).
   Specificity: (1,1,0) + !important.

   These rules were designed for the RESULTS PAGE layout where a position:fixed
   sticky CTA floats at viewport bottom and needs clearance. On the HOMEPAGE:
   - mobile-sticky-cta is position:fixed (no layout flow contribution)
   - the premium patch uses #fixeo-homepage-vedette-grid (not #artisans-container)
   - #fxas-section-actions provides the CTA at normal document flow

   Effect on iPhone (375px, safe-area ~34px):
     #artisans-section .container padding-bottom = 136 + 34 = 170px
     Applied to the wrapper of ALL content INCLUDING #fxas-section-actions
     → 170px empty space BELOW "Publier une demande →" inside the container
   Combined with:
     artisans-section padding-bottom: 24px (Phase 5C.1, outside container)
     #fixeo-chapter-4.fxpaf-rafi padding-top: 48px (frozen)
   Total observable gap: ~170 + 24 + 48 = ~242px
   Phase 5C.1 only addressed the 24px outer padding (reduced from 56px) —
   insufficient because the 170px inner container padding dominated.

   FIX
   Override padding-bottom to 0 on .container and .results-main-column
   at ≤768px within #artisans-section context.
   This file (fixeo-artisan-section-v1.css) loads at index.html:2563,
   after homepage-conversion-optimizer.css at index.html:64 — loads LATER,
   so (1,1,0)+!important in this file wins the cascade.

   Also zero out results-main-column padding (it also receives the 136px rule).
   results-list and #artisans-container.artisans-grid are hidden on homepage
   by the premium patch, but zeroed here for defence-in-depth.

   After fix (iPhone 375px):
     container pb: 0 (was ~170px)
     section pb: 24px (Phase 5C.1)
     RAFI pt: 48px (frozen)
     Total chapter transition: 24 + 48 = 72px ✓
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Remove sticky-CTA clearance padding — not needed on homepage.
     The 136px + safe-area was for position:fixed CTA on results.html.
     On homepage: CTA is in document flow (#fxas-section-actions). */
  #artisans-section .container {
    padding-bottom: 0 !important;
  }

  #artisans-section .results-main-column,
  #artisans-section .results-list,
  #artisans-section #artisans-container.artisans-grid {
    padding-bottom: 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PHASE 5D — Artisan Section Mobile UX Polish & Conversion Hierarchy
   
   Scope: mobile ≤640px only unless noted. Desktop/tablet: 0 change.
   File: fixeo-artisan-section-v1.css (loads at index.html:2563 — LAST).
   All selectors in this file load after artisan-card-conversion-v1.css
   (line 2475) so equal-specificity rules here WIN the cascade.
   0 JS changes. 0 business logic. Pure spacing/visual refinement.

   COMPUTED OWNERS AUDITED (see inline comments per rule):

   A. DISCOVERY HEADER → CAROUSEL GAP
   Owner: .fhp-see-all { margin-bottom: 22px }
   Source: fixeo-artisan-section-v1.css:518 (this file, mobile block)
   Treatment: reduce 22px→14px to compress header→grid gap.
   The grid has no explicit margin-top; the carousel starts 22px after
   the counter block. 14px preserves visual grouping without over-spacing.

   B. CARD HEIGHT / INTERNAL DENSITY
   Owner: #fixeo-homepage-vedette-grid .fhp-card { height:400px }
   Source: artisan-card-conversion-v1.css V3B-A (line ~2209), frozen file.
   Treatment: reduce card height 400px→360px at ≤640px mobile.
   Internal budget reductions to fit 40px savings:
     - .pvc-card-header-final margin-bottom: 6px→4px (saves 2px)
     - .pvc-desc-v3b margin-bottom: 9px→7px (saves 2px)
     - .pvc-trust-v3b margin-bottom: 10px→8px (saves 2px)
     - .pvc-divider-v3b margin-bottom: 13px→10px (saves 3px)
     - .pvc-price-v3b margin-bottom: 14px→11px (saves 3px)
     - .pvc-btn-v3b min-height: 42px→40px, margin-bottom: 6px→4px (saves 4px)
     - .pvc-profile-v3b min-height: 40px→36px (saves 4px)
     - card padding: 24px 18px 16px → 20px 18px 14px (saves 6px top+bottom)
   Total saved: 2+2+2+3+3+4+4+6 = 26px accounted in budget.
   Remaining 14px absorbed by margin-top:auto on pvc-action-v3b (slack).
   Budget check: 20+88+4+36+7+32+8+[action:10+11+40+4+36]+14 = 310px fixed
   + 50px action+slack = 360px. ✓

   C. PRIMARY CTA GLOW
   Owner: .pvc-btn-v3b box-shadow (artisan-card-conversion-v1.css V3B-I)
   Current: 0 3px 12px rgba(225,48,108,0.22), 0 1px 4px rgba(0,0,0,0.28)
   Treatment: reduce outer glow opacity 0.22→0.14; soften inset highlight.
   Gradient + colour unchanged. Touch target preserved (≥40px).

   D. TRUST METADATA HIERARCHY
   Owner: .pvc-trust-v3b-item (artisan-card-conversion-v1.css V3B-F)
   Current: color rgba(255,255,255,0.44), font-size 0.68rem, gap 4px
   Treatment: reduce to 0.38 opacity on mobile; gap 4px→3px.
   Still fully readable; now clearly secondary to price and CTA.

   E. CARD→ACTIONS RHYTHM
   Owner: .fxas-actions { margin-top: 18px } (this file, Phase 5C.1/5B1)
   Treatment: no change needed — 18px is correct post-5C.2.
   fxas-btn-more and secondary-action spacing already at 14px — preserved.

   F. "VOIR PLUS" GHOST BUTTON
   Owner: .fxas-btn-more (this file, section 5)
   Current: border-radius:14px, min-height:52px, border 0.16 opacity
   Treatment: min-height 52px→48px (slightly more compact, still accessible).
   No gradient. Remains clearly secondary.

   G. SECTION TOP PADDING (header→section entry)
   Owner: #artisans-section.section { padding:52px 0 } (this file, ≤640px)
   Treatment: reduce padding-top 52px→40px. Entry feels less padded.
   Improves perceived connectivity between site header and artisan content.
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {

  /* ── A. Header → carousel gap ───────────────────────────────────────
     .fhp-see-all margin-bottom: 22px→14px
     Specificity: #artisans-section .fhp-see-all (1,1,0) same as existing rule
     at fixeo-artisan-section-v1.css:518; this block loads LATER → wins. */
  #artisans-section .fhp-see-all {
    margin-bottom: 14px !important;
  }

  /* ── B. Card height & internal density ──────────────────────────────
     Reduce 400px→360px. All overrides at same or higher specificity as
     V3B rules in artisan-card-conversion-v1.css (loaded before this file). */

  /* Card container: 400→360px, padding-top 24→20px, padding-bottom 16→14px */
  #artisans-section #fixeo-homepage-vedette-grid .fhp-card {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
    padding-top: 20px !important;
    padding-bottom: 14px !important;
  }

  /* Header block margin: 6→4px */
  #artisans-section #fixeo-homepage-vedette-grid .fhp-card .pvc-card-header,
  #artisans-section #fixeo-homepage-vedette-grid .fhp-card .pvc-card-header-final {
    margin-bottom: 4px !important;
  }

  /* Description margin: 9→7px */
  #artisans-section #fixeo-homepage-vedette-grid .fhp-card .pvc-desc-v3b {
    margin-bottom: 7px !important;
  }

  /* Trust block margin: 10→8px */
  #artisans-section #fixeo-homepage-vedette-grid .fhp-card .pvc-trust-v3b {
    margin-bottom: 8px !important;
  }

  /* Divider margin: 13→10px */
  #artisans-section #fixeo-homepage-vedette-grid .fhp-card .pvc-divider-v3b {
    margin-bottom: 10px !important;
  }

  /* Price block margin: 14→11px */
  #artisans-section #fixeo-homepage-vedette-grid .fhp-card .pvc-price-v3b {
    margin-bottom: 11px !important;
  }

  /* Primary CTA: min-height 42→40px (accessible), margin-bottom 6→4px */
  #artisans-section #fixeo-homepage-vedette-grid .fhp-card .pvc-btn-v3b {
    min-height: 40px !important;
    margin-bottom: 4px !important;
    /* ── C. CTA glow reduction ────────────────────────────────────────
       Outer glow 0.22→0.14 opacity — premium but not dominant.
       Gradient identity preserved. Inset highlight slightly reduced. */
    box-shadow:
      0 3px 10px rgba(225,48,108,0.14),
      0 1px 4px rgba(0,0,0,0.24),
      inset 0 1px 0 rgba(255,255,255,0.07) !important;
  }

  /* Secondary link: min-height 40→36px */
  #artisans-section #fixeo-homepage-vedette-grid .fhp-card .pvc-profile-v3b {
    min-height: 36px !important;
  }

  /* ── D. Trust metadata hierarchy ────────────────────────────────────
     Reduce color opacity 0.44→0.38 on mobile. Still readable, clearly
     secondary to name/price/CTA. Gap 4→3px. */
  #artisans-section #fixeo-homepage-vedette-grid .fhp-card .pvc-trust-v3b-item {
    color: rgba(255,255,255,0.38) !important;
    gap: 3px !important;
  }

  /* ── F. "Voir plus" ghost button height ─────────────────────────────
     min-height 52→48px. Still a comfortable tap target. */
  .fxas-btn-more {
    min-height: 48px !important;
  }

  /* ── G. Section top padding ──────────────────────────────────────────
     52→40px. Tighter entry without feeling cramped.
     Specificity: #artisans-section.section (1,1,0) + !important
     Same spec as existing 52px rule at fixeo-artisan-section-v1.css:461;
     this block loads later → wins. */
  #artisans-section.section {
    padding-top: 20px !important;
  }

}

/* Homepage artisan network — luminous gateway badge */
.fhp-section-header .fhp-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;

  margin: 0 auto 16px;
  padding: 7px 14px;
  gap: 8px;

  border: 1px solid rgba(72, 100, 255, 0.38);
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    rgba(72, 100, 255, 0.16),
    rgba(139, 92, 255, 0.08)
  );

  color: #dfe7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;

  box-shadow:
    0 0 18px rgba(72, 100, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fhp-section-header .fhp-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;

  background: #68e4ff;

  box-shadow:
    0 0 6px rgba(104, 228, 255, 0.95),
    0 0 12px rgba(72, 100, 255, 0.55);
}

/* Homepage artisan network — mobile badge alignment & breathing */
@media (max-width: 640px) {
  #artisans-section .fhp-section-header .fhp-eyebrow {
    align-self: center !important;
    margin: 10px auto 22px !important;
    padding: 8px 16px;

    border-color: rgba(72, 100, 255, 0.48);

    box-shadow:
      0 0 22px rgba(72, 100, 255, 0.28),
      0 0 42px rgba(104, 228, 255, 0.10),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

/* Homepage artisan network — mobile editorial header alignment */
@media (max-width: 640px) {

  #artisans-section .fhp-header-copy {
    text-align: center;
    width: 100%;
  }

  #artisans-section .fhp-title {
    max-width: 360px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #artisans-section .fhp-subtitle {
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}

/* Homepage artisan network — lift continuation CTA from section edge */
@media (max-width: 640px) {
  #artisans-section .fxas-actions {
    margin-top: 12px !important;
    margin-bottom: 22px !important;
  }
}
