.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

body {
    padding-bottom: 70px; /* Ajuste selon la hauteur réelle de la navbar */
}

.category-scroll {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
}
.category-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Pour que les liens restent sur une seule ligne */
.category-scroll .btn {
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}
.category-scroll .btn:hover {
  background-color: #dc3545;
  color: white;
}

.btn-outline-danger.active,
.btn-outline-danger.active:hover {
  background-color: #dc3545 !important;
  color: white !important;
  border-color: #dc3545 !important;
  font-weight: bold;
}
.category-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
}

.category-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Pour les boutons */
.category-scroll .btn {
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
  flex-shrink: 0;
}

/* Hover */
.category-scroll .btn:hover {
  background-color: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

/* Optionnel pour un centrage automatique */
@media (max-width: 768px) {
  .category-scroll {
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* Mobile: bouton quartier plus compact et aligné */
#toggleQuartierBtn {
    width: 100%;
    text-align: left;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Formulaire mobile masqué */
#mobileQuartierForm {
    display: none;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

#mobileQuartierForm.show {
    display: block;
}

/* Input plus lisible sur petit écran */
#mobileQuartierForm input[name="quartier"] {
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
}

/* Bouton mobile plein largeur */
#mobileQuartierForm button {
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
}

/* Navbar responsive */
/* Container fixe pour le prénom */
.marquee-container {
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
    max-width: 120px; /* ajuste selon l'espace disponible */
}

/* Texte qui défile */
.marquee-text {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 8s linear infinite;
}

/* Animation de défilement */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Option: réduire la taille sur mobile très petit */
@media (max-width: 400px) {
    .marquee-container {
        max-width: 80px;
    }
    .marquee-text {
        font-size: 0.8rem;
    }
}

/* Taille normale sur desktop */
.logo-navbar {
    height: 300px; /* augmente si besoin */
    transition: height 0.3s ease;
}

/* Taille sur mobile */
@media (max-width: 768px) {
    .logo-navbar {
        height: 50px; /* un peu plus petit sur mobile */
    }
}

/* Très petits écrans */
@media (max-width: 400px) {
    .logo-navbar {
        height: 45px;
    }
}

.categories-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch; /* scroll fluide mobile */
}

.categories-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.category-item {
  flex: 0 0 auto;
  padding: 0 1rem;
}

.scrolling-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
}

.scrolling-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.partner-logo {
    height: 60px; 
    flex-shrink: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.partner-logo:hover {
    transform: scale(1.1);
}
