/* FAQ Styles */
:root {
  -primary: #9E7FFF;
 -primary-light: #b9a4ff;
 -primary-dark: #7a5cd9;
 -secondary: #38bdf8;
 -accent: #f472b6;
 -background: #025373;
 -surface: #ffffff;
 -text: #171717;
 -text-secondary: #4b5563;
 -border: #e5e7eb;
 -success: #10b981;
 -warning: #f59e0b;
 -error: #ef4444;
 -radius-sm: 0.375rem;
 -radius-md: 0.5rem;
 -radius-lg: 1rem;
 -shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
 -shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
 -shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
 -transition: all 0.3s ease;
}

/* Categories Section */
.categories {
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
 /* gap: 1rem; */
  margin-bottom: 2rem;
}

.category-btn {
  background-color: var(--surface);
  color: var(--text-secondary);
 /* border: 1px solid var(--chocolate); */
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    border-color: chocolate;
    font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.category-btn:hover {
  background-color: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}

.category-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* FAQ Section */
.faq-section {
  padding: 2rem 0 4rem;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.faq-item {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.faq-question {
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.faq-question:hover {
  background-color: rgba(158, 127, 255, 0.05);
}

.faq-question h3 {
  font-family: 'MarkPro Bold', sans-serif;
  font-size: 1.1rem;
  margin: 0;
  flex: 1;
  font-weight: bold;
}

.faq-icon {
  color: var(--primary);
  font-size: 1.2rem;
  transition: var(--transition);
  margin-left: 1rem;
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-answer-content {
    padding: 20px;
    color: var(--text-secondary);
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    font-size: 18px;
    background-color: #edf1f5;
    color: #2a2b2b;
}

.faq-item.active .faq-question {
  background-color: var(--primary);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item.active .faq-icon {
  color: white;
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  height: auto;
    width: 100%;
    max-height: 120px;
}

/* Loading animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* No results */
.no-results {
  text-align: center;
  padding: 3rem;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.no-results h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.no-results p {
  color: var(--text-secondary);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .faq-answer-content {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  
  .faq-item.active .faq-answer {
    max-height: 200px;
  }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .faq-answer-content {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  
  .faq-item.active .faq-answer {
    max-height: 300px;
  }
}


/* Font face pour MarkPro Bold */
@font-face {
  font-family: 'MarkPro Bold';
  src: url('https://db.onlinewebfonts.com/t/2a9df1a307f7af10334e7185141cc953.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/*.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}*/

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-btn {
  display: inline-block;
  background-color: white;
  color: #025373;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background-color: white;
}
