.background-card {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.card {
  margin-bottom: 10px; /* Ajoute de l'espace en dessous de chaque carte */
}

.highlight-card {
    background-color: rgba(255, 255, 0, 0.5); /* Fond jaune avec 50% de transparence */
}


.jumbotron {
  background-color: #e9ecef;
}


.google-map-placeholder {
  background-color: #f0f0f0;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
  font-size: 20px;
  border: 1px solid #ddd;
}


.social-icons i {
  font-size: 24px; /* Augmente la taille de l'icône */
  color: #007bff; /* Change la couleur de l'icône en bleu */
  margin-right: 10px; /* Ajoute un espace entre les icônes */
}


.btn-primary {
  margin-bottom: 0.5rem; /* Ajoute un espace en bas de chaque bouton */
}



.navbar .btn-primary {
  margin-bottom: 0;
}


.custom-jumbotron {
  padding-top: 10px;
  padding-bottom: 1px;
}


.h1listing {
  font-size: 1.5rem;
}

.navbar-nav .nav-item {
  margin-left: 10px; /* Adjust as needed for desired spacing */
}

/* ============================================
   HEADER REFONTE - Styles pour la navigation
   ============================================ */

/* Barre de recherche avec icône */
.search-wrapper {
  position: relative;
  display: inline-block;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  z-index: 1;
  pointer-events: none;
}

.search-input {
  padding-left: 40px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 400px;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

/* Ajustements pour la barre de recherche dans la navbar */
.navbar-nav .nav-item .search-wrapper {
  margin-left: 10px;
}

/* Mobile search container */
.mobile-search-container {
  padding: 12px 0;
}

.mobile-search-container .search-wrapper {
  width: 100%;
}

.mobile-search-container .search-input {
  max-width: 100%;
  width: 100%;
}

/* Hiérarchie des boutons CTA */
.navbar-cta-primary {
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
}

.navbar-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar-cta-secondary {
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
  border-width: 2px;
}

.navbar-cta-secondary:hover {
  background-color: rgba(25, 135, 84, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(25, 135, 84, 0.2);
}

/* Menu latéral mobile */
.mobile-side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: #212529;
  z-index: 1050;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-side-menu.active {
  right: 0;
}

.mobile-side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1049;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-side-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-side-menu-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-side-menu-header h5 {
  color: white;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.mobile-side-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.mobile-side-menu-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
}

.mobile-menu-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding-left: 2rem;
}

.mobile-menu-link.btn-link {
  color: rgba(255, 255, 255, 0.8);
}

.mobile-menu-link.btn-link:hover {
  color: white;
}

/* Ajustements responsive pour les boutons */
@media (max-width: 767.98px) {
  .navbar-cta-primary {
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
}

/* Amélioration de l'espacement dans la navbar */
.navbar {
  padding: 0.75rem 1rem;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Masquer le collapse Bootstrap sur mobile très petit pour utiliser le menu latéral */
@media (max-width: 767.98px) {
  #navbarNav.collapse {
    display: none !important;
  }
  
  #navbarNav.collapse.show {
    display: none !important;
  }
}

/* Styles for the map overlay and popup */
.map-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}


.map-popup {
  background: white;
  border-radius: 10px;
  width: 90%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  position: relative;
}


.map-popup #close-map-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1;
}


.d-none {
  display: none;
}


@media (min-width: 768px) {
  .map-overlay {
    position: sticky !important;
    top: 10px;
    margin-bottom: 1rem;
    height: 90vh;
    overflow: hidden;
    background: #fff;
  }


  .map-popup {
    width: 100%;
    max-width: none;
  }


  .map-popup #close-map-btn {
    display: none;
  }


  .d-none {
    display: block !important;
  }
}
