/* ================================================
   BRIDGE SCHOOL - Admin Interface
   Charte graphique The Bridge School
   ================================================ */

/*
 * Phase 0 — Design tokens Bridge ERP (source unique)
 * Couche 1 : bridge-admin.css (:root) — variables globales
 * Couche 2 : bridge-erp-shell.css — composants bel-* (consomment ces tokens)
 * Couche 3 : bridge-erp-*.css — préfixes b{module}-* uniquement (pas de redéfinition :root)
 * Interdit : --bridge-primary / --bel-* redéfinis dans un .bxx-wrap ou module CSS
 */
:root {
    --bridge-primary     : #0097a7;
    --bridge-primary-dark: #006978;
    --bridge-secondary   : #1a3c5e;
    --bridge-accent      : #f4a623;
    --bridge-success     : #2ecc71;
    --bridge-danger      : #e74c3c;
    --bridge-warning     : #f39c12;
    --bridge-light       : #f8f9fa;
    --bridge-white       : #ffffff;
    --bridge-text        : #2c3e50;
    --bridge-border      : #e0e0e0;
    --bridge-shadow      : 0 2px 10px rgba(0, 0, 0, 0.08);
    --bridge-radius      : 10px;
    --bridge-font        : 'Arial', 'Segoe UI', sans-serif;

    /* Bridge ERP shell (bel-*) — alias charte + tokens UI */
    --bel-text           : #0f172a;
    --bel-text-muted     : #64748b;
    --bel-text-soft      : #94a3b8;
    --bel-surface        : #ffffff;
    --bel-surface-muted  : #f8fafc;
    --bel-surface-tabs   : #f1f5f9;
    --bel-border         : #e2e8f0;
    --bel-border-soft    : #e8eef5;
    --bel-link           : var(--bridge-primary);
    --bel-link-dark      : var(--bridge-primary-dark);
    --bel-radius-sm      : 9px;
    --bel-radius-md      : 12px;
    --bel-radius-lg      : 14px;
    --bel-shadow-sm      : 0 1px 3px rgba(15, 23, 42, 0.06);
    --bel-focus-ring     : 0 0 0 3px color-mix(in srgb, var(--bridge-primary) 22%, transparent);
    --bel-focus-shadow   : 0 0 0 4px color-mix(in srgb, var(--bridge-primary) 8%, transparent);

    /* Statuts / alertes / badges (bel-alert, bel-toolbar-badge) */
    --bel-success-bg     : #dcfce7;
    --bel-success-border : #15803d;
    --bel-success-text   : #15803d;
    --bel-error-bg       : #fef2f2;
    --bel-error-text     : #991b1b;
    --bel-info-bg        : #eff6ff;
    --bel-info-border    : #bfdbfe;
    --bel-info-text      : #1e40af;
    --bel-warning-bg     : #fffbeb;
    --bel-warning-border : #d97706;
    --bel-warning-text   : #92400e;
    --bel-warning-chip-bg: #fef3c7;
    --bel-warning-chip-bd: #fde68a;

    /* Phase 2 — utilitaires tableaux / liens / texte fort */
    --bel-text-strong    : #0a1f35;
    --bel-link-hover     : #0056b3;
    --bel-row-hover      : #f8fafc;
    --bel-th-sticky-bg   : #f1f5f9;
    --bel-avatar-border  : #e2e8f0;
    --bel-danger-bg      : #fee2e2;
    --bel-danger-text    : #991b1b;

    /* Phase 2bis — fiche élève (bef-*) */
    --bel-body           : #1a2e45;
    --bel-caption        : #6d85a0;
    --bel-faint          : #9aaccb;
    --bel-divider        : #f0f4f9;
    --bel-divider-soft   : #e8eef5;
    --bel-surface-card   : #fafcfe;
    --bel-surface-panel  : #f5f8fc;
}

/* === Sécurité SVG admin (évite icônes géantes si shell non chargé) === */
.bridge-content svg.bridge-ico-svg {
    width: 24px;
    height: 24px;
    max-width: 28px;
    max-height: 28px;
    flex-shrink: 0;
    display: block;
}
.bridge-content .bel-header-icon svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px;
    max-height: 28px;
}
.bridge-content .bel-tab-icon--svg svg {
    width: 16px !important;
    height: 16px !important;
}

/* === RESET === */
.bridge-admin-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* === LAYOUT PRINCIPAL === */
.bridge-admin-wrap {
    font-family: var(--bridge-font);
    background: #f0f4f8;
    min-height: 100vh;
    color: var(--bridge-text);
    width: 100% !important;
    max-width: 100% !important;
}

