/**
 * apb-annuaire-mockup.css — pixel-perfect réplique du mockup Claude Design Annuaire.html.
 * Scope : .fxs-annuaire (pas en :root) pour ne pas polluer les autres pages du plugin
 * qui utilisent les Bricks Design Tokens (--color-primary etc.).
 *
 * Référence : docs/mockups/claude-design/project/Annuaire.html + annuaire-styles.css.
 * Voir docs/components/page-annuaire.md.
 */

/* ============ SCOPED VARIABLES ============ */

.fxs-annuaire {
  --bg: #FAFAF7;
  --bg-soft: #F4F2EC;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --line: #E7E3D9;
  --line-2: #EDEAE1;
  --brand: #0B2A4A;
  --brand-2: #143D69;
  --brand-soft: #EEF2F8;
  --accent: #F59E0B;
  --accent-2: #E88B05;
  --shadow-1: 0 1px 2px rgba(11, 42, 74, 0.04), 0 2px 8px rgba(11, 42, 74, 0.04);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  color: var(--ink);
}
.fxs-annuaire * { box-sizing: border-box; }
.fxs-annuaire button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.fxs-annuaire input,
.fxs-annuaire textarea { font-family: inherit; color: inherit; }

/* Page background pour la pleine largeur (s'applique au body via parent style.css)
 * v2.36.0 — sortie du beige (#F5F3EE) au profit du gris neutre du design system
 * (cf. CLAUDE.md §19.3 « --color-background : #F7F8FA »).
 */
body:has(.fxs-annuaire) { background: #F7F8FA; }

/* ============ HERO ============ */

.fxs-annuaire .ann-hero {
  background: linear-gradient(135deg, #0B2A4A 0%, #143D69 60%, #1F4574 100%);
  color: white;
  padding: 48px 28px 72px;
  position: relative;
  overflow: hidden;
}
.fxs-annuaire .ann-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 30%, rgba(245,158,11,0.18), transparent 60%),
              radial-gradient(500px 250px at 15% 80%, rgba(16,185,129,0.12), transparent 60%);
  pointer-events: none;
}
.fxs-annuaire .ann-hero-inner { max-width: 1240px; margin: 0 auto; position: relative; }
.fxs-annuaire .ann-hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: #F59E0B; margin-bottom: 12px;
}
.fxs-annuaire .ann-hero h1 {
  font-size: 42px; font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em; margin: 0 0 14px;
  text-wrap: balance;
  color: white;
}
.fxs-annuaire .ann-hero p { font-size: 16px; color: #C7D5E9; margin: 0; max-width: 540px; }
.fxs-annuaire .ann-hero p b { color: #F59E0B; font-weight: 700; }

/* ============ MOBILE FILTER TOGGLE ============ */

.fxs-annuaire .ann-mobile-bar { display: none; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.fxs-annuaire .mob-filt {
  width: 100%; padding: 14px 18px;
  background: white; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-1);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--brand);
  margin-top: -28px; position: relative;
}
.fxs-annuaire .mob-filt > svg:first-of-type { color: var(--brand); }
.fxs-annuaire .mob-filt-chev { margin-left: auto; transition: transform 0.2s; }
.fxs-annuaire .mob-filt[aria-expanded="true"] .mob-filt-chev { transform: rotate(180deg); }

/* ============ FILTER BAR ============ */

.fxs-annuaire .ann-filter-wrap {
  max-width: 1240px; margin: -32px auto 0; padding: 0 28px;
  position: relative; z-index: 5;
}
.fxs-annuaire .fbar-card {
  background: white; border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(11,42,74,0.06);
}
.fxs-annuaire .fbar-top {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1.3fr 1fr;
  gap: 14px;
  align-items: end;
}
.fxs-annuaire .fbar-top + .fbar-top {
  grid-template-columns: 1fr 1fr 1.4fr 1.4fr;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  align-items: end;
}
/* v2.32.4 — Layout 2 sub-rows : LOCALISATION+CATÉGORIE 50/50 (allargate) puis NOTE+LANGUE+TYPE */
.fxs-annuaire .fbar-top--main { grid-template-columns: 1fr 1fr; gap: 14px; }
.fxs-annuaire .fbar-top--sub  { grid-template-columns: 0.9fr 1.4fr 1fr; }
.fxs-annuaire .fbar-top--main + .fbar-top--sub {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2);
}
.fxs-annuaire .fbar-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fxs-annuaire .fbar-field label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--ink-3);
}
.fxs-annuaire .fbar-field select,
.fxs-annuaire .fbar-field input[type="text"],
.fxs-annuaire .fbar-field input[type="number"] {
  padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: white;
  font-size: 13px; outline: none;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.12s, box-shadow 0.12s;
  width: 100%;
  height: 40px;
  line-height: 1.2;
}
.fxs-annuaire .fbar-field select:focus,
.fxs-annuaire .fbar-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11,42,74,0.06);
}
.fxs-annuaire .loc-input {
  display: flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 10px;
  background: white; overflow: hidden;
  transition: border-color 0.12s, box-shadow 0.12s;
  height: 40px;
}
.fxs-annuaire .loc-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11,42,74,0.06);
}
.fxs-annuaire .loc-input input {
  border: none; flex: 1; background: transparent; padding: 0 12px;
  font-size: 13px; outline: none; height: 100%;
}
.fxs-annuaire .loc-input input:focus { box-shadow: none; }
.fxs-annuaire .loc-btn {
  padding: 0 12px; color: var(--brand);
  border-left: 1px solid var(--line-2);
  display: grid; place-items: center;
}
.fxs-annuaire .loc-btn:hover { color: var(--accent-2); }

