
    /* Liens dans le header et le footer */
    header a,
    footer a {
      color: white !important;
      text-decoration: none;
      transition: color 0.3s ease;
    }
    
    footer a .image-wrapper:hover{
      border-radius: 50px;
      color: #ff5704 !important;
    }
    header a:hover,
    footer a:hover {
      color: #ff5704 !important;
    }


    body {
      font-family: 'Roboto', sans-serif;
    }

    .search-wrapper {
      position: relative;
      width: 100%;
    }

    .search-wrapper input {
      height: 40px;
      padding-left: 2.5rem;
    }

    .search-wrapper .search-icon {
      position: absolute;
      top: 50%;
      left: 10px;
      transform: translateY(-50%);
      color: #999;
      font-size: 1.2rem;
      z-index: 2;
    }

    #search-container {
      position: relative;
    }

    #search-results {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: rgba(255, 255, 255, 0.95);
      z-index: 1050; /* pour être sûr de passer devant */
      border-radius: 10px;
      box-shadow: 0 8px 16px rgba(0,0,0,0.2);
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    #search-results.show {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }

    .search-card {
      background: #fff;
      padding: 15px;
      margin-bottom: 10px;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      transition: all 0.2s ease;
    }
    .search-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    }
    .search-card img {
      max-width: 100%;
      border-radius: 8px;
      margin-top: 10px;
    }

    .spinner {
      border: 4px solid rgba(0,0,0,0.1);
      border-top: 4px solid #09f;
      border-radius: 50%;
      width: 36px;
      height: 36px;
      animation: spin 1s linear infinite;
      margin: auto;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Dark mode */
    @media (prefers-color-scheme: dark) {
      body {
        background-color: #121212;
        color: #e0e0e0;
      }
      header, nav {
        background-color: #1e1e1e !important;
      }
      footer {
        background-color: black !important;
      }
      .search-card {
        background: #1e1e1e;
        color: #e0e0e0;
        border: 1px solid #333;
      }
      .search-wrapper input {
        background: #2c2c2c;
        color: #fff;
        border-color: #444;
        height: 40px;
        padding-left: 2.5rem; /* espace pour la loupe */
      }
      .search-wrapper .search-icon {
        color: #ccc;
      }
      #search-results {
        background: rgba(30, 30, 30, 0.95);
      }
      a {
        color: #90caf9;
      }
      a:hover {
        color: #42a5f5;
      }
    }

    .image-wrapper {
      position: relative;
      display: inline-block;
      width: 70px;
      height: 70px;
      border-radius: 8px;
      overflow: hidden;
    }

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* Voile orange au survol */
.image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 87, 4, 0.5); /* Orange à 50% */
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .mobile-overlay-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2;
    background-color: rgb(32, 32, 32);
  }
  footer {
    flex-direction: column !important;
    align-items: center; /* Centrer horizontalement les adresses */
    gap: 1rem; /* Espacement entre les adresses */
  }
  #adresses {
    flex-direction: column !important;
    align-items: center; /* Centrer horizontalement les adresses */
    gap: 1rem; /* Espacement entre les adresses */
  }
}

@media (min-width: 800px) {
    .navbar-expand-custom .navbar-toggler {
        display: none;
    }
    .navbar-expand-custom .navbar-collapse {
        display: flex !important; /* Override Bootstrap's collapse */
        flex-basis: auto; /* Ensure it takes up space */
    }
    .navbar-expand-custom .navbar-collapse .navbar-nav {
        flex-direction: row !important;
    }
}

@media (max-width: 799.98px) {
    .navbar-expand-custom .navbar-toggler {
        display: block; /* Ensure it's visible below 800px */
    }
    .navbar-expand-custom .navbar-collapse.collapse:not(.show) {
        display: none; /* Hide collapsed content */
    }
}
  