/* === PLEINE LARGEUR - Override Astra === */
.ast-container,
.site-content,
.ast-article-single,
.entry-content,
.post-content,
.page,
#content,
#primary,
.content-area {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.entry-header,
.ast-breadcrumbs-wrapper {
    display: none !important;
}

/* === TOPBAR === */
.bridge-topbar {
    background: linear-gradient(135deg, var(--bridge-primary), var(--bridge-secondary));
    color: white;
    padding: 0 30px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.bridge-topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Topbar gauche : école | burger | portail (symétrie premium) */
.bridge-topbar-brand-row {
    gap: 0;
    min-width: 0;
    flex: 1;
}
.bridge-topbar-brand-block {
    display: flex;
    align-items: center;
    min-width: 0;
    padding-right: 2px;
}
.bridge-topbar-school {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
}
.bridge-topbar-school--short {
    display: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.14em;
}
body.bridge-sidebar-collapsed .bridge-topbar-school--full {
    display: none;
}
body.bridge-sidebar-collapsed .bridge-topbar-school--short {
    display: inline;
}
.bridge-topbar-sep {
    width: 1px;
    height: 26px;
    background: rgba(255,255,255,0.28);
    margin: 0 14px;
    flex-shrink: 0;
}
.bridge-topbar-portal {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
    white-space: nowrap;
}

.bridge-topbar-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 12px;
}
.bridge-topbar-left.bridge-topbar-brand-row {
    flex: 0 1 auto;
}
.bridge-topbar-right {
    flex: 0 0 auto;
}

/* Sélecteur établissement (topbar) */
.bridge-topbar .bridge-ecole-selector {
    position: relative;
    z-index: 1002;
}
.bridge-topbar .bes-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 9px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
    transition: background 0.2s, border-color 0.2s;
    max-width: min(320px, 42vw);
}
.bridge-topbar .bes-trigger:hover,
.bridge-topbar .bes-trigger.open {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.45);
}
.bridge-topbar .bes-icon {
    display: inline-flex;
    align-items: center;
    opacity: 0.9;
    flex-shrink: 0;
}
.bridge-topbar .bes-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.bridge-topbar .bes-arrow {
    display: inline-flex;
    opacity: 0.75;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.bridge-topbar .bes-trigger.open .bes-arrow {
    transform: rotate(180deg);
}
.bridge-topbar .bes-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    background: #fff;
    border: 1px solid #e2eaf3;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(10,30,60,0.18);
    min-width: 280px;
    max-width: 340px;
    display: none;
    overflow: hidden;
}
.bridge-topbar .bes-dropdown.open {
    display: block;
}
.bes-header {
    background: #f5f8fc;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6d85a0;
}
.bes-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #1a2e45;
    text-align: left;
    transition: background 0.15s;
}
.bes-item:hover { background: #f0f9fa; }
.bes-item.is-active { background: #e0f7fa; font-weight: 600; color: #006978; }
.bes-logo, .bes-letter {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}
.bes-letter {
    background: #e0f7fa;
    color: #006978;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}
.bes-letter--add {
    background: var(--bridge-primary, #0097a7);
    color: #fff;
}
.bes-item-name { flex: 1; }
.bes-check { color: #27ae60; font-weight: 800; }
.bes-divider { height: 1px; background: #e2eaf3; margin: 4px 0; }
.bes-add { color: #0097a7; font-weight: 600; }
.bes-modal {
    position: fixed;
    inset: 0;
    background: rgba(10,30,60,0.5);
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bes-modal-content {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.bes-modal-content h3 { margin: 0 0 18px; color: #0a1f35; }
.bes-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    justify-content: flex-end;
}
.bes-modal .bec-field { margin-bottom: 12px; }
.bes-modal .bec-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #4a6075;
}
.bec-btn-primary,
.bes-modal .bec-btn-primary {
    padding: 8px 16px;
    background: var(--bridge-primary, #0097a7);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.bec-btn-ghost,
.bes-modal .bec-btn-ghost {
    padding: 8px 16px;
    background: transparent;
    color: #4a6075;
    border: 1px solid #d0dae6;
    border-radius: 8px;
    cursor: pointer;
}

.bridge-topbar-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.bridge-topbar-logo:hover {
    transform: scale(1.05);
}

.bridge-topbar-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Bouton hamburger topbar (TOUJOURS visible, à côté du titre) === */
.bridge-topbar-burger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.1);
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.bridge-topbar-burger:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
}
.bridge-topbar-burger:active { transform: scale(.94); }
.bridge-topbar-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.bridge-topbar-burger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.bridge-topbar-burger.is-open span:nth-child(2) {
    opacity: 0;
}
.bridge-topbar-burger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.bridge-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bridge-topbar-year {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Année scolaire (badge topbar) */
.bridge-topbar-year {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.bridge-topbar-year-icon {
    display: inline-flex;
    opacity: 0.9;
}

/* Menu utilisateur (dropdown type portail BT) */
.bridge-topbar-user-wrap {
    position: relative;
    z-index: 1003;
}
.bridge-topbar-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font: inherit;
}
.bridge-topbar-user-trigger:hover,
.bridge-topbar-user-trigger.open {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.22);
}
.bridge-topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bridge-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}
.bridge-topbar-username {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    white-space: nowrap;
}
.bridge-topbar-user-chevron {
    display: inline-flex;
    opacity: 0.75;
    transition: transform 0.2s;
}
.bridge-topbar-user-trigger.open .bridge-topbar-user-chevron {
    transform: rotate(180deg);
}
.bridge-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background: #fff;
    border: 1px solid #e2eaf3;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(10,30,60,0.18);
    display: none;
    overflow: hidden;
}
.bridge-user-dropdown.open {
    display: block;
}
.bridge-user-dropdown-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--bridge-primary), var(--bridge-secondary));
    color: #fff;
}
.bridge-user-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}
.bridge-user-dropdown-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bridge-user-dropdown-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.25;
    word-break: break-word;
}
.bridge-user-dropdown-role {
    font-size: 11px;
    opacity: 0.88;
    font-weight: 500;
}
.bridge-user-dropdown-email {
    font-size: 10px;
    opacity: 0.72;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bridge-user-dropdown-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid #e8eef4;
}
.bridge-user-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--bridge-primary, #0097a7);
    transition: background 0.15s;
    border: none;
    background: #fff;
}
.bridge-user-action:hover {
    background: #f0f9fa;
    color: var(--bridge-secondary, #006978);
}
.bridge-user-action--logout {
    color: #c0392b;
    border-left: 1px solid #e8eef4;
}
.bridge-user-action--logout:hover {
    background: #fff5f5;
    color: #a93226;
}
.bridge-user-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* === LAYOUT (sidebar + contenu) === */
.bridge-layout {
    display: flex;
    min-height: calc(100vh - 65px);
}

/* === SIDEBAR === */
.bridge-sidebar {
    width: 260px;
    background: var(--bridge-secondary);
    color: white;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 65px);
    position: sticky;
    top: 65px;
    transition: width 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 100;
}

