/**
 * Allopro — Components (cards, nav, hero, badges, provider card, tabs, etc.)
 */

/* Nav */
.ap-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all .3s;
}
.ap-nav.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--ap-border-light);
}
.ap-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  transition: height .3s;
  gap: 10px;
  min-width: 0;
}
.ap-nav.scrolled .ap-nav-inner { height: 60px; }
.ap-nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex-shrink: 1;
}
.ap-nav-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--ap-font-heading);
  font-weight: 800;
  font-size: 15px;
}
.ap-nav-logo-text {
  font-family: var(--ap-font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}
.ap-nav-logo-text span { color: var(--ap-primary); }
/* Logo double : version foncée (fond clair) vs version claire (hero accueil, avant scroll).
   !important : le masquage doit primer sur tout style inline display sur les <img>. */
.ap-nav-logo .ap-site-logo--for-dark-bg { display: none !important; }
.ap-nav-home:not(.scrolled) .ap-nav-logo .ap-site-logo--for-light-bg { display: none !important; }
.ap-nav-home:not(.scrolled) .ap-nav-logo .ap-site-logo--for-dark-bg { display: block !important; }
.ap-nav-home.scrolled .ap-nav-logo .ap-site-logo--for-light-bg { display: block !important; }
.ap-nav-home.scrolled .ap-nav-logo .ap-site-logo--for-dark-bg { display: none !important; }
.ap-nav:not(.ap-nav-home) .ap-nav-logo .ap-site-logo--for-dark-bg { display: none !important; }
.ap-nav:not(.ap-nav-home) .ap-nav-logo .ap-site-logo--for-light-bg { display: block !important; }
.ap-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.ap-nav-links a {
  text-decoration: none;
  font-family: var(--ap-font-heading);
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  transition: color .2s;
}
.ap-nav-links a:hover { color: var(--ap-primary); }
.ap-nav-actions { display: flex; align-items: center; gap: 8px; }
.ap-nav-home .ap-nav-links a,
.ap-nav-home .ap-nav-actions .ap-btn-ghost { color: rgba(255,255,255,.8); }
.ap-nav-home .ap-nav-logo-text { color: #fff; }
.ap-nav-home.scrolled .ap-nav-links a,
.ap-nav-home.scrolled .ap-nav-actions .ap-btn-ghost { color: var(--ap-text-sec); }
.ap-nav-home.scrolled .ap-nav-logo-text { color: var(--ap-text); }

/* Mobile menu tray (Connexion / compte + hamburger) */
.ap-nav-mob-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ap-nav-mob-login {
  font-family: var(--ap-font-heading);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ap-text-sec);
  padding: 8px 4px;
  white-space: nowrap;
}
.ap-nav-home:not(.scrolled) .ap-nav-mob-login {
  color: rgba(255, 255, 255, 0.92);
}
.ap-nav-mob-account {
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: var(--ap-primary-light);
  text-decoration: none;
  flex-shrink: 0;
}
.ap-nav-home:not(.scrolled) .ap-nav-mob-account {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.ap-nav-mob-account-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ap-nav-mob-account-initial {
  font-family: var(--ap-font-heading);
  font-weight: 800;
  font-size: 14px;
  color: var(--ap-primary);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ap-primary-light);
}
.ap-nav-home:not(.scrolled) .ap-nav-mob-account-initial {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.ap-nav-mob-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 8px;
  display: none;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .ap-nav-mob-toggle { display: flex; }
  .ap-nav-links, .ap-nav-actions .ap-btn:not(.ap-btn-primary) { display: none !important; }
}
.ap-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  padding: 80px 24px 24px;
  animation: ap-fadeIn .25s ease;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.ap-nav-overlay a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--ap-border-light);
  text-decoration: none;
  font-family: var(--ap-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--ap-text);
}

