/* FAQ : centre d'aide /faqs (annuaire des modèles) et pages de rubrique /faqs/{rubrique}
   Complète .tv-faq de style.integration.css. Vues : partials/shortcodes/faqs/page.blade.php, views/faq-category.blade.php */

/* Largeur du site : le contenu suit le conteneur du site (.container, comme le bandeau et les autres pages)
   au lieu des 1200 px fixes de .tv-faq__wrap (style.integration.css) */
.tv-faq .container.tv-faq__wrap {
    max-width: 1440px;
    padding-inline: 15px;
}

/* Bouton du bandeau : annonces du modèle */
.tv-hero .tv-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 22px;
    border-radius: 12px;
    background: var(--h-accent, var(--primary-color));
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
    transition: filter .2s ease, transform .2s ease;
}

.tv-hero .tv-hero__btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #0f172a;
}

.tv-hero .tv-hero__btn svg {
    width: 20px;
    height: 20px;
    color: inherit !important;
}

/* Question en titre (pages de rubrique) : même rendu que le texte de la question */
.tv-faq .tv-faq__question h2 {
    flex: 1;
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
}

/* Titre de rubrique cliquable (centre d'aide) */
.tv-faq .tv-faq__group-title a {
    color: inherit;
    text-decoration: none;
}

.tv-faq .tv-faq__group-title a:hover {
    color: var(--primary-color);
}

/* Carte « annonces du modèle » sous les questions */
.tv-faq .tv-faq__listing {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid #e9eceb;
    border-radius: 12px;
    background: #f9fafa;
    color: var(--heading-color);
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.tv-faq .tv-faq__listing:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.tv-faq__listing-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(var(--primary-color-rgb, 152, 188, 42), .14);
    color: var(--primary-color);
}

.tv-faq__listing-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.tv-faq .tv-faq__listing-text strong {
    color: var(--heading-color);
    font-size: 1.05rem;
}

.tv-faq .tv-faq__listing-text span {
    color: #6b7270;
    font-size: .9rem;
}

.tv-faq .tv-faq__listing > svg {
    color: var(--primary-color);
}

/* Autres rubriques / autres modèles de la marque */
.tv-faq__more {
    margin-top: 40px;
}

.tv-faq .tv-faq__more-title {
    margin: 0 0 14px;
    color: var(--heading-color);
    font-size: 1.15rem;
}

/* Pastilles (modèles, rubriques) */
.tv-faq .tv-faq__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tv-faq .tv-faq__chips li {
    margin: 0;
    list-style: none;
}

.tv-faq .tv-faq__chips a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 14px;
    border: 1px solid #e9eceb;
    border-radius: 999px;
    background: #fff;
    color: var(--heading-color);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}

.tv-faq .tv-faq__chips a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tv-faq .tv-faq__chips a span {
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(var(--primary-color-rgb, 152, 188, 42), .14);
    color: var(--primary-color);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.7;
}

