/* Le back-office (20/11/2026) : la liste de tous les comptes et la fiche d'un compte. Même charte que la plateforme. */
.page-bo { max-width: 1240px; }
.bo-sous { margin: 0; color: var(--doux); font-size: 14px; }
.bo-outils { display: grid; gap: 12px; }
#bo-recherche { width: 100%; max-width: 460px; min-height: 44px; padding: 0 14px; border: 1px solid var(--trait); border-radius: 10px; background: var(--fond-2); color: var(--texte); font: 400 15px var(--corps); }
.bo-filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.bo-filtres button { min-height: 34px; padding: 0 14px; border: 1px solid var(--trait); border-radius: 999px; background: none; color: var(--doux); font: 500 13.5px var(--corps); cursor: pointer; }
.bo-filtres button[aria-pressed="true"] { background: var(--papier); color: var(--fond); border-color: var(--papier); }
.bo-liste { display: grid; gap: 4px; }
.bo-entete, .bo-ligne { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 12px; padding: 10px 14px; }
.bo-entete { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sourd); font-weight: 600; position: relative; z-index: 2; }
/* tri par colonne et filtres à cocher (21/11/2026) */
.bo-tri, .bo-filtre-col { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.bo-tri:hover, .bo-filtre-col:hover, .bo-tri[aria-sort="ascending"], .bo-tri[aria-sort="descending"], .bo-filtre-col.actif { color: var(--texte); }
.bo-tri svg { width: 9px; height: 9px; fill: currentColor; opacity: 0; transition: transform .15s; }
.bo-tri:hover svg { opacity: .45; }
.bo-tri[aria-sort="ascending"] svg { opacity: 1; }
.bo-tri[aria-sort="descending"] svg { opacity: 1; transform: rotate(180deg); }
.bo-filtre-col svg { width: 12px; height: 12px; fill: currentColor; opacity: .55; }
.bo-filtre-col.actif svg { opacity: 1; }
.bo-filtre-col i { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--papier); color: var(--fond); font: 700 11px/18px var(--corps); font-style: normal; letter-spacing: 0; text-align: center; }
.bo-col-filtre { position: relative; }
.bo-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; display: grid; gap: 2px; min-width: 300px; max-height: 360px; overflow: auto; padding: 8px; border-radius: 12px; background: var(--carte-2); box-shadow: 0 0 0 1px var(--trait) inset, 0 12px 32px rgba(0,0,0,.5); letter-spacing: 0; text-transform: none; font-weight: 400; }
.bo-menu label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--texte); font-size: 14px; cursor: pointer; }
.bo-menu label:hover { background: rgba(255,255,255,.05); }
.bo-menu input { width: 16px; height: 16px; accent-color: var(--papier); }
.bo-menu small { color: var(--sourd); font-size: 12px; font-variant-numeric: tabular-nums; }
.bo-menu-effacer { margin-top: 4px; padding: 7px 8px; border: 0; border-top: 1px solid var(--trait); background: none; color: var(--doux); font: 500 13px var(--corps); text-align: left; cursor: pointer; }
.bo-menu-effacer:hover { color: var(--texte); }
.bo-ligne { border-radius: 10px; background: var(--fond-2); box-shadow: 0 0 0 1px var(--trait) inset; font-size: 14px; color: var(--texte); text-decoration: none; }
.bo-ligne:hover { background: var(--carte); }
.bo-ligne small { display: block; color: var(--sourd); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-qui { min-width: 0; }
.bo-qui b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bo-num { font-variant-numeric: tabular-nums; }
.bo-pastille { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px; border-radius: 999px; background: var(--carte-2); color: var(--doux); font: 600 11.5px/1.5 var(--corps); font-style: normal; }
.bo-pastille.nr { background: rgba(236,236,234,.14); color: var(--texte); }
.bo-pastille.attente { background: rgba(240,169,154,.14); color: #f0a99a; }
.bo-vide { color: var(--doux); }
@media (max-width: 900px) {
  /* sur téléphone : les tris et les filtres restent, sur une ligne qui passe à la ligne */
  .bo-entete { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 4px 2px 8px; }
  .bo-entete > span:not(.bo-col-filtre) { display: none; }
  .bo-ligne { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .bo-ligne > span { grid-column: 1 / -1; }
  .bo-ligne .bo-qui { grid-column: 1; }
  .bo-ligne .bo-date { grid-column: 2; grid-row: 1; text-align: right; color: var(--doux); font-size: 13px; }
  .bo-tel:empty, .bo-progs:empty { display: none; }
}
.page-bo .retour { color: var(--doux); font-size: 14px; text-decoration: none; }
.bo-bloc { display: grid; gap: 2px 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); padding: 16px 18px; border-radius: 12px; background: var(--fond-2); box-shadow: 0 0 0 1px var(--trait) inset; }
.bo-champ { display: grid; gap: 2px; padding: 6px 0; }
.bo-champ span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sourd); font-weight: 600; }
.bo-champ b { font-weight: 500; overflow-wrap: anywhere; }
.bo-champ a { color: inherit; text-underline-offset: 3px; }
.bo-progs-detail, .bo-paiements { display: grid; gap: 6px; }
.bo-prog { display: grid; grid-template-columns: 1fr minmax(200px, 320px); align-items: center; gap: 12px 24px; padding: 12px 16px; border-radius: 10px; background: var(--fond-2); box-shadow: 0 0 0 1px var(--trait) inset; }
.bo-prog small { display: block; color: var(--sourd); font-size: 12.5px; }
.bo-barre { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; }
.bo-barre > span { height: 6px; border-radius: 3px; background: var(--carte-2); overflow: hidden; }
.bo-barre i { display: block; height: 100%; background: var(--papier); }
.bo-barre small { grid-column: 1 / -1; }
@media (max-width: 640px) { .bo-prog { grid-template-columns: 1fr; } }
.bo-liste-courte { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; }
.bo-liste-courte > span { margin-right: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sourd); font-weight: 600; }
.bo-historique summary { cursor: pointer; color: var(--doux); font-size: 14px; }
.bo-historique ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; max-width: 720px; }
.bo-historique li { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--trait); font-size: 14px; }
.bo-historique li small { flex: none; width: 92px; color: var(--sourd); font-size: 12px; }
.bo-historique li span { flex: 1; }
.bo-historique li em { display: block; color: var(--doux); font-size: 12.5px; }
.bo-historique li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bo-historique li b.moins { color: #f0a99a; }
.bo-paiement { display: grid; grid-template-columns: 100px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--fond-2); box-shadow: 0 0 0 1px var(--trait) inset; font-size: 14px; }
.bo-paiement small { color: var(--sourd); font-size: 12.5px; }
.bo-paiement span small { display: block; }
.bo-paiement b { font-variant-numeric: tabular-nums; }
.bo-reponses { margin: 10px 0 0; max-width: 760px; }
.bo-reponses dt { margin-top: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sourd); font-weight: 600; }
.bo-reponses dd { margin: 4px 0 0; white-space: pre-wrap; }
.page-bo .q-synthese { max-width: 760px; }
.page-bo .q-reco-actions { display: none; }