/* Hero home */
.ap-hero {
  position: relative;
  min-height: clamp(420px, 64vh, 760px);
  background: linear-gradient(160deg, var(--ap-navy) 0%, var(--ap-hero-mid) 38%, var(--ap-primary-deep) 72%, var(--ap-secondary-dark) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ap-hero-orb {
  position: absolute;
  top: -100px;
  right: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--ap-primary-rgb) / 15%), transparent 70%);
  animation: ap-float 9s ease-in-out infinite;
}
.ap-hero-noise {
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ap-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ap-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  background: rgba(255,255,255,.06);
  border-radius: 36px;
  padding: 4px 14px 4px 4px;
  border: 1px solid rgba(255,255,255,.08);
}
.ap-hero-pill-new {
  background: var(--ap-green);
  color: #fff;
  border-radius: 18px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--ap-font-heading);
}
.ap-hero-pill-text { color: rgba(255,255,255,.65); font-size: 12.5px; }
.ap-hero-title { color: #fff; max-width: 620px; margin-bottom: 16px; }
.ap-hero-title span {
  background: linear-gradient(135deg, var(--ap-primary-muted), var(--ap-primary-extra));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ap-hero-desc {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255,255,255,.48);
  max-width: 460px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.ap-hero-search {
  background: rgba(255,255,255,.96);
  border-radius: 13px;
  padding: 4px;
  display: flex;
  flex-wrap: wrap;
  box-shadow: 0 14px 44px rgba(0,0,0,.2);
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  align-self: stretch;
}
.ap-hero-search .ap-input-wrap,
.ap-hero-search .ap-hero-search__field { flex: 1 1 150px; border: none; border-radius: 0; background: transparent; min-height: 0; }
.ap-hero-search .ap-input-wrap:first-of-type { border-right: 1px solid var(--ap-border-light); }
.ap-hero-search .ap-select { font-size: 13px; }
.ap-hero-search-btn {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-dark));
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 10px 22px;
  font-family: var(--ap-font-heading);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 3px 10px rgb(var(--ap-primary-rgb) / 30%);
  text-decoration: none;
}
.ap-hero-search-btn:hover { filter: brightness(1.05); color: #fff; }
.ap-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}
.ap-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ap-hero-trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-hero-trust-icon svg { color: rgba(255,255,255,.55); }
.ap-hero-trust-text { font-family: var(--ap-font-heading); font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); }

/* Categories grid */
.ap-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 9px;
}
.ap-cat-card {
  background: var(--ap-surface);
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--ap-border-light);
  transition: all .2s;
  text-decoration: none;
  color: inherit;
  display: block;
  min-width: 0;
}
.ap-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ap-shadow-m);
}
.ap-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.ap-cat-icon svg.ap-builtin-cat-icon,
.ap-cat-icon .ap-builtin-cat-icon {
  width: 22px;
  height: 22px;
  max-width: none;
  flex-shrink: 0;
  overflow: visible;
  display: block;
}
.ap-cat-icon .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
  line-height: 1;
}
.ap-cat-icon img.ap-cat-icon__flaticon {
  width: 22px;
  height: 22px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.ap-cat-name { font-family: var(--ap-font-heading); font-weight: 600; font-size: 12.5px; margin-bottom: 2px; }
.ap-cat-count { font-size: 10.5px; color: var(--ap-text-ter); }

/* Provider card */
.ap-provider-card {
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.ap-provider-card .ap-card { height: 100%; }
.ap-provider-thumb {
  height: 165px;
  background: linear-gradient(135deg, var(--ap-primary-soft), var(--ap-surface-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  border-radius: var(--ap-radius-lg) var(--ap-radius-lg) 0 0;
  overflow: hidden;
}
.ap-provider-thumb__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ap-provider-thumb__placeholder {
  position: relative;
  z-index: 0;
}
.ap-provider-thumb-avatar-wrap {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 4;
  display: block;
  line-height: 0;
}
.ap-provider-thumb-avatar-wrap img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ap-surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  display: block;
}
.ap-provider-thumb-avatar-wrap.is-online::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 9px;
  height: 9px;
  background: #22c55e;
  border: 2px solid var(--ap-surface);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.ap-provider-thumb-avatar-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  transform: translateY(4px);
  padding: 5px 10px;
  background: rgba(24, 24, 27, 0.94);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--ap-font-heading);
  border-radius: 8px;
  white-space: nowrap;
  max-width: min(220px, calc(100vw - 32px));
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.ap-provider-thumb-avatar-wrap:hover .ap-provider-thumb-avatar-tip,
.ap-provider-thumb-avatar-wrap:focus-within .ap-provider-thumb-avatar-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ap-provider-sponsored-badge {
  position: absolute;
  top: 4px;
  left: 8px;
  z-index: 2;
}
.ap-provider-card.ap-compact .ap-provider-thumb { height: 130px; font-size: 38px; }
.ap-provider-body { padding: 14px 16px 16px; }
.ap-provider-card.ap-compact .ap-provider-body { padding: 12px 14px; }
/* Titre + picto vérifié : flux inline (évite une ligne vide entre titre et icône avec flex-wrap) */
.ap-provider-name {
  font-family: var(--ap-font-heading);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 3px;
  line-height: 1.35;
}
.ap-provider-name-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ap-provider-verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 5px;
  color: var(--ap-green);
  position: relative;
  top: -1px;
}
.ap-provider-verified-icon svg { display: block; }
.ap-provider-card.ap-compact .ap-provider-name { font-size: 13.5px; }
.ap-provider-spec { font-size: 12px; color: var(--ap-text-sec); margin-bottom: 8px; }
.ap-provider-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ap-provider-meta strong { font-size: 12.5px; }
.ap-provider-meta .ap-tertiary { font-size: 11px; }
.ap-provider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--ap-border-light);
  font-size: 11.5px;
  color: var(--ap-text-sec);
}
.ap-provider-footer .ap-badge { font-size: 10px; }

