/* Header et navigation de www (lot www-header du 07/10/2026). Classes .bn-*.
   Ordinateur (>= 992 px) : barre en trois zones, menus déroulants au clic.
   Téléphone et tablette (< 992 px) : barre du haut réduite qui se retire en descendant, onglets en bas (membres),
   Publier, Notifications et Menu en feuilles. Le reste du site garde ses feuilles ; seuls les décalages qui
   dépendaient de l'ancienne barre de 51 px sont recalés ici (corps de page, en-têtes collants des apéros, bulle du chat). */

:root {
  --bn-bleu: #194172;
  --bn-bleu-survol: rgba(255, 255, 255, .10);
  --bn-encre: #1b2433;
  --bn-encre-2: #3d4757;
  --bn-gris: #5e6b80;
  --bn-trait: #e3e8ef;
  --bn-doux: #eef3fa;
  --bn-vert: #1b7a29;
  --bn-vert-2: #146321;
  --bn-rouge: #d92d20;
  --bn-en-ligne: #2fb344;
  --bn-ombre: 0 16px 40px rgba(15, 23, 42, .20), 0 2px 6px rgba(15, 23, 42, .08);
  --bn-police: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --bn-barre: 60px;
  --bn-haut: 60px;
  --bn-tab-h: 64px;
}

.bn-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.bn-top [hidden], .bn-tabs [hidden], .bn-top[hidden] { display: none !important; }
.bn-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bn-i { display: inline-block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }

/* ---------- Décalage des pages sous la barre fixe ---------- */
body.login_0, body.login_1 { padding-top: 78px; }
body.homepage.login_0 { padding-top: 60px; }