.fxs-annuaire .lang-checks { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 0 0; }
.fxs-annuaire .lchk {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; cursor: pointer; color: var(--ink-2);
}
.fxs-annuaire .lchk input { accent-color: var(--brand); }
.fxs-annuaire .lchk.on { color: var(--brand); font-weight: 600; }

.fxs-annuaire .fbar-range { position: relative; }
.fxs-annuaire .fbar-range label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  min-height: 14px;
}
.fxs-annuaire .fbar-range .range-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: none;
}
.fxs-annuaire .fbar-range .range-value {
  font-size: 12px; font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
}
.fxs-annuaire .fbar-range input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: var(--bg-soft); border-radius: 999px; border: none; padding: 0;
  outline: none;
  margin-top: 12px;
}
.fxs-annuaire .fbar-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); border: 3px solid white;
  box-shadow: 0 2px 6px rgba(11,42,74,0.3);
  cursor: pointer;
}
.fxs-annuaire .fbar-range input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); border: 3px solid white;
  box-shadow: 0 2px 6px rgba(11,42,74,0.3);
  cursor: pointer; border: none;
}

/* Bottom row : checkbox premium + actions sur une seule ligne */
.fxs-annuaire .fbar-bottom-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--line-2);
  flex-wrap: wrap;
}

.fxs-annuaire .chk-adv {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--ink-2); cursor: pointer;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  transition: all 0.15s;
  user-select: none;
  font-weight: 500;
}
.fxs-annuaire .chk-adv input { accent-color: var(--brand); }
.fxs-annuaire .chk-adv svg { color: var(--accent); flex-shrink: 0; }
.fxs-annuaire .chk-adv:hover { border-color: var(--brand); color: var(--brand); }
.fxs-annuaire .chk-adv:has(input:checked) {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}

.fxs-annuaire .fbar-actions {
  display: flex; gap: 10px;
  align-items: center; justify-content: flex-end;
}
.fxs-annuaire .fbar-reset {
  padding: 0 16px;
  height: 40px;
  border-radius: 10px;
  background: none; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); cursor: pointer;
  font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.fxs-annuaire .fbar-reset:hover { color: var(--brand); border-color: var(--brand); background: var(--bg-soft); }
.fxs-annuaire .btn-filter {
  padding: 0 20px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand); color: white;
  border: 1px solid var(--brand);
  font-size: 13px; font-weight: 600;
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
  text-decoration: none;
  min-width: 130px;
}
.fxs-annuaire .btn-filter:hover { background: var(--brand-2); border-color: var(--brand-2); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11,42,74,0.18); }
.fxs-annuaire .btn-filter svg { flex-shrink: 0; }
.fxs-annuaire .btn-filter-label { transition: opacity 0.15s; white-space: nowrap; }
.fxs-annuaire .btn-filter-label.is-loading { opacity: 0.55; }
.fxs-annuaire .btn-filter[disabled] { opacity: 0.7; cursor: wait; }
/* Backward-compat : ancien badge orange si jamais ré-utilisé ailleurs */
.fxs-annuaire .count-badge {
  background: var(--accent); color: #1A1204;
  font-size: 11px; font-weight: 800;
  padding: 1px 8px; border-radius: 999px;
  min-width: 22px; text-align: center;
  transition: opacity 0.15s;
}
.fxs-annuaire .count-badge.is-loading { opacity: 0.5; }

