/* Styles pour la section FAQ */
/* Correction spécifique pour le menu mobile sur la page FAQ */
@media (max-width: 768px) {
  /* Réinitialiser les styles problématiques */
  .dropdown-menu {
    display: none !important; /* Forcé pour surcharger tous les autres styles */
    transition: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  
  .dropdown.active .dropdown-menu {
    display: block !important; /* Ceci est crucial - affichage forcé quand actif */
    padding: 0.5rem 0 !important;
    border-left: 3px solid var(--primary) !important;
    background-color: #f7f7f7 !important;
  }
  
  /* S'assurer que les éléments li des sous-menus sont correctement stylés */
  .dropdown-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .dropdown-menu a {
    display: block !important;
    padding: 0.7rem 1rem !important;
    color: var(--dark) !important;
  }
}

.faq-section {
  padding: 5rem 0;
  background-color: #f5f5f5;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.faq-tab {
  padding: 0.8rem 1.5rem;
  margin: 0 0.5rem 1rem;
  background-color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-tab.active {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.faq-tab:hover:not(.active) {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.faq-category {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: none;
}

.faq-category.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.faq-category-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--primary);
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
  padding: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 1rem;
}

.faq-answer.active {
  max-height: 1000px; /* Assez grand pour contenir tout le contenu */
  padding: 0 1rem 1rem;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.faq-answer a:hover {
  color: #3e8e41;
}

.faq-answer ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.faq-answer li {
  margin-bottom: 0.5rem;
}

.faq-search {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.faq-search-input {
  width: 100%;
  max-width: 600px;
  padding: 1rem 1.5rem;
  border: 2px solid #eee;
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-no-results {
  text-align: center;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 10px;
  margin-top: 2rem;
}

.faq-highlighted {
  background-color: rgba(76, 175, 80, 0.2);
  padding: 0 3px;
  border-radius: 3px;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .faq-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .faq-tab {
    width: 80%;
    text-align: center;
    margin: 0.5rem 0;
  }
  
  .faq-category {
    padding: 1.5rem;
  }
  
  .faq-question {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

}