/* Annuaire des modèles, par marque */
.tv-faq__models {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.tv-faq__make {
    padding: 16px 18px 18px;
    border: 1px solid #e9eceb;
    border-radius: 12px;
    background: #f9fafa;
}

.tv-faq .tv-faq__make-title {
    margin: 0 0 12px;
    color: var(--heading-color);
    font-size: 1rem;
    font-weight: 700;
}

.tv-faq__make[hidden],
.tv-faq__chips li[hidden] {
    display: none;
}

.tv-faq .tv-faq__cta-sub a {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 767px) {
    .tv-hero .tv-hero__btn {
        justify-content: center;
        width: 100%;
    }

    .tv-faq__models {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Menu « Rubriques » plus large (260 px dans style.integration.css) : intitulés sur une ligne.
   Sous 992 px, le menu devient une barre horizontale (style.integration.css) */
@media (min-width: 992px) {
    .tv-faq .tv-faq__layout {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}

/* Menu « Rubriques » : rubrique affichée */
.tv-faq .tv-faq__nav a.is-active {
    background: #fff;
    color: var(--primary-color);
}

/* Centre d'aide /faqs : annuaire des modèles et bloc contact sous les Questions générales */
.tv-faq__models-block {
    margin-top: clamp(40px, 6vw, 64px);
}

.tv-faq__hub .tv-faq__cta {
    margin-top: clamp(40px, 6vw, 56px);
}


/* Zone de contenu : panneau gris clair arrondi avec en-tête (rubrique, nombre de questions) ;
   questions et cartes blanches par-dessus */
.tv-faq .tv-faq__content {
    min-width: 0;
    padding: clamp(18px, 2.4vw, 32px);
    border: 1px solid #eceff0;
    border-radius: 18px;
    background: #f6f8f7;
}

.tv-faq__content-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: clamp(18px, 2vw, 24px);
    padding-bottom: 16px;
    border-bottom: 1px solid #e3e7e5;
}

.tv-faq .tv-faq__content-title {
    margin: 0;
    color: var(--heading-color);
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    font-weight: 700;
    line-height: 1.3;
}

.tv-faq .tv-faq__content-meta {
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(var(--primary-color-rgb, 152, 188, 42), .14);
    color: var(--primary-color);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Éléments clairs du panneau : blancs pour ressortir sur le fond gris */
.tv-faq .tv-faq__content .tv-faq__make,
.tv-faq .tv-faq__content .tv-faq__listing {
    background: #fff;
}

@media (max-width: 575px) {
    .tv-faq .tv-faq__content {
        padding: 14px;
        border-radius: 14px;
    }
}

/* Menu « Rubriques » : FAQ des modèles par marque (ordinateur) ; sur mobile, simple lien vers l'annuaire */
.tv-faq__nav-models {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e3e7e5;
}

.tv-faq .tv-faq__nav-make {
    margin: 0;
    border-radius: 8px;
}

.tv-faq .tv-faq__nav-make summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--heading-color);
    font-size: .95rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.tv-faq .tv-faq__nav-make summary::-webkit-details-marker {
    display: none;
}

.tv-faq .tv-faq__nav-make summary::before {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-right: 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: .55;
    transition: transform .2s ease;
}

.tv-faq .tv-faq__nav-make[open] summary::before {
    transform: rotate(45deg);
}

.tv-faq .tv-faq__nav-make summary span:first-of-type {
    flex: 1;
}

.tv-faq .tv-faq__nav-make summary:hover {
    background: #fff;
    color: var(--primary-color);
}

.tv-faq .tv-faq__nav .tv-faq__nav-make ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 2px 0 8px 22px;
    padding: 0 0 0 10px;
    border-left: 1px solid #e3e7e5;
}

.tv-faq .tv-faq__nav .tv-faq__nav-make a {
    padding: 6px 10px;
    font-size: .9rem;
    font-weight: 500;
}

@media (min-width: 992px) {
    /* Menu plus haut que l'écran (86 modèles) : il défile dans sa colonne */
    .tv-faq .tv-faq__nav {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .tv-faq .tv-faq__nav-models-link {
        display: none;
    }
}

@media (max-width: 991px) {
    .tv-faq__nav-models {
        display: none;
    }
}

/* Question ouverte (la première l'est à l'arrivée) : en-tête teinté, réponse aérée et séparée */
.tv-faq .tv-faq__item[open] {
    overflow: hidden;
    border-color: rgba(var(--primary-color-rgb, 152, 188, 42), .5);
    box-shadow: 0 16px 40px -18px rgba(15, 23, 42, .22);
}

.tv-faq .tv-faq__item[open] .tv-faq__question {
    background: linear-gradient(90deg, rgba(var(--primary-color-rgb, 152, 188, 42), .12), rgba(var(--primary-color-rgb, 152, 188, 42), .03));
    border-bottom: 1px solid rgba(var(--primary-color-rgb, 152, 188, 42), .2);
}

.tv-faq .tv-faq__item[open] .tv-faq__answer {
    padding: 18px 24px 22px;
    color: #3f4644;
    font-size: 1rem;
    line-height: 1.8;
}

.tv-faq .tv-faq__answer > :first-child {
    margin-top: 0;
}

.tv-faq .tv-faq__answer > :last-child {
    margin-bottom: 0;
}

/* Listes des réponses : puces visibles (le thème les retire sur tous les li) */
.tv-faq .tv-faq__answer ul,
.tv-faq .tv-faq__answer ol {
    margin: 10px 0;
    padding-left: 22px;
}

.tv-faq .tv-faq__answer ul li {
    display: list-item;
    list-style: disc;
}

.tv-faq .tv-faq__answer ol li {
    display: list-item;
    list-style: decimal;
}

.tv-faq .tv-faq__answer li + li {
    margin-top: 6px;
}

.tv-faq .tv-faq__answer li::marker {
    color: var(--primary-color);
}

@media (max-width: 575px) {
    .tv-faq .tv-faq__item[open] .tv-faq__answer {
        padding: 14px 16px 18px;
        font-size: .96rem;
    }
}
