/* ==========================================================
   BLOC QUESTIONS FAÇADES
   ========================================================== */

.bloc-questions-facades {
    padding: 40px 20px;
}

/* ----------------------------------------------------------
   NAV WRAPPER
   ---------------------------------------------------------- */

.bqf-nav {
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

/* ----------------------------------------------------------
   LIGNE 1 — PILLS THÈMES (style btn-cta)
   ---------------------------------------------------------- */

.bqf-themes-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

/* Pill = bouton scindé : lien + chevron */
.bqf-theme-pill {
    display: inline-flex;
    align-items: stretch;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

/* Label thème — btn-cta plein */
.bqf-theme-label {
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-decoration: none !important;
    padding: 9px 14px;
    background-color: var(--couleur-principale);
    color: var(--couleur-blanc) !important;
    transition: background-color 0.35s ease;
    line-height: normal;
    white-space: nowrap;
    cursor: pointer;
}

.bqf-theme-label:hover {
    background-color: var(--couleur-noir);
    color: var(--couleur-blanc) !important;
}

/* Séparateur visuel entre le label et le chevron */
.bqf-theme-pill.has-sub .bqf-theme-label {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    padding-right: 12px;
}

/* Bouton chevron — même couleur que le label */
.bqf-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background-color: var(--couleur-principale);
    border: none;
    cursor: pointer;
    transition: background-color 0.35s ease;
    flex-shrink: 0;
}

/* Icône FA : forcer la couleur blanche car * { color: var(--couleur-texte) } */
.bqf-theme-toggle i {
    color: var(--couleur-blanc);
    font-size: 13px;
    transition: transform 220ms ease, color 0.35s ease;
}

.bqf-theme-toggle:hover i,
.bqf-theme-toggle[aria-expanded="true"] i,
.bqf-theme-pill.is-active .bqf-theme-toggle i {
    color: var(--couleur-blanc);
}

.bqf-theme-toggle:hover,
.bqf-theme-toggle[aria-expanded="true"],
.bqf-theme-pill.is-active .bqf-theme-toggle {
    background-color: var(--couleur-noir);
}

/* État actif : toute la pill en noir */
.bqf-theme-pill.is-active .bqf-theme-label {
    background-color: var(--couleur-noir);
    color: var(--couleur-blanc) !important;
}

/* Rotation chevron quand ouvert */
.bqf-theme-toggle[aria-expanded="true"] i.bqf-chevron {
    transform: rotate(180deg);
}

/* ----------------------------------------------------------
   LIGNE 2 — PANNEAU SOUS-THÈMES (plein largeur, sous la ligne 1)
   ---------------------------------------------------------- */

.bqf-subpanel {
    display: none;
    width: 100%;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
}

.bqf-subpanel.is-open {
    display: block;
}

.bqf-subpanel-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
}

/* Sous-thèmes — chips neutres, hover orange */
.bqf-sub-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    text-decoration: none !important;
    border-radius: var(--border-radius);
    background: #EFEFEF;
    color: var(--couleur-texte) !important;
    border: none;
    transition: background-color 0.35s ease, color 0.35s ease;
    white-space: nowrap;
    cursor: pointer;
}

.bqf-sub-btn:hover,
.bqf-sub-btn.is-active {
    background-color: var(--couleur-principale);
    color: var(--couleur-blanc) !important;
}

/* ----------------------------------------------------------
   GRILLE DE CARTES (hérite de .de-archive-grid)
   ---------------------------------------------------------- */

.bqf-grid.de-archive-grid {
    margin-top: 0;
}

/* ----------------------------------------------------------
   MESSAGE VIDE
   ---------------------------------------------------------- */

.bqf-empty {
    text-align: center;
    padding: 40px;
    color: var(--couleur-gris);
    font-size: 14px;
    grid-column: 1 / -1;
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

@media screen and (max-width: 599px) {
    .bqf-theme-pill {
        width: 100%;
    }
    .bqf-theme-label {
        flex: 1;
    }
}

@media screen and (min-width: 1200px) {
    .bloc-questions-facades { padding: 60px 0; }
}