/* === BRAND (logo seul, centré, dans la sidebar) === */
.bridge-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    transition: padding 0.3s ease;
    min-height: 100px;
}

.bridge-sidebar-brand__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    transition: opacity 0.2s, transform 0.2s;
}
.bridge-sidebar-brand__link:hover {
    background: transparent;
    opacity: 0.92;
    transform: scale(1.03);
}

.bridge-sidebar-brand__logo,
.bridge-sidebar-brand__logo--on-dark {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: block;
    transition: width 0.3s ease, height 0.3s ease;
}

.bridge-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0 10px;
}

/* Accessibilité — label masqué visuellement */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

/* Recherche dans le menu */
.bridge-sidebar-search {
    padding: 10px 14px 8px;
    flex-shrink: 0;
    position: relative;
}
.bridge-sidebar-search__collapsed-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.bridge-sidebar-search__collapsed-btn:hover,
.bridge-sidebar-search__collapsed-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--bridge-accent);
    outline: none;
}
.bridge-sidebar-search.is-flyout-open {
    position: fixed;
    left: 68px;
    top: 78px;
    width: 260px;
    z-index: 1110;
    padding: 12px 14px;
    background: var(--bridge-secondary);
    border-radius: 0 10px 10px 0;
    box-shadow: 8px 6px 24px rgba(0, 0, 0, 0.35);
}
.bridge-sidebar-search.is-flyout-open .bridge-sidebar-search__collapsed-btn {
    display: none;
}
.bridge-sidebar-search.is-flyout-open .bridge-sidebar-search__input {
    display: block;
}
.bridge-sidebar-search__input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 11px center no-repeat;
    color: #fff;
    font-size: 12.5px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.bridge-sidebar-search__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.bridge-sidebar-search__input:focus {
    border-color: var(--bridge-accent);
    background-color: rgba(0, 0, 0, 0.28);
}
.bridge-sidebar-group.is-nav-hidden,
.bridge-sidebar-submenu li.is-nav-hidden {
    display: none !important;
}

.bridge-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.bridge-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.bridge-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.bridge-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bridge-sidebar-menu li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 11px 22px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.bridge-sidebar-menu li a:hover,
.bridge-sidebar-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--bridge-accent);
}