/* ============ TOOLBAR ============ */

.fxs-annuaire .ann-toolbar {
  max-width: 1240px; margin: 24px auto 0; padding: 0 28px;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 18px; align-items: center;
}
.fxs-annuaire .ann-crumb { font-size: 13px; color: var(--ink-3); }
.fxs-annuaire .ann-crumb a { color: var(--brand); cursor: pointer; text-decoration: none; }
.fxs-annuaire .ann-crumb b { color: var(--ink); font-weight: 600; }
.fxs-annuaire .ann-count b { color: var(--brand); font-size: 15px; display: block; }
.fxs-annuaire .ann-count .muted { font-size: 13px; color: var(--ink-3); }
.fxs-annuaire .ann-count .lnk { color: var(--brand); text-decoration: underline; cursor: pointer; }

.fxs-annuaire .view-switch {
  display: flex; gap: 0;
  background: var(--bg-soft); border-radius: 10px;
  padding: 3px; border: 1px solid var(--line);
}
.fxs-annuaire .view-switch button {
  padding: 8px 12px; border: none; background: none;
  color: var(--ink-3); border-radius: 8px;
  transition: all 0.12s;
  display: grid; place-items: center;
}
.fxs-annuaire .view-switch button:hover { color: var(--brand); }
.fxs-annuaire .view-switch button.on {
  background: white; color: var(--brand);
  box-shadow: 0 1px 3px rgba(11,42,74,0.1);
}

/* ============ GRID ============ */

.fxs-annuaire .ann-grid {
  max-width: 1240px; margin: 20px auto 0; padding: 0 28px;
  display: grid; gap: 20px;
}
.fxs-annuaire .ann-grid-grid { grid-template-columns: repeat(3, 1fr); }
.fxs-annuaire .ann-grid-list { grid-template-columns: 1fr; }

/* ============ PRO CARD ============ */

.fxs-annuaire .pro-card {
  background: white; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  transition: all 0.2s;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.fxs-annuaire .pro-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 12px 32px rgba(11,42,74,0.12);
}
.fxs-annuaire .pro-card.is-premium {
  box-shadow: 0 0 0 1px #FDE68A, 0 6px 20px rgba(245,158,11,0.08);
}
.fxs-annuaire .pro-card.is-premium:hover {
  box-shadow: 0 0 0 1px #F59E0B, 0 14px 36px rgba(245,158,11,0.18);
}

.fxs-annuaire .pro-media {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: #F1ECE0;
}
.fxs-annuaire .pa-photo, .fxs-annuaire .pa-photo-img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.fxs-annuaire .pro-premium {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(11,42,74,0.92);
  color: white; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; padding: 5px 12px; border-radius: 6px;
}
.fxs-annuaire .pro-conge {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  background: #FEF3C7; color: #78350F;
  font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 6px;
  border: 1px solid #FDE68A;
  display: inline-flex; align-items: center; gap: 5px;
}

