/* ==========================================================================
   FEUILLE DE STYLE DÉDIÉE : SECTION FAQ MICROSOFT OFFICE (ÉTAPE 11)
   Design épuré, accordéon fluide, filtres par catégorie, accessibilité ARIA
   ========================================================================== */

:root {
  --faq-bg: #FFFFFF;
  --faq-bg-alt: #F8FAFC;
  --faq-border: #E2E8F0;
  --faq-border-active: #3B82F6;
  --faq-text-main: #0F172A;
  --faq-text-muted: #64748B;
  --faq-text-body: #334155;
  --faq-primary: #2563EB;
  --faq-primary-hover: #1D4ED8;
  --faq-accent: #38BDF8;
  --faq-badge-bg: #EFF6FF;
  --faq-badge-border: #BFDBFE;
  --faq-badge-text: #1D4ED8;
  --faq-radius: 12px;
  --faq-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  --faq-shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.08);
  --faq-shadow-active: 0 4px 14px rgba(37, 99, 235, 0.12);
}

/* 1. VISIBILITÉ GARANTIE */
.faq-section,
.faq-section [data-reveal] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* 2. SECTION CONTAINER */
.faq-section {
  padding: 80px 0 90px;
  background-color: var(--faq-bg);
  position: relative;
  overflow: hidden;
}

.faq-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 3. HEADER DE SECTION */
.faq-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.faq-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--faq-badge-bg);
  border: 1px solid var(--faq-badge-border);
  color: var(--faq-badge-text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.faq-title {
  font-family: var(--font-family-heading, 'Inter', sans-serif);
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 800;
  color: var(--faq-text-main);
  line-height: 1.25;
  margin: 0 0 14px;
}

.faq-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--faq-text-muted);
  line-height: 1.6;
  margin: 0 auto;
}

/* 4. FILTRES DE CATÉGORIES */
.faq-filters-wrapper {
  margin-bottom: 32px;
}

.faq-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--faq-bg-alt);
  border: 1px solid var(--faq-border);
  border-radius: 9999px;
  color: var(--faq-text-body);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-filter-btn:hover {
  background: #EDF2F7;
  border-color: #CBD5E1;
  color: var(--faq-text-main);
}

.faq-filter-btn:focus-visible {
  outline: 2px solid var(--faq-primary);
  outline-offset: 2px;
}

.faq-filter-btn.is-active {
  background: var(--faq-primary);
  border-color: var(--faq-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.faq-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.07);
  color: inherit;
  line-height: 1;
}

.faq-filter-btn.is-active .faq-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* 5. LISTE D'ACCORDÉON */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item-card {
  background: #FFFFFF;
  border: 1px solid var(--faq-border);
  border-radius: var(--faq-radius);
  box-shadow: var(--faq-shadow);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.faq-item-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--faq-shadow-hover);
}

.faq-item-card.is-open {
  border-color: var(--faq-border-active);
  box-shadow: var(--faq-shadow-active);
}

.faq-item-card.is-hidden {
  display: none !important;
}

/* 6. BOUTON QUESTION */
.faq-question-btn {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease;
  min-height: 60px;
}

.faq-question-btn:hover {
  background-color: #EFF6FF;
}

.faq-question-btn:focus-visible {
  outline: 2px solid var(--faq-primary);
  outline-offset: -2px;
}

.faq-question-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.faq-item-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--faq-primary);
  margin-bottom: 2px;
}

.faq-question-title {
  margin: 0;
  font-family: var(--font-family-heading, 'Inter', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--faq-text-main);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq-item-card.is-open .faq-question-title {
  color: var(--faq-primary);
}

/* 7. ICÔNE BASCULE (+ / -) */
.faq-toggle-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #2563EB;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question-btn:hover .faq-toggle-icon {
  background: #DBEAFE;
  color: #1D4ED8;
}

.faq-item-card.is-open .faq-toggle-icon {
  background: var(--faq-primary);
  border-color: var(--faq-primary);
  color: #FFFFFF;
  transform: rotate(45deg);
}

.faq-icon-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 8. RÉPONSE DÉROULANTE */
.faq-answer-collapse {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.faq-item-card.is-open .faq-answer-collapse {
  opacity: 1;
}

.faq-answer-inner {
  padding: 0 22px 22px 22px;
  color: var(--faq-text-body);
  font-size: 0.98rem;
  line-height: 1.65;
  border-top: 1px solid transparent;
}

.faq-item-card.is-open .faq-answer-inner {
  border-top-color: #F1F5F9;
  padding-top: 14px;
}

.faq-answer-inner p {
  margin: 0;
}

/* 9. BLOC "VOUS AVEZ UNE AUTRE QUESTION ?" */
.faq-contact-box {
  margin-top: 48px;
  background: var(--faq-bg-alt);
  border: 1px solid var(--faq-border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--faq-shadow);
}

.faq-contact-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: inline-block;
}

.faq-contact-title {
  font-family: var(--font-family-heading, 'Inter', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--faq-text-main);
  margin: 0 0 10px;
}

.faq-contact-text {
  max-width: 540px;
  margin: 0 auto 20px;
  color: var(--faq-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.btn-contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  color: var(--faq-text-main);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-contact-action:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}

/* 10. TRANSITION VERS L'OFFRE FINALE */
.faq-transition-offer {
  margin-top: 40px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 18px;
  padding: 44px 32px;
  text-align: center;
  color: #0F172A;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

.faq-transition-offer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.faq-offer-tag {
  display: inline-block;
  padding: 5px 14px;
  background: #DBEAFE;
  border: 1px solid #BFDBFE;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1D4ED8;
  margin-bottom: 12px;
}

.faq-offer-title {
  font-family: var(--font-family-heading, 'Inter', sans-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 12px;
  line-height: 1.3;
}

.faq-offer-text {
  max-width: 580px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
}

.btn-to-offer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  background: #2563EB;
  color: #FFFFFF;
  font-family: var(--font-family-heading, 'Inter', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-to-offer:hover {
  background: #1D4ED8;
  box-shadow: 0 6px 26px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

/* 11. RESPONSIVE & MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0 70px;
  }

  .faq-filters-list {
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .faq-filters-list::-webkit-scrollbar {
    display: none;
  }

  .faq-filter-btn {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .faq-question-btn {
    padding: 16px 18px;
  }

  .faq-question-title {
    font-size: 0.98rem;
  }

  .faq-answer-inner {
    padding: 0 18px 18px 18px;
    font-size: 0.94rem;
  }

  .faq-contact-box {
    padding: 28px 20px;
    margin-top: 36px;
  }

  .faq-transition-offer {
    padding: 34px 20px;
    margin-top: 32px;
  }

  .btn-to-offer {
    width: 100%;
    padding: 15px 20px;
    font-size: 0.98rem;
  }
}

/* 12. ACCESSIBILITÉ / PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .faq-answer-collapse,
  .faq-toggle-icon,
  .faq-filter-btn,
  .btn-contact-action,
  .btn-to-offer {
    transition: none !important;
  }
}
