/* FAQ 6 - REMPLISSAGE & DÉBORDEMENT À L'OUVERTURE */
.faq-6 {
  padding: 100px 5%;
  background: var(--white);
}
.faq-6 .container {
  max-width: 900px;
  margin: 0 auto;
}
.faq-6 .header {
  margin-bottom: 60px;
}
.faq-6 .eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.faq-6 h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
}

/* Conteneur bordé (border 4px primary, coins arrondis) */
.faq-6 .faq-6__list {
  border: 4px solid var(--primary);
  border-radius: 12px;
}
/* Filet supérieur retiré quand la 1re question est ouverte : le remplissage
   primary atteint le haut et absorbe la bordure (fidèle à la source React). */
.faq-6 .faq-6__list:has(> .faq-6__item:first-child.active) {
  border-top-color: transparent;
}

/* Séparateur primary entre items (sauf le 1er), retiré quand actif */
.faq-6 .faq-6__item {
  border-top: 2px solid var(--primary);
}
.faq-6 .faq-6__item:first-child {
  border-top-width: 0;
}
.faq-6 .faq-6__item.active {
  border-top-color: transparent;
}

/* Bouton question : reset explicite + position pour le fond scalable */
.faq-6 .faq-6__btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 5vw, 3rem);
  background: none;
  border: 0;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.faq-6 .faq-6__btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* Fond scalable : se remplit de primary et DÉBORDE sur les côtés à l'ouverture */
.faq-6 .faq-6__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 8px;
  background: transparent;
  transform: scaleX(1);
  transform-origin: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.faq-6 .faq-6__btn:hover .faq-6__bg {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.faq-6 .faq-6__item.active .faq-6__btn .faq-6__bg {
  background: var(--primary);
  transform: scaleX(1.05);
}

/* Contenu du bouton au-dessus du fond */
.faq-6 .faq-6__question,
.faq-6 .faq-6__icon {
  position: relative;
  z-index: 1;
}
.faq-6 .faq-6__question {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--black);
  transition: color 0.3s ease;
}
.faq-6 .faq-6__item.active .faq-6__question {
  color: var(--white);
}

/* Icône plus -> minus : la barre verticale disparaît à l'ouverture */
.faq-6 .faq-6__icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: color 0.3s ease;
}
.faq-6 .faq-6__icon svg {
  width: 22px;
  height: 22px;
}
.faq-6 .faq-6__icon-v {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-6 .faq-6__item.active .faq-6__icon {
  color: var(--white);
}
.faq-6 .faq-6__item.active .faq-6__icon-v {
  transform: scaleY(0);
  opacity: 0;
}

/* Réponse : hauteur animée (hook partagé .accordion-content) */
.faq-6 .faq-6__content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 clamp(1rem, 5vw, 3rem);
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
.faq-6 .faq-6__item.active .faq-6__content {
  max-height: 300px;
  opacity: 1;
  padding-top: 16px;
  padding-bottom: 24px;
}
.faq-6 .faq-6__content p {
  color: var(--gray-dark);
  line-height: 1.7;
}

@media (max-width: 480px) {
  .faq-6 .faq-6__btn {
    gap: 12px;
  }
}
