/* =====================================================================
 * Destination : /assets/css/pages/faq.css
 * Rôle        : Styles PROPRES À LA PAGE FAQ (/faq.php)
 *               Chargé automatiquement après /assets/css/main.css
 * Version     : 2.0 – Corporate / Trust & Security
 *
 * Sommaire : 01 En-tête & recherche · 02 Catégories · 03 Questions
 *            04 Aucun résultat · 05 Aide · 06 Responsive
 * ===================================================================== */

.text-gradient-light { background: linear-gradient(90deg, #93C5FD, #6EE7B7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-2 { color: var(--text-2); }

/* 01. EN-TÊTE & RECHERCHE ============================================ */
.faq-hero { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.faq-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.faq-search { position: relative; margin: 2rem 0 1rem; }
.faq-search > i { position: absolute; left: 1.4rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; color: var(--muted); pointer-events: none; }
.faq-search input {
    width: 100%;
    padding: 1.15rem 3.5rem 1.15rem 3.4rem;
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--text);
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: border-color var(--speed), box-shadow var(--speed);
}
.faq-search input:focus { outline: none; border-color: #93C5FD; box-shadow: var(--shadow-xl), 0 0 0 5px rgba(147, 197, 253, .3); }
.faq-search input::-webkit-search-cancel-button { display: none; }
#faqClear { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; color: var(--muted); background: var(--bg); border: 0; border-radius: 50%; cursor: pointer; }
#faqClear:hover { color: var(--white); background: var(--navy); }
.faq-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .45rem; }
.faq-popular > span { font-size: .85rem; color: #CBD5E1; }
.faq-chip-term { padding: .3rem .8rem; font-size: .82rem; font-weight: 700; color: #E2E8F0; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 100px; cursor: pointer; transition: all var(--speed); }
.faq-chip-term:hover { color: var(--navy); background: var(--white); }

/* 02. CATÉGORIES ===================================================== */
.faq-cats { position: sticky; top: calc(var(--header-h, 76px) + 1.25rem); display: grid; gap: .35rem; padding: .6rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.faq-cat { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .7rem .85rem; font-family: var(--font-display); font-size: .92rem; font-weight: 700; color: var(--text-2); text-align: left; background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--speed); }
.faq-cat i { width: 1.1rem; color: var(--blue); }
.faq-cat span { margin-left: auto; min-width: 26px; padding: .05rem .45rem; font-size: .75rem; text-align: center; color: var(--muted); background: var(--bg); border-radius: 100px; }
.faq-cat:hover { color: var(--blue); background: var(--blue-soft); }
.faq-cat.is-active { color: var(--white); background: var(--navy); }
.faq-cat.is-active i { color: #6EE7B7; }
.faq-cat.is-active span { color: var(--navy); background: var(--white); }

/* 03. QUESTIONS ====================================================== */
.faq-status { min-height: 1.4em; margin-bottom: 1rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
.faq-group { margin-bottom: 2.5rem; scroll-margin-top: calc(var(--header-h, 76px) + 20px); }
.faq-group-title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; font-size: 1.35rem; }
.faq-group-title .ac-icon { margin: 0; }
.faq-item { scroll-margin-top: calc(var(--header-h, 76px) + 24px); }
.faq-item.is-target { border-color: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.faq-item mark { padding: 0 .1em; color: inherit; background: #FDE68A; border-radius: 3px; }
.faq-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1rem; padding-top: .85rem; font-size: .83rem; color: var(--muted); border-top: 1px dashed var(--border-2); }
.faq-link { padding: 0; font-weight: 700; color: var(--blue); background: none; border: 0; cursor: pointer; }
.faq-link:hover { text-decoration: underline; }
.faq-helpful { display: inline-flex; align-items: center; gap: .4rem; }
.faq-helpful button { display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 50%; cursor: pointer; transition: all var(--speed); }
.faq-helpful button:hover { color: var(--blue); border-color: var(--blue); }
.faq-helpful.is-done { color: var(--green-dark); font-weight: 700; }

/* 04. AUCUN RÉSULTAT ================================================= */
.faq-empty { padding: 2.5rem 1.5rem; text-align: center; background: var(--white); border: 1px dashed var(--border-2); border-radius: var(--radius-lg); }
.faq-empty .ac-icon { margin-left: auto; margin-right: auto; }
.faq-empty p { max-width: 460px; margin: 0 auto 1.25rem; color: var(--text-2); }

/* 05. AIDE =========================================================== */
.help-card { display: flex; flex-direction: column; padding: 1.75rem; color: var(--text); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform .3s var(--ease), box-shadow .3s; }
.help-card:hover { color: var(--text); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.help-card h3 { font-size: 1.15rem; }
.help-card p { flex: 1; font-size: .92rem; color: var(--text-2); }
.help-card:hover .link-arrow i { transform: translateX(5px); }

/* 06. RESPONSIVE ===================================================== */
@media (max-width: 991.98px) {
    .faq-cats { position: static; display: flex; gap: .4rem; padding: .4rem; overflow-x: auto; scrollbar-width: none; }
    .faq-cats::-webkit-scrollbar { display: none; }
    .faq-cat { flex-shrink: 0; width: auto; white-space: nowrap; }
    .faq-cat span { margin-left: .35rem; }
}
@media (max-width: 575.98px) {
    .faq-search input { padding: 1rem 3rem 1rem 3rem; font-size: 1rem; }
    .faq-search > i { left: 1.1rem; }
    .faq-tools { flex-direction: column; align-items: flex-start; }
}