.bridge-sidebar-menu li a .menu-icon {
    font-size: 0;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.bridge-sidebar-menu li a span:not(.menu-icon) {
    transition: opacity 0.2s;
    white-space: nowrap;
}

.bridge-sidebar-section {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    padding: 18px 22px 6px;
    font-weight: 700;
    white-space: nowrap;
    text-align: left;
}

/* === SIDEBAR MODE RÉDUIT (compléments) === */
.bridge-sidebar.collapsed .bridge-sidebar-section {
    display: none;
}

/* === CONTENU PRINCIPAL === */
.bridge-content {
    flex: 1;
    padding: 30px;
    overflow-x: hidden;
}

/* === PAGE HEADER === */
.bridge-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.bridge-page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bridge-secondary);
}

.bridge-page-subtitle {
    font-size: 13px;
    color: #888;
    margin-top: 3px;
}

/* === CARDS STATISTIQUES === */
.bridge-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bridge-stat-card {
    background: white;
    border-radius: var(--bridge-radius);
    padding: 20px 25px;
    box-shadow: var(--bridge-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}

.bridge-stat-card:hover {
    transform: translateY(-3px);
}

.bridge-stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.bridge-stat-icon.blue   { background: #e3f2fd; }
.bridge-stat-icon.green  { background: #e8f5e9; }
.bridge-stat-icon.orange { background: #fff3e0; }
.bridge-stat-icon.red    { background: #fce4ec; }
.bridge-stat-icon.teal   { background: #e0f7fa; }

.bridge-stat-info h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--bridge-secondary);
    line-height: 1;
}

.bridge-stat-info p {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* === MODULES BUTTONS === */
.bridge-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.bridge-module-btn {
    background: white;
    border-radius: var(--bridge-radius);
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--bridge-text);
    box-shadow: var(--bridge-shadow);
    transition: all 0.2s;
    display: block;
    border: 2px solid transparent;
}

.bridge-module-btn:hover {
    border-color: var(--bridge-primary);
    color: var(--bridge-primary);
    transform: translateY(-3px);
}

.bridge-module-btn .module-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.bridge-module-btn .module-label {
    font-size: 13px;
    font-weight: 600;
}

/* === BOUTONS === */
.bridge-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.bridge-btn-primary   { background: var(--bridge-primary);   color: white; }
.bridge-btn-primary:hover { background: var(--bridge-primary-dark); color: white; }
.bridge-btn-secondary { background: var(--bridge-secondary); color: white; }
.bridge-btn-success   { background: var(--bridge-success);   color: white; }
.bridge-btn-danger    { background: var(--bridge-danger);    color: white; }
.bridge-btn-outline   { background: transparent; border: 2px solid var(--bridge-primary); color: var(--bridge-primary); }

/* === TABLES === */
.bridge-table-wrap {
    background: white;
    border-radius: var(--bridge-radius);
    box-shadow: var(--bridge-shadow);
    overflow: hidden;
}

.bridge-table {
    width: 100%;
    border-collapse: collapse;
}

.bridge-table thead th {
    background: var(--bridge-secondary);
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
}

.bridge-table tbody td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--bridge-border);
    font-size: 13px;
}

.bridge-table tbody tr:hover    { background: #f8f9ff; }
.bridge-table tbody tr:last-child td { border-bottom: none; }

/* === BADGES === */
.bridge-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.bridge-badge-success  { background: #d4edda; color: #155724; }
.bridge-badge-warning  { background: #fff3cd; color: #856404; }
.bridge-badge-danger   { background: #f8d7da; color: #721c24; }
.bridge-badge-info     { background: #d1ecf1; color: #0c5460; }
.bridge-badge-nouveau  { background: #e3f2fd; color: #1565c0; }
.bridge-badge-ancien   { background: #e8f5e9; color: #2e7d32; }

/* === FORMULAIRES === */
.bridge-form-card {
    background: white;
    border-radius: var(--bridge-radius);
    box-shadow: var(--bridge-shadow);
    padding: 30px;
}

.bridge-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bridge-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--bridge-secondary);
}

.bridge-form-group input,
.bridge-form-group select,
.bridge-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--bridge-border);
    border-radius: 7px;
    font-size: 13px;
    font-family: var(--bridge-font);
    transition: border-color 0.2s;
}

.bridge-form-group input:focus,
.bridge-form-group select:focus,
.bridge-form-group textarea:focus {
    outline: none;
    border-color: var(--bridge-primary);
    box-shadow: 0 0 0 3px rgba(0,151,167,0.1);
}

.bridge-form-group .bridge-required { color: var(--bridge-danger); }

/* === ALERTS === */
.bridge-alert {
    padding: 14px 18px;
    border-radius: 7px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bridge-alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.bridge-alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .bridge-content      { padding: 15px; width: 100%; min-width: 0; }
    .bridge-topbar       { padding: 0 12px; }
    .bridge-stats-grid   { grid-template-columns: 1fr 1fr; }
    .bridge-modules-grid { grid-template-columns: repeat(3, 1fr); }

    .bridge-topbar-username,
    .bridge-topbar-user-chevron,
    .bridge-topbar-year { display: none; }
    .bridge-topbar-user-trigger {
        padding: 2px;
    }
    .bridge-user-dropdown {
        width: min(280px, calc(100vw - 24px));
    }
    .bridge-topbar-school--full {
        font-size: 14px;
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .bridge-topbar-sep {
        margin: 0 10px;
        height: 22px;
    }
    .bridge-topbar-portal {
        font-size: 11px;
        letter-spacing: 0.08em;
    }
    .bridge-topbar-center {
        padding: 0 6px;
    }
    .bridge-topbar .bes-trigger {
        padding: 6px 10px;
        max-width: 38vw;
        font-size: 11px;
    }
    .bridge-topbar .bes-dropdown {
        left: auto;
        right: 0;
        transform: none;
        min-width: 260px;
    }
    body.bridge-sidebar-collapsed .bridge-topbar-school--short {
        display: none;
    }
    body.bridge-sidebar-collapsed .bridge-topbar-school--full {
        display: inline;
    }
    .bridge-layout {
        display: block;
    }

    /* Sidebar devient drawer mobile (overlay slide depuis la gauche) */
    .bridge-sidebar {
        position: fixed;
        top: 65px;
        left: 0;
        height: calc(100vh - 65px);
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        z-index: 1500;
        width: 280px;
        box-shadow: 4px 0 24px rgba(0,0,0,0.25);
    }
    .bridge-sidebar.is-mobile-open { transform: translateX(0); }

    /* Logo compact mobile — plus de place pour la navigation */
    .bridge-sidebar-brand {
        min-height: 64px;
        padding: 12px 16px;
    }
    .bridge-sidebar-brand__logo,
    .bridge-sidebar-brand__logo--on-dark {
        width: 52px;
        height: 52px;
    }

    /* Mode collapsed désactivé sur mobile (toujours expanded dans le drawer) */
    .bridge-sidebar.collapsed { width: 280px; }
    .bridge-sidebar.collapsed .bridge-sidebar-brand {
        padding: 12px 16px;
        min-height: 64px;
        justify-content: center;
    }
    .bridge-sidebar.collapsed .bridge-sidebar-brand__logo {
        width: 52px;
        height: 52px;
    }
    .bridge-sidebar-group-header {
        justify-content: flex-start;
        padding: 12px 18px;
        gap: 12px;
        min-height: 44px;
    }
    .bridge-sidebar-group-trigger {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: auto;
    }
    .bridge-sidebar-group-header .group-short-label {
        display: none;
    }
    .bridge-sidebar-group-header .group-label,
    .bridge-sidebar-group-header .group-arrow {
        display: inline-flex;
    }
    .bridge-sidebar.collapsed .bridge-sidebar-group-header .menu-icon {
        font-size: 17px;
        width: 24px;
        text-align: center;
    }
    /* Accordéon classique en mobile (pas de flyout) */
    .bridge-sidebar.collapsed .bridge-sidebar-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        background: rgba(0,0,0,0.18);
        max-height: 0;
        min-width: 0;
        max-width: none;
        overflow: hidden;
        padding: 0;
        border-radius: 0;
    }
    .bridge-sidebar.collapsed .bridge-sidebar-group.open .bridge-sidebar-submenu { max-height: 2000px; }
    .bridge-sidebar.collapsed .bridge-submenu-title { display: none; }
    .bridge-sidebar-submenu li a {
        min-height: 44px;
        padding: 12px 18px 12px 34px;
    }
    .bridge-sidebar.collapsed .bridge-sidebar-submenu li a {
        padding: 12px 18px 12px 34px;
        gap: 10px;
        font-size: 13px;
        border-left: 3px solid transparent;
        border-bottom: none;
    }
    .bridge-sidebar.collapsed .bridge-sidebar-submenu li a .menu-icon {
        display: inline-flex;
    }
    .bridge-sidebar.collapsed .bridge-sidebar-submenu li a.active::before {
        display: none;
    }

    /* Overlay sombre derrière le drawer (sans backdrop-filter = perf mobile) */
    button.bridge-sidebar-overlay,
    .bridge-sidebar-overlay {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        padding: 0;
        border: none;
        cursor: pointer;
        background: rgba(15, 23, 42, 0.55);
        z-index: 1400;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    }
    body.bridge-sidebar-open .bridge-sidebar-overlay {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.2s ease;
    }
    /* Bloque le scroll du body quand le drawer est ouvert */
    body.bridge-sidebar-open {
        overflow: hidden;
    }
}

/* L'overlay est masqué hors mobile */
@media (min-width: 769px) {
    .bridge-sidebar-overlay { display: none; }
}

/* ================================================
   BRIDGE SCHOOL - Sidebar Accordéon (v2)
   ================================================ */

/* === Groupe de section (accordéon) === */
.bridge-sidebar-group {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
}

/* En-tête de groupe (cliquable) */
button.bridge-sidebar-group-header,
.bridge-sidebar-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-family: inherit;
    text-align: left;
    transition: background 0.2s;
    user-select: none;
    outline: none;
}
.bridge-sidebar-group-trigger {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.bridge-sidebar-group-header .group-short-label {
    display: none;
}
.bridge-sidebar:not(.collapsed) .bridge-sidebar-group-trigger {
    flex: 0 0 auto;
    width: auto;
}
.bridge-sidebar-group-header .group-label {
    display: block;
    flex: 1;
    white-space: nowrap;
}
.bridge-sidebar-group-header .group-arrow {
    display: inline-flex;
}
.bridge-sidebar-group-header:hover,
.bridge-sidebar-group-header:focus-visible {
    background: rgba(255,255,255,0.07);
}
.bridge-sidebar-group-header:focus-visible {
    box-shadow: inset 3px 0 0 var(--bridge-accent);
}

.bridge-sidebar-group-header .menu-icon {
    font-size: 0;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* Icônes SVG monochromes (harmonisées Outils / Paramétrage) */
.menu-icon.menu-icon--svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.78);
    line-height: 0;
}
.menu-icon--svg .bridge-ico-svg {
    width: 20px;
    height: 20px;
    display: block;
}
.bridge-sidebar-group.open .bridge-sidebar-group-header .menu-icon--svg {
    color: var(--bridge-accent);
}
.bridge-sidebar-submenu li a .menu-icon--svg {
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.65);
}
.bridge-sidebar-submenu li a:hover .menu-icon--svg,
.bridge-sidebar-submenu li a.active .menu-icon--svg {
    color: #fff;
}
.bridge-sidebar.collapsed .bridge-sidebar-group-header .menu-icon--svg .bridge-ico-svg {
    width: 22px;
    height: 22px;
}

.bridge-sidebar-group-header .group-label {
    flex: 1;
    white-space: nowrap;
}

/* === Chevron SVG (plus grand, animé) === */
.bridge-sidebar-group-header .group-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: rgba(255,255,255,0.5);
    transition: transform 0.3s ease, color 0.2s ease;
    flex-shrink: 0;
}
.bridge-sidebar-group-header .group-arrow svg {
    display: block;
}
.bridge-sidebar-group.open .group-arrow {
    transform: rotate(180deg);
    color: var(--bridge-accent);
}
.bridge-sidebar-group.open .bridge-sidebar-group-header {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

/* Sous-menu accordéon (sidebar dépliée) */
.bridge-sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.18);
}
.bridge-sidebar:not(.collapsed) .bridge-sidebar-group.open .bridge-sidebar-submenu {
    max-height: 2000px;
}

/* Titre du flyout (caché en mode normal, visible en mode collapsed) */
.bridge-submenu-title {
    display: none;
    padding: 12px 16px 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--bridge-accent);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 4px;
}

