#k-carte-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "controls controls"
      "map      panel";
    height: 720px; background: #06000e;
    border: 1px solid rgba(110,193,228,.15);
    border-radius: 4px; overflow: hidden;
    position: relative;
}
#k-carte-controls { grid-area: controls; }
#k-carte-map { grid-area: map; height: 100%; width: 100%; min-height: 0; }
#k-carte-panel { grid-area: panel; min-height: 0; }
.leaflet-container { background: #06000e !important; }
.k-marker {
    width: var(--ms); height: var(--ms);
    background: var(--mc); border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4); cursor: pointer;
    transition: transform .15s; display: flex;
    align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #06000e;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 0 12px var(--mc);
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}
.k-marker:hover { transform: scale(1.4); z-index: 999; }
.k-marker.is-featured {
    z-index: 800 !important;
    box-shadow: 0 0 0 3px rgba(232,121,154,0.55), 0 0 22px #e87a9a !important;
    animation: kn-featured-pulse 2.2s ease-in-out infinite;
}
@keyframes kn-featured-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(232,121,154,0.55), 0 0 22px #e87a9a; }
    50%      { box-shadow: 0 0 0 6px rgba(232,121,154,0.25), 0 0 30px #e87a9a; }
}
#k-carte-panel {
    background: #0a0416;
    border-left: 1px solid rgba(110,193,228,.12);
    overflow-y: auto; padding: 24px; transition: transform .3s;
}
#k-carte-panel.k-carte-panel--hidden { transform: translateX(100%); }
#k-carte-close {
    background: none; border: none;
    color: rgba(255,255,255,.3); font-size: 22px;
    cursor: pointer; float: right;
}
.k-c-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.k-c-thumb { width: 72px; height: 72px; border-radius: 3px; object-fit: cover; }
.k-c-initiale {
    width: 72px; height: 72px; background: #1a0838; border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font: 400 36px Georgia, serif; color: rgba(110,193,228,.2);
}
.k-c-nom { font: 400 17px Georgia, serif; color: #fff; margin-bottom: 4px; }
.k-c-femme { color: #e87a9a; margin-left: 6px; }
.k-c-meta {
    font-size: 11px; color: rgba(255,255,255,.35);
    text-transform: uppercase; letter-spacing: 1px;
}
.k-c-bio { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.k-c-video iframe { width: 100%; aspect-ratio: 16/9; border-radius: 3px; margin-bottom: 12px; border: 0; }
.k-c-link {
    font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: #6EC1E4;
    display: block; text-align: right; text-decoration: none;
}
@media (max-width: 768px) {
    #k-carte-wrapper {
      grid-template-columns: 1fr;
      grid-template-rows: auto 380px auto;
      grid-template-areas:
        "controls"
        "map"
        "panel";
      height: auto;
    }
    #k-carte-panel.k-carte-panel--hidden { display: none; }
}
/* ═══════════════════════════════════════════════════════
   CARTE SONORE — Clusters
═══════════════════════════════════════════════════════ */

.k-marker.is-cluster {
  border-width: 2.5px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background: var(--mc) !important;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.4), 0 0 16px var(--mc) !important;
  position: relative;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.k-marker.is-cluster span {
  font-size: 1em;
  line-height: 1;
}
.k-marker.is-cluster::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--mc);
  opacity: 0.35;
  animation: kn-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes kn-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 0.1;  transform: scale(1.2); }
}

/* ─── Liste cluster dans le panel ─── */
.k-c-cluster-head {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.k-c-cluster-eyebrow {
  font-family: 'Poppins', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: rgba(110,193,228,0.7) !important;
  margin: 0 0 8px !important;
}
.k-c-cluster-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
}
.k-c-cluster-femmes {
  font-family: 'Manrope', sans-serif !important;
  font-size: 13px !important;
  color: rgba(255,255,255,0.55) !important;
  margin: 0 !important;
}
.k-c-cluster-femmes strong {
  color: #e87a9a;
  font-weight: 600;
}

.k-c-cluster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.k-c-cluster-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px;
  cursor: pointer;
  transition: all .2s;
}
.k-c-cluster-item:hover {
  background: rgba(110,193,228,0.08);
  border-color: rgba(110,193,228,0.3);
  transform: translateX(2px);
}
.k-c-cluster-thumb {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #1a0838;
  display: flex; align-items: center; justify-content: center;
}
.k-c-cluster-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.k-c-cluster-initial {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--mc, #6EC1E4);
}
.k-c-cluster-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.k-c-cluster-nom {
  font-family: 'Manrope', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.k-c-cluster-femme {
  margin-left: 4px;
  color: #e87a9a;
  font-size: 12px;
  font-weight: 600;
}
.k-c-cluster-period {
  font-family: 'Poppins', sans-serif !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.4) !important;
}
.k-c-cluster-arrow {
  color: rgba(255,255,255,0.3);
  font-size: 16px;
  transition: color .2s, transform .2s;
}
.k-c-cluster-item:hover .k-c-cluster-arrow {
  color: #6EC1E4;
  transform: translateX(3px);
}

