/**
 * lnk_faq — styles FAQ (accordéon + recherche)
 * @author LNKBOOT
 */
.lnk-faq {
  --lnk-faq-accent: #1f9d55;
  --lnk-faq-border: #e4e7ec;
  --lnk-faq-text: #2b2f38;
  --lnk-faq-muted: #6b7280;
  max-width: 860px;
  margin: 0 auto;
  color: var(--lnk-faq-text);
}

/* ---- Recherche ---- */
.lnk-faq-search {
  position: relative;
  margin: 0 0 24px;
}
.lnk-faq-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px 14px 46px;
  font-size: 16px;
  line-height: 1.3;
  border: 1px solid var(--lnk-faq-border);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 16px center;
}
.lnk-faq-search-input:focus {
  border-color: var(--lnk-faq-accent);
  box-shadow: 0 0 0 3px rgba(31, 157, 85, .15);
}

.lnk-faq-noresult {
  text-align: center;
  color: var(--lnk-faq-muted);
  font-style: italic;
  padding: 24px 0;
}

/* ---- Catégories ---- */
.lnk-faq-cat {
  margin: 0 0 28px;
}
.lnk-faq-cat-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--lnk-faq-accent);
  color: var(--lnk-faq-text);
}
.lnk-faq-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Item (Q/R) ---- */
.lnk-faq-item {
  border: 1px solid var(--lnk-faq-border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
  overflow: hidden;
}
.lnk-faq-item.is-open {
  border-color: var(--lnk-faq-accent);
}
.lnk-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--lnk-faq-text);
  cursor: pointer;
  line-height: 1.4;
}
.lnk-faq-q:hover { background: #f8fafb; }
.lnk-faq-q:focus-visible { outline: 2px solid var(--lnk-faq-accent); outline-offset: -2px; }

.lnk-faq-ico {
  flex: 0 0 auto;
  position: relative;
  width: 16px;
  height: 16px;
}
.lnk-faq-ico::before,
.lnk-faq-ico::after {
  content: "";
  position: absolute;
  background: var(--lnk-faq-accent);
  transition: transform .2s ease, opacity .2s ease;
}
.lnk-faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.lnk-faq-ico::after { left: 7px; top: 0; width: 2px; height: 16px; }
.lnk-faq-item.is-open .lnk-faq-ico::after { transform: scaleY(0); opacity: 0; }

.lnk-faq-a {
  padding: 2px 18px 18px;
  color: var(--lnk-faq-text);
  font-size: 15px;
  line-height: 1.6;
}
.lnk-faq-a p { margin: 0 0 10px; }
.lnk-faq-a p:last-child { margin-bottom: 0; }
.lnk-faq-a ul { margin: 0 0 10px; padding-left: 20px; }
.lnk-faq-a li { margin-bottom: 6px; }
.lnk-faq-a a { color: var(--lnk-faq-accent); text-decoration: underline; }

/* ---- Mobile ---- */
@media (max-width: 767px) {
  .lnk-faq-q { font-size: 15px; padding: 13px 14px; }
  .lnk-faq-a { padding: 2px 14px 14px; }
  .lnk-faq-cat-title { font-size: 17px; }
}
