/* Centre d'aide – style type Uber/Deliveroo */

.faq-page {
  padding-bottom: 3rem;
}

.faq-hero {
  padding: 2rem 0 1.5rem;
}

.faq-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text, #e5e7eb);
}

.faq-hero__sub {
  color: var(--text-muted, #90caf9);
  margin: 0;
  font-size: 1rem;
}

.faq-search-wrap {
  padding: 0 0 1.5rem;
}

.faq-search input {
  width: 100%;
  max-width: 480px;
  padding: 0.9rem 1.1rem 0.9rem 2.75rem;
  border-radius: 10px;
  border: 2px solid rgba(105, 226, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%239ca3af' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 1.1rem center;
}

.faq-search input::placeholder {
  color: var(--text-muted, #90caf9);
  opacity: 0.85;
}

.faq-search input:focus {
  outline: none;
  border-color: #69e2ff;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(105, 226, 255, 0.15);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Catégories */
.faq-categories {
  padding: 0;
}

.faq-category {
  margin-bottom: 2.5rem;
}

.faq-category__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text, #e5e7eb);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.3));
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Accordéon : question cliquable */
.faq-item {
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.25));
  border-bottom: none;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.15s ease;
}

.faq-item:last-of-type {
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.25));
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: none;
  background: none;
  color: var(--text, #e5e7eb);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat center;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
}

.faq-question:hover {
  color: var(--accent, #38bdf8);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p,
.faq-answer ul {
  margin: 0 0 0.75rem;
  padding: 0 18px 14px;
  color: var(--text-muted, #90caf9);
  font-size: 0.9rem;
  line-height: 1.5;
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  padding-left: 2rem;
  list-style: disc;
}

.faq-answer li {
  margin-bottom: 0.35rem;
}

/* Bloc contact en bas de chaque catégorie */
.faq-help {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.25));
  text-align: center;
}

.faq-help p {
  margin: 0 0 0.75rem;
  color: var(--text-muted, #90caf9);
  font-size: 0.95rem;
}

.faq-help .btn {
  display: inline-flex;
}

/* État "aucun résultat" */
.faq-no-results {
  display: none;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted, #90caf9);
}

.faq-no-results.visible {
  display: block;
}

@media (max-width: 480px) {
  .faq-page { max-width: 100%; padding: 0 16px; }
}