/* Items du sous-menu */
.bridge-sidebar-submenu li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 34px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
/* Force le texte des items du sous-menu à rester visible quel que soit le mode */
.bridge-sidebar-submenu li a .menu-label,
.bridge-sidebar-submenu li a .soon-badge {
    display: inline-flex !important;
}
.bridge-sidebar-submenu li a:hover,
.bridge-sidebar-submenu li a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: var(--bridge-accent);
}
.bridge-sidebar-submenu li a .menu-icon {
    font-size: 0;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.bridge-sidebar-submenu li a .menu-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ════════════════════════════════════════════════
   MODE REPLIÉ (collapsed) — rail + flyout au clic
   ════════════════════════════════════════════════ */
.bridge-sidebar.collapsed {
    width: 68px;
    overflow: visible;
}
.bridge-sidebar.collapsed .bridge-sidebar-nav { overflow: visible; }
.bridge-sidebar.collapsed .bridge-sidebar-search {
    display: block;
    padding: 8px 6px;
}
.bridge-sidebar.collapsed .bridge-sidebar-search__input {
    display: none;
}
.bridge-sidebar.collapsed .bridge-sidebar-search__collapsed-btn {
    display: inline-flex;
}
.bridge-sidebar.collapsed .bridge-sidebar-brand {
    padding: 12px 6px;
    min-height: 70px;
}
.bridge-sidebar.collapsed .bridge-sidebar-brand__logo {
    width: 46px;
    height: 46px;
}
.bridge-sidebar.collapsed .bridge-sidebar-group-header {
    justify-content: center;
    padding: 10px 0 8px;
    gap: 0;
}
.bridge-sidebar.collapsed .bridge-sidebar-group-trigger {
    flex-direction: column;
    gap: 4px;
    width: 100%;
    flex: none;
}
.bridge-sidebar.collapsed .group-short-label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255,255,255,0.78);
    max-width: 66px;
    text-align: center;
    word-wrap: break-word;
}
.bridge-sidebar.collapsed .bridge-sidebar-group.open .group-short-label,
.bridge-sidebar.collapsed .bridge-sidebar-group.is-flyout-open .group-short-label,
.bridge-sidebar.collapsed .bridge-sidebar-group.has-active-link .group-short-label {
    color: var(--bridge-accent);
    font-weight: 700;
}
.bridge-sidebar.collapsed .bridge-sidebar-group.has-active-link .bridge-sidebar-group-header {
    background: rgba(255, 255, 255, 0.09);
}
.bridge-sidebar.collapsed .bridge-sidebar-group.has-active-link .menu-icon--svg {
    color: var(--bridge-accent);
}
.bridge-sidebar.collapsed .bridge-sidebar-group-header .group-label,
.bridge-sidebar.collapsed .bridge-sidebar-group-header .group-arrow {
    display: none;
}
.bridge-sidebar.collapsed .bridge-sidebar-group { position: relative; }
.bridge-sidebar.collapsed .bridge-sidebar-group.open .bridge-sidebar-submenu {
    max-height: 0;
}