/* Garage / atelier — texte blanc en bas d’image + dégradé noir */
.ap-provider-card.ap-garage-atelier {
  width: 100%;
  min-width: 0;
}
.ap-provider-card.ap-garage-atelier .ap-card {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.ap-provider-card.ap-garage-atelier .ap-provider-thumb.ap-garage-atelier__visual {
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 4 / 5;
  min-height: 196px;
  border-radius: var(--ap-radius-lg);
}
.ap-provider-card.ap-garage-atelier--compact .ap-provider-thumb.ap-garage-atelier__visual {
  aspect-ratio: 16 / 11;
  min-height: 136px;
}
.ap-garage-atelier__visual-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 48%,
    rgba(0, 0, 0, 0.78) 78%,
    rgba(0, 0, 0, 0.92) 100%
  );
}
.ap-garage-atelier__badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--ap-font-heading);
  backdrop-filter: blur(6px);
  line-height: 1.15;
}
.ap-garage-atelier__badge--sponsored {
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.ap-garage-atelier__badge--dispo {
  top: 8px;
  right: 8px;
  background: rgba(22, 163, 74, 0.92);
  color: #fff;
}
.ap-garage-atelier__badge--urgent {
  bottom: 118px;
  left: 8px;
  background: rgba(217, 119, 6, 0.92);
  color: #fff;
}
.ap-garage-atelier__badge--featured {
  bottom: 118px;
  right: 8px;
  background: rgb(var(--ap-primary-rgb) / 88%);
  color: #fff;
}
.ap-provider-card.ap-garage-atelier--compact .ap-garage-atelier__badge--urgent,
.ap-provider-card.ap-garage-atelier--compact .ap-garage-atelier__badge--featured {
  bottom: 100px;
}
.ap-garage-atelier__pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.ap-garage-atelier__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}
.ap-garage-atelier__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.35;
}
.ap-garage-atelier__title-block {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.ap-garage-atelier__title-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.95);
  opacity: 0.98;
}
.ap-garage-atelier__title-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.ap-garage-atelier__title {
  font-family: var(--ap-font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  color: #fff;
}
.ap-garage-atelier__verified {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: #6ee7b7;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.ap-garage-atelier__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
}
.ap-garage-atelier__rating .ap-stars {
  display: inline-flex;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.ap-garage-atelier__rating-num {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-weight: 700;
}
.ap-garage-atelier__reviews {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}
.ap-garage-atelier__city {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  line-height: 1.3;
}
.ap-garage-atelier__city svg {
  flex-shrink: 0;
  opacity: 0.92;
  stroke: currentColor;
}

/* Featured card — premium vertical design */
.ap-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.ap-featured-card {
  text-decoration: none;
  color: inherit;
  display: block;
  min-width: 0;
}
.ap-featured-card-inner {
  background: var(--ap-surface);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--ap-primary-muted);
  box-shadow: 0 2px 16px rgb(var(--ap-primary-rgb) / 6%);
  transition: all .28s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ap-featured-card:hover .ap-featured-card-inner {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgb(var(--ap-primary-rgb) / 13%);
  border-color: var(--ap-primary-extra);
}
.ap-featured-card-visual {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.ap-featured-card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ap-featured-card-bg--placeholder {
  background: linear-gradient(135deg, var(--ap-primary-soft), var(--ap-primary-light));
}
.ap-featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(var(--ap-primary-rgb) / 5%) 0%, rgb(var(--ap-primary-rgb) / 18%) 100%);
  pointer-events: none;
}
.ap-featured-card-avail {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--ap-font-heading);
  background: rgba(34,197,94,.9);
  color: #fff;
  backdrop-filter: blur(4px);
}
.ap-featured-card-avail-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: ap-pulse 2s infinite;
}
.ap-featured-card-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -32px;
  position: relative;
  z-index: 2;
}
.ap-featured-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid var(--ap-surface);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  background: var(--ap-primary-light);
}
.ap-featured-card-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ap-font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--ap-primary);
  background: linear-gradient(135deg, var(--ap-primary-soft), var(--ap-primary-light));
}
.ap-featured-card-body {
  padding: 10px 18px 18px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ap-featured-card-name {
  font-family: var(--ap-font-heading);
  font-weight: 700;
  font-size: 15px;
  width: 100%;
  margin-bottom: 2px;
  text-align: center;
  line-height: 1.35;
}
.ap-featured-card-name-row {
  display: inline-block;
  max-width: 100%;
  text-align: center;
}
.ap-featured-card-name-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ap-featured-card-name-trailing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  margin-left: 4px;
  position: relative;
  top: -1px;
}
.ap-featured-card-title {
  font-size: 12px;
  color: var(--ap-text-sec);
  margin-bottom: 8px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ap-featured-card-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 10.5px;
  font-weight: 600;
  font-family: var(--ap-font-heading);
  background: var(--ap-primary-light);
  color: var(--ap-primary);
  margin: 0 auto 10px;
}
.ap-featured-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--ap-text-sec);
}
.ap-featured-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.ap-featured-card-rating strong {
  font-family: var(--ap-font-heading);
  font-weight: 700;
  color: var(--ap-text);
  font-size: 13px;
}
.ap-featured-card-rating span {
  color: var(--ap-text-ter);
  font-size: 11px;
}
.ap-featured-card-city {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
}
.ap-featured-card-cta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ap-border-light);
  font-family: var(--ap-font-heading);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ap-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: gap .2s;
}
.ap-featured-card:hover .ap-featured-card-cta {
  gap: 8px;
}
@media (max-width: 768px) {
  .ap-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ap-featured-card-visual { height: 110px; }
  .ap-featured-card-avatar { width: 48px; height: 48px; border-radius: 12px; }
  .ap-featured-card-avatar-wrap { margin-top: -24px; }
  .ap-featured-card-body { padding: 6px 10px 12px; }
  .ap-featured-card-name { font-size: 13px; }
}
@media (max-width: 480px) {
  .ap-featured-card-body { padding: 6px 8px 12px; }
}

