/* Back-office mairie et espace associations */
body.bo { background: var(--light-bg); padding: 0; }
.bo-top { background: var(--ink); color: #fff; padding: .6rem 0; position: sticky; top: 0; z-index: 100; }
.bo-top .container-fluid { padding: 0 1.25rem; }
.bo-brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font: 800 1.05rem var(--font-display); }

.bo-brand:hover { color: var(--primary); }
.bo-wrap { display: flex; min-height: calc(100vh - 60px); }
.bo-side { width: 250px; flex: 0 0 250px; background: #fff; border-right: 1px solid var(--line); padding: 1.2rem .8rem; }
.bo-side a { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 12px; color: var(--ink); text-decoration: none; font: 600 1rem var(--font-display); }
.bo-side a:hover { background: var(--light-bg); }
.bo-side a.active { background: var(--primary); }
.bo-main { flex: 1; min-width: 0; padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem; }
.bo-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.5rem; }
.bo-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.bo-card h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.bo-stat { background: #fff; border-radius: var(--radius); padding: 1.3rem; border-left: 6px solid var(--primary); height: 100%; text-decoration: none; display: block; color: var(--ink); }
.bo-stat b { display: block; font: 900 2.2rem/1 var(--font-display); }
.bo-stat:hover { box-shadow: var(--shadow); color: var(--ink); }
.bo-table { width: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; }
.bo-table th { background: var(--ink); color: #fff; font: 700 .85rem var(--font-display); text-transform: uppercase; letter-spacing: .05em; padding: .8rem 1rem; }
.bo-table td { padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
.bo-table tr:hover td { background: #fffdf0; }
.bo-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.bo-thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }
.bo-auth { max-width: 460px; margin: 3rem auto; }
.bo-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.bo-tabs a { padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.bo-tabs a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 991.98px) {
    .bo-wrap { flex-direction: column; }
    .bo-side { width: auto; flex: none; border-right: 0; border-bottom: 1px solid var(--line); padding: .6rem; }
    .bo-side ul { display: flex; flex-wrap: wrap; gap: .3rem; }
    .bo-side a { padding: .5rem .8rem; font-size: .95rem; }
    .bo-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
    .bo-table tr { display: block; border-top: 1px solid var(--line); padding: .5rem 0; }
    .bo-table td { display: block; border: 0; padding: .3rem 1rem; }
    .bo-table td[data-label]::before { content: attr(data-label) " : "; font-weight: 700; }
}
