/* -------------------- */
/* STYLE GLOBAL */
/* -------------------- */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #222;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f8f9fc;
}

/* -------------------- */
/* HEADER */
/* -------------------- */
header {
  background: linear-gradient(135deg, #007bff, #0056d6);
  color: white;
  text-align: center;
  padding: 1.5rem;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.heart {
  font-size: 2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

header h1 {
  margin: 0;
}

header .solidiz {
  color: #bfe0ff;
}

header p {
  margin-top: 0.4rem;
  font-size: 1rem;
}

/* -------------------- */
/* CONTENT (liste + carte) */
/* -------------------- */
.content {
  display: flex;
  flex: 1;
  height: calc(100vh - 160px);
}

#sidebar {
  width: 30%;
  background: #f0f6ff;
  overflow-y: auto;
  padding: 1rem;
  box-shadow: inset -2px 0 5px rgba(0,0,0,0.1);
}

#sidebar input {
  width: 100%;
  padding: 0.7rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
}

#point-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#point-list li {
  background: white;
  margin-bottom: 0.8rem;
  border-radius: 8px;
  padding: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 4px solid transparent;
}

#point-list li:hover {
  background: #e9f1ff;
  border-left: 4px solid #007bff;
}

#point-list h4 {
  margin: 0;
  color: #007bff;
  font-size: 1rem;
}

#point-list p {
  margin: 4px 0;
  font-size: 0.9rem;
}

#point-list span {
  font-size: 0.8rem;
  color: #555;
  display: block;
  margin-top: 0.4rem;
}

/* -------------------- */
/* MAP */
#map {
  flex: 1;
}

.custom-icon {
  text-align: center;
  font-size: 28px;
}

/* -------------------- */
/* FOOTER */
footer {
  background-color: #0056d6;
  color: white;
  text-align: center;
  padding: 0.8rem;
  font-size: 0.9rem;
}

/* -------------------- */
/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .content {
    flex-direction: column; /* carte en haut, liste en bas */
  }

  #map {
    height: 80vh; /* carte plus grande */
    order: 1;
  }

  #sidebar {
    width: 100%;
    height: 20vh; /* liste en bas */
    order: 2;
    box-shadow: none;
    overflow-y: auto;
  }

  #point-list li {
    font-size: 0.9rem;
  }

  .leaflet-popup-content {
    max-width: 220px; /* popup adaptée aux écrans mobiles */
    word-wrap: break-word;
  }
  
}