@media (min-width: 769px) {
    .bridge-sidebar.collapsed .bridge-sidebar-submenu {
        position: fixed;
        left: 68px;
        top: 0;
        min-width: 240px;
        max-width: 280px;
        max-height: calc(100vh - 80px);
        overflow-x: hidden;
        overflow-y: auto;
        background: var(--bridge-secondary);
        border-radius: 0 10px 10px 0;
        box-shadow: 8px 6px 24px rgba(0,0,0,0.35);
        padding: 4px 0 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-6px);
        transition: opacity 0.15s ease, transform 0.18s ease, visibility 0s linear 0.18s;
        pointer-events: none;
        z-index: 1100;
    }
    .bridge-sidebar.collapsed .bridge-sidebar-group.is-flyout-open .bridge-sidebar-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
        max-height: calc(100vh - 80px);
    }
    .bridge-sidebar.collapsed .bridge-submenu-title { display: block; }
    .bridge-sidebar.collapsed .bridge-sidebar-submenu li a {
        padding: 10px 18px;
        gap: 0;
        border-left-width: 0;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .bridge-sidebar.collapsed .bridge-sidebar-submenu li a .menu-icon { display: none; }
}
.bridge-sidebar.collapsed .bridge-sidebar-submenu li a.active::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--bridge-accent);
    margin-right: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* === FIX Services & Activités === */
