h1,h2,h3,h4,h5,h6{
 color: #852b23da;
}
.navbar-brand,
.nav-link {
  color: #438EB9 !important;
}

.navbar {
  height: 70px;
}
.navbar .nav-link:hover {
  color: #1f7cb1 !important; /* Bleu de ta charte */
}
body, html {
      height: 100%;
      margin: 0;
      overflow: hidden;
      padding: 0;
 }
#dashboard {
  display: grid;
  display: flex;
  flex-direction: row;
  height: calc(100vh - 70px); /* Ajuste selon la hauteur de ta navbar */
  overflow: hidden;
}
#map {
    flex: 1;
  height: 100%;
}

#statsPanel {
   width: 550px;
  padding: 20px;
  background-color: #f8f9fa;
  overflow-y: auto;
  border-left: 1px solid #dee2e6;
}

#statsPanel {
  background-color: #f9f9f9;
  padding: 20px;
  overflow-y: auto;
  border-left: 1px solid #ccc;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.stat-card h6 {
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #438EB9;
}
.custom-search-btn {
  margin-top: 80px; /* Pour qu’il soit bien placé sous les boutons + et - */
  margin-left: 5px;
}

.custom-search-btn button {
  width: 40px;
  height: 40px;
  font-size: 20px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
}

.custom-search-btn button:hover {
  background-color: #f0f0f0;
  transition: 0.3s ease;
}
.stat-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}
.stat-value {
  font-size: 1.5rem;
}
.navbar-text {
  display: inline;
  color: #438EB9;
}
.barriere-item {
  background-color: #f8f9fa;
  border-left: 4px solid #438EB9;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.3s ease;
}

.barriere-item:hover {
  background-color: #e9f1f7;
}

.barriere-name {
  font-size: 0.95rem;
  color: #333;
}

.badge-count {
  background-color: #438EB9;
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 1.2rem;
  min-width: 50px;
  text-align: center;
  margin : 0 50px;
}

/* Sur tablette et téléphone, on cache le texte */
@media (max-width: 1000px) {
  .navbar .navbar-brand,
  .navbar .nav-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    min-width: 60px;
  }

  /* On cache les textes (hors icône) */
  .navbar .navbar-brand span,
  .navbar .nav-link span {
    display: none !important;
  }

  .navbar .navbar-brand img,
  .navbar .nav-link img {
    width: 50px;
    height: auto;
    margin: 0 auto !important;
  }

    #dashboard {
    flex-direction: column;
  }

  #map {
    width: 100%;
    height: 50vh; /* Moitié écran */
  }

  #statsPanel {
    width: 100%;
    height: 50vh; /* Autre moitié */
    border-left: none;
    border-top: 1px solid #dee2e6;
  }

  .stat-card {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .vr {
    display: none; /* On cache la barre verticale */
  }
}

@media (max-width: 768px) {

  #map {
    flex: 1;
    height: 100%;
    min-height: 300px; /* Assure une hauteur suffisante sur petits écrans */
  }

  #statsPanel {
    height: auto;
  }

  .stat-card {
    flex-direction: column;
    gap: 1rem;
  }

  .vr {
    display: none;
  }
}