    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { margin: 0; background: #ffffff; font-family: 'Inter', Arial, sans-serif; color: #1a1a1a; }
    a { color: #0B3D91; text-decoration: none; }
    a:hover { color: #0A2E6E; }
    button { font-family: inherit; }
    ::-webkit-scrollbar { width: 8px; height: 8px; }
    ::-webkit-scrollbar-thumb { background: #cdd8ea; border-radius: 8px; }

    .bn-wrap { width: 100%; background: #ffffff; overflow-x: hidden; }

    /* Top utility bar */
    .bn-topbar { background: #0B3D91; display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding: 8px 40px; color: #fff; }
    .bn-topbar-icons { display: flex; gap: 10px; }
    .bn-topbar-icon { width: 26px; height: 26px; border-radius: 6px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; }
    .bn-topbar-phone { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }

    /* Header / nav */
    .bn-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 6px 40px; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 16px rgba(11,61,145,0.07); flex-wrap: wrap; gap: 14px; transition: box-shadow 0.2s; }
    .bn-logo { width: 68px; height: auto; display: block; cursor: pointer; transition: transform 0.15s; }
    .bn-logo:hover { transform: scale(1.04); }
    .bn-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; align-items: center; justify-content: center; border-radius: 8px; transition: background 0.15s; }
    .bn-nav-toggle:hover { background: #F3F9F5; }
    .bn-nav { display: flex; gap: 34px; font-size: 16px; font-weight: 500; color: #1a1a1a; flex-wrap: wrap; }
    .bn-nav a { color: #1a1a1a; position: relative; padding-bottom: 3px; transition: color 0.15s; }
    .bn-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: #0B3D91; border-radius: 2px; transition: right 0.2s ease; }
    .bn-nav a:hover { color: #0B3D91; }
    .bn-nav a:hover::after, .bn-nav a.active::after { right: 0; }
    .bn-nav a.active { color: #0B3D91; font-weight: 600; }
    .bn-auth-btn-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
    .bn-auth-btn { background: #0B3D91; color: #fff; border: none; border-radius: 999px; padding: 8px 20px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
    .bn-auth-btn:hover { background: #0A2E6E; }
    .bn-auth-underline { height: 2px; background: #0B3D91; }
    .bn-user-chip { position: relative; display: flex; align-items: center; }
    .bn-user-trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 4px; }
    .bn-user-name { font-weight: 600; font-size: 14.5px; color: #111; }
    .bn-user-trigger svg { transition: transform 0.15s; }
    .bn-user-trigger.open svg { transform: rotate(180deg); }
    .bn-account-dropdown {
      display: none; position: absolute; top: 100%; right: 0; margin-top: 8px; background: #fff; border: 1px solid #e6e6e6;
      border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,0.12); min-width: 210px; padding: 8px; z-index: 40;
    }
    .bn-account-dropdown.open { display: block; }
    .bn-account-dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; color: #1a1a1a; cursor: pointer; }
    .bn-account-dropdown a:hover { background: #F3F9F5; color: #0B3D91; }
    .bn-account-dropdown a.bn-logout-link { color: #C0392B; }
    .bn-account-dropdown a.bn-logout-link:hover { background: #FDECEA; color: #C0392B; }
    .bn-account-dropdown-sep { height: 1px; background: #eee; margin: 6px 4px; }

    /* Auth panel */
    #bn-view-auth { display: none; background: #FDF6EF; padding: 60px 40px 90px; justify-content: center; }
    .bn-auth-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 16px; box-shadow: 0 12px 34px rgba(0,0,0,0.08); width: 100%; max-width: 860px; padding: 38px 46px 46px; }
    .bn-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-size: 18px; font-weight: 600; }
    .bn-auth-tab { cursor: pointer; padding-bottom: 14px; color: #8a8a8a; }
    .bn-auth-tab.active { color: #1053C4; }
    .bn-auth-bar { display: grid; grid-template-columns: 1fr 1fr; height: 5px; border-radius: 3px; overflow: hidden; }
    .bn-auth-bar div { background: #b8b8b8; }
    .bn-auth-bar div.active { background: #1053C4; }
    .bn-auth-title { text-align: center; margin-top: 30px; }
    .bn-auth-title .t1 { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 600; color: #111; }
    .bn-auth-title .t2 { font-size: 15px; color: #8a8a8a; margin-top: 8px; }
    .bn-field { margin-top: 0; }
    .bn-field label { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 8px; display: block; }
    .bn-field input, .bn-field select, .bn-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #d9d9d9; border-radius: 8px; padding: 14px 16px; font-size: 14.5px; font-family: inherit; outline: none; color: #333; resize: vertical; }
    .bn-field input:focus, .bn-field select:focus, .bn-field textarea:focus { border-color: #1053C4; }
    .bn-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .bn-submit-btn { background: #1053C4; color: #fff; border: none; border-radius: 8px; padding: 16px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 6px; width: 100%; }
    .bn-submit-btn:hover { background: #0B3D91; }
    .bn-submit-btn:disabled { opacity: 0.6; cursor: default; }
    .bn-auth-switch { text-align: center; font-size: 14.5px; font-weight: 600; color: #111; }
    .bn-auth-switch span { color: #0B3D91; text-decoration: underline; cursor: pointer; }
    .bn-auth-error { background: #FDECEA; color: #C0392B; padding: 12px 16px; border-radius: 8px; font-size: 13.5px; display: none; }
    .bn-auth-success { background: #E6F4EA; color: #1F8A53; padding: 12px 16px; border-radius: 8px; font-size: 13.5px; display: none; }

    .bn-input-icon { display: flex; align-items: center; gap: 12px; border: 1px solid #d9d9d9; border-radius: 8px; padding: 14px 16px; }
    .bn-input-icon:focus-within { border-color: #1053C4; }
    .bn-input-icon input { flex: 1; min-width: 0; border: none; outline: none; font-size: 14.5px; font-family: inherit; color: #333; background: transparent; }
    .bn-input-icon svg { flex-shrink: 0; }
    .bn-eye-toggle { cursor: pointer; flex-shrink: 0; }
    .bn-remember-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
    .bn-remember-row label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #111; cursor: pointer; font-weight: 400; }
    .bn-remember-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #1053C4; cursor: pointer; }
    .bn-forgot-link { font-size: 14px; font-weight: 600; color: #0B3D91; text-decoration: underline; cursor: pointer; }

    .bn-profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
    .bn-profile-card { background: #F3F9F5; border: 1.5px solid #dfe8e2; border-radius: 12px; padding: 22px 16px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; text-align: center; }
    .bn-profile-card.selected { border-color: #1053C4; box-shadow: 0 0 0 3px rgba(16,83,196,0.12); }
    .bn-profile-icon { width: 44px; height: 44px; border-radius: 50%; background: #0B3D91; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .bn-profile-card .t { font-weight: 700; font-size: 15px; color: #111; }
    .bn-profile-card .d { font-size: 12px; color: #666; line-height: 1.5; }
    .bn-profile-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c7c7c7; margin-top: auto; }
    .bn-profile-card.selected .bn-profile-radio { border-color: #1053C4; background: radial-gradient(circle, #1053C4 40%, transparent 42%); }

    .bn-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
    .bn-type-card { background: #F3F9F5; border: 1.5px solid #dfe8e2; border-radius: 12px; padding: 22px 16px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; text-align: center; }
    .bn-type-card.selected { border-color: #1F8A53; box-shadow: 0 0 0 3px rgba(31,138,83,0.12); }
    .bn-type-icon { width: 44px; height: 44px; border-radius: 50%; background: #1F8A53; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .bn-type-card .t { font-weight: 700; font-size: 15px; color: #111; }
    .bn-type-card .d { font-size: 12.5px; color: #666; line-height: 1.5; }
    .bn-type-price { font-size: 22px; font-weight: 800; color: #1F8A53; line-height: 1.2; }
    .bn-type-price span { display: block; font-size: 11.5px; font-weight: 600; color: #6b7280; }
    .bn-type-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; text-align: left; width: 100%; }
    .bn-type-feats li { font-size: 12px; color: #333; display: flex; align-items: flex-start; gap: 7px; line-height: 1.4; }
    .bn-type-feats li::before { content: '✓'; color: #1F8A53; font-weight: 700; flex-shrink: 0; }
    .bn-type-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c7c7c7; }
    .bn-type-card.selected .bn-type-radio { border-color: #1F8A53; background: radial-gradient(circle, #1F8A53 40%, transparent 42%); }

    .bn-wizard-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; }
    .bn-btn-prev { background: #F5B301; color: #0B3D91; border: none; border-radius: 8px; padding: 14px 26px; font-size: 15px; font-weight: 700; cursor: pointer; }
    .bn-btn-prev:hover { background: #e0a400; }
    .bn-btn-next { background: #1053C4; color: #fff; border: none; border-radius: 8px; padding: 14px 26px; font-size: 15px; font-weight: 700; cursor: pointer; flex: 1; }
    .bn-btn-next:hover { background: #0B3D91; }
    .bn-btn-next:disabled { background: #c9c9c9; cursor: not-allowed; }

    /* Assistant Filleul (4 etapes) */
    .bn-filleul-subtitle { text-align: center; font-size: 15px; color: #8a8a8a; margin-top: 6px; }
    .bn-stepper-wrap { margin-top: 26px; }
    .bn-stepper-label { text-align: center; font-size: 14px; font-weight: 700; color: #111; margin-bottom: 14px; }
    .bn-stepper { display: flex; align-items: center; justify-content: center; }
    .bn-stepper-dot { width: 36px; height: 36px; border-radius: 50%; background: #e2e2e2; color: #666; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; transition: background 0.2s, color 0.2s; }
    .bn-stepper-dot.active { background: #0B3D91; color: #fff; }
    .bn-stepper-line { flex: 1; height: 3px; background: #e2e2e2; max-width: 90px; transition: background 0.2s; }
    .bn-stepper-line.active { background: #0B3D91; }
    .bn-subsection-title { font-weight: 700; font-size: 15.5px; color: #111; margin: 24px 0 16px; }
    .bn-filleul-substep { display: none; }
    .bn-filleul-substep.active { display: block; }

    .bn-success-wrap { display: none; text-align: center; }
    .bn-success-wrap.active { display: block; }
    .bn-success-title { font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 700; color: #0B3D91; margin-top: 6px; }
    .bn-success-icon { width: 74px; height: 74px; border-radius: 50%; background: #E6F4EA; display: flex; align-items: center; justify-content: center; margin: 22px auto; }
    .bn-success-sub { font-weight: 700; font-size: 16px; color: #111; margin-bottom: 6px; }
    .bn-success-text { font-size: 14px; color: #555; line-height: 1.6; max-width: 480px; margin: 0 auto; }
    .bn-success-card { text-align: left; background: #F3F9F5; border: 1px solid #dfe8e2; border-radius: 12px; padding: 20px 22px; margin: 26px 0; display: flex; flex-direction: column; gap: 14px; }
    .bn-success-row { display: flex; align-items: center; gap: 12px; }
    .bn-success-row-icon { width: 30px; height: 30px; border-radius: 50%; background: #1F8A53; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .bn-success-row .l { font-size: 11.5px; color: #777; }
    .bn-success-row .v { font-size: 14px; font-weight: 700; color: #111; }
    .bn-success-benefits { text-align: left; background: #0B3D91; border-radius: 12px; padding: 20px 22px; color: #fff; }
    .bn-success-benefits ul { margin: 12px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 2; }
    .bn-success-cta { margin-top: 24px; background: #F5B301; color: #0B3D91; }
    .bn-success-cta:hover { background: #e0a400; }

    /* Assistant Auteur (4 etapes) */
    .bn-avatar-upload-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
    .bn-avatar-circle { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid #0B3D91; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #F3F9F5; flex-shrink: 0; }
    .bn-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
    .bn-avatar-link { color: #E8600A; font-weight: 600; font-size: 14px; cursor: pointer; }

    .bn-upload-card { display: flex; gap: 14px; align-items: flex-start; background: #F7F7F7; border: 1px solid #e6e6e6; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
    .bn-upload-icon { width: 34px; height: 34px; border-radius: 8px; background: #0B3D91; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .bn-upload-info { flex: 1; min-width: 0; }
    .bn-upload-info .t { font-weight: 700; font-size: 14.5px; color: #111; }
    .bn-upload-info .t .req { color: #C0392B; }
    .bn-upload-info .d { font-size: 12px; color: #888; margin: 4px 0 10px; }
    .bn-upload-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #0B3D91; color: #0B3D91; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
    .bn-upload-btn:hover { background: #EEF3FC; }
    .bn-upload-filename { font-size: 12px; color: #1F8A53; margin-top: 8px; display: none; }

    /* Espaces Auteur / Parrain */
    .bn-espace-topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; background: #fff; border-bottom: 1px solid #eee; flex-wrap: wrap; gap: 12px; }
    .bn-espace-topbar .t { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 700; color: #0B3D91; }
    .bn-espace-back { font-size: 14px; font-weight: 600; color: #0B3D91; text-decoration: underline; cursor: pointer; }
    .bn-espace-body { padding: 28px 40px 60px; background: #FDF6EF; min-height: 60vh; }
    .bn-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
    .bn-kpi-box { background: #fff; border-radius: 14px; padding: 20px 22px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
    .bn-kpi-box .l { font-size: 12.5px; color: #8a8a8a; }
    .bn-kpi-box .v { font-size: 24px; font-weight: 700; color: #0B3D91; margin-top: 6px; }
    .bn-espace-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
    .bn-espace-card-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; gap: 10px; }
    .bn-espace-card-head .t { font-weight: 700; font-size: 15.5px; color: #111; }
    .bn-add-btn-espace { background: #0B3D91; color: #fff; border: none; border-radius: 999px; padding: 10px 20px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
    .bn-add-btn-espace:hover { background: #0A2E6E; }
    .bn-espace-table-head { display: flex; padding: 12px 22px; background: #F7F3EE; font-size: 11px; font-weight: 700; color: #8a8a8a; text-transform: uppercase; letter-spacing: 0.4px; }
    .bn-espace-row { display: flex; padding: 14px 22px; border-top: 1px solid #f2f2f2; font-size: 13.5px; align-items: center; gap: 8px; }
    .bn-espace-row .strong { font-weight: 600; color: #111; }
    .bn-espace-row .muted { color: #8a8a8a; }
    .bn-espace-actions { display: flex; gap: 8px; justify-content: flex-end; }
    .bn-espace-action { background: none; border: none; cursor: pointer; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 6px; }
    .bn-espace-action.edit { color: #0B3D91; }
    .bn-espace-action.edit:hover { background: #EEF3FC; }
    .bn-espace-action.danger { color: #C0392B; }
    .bn-espace-action.danger:hover { background: #FDECEA; }
    .bn-espace-empty { padding: 26px; text-align: center; color: #8a8a8a; font-size: 13.5px; }

    /* Modal generique */
    .bn-modal-overlay { position: fixed; inset: 0; background: rgba(20,20,40,0.35); display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
    .bn-modal-overlay.open { display: flex; }
    .bn-modal-box { background: #fff; border-radius: 14px; padding: 28px; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; }
    .bn-modal-box .t { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 700; color: #0B3D91; margin-bottom: 18px; }

    /* Apercu d'un livre : couverture pleine hauteur a gauche, contenu a droite */
    .bn-apercu-box { max-width: 680px; padding: 0; overflow: hidden; display: flex; align-items: stretch; position: relative; }
    .bn-apercu-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(20,20,40,0.4); border: none; color: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; z-index: 2; }
    .bn-apercu-close:hover { background: rgba(20,20,40,0.62); }
    .bn-apercu-cover { width: 42%; flex-shrink: 0; background: linear-gradient(135deg, #EEF3FC, #DCE7FA); }
    .bn-apercu-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
    .bn-apercu-content { flex: 1; min-width: 0; padding: 30px 30px 26px; display: flex; flex-direction: column; }
    .bn-apercu-titre { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 700; color: #0B3D91; line-height: 1.32; }
    .bn-apercu-auteur { font-size: 13.5px; color: #666; margin-top: 8px; }
    .bn-apercu-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
    .bn-apercu-badge { background: #EAF1FF; color: #0B3D91; font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
    .bn-apercu-resume-label { font-size: 11px; font-weight: 700; color: #E07B1A; text-transform: uppercase; letter-spacing: 0.6px; margin-top: 20px; margin-bottom: 8px; }
    .bn-apercu-resume { font-size: 14px; color: #333; line-height: 1.7; flex: 1; }
    .bn-apercu-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #f0e3c4; }
    .bn-apercu-btn-fermer { background: none; border: none; color: #6b7280; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 12px 18px; transition: color 0.15s; }
    .bn-apercu-btn-fermer:hover { color: #1a1a1a; }
    .bn-apercu-btn-acceder { background: #0B3D91; color: #fff; border: none; border-radius: 999px; padding: 13px 26px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.15s, box-shadow 0.15s, transform 0.15s; }
    .bn-apercu-btn-acceder:hover:not(:disabled) { background: #0A2E6E; box-shadow: 0 10px 20px rgba(11,61,145,0.28); transform: translateY(-2px); }
    .bn-apercu-btn-acceder:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
    .bn-apercu-dispo { font-size: 13.5px; font-weight: 600; padding: 10px 14px; border-radius: 8px; background: #EAF1FF; color: #0B3D91; }
    .bn-apercu-dispo.indisponible { background: #FDECEC; color: #c0392b; }
    .bn-apercu-emprunt-statut { font-size: 13px; color: #4a5468; margin-top: 10px; }
    @media (max-width: 560px) {
      .bn-apercu-box { flex-direction: column; max-height: 92vh; overflow-y: auto; }
      .bn-apercu-cover { width: 100%; height: 190px; }
      .bn-apercu-titre { font-size: 16.5px; }
      .bn-apercu-content { padding: 20px 20px 22px; }
      .bn-apercu-actions { flex-wrap: wrap; }
    }

    /* Fiches independantes (livre/these/memoire) : meme langage visuel que l'apercu, a l'echelle d'une page */
    .bn-fiche-wrap { display: flex; align-items: stretch; gap: 40px; background: #fff; border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 40px; }
    .bn-fiche-cover { width: 38%; flex-shrink: 0; min-height: 420px; background: linear-gradient(135deg, #EEF3FC, #DCE7FA); }
    .bn-fiche-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
    .bn-fiche-content { flex: 1; min-width: 0; padding: 38px 40px 34px; display: flex; flex-direction: column; }
    .bn-fiche-titre { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 700; color: #0B3D91; line-height: 1.32; }
    .bn-fiche-auteur { font-size: 14.5px; color: #666; margin-top: 10px; }
    .bn-fiche-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
    .bn-fiche-badge { background: #EAF1FF; color: #0B3D91; font-size: 11.5px; font-weight: 600; padding: 5px 13px; border-radius: 999px; }
    .bn-fiche-resume-label { font-size: 11.5px; font-weight: 700; color: #E07B1A; text-transform: uppercase; letter-spacing: 0.6px; margin-top: 26px; margin-bottom: 10px; }
    .bn-fiche-resume { font-size: 14.5px; color: #333; line-height: 1.75; flex: 1; }
    .bn-fiche-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #f0e3c4; }
    .bn-fiche-btn-acceder { background: #0B3D91; color: #fff; border: none; border-radius: 999px; padding: 14px 28px; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background 0.15s, box-shadow 0.15s, transform 0.15s; }
    .bn-fiche-btn-acceder:hover:not(:disabled) { background: #0A2E6E; box-shadow: 0 10px 20px rgba(11,61,145,0.28); transform: translateY(-2px); }
    .bn-fiche-btn-acceder:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
    .bn-fiche-btn-secondaire { background: none; border: 1.5px solid #d8d8d8; color: #4a5468; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 12.5px 24px; border-radius: 999px; transition: border-color 0.15s, color 0.15s; }
    .bn-fiche-btn-secondaire:hover { border-color: #0B3D91; color: #0B3D91; }
    .bn-fiche-dispo { font-size: 13.5px; font-weight: 600; padding: 10px 14px; border-radius: 8px; background: #EAF1FF; color: #0B3D91; display: inline-block; }
    .bn-fiche-dispo.indisponible { background: #FDECEC; color: #c0392b; }
    .bn-fiche-emprunt-statut { font-size: 13.5px; color: #4a5468; margin-top: 12px; }
    @media (max-width: 760px) {
      .bn-fiche-wrap { flex-direction: column; }
      .bn-fiche-cover { width: 100%; min-height: 260px; }
      .bn-fiche-content { padding: 24px 22px 26px; }
      .bn-fiche-titre { font-size: 21px; }
    }

    /* Coquille a barre laterale partagee par Espace Auteur / Espace Parrain */
    .bn-espace-shell { display: flex; flex-direction: column; min-height: 100vh; background: #FDF6EF; }
    .bn-espace-banner { background: #0B3D91; color: #fff; text-align: center; padding: 14px; font-weight: 700; font-size: 14.5px; letter-spacing: 0.5px; }
    .bn-espace-layout { display: flex; flex: 1; align-items: stretch; }
    .bn-espace-sidebar { width: 272px; flex-shrink: 0; background: #fff; border-right: 1px solid #eee; display: flex; flex-direction: column; padding: 26px 20px; }
    .bn-espace-sidebar-logo { width: 92px; margin: 0 auto 22px; display: block; }
    .bn-espace-identity { text-align: center; padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 16px; }
    .bn-espace-avatar-lg { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; background: #F3F9F5; display: flex; align-items: center; justify-content: center; }
    .bn-espace-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
    .bn-espace-identity-name { font-weight: 700; font-size: 16px; color: #111; }
    .bn-espace-identity-role { font-size: 13px; color: #8a8a8a; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; }
    .bn-verified-badge { background: #E6F4EA; color: #1F8A53; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
    .bn-espace-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
    .bn-espace-nav-item { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 9px; font-size: 15.5px; font-weight: 500; color: #444; cursor: pointer; }
    .bn-espace-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
    .bn-espace-nav-item:hover { background: #F3F9F5; }
    .bn-espace-nav-item.active { background: #0B3D91; color: #fff; }
    .bn-espace-logout-btn { text-align: center; padding: 13px; border-radius: 9px; background: #F5B301; color: #0B3D91; font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 12px; }
    .bn-espace-logout-btn:hover { background: #e0a400; }
    .bn-espace-main { flex: 1; padding: 28px 34px 60px; min-width: 0; }
    .bn-espace-topline { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
    .bn-espace-greeting { font-family: 'Poppins', sans-serif; font-size: 21px; font-weight: 700; color: #111; }
    .bn-espace-subgreeting { font-size: 13.5px; color: #8a8a8a; margin-top: 4px; }
    .bn-espace-grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 24px; }
    .bn-espace-recent-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
    .bn-espace-recent-item:last-child { border-bottom: none; }
    .bn-espace-recent-cover { width: 38px; height: 52px; border-radius: 6px; background: linear-gradient(135deg,#EEF3FC,#DCE7FA); flex-shrink: 0; }
    .bn-espace-recent-info { flex: 1; min-width: 0; }
    .bn-espace-recent-info .t { font-weight: 600; font-size: 13.5px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .bn-espace-recent-stats { font-size: 11.5px; color: #8a8a8a; display: flex; gap: 12px; margin-top: 3px; }
    .bn-chart-legend { display: flex; gap: 18px; font-size: 12px; margin-top: 8px; color: #555; }
    .bn-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
    .bn-chart-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
    .bn-chart-total-box { background: #F7F3EE; border-radius: 10px; padding: 12px 14px; }
    .bn-chart-total-box .l { font-size: 11px; color: #8a8a8a; }
    .bn-chart-total-box .v { font-size: 18px; font-weight: 700; color: #111; margin-top: 2px; }

    .bn-espace-panel-header { margin-bottom: 22px; }
    .bn-espace-panel-header .t { font-family: 'Poppins', sans-serif; font-size: 21px; font-weight: 700; color: #111; }
    .bn-espace-panel-header .sub { font-size: 13.5px; color: #8a8a8a; margin-top: 4px; }
    .bn-upload-btn.danger { border-color: #C0392B; color: #C0392B; }
    .bn-upload-btn.danger:hover { background: #FDECEA; }
    .bn-msg-thread { padding: 22px; max-height: 440px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
    .bn-msg-bubble { max-width: 70%; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
    .bn-msg-bubble .meta { font-size: 10.5px; margin-top: 4px; opacity: 0.7; }
    .bn-msg-bubble.recu { align-self: flex-start; background: #F3F9F5; color: #111; border-bottom-left-radius: 2px; }
    .bn-msg-bubble.envoye { align-self: flex-end; background: #0B3D91; color: #fff; border-bottom-right-radius: 2px; }
    .bn-msg-form { display: flex; gap: 12px; padding: 16px 22px; border-top: 1px solid #f0f0f0; }
    .bn-msg-form textarea { flex: 1; resize: none; border: 1.5px solid #e6e6e6; border-radius: 10px; padding: 10px 14px; font-family: inherit; font-size: 13.5px; outline: none; }
    .bn-msg-form textarea:focus { border-color: #0B3D91; }
    .bn-donut-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13px; }
    .bn-donut-row .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 8px; }

    .bn-oeuvres-tabs { display: flex; gap: 22px; flex-wrap: wrap; }
    .bn-oeuvres-tab { font-size: 13.5px; font-weight: 600; color: #8a8a8a; cursor: pointer; padding-bottom: 8px; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 7px; }
    .bn-oeuvres-tab.active { color: #0B3D91; border-bottom-color: #0B3D91; }
    .bn-oeuvres-tab .badge { background: #F0F0F0; color: #666; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; }
    .bn-page-btn { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 7px; border: 1px solid #e6e6e6; background: #fff; font-size: 13px; font-weight: 600; color: #444; cursor: pointer; }
    .bn-page-btn:hover:not(:disabled) { background: #F3F9F5; }
    .bn-page-btn.active { background: #0B3D91; color: #fff; border-color: #0B3D91; }
    .bn-page-btn:disabled { opacity: 0.4; cursor: default; }
    .bn-dropzone { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; border: 1.5px dashed #c9d6ec; border-radius: 12px; padding: 26px 14px; cursor: pointer; background: #FAFBFF; }
    .bn-dropzone:hover, .bn-dropzone.dragover { border-color: #1053C4; background: #EEF3FC; }
    .bn-dropzone .ic { font-size: 28px; }
    .bn-dropzone .d { font-size: 11px; color: #8a8a8a; margin-top: 2px; }

    .bn-inbox-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: stretch; min-height: 520px; }
    .bn-inbox-list { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
    .bn-inbox-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; }
    .bn-inbox-item.active { background: #F3F9F5; }
    .bn-inbox-avatar { width: 42px; height: 42px; border-radius: 50%; background: #0B3D91; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; overflow: hidden; }
    .bn-inbox-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .bn-inbox-item-body { flex: 1; min-width: 0; }
    .bn-inbox-item-name { font-size: 13.5px; font-weight: 700; color: #111; }
    .bn-inbox-item-preview { font-size: 12px; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
    .bn-inbox-thread { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; overflow: hidden; }
    .bn-inbox-thread-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #f0f0f0; }

    .bn-excel-scroll { max-height: 320px; overflow-y: auto; border: 1px solid #dcdcdc; border-radius: 8px; }
    .bn-excel-table { width: 100%; border-collapse: collapse; font-size: 13px; }
    .bn-excel-table thead th { position: sticky; top: 0; background: #F7F3EE; border: 1px solid #dcdcdc; padding: 9px 10px; text-align: left; font-size: 11px; font-weight: 700; color: #8a8a8a; text-transform: uppercase; letter-spacing: 0.3px; }
    .bn-excel-table th.num, .bn-excel-table td.num { width: 34px; text-align: center; }
    .bn-excel-table td { border: 1px solid #e2e2e2; padding: 0; background: #fff; }
    .bn-excel-table td.num { color: #8a8a8a; font-size: 12px; background: #FAFAFA; }
    .bn-excel-table input { width: 100%; box-sizing: border-box; border: none; padding: 9px 10px; font-size: 13px; font-family: inherit; outline: none; background: transparent; }
    .bn-excel-table input:focus { background: #EEF3FC; }
    .bn-excel-row-del { width: 100%; background: none; border: none; color: #C0392B; font-size: 16px; cursor: pointer; padding: 6px; line-height: 1; }
    .bn-excel-row-del:hover { background: #FDECEA; }

    @media (max-width: 900px) {
      .bn-espace-layout { flex-direction: column; }
      .bn-espace-sidebar { width: 100%; flex-direction: row; align-items: center; overflow-x: auto; padding: 14px; gap: 14px; }
      .bn-espace-sidebar-logo, .bn-espace-identity { display: none; }
      .bn-espace-nav { flex-direction: row; flex: none; }
      .bn-espace-logout-btn { margin-top: 0; white-space: nowrap; }
      .bn-espace-grid-2 { grid-template-columns: 1fr; }
    }

    /* Hero */
    .bn-hero { display: flex; width: 100%; height: 380px; position: relative; }
    .bn-hero-panel { width: 50%; height: 100%; position: relative; display: flex; align-items: center; }
    .bn-hero-panel.left { background: linear-gradient(135deg, #0B3D91, #1053C4); }
    .bn-hero-panel.right { background: url('/images/homepage/bibliotheque.jpg') center/cover no-repeat; }
    .bn-hero-text { position: relative; padding: 0 48px; color: #fff; max-width: 480px; }
    .bn-hero-text .t1 { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 700; line-height: 1.2; }
    .bn-hero-text .t2 { font-size: 17px; font-weight: 600; margin-top: 14px; }
    .bn-hero-text .t3 { font-size: 14.5px; line-height: 1.6; margin-top: 14px; opacity: 0.95; }
    .bn-hero-cta { margin-top: 22px; background: #0B3D91; border: 1.5px solid #fff; color: #fff; border-radius: 999px; padding: 13px 28px; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
    .bn-hero-cta:hover { background: #0A2E6E; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }

    /* Search bar */
    .bn-search-strip { position: relative; height: 55px; background: #F5B301; }
    .bn-search-bar { position: absolute; left: 50%; transform: translateX(-50%); top: -33px; width: calc(100% - 80px); box-sizing: border-box; background: #fff; border: 1.5px solid #e6e6e6; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); display: flex; align-items: center; padding: 8px 10px 8px 22px; gap: 14px; flex-wrap: wrap; }
    .bn-search-bar input { flex: 1; min-width: 160px; border: none; outline: none; font-size: 15px; color: #333; font-family: inherit; }
    .bn-search-submit { background: #fff; border: 1.5px solid #0B3D91; color: #0B3D91; border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; transition: background 0.15s, transform 0.15s; }
    .bn-search-submit:hover { background: #EEF3FC; transform: translateY(-1px); }
    .bn-search-bar { transition: box-shadow 0.2s; }
    .bn-search-bar:focus-within { box-shadow: 0 14px 34px rgba(11,61,145,0.18); }

    /* Boutons de recherche vocale/par photo : traitement "IA" (degrade + pastille etincelle) */
    .bn-ia-search-btn { position: relative; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: none; cursor: pointer; background: linear-gradient(135deg, #0B3D91, #6C3FC5); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(11,61,145,0.28); transition: transform 0.18s, box-shadow 0.18s; }
    .bn-ia-search-btn:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 18px rgba(11,61,145,0.38); }
    .bn-ia-search-btn .badge-ia { position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25)); }
    .bn-ia-search-btn.ecoute { background: linear-gradient(135deg, #C0392B, #E07B1A); animation: bn-ia-pulse 1.1s ease-out infinite; }
    @keyframes bn-ia-pulse {
      0% { box-shadow: 0 0 0 0 rgba(192,57,43,0.45); }
      70% { box-shadow: 0 0 0 9px rgba(192,57,43,0); }
      100% { box-shadow: 0 0 0 0 rgba(192,57,43,0); }
    }

    /* Sections */
    .bn-section { width: 100%; padding: 0 40px; box-sizing: border-box; }
    .bn-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
    .bn-section-title { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 700; color: #0B3D91; }
    .bn-section-link { font-size: 15px; font-weight: 600; color: #1a1a1a; text-decoration: underline; display: flex; align-items: center; gap: 6px; }
    .bn-dots { display: flex; justify-content: center; margin: 30px 0; }
    .bn-dots div { width: 130px; height: 5px; border-radius: 3px; background: #0B3D91; }

    /* Feature icons */
    .bn-features { background: #FCE0A0; border-radius: 20px; width: calc(100% - 80px); box-sizing: border-box; margin: 28px 40px 0; padding: 26px 24px; display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
    .bn-feature { background: #fff; border-radius: 14px; padding: 22px 12px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 130px; border: 1px solid #f0e3c4; transition: transform 0.18s, box-shadow 0.18s; }
    .bn-feature:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(224,123,26,0.16); }
    .bn-feature .ic { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
    .bn-feature .lb { font-size: 13.5px; font-weight: 600; color: #1a1a1a; text-align: center; line-height: 1.3; }

    /* Grids */
    .bn-books-grid, .bn-market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
    .bn-cat-grid { background: #FCE0A0; border-radius: 20px; margin-top: 20px; padding: 28px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
    .bn-cat-card { background: #fff; border-radius: 14px; border: 1px solid #f0e3c4; padding: 18px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 96px; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s; }
    .bn-cat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(224,123,26,0.16); }
    .bn-cat-card .lb { font-size: 13px; font-weight: 600; color: #1a1a1a; text-align: center; line-height: 1.3; }

    .bn-cover { width: 100%; height: 220px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #EEF3FC, #DCE7FA); display: flex; align-items: center; justify-content: center; }
    .bn-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
    .bn-book-card { display: flex; flex-direction: column; gap: 10px; transition: transform 0.18s; }
    .bn-book-card:hover { transform: translateY(-5px); }
    .bn-book-card:hover .bn-cover img { transform: scale(1.06); }
    .bn-book-title { font-size: 13.5px; font-weight: 600; color: #0F1B33; min-height: 34px; }
    .bn-book-btn { background: #0B3D91; color: #fff; border: none; border-radius: 999px; padding: 10px 0; font-size: 14.5px; font-weight: 600; cursor: pointer; width: 100%; transition: background 0.15s, box-shadow 0.15s; }
    .bn-book-btn:hover { background: #0A2E6E; box-shadow: 0 8px 16px rgba(11,61,145,0.22); }

    .bn-market-card { background: #fff; border: 1.5px solid #F5B301; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; transition: transform 0.18s, box-shadow 0.18s; }
    .bn-market-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(245,179,1,0.22); }
    .bn-market-cover { width: 100%; height: 160px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #FFF5E0, #FCE0A0); display: flex; align-items: center; justify-content: center; }
    .bn-market-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
    .bn-market-card:hover .bn-market-cover img { transform: scale(1.06); }
    .bn-market-title { font-size: 14px; font-weight: 700; color: #0F1B33; }
    .bn-market-price { font-size: 14px; font-weight: 700; color: #0B3D91; }
    .bn-market-btn { background: #0B3D91; color: #fff; border: none; border-radius: 8px; padding: 9px 0; font-size: 13px; font-weight: 600; cursor: pointer; width: 100%; transition: background 0.15s; }
    .bn-market-btn:hover { background: #0A2E6E; }

    /* Abonnements (choix libre-service) */
    .bn-abo-current { background: #EAF1FF; border: 1.5px solid #0B3D91; border-radius: 14px; padding: 18px 22px; margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
    .bn-abo-current .t1 { font-size: 13px; font-weight: 700; color: #0B3D91; text-transform: uppercase; letter-spacing: 0.4px; }
    .bn-abo-current .t2 { font-size: 15px; color: #1a1a1a; margin-top: 4px; }
    .bn-abo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
    .bn-abo-card { background: #fff; border: 1.5px solid #f0e3c4; border-radius: 16px; padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; transition: transform 0.18s, box-shadow 0.18s; }
    .bn-abo-card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(11,61,145,0.14); }
    .bn-abo-card.active-plan { border-color: #1F8A53; box-shadow: 0 0 0 2px rgba(31,138,83,0.25); }
    .bn-abo-name { font-size: 18px; font-weight: 700; color: #0F1B33; }
    .bn-abo-price { font-size: 26px; font-weight: 800; color: #E07B1A; }
    .bn-abo-price span { font-size: 13px; font-weight: 600; color: #6b7280; }
    .bn-abo-desc { font-size: 13.5px; color: #4a5468; line-height: 1.5; }
    .bn-abo-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
    .bn-abo-feats li { font-size: 13px; color: #1a1a1a; display: flex; align-items: center; gap: 8px; }
    .bn-abo-feats li::before { content: '✓'; color: #1F8A53; font-weight: 700; }
    .bn-abo-btn { background: #0B3D91; color: #fff; border: none; border-radius: 999px; padding: 11px 0; font-size: 14px; font-weight: 600; cursor: pointer; width: 100%; transition: background 0.15s, box-shadow 0.15s; }
    .bn-abo-btn:hover { background: #0A2E6E; box-shadow: 0 8px 16px rgba(11,61,145,0.22); }
    .bn-abo-btn:disabled { background: #1F8A53; cursor: default; }
    .bn-abo-periodes-row { display: flex; flex-direction: column; gap: 6px; }
    .bn-abo-periodes-label { font-size: 11.5px; font-weight: 600; color: #6b7280; }
    .bn-abo-periodes-boxes { display: flex; gap: 8px; }
    .bn-abo-periode-box { flex: 1; text-align: center; padding: 8px 4px; border-radius: 8px; border: 1.5px solid #e6e6e6; font-size: 12.5px; font-weight: 600; color: #4a5468; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
    .bn-abo-periode-box:hover { border-color: #0B3D91; }
    .bn-abo-periode-box.selected { border-color: #0B3D91; background: #0B3D91; color: #fff; }

    /* News */
    .bn-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .bn-news-hero { position: relative; border-radius: 14px; overflow: hidden; height: 380px; background: linear-gradient(135deg, #0B3D91, #1053C4); }
    .bn-news-hero-tag { position: absolute; top: 14px; left: 14px; background: #E8600A; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; padding: 6px 12px; border-radius: 6px; }
    .bn-news-hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 24px 20px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.72)); color: #fff; }
    .bn-news-hero-caption .t { font-size: 15px; font-weight: 700; line-height: 1.45; text-transform: uppercase; }
    .bn-news-side { display: flex; flex-direction: column; gap: 16px; }
    .bn-news-item { background: #F3F7FE; border: 1px solid #D8E4F8; border-radius: 14px; padding: 14px; display: flex; gap: 16px; align-items: flex-start; transition: transform 0.18s, box-shadow 0.18s; }
    .bn-news-item:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(11,61,145,0.1); }
    .bn-news-hero { transition: box-shadow 0.2s; }
    .bn-news-hero:hover { box-shadow: 0 14px 30px rgba(11,61,145,0.22); }
    .bn-news-thumb { width: 120px; height: 96px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #EEF3FC, #DCE7FA); display: flex; align-items: center; justify-content: center; }
    .bn-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .bn-news-item .t { font-size: 14px; font-weight: 700; color: #0F1B33; text-transform: uppercase; line-height: 1.35; }
    .bn-news-item .e { font-size: 11.5px; color: #4a5468; line-height: 1.55; margin-top: 8px; }
    .bn-news-item .d { font-size: 11.5px; font-weight: 600; color: #0F1B33; margin-top: 12px; }

    /* Promo banner */
    .bn-promo { border-radius: 16px; background: linear-gradient(90deg, rgba(11,61,145,0.90), rgba(11,61,145,0.55)), url('/images/homepage/bibliotheque.jpg') center/cover no-repeat; padding: 40px 46px; display: flex; align-items: center; justify-content: flex-start; gap: 30px; flex-wrap: wrap; }
    .bn-promo-text { color: #fff; max-width: 640px; }
    .bn-promo-text .t1 { font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 700; }
    .bn-promo-text .t2 { font-size: 14px; font-weight: 500; line-height: 1.7; margin-top: 12px; }
    .bn-promo-btn { margin-top: 22px; background: #fff; color: #0B3D91; border: none; border-radius: 999px; padding: 14px 30px; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
    .bn-promo-btn:hover { background: #f0f4fb; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.18); }

    /* Partners */
    .bn-partners { background: #FFF9F2; border-radius: 16px; padding: 34px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
    .bn-partner-card { height: 66px; border-radius: 8px; background: #fff; border: 1px solid #f0e3c4; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; color: #8a8a8a; text-align: center; padding: 0 10px; transition: box-shadow 0.15s, transform 0.15s; }
    .bn-partner-card:hover { box-shadow: 0 8px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }
    a.bn-partner-card { text-decoration: none; color: #8a8a8a; }

    /* Footer */
    .bn-footer { background: #0B4396; color: #fff; padding: 52px 40px 26px; }
    .bn-footer-grid { width: 100%; display: grid; grid-template-columns: 1.2fr 0.8fr 1.1fr 1.4fr; gap: 36px; }
    .bn-footer-logo { background: #fff; border-radius: 10px; width: 140px; padding: 8px; display: flex; }
    .bn-footer-logo img { width: 100%; height: auto; display: block; }
    .bn-footer h4 { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 14px; }
    .bn-footer-links { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
    .bn-footer-links a { color: #fff; }
    .bn-social { display: flex; gap: 14px; margin-top: 24px; }
    .bn-social div { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; background: rgba(255,255,255,0.15); }
    .bn-newsletter { display: flex; gap: 14px; flex-wrap: wrap; }
    .bn-newsletter input { flex: 1; min-width: 160px; border: none; border-radius: 8px; padding: 16px 18px; font-size: 14px; font-family: inherit; outline: none; color: #333; }
    .bn-newsletter button { background: #F5B301; color: #0B3D91; border: none; border-radius: 8px; padding: 16px 26px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
    .bn-newsletter button:hover { background: #e0a400; }
    .bn-newsletter-msg { font-size: 12.5px; color: #FCE0A0; margin-top: 8px; display: none; }
    .bn-footer-bottom { max-width: 1000px; margin: 40px auto 0; border-top: 1px solid rgba(255,255,255,0.35); padding-top: 22px; text-align: center; font-size: 15px; }

    .bn-empty { color: #8a8a8a; font-size: 13.5px; padding: 20px 0; }

    @media (max-width: 900px) {
      .bn-header { padding: 6px 16px; }
      .bn-nav-toggle { display: flex; }
      .bn-nav {
        display: flex; flex-direction: column; gap: 2px; font-size: 15.5px;
        position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        border-top: 1px solid #eee; box-shadow: 0 16px 30px rgba(0,0,0,0.12);
        padding: 8px 20px 16px; z-index: 45; max-height: 70vh; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
      }
      .bn-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
      .bn-nav a { padding: 13px 4px; border-bottom: 1px solid #f2f2f2; }
      .bn-nav a::after { display: none; }
      .bn-topbar { padding: 8px 20px; }
      .bn-hero { flex-direction: column; height: auto; }
      .bn-hero-panel { width: 100%; height: auto; padding: 40px 0; }
      .bn-hero-panel.right { height: 120px; padding: 0; }
      .bn-hero-text { padding: 0 24px; max-width: none; text-align: center; }
      .bn-hero-cta { margin-left: auto; margin-right: auto; }
      .bn-section { padding: 0 20px; }
      .bn-section-head { margin-bottom: 16px !important; }
      .bn-dots { margin: 24px 0 !important; }
      .bn-features { margin: 24px 20px 0; width: calc(100% - 40px); padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; justify-content: initial; }
      .bn-feature { width: auto; padding: 16px 8px 14px; }
      .bn-news-grid { grid-template-columns: 1fr; }
      .bn-news-hero { height: 260px; }
      .bn-promo { padding: 28px 24px; }
      .bn-footer { padding: 40px 20px 22px; }
      .bn-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
      .bn-row2 { grid-template-columns: 1fr; }
      .bn-profile-grid, .bn-type-grid { grid-template-columns: repeat(2, 1fr); }
      .bn-auth-card { padding: 28px 22px 34px; }
      .bn-espace-topline { flex-direction: column; align-items: stretch; }
      .bn-kpi-row { grid-template-columns: repeat(2, 1fr) !important; }
      .bn-inbox-layout { grid-template-columns: 1fr; }
      #bn-view-home .bn-section[style*="margin-top:60px"],
      #bn-view-home .bn-section[style*="margin-top:56px"] { margin-top: 32px !important; }
      #bn-view-home .bn-section[style*="padding-bottom:70px"] { padding-bottom: 40px !important; }
    }

    @media (max-width: 600px) {
      .bn-nav { gap: 14px; font-size: 13.5px; }
      .bn-topbar-phone { display: none; }
      .bn-hero-text .t1 { font-size: 24px; }
      .bn-hero-text .t2 { font-size: 15px; }
      .bn-hero-panel.right { height: 160px; }
      .bn-section-title { font-size: 21px; }
      .bn-features { grid-template-columns: repeat(2, 1fr); }
      .bn-books-grid, .bn-market-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
      .bn-cat-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); padding: 18px 14px; gap: 10px; }
      .bn-news-hero { height: 220px; }
      .bn-news-item { gap: 12px; padding: 12px; }
      .bn-news-thumb { width: 84px; height: 72px; }
      .bn-promo { flex-direction: column; text-align: center; align-items: center; }
      .bn-promo-btn { margin-left: auto; margin-right: auto; }
      .bn-footer-grid { grid-template-columns: 1fr; }
      .bn-profile-grid, .bn-type-grid { grid-template-columns: 1fr; }
      .bn-promo-text .t1 { font-size: 20px; }
      .bn-kpi-row { grid-template-columns: 1fr !important; }
    }
