.features {
    margin-bottom: 40px !important;
}

.feature-box {
    padding: 20px !important;
    text-align: center !important;
    margin-bottom: 0px !important
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1c1f36;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.popup h2 {
    margin-top: 0;
}

.popup p {
    margin: 10px 0;
}

/* Section FAQ avec style amélioré */
.faq-section {
  padding: 80px 0;
  background-color: var(--secondary-bg);
  position: relative;
  overflow: hidden;
}

/* Effet de fond subtil */
.faq-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom left, rgba(56, 177, 237, 0.05), transparent 60%);
  z-index: 0;
}

/* Titre de la section */
.faq-section h5 {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.faq-section h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  position: relative;
}

/* Conteneur de l'accordéon */
.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  background-color: var(--tertiary-bg);
  position: relative;
  z-index: 1;
}

/* Titre des sections de l'accordéon */
.faq-accordion-title {
  padding: 20px 25px;
  background-color: rgba(56, 177, 237, 0.1);
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-accordion-title:hover {
  background-color: rgba(56, 177, 237, 0.2);
}

/* Icône pour indiquer l'état ouvert/fermé */
.faq-accordion-title::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-accordion-title.active::after {
  content: '−';
  transform: rotate(0deg);
}

/* Contenu de la section d'accordéon */
.faq-accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  background-color: var(--tertiary-bg);
}

.faq-accordion-content.active {
  padding: 25px;
  max-height: 2000px; /* Valeur suffisamment grande pour tout contenu */
}

/* Style des questions-réponses */
.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
}

.faq-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.05rem;
  display: flex;
  align-items: flex-start;
}

.faq-question::before {
  content: '?';
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.faq-answer {
  color: var(--text-secondary);
  margin-left: 34px;
  line-height: 1.6;
}

.faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Animation lors de l'ouverture de la section */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-accordion-content.active .faq-item {
  animation: fadeIn 0.5s ease forwards;
}

/* Adaptations pour mobile */
@media (max-width: 768px) {
  .faq-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .faq-accordion-title {
    padding: 15px 20px;
    font-size: 1rem;
  }
  
  .faq-accordion-content.active {
    padding: 20px;
  }
  
  .faq-question {
    font-size: 0.95rem;
  }
}