/* === CONTENEUR PRINCIPAL === */
.faq-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(to bottom, #ffffff 0%, rgba(249, 250, 251, 0.5) 100%);
  overflow: hidden;
}

[data-theme='dark'] .faq-section {
  background: linear-gradient(to bottom, #121929 0%, rgba(18, 25, 41, 0.5) 100%);
}

.faq-bg-decorations {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.faq-bg-blob {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse-slow 3s ease-in-out infinite;
}

.faq-bg-blob-1 {
  top: 5rem;
  right: 2.5rem;
  background: rgba(1, 112, 168, 0.05);
}

.faq-bg-blob-2 {
  bottom: 5rem;
  left: 2.5rem;
  background: rgba(25, 184, 216, 0.05);
  animation-delay: 1s;
}

[data-theme='dark'] .faq-bg-blob-1,
[data-theme='dark'] .faq-bg-blob-2 {
  opacity: 0.7;
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

.faq-container {
  position: relative;
  z-index: 10;
  max-width: 56rem; 
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .faq-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .faq-container {
    padding: 0 2rem;
  }
}

/* === EN-TÊTE DE SECTION === */
.faq-header {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.faq-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.faq-header.is-visible .faq-badge {
  opacity: 1;
  transform: scale(1);
}

.faq-badge {
  position: relative;
}

.faq-badge-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  filter: blur(32px);
  opacity: 0.5;
  animation: pulse-slow 3s ease-in-out infinite;
}

.faq-badge-content {
  position: relative;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(to right, rgba(1, 112, 168, 0.1), rgba(25, 184, 216, 0.1));
  backdrop-filter: blur(16px);
  border-radius: 9999px;
  border: 1px solid rgba(1, 112, 168, 0.2);
}

.faq-badge-text {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 600;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  background: linear-gradient(to right, #121929 0%, #0170a8 50%, #121929 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme='dark'] .faq-title {
  background: linear-gradient(to right, #ffffff 0%, #19b8d8 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #4b5563;
  max-width: 42rem;
  margin: 0 auto;
}

[data-theme='dark'] .faq-subtitle {
  color: #d1d5db;
}

/* === ACCORDÉON FAQ === */
.faq-accordion-wrapper {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.faq-accordion-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-accordion-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  border-radius: 1.5rem;
  filter: blur(32px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.faq-accordion-wrapper:hover .faq-accordion-glow {
  opacity: 0.1;
}

.faq-accordion {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(32px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(209, 213, 219, 0.5);
}

[data-theme='dark'] .faq-accordion {
  background: rgba(18, 25, 41, 0.8);
  border-color: rgba(55, 65, 81, 0.5);
}

@media (min-width: 768px) {
  .faq-accordion {
    padding: 3rem;
  }
}

.faq-item {
  border-bottom: 1px solid rgba(209, 213, 219, 0.5);
}

[data-theme='dark'] .faq-item {
  border-bottom-color: rgba(55, 65, 81, 0.5);
}

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

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.faq-trigger:hover {
  transform: translateX(2px);
}

.faq-trigger-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.faq-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(1, 112, 168, 0.2), rgba(25, 184, 216, 0.2));
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.faq-trigger:hover .faq-number {
  transform: scale(1.1);
}

.faq-number span {
  font-family: var(--font-primary);
  font-weight: 700;
  color: #0170a8;
}

[data-theme='dark'] .faq-number span {
  color: #19b8d8;
}

.faq-question {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #121929;
  transition: color 0.3s ease;
}

[data-theme='dark'] .faq-question {
  color: #ffffff;
}

.faq-trigger:hover .faq-question {
  color: #0170a8;
}

[data-theme='dark'] .faq-trigger:hover .faq-question {
  color: #19b8d8;
}

.faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: #6b7280;
  transition: transform 0.3s ease, color 0.3s ease;
}

[data-theme='dark'] .faq-icon {
  color: #9ca3af;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: #0170a8;
}

[data-theme='dark'] .faq-trigger[aria-expanded="true"] .faq-icon {
  color: #19b8d8;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content.is-open {
  max-height: 1000px;
}

.faq-content-inner {
  padding: 0 0 1.5rem 3rem;
  color: #4b5563;
  line-height: 1.7;
}

[data-theme='dark'] .faq-content-inner {
  color: #d1d5db;
}

/* === CTA (Call To Action) === */
.faq-cta {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.faq-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-cta-content {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(1, 112, 168, 0.05), rgba(25, 184, 216, 0.05));
  backdrop-filter: blur(16px);
  border-radius: 1rem;
  border: 1px solid rgba(1, 112, 168, 0.2);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .faq-cta-content {
    flex-direction: row;
  }
}

.faq-cta-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-cta-pulse {
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  border-radius: 50%;
  animation: pulse-slow 2s ease-in-out infinite;
}

.faq-cta-text p {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 500;
  color: #374151;
}

[data-theme='dark'] .faq-cta-text p {
  color: #d1d5db;
}

.faq-cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #0170a8, #19b8d8);
  color: #ffffff;
  font-family: var(--font-primary);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(1, 112, 168, 0.3);
  transition: all 0.3s ease;
}

.faq-cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px -10px rgba(1, 112, 168, 0.4);
}

/* === ANIMATIONS D'ENTRÉE === */
[data-animate] {
  opacity: 0;
}

[data-animate].is-visible {
  opacity: 1;
}

[data-animate-delay="0"] {
  transition-delay: 0s;
}

[data-animate-delay="300"] {
  transition-delay: 0.3s;
}

[data-animate-delay="500"] {
  transition-delay: 0.5s;
}

.faq-content-inner {
  transition: padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq-content.is-open .faq-content-inner {
  opacity: 1;
}