/* ============================================================
   Fil d'Ariane & retour — système unifié
   Composants : <twig:Nav:Breadcrumb> / <twig:Nav:Back>
   POC : design-poc/fil-ariane-retour.html
   ============================================================ */

/* Rangée de repérage en haut de la zone de contenu. */
.bc-head {
    display: flex;
    align-items: center;
    min-height: 1.7rem;
    /* Marge haute : la zone de contenu démarre au ras de la navbar fixe ; sans ça,
       le fil / le bouton retour collent à la barre (voire passent dessous). */
    margin: .75rem 0 0;
}

/* --- Fil d'Ariane (texte discret) --- */
.bc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: .8rem;
    color: var(--text-muted);
    min-width: 0;
}

.bc li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.bc li + li::before {
    content: '›';
    color: var(--text-faint);
    font-size: .78rem;
    opacity: .8;
    margin: 0 .35rem;
    user-select: none;
}

.bc a {
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 6px;
    padding: .05rem .28rem;
    transition: color .15s, background-color .15s;
}

.bc a:hover {
    color: var(--gold-strong);
    background: var(--gold-soft);
    text-decoration: none;
}

.bc-current {
    color: var(--text);
    font-weight: 600;
    max-width: 38ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: .05rem .1rem;
}

/* --- Bouton retour (pastille fantôme) --- */
.bc-back {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: .32rem .8rem .32rem .55rem;
    transition: color .15s, background-color .15s, border-color .15s;
}

.bc-back:hover {
    color: var(--gold-strong);
    background: var(--gold-soft);
    border-color: var(--gold);
    text-decoration: none;
}

/* Variante texte minimal (assistants, à côté du stepper) */
.bc-back--plain {
    padding: .2rem .1rem;
}

.bc-back--plain:hover {
    background: transparent;
    border-color: transparent;
}

.bc-chev {
    font-size: 1.05rem;
    line-height: 1;
    margin-top: -1px;
}

/* --- Mobile : le fil se replie en chevron retour vers le parent --- */
.bc-collapsed {
    display: none;
}

@media (max-width: 600px) {
    .bc-head .bc-full {
        display: none;
    }

    .bc-head .bc-collapsed {
        display: inline-flex;
    }
}
