/* Liste des modèles d'une gamme, sur la fiche produit — module barcoda_modeles.
   Les lignes, filtres et la palette (variables --bms-*) viennent du moteur de liens (barcoda_products_links,
   views/css/front-links.css), chargé avant ; ne sont ici que les règles propres aux modèles. */

/* La question reçoit le focus pour être lue par les lecteurs d'écran, pas pour être encadrée */
.bms-wizard-question:focus {
    outline: none;
}

.bms-controls-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}

.bms-reset {
    border: 0;
    background: none;
    padding: 0;
    color: var(--bms-amber-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.bms-help-open {
    margin-left: auto;
}

/* ---------- Assistant ---------- */

.bms-wizard {
    margin-bottom: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--bms-rule);
    border-left: 4px solid var(--bms-amber);
    border-radius: 0 1rem 1rem 0;
    background: #fff;
}

.bms-wizard-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .8125rem;
    color: var(--bms-muted);
}

.bms-wizard-progress {
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bms-wizard-close {
    margin-left: auto;
}

.bms-wizard-question {
    margin: .5rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.bms-wizard-help {
    margin: .25rem 0 0;
    color: var(--bms-muted);
}

.bms-wizard-answers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: .5rem;
    margin-top: 1rem;
}

.bms-answer {
    text-align: left;
    padding: .75rem 1rem;
    border: 1px solid var(--bms-rule);
    border-radius: .75rem;
    background: #fff;
    color: var(--bms-ink);
    cursor: pointer;
}

.bms-answer:hover {
    border-color: var(--bms-ink);
    background: var(--bms-ground);
}

.bms-answer-label {
    display: block;
    font-weight: 700;
}

.bms-answer small {
    display: block;
    margin-top: .15rem;
    color: var(--bms-muted);
    font-size: .8125rem;
}

.bms-wizard-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.bms-wizard-skip {
    margin-left: auto;
}

/* ---------- Mobile ---------- */

@media (max-width: 767.98px) {
    .bms-help-open {
        margin-left: 0;
        width: 100%;
    }
}

/* ---------- Fiche d'un modèle : retour vers la gamme ---------- */

.product-range-back {
    display: inline-flex;
    align-items: baseline;
    gap: .4rem;
    margin-bottom: .5rem;
    font-size: .9375rem;
    font-weight: 600;
    color: #5A6E75;
    text-decoration: none;
}

.product-range-back:hover,
.product-range-back:focus-visible {
    color: #061F29;
    text-decoration: underline;
    text-underline-offset: 3px;
}