/* Bouton retour à la liste */
.k-c-back {
  display: inline-block;
  background: none;
  border: 1px solid rgba(110,193,228,0.3);
  border-radius: 3px;
  padding: 6px 12px;
  color: #6EC1E4 !important;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 18px;
  transition: all .2s;
}
.k-c-back:hover {
  background: rgba(110,193,228,0.1);
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════
   CARTE SONORE v2 — Mini-player audio in situ (2026-05-17)
   ═══════════════════════════════════════════════════════════ */

.k-marker.has-audio {
  box-shadow: 0 0 0 2px rgba(232,200,122,0.5), 0 0 14px -2px rgba(232,200,122,0.4);
}
.k-marker.has-audio::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px dashed rgba(232,200,122,0.6);
  animation: kn-marker-spin 14s linear infinite;
  pointer-events: none;
}
@keyframes kn-marker-spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }
.k-marker.is-playing {
  animation: kn-marker-pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(232,200,122,0.7), 0 0 22px 4px rgba(232,200,122,0.5) !important;
  z-index: 1000 !important;
}
@keyframes kn-marker-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }

.k-c-works {
  margin: 20px 0 12px;
  padding: 16px;
  background: rgba(232,200,122,0.04);
  border: 1px solid rgba(232,200,122,0.18);
  border-radius: 6px;
}
.k-c-works-label {
  margin: 0 0 12px;
  font: 700 10px/1 'Poppins',sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e8c87a;
}
.k-c-works-list { list-style:none; margin:0; padding:0; max-height:280px; overflow-y:auto; }
.k-c-works-list::-webkit-scrollbar { width:6px; }
.k-c-works-list::-webkit-scrollbar-thumb { background:rgba(232,200,122,0.4); border-radius:3px; }
.k-c-work {
  display:flex; align-items:center; gap:10px;
  padding:8px 6px; border-radius:4px; cursor:pointer;
  transition: background .2s, transform .2s;
}
.k-c-work:hover { background: rgba(232,200,122,0.08); transform: translateX(2px); }
.k-c-work.is-playing { background: rgba(232,200,122,0.15); box-shadow: inset 3px 0 0 #e8c87a; }
.k-c-work-play {
  flex-shrink:0; width:30px; height:30px;
  display:inline-flex; align-items:center; justify-content:center;
  border: 1px solid rgba(232,200,122,0.45);
  background: rgba(232,200,122,0.12);
  color: #e8c87a;
  border-radius: 50%;
  font-size: 11px; cursor: pointer;
  transition: all .2s;
}
.k-c-work:hover .k-c-work-play { background:#e8c87a; color:#0a0318; transform:scale(1.05); }
.k-c-work.is-playing .k-c-work-play { background:#e8c87a; color:#0a0318; animation: kn-pulse-gold 1.4s ease-in-out infinite; }
@keyframes kn-pulse-gold {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,200,122,0.6); }
  50%     { box-shadow: 0 0 0 8px rgba(232,200,122,0); }
}
.k-c-work-info { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.k-c-work-title { font:500 13px/1.3 'Manrope',sans-serif; color: rgba(255,255,255,0.92); }
.k-c-work-interp { font:italic 400 11px 'Manrope',sans-serif; color: rgba(255,255,255,0.5); }
.k-c-no-audio {
  margin:16px 0; padding:14px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  font-style: italic; font-size: 13px;
}
.k-c-cluster-audiobadge {
  margin-left: 8px;
  padding: 1px 6px;
  background: rgba(232,200,122,0.15);
  color: #e8c87a;
  font-size: 10px; font-weight: 700;
  border-radius: 999px;
}

/* ─── MINI PLAYER STICKY ─── */
#k-carte-player {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: rgba(10,3,24,0.92);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(232,200,122,0.25);
  border-radius: 12px;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,0.6), 0 0 30px -10px rgba(232,200,122,0.3);
  z-index: 999;
  max-width: 90vw;
  transition: opacity .3s, transform .35s cubic-bezier(.16,1,.3,1);
}
#k-carte-player.k-carte-player--hidden {
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 30px);
}
#k-player-yt {
  flex-shrink:0; width:60px; height:60px;
  border-radius:6px; overflow:hidden; background:#000;
}
#k-player-yt iframe {
  width:160px !important; height:90px !important;
  margin-top:-15px; margin-left:-50px;
  pointer-events:none;
}
.k-player-info { display:flex; align-items:center; gap:12px; min-width:0; max-width:320px; }
.k-player-eq {
  display:inline-flex; align-items:flex-end; gap:2px;
  height:18px; width:14px; flex-shrink:0;
}
.k-player-eq span {
  display:block; width:3px;
  background: linear-gradient(180deg, #e8c87a, #c9a84c);
  border-radius:2px;
  animation: kn-eq 1s ease-in-out infinite;
}
.k-player-eq span:nth-child(1) { height:30%; animation-delay:0s; }
.k-player-eq span:nth-child(2) { height:70%; animation-delay:.2s; }
.k-player-eq span:nth-child(3) { height:50%; animation-delay:.4s; }
@keyframes kn-eq { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(0.4)} }
.k-player-meta { display:flex; flex-direction:column; min-width:0; }
.k-player-work {
  font:600 13px 'Manrope',sans-serif; color:#fff;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.k-player-comp {
  font:600 10px 'Poppins',sans-serif;
  letter-spacing:1.5px; text-transform:uppercase;
  color:#e8c87a;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.k-player-actions { display:flex; gap:6px; flex-shrink:0; }
.k-player-btn {
  width:32px; height:32px;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color:#fff; border-radius:50%;
  cursor:pointer; font-size:12px;
  transition: all .2s;
}
.k-player-btn:hover { background:#e8c87a; border-color:#e8c87a; color:#0a0318; transform:scale(1.05); }

@media (max-width:720px) {
  #k-carte-player { bottom:12px; padding:8px 10px; gap:10px; }
  #k-player-yt { width:44px; height:44px; }
  #k-player-yt iframe { margin-top:-23px; margin-left:-58px; }
  .k-player-info { max-width:180px; }
  .k-player-work { font-size:12px; }
}

/* ═══════════════════════════════════════════════════════════
   CARTE v3 — Filtres + Timeline + Surprise (2026-05-19)
   ═══════════════════════════════════════════════════════════ */
#k-carte-controls {
  position: relative;
  z-index: 400;
  padding: 14px 18px 12px;
  background: rgba(13,0,22,0.85);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(232,200,122,0.15);
}
.k-controls-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.k-controls-timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}
.k-ctrl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  transition: all .2s;
}
.k-ctrl-chip:hover {
  border-color: rgba(232,200,122,0.4);
  color: #fff;
  background: rgba(232,200,122,0.06);
}
.k-ctrl-chip.is-active {
  background: rgba(232,200,122,0.18);
  border-color: rgba(232,200,122,0.55);
  color: #e8c87a;
  font-weight: 600;
}
.k-ctrl-surprise {
  background: linear-gradient(135deg, #e87a9a, #c45070) !important;
  border-color: transparent !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  box-shadow: 0 3px 12px -2px rgba(232,122,154,0.4);
}
.k-ctrl-surprise:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px -2px rgba(232,122,154,0.6);
  color: #fff !important;
}
.k-ctrl-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.12);
  margin: 0 6px;
}
.k-ctrl-label {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-right: 4px;
}
.k-tl-label { font-weight: 600; color: rgba(232,200,122,0.85); letter-spacing: 1px; text-transform: uppercase; font-size: 10px; }
.k-tl-min, .k-tl-max {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #e8c87a;
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: center;
}
.k-controls-timeline input[type="range"] {
  flex: 1;
  min-width: 100px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: linear-gradient(90deg, rgba(110,193,228,0.2), rgba(232,200,122,0.3));
  border-radius: 2px;
  outline: none;
}
.k-controls-timeline input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: #e8c87a;
  border: 2px solid #0d0016;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(232,200,122,0.5);
}
.k-controls-timeline input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  background: #e8c87a;
  border: 2px solid #0d0016;
  border-radius: 50%;
  cursor: pointer;
}
.k-tl-count {
  margin-left: auto;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 720px) {
  #k-carte-controls { padding: 10px 12px; }
  .k-controls-row { gap: 6px; }
  .k-ctrl-chip { padding: 5px 10px; font-size: 11px; }
  .k-ctrl-sep { display: none; }
  .k-tl-count { width: 100%; margin: 4px 0 0; }
}

/* ─── Contrôle zoom Leaflet — thème sombre + offset header fixe ─── */
.leaflet-top.leaflet-left .leaflet-control-zoom { margin-top: 52px !important; }
.leaflet-control-zoom {
  border: 1px solid rgba(110,193,228,.25) !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.5) !important;
}
.leaflet-control-zoom a {
  background: rgba(10,3,24,.92) !important;
  color: #6EC1E4 !important;
  border-bottom: 1px solid rgba(110,193,228,.15) !important;
  width: 32px !important; height: 32px !important;
  line-height: 32px !important; font-size: 18px !important;
}
.leaflet-control-zoom a:hover { background: rgba(110,193,228,.18) !important; color: #fff !important; }
.leaflet-control-zoom a:last-child { border-bottom: none !important; }