.fxs-annuaire .pa-letter {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 120px; font-weight: 700; letter-spacing: -0.04em;
}
.fxs-annuaire .pa-letter span { opacity: 0.9; }
.fxs-annuaire .pa-letter--dark     { background: linear-gradient(135deg,#0B2A4A,#1F4574); color: white; }
.fxs-annuaire .pa-letter--light    { background: linear-gradient(135deg,#DBEAFE,#BFDBFE); color: rgba(11,42,74,0.35); }
.fxs-annuaire .pa-letter--warm     { background: linear-gradient(135deg,#FED7AA,#FCA76B); color: rgba(11,42,74,0.35); }
.fxs-annuaire .pa-letter--wood     { background: linear-gradient(135deg,#C68A5B,#8B5A3C); color: white; }
.fxs-annuaire .pa-letter--sand     { background: linear-gradient(135deg,#F3E8D2,#D4B886); color: rgba(11,42,74,0.35); }
.fxs-annuaire .pa-letter--concrete { background: linear-gradient(135deg,#D1D5DB,#9CA3AF); color: rgba(11,42,74,0.35); }
.fxs-annuaire .pa-letter--green    { background: linear-gradient(135deg,#BBF7D0,#86EFAC); color: rgba(11,42,74,0.35); }

.fxs-annuaire .pro-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.fxs-annuaire .pro-verif-row {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.fxs-annuaire .chip-v {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid transparent;
}
.fxs-annuaire .chip-v.on      { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.fxs-annuaire .chip-v.neutral { background: var(--bg-soft); color: var(--ink-2); border-color: var(--line); }
.fxs-annuaire .chip-v.star    { background: #FFFBEB; color: #78350F; border-color: #FDE68A; font-weight: 600; }
.fxs-annuaire .chip-v.outline { background: white; color: var(--ink-3); border-color: var(--line); }

.fxs-annuaire .fav-btn {
  margin-left: auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: white; border: 1px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer; transition: all 0.15s;
}
.fxs-annuaire .fav-btn:hover { border-color: #FCA5A5; transform: scale(1.08); }
.fxs-annuaire .fav-btn.on { border-color: #EF4444; background: #FEF2F2; }

.fxs-annuaire .pro-name {
  font-size: 21px; font-weight: 800; margin: 0;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1.2;
}
.fxs-annuaire .pro-name a { color: inherit; text-decoration: none; }
.fxs-annuaire .pro-name a:hover { color: var(--brand); }
.fxs-annuaire .pro-subcat {
  font-size: 12px; font-weight: 700; color: var(--ink-3);
  letter-spacing: 0.12em;
}

.fxs-annuaire .pro-meta {
  display: flex; justify-content: space-between;
  align-items: baseline; font-size: 15px;
}
.fxs-annuaire .pro-loc {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink-2); font-weight: 500;
}
.fxs-annuaire .pro-loc svg { color: var(--brand); }
.fxs-annuaire .pro-reviews { font-size: 14px; color: var(--ink-3); }
.fxs-annuaire .pro-reviews.muted-it { font-style: italic; }

.fxs-annuaire .pro-desc {
  font-size: 15px; color: var(--ink-2); line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fxs-annuaire .pro-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.fxs-annuaire .pro-tag {
  font-size: 13px; padding: 4px 11px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2);
  font-weight: 500;
}
.fxs-annuaire .pro-tag.more {
  background: var(--brand-soft); color: var(--brand);
  border-color: #C7D5E9; font-weight: 600;
}

.fxs-annuaire .pro-footer {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
}
.fxs-annuaire .pro-tarif {
  font-size: 14px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.fxs-annuaire .pro-tarif-amt { color: var(--ink-2); font-weight: 600; }

.fxs-annuaire .btn-view {
  padding: 10px 18px;
  background: var(--brand); color: white;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}
.fxs-annuaire .btn-view:hover { background: var(--brand-2); transform: translateX(2px); }

/* LIST layout */
.fxs-annuaire .pro-card-list { flex-direction: row; }
.fxs-annuaire .pro-card-list .pro-media { width: 240px; flex-shrink: 0; aspect-ratio: 1; }
.fxs-annuaire .pro-card-list .pro-body { flex: 1; }

/* ============ MAP LAYOUT ============ */

.fxs-annuaire .ann-map-layout {
  max-width: 1240px; margin: 20px auto 0; padding: 0 28px;
  display: grid; grid-template-columns: 380px 1fr; gap: 16px;
  height: 680px;
}
.fxs-annuaire .ann-map-side {
  overflow-y: auto;
  border: 1px solid var(--line); border-radius: 14px;
  background: white;
  padding: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.fxs-annuaire .map-card {
  display: flex; gap: 12px; padding: 10px;
  border-radius: 10px;
  transition: all 0.12s;
  align-items: center;
  text-decoration: none; color: inherit;
}
.fxs-annuaire .map-card:hover { background: var(--bg-soft); }
.fxs-annuaire .map-card.on {
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.fxs-annuaire .map-card-ava {
  width: 50px; height: 50px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
  background: #F1ECE0;
}
.fxs-annuaire .map-card-ava img,
.fxs-annuaire .map-card-ava .pa-letter { width: 100%; height: 100%; }
.fxs-annuaire .map-card-ava .pa-letter { font-size: 24px; }
.fxs-annuaire .map-card > div:last-child { flex: 1; min-width: 0; }
.fxs-annuaire .map-card b { font-size: 13px; display: block; color: var(--ink); }
.fxs-annuaire .map-card .muted { font-size: 11px; color: var(--ink-3); }
.fxs-annuaire .mc-r {
  font-size: 11px; color: #78350F;
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 3px;
}
.fxs-annuaire .mc-r.new { color: var(--ink-3); font-style: italic; }

.fxs-annuaire .ann-map-main {
  border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: white;
  position: relative;
}
.fxs-annuaire .be-map { width: 100%; height: 100%; }
.fxs-annuaire .be-map svg { display: block; width: 100%; height: 100%; }
.fxs-annuaire .be-pins g.is-selected path { fill: #F59E0B !important; }

/* Toggle visibility based on data-view */
.fxs-annuaire .ann-map-layout { display: none; } /* default caché — pas besoin de l'attribut HTML hidden (qui prévaut parfois sur le CSS) */
.fxs-annuaire[data-view="map"]  .ann-grid       { display: none; }
.fxs-annuaire[data-view="map"]  .ann-pagination { display: none; }
.fxs-annuaire[data-view="map"]  .ann-map-layout { display: grid; }
.fxs-annuaire[data-view="grid"] .ann-map-layout,
.fxs-annuaire[data-view="list"] .ann-map-layout { display: none; }

/* ============ EMPTY STATE ============ */

.fxs-annuaire .ann-empty {
  max-width: 560px; margin: 60px auto; padding: 0 28px;
  text-align: center;
}
.fxs-annuaire .empty-ico { font-size: 48px; margin-bottom: 16px; }
.fxs-annuaire .ann-empty h3 { font-size: 20px; margin: 0 0 8px; color: var(--ink); }
.fxs-annuaire .ann-empty p { color: var(--ink-3); margin: 0 0 20px; }

/* ============ PAGINATION ============ */

.fxs-annuaire .ann-pagination {
  max-width: 1240px; margin: 40px auto 60px; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.fxs-annuaire .pag-nums { display: flex; gap: 4px; align-items: center; }
.fxs-annuaire .pag-n {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: white;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: all 0.12s;
  display: grid; place-items: center;
  text-decoration: none;
}
.fxs-annuaire .pag-n:hover { border-color: var(--brand); color: var(--brand); }
.fxs-annuaire .pag-n.on { background: var(--brand); color: white; border-color: var(--brand); }
.fxs-annuaire .pag-nums span { color: var(--ink-3); padding: 0 4px; }

.fxs-annuaire .btn {
  padding: 9px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid transparent;
  cursor: pointer;
}
.fxs-annuaire .btn-outline {
  background: white; border-color: var(--line); color: var(--ink-2);
}
.fxs-annuaire .btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.fxs-annuaire .btn-outline.disabled,
.fxs-annuaire .btn-outline[aria-disabled="true"] {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
}

/* ============ MOBILE ============ */

@media (max-width: 1100px) {
  .fxs-annuaire .ann-grid-grid { grid-template-columns: repeat(2, 1fr); }
  .fxs-annuaire .fbar-top { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fxs-annuaire .fbar-top + .fbar-top { grid-template-columns: 1fr 1fr; }
  .fxs-annuaire .fbar-bottom-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .fxs-annuaire .fbar-bottom-row .chk-adv { justify-content: center; }
  .fxs-annuaire .fbar-bottom-row .fbar-actions {
    justify-content: stretch;
    width: 100%;
  }
  .fxs-annuaire .fbar-bottom-row .fbar-reset,
  .fxs-annuaire .fbar-bottom-row .btn-filter { flex: 1; min-width: 0; }
}
@media (max-width: 900px) {
  .fxs-annuaire .ann-hero { padding: 36px 20px 60px; }
  .fxs-annuaire .ann-hero h1 { font-size: 30px; }
  .fxs-annuaire .ann-mobile-bar { display: block; }
  .fxs-annuaire .ann-filter-wrap { max-height: 0; overflow: hidden; transition: max-height 0.3s; margin: 10px auto 0; }
  .fxs-annuaire .ann-filter-wrap.open { max-height: 1400px; }
  .fxs-annuaire .ann-toolbar { grid-template-columns: 1fr; padding: 0 20px; }
  .fxs-annuaire .ann-map-layout { grid-template-columns: 1fr; height: auto; }
  .fxs-annuaire .ann-map-side { max-height: 400px; }
  .fxs-annuaire .ann-map-main { height: 360px; }
  .fxs-annuaire .pro-card-list { flex-direction: column; }
  .fxs-annuaire .pro-card-list .pro-media { width: 100%; aspect-ratio: 16/10; }
}
@media (max-width: 640px) {
  .fxs-annuaire .ann-hero h1 { font-size: 24px; }
  .fxs-annuaire .ann-grid-grid { grid-template-columns: 1fr; }
  .fxs-annuaire .ann-grid { padding: 0 16px; }
  .fxs-annuaire .ann-toolbar { padding: 0 16px; }
  .fxs-annuaire .ann-filter-wrap { padding: 0 16px; }
  .fxs-annuaire .fbar-card { padding: 14px 14px; }
  .fxs-annuaire .fbar-top,
  .fxs-annuaire .fbar-top + .fbar-top { grid-template-columns: 1fr; }
  .fxs-annuaire .ann-pagination { padding: 0 16px; flex-wrap: wrap; justify-content: center; }
}

/* ============ Phase 3.C (Codex audit) — Filtres avancés toggle ============ */
.fxs-annuaire .fbar-toggle-adv{
  display:flex;align-items:center;gap:8px;background:transparent;border:1px dashed #CBD5E1;color:#475569;padding:8px 14px;border-radius:8px;cursor:pointer;font-size:13px;font-weight:500;margin:14px auto 0;transition:all .2s;
}
.fxs-annuaire .fbar-toggle-adv:hover{border-color:#94A3B8;color:#1E293B;background:#F8FAFC}
.fxs-annuaire .fbar-toggle-adv[aria-expanded="true"]{background:var(--apb-brand-soft, #EEF2F8);border-color:var(--apb-brand-soft-2, #DDE6F1);color:var(--apb-brand-2, #143D69);border-style:solid}
.fxs-annuaire .fbar-toggle-adv[aria-expanded="true"] .fbar-toggle-chev{transform:rotate(180deg)}
.fxs-annuaire .fbar-toggle-chev{transition:transform .2s}
.fxs-annuaire .fbar-top--advanced{margin-top:14px;border-top:1px solid #F1F5F9;padding-top:14px}
.fxs-annuaire .fbar-top--advanced[hidden]{display:none}

/* ============ Barre AI search dans hero archive ============
 * v2.32.1 — initial : card flottante 720px sur fond navy.
 * v2.36.0 — élargie & aérée : pleine largeur (max 1100px), padding et hauteurs
 *           augmentés pour aligner sur le mockup `annuaire-search-filters-2026-05-14_v3-aligned.html`.
 */
.fxs-annuaire .ann-hero-search{
  margin-top:26px;max-width:1100px;
}
.fxs-annuaire .ann-hero-search__hint{
  display:block;font-size:11px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.55);margin-bottom:12px;
}
.fxs-annuaire .ann-hero-search .apb-ai-search{
  display:flex;align-items:stretch;gap:0;background:#F0F2F5;border-radius:18px;padding:10px 10px 10px 24px;min-height:80px;box-shadow:0 12px 32px rgba(0,0,0,.15);transition:box-shadow .25s ease,transform .25s ease;
}
.fxs-annuaire .ann-hero-search .apb-ai-search:focus-within{
  box-shadow:0 12px 32px rgba(0,0,0,.18),0 0 0 4px rgba(230,137,42,.25);transform:translateY(-1px);
}
.fxs-annuaire .ann-hero-search .apb-ai-search input[type="text"]{
  flex:1;border:0;background:transparent;padding:0 20px 0 0;font-size:17px;font-weight:500;color:#0B2A4A;outline:none;min-width:0;
}
.fxs-annuaire .ann-hero-search .apb-ai-search input[type="text"]::placeholder{color:#828998;font-weight:400}
.fxs-annuaire .ann-hero-search .apb-ai-search button{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#0B2A4A;color:#fff;border:0;padding:0 32px;height:60px;border-radius:14px;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s,transform .15s;white-space:nowrap;flex-shrink:0;
}
.fxs-annuaire .ann-hero-search .apb-ai-search button:hover{background:#143D69;transform:translateY(-1px)}
.fxs-annuaire .ann-hero-search .apb-ai-search button:active{transform:translateY(0)}

@media (max-width:900px){
  .fxs-annuaire .ann-hero-search .apb-ai-search{padding:14px;flex-wrap:wrap;min-height:0}
  .fxs-annuaire .ann-hero-search .apb-ai-search input[type="text"]{padding:8px 12px;width:100%}
  .fxs-annuaire .ann-hero-search .apb-ai-search button{width:100%;height:54px;padding:0 16px}
}
@media (max-width:640px){
  .fxs-annuaire .ann-hero-search{margin-top:18px;max-width:none}
}

/* ============ v2.36.0 — Filtres collapsibles & footer toujours visible ============ *
 * Le toggle « Filtres avancés » ouvre/ferme une carte qui regroupe désormais
 * note + langue + type tarif + dispo + tri + sliders. Le footer
 * (Profils Max + Réinitialiser + Filtrer) est sorti du collapsible pour
 * rester accessible en permanence.
 */
.fxs-annuaire .fbar-adv-row{
  display:grid;gap:14px;align-items:end;
}
.fxs-annuaire .fbar-adv-row + .fbar-adv-row{
  margin-top:14px;padding-top:14px;border-top:1px dashed var(--line-2);
}
.fxs-annuaire .fbar-adv-row--3col{grid-template-columns:1fr 1.3fr 1fr}
.fxs-annuaire .fbar-adv-row--2col{grid-template-columns:1fr 1fr}

/* Badge sur le toggle : nombre de filtres actifs */
.fxs-annuaire .fbar-adv-badge{
  display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:#1A1204;font-size:11px;font-weight:800;min-width:20px;height:20px;padding:0 6px;border-radius:999px;margin-left:2px;
}
.fxs-annuaire .fbar-adv-badge[hidden]{display:none}

/* Footer toujours visible (sorti du grid `.fbar-top--advanced`) */
.fxs-annuaire .fbar-card > .fbar-bottom-row{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  margin-top:18px;padding-top:14px;border-top:1px solid var(--line-2);flex-wrap:wrap;
}

@media (max-width:900px){
  .fxs-annuaire .fbar-adv-row--3col{grid-template-columns:1fr 1fr}
  .fxs-annuaire .fbar-adv-row--3col .fbar-langs{grid-column:1 / -1}
}
@media (max-width:640px){
  .fxs-annuaire .fbar-adv-row--3col,
  .fxs-annuaire .fbar-adv-row--2col{grid-template-columns:1fr}
  .fxs-annuaire .fbar-card > .fbar-bottom-row{flex-direction:column;align-items:stretch}
  .fxs-annuaire .fbar-card > .fbar-bottom-row .fbar-actions{justify-content:space-between}
}

/* ============ v2.32.2 — Empty state intelligent multi-cat ============ */
.fxs-annuaire .empty-fallback-chips{
  display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:18px 0 22px;
}
.fxs-annuaire .empty-chip{
  display:inline-flex;align-items:center;gap:8px;background:#FFFFFF;border:1px solid #E2E6EA;border-radius:10px;padding:10px 14px;text-decoration:none;color:#0B2A4A;font-size:14px;font-weight:600;transition:border-color .15s,transform .15s,box-shadow .15s;
}
.fxs-annuaire .empty-chip:hover{
  border-color:#185FA5;transform:translateY(-1px);box-shadow:0 4px 12px rgba(11,42,74,.08);
}
.fxs-annuaire .empty-chip__count{
  background:#EEF2F8;color:#143D69;padding:2px 8px;border-radius:6px;font-size:12px;font-weight:600;
}
.fxs-annuaire .btn-filter--secondary{
  background:transparent;color:#475569;border:1px solid #CBD5E1;
}
.fxs-annuaire .btn-filter--secondary:hover{background:#F8FAFC;border-color:#94A3B8}

/* ============ v2.32.3 — Multi-select catégorie picker ============ *
 * Dropdown custom avec checkbox + search.
 * Hidden input "cat" garde format CSV pour submit (compat backend v2.32.2).
 */
.fxs-annuaire .fbar-mcat{position:relative}
.fxs-annuaire .apb-mcat{position:relative;width:100%}

.fxs-annuaire .apb-mcat__trigger{
  display:flex;align-items:center;justify-content:space-between;width:100%;background:#FFFFFF;border:1px solid #E2E6EA;border-radius:8px;padding:10px 12px;font-size:14px;color:#0B2A4A;cursor:pointer;transition:border-color .15s,box-shadow .15s;text-align:left;
}
.fxs-annuaire .apb-mcat__trigger:hover{border-color:#94A3B8}
.fxs-annuaire .apb-mcat__trigger[aria-expanded="true"]{border-color:#185FA5;box-shadow:0 0 0 3px rgba(24,95,165,.12)}
.fxs-annuaire .apb-mcat__label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0B2A4A;font-weight:500}
.fxs-annuaire .apb-mcat__label.is-empty{color:#64748B;font-weight:400}
.fxs-annuaire .apb-mcat__chev{flex-shrink:0;color:#64748B;transition:transform .2s}
.fxs-annuaire .apb-mcat__trigger[aria-expanded="true"] .apb-mcat__chev{transform:rotate(180deg)}

.fxs-annuaire .apb-mcat__panel{
  position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:30;background:#FFFFFF;border:1px solid #E2E6EA;border-radius:10px;box-shadow:0 12px 32px rgba(11,42,74,.12),0 2px 8px rgba(11,42,74,.06);padding:8px;max-height:340px;display:flex;flex-direction:column;overflow:hidden;
  /* v2.32.4 — min-width pour que les libellés longs (« Multi-services / Homme à tout faire »)
     restent sur une seule ligne même quand le trigger est étroit */
  min-width:300px;
}
.fxs-annuaire .apb-mcat__panel[hidden]{display:none}

.fxs-annuaire .apb-mcat__search{
  width:100%;background:#F8FAFC;border:1px solid #E2E6EA;border-radius:6px;padding:7px 10px;font-size:12.5px;color:#0B2A4A;outline:none;margin-bottom:6px;
}
.fxs-annuaire .apb-mcat__search:focus{border-color:#185FA5;background:#FFFFFF}
.fxs-annuaire .apb-mcat__search::-webkit-search-cancel-button{appearance:none}

.fxs-annuaire .apb-mcat__list{
  list-style:none;margin:0;padding:0;flex:1;overflow-y:auto;min-height:0;
}
.fxs-annuaire .apb-mcat__item{margin:0}
.fxs-annuaire .apb-mcat__item.is-hidden{display:none}
.fxs-annuaire .apb-mcat__item label{
  display:flex;align-items:center;gap:8px;padding:4px 8px;border-radius:5px;cursor:pointer;font-size:12.5px;line-height:1.35;color:#1E293B;transition:background .12s;font-weight:400;
}
.fxs-annuaire .apb-mcat__item label:hover{background:#F1F5F9}
.fxs-annuaire .apb-mcat__item input[type="checkbox"]{
  width:14px;height:14px;accent-color:#185FA5;cursor:pointer;flex-shrink:0;
}
/* v2.32.4 — Pas de bold sur l'élément coché : on garde un styling minimaliste flat,
   la coche elle-même + l'accent bleu suffisent pour signaler la sélection. */
.fxs-annuaire .apb-mcat__item input[type="checkbox"]:checked + .apb-mcat__item-name{color:#0B2A4A;font-weight:400}
.fxs-annuaire .apb-mcat__item-name{flex:1}

.fxs-annuaire .apb-mcat__footer{
  display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #F1F5F9;padding-top:8px;margin-top:8px;
}
.fxs-annuaire .apb-mcat__clear{
  background:transparent;border:none;color:#64748B;font-size:12.5px;cursor:pointer;padding:4px 6px;text-decoration:underline;
}
.fxs-annuaire .apb-mcat__clear:hover{color:#0B2A4A}
.fxs-annuaire .apb-mcat__close{
  background:linear-gradient(180deg,#185FA5,#0C447C);color:#fff;border:0;padding:7px 18px;border-radius:7px;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s;
}
.fxs-annuaire .apb-mcat__close:hover{background:linear-gradient(180deg,#1E73C8,#185FA5)}

@media (max-width:640px){
  .fxs-annuaire .apb-mcat__panel{max-height:60vh}
}