/* ---------- Barre du haut ---------- */
.bn-top { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; background: var(--bn-bleu); color: #fff; font-family: var(--bn-police); font-size: 16px; line-height: 1.3; text-transform: none; letter-spacing: 0; box-shadow: 0 1px 0 rgba(0, 0, 0, .12); transition: top .22s ease; }
.bn-top *, .bn-tabs * { box-sizing: border-box; }
.bn-in { display: flex; align-items: center; width: 100%; max-width: 1170px; height: var(--bn-barre); margin: 0 auto; padding: 0 15px; }
.bn-top a, .bn-top a:hover, .bn-top a:focus, .bn-tabs a, .bn-tabs a:hover, .bn-tabs a:focus { text-decoration: none; }
.bn-top p { margin: 0; }
.bn-top button, .bn-tabs button { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-transform: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.bn-top a:focus, .bn-top button:focus, .bn-top summary:focus, .bn-tabs a:focus, .bn-tabs button:focus { outline: 2px solid #fff; outline-offset: -3px; }
.bn-top .bn-pan a:focus, .bn-top .bn-pan button:focus, .bn-top .bn-feuille a:focus, .bn-top .bn-feuille button:focus, .bn-top .bn-feuille summary:focus, .bn-tabs a:focus, .bn-tabs button:focus { outline-color: var(--bn-bleu); outline-offset: -2px; }
.bn-top a:focus:not(:focus-visible), .bn-top button:focus:not(:focus-visible), .bn-top summary:focus:not(:focus-visible), .bn-tabs a:focus:not(:focus-visible), .bn-tabs button:focus:not(:focus-visible) { outline: none; }

.bn-logo { display: flex; align-items: center; flex: none; height: 44px; margin-right: 14px; border-radius: 8px; }
.bn-logo img { display: block; width: 148px; height: auto; max-width: none; border: 0; }

/* Rubriques */
.bn-nav { flex: 1 1 auto; min-width: 0; height: 100%; }
.bn-ul { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.bn-li { position: relative; height: 100%; margin: 0; padding: 0; list-style: none; }
.bn-top .bn-l { position: relative; display: flex; align-items: center; height: 100%; padding: 0 14px; color: rgba(255, 255, 255, .88); font-size: 16px; font-weight: 400; white-space: nowrap; transition: background-color .15s, color .15s; }
.bn-top .bn-l:hover, .bn-top .bn-l[aria-expanded="true"] { color: #fff; background: var(--bn-bleu-survol); }
.bn-top .bn-l.bn-cur { color: #fff; font-weight: 700; }
.bn-top .bn-l.bn-cur::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #fff; }
.bn-l .bn-chev { width: 16px; height: 16px; margin-left: 4px; stroke-width: 2.2; opacity: .8; transition: transform .15s; }
.bn-l[aria-expanded="true"] .bn-chev { transform: rotate(180deg); }
.bn-l .bn-ext { width: 13px; height: 13px; margin-left: 4px; opacity: .7; }

/* Actions : Publier, Messages, Notifications, Potes, Moi */
.bn-act { display: flex; align-items: center; height: 100%; margin-left: auto; flex: none; }
.bn-dd { position: relative; display: flex; align-items: center; height: 100%; }
.bn-top .bn-pub { display: inline-flex; align-items: center; height: 40px; margin-right: 10px; padding: 0 16px 0 12px; border-radius: 20px; background: var(--bn-vert); color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap; transition: background-color .15s; }
.bn-top .bn-pub:hover, .bn-top .bn-pub[aria-expanded="true"] { background: var(--bn-vert-2); }
.bn-pub .bn-i { width: 20px; height: 20px; margin-right: 6px; stroke-width: 2.4; }
.bn-top .bn-ic { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 74px; height: 100%; color: rgba(255, 255, 255, .88); font-size: 13px; font-weight: 400; line-height: 1; transition: background-color .15s, color .15s; }
.bn-top .bn-ic:hover, .bn-top .bn-ic[aria-expanded="true"] { color: #fff; background: var(--bn-bleu-survol); }
.bn-top .bn-ic.bn-cur { color: #fff; }
.bn-top .bn-ic.bn-cur::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #fff; }
.bn-ic > .bn-i { width: 22px; height: 22px; }
.bn-ic-lab { display: flex; align-items: center; margin-top: 4px; white-space: nowrap; }
.bn-ic-lab .bn-chev { width: 12px; height: 12px; margin-left: 2px; stroke-width: 2.4; }
.bn-av { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #e9eef5; color: var(--bn-bleu); font-size: 13px; font-weight: 700; line-height: 1; text-transform: uppercase; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.bn-av .bn-i { width: 16px; height: 16px; }
.bn-av { overflow: hidden; }
.bn-av img { display: block; width: 100%; height: 100%; max-width: none; border: 0; border-radius: 50%; object-fit: cover; }

/* Pastilles de compte (reprennent les classes .msg_count et .vt_cnt que custom.js met à jour) */
.bn-top .bn-badge, .bn-tabs .bn-badge { position: absolute; top: 7px; left: 50%; right: auto; z-index: 1; display: inline-block; width: auto; min-width: 19px; height: 19px; margin: 0 0 0 5px; padding: 0 5px; border-radius: 10px; background: var(--bn-rouge); color: #fff; font-family: var(--bn-police); font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--bn-bleu); }

/* ---------- Menus déroulants (ordinateur) ---------- */
.bn-pan { position: absolute; top: calc(100% + 6px); left: 0; z-index: 10; min-width: 260px; max-height: calc(100vh - var(--bn-barre) - 24px); overflow: auto; padding: 8px; border: 1px solid var(--bn-trait); border-radius: 12px; background: #fff; color: var(--bn-encre); box-shadow: var(--bn-ombre); font-size: 16px; line-height: 1.3; text-align: left; white-space: normal; -webkit-overflow-scrolling: touch; }
.bn-act .bn-pan { left: auto; right: 0; }
.bn-pan-desc { width: 340px; }
.bn-pan-large { width: 320px; }
.bn-pan-moi { width: 460px; }
.bn-top .bn-titre { margin: 0; padding: 8px 12px 10px; color: var(--bn-encre); font-size: 18px; font-weight: 700; line-height: 1.2; }
.bn-note { padding: 6px 12px 4px; color: var(--bn-gris); font-size: 14px; }
.bn-sec { margin: 0; padding: 12px 12px 4px; color: var(--bn-gris); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bn-sep { height: 1px; margin: 6px 4px; background: var(--bn-trait); }

.bn-top .bn-it { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--bn-encre); font-size: 16px; font-weight: 400; line-height: 1.25; text-align: left; transition: background-color .12s; }
.bn-top .bn-it:hover, .bn-top .bn-it:focus { background: var(--bn-doux); color: var(--bn-encre); }
.bn-it > .bn-i { width: 20px; height: 20px; margin-right: 12px; color: var(--bn-bleu); }
.bn-it-t { flex: 1 1 auto; min-width: 0; }
.bn-it-ic { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; margin-right: 12px; border-radius: 10px; background: var(--bn-doux); color: var(--bn-bleu); }
.bn-it-ic .bn-i { width: 20px; height: 20px; }
.bn-it-txt { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.bn-it-txt .bn-it-t { font-weight: 700; }
.bn-it-d { margin-top: 1px; color: var(--bn-gris); font-size: 14px; line-height: 1.3; }
.bn-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #fff4d6; color: #7a5200; font-size: 12px; font-weight: 700; line-height: 1.4; vertical-align: 1px; }
.bn-it .bn-ext { width: 15px; height: 15px; margin: 0 0 0 10px; color: var(--bn-gris); }
.bn-n { flex: none; min-width: 22px; height: 22px; margin-left: 10px; padding: 0 7px; border-radius: 11px; font-size: 13px; font-weight: 700; line-height: 22px; text-align: center; }
.bn-n-on { background: #e3f5e7; color: #1d6b2c; }
.bn-n-rouge { background: var(--bn-rouge); color: #fff; }
.bn-n.bn-zero { display: none; }
.bn-top .bn-it-sortie, .bn-top .bn-it-sortie:hover, .bn-top .bn-it-sortie:focus { color: #a12a14; }
.bn-it-sortie > .bn-i { color: #a12a14; }

.bn-moi-h { display: flex; align-items: center; padding: 10px 12px 12px; }
.bn-av-l { width: 48px; height: 48px; margin-right: 12px; background: #dfe6f0; font-size: 20px; box-shadow: none; }
.bn-av-l .bn-i { width: 26px; height: 26px; }
.bn-moi-id { display: flex; flex-direction: column; min-width: 0; }
.bn-moi-n { overflow: hidden; color: var(--bn-encre); font-size: 18px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.bn-top .bn-moi-l, .bn-top .bn-moi-l:hover { color: var(--bn-bleu); font-size: 15px; text-decoration: underline; text-underline-offset: 2px; }
.bn-cols { display: flex; }
.bn-cols > div { flex: 1 1 50%; min-width: 0; }

/* Publier : en-tête de feuille (titre, fermer) seulement utile au téléphone */
.bn-feuille-h { display: flex; align-items: center; }
.bn-feuille-h .bn-titre { flex: 1 1 auto; }
.bn-x { display: none; }
#bn-p-pub .bn-titre { padding: 6px 12px 6px; color: var(--bn-gris); font-size: 14px; font-weight: 400; }

/* Notifications : mêmes éléments que remplit custom.js (#notificationsBody, .vt_noti, #nonotsfound) */
.bn-pan-notif { width: 390px; padding: 0; }
.bn-pan-notif .bn-feuille-h { position: -webkit-sticky; position: sticky; top: 0; z-index: 1; padding: 6px 8px 6px 4px; background: #fff; border-bottom: 1px solid var(--bn-trait); }
.bn-top .bn-toutlu { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 18px; color: var(--bn-bleu); font-size: 15px; font-weight: 700; white-space: nowrap; }
.bn-top .bn-toutlu:hover { background: var(--bn-doux); }
.bn-top .bn-toutlu[disabled] { color: #8a94a3; background: none; cursor: default; }
.bn-toutlu .bn-i { width: 18px; height: 18px; margin-right: 6px; }
.bn-toutlu-c { display: none; }
/* style_login.css impose à #notificationsBody padding-top 33px !important, max-height 400px et overflow auto (ancien panneau) */
.bn-top #notificationsBody { min-height: 0; max-height: none; overflow: visible; padding: 6px !important; }
.bn-top #notificationsBody .vt_noti { position: relative; display: block; min-height: 64px; margin: 0 0 2px; padding: 10px 46px 10px 66px; border-radius: 10px; color: var(--bn-encre-2); font-size: 15px; line-height: 1.38; text-align: left; text-transform: none; overflow-wrap: break-word; }
.bn-top #notificationsBody .vt_noti::before, .bn-top #notificationsBody .vt_noti::after { display: none; }
.bn-top #notificationsBody .vt_noti:hover { background: var(--bn-doux); }
.bn-top #notificationsBody .vt_noti_img { position: absolute; top: 10px; left: 10px; width: 44px; height: 44px; max-width: none; margin: 0; border-radius: 50%; object-fit: cover; background: #e9eef5; }
.bn-top #notificationsBody .vt_noti a { color: var(--bn-bleu); font-weight: 700; }
.bn-top #notificationsBody .vt_noti a:first-of-type { color: var(--bn-encre); }
.bn-top #notificationsBody .vt_noti a:hover { text-decoration: underline; }
.bn-top #notificationsBody .vt_noti_remove { position: absolute; top: 8px; right: 6px; float: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--bn-gris) !important; font-size: 22px; line-height: 1; text-decoration: none; }
.bn-top #notificationsBody .vt_noti_remove:hover { background: var(--bn-trait); color: var(--bn-encre) !important; }
.bn-top .bn-vide { margin: 0; padding: 28px 16px 32px; color: var(--bn-gris); font-size: 16px; text-align: center; }
.bn-vide .bn-i { display: block; width: 32px; height: 32px; margin: 0 auto 8px; color: #a3afbf; }

/* ---------- Visiteur ---------- */
.bn-vis { display: flex; align-items: center; margin-left: auto; flex: none; }
.bn-top .bn-connexion { display: inline-flex; align-items: center; height: 40px; margin-right: 10px; padding: 0 12px; border-radius: 20px; color: #fff; font-size: 16px; white-space: nowrap; }
.bn-top .bn-connexion:hover { background: var(--bn-bleu-survol); color: #fff; }
.bn-connexion .bn-i { width: 20px; height: 20px; margin-right: 6px; }
.bn-top .bn-inscription { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 20px; background: var(--bn-vert); color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap; }
.bn-top .bn-inscription:hover { background: var(--bn-vert-2); color: #fff; }
.bn-burger { display: none !important; }

/* ---------- Feuilles (téléphone) : invisibles sur ordinateur ---------- */
.bn-voile { display: none; }
@media (min-width: 992px) {
  .bn-mob, .bn-tabs { display: none !important; }
}

/* ---------- Ordinateur étroit (992-1199) : icônes sans légende ---------- */
@media (min-width: 992px) and (max-width: 1199px) {
  .bn-in { max-width: 970px; }
  .bn-top .bn-l { padding: 0 10px; }
  .bn-top .bn-l.bn-cur::after { left: 10px; right: 10px; }
  .bn-top .bn-ic { width: 48px; }
  .bn-ic-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bn-top .bn-ic.bn-cur::after { left: 8px; right: 8px; }
  .bn-top .bn-badge { top: 9px; }
}

/* ---------- Téléphone et tablette (< 992) ---------- */
@media (max-width: 991px) {
  :root { --bn-barre: 56px; --bn-haut: 56px; }
  html.bn-cache { --bn-haut: 0px; }
  body.login_0, body.login_1 { padding-top: 72px; }
  body.homepage.login_0 { padding-top: 56px; }
  body.login_1 { padding-bottom: 64px; padding-bottom: calc(var(--bn-tab-h) + env(safe-area-inset-bottom, 0px)); }
  html.bn-cache .bn-top { top: -66px; }
  html.bn-verrou, html.bn-verrou body { overflow: hidden; }

  .bn-in { max-width: none; padding: 0 8px 0 12px; }
  .bn-logo { margin-right: 8px; }
  .bn-logo img { width: 128px; }
  .bn-nav, .bn-desk { display: none !important; }
  .bn-top .bn-pub { width: 44px; height: 44px; margin: 0 2px 0 0; padding: 0; justify-content: center; border-radius: 50%; }
  .bn-pub .bn-i { width: 22px; height: 22px; margin: 0; }
  .bn-pub-t { display: none; }
  .bn-top .bn-ic { width: 48px; }
  .bn-ic-lab { display: none; }
  .bn-ic > .bn-i { width: 24px; height: 24px; }
  .bn-top .bn-badge { top: 8px; margin-left: 4px; }

  /* Feuilles : Publier (par le bas), Notifications et Menu (plein écran) */
  .bn-voile { display: block; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 25; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .2s; }
  .bn-voile.bn-on { opacity: 1; }
  .bn-top .bn-feuille { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-direction: column; width: auto; min-width: 0; max-height: calc(100% - 24px); margin: 0; padding: 0 0 env(safe-area-inset-bottom, 0px); overflow: hidden; border: 0; border-radius: 18px 18px 0 0; background: #fff; color: var(--bn-encre); box-shadow: var(--bn-ombre); -webkit-transform: translateY(100%); transform: translateY(100%); transition: -webkit-transform .26s cubic-bezier(.2, .8, .2, 1); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
  .bn-top .bn-feuille.bn-on { -webkit-transform: none; transform: none; }
  .bn-top .bn-feuille-pleine { top: 0; max-height: none; border-radius: 0; }
  .bn-feuille-h { flex: none; min-height: 60px; padding: 6px 6px 6px 4px; border-bottom: 1px solid var(--bn-trait); }
  .bn-feuille-bas .bn-feuille-h { border-bottom: 0; }
  .bn-top .bn-feuille .bn-feuille-h .bn-titre, #bn-p-pub .bn-titre { padding: 8px 12px; color: var(--bn-encre); font-size: 20px; font-weight: 700; }
  .bn-feuille-b { flex: 1 1 auto; min-height: 0; padding: 8px 8px 16px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .bn-top .bn-x { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 50%; color: var(--bn-encre); }
  .bn-top .bn-x:hover { background: var(--bn-doux); }
  .bn-top .bn-feuille .bn-it { min-height: 52px; font-size: 17px; }
  .bn-feuille .bn-sec { padding-top: 18px; }
  .bn-pan-notif .bn-feuille-h { position: static; }
  .bn-top #notificationsBody { max-height: none; overflow-y: auto; padding: 8px 8px 16px !important; }
  .bn-toutlu-l { display: none; }
  .bn-toutlu-c { display: inline; }
  .bn-top #notificationsBody .vt_noti { font-size: 16px; }

  .bn-tuiles { display: flex; flex-wrap: wrap; margin: 0 4px 4px; }
  .bn-top .bn-tuile { display: flex; flex-direction: column; align-items: center; justify-content: center; width: calc(33.333% - 8px); min-height: 84px; margin: 4px; padding: 10px 4px; border-radius: 12px; background: var(--bn-doux); color: var(--bn-encre); font-size: 15px; line-height: 1.15; text-align: center; }
  .bn-top .bn-tuile:hover, .bn-top .bn-tuile:focus { background: #e3ecf8; color: var(--bn-encre); }
  .bn-tuile .bn-i { width: 24px; height: 24px; margin-bottom: 6px; color: var(--bn-bleu); }
  .bn-acc > summary { list-style: none; cursor: pointer; }
  .bn-acc > summary::-webkit-details-marker { display: none; }
  .bn-acc > summary .bn-chev { width: 18px; height: 18px; margin-left: auto; color: var(--bn-gris); transition: transform .15s; }
  .bn-acc[open] > summary .bn-chev { transform: rotate(180deg); }
  .bn-acc > .bn-it { padding-left: 44px; }
  .bn-boutons { padding: 16px 8px 4px; }
  .bn-top .bn-bouton { display: flex; align-items: center; justify-content: center; height: 50px; margin-bottom: 10px; border: 1.5px solid var(--bn-bleu); border-radius: 25px; color: var(--bn-bleu); font-size: 17px; font-weight: 700; }
  .bn-top .bn-bouton-plein, .bn-top .bn-bouton-plein:hover, .bn-top .bn-bouton-plein:focus { border-color: var(--bn-vert); background: var(--bn-vert); color: #fff; }

  /* Visiteur au téléphone : Connexion, Inscription, Menu */
  .bn-top .bn-connexion { height: 40px; margin-right: 6px; padding: 0 12px; border: 1.5px solid rgba(255, 255, 255, .7); font-size: 15px; }
  .bn-connexion .bn-i { display: none; }
  .bn-top .bn-inscription { height: 40px; padding: 0 14px; font-size: 15px; }
  .bn-inscription-l { display: none; }
  .bn-top .bn-burger { display: flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 4px; border-radius: 50%; color: #fff; }

  /* Onglets du bas (membres) */
  .bn-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1029; display: flex; height: 64px; height: calc(var(--bn-tab-h) + env(safe-area-inset-bottom, 0px)); padding: 0 4px; padding: 0 4px env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid var(--bn-trait); box-shadow: 0 -2px 10px rgba(15, 23, 42, .06); font-family: var(--bn-police); text-transform: none; }
  .bn-tabs .bn-tab { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; min-width: 0; height: var(--bn-tab-h); color: var(--bn-gris); font-size: 12.5px; font-weight: 400; line-height: 1.1; }
  .bn-tabs .bn-tab:hover, .bn-tabs .bn-tab:focus { color: var(--bn-bleu); }
  .bn-tab-ic { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 30px; margin-bottom: 3px; border-radius: 15px; transition: background-color .15s; }
  .bn-tab-ic .bn-i { width: 24px; height: 24px; }
  .bn-tab-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bn-tabs .bn-tab.bn-cur { color: var(--bn-bleu); font-weight: 700; }
  .bn-tab.bn-cur .bn-tab-ic { background: #e3ecf8; }
  .bn-tabs .bn-badge { top: -4px; margin-left: 4px; box-shadow: 0 0 0 2px #fff; }
  .bn-tabs .bn-av-tab { width: 28px; height: 28px; font-size: 14px; background: #e9eef5; color: var(--bn-bleu); box-shadow: none; }
  .bn-tabs .bn-av-tab .bn-i { width: 18px; height: 18px; }
  .bn-tab.bn-cur .bn-av-tab { box-shadow: 0 0 0 2px var(--bn-bleu); }
  .bn-tab-menu { position: absolute; bottom: -2px; left: 50%; display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%; background: #fff; color: var(--bn-encre); box-shadow: 0 0 0 1px var(--bn-trait); }
  .bn-tabs .bn-tab-menu .bn-i { width: 11px; height: 11px; stroke-width: 2.6; }
  .bn-point { position: absolute; top: 1px; left: 50%; width: 10px; height: 10px; margin-left: 8px; border-radius: 50%; background: var(--bn-rouge); box-shadow: 0 0 0 2px #fff; }

  /* Bulle du chat (ArrowChat) au-dessus des onglets ; masquée sous une feuille */
  body.login_1 #arrowchat_mobiletab, body.login_1 #arrowchat_buddy_list_tab { bottom: 78px !important; bottom: calc(var(--bn-tab-h) + 14px + env(safe-area-inset-bottom, 0px)) !important; }
  html.bn-verrou #arrowchat_mobiletab, html.bn-verrou #arrowchat_buddy_list_tab { visibility: hidden !important; }
}
@media (max-width: 429px) {
  body.login_0 .bn-logo img { width: 38px; height: 38px; object-fit: cover; object-position: left center; }
  .bn-top .bn-connexion { padding: 0 10px; }
  .bn-top .bn-inscription { padding: 0 12px; }
}
@media (max-width: 374px) {
  body.login_1 .bn-logo img { width: 112px; }
}

/* ---------- En-têtes collants des apéros (lot bep-aperos) : suivent la barre au lieu de 51 px ---------- */
body .bep-jour-titre { top: calc(var(--bn-haut) + var(--bep-colle, 0px)); transition: top .22s ease; }
@media (max-width: 991px) {
  body .bep-entete-colle { top: var(--bn-haut); transition: top .22s ease; }
}
@media (min-width: 992px) {
  body .bep-jour-titre { top: var(--bn-haut); }
}

@media (prefers-reduced-motion: reduce) {
  .bn-top, .bn-top *, .bn-tabs *, .bn-voile, body .bep-jour-titre, body .bep-entete-colle { transition: none !important; }
}
