/* =========================================
   FICHIER : css/faq.css
   ROLE    : Page FAQ (accordéon)
   ========================================= */

.hero-faq{
  padding: 180px 0 80px;
  text-align: center;
  color: white;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,110,64,0.18) 0%, rgba(255,110,64,0) 55%),
    linear-gradient(135deg, #0f2231 0%, #1e3d59 100%);
}

.hero-faq h1{
  color: white;
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.hero-faq p{
  margin: 0 auto;
  max-width: 720px;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  font-size: 1.1rem;
}

/* Section */
.faq-section{
  padding: 70px 0 110px;
  background: #fcfbf8;
  min-height: 60vh;
}

.max-800{
  max-width: 800px;
  margin: 0 auto;
}

/* Catégories */
.faq-category{
  margin: 46px 0 18px;
  padding-bottom: 10px;

  font-family: var(--font-body);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.05rem;

  color: var(--color-accent);
  border-bottom: 2px solid rgba(255,110,64,0.20);
}

.faq-category:first-of-type{
  margin-top: 0;
}

/* Item accordéon */
.faq-item{
  background: white;
  border-radius: 18px;
  margin-bottom: 14px;

  border: 1px solid rgba(30,61,89,0.10);
  box-shadow: 0 12px 30px rgba(30,61,89,0.08);
  overflow: hidden;

  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.faq-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(30,61,89,0.12);
  border-color: rgba(255,110,64,0.22);
}

/* Question (bouton) */
.faq-question{
  width: 100%;
  border: 0;
  background: transparent;

  padding: 20px 20px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-deep);

  transition: background .2s var(--ease), color .2s var(--ease);
}

.faq-question i{
  font-size: 0.95rem;
  color: rgba(30,61,89,0.35);
  transition: transform .35s var(--ease), color .2s var(--ease);
}

/* Etat ouvert */
.faq-question.active{
  background: rgba(255,110,64,0.08);
  color: var(--color-accent);
}

.faq-question.active i{
  color: var(--color-accent);
  transform: rotate(180deg);
}

/* Réponse */
.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
  background: white;
}

.faq-question.active + .faq-answer{
  border-top: 1px solid rgba(30,61,89,0.08);
}

.faq-answer p{
  margin: 0;
  padding: 0 20px 20px;
  color: rgba(45,52,54,0.78);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Focus clavier (important) */
.faq-question:focus-visible{
  outline: 3px solid rgba(255,110,64,0.55);
  outline-offset: 3px;
  border-radius: 14px;
}

/* Responsive */
@media (max-width: 768px){
  .hero-faq{
    padding: 150px 0 70px;
  }

  .faq-question{
    padding: 18px 16px;
    font-size: 1.2rem;
  }

  .faq-answer p{
    padding: 0 16px 18px;
  }
}