/* Tabs */
.ap-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-bottom: none;
  box-shadow: inset 0 -2px 0 var(--ap-border-light);
}
.ap-tabs::-webkit-scrollbar {
  width: 0;
  height: 5px;
}
.ap-tabs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}
.ap-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.ap-tab {
  flex-shrink: 0;
  padding: 11px 18px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--ap-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--ap-text-ter);
  border-bottom: 2px solid transparent;
  margin-bottom: 0;
  transition: all .2s;
  white-space: nowrap;
}
.ap-tab.is-active { color: var(--ap-primary); border-bottom-color: var(--ap-primary); }
.ap-tab-count {
  margin-left: 5px;
  font-size: 10.5px;
  background: var(--ap-surface-alt);
  color: var(--ap-text-ter);
  padding: 1px 6px;
  border-radius: 10px;
}
.ap-tab.is-active .ap-tab-count { background: var(--ap-primary-light); color: var(--ap-primary); }

/* Footer */
.ap-footer {
  background: var(--ap-navy);
  color: rgba(255,255,255,.55);
  padding: 50px 24px 24px;
}
.ap-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}
.ap-footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.ap-footer-logo .ap-nav-logo-icon { flex-shrink: 0; }
.ap-footer-logo-text {
  font-family: var(--ap-font-heading);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}
.ap-footer-logo-text span { color: var(--ap-primary-muted); }
.ap-footer-tagline { font-size: 12px; line-height: 1.7; max-width: 220px; }
.ap-footer-title {
  font-family: var(--ap-font-heading);
  font-weight: 700;
  font-size: 12.5px;
  color: #fff;
  margin-bottom: 12px;
}
.ap-footer-grid div a {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  margin-bottom: 8px;
}
.ap-footer-grid div a:hover { color: rgba(255,255,255,.7); }
.ap-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.ap-footer-bottom span { font-size: 11px; color: rgba(255,255,255,.2); }

