/**
 * NM Top Bar — barre d'annonce (reprend le prototype « header équilibré » validé en décembre 2026).
 */
.nm-tb { --nm-tb-bg: #0a3d29; --nm-tb-fg: #e8f2ec; --nm-tb-gutter: max(15px, calc((100% - 1240px) / 2 + 15px)); background: var(--nm-tb-bg); color: var(--nm-tb-fg); font-size: 14px; position: relative; z-index: 30; }
.nm-tb *, .nm-tb *::before, .nm-tb *::after { box-sizing: border-box; }
.nm-tb-inner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 var(--nm-tb-gutter); }
.nm-tb-main { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; cursor: default; text-align: center; }
button.nm-tb-main { cursor: pointer; }
button.nm-tb-main:hover, button.nm-tb-main:focus-visible { color: #fff; }
.nm-tb .nm-tb-main, .nm-tb .nm-tb-main * { text-decoration: none !important; }
.nm-tb-msgs { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0 14px; }
.nm-tb-msg { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 400 !important; } /* poids normal (le thème allège parfois) ; parties clés en **gras** */
.nm-tb-msg .bi { font-size: 15px; line-height: 1; opacity: .9; }
.nm-tb-msg strong { color: #fff; font-weight: 700; }
.nm-tb-sep { opacity: .5; }
.nm-tb-chev { flex-shrink: 0; transition: transform .2s ease; }
.nm-tb-main[aria-expanded="true"] .nm-tb-chev { transform: rotate(180deg); }

/* Langue */
.nm-tb-lang { position: absolute; top: 0; bottom: 0; right: var(--nm-tb-gutter); display: flex; align-items: center; }
.nm-tb-lang-btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 6px; border: 0; background: none; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.nm-tb-lang-btn:hover { color: #cde9da; }
.nm-tb-lang-list { position: absolute; top: 100%; right: 0; z-index: 60; min-width: 170px; margin: 2px 0 0; padding: 6px 0; list-style: none; background: #fff; color: #1c2b24; border: 1px solid #e3e9e5; border-radius: 6px; box-shadow: 0 10px 24px rgba(10, 61, 41, .12); text-align: left; }
.nm-tb-lang-list[hidden] { display: none; }
.nm-tb-lang-list a { display: flex; gap: 10px; padding: 9px 14px; font-size: 14px; color: #1c2b24 !important; text-decoration: none !important; border-radius: 4px; }
.nm-tb-lang-list a b { width: 24px; color: #5d6b64; }
.nm-tb-lang-list a:hover { background: #f6f8f6; color: #2f6f4e !important; }
.nm-tb-lang-list a[aria-current="true"], .nm-tb-lang-list a[aria-current="true"] b { color: #2f6f4e !important; font-weight: 600; }

/* Panneau de détail */
.nm-tb-panel { background: #f7f8f8; color: #1c2b24; border-bottom: 1px solid #e3e9e5; padding: 20px var(--nm-tb-gutter) 22px; }
.nm-tb-panel[hidden] { display: none; }
.nm-tb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 1240px; margin: 0 auto; }
/* textes imposés : le thème grossit les paragraphes */
.nm-tb .nm-tb-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: #fff; border: 1px solid #e3e9e5; border-radius: 6px; font-size: 13.5px; line-height: 1.55; color: #1c2b24; }
.nm-tb .nm-tb-card-head { display: flex; align-items: center; gap: 12px; }
.nm-tb .nm-tb-card-head strong { font-size: 15px !important; font-weight: 700; line-height: 1.3; color: #1c2b24; }
.nm-tb .nm-tb-card-ico { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 18px; background: #e6f1eb; color: #2f6f4e; }
.nm-tb .nm-tb-card:nth-child(4n+2) .nm-tb-card-ico { background: #fdf0e6; color: #c2410c; }
.nm-tb .nm-tb-card:nth-child(4n+3) .nm-tb-card-ico { background: #eef1f6; color: #334155; }
.nm-tb .nm-tb-card:nth-child(4n+4) .nm-tb-card-ico { background: #fce8ef; color: #be185d; }
.nm-tb .nm-tb-card p { margin: 0 !important; font-size: 13.5px !important; line-height: 1.55 !important; color: #3b4741 !important; }
.nm-tb .nm-tb-card p strong { color: #1c2b24; font-weight: 700; }
.nm-tb .nm-tb-card-more { margin-top: auto; font-size: 13.5px; font-weight: 600; color: #2f6f4e !important; text-decoration: none !important; }
.nm-tb .nm-tb-card-more:hover { text-decoration: underline !important; }

/* Mobile : un message à la fois */
@media (max-width: 991.98px) {
  .nm-tb-lang { display: none; }
  .nm-tb-msgs { display: inline-grid; }
  .nm-tb-sep { display: none; }
  .nm-tb-msg { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .3s ease; white-space: normal; text-align: center; justify-content: center; }
  .nm-tb-msg.is-current { visibility: visible; opacity: 1; }
  .nm-tb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nm-tb-panel { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 560px) { .nm-tb-cards { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .nm-tb * { transition: none !important; } }

/* Icônes Bootstrap Icons bien centrées (par défaut décalées vers le bas de 0,125em) */
.nm-tb .bi { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.nm-tb .bi::before { display: block; vertical-align: 0 !important; line-height: 1; }
.nm-tb .nm-tb-card-ico .bi { width: 100%; height: 100%; }
