/* ============================================================
   FAQ.CSS — Page FAQ · ZEENEO
   Styles spécifiques à la page FAQ uniquement
   ============================================================ */

/* ===== ANIMATIONS ===== */
@keyframes faqSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FAQ — HERO SECTION
   ============================================================ */
.faq-hero {
  background: linear-gradient(135deg, #0a3d1a 0%, #0f5c28 50%, #147a36 100%);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.faq-hero-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.faq-hero-decor::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 215, 96, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.faq-hero-decor::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30, 215, 96, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.faq-hero > .container {
  position: relative;
  z-index: 1;
}
.faq-hero-title {
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 12px;
}
.faq-hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
}
@media (min-width: 768px) {
  .faq-hero { padding: 56px 0 64px; }
  .faq-hero-title { font-size: 32px; }
  .faq-hero-subtitle { font-size: 16px; }
}
@media (min-width: 1024px) {
  .faq-hero { padding: 64px 0 72px; }
  .faq-hero-title { font-size: 36px; }
}

/* ============================================================
   FAQ — SEARCH BAR (inside hero)
   ============================================================ */
.faq-section .search-container {
  max-width: 600px;
  margin: 0 auto;
}
.faq-section .search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.faq-section .search-box .search-icon-svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #707070;
  pointer-events: none;
}
.faq-section .search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  color: #343030;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-section .search-input::placeholder {
  color: #b0b0b0;
  font-weight: 400;
}
.faq-section .search-input:focus {
  border-color: #1ED760;
  box-shadow: 0 0 0 4px rgba(30, 215, 96, 0.15);
}

/* ============================================================
   FAQ — MAIN CONTENT AREA
   ============================================================ */
.faq-section {
  flex: 1;
  background: #f8f9fa;
  padding: 0;
}
.faq-content-area {
  padding: 40px 0 48px;
}
.faq-container {
  max-width: 780px;
  margin: 0 auto;
}

/* ============================================================
   FAQ — CATEGORY TITLES
   ============================================================ */
.faq-category {
  margin-bottom: 32px;
  animation: faqSlideUp 0.4s ease both;
}
.faq-category:nth-child(2) { animation-delay: 0.05s; }
.faq-category:nth-child(3) { animation-delay: 0.1s; }
.faq-category:nth-child(4) { animation-delay: 0.15s; }
.faq-category:nth-child(5) { animation-delay: 0.2s; }
.faq-category:nth-child(6) { animation-delay: 0.25s; }

.category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #1ED760;
  border-radius: 0 10px 10px 0;
  font-weight: 700;
  font-size: 16px;
  color: #0a3d1a;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.category-title .cat-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #dff9e9;
  color: #1ED760;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-title .cat-icon svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   FAQ — ACCORDION ITEMS
   ============================================================ */
.faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
  border-color: rgba(30, 215, 96, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #343030;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.45;
}
.faq-question:hover {
  background: #f8f9fa;
}
.faq-question.active {
  color: #0a3d1a;
  background: #dff9e9;
}
.faq-question .q-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f8f9fa;
  color: #1ED760;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}
.faq-question.active .q-chevron {
  transform: rotate(180deg);
  background: #1ED760;
  color: #ffffff;
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid #e0e0e0;
  animation: fadeIn 0.25s ease;
}
.faq-answer.show {
  display: block;
}
.faq-answer p {
  font-size: 14px;
  color: #707070;
  line-height: 1.7;
  margin-bottom: 12px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-answer ul {
  margin: 0 0 12px 0;
  padding: 0;
  list-style: none;
}
.faq-answer ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #707070;
  line-height: 1.65;
}
.faq-answer ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1ED760;
}
.faq-answer ul li:last-child {
  margin-bottom: 0;
}

/* ============================================================
   FAQ — CONTACT SUPPORT BLOCK
   ============================================================ */
.contact-support {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}
.contact-support::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0a3d1a, #17B550, #1ED760);
}
.contact-support .support-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dff9e9;
  color: #1ED760;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.contact-support p {
  font-size: 15px;
  color: #343030;
  line-height: 1.6;
  margin-bottom: 6px;
}
.contact-support p:first-of-type {
  font-weight: 700;
  font-size: 17px;
  color: #343030;
}
.contact-support p:last-of-type {
  margin-bottom: 0;
}
.contact-support .email {
  font-weight: 700;
  color: #1ED760;
  transition: color 0.2s ease;
}
.contact-support .email:hover {
  color: #17B550;
}

/* ============================================================
   FAQ — BACK TO HOME LINK
   ============================================================ */
.back-to-home {
  text-align: center;
  margin-top: 32px;
  padding-bottom: 8px;
}
.back-to-home a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1ED760;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1.5px solid #1ED760;
  transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease;
}
.back-to-home a:hover {
  background: #1ED760;
  color: #ffffff;
  gap: 12px;
  text-decoration: none;
}
.back-to-home a svg {
  flex-shrink: 0;
}

/* ============================================================
   FAQ — NO RESULTS MESSAGE (generated by JS)
   ============================================================ */
.no-results-message {
  text-align: center;
  padding: 32px 24px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.no-results-message p {
  font-size: 14px;
  color: #707070;
  line-height: 1.6;
  margin-bottom: 8px;
}
.no-results-message p:last-child { margin-bottom: 0; }
.no-results-message a {
  color: #1ED760;
  font-weight: 600;
}
.no-results-message a:hover {
  color: #17B550;
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .faq-content-area { padding: 28px 0 36px; }
  .faq-container { padding: 0; }
  .faq-category { margin-bottom: 24px; }
  .category-title {
    font-size: 15px;
    padding: 12px 16px;
    gap: 10px;
  }
  .category-title .cat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .category-title .cat-icon svg {
    width: 16px;
    height: 16px;
  }
  .faq-question {
    font-size: 14px;
    padding: 14px 16px;
    gap: 12px;
  }
  .faq-question .q-chevron {
    width: 26px;
    height: 26px;
  }
  .faq-answer { padding: 0 16px 16px; }
  .faq-answer p { font-size: 14px; }
  .contact-support {
    padding: 24px 16px;
    margin-top: 32px;
  }
  .contact-support p:first-of-type { font-size: 16px; }
  .contact-support .support-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }
  .back-to-home { margin-top: 24px; }
}

@media (max-width: 480px) {
  .faq-hero { padding: 36px 0 44px; }
  .faq-hero-title { font-size: 22px; }
  .faq-hero-subtitle { font-size: 14px; margin-bottom: 24px; }
  .faq-section .search-input { padding: 14px 16px 14px 48px; font-size: 14px; }
  .faq-section .search-box .search-icon-svg { left: 16px; }
  .category-title { font-size: 14px; padding: 11px 14px; }
  .faq-question { font-size: 13px; padding: 12px 14px; }
  .faq-answer { padding: 0 14px 14px; }
  .faq-answer p, .faq-answer ul li { font-size: 13px; }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .faq-category,
  .faq-answer,
  .faq-question .q-chevron {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
