@media (min-width: 768px) {

  .implantations-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
  }

  .carte-container {
    width: 60%;
    position: sticky;
    top: 100px; /* Ajuste selon la hauteur réelle de ton header */
    height: fit-content;
  }

  .implantations-centres {
    width: 40%;
    position: sticky;
    top: 100px; /* Même valeur que la carte */
    height: calc(72vh); /* Même hauteur que la carte */
    display: flex;
    flex-direction: column;
  }

  .search-sticky {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
    padding: 0.5rem 0;
  }

  .liste-scroll {
    flex: 1;
    overflow-y: auto;
  }
}
/* ------------------ MOBILE ------------------ */
@media (max-width: 767px) {

  .carte-container {
    position: relative;
    width: 100%;
    height: 37vh;
    z-index: 0;
  }

  #map {
    height: 100%;
  }

  .implantations-centres {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(3px);
    margin-top: 0.5rem;
    padding-top: 1rem;
    max-height: calc(100vh - 45vh - 60px);
    overflow-y: auto;
  }

  .search-sticky {
    position: sticky;
    top: 0;
    z-index: 2;
    background: white;
    padding: 0.5rem 0;
  }
}