.bsa-two-col {
    display: grid !important;
    grid-template-columns: 380px 1fr !important;
    gap: 20px !important;
    align-items: start !important;
}

.bsa-form-panel {
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    padding: 25px !important;
}

.bsa-list-panel {
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    padding: 25px !important;
}

@media (max-width: 900px) {
    .bsa-two-col {
        grid-template-columns: 1fr !important;
    }
}
/* Fix layout z-index (sidebar gère son position selon viewport) */
.bridge-layout {
    position: relative;
}
/* ════════════ MODULES BIENTÔT DISPONIBLES ════════════ */
.bridge-sidebar-submenu .is-soon {
    opacity: 0.5;
    cursor: not-allowed !important;
    position: relative;
}
.bridge-sidebar-submenu .is-soon:hover {
    background: rgba(255, 215, 100, 0.08) !important;
}
.bridge-sidebar-submenu .is-soon .menu-icon {
    filter: grayscale(70%);
}
.soon-badge {
    margin-left: auto;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white !important;
    font-size: 9px !important;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

/* Toast module « Bientôt » */
.bridge-sidebar-soon-toast {
    position: fixed;
    top: 78px;
    right: 20px;
    left: auto;
    max-width: min(360px, calc(100vw - 40px));
    z-index: 2000;
    margin: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
.bridge-sidebar-soon-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Tablette : sidebar repliée par défaut, contenu plus aéré */
@media (min-width: 769px) and (max-width: 1024px) {
    .bridge-content {
        padding: 20px;
    }
}

/* ════════════ Module 12 — matrice permissions (défilement horizontal) ════════════ */
.bridge-permissions-matrix-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin-top: 15px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
}

.bridge-permissions-matrix-wrap .bridge-permissions-matrix-table {
    margin: 0 !important;
    min-width: 880px;
}

/* ════════════ Mon profil (portail staff) ════════════ */
.bprof-wrap {
    max-width: 1100px;
    margin: 0 auto;
}
.bprof-breadcrumb {
    font-size: 12px;
    color: #6d85a0;
    margin-bottom: 12px;
}
.bprof-breadcrumb a {
    color: var(--bridge-primary, #0097a7);
    text-decoration: none;
}
.bprof-breadcrumb a:hover { text-decoration: underline; }
.bprof-breadcrumb-sep { margin: 0 6px; opacity: 0.6; }
.bprof-page-title h1 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    color: #1a2e45;
}
.bprof-layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) 1fr;
    gap: 20px;
    align-items: start;
}
.bprof-card {
    background: #fff;
    border: 1px solid #e2eaf3;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(10,30,60,0.06);
    overflow: hidden;
}
.bprof-card--identity {
    border-top: 3px solid var(--bridge-primary, #0097a7);
    padding: 20px;
    text-align: center;
}
.bprof-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bridge-primary), var(--bridge-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}
.bprof-dl {
    margin: 0;
    text-align: left;
}
.bprof-dl > div {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 12px;
}
.bprof-dl > div:last-child { border-bottom: none; }
.bprof-dl dt {
    margin: 0;
    color: #6d85a0;
    font-weight: 600;
}
.bprof-dl dd {
    margin: 0;
    color: #1a2e45;
    font-weight: 600;
    word-break: break-word;
}
.bprof-card--hint {
    margin-top: 12px;
    padding: 12px 14px;
    font-size: 11px;
    color: #6d85a0;
    background: #f8fafc;
}
.bprof-card--hint p { margin: 0; }
.bprof-card--pwd { padding: 0; }
.bprof-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eef4;
    background: #fafbfd;
}
.bprof-card-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a2e45;
}
.bprof-card-head-icon {
    display: inline-flex;
    color: var(--bridge-primary, #0097a7);
}
.bprof-stepper {
    list-style: none;
    margin: 0;
    padding: 20px 24px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}
.bprof-stepper::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: #dde4ec;
    z-index: 0;
}
.bprof-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    text-align: center;
}
.bprof-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8eef4;
    color: #6d85a0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #dde4ec;
}
.bprof-step.is-active .bprof-step-num {
    background: var(--bridge-primary, #0097a7);
    border-color: var(--bridge-primary, #0097a7);
    color: #fff;
}
.bprof-step.is-done .bprof-step-num {
    background: #e0f7fa;
    border-color: var(--bridge-primary, #0097a7);
    color: var(--bridge-secondary, #006978);
}
.bprof-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #6d85a0;
    max-width: 90px;
}
.bprof-step.is-active .bprof-step-label { color: #1a2e45; }
.bprof-form {
    padding: 20px 24px 24px;
}
.bprof-form-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px 16px;
    align-items: center;
    margin-bottom: 14px;
}
.bprof-form-row label {
    font-size: 13px;
    font-weight: 600;
    color: #4a6075;
}
.bprof-form-row input {
    max-width: 360px;
    width: 100%;
}
.bprof-form-hint,
.bprof-rules {
    font-size: 12px;
    color: #6d85a0;
    margin: 0 0 16px 216px;
}
.bprof-rules {
    list-style: disc;
    padding-left: 18px;
}
.bprof-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}
.bprof-btn-continue {
    min-width: 120px;
}
.bprof-success {
    padding: 40px 24px;
    text-align: center;
}
.bprof-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #d4edda;
    color: #155724;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bprof-success p {
    color: #4a6075;
    margin-bottom: 20px;
}
@media (max-width: 900px) {
    .bprof-layout { grid-template-columns: 1fr; }
    .bprof-form-row { grid-template-columns: 1fr; }
    .bprof-form-hint, .bprof-rules { margin-left: 0; }
    .bprof-stepper::before { display: none; }
}