/* —— Signalement conversation (modale globale) —— */
.ap-report-modal {
  position: fixed;
  inset: 0;
  z-index: 999991;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.ap-report-modal[hidden] {
  display: none !important;
}
.ap-report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}
.ap-report-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(520px, calc(100vh - 48px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--ap-surface, #fff);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--ap-border-light, rgba(0, 0, 0, 0.06));
}
.ap-report-modal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ap-text-ter, #64748b);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.ap-report-modal__x:hover {
  background: var(--ap-surface-alt, #f4f4f5);
  color: var(--ap-text, #0f172a);
}
.ap-report-modal__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin: 22px auto 0;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(22, 163, 74, 0.14), rgba(22, 163, 74, 0.06));
  color: var(--ap-primary, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-report-modal__label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ap-text-sec, #52525b);
}
.ap-report-modal__title {
  margin: 14px 24px 0;
  font-family: var(--ap-font-heading, system-ui, sans-serif);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.25;
  color: var(--ap-text, #0f172a);
  text-align: center;
}
.ap-report-modal__intro {
  margin: 10px 24px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ap-text-sec, #64748b);
  text-align: center;
}
.ap-report-modal__form {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.ap-report-modal__textarea {
  width: 100%;
  min-height: 100px;
  max-height: 200px;
  padding: 12px 14px;
  border: 1.5px solid var(--ap-border, #e2e8f0);
  border-radius: 12px;
  font-family: var(--ap-font-body, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ap-report-modal__textarea:focus {
  outline: none;
  border-color: var(--ap-primary, #16a34a);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.ap-report-modal__err {
  margin: 0;
  font-size: 13px;
  color: #b91c1c;
  line-height: 1.4;
}
.ap-report-modal__err[hidden] {
  display: none !important;
}
.ap-report-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 4px;
}
.ap-report-modal__btn {
  font-family: var(--ap-font-heading, system-ui, sans-serif);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.ap-report-modal__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ap-report-modal__btn--ghost {
  background: var(--ap-surface-alt, #f4f4f5);
  color: var(--ap-text-sec, #52525b);
}
.ap-report-modal__btn--ghost:hover:not(:disabled) {
  background: #e4e4e7;
}
.ap-report-modal__btn--primary {
  background: var(--ap-primary, #16a34a);
  color: #fff;
}
.ap-report-modal__btn--primary:hover:not(:disabled) {
  filter: brightness(1.05);
}
.ap-report-modal__success {
  padding: 28px 24px 24px;
  text-align: center;
}
.ap-report-modal__success[hidden],
.ap-report-modal__form[hidden] {
  display: none !important;
}
.ap-report-modal__success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--ap-primary, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-report-modal__success-text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ap-text-sec, #52525b);
}

/* —— Bloc sécurité dans fil Mon espace —— */
.ap-dash-conv-safety {
  margin-bottom: 14px;
}
.ap-dash-conv-safety__card {
  border-radius: 12px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.65) 0%, rgba(255, 255, 255, 0.92) 100%);
  overflow: hidden;
}
.ap-dash-conv-safety__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(14, 165, 233, 0.1);
  border-bottom: 1px solid rgba(14, 165, 233, 0.14);
}
.ap-dash-conv-safety__icon {
  flex-shrink: 0;
  color: #0284c7;
  display: flex;
}
.ap-dash-conv-safety__title {
  font-family: var(--ap-font-heading);
  font-weight: 700;
  font-size: 12.5px;
  color: #0c4a6e;
  letter-spacing: -0.01em;
}
.ap-dash-conv-safety__body {
  padding: 10px 12px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ap-text-sec);
}
.ap-dash-conv-safety__body p {
  margin: 0 0 0.5em;
}
.ap-dash-conv-safety__body p:last-child {
  margin-bottom: 0;
}
.ap-dash-conv-safety__body ul {
  margin: 0.35em 0 0;
  padding-left: 1.15em;
}

/* Fiche annonce : rappel sécurité chat (centré, compact) */
.ap-listing-chat-safety-details {
  margin-bottom: 10px;
  text-align: center;
  font-size: 10px;
  color: var(--ap-text-ter);
  line-height: 1.45;
}
.ap-listing-chat-safety-details__summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ap-primary);
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
}
.ap-listing-chat-safety-details__summary::-webkit-details-marker {
  display: none;
}
.ap-listing-chat-safety-details__ic {
  flex-shrink: 0;
  opacity: 0.85;
}
.ap-listing-chat-safety-details__body {
  margin-top: 8px;
  padding: 10px;
  background: var(--ap-surface-alt);
  border-radius: var(--ap-radius-sm);
  max-height: 200px;
  overflow-y: auto;
  text-align: left;
  font-size: 11px;
}

/* Mon espace : fil avec avatars */
.ap-conv-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}
.ap-conv-msg-row--me {
  flex-direction: row-reverse;
}
.ap-conv-msg-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ap-surface-alt);
}
.ap-conv-msg-bubble-wrap {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 40px);
}