/* la fiche modifiable (23/11/2026) : coordonnées, accès, étapes du parcours NR */
.bo-tete-fiche { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bo-form-coord { display: grid; gap: 14px; grid-template-columns: 1fr; }
.bo-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bo-etat { color: var(--doux); font-size: 13.5px; }
.bo-acces-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.bo-prevenir { display: inline-flex; align-items: center; gap: 8px; color: var(--doux); font-size: 14px; cursor: pointer; }
.bo-prevenir input { width: 16px; height: 16px; accent-color: #2f6b47; }
.bo-acces { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.bo-acces-ligne { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-radius: 10px; background: var(--fond-2); box-shadow: 0 0 0 1px var(--trait) inset; }
.bo-acces-ligne b { display: block; font-weight: 500; }
.bo-acces-ligne small { display: block; color: var(--sourd); font-size: 12.5px; }
.bo-acces-ligne:not(.actif) b { color: var(--doux); }
.bo-acces-ligne .interrupteur { flex: none; }
.bo-acces-ligne input:disabled + i { opacity: .5; }
/* les choix de notification du membre (23/11/2026) */
.bo-notifs { display: grid; gap: 6px; }
.bo-notif { display: grid; grid-template-columns: 1fr 86px 86px; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--fond-2); box-shadow: 0 0 0 1px var(--trait) inset; }
.bo-notif > :not(:first-child) { justify-self: center; }
.bo-notif b { display: block; font-weight: 500; }
.bo-notif small { display: block; color: var(--sourd); font-size: 12.5px; }
.bo-notif-tete { padding: 0 14px; background: none; box-shadow: none; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sourd); font-weight: 600; }
@media (max-width: 640px) { .bo-notif { grid-template-columns: 1fr 64px 64px; } }
