/* ============================================
   ATELIER IA BERNAY — Styles page FAQ
   ============================================ */

/* === Filtres de catégories === */
.faq-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  max-width: 900px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(15, 42, 74, 0.06);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 42, 74, 0.05);
}

.faq-filter {
  background: transparent;
  border: 1.5px solid transparent;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.3px;
}

.faq-filter:hover {
  color: var(--navy);
  background: var(--gold-soft);
}

.faq-filter.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(15, 42, 74, 0.18);
}

/* === Wrapper FAQ === */
.faq-wrapper {
  max-width: 880px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 48px;
}

.faq-category.hidden {
  display: none;
}

.faq-category-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  position: relative;
}

.cat-icon {
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border-radius: 12px;
  border: 1.5px solid var(--gold);
}

/* === Item d'accordéon === */
.faq-item {
  background: #fff;
  border: 1px solid rgba(15, 42, 74, 0.08);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 0;
  transition: all 0.3s var(--ease-out);
  overflow: hidden;
}

.faq-item.hidden {
  display: none;
}

.faq-item[open] {
  border-color: rgba(201, 166, 107, 0.4);
  box-shadow: 0 10px 28px rgba(15, 42, 74, 0.08);
}

.faq-item:hover:not([open]) {
  border-color: rgba(201, 166, 107, 0.3);
  transform: translateY(-1px);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.35;
  user-select: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1.5px solid rgba(201, 166, 107, 0.3);
  flex-shrink: 0;
  position: relative;
  transition: all 0.35s var(--ease-out);
}

.faq-item summary::before {
  content: "+";
  position: absolute;
  right: 32px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.35s var(--ease-out);
  z-index: 1;
}

.faq-item[open] summary::after {
  background: var(--gold);
  border-color: var(--gold);
  transform: rotate(135deg);
}

.faq-item[open] summary::before {
  color: #fff;
  transform: rotate(45deg);
}

/* Contenu */
.faq-content {
  padding: 0 26px 24px;
  color: #334155;
  line-height: 1.7;
  font-size: 0.96rem;
  animation: faq-fade 0.35s var(--ease-out);
}

.faq-content p {
  margin: 0 0 12px;
}

.faq-content p:last-child { margin-bottom: 0; }

.faq-content ul {
  margin: 12px 0;
  padding-left: 22px;
}

.faq-content ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.faq-content a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(201, 166, 107, 0.4);
  text-underline-offset: 3px;
}

.faq-content a:hover {
  text-decoration-color: var(--gold-dark);
}

@keyframes faq-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === État vide === */
.faq-empty {
  text-align: center;
  padding: 60px 28px;
  color: var(--muted);
  font-style: italic;
}

/* === Responsive === */
@media (max-width: 720px) {
  .faq-filters {
    border-radius: 18px;
    padding: 6px;
  }
  .faq-filter {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .faq-category-title {
    font-size: 1.35rem;
    gap: 10px;
  }
  .cat-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .faq-item summary {
    padding: 18px 20px;
    font-size: 1.05rem;
    padding-right: 60px;
  }
  .faq-item summary::before {
    right: 26px;
  }
  .faq-content {
    padding: 0 20px 20px;
    font-size: 0.92rem;
  }
}
