  /* === DESIGN TOKENS === */
  :root {
    --pml-blue: #72958b;
    --pml-blue-dark: #5d7d73;
    --pml-blue-light: #8ba89e;
    --pml-orange: #f59921;
    --pml-orange-dark: #d97706;
    --pml-cream: #faf6f0;
    --pml-warm: #f4ede0;
    --pml-grey-50: #fafafa;
    --pml-grey-100: #f3f2f0;
    --pml-grey-200: #e6e4df;
    --pml-grey-300: #cdc9c0;
    --pml-grey-400: #97928a;
    --pml-grey-500: #6b675f;
    --pml-grey-600: #4a4740;
    --pml-grey-900: #1c1b18;
    --color-sud: #d97706;
    --color-est: #0891b2;
    --color-litt: #0d9488;
    --shadow-sm: 0 1px 2px rgba(20, 40, 71, 0.05);
    --shadow-md: 0 4px 12px rgba(20, 40, 71, 0.08);
    --shadow-lg: 0 12px 36px rgba(20, 40, 71, 0.15);
    --shadow-panel: -8px 0 32px rgba(20, 40, 71, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --font-display: 'Poppins', -apple-system, system-ui, sans-serif;
    --font-body: 'Poppins', -apple-system, system-ui, sans-serif;
  }

  /* Reset scope au plugin uniquement */
  .pml-patrimoine-app, .pml-patrimoine-app *, .pml-patrimoine-app *::before, .pml-patrimoine-app *::after {
    box-sizing: border-box;
  }

  .pml-patrimoine-app {
    font-family: var(--font-body);
    color: var(--pml-grey-900);
    background: var(--pml-cream);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  .pml-patrimoine-app h1,
  .pml-patrimoine-app h2,
  .pml-patrimoine-app h3,
  .pml-patrimoine-app h4,
  .pml-patrimoine-app p,
  .pml-patrimoine-app ul,
  .pml-patrimoine-app ol {
    margin: 0;
    padding: 0;
  }

  /* === HEADER === */
  .pml-header {
    background: linear-gradient(135deg, var(--pml-blue) 0%, var(--pml-blue-dark) 100%);
    color: white;
    padding: 56px 32px 32px;
    position: relative;
    overflow: hidden;
  }
  .pml-header::before {
    content:""; position:absolute; inset:0;
    background: radial-gradient(circle at 75% 30%, rgba(232,100,58,0.25) 0%, transparent 55%);
    pointer-events: none;
  }
  .pml-header::after {
    content:""; position:absolute; right: -120px; bottom: -120px;
    width: 280px; height: 280px;
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
  }
  .header-inner {
    max-width: 1400px; margin: 0 auto; position: relative; z-index: 1;
  }
  .breadcrumb {
    font-size: 13px; opacity: 0.6; letter-spacing: 0.04em;
    text-transform: uppercase; margin-bottom: 8px;
  }
  .pml-header h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 16px;
    font-variation-settings: "opsz" 96;
  }
  .pml-header h1 em {
    font-style: italic;
    color: var(--pml-orange);
    font-weight: 500;
  }
  .header-tagline {
    font-size: 17px; opacity: 0.85; max-width: 640px;
    font-weight: 300;
  }
  .stats-bar {
    display: flex; flex-wrap: wrap; gap: 0;
    margin-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 24px;
  }
  .stat-item {
    flex: 1; min-width: 140px;
    padding: 0 24px;
    border-right: 1px solid rgba(255,255,255,0.1);
  }
  .stat-item:first-child { padding-left: 0; }
  .stat-item:last-child { border-right: none; padding-right: 0; }
  .stat-value {
    font-family: var(--font-display);
    font-size: 36px; font-weight: 600;
    line-height: 1; letter-spacing: -0.02em;
    font-variation-settings: "opsz" 96;
    color: var(--pml-orange);
  }
  .stat-label {
    font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.08em; opacity: 0.7;
    margin-top: 6px;
  }

  /* === MAIN LAYOUT === */
  .pml-main {
    max-width: 1400px; margin: -16px auto 0;
    background: white;
    border-radius: 20px 20px 0 0;
    position: relative; z-index: 2;
    box-shadow: 0 -8px 32px rgba(20,40,71,0.06);
  }

  /* === FILTERS BAR === */
  .filters-bar {
    background: white;
    border-bottom: 1px solid var(--pml-grey-200);
    padding: 24px 32px;
    display: grid;
    grid-template-columns: 320px 1fr auto;
    gap: 20px;
    align-items: end;
    border-radius: 20px 20px 0 0;
  }
  .filter-group { display: flex; flex-direction: column; gap: 8px; }
  .filter-label {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pml-grey-500);
  }
  .search-input-wrapper {
    position: relative;
  }
  .search-input-wrapper svg {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--pml-grey-400); pointer-events: none;
    z-index: 1;
  }
  .search-input {
    width: 100%;
    padding: 12px 14px 12px 44px !important;
    border: 1.5px solid var(--pml-grey-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    background: var(--pml-grey-50);
    transition: all 0.2s;
    box-sizing: border-box;
  }
  .search-input:focus {
    outline: none;
    border-color: var(--pml-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(30,58,95,0.06);
  }
  .agency-pills {
    display: flex; gap: 8px; flex-wrap: wrap;
  }
  .agency-pill {
    padding: 9px 16px;
    border: 1.5px solid var(--pml-grey-200);
    background: white;
    border-radius: 100px;
    font-family: inherit; font-size: 13px; font-weight: 500;
    color: var(--pml-grey-600);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .agency-pill::before {
    content:""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--clr, var(--pml-grey-300));
  }
  .agency-pill:hover { border-color: var(--clr); color: var(--pml-grey-900); }
  .agency-pill.active {
    background: var(--clr); border-color: var(--clr);
    color: white;
  }
  .agency-pill.active::before { background: rgba(255,255,255,0.6); }
  .agency-pill[data-ag="all"] { --clr: var(--pml-blue); }
  .agency-pill[data-ag="AGSUD"] { --clr: var(--color-sud); }
  .agency-pill[data-ag="AGEST"] { --clr: var(--color-est); }
  .agency-pill[data-ag="AGLIT"] { --clr: var(--color-litt); }

  .results-count {
    font-family: var(--font-display);
    font-size: 24px; font-weight: 600;
    color: var(--pml-blue);
    text-align: right;
    line-height: 1;
    font-variation-settings: "opsz" 96;
  }
  .results-count small {
    display: block;
    font-family: var(--font-body);
    font-size: 11px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--pml-grey-500);
    margin-top: 4px;
  }

  /* === MAP + LIST LAYOUT === */
  .content-area {
    display: grid;
    grid-template-columns: 1fr 420px;
    height: calc(100vh - 60px);
    min-height: 700px;
  }
  #pml-map {
    width: 100%; height: 100%;
    background: var(--pml-grey-100);
  }

  /* === LIST PANEL === */
  .list-panel {
    background: var(--pml-grey-50);
    border-left: 1px solid var(--pml-grey-200);
    overflow-y: auto;
    padding: 16px;
  }
  .list-panel::-webkit-scrollbar { width: 6px; }
  .list-panel::-webkit-scrollbar-thumb {
    background: var(--pml-grey-300); border-radius: 3px;
  }
  .residence-card {
    background: white;
    border: 1px solid var(--pml-grey-200);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }
  .residence-card:hover {
    border-color: var(--pml-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }
  .residence-card.selected {
    border-color: var(--pml-blue);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
    background: linear-gradient(to right, rgba(30,58,95,0.02), white);
  }
  .residence-thumb {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--clr, var(--pml-blue)), var(--clr-dark, var(--pml-blue-dark)));
    display: flex; align-items: center; justify-content: center;
    color: white; font-family: var(--font-display); font-size: 11px; font-weight: 600;
    letter-spacing: 0.02em;
  }
  .residence-card[data-ag="AGSUD"] .residence-thumb { --clr: var(--color-sud); --clr-dark: #b35a07; }
  .residence-card[data-ag="AGEST"] .residence-thumb { --clr: var(--color-est); --clr-dark: #06647d; }
  .residence-card[data-ag="AGLIT"] .residence-thumb { --clr: var(--color-litt); --clr-dark: #0a6e63; }
  .residence-info { flex: 1; min-width: 0; }
  .residence-name {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 600;
    color: var(--pml-grey-900);
    line-height: 1.2;
    margin-bottom: 3px;
    font-variation-settings: "opsz" 30;
  }
  .residence-address {
    font-size: 12px; color: var(--pml-grey-500);
    line-height: 1.3;
  }
  .residence-meta {
    display: flex; gap: 10px; margin-top: 8px;
    font-size: 11px; color: var(--pml-grey-600);
  }
  .residence-meta span {
    display: inline-flex; align-items: center; gap: 4px;
  }
  .meta-badge {
    background: var(--pml-grey-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    color: var(--pml-grey-700);
  }

  /* === RESIDENCE DETAIL PANEL === */
  .detail-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 600px; max-width: 100%;
    background: white;
    box-shadow: var(--shadow-panel);
    z-index: 999999; /* Très haut pour passer au-dessus des boutons "back to top" du thème */
    transform: translateX(105%);
    transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .detail-panel.open { transform: translateX(0); }

  /* Décale le panneau sous la WP admin bar (la classe est sur <body>, pas <html>) */
  body.admin-bar .detail-panel { top: 32px; }
  @media (max-width: 782px) {
    body.admin-bar .detail-panel { top: 46px; }
  }

  /* Masque les boutons "retour en haut" du thème quand le panneau est ouvert */
  body.pml-no-scroll .elementor-scroll-to-top,
  body.pml-no-scroll .back-to-top,
  body.pml-no-scroll #back-to-top,
  body.pml-no-scroll #scroll-to-top,
  body.pml-no-scroll .scroll-to-top,
  body.pml-no-scroll .scrollup,
  body.pml-no-scroll [class*="ScrollToTop"],
  body.pml-no-scroll [class*="scroll-top"],
  body.pml-no-scroll [class*="back-to-top"],
  body.pml-no-scroll [class*="scrollToTop"],
  body.pml-no-scroll [aria-label*="haut"],
  body.pml-no-scroll [aria-label*="top"],
  body.pml-no-scroll [aria-label*="Top"] {
    display: none !important;
    visibility: hidden !important;
  }

  /* Et masque aussi tout élément fixé en bas-droite tagué par notre JS */
  body.pml-no-scroll [data-pml-hidden="1"] {
    display: none !important;
  }

  .detail-hero {
    height: 320px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--clr, var(--pml-blue)) 0%, var(--clr-dark, var(--pml-blue-dark)) 100%);
    position: relative;
    overflow: hidden;
  }
  .detail-hero::after {
    content:""; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(0,0,0,0.15), transparent 50%);
  }
  /* Photo de couverture */
  .detail-hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  .detail-hero.has-photo::before {
    content:""; position: absolute; inset: 0;
    background: linear-gradient(180deg,
      rgba(0,0,0,0.35) 0%,
      rgba(0,0,0,0.05) 35%,
      rgba(0,0,0,0.05) 65%,
      rgba(0,0,0,0.55) 100%);
    z-index: 1;
  }
  .detail-hero.has-photo::after { display: none; }
  .detail-hero[data-ag="AGSUD"] { --clr: var(--color-sud); --clr-dark: #b35a07; }
  .detail-hero[data-ag="AGEST"] { --clr: var(--color-est); --clr-dark: #06647d; }
  .detail-hero[data-ag="AGLIT"] { --clr: var(--color-litt); --clr-dark: #0a6e63; }

  .placeholder-icon {
    position: absolute; bottom: 20px; right: 20px;
    width: 80px; height: 80px;
    color: rgba(255,255,255,0.18);
    z-index: 1;
  }
  .detail-hero.has-photo .placeholder-icon { display: none; }

  /* Flèches navigation photos */
  .photo-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.92);
    border: none; border-radius: 50%;
    cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    color: var(--pml-grey-900);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  }
  .photo-nav svg { width: 24px; height: 24px; stroke-width: 3; }
  .photo-nav:hover {
    background: var(--pml-orange);
    color: white;
    transform: translateY(-50%) scale(1.08);
  }
  .photo-nav-prev { left: 14px; }
  .photo-nav-next { right: 68px; }

  .detail-close, .detail-agency, .detail-code { z-index: 10; }

  .detail-close {
    position: absolute; top: 14px; right: 14px;
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.92);
    border: none; border-radius: 50%;
    cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    color: var(--pml-grey-900);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  }
  .detail-close svg { width: 22px; height: 22px; stroke-width: 3; }
  .detail-close:hover {
    background: var(--pml-orange);
    color: white;
    transform: rotate(90deg);
  }

  .detail-agency {
    position: absolute; top: 20px; left: 20px;
    background: rgba(255,255,255,0.95);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--clr, var(--pml-blue));
    display: inline-flex; align-items: center; gap: 6px;
  }
  .detail-agency::before {
    content:""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--clr, var(--pml-blue));
  }
  .detail-hero[data-ag="AGSUD"] .detail-agency { --clr: var(--color-sud); }
  .detail-hero[data-ag="AGEST"] .detail-agency { --clr: var(--color-est); }
  .detail-hero[data-ag="AGLIT"] .detail-agency { --clr: var(--color-litt); }

  .detail-code {
    position: absolute; bottom: 20px; left: 20px;
    color: rgba(255,255,255,0.85);
    font-size: 11px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.08em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  }

  /* === GALERIE DE PHOTOS === */
  .gallery-strip {
    display: flex;
    gap: 8px;
    padding: 14px 28px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-strip::-webkit-scrollbar { height: 4px; }
  .gallery-strip::-webkit-scrollbar-thumb { background: var(--pml-grey-300); border-radius: 2px; }
  .gallery-thumb {
    flex-shrink: 0;
    width: 72px; height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
    background: var(--pml-grey-200);
  }
  .gallery-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .gallery-thumb:hover { transform: translateY(-2px); }
  .gallery-thumb.active {
    border-color: var(--pml-blue);
    box-shadow: 0 0 0 2px rgba(30,58,95,0.15);
  }
  .gallery-empty {
    padding: 14px 28px 0;
    font-size: 12px;
    color: var(--pml-grey-400);
    font-style: italic;
  }

  .detail-body {
    flex: 1; overflow-y: auto;
    padding: 0;
    overscroll-behavior: contain;
  }
  .detail-body::-webkit-scrollbar { width: 6px; }
  .detail-body::-webkit-scrollbar-thumb { background: var(--pml-grey-300); border-radius: 3px; }

  /* Bloque le scroll de la page derrière quand le panneau de détail est ouvert */
  body.pml-no-scroll,
  html:has(body.pml-no-scroll) {
    overflow: hidden !important;
    position: relative;
  }

  .detail-section {
    padding: 24px 28px;
    border-bottom: 1px solid var(--pml-grey-100);
  }
  .detail-section:last-child { border-bottom: none; }

  .detail-title {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 600;
    line-height: 1.15;
    color: var(--pml-grey-900);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 60;
  }
  .detail-address {
    font-size: 14px; color: var(--pml-grey-500);
    display: flex; align-items: flex-start; gap: 6px;
  }
  .detail-address svg { flex-shrink: 0; margin-top: 2px; }

  .section-heading {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--pml-grey-500);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
  }
  .section-heading::before {
    content:""; width: 16px; height: 1px; background: var(--pml-grey-300);
  }

  .stat-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  }
  .stat-cell {
    background: var(--pml-grey-50);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 1px solid var(--pml-grey-100);
  }
  .stat-cell-value {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 600;
    color: var(--pml-blue);
    line-height: 1; letter-spacing: -0.02em;
    font-variation-settings: "opsz" 60;
  }
  .stat-cell-label {
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--pml-grey-500);
    margin-top: 6px; font-weight: 500;
  }

  /* TYPOLOGIES */
  .typo-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pml-grey-100);
  }
  .typo-row:last-child { border-bottom: none; }
  .typo-label {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 600;
    color: var(--pml-grey-900);
    width: 40px; flex-shrink: 0;
  }
  .typo-bar {
    flex: 1;
    height: 8px; background: var(--pml-grey-100);
    border-radius: 100px; overflow: hidden;
    position: relative;
  }
  .typo-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pml-blue) 0%, var(--pml-blue-light) 100%);
    border-radius: 100px;
    transition: width 0.4s ease-out;
  }
  .typo-count {
    font-size: 13px; font-weight: 600;
    color: var(--pml-grey-700);
    min-width: 40px; text-align: right;
  }
  .typo-surface {
    font-size: 12px; color: var(--pml-grey-500);
    min-width: 60px; text-align: right;
  }

  /* ANNEXES */
  .annexes-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  }
  .annexe-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    background: var(--pml-grey-50);
    border-radius: var(--radius-sm);
    font-size: 13px;
  }
  .annexe-row svg {
    color: var(--pml-blue); flex-shrink: 0;
  }
  .annexe-count { font-weight: 600; }
  .annexe-label { color: var(--pml-grey-600); }

  /* POI */
  .poi-category { margin-bottom: 16px; }
  .poi-category:last-child { margin-bottom: 0; }
  .poi-cat-title {
    font-size: 13px; font-weight: 600;
    color: var(--pml-grey-900);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 6px;
  }
  .poi-cat-title svg { color: var(--pml-orange); }
  .poi-list { list-style: none; }
  .poi-item {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 4px 0 4px 24px;
    font-size: 13px;
    color: var(--pml-grey-700);
    border-bottom: 1px dotted var(--pml-grey-200);
  }
  .poi-item:last-child { border-bottom: none; }
  .poi-name {
    flex: 1; padding-right: 8px;
    line-height: 1.3;
  }
  .poi-distance {
    font-size: 11px; font-weight: 600;
    color: var(--pml-orange);
    white-space: nowrap;
    background: rgba(232,100,58,0.08);
    padding: 2px 8px;
    border-radius: 100px;
  }
  .poi-empty {
    font-size: 12px; color: var(--pml-grey-400);
    font-style: italic;
    padding: 4px 0 4px 24px;
  }

  /* OVERLAY */
  .panel-overlay {
    position: fixed; inset: 0;
    background: transparent;
    z-index: 999998;
    pointer-events: none;
  }
  .panel-overlay.show {
    pointer-events: auto;
  }

  /* === LEAFLET CUSTOMIZATIONS === */
  .leaflet-popup-content-wrapper {
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: var(--shadow-lg);
  }
  .leaflet-popup-content {
    margin: 0; padding: 16px;
    font-family: var(--font-body);
    min-width: 220px;
  }
  .popup-name {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 600;
    color: var(--pml-grey-900);
    margin-bottom: 4px;
    font-variation-settings: "opsz" 30;
  }
  .popup-meta { font-size: 12px; color: var(--pml-grey-500); margin-bottom: 8px; }
  .popup-stats {
    display: flex; gap: 8px; margin: 10px 0;
    font-size: 11px;
  }
  .popup-stats span {
    background: var(--pml-grey-100);
    padding: 3px 8px; border-radius: 4px;
  }
  .popup-cta {
    display: block; text-align: center;
    background: var(--pml-blue); color: white;
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 500;
    margin-top: 10px;
    text-decoration: none;
    cursor: pointer;
    border: none; width: 100%;
    font-family: inherit;
    transition: background 0.2s;
  }
  .popup-cta:hover { background: var(--pml-blue-dark); }

  /* Custom marker */
  .pml-marker {
    width: 32px; height: 32px;
    border-radius: 50% 50% 50% 0;
    background: var(--pml-blue);
    transform: rotate(-45deg);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .pml-marker:hover {
    transform: rotate(-45deg) scale(1.15);
  }
  .pml-marker[data-ag="AGSUD"] { background: var(--color-sud); }
  .pml-marker[data-ag="AGEST"] { background: var(--color-est); }
  .pml-marker[data-ag="AGLIT"] { background: var(--color-litt); }
  .pml-marker::after {
    content:""; position: absolute;
    width: 10px; height: 10px;
    background: white; border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Marker sélectionné : halo pulsant orange pour bien le repérer */
  .pml-marker-wrap.pml-selected { z-index: 1000 !important; }
  .pml-marker-wrap.pml-selected .pml-marker {
    background: var(--pml-orange) !important;
    border-color: white;
    box-shadow: 0 0 0 0 rgba(245,153,33,0.7), 0 4px 14px rgba(0,0,0,0.35);
    animation: pml-pulse 1.4s ease-out infinite;
  }
  @keyframes pml-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(245,153,33,0.65), 0 4px 14px rgba(0,0,0,0.35); }
    70%  { box-shadow: 0 0 0 22px rgba(245,153,33,0), 0 4px 14px rgba(0,0,0,0.35); }
    100% { box-shadow: 0 0 0 0 rgba(245,153,33,0), 0 4px 14px rgba(0,0,0,0.35); }
  }

  /* Animation "pop" one-shot quand on vient juste de sélectionner */
  .pml-marker-wrap.pml-just-selected .pml-marker {
    animation: pml-pulse 1.4s ease-out infinite, pml-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes pml-pop {
    0%   { transform: rotate(-45deg) scale(0.4); }
    60%  { transform: rotate(-45deg) scale(1.35); }
    100% { transform: rotate(-45deg) scale(1); }
  }

  /* Cluster custom */
  .marker-cluster div {
    background: var(--pml-blue) !important;
    color: white !important;
    font-family: var(--font-display);
    font-weight: 600;
    border: 3px solid white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  }
  .marker-cluster {
    background: rgba(30,58,95,0.2) !important;
  }

  /* === MOBILE === */
  @media (max-width: 900px) {
    .pml-header { padding: 32px 20px 24px; }
    .stats-bar {
      gap: 12px; padding-top: 16px;
      grid-template-columns: repeat(2, 1fr); display: grid;
    }
    .stat-item {
      padding: 0; border-right: none;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      padding-bottom: 12px;
    }
    .stat-value { font-size: 28px; }
    .filters-bar {
      grid-template-columns: 1fr;
      gap: 14px; padding: 16px 20px;
    }
    .results-count {
      text-align: left;
      font-size: 18px;
    }
    .content-area {
      grid-template-columns: 1fr;
      grid-template-rows: 50vh 1fr;
      height: calc(100vh - 60px);
    }
    .list-panel {
      border-left: none;
      border-top: 1px solid var(--pml-grey-200);
    }
    .detail-panel { width: 100%; }
    .agency-pill { font-size: 12px; padding: 8px 12px; }
  }

  /* Animations entrée */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
  .animate-in {
    animation: fadeUp 0.5s ease-out backwards;
  }
  .stat-item:nth-child(1) { animation-delay: 0.1s; }
  .stat-item:nth-child(2) { animation-delay: 0.2s; }
  .stat-item:nth-child(3) { animation-delay: 0.3s; }
  .stat-item:nth-child(4) { animation-delay: 0.4s; }

