/* ONMB — en-tête, méga-menus, tiroir mobile et pied de page (maquette du Président, novembre 2026).
   Tous les sélecteurs sont préfixés « onmb- » ; un reset local isole le composant du thème (style.css / Bootstrap).
   Variables : voir onmb-base.css. */

/* ───────────────────────── Reset local ───────────────────────── */
/* :where() : le reset garde la spécificité d'un simple sélecteur d'élément (il bat le thème, qui est chargé avant,
   mais n'écrase jamais les classes du composant). */
.onmb-header, .onmb-drawer, .onmb-footer {
    font-family: var(--onmb-font);
    font-size: 16px;
    line-height: 1.4;
    color: var(--onmb-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
:where(.onmb-header, .onmb-drawer, .onmb-footer) *,
:where(.onmb-header, .onmb-drawer, .onmb-footer) *::before,
:where(.onmb-header, .onmb-drawer, .onmb-footer) *::after { box-sizing: border-box; }

:where(.onmb-header, .onmb-drawer, .onmb-footer) :is(ul, li) { margin: 0; padding: 0; list-style: none; }
:where(.onmb-header, .onmb-drawer, .onmb-footer) p { margin: 0; font-family: inherit; color: inherit; line-height: inherit; }
:where(.onmb-header, .onmb-drawer) h3 { margin: 0; font-family: var(--onmb-font); text-transform: none; color: var(--onmb-night); }
:where(.onmb-header, .onmb-drawer, .onmb-footer) a {
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
:where(.onmb-header, .onmb-drawer) button {
    -webkit-appearance: none; appearance: none; margin: 0; padding: 0; border: 0; background: none;
    font: inherit; color: inherit; text-align: inherit; cursor: pointer; border-radius: 0;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.onmb-header :focus-visible, .onmb-drawer :focus-visible { outline: 3px solid rgba(19, 137, 125, .65); outline-offset: 2px; border-radius: 6px; }
.onmb-footer :focus-visible { outline: 3px solid rgba(255, 255, 255, .75); outline-offset: 2px; border-radius: 6px; }

.onmb-svg { display: block; width: 1em; height: 1em; flex: none; overflow: visible; }
.onmb-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Boutons : le thème a des règles globales sur a / button, on précise la taille dans l'en-tête */
.onmb-header .onmb-btn, .onmb-drawer .onmb-btn { padding: 10px 16px; font-size: 14.5px; border-width: 1.5px; border-radius: 9px; }
.onmb-header .onmb-btn .onmb-svg, .onmb-drawer .onmb-btn .onmb-svg { font-size: 17px; }
.onmb-header .onmb-btn--solid-red, .onmb-drawer .onmb-btn--solid-red { color: #fff; }
.onmb-header .onmb-btn--solid-navy, .onmb-drawer .onmb-btn--solid-navy { color: #fff; }
.onmb-header .onmb-btn--outline-red, .onmb-drawer .onmb-btn--outline-red { color: var(--onmb-red); }
.onmb-header .onmb-btn--outline-navy, .onmb-drawer .onmb-btn--outline-navy { color: var(--onmb-night); }
.onmb-header .onmb-btn--outline-red:hover, .onmb-drawer .onmb-btn--outline-red:hover,
.onmb-header .onmb-btn--outline-navy:hover, .onmb-drawer .onmb-btn--outline-navy:hover,
.onmb-header .onmb-btn--solid-red:hover, .onmb-drawer .onmb-btn--solid-red:hover,
.onmb-header .onmb-btn--solid-navy:hover, .onmb-drawer .onmb-btn--solid-navy:hover { color: #fff; }

/* ───────────────────────── En-tête collant ───────────────────────── */
.onmb-header {
    position: sticky; top: 0; z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--onmb-line);
    transition: box-shadow .2s ease;
}
.onmb-header.is-compact { box-shadow: 0 8px 22px rgba(15, 29, 104, .10); }

.onmb-header__top {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding-top: 14px; padding-bottom: 14px;
    transition: padding .2s ease;
}
.onmb-header.is-compact .onmb-header__top { padding-top: 7px; padding-bottom: 7px; }

/* Logo composé : ONMB | Ordre National des Médecins du Bénin */
.onmb-logo { display: inline-flex; align-items: center; gap: 14px; flex: none; color: var(--onmb-navy); }
.onmb-logo:hover { color: var(--onmb-navy); }
.onmb-logo__mark {
    font: 800 42px/1 var(--onmb-font); letter-spacing: -.01em; color: var(--onmb-navy);
    transition: font-size .2s ease;
}
.onmb-logo__bar { width: 2px; height: 42px; background: var(--onmb-red); border-radius: 2px; flex: none; transition: height .2s ease; }
.onmb-logo__name { font: 600 15.5px/1.2 var(--onmb-font); color: var(--onmb-night); white-space: nowrap; }
.onmb-header.is-compact .onmb-logo__mark { font-size: 32px; }
.onmb-header.is-compact .onmb-logo__bar { height: 32px; }
.onmb-header.is-compact .onmb-logo__name { font-size: 14px; }

.onmb-header__actions { display: flex; align-items: center; gap: 12px; }
/* « Mon Espace » : pastille dégradée, contour blanc, icône dans un rond blanc (couleurs : --onmb-connect-from / --onmb-connect-to) */
.onmb-header { --onmb-connect-from: #0f1d68; --onmb-connect-to: #13897d; }
.onmb-header .onmb-btn.onmb-header__connect {
    gap: 9px; padding: 3px 18px 3px 3px; border: 1.5px solid #fff; border-radius: 999px;
    background: linear-gradient(90deg, var(--onmb-connect-from) 0%, var(--onmb-connect-to) 100%); color: #fff;
    font-weight: 700; font-size: 14.5px; line-height: 1;
    box-shadow: 0 0 0 1px rgba(15, 29, 104, .14), 0 5px 14px -6px rgba(15, 29, 104, .5);
}
.onmb-header .onmb-btn.onmb-header__connect:hover {
    filter: brightness(.92); color: #fff;
    transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(15, 29, 104, .2), 0 8px 18px -6px rgba(15, 29, 104, .55);
}
.onmb-header__avatar {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--onmb-connect-from);
}
.onmb-header .onmb-btn.onmb-header__connect .onmb-svg { font-size: 17px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; }
.onmb-header__label { flex: 1; text-align: center; }
.onmb-header.is-compact .onmb-btn.onmb-header__connect { padding-top: 2px; padding-bottom: 2px; }
.onmb-header.is-compact .onmb-header__avatar { width: 26px; height: 26px; }
.onmb-header.is-compact .onmb-btn { padding-top: 8px; padding-bottom: 8px; }
.onmb-burger {
    display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
    border: 1.5px solid var(--onmb-line) !important; border-radius: 10px !important; background: #fff !important;
    color: var(--onmb-night); font-size: 24px;
}
.onmb-burger:hover { border-color: var(--onmb-night) !important; }

/* ───────────────────────── Barre de navigation (bureau) ───────────────────────── */
.onmb-header__bar { border-top: 1px solid var(--onmb-line); }
.onmb-header__barwrap { position: relative; }
.onmb-nav { display: flex; align-items: stretch; height: 54px; }
.onmb-nav__list { flex: 1 1 auto; display: flex; align-items: stretch; justify-content: space-between; min-width: 0; }
.onmb-nav__item { display: flex; align-items: stretch; }

.onmb-nav__link {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    height: 100%; padding: 0 12px;
    font: 600 16px/1 var(--onmb-font); color: var(--onmb-night); white-space: nowrap; letter-spacing: 0;
}
.onmb-nav__link::after {
    content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px;
    background: var(--onmb-red); border-radius: 3px 3px 0 0;
    transform: scaleX(0); transform-origin: center; transition: transform .2s ease;
}
.onmb-nav__link:hover, .onmb-nav__link.is-active, .onmb-nav__item.is-open > .onmb-nav__link { color: var(--onmb-red); }
.onmb-nav__link.is-active::after, .onmb-nav__item.is-open > .onmb-nav__link::after { transform: scaleX(1); }
.onmb-nav__chev { width: 17px; height: 17px; stroke-width: 2; transition: transform .2s ease; }
.onmb-nav__item.is-open > .onmb-nav__link .onmb-nav__chev { transform: rotate(180deg); }

.onmb-nav__search { display: flex; align-items: center; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--onmb-line); }
.onmb-nav__searchbtn {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: 10px !important; color: var(--onmb-night); font-size: 24px;
}
.onmb-nav__searchbtn:hover, .onmb-nav__search.is-open .onmb-nav__searchbtn { color: var(--onmb-red); background: var(--onmb-mint) !important; }
.onmb-nav__searchbtn .onmb-svg { stroke-width: 1.9; }

/* ───────────────────────── Panneaux (méga-menus) ───────────────────────── */
.onmb-mega {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
    padding-top: 8px;               /* « pont » invisible : la souris peut passer du bouton au panneau */
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.onmb-mega.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .16s ease, transform .16s ease, visibility 0s; }
.onmb-mega__card {
    background: #fff; border-radius: 18px; overflow: hidden auto; max-height: calc(100vh - 150px);
    box-shadow: 0 22px 60px rgba(15, 29, 104, .18), 0 0 0 1px rgba(15, 29, 104, .06);
    padding-bottom: 8px;
}
@media (max-height: 760px) { .onmb-mega__card { max-height: calc(100vh - 120px); } }

.onmb-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 30px 24px 22px; }
.onmb-col { min-width: 0; padding: 0 30px; border-left: 1px solid var(--onmb-line); }
.onmb-col:first-child { padding-left: 10px; border-left: 0; }
.onmb-col:last-child { padding-right: 10px; }
.onmb-col__head { display: flex; align-items: center; gap: 16px; min-height: 58px; margin-bottom: 14px; }
.onmb-pastille {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 15px; background: var(--onmb-mint); color: var(--onmb-teal); font-size: 30px;
}
.onmb-col__title {
    font: 800 18.5px/1.2 var(--onmb-font) !important; letter-spacing: .005em; text-transform: uppercase !important;
    color: var(--onmb-night) !important; margin: 0;
}
.onmb-col__list li + li { border-top: 1px solid var(--onmb-line); }
.onmb-link {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 11px 2px; font: 500 15.5px/1.3 var(--onmb-font); color: var(--onmb-night);
}
.onmb-link:hover { color: var(--onmb-red); }
.onmb-link__chev { width: 16px; height: 16px; stroke-width: 2.2; color: var(--onmb-navy); transition: transform .15s ease, color .15s ease; }
.onmb-link:hover .onmb-link__chev { color: var(--onmb-red); transform: translateX(3px); }
.onmb-link__badge { color: var(--onmb-night); }
.onmb-link__badge em { font-style: italic; font-weight: 600; color: var(--onmb-red); }

/* Filtres (menu Actualités) */
.onmb-filters {
    display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap;
    margin: 0 34px; padding: 18px 0 20px; border-top: 1px solid var(--onmb-line);
}
.onmb-filters .onmb-btn { padding: 12px 20px; font-size: 16px; }
.onmb-filters__group { flex: 1 1 520px; min-width: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-left: 24px; border-left: 1px solid var(--onmb-line); }
.onmb-filters__label { font: 800 15.5px/1 var(--onmb-font); color: var(--onmb-night); }

.onmb-header .onmb-select, .onmb-drawer .onmb-select {
    -webkit-appearance: none; appearance: none; width: auto; min-width: 170px; max-width: 100%; height: 44px; padding: 0 40px 0 16px;
    border: 1.5px solid #b9c4d6; border-radius: 9px; background-color: #fff; color: var(--onmb-night);
    font: 500 15px/1 var(--onmb-font); cursor: pointer; outline: 0; box-shadow: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1d68' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 9 6.5 6.5L18.5 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.onmb-header .onmb-select:hover, .onmb-drawer .onmb-select:hover { border-color: var(--onmb-night); }
.onmb-header .onmb-select:focus, .onmb-drawer .onmb-select:focus { border-color: var(--onmb-teal); background-color: #fff; }

.onmb-header .onmb-searchfield, .onmb-drawer .onmb-searchfield { position: relative; flex: 1 1 220px; min-width: 0; display: flex; align-items: center; }
.onmb-header .onmb-input, .onmb-drawer .onmb-input {
    -webkit-appearance: none; appearance: none; width: 100%; height: 44px; padding: 0 46px 0 16px; margin: 0;
    border: 1.5px solid #b9c4d6; border-radius: 9px; background: #fff; color: var(--onmb-night);
    font: 500 15px/1 var(--onmb-font); outline: 0; box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.onmb-header .onmb-input::placeholder, .onmb-drawer .onmb-input::placeholder { color: #6c7a93; opacity: 1; }
.onmb-header .onmb-input::-webkit-search-cancel-button, .onmb-drawer .onmb-input::-webkit-search-cancel-button { display: none; }
.onmb-header .onmb-input:hover, .onmb-drawer .onmb-input:hover { border-color: var(--onmb-night); }
.onmb-header .onmb-input:focus, .onmb-drawer .onmb-input:focus { border-color: var(--onmb-teal); background: #fff; box-shadow: 0 0 0 3px rgba(19, 137, 125, .18); }
.onmb-searchfield__go {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--onmb-night); font-size: 21px; border-radius: 8px !important;
}
.onmb-searchfield__go:hover { color: var(--onmb-red); background: var(--onmb-mint) !important; }

/* Panneau de recherche (loupe) */
.onmb-mega--search { left: auto; width: min(520px, 100%); right: 0; }
.onmb-mega--search .onmb-mega__card { padding: 18px 20px; }
.onmb-header .onmb-searchfield--big .onmb-input { height: 52px; font-size: 16.5px; padding-left: 18px; }
.onmb-searchfield--big .onmb-searchfield__go { width: 44px; height: 44px; right: 4px; }

/* Bandeau mint en bas de chaque panneau */
.onmb-banner {
    display: flex; align-items: center; gap: 24px; margin: 0 8px;
    padding: 16px 28px; border-radius: 13px;
    background: linear-gradient(90deg, #def4f1 0%, #e5f6f3 100%);
}
.onmb-banner__icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center; align-self: stretch;
    padding-right: 24px; border-right: 1px solid rgba(19, 41, 80, .28); color: var(--onmb-teal); font-size: 46px;
}
.onmb-banner__text { flex: 1 1 auto; min-width: 0; font-size: 15.5px; line-height: 1.5; color: var(--onmb-night); }
.onmb-banner__text strong { font-weight: 800; }
.onmb-banner__note { margin-top: 3px; font-size: 14px; color: var(--onmb-text); }
.onmb-banner__action { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 340px; }
.onmb-banner__action .onmb-btn { padding: 12px 22px; font-size: 16px; }
.onmb-banner__action .onmb-banner__note { margin: 0; font-style: italic; font-size: 13.5px; text-align: right; color: var(--onmb-night); }

/* ───────────────────────── Tiroir mobile / tablette ───────────────────────── */
.onmb-drawer { position: fixed; inset: 0; z-index: 1100; visibility: hidden; pointer-events: none; transition: visibility 0s linear .3s; }
.onmb-drawer.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.onmb-drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 50, .55); opacity: 0; transition: opacity .28s ease; }
.onmb-drawer.is-open .onmb-drawer__backdrop { opacity: 1; }
.onmb-drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 440px);
    display: flex; flex-direction: column; background: #fff; box-shadow: -18px 0 50px rgba(15, 29, 104, .25);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.onmb-drawer.is-open .onmb-drawer__panel { transform: none; }
.onmb-drawer__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--onmb-line); }
.onmb-logo--small .onmb-logo__mark { font-size: 30px; }
.onmb-logo--small .onmb-logo__bar { height: 30px; }
.onmb-logo--small .onmb-logo__name { font-size: 12.5px; }
.onmb-logo--small { gap: 10px; }
.onmb-drawer__close {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none;
    border-radius: 10px !important; border: 1.5px solid var(--onmb-line) !important; color: var(--onmb-night); font-size: 22px;
}
.onmb-drawer__close:hover { border-color: var(--onmb-night) !important; }
.onmb-drawer__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 16px 32px; }
.onmb-drawer__body > .onmb-searchfield { margin-bottom: 14px; }
.onmb-drawer__buttons { display: grid; gap: 10px; margin-bottom: 18px; }
.onmb-drawer__buttons .onmb-btn { width: 100%; padding: 13px 16px; font-size: 15.5px; }

.onmb-acc { border-top: 1px solid var(--onmb-line); }
.onmb-acc__item { border-bottom: 1px solid var(--onmb-line); }
.onmb-acc__btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 15px 4px; font: 700 16.5px/1.2 var(--onmb-font); color: var(--onmb-night);
}
.onmb-acc__btn:hover, .onmb-acc__btn.is-active, .onmb-acc__btn[aria-expanded="true"] { color: var(--onmb-red); }
.onmb-acc__btn.is-active { box-shadow: inset 3px 0 0 var(--onmb-red); padding-left: 14px; }
.onmb-acc__chev { width: 20px; height: 20px; stroke-width: 2.2; transition: transform .2s ease; }
.onmb-acc__btn[aria-expanded="true"] .onmb-acc__chev { transform: rotate(180deg); }
.onmb-acc__panel { padding: 4px 0 18px; }

/* Contenu des panneaux dans l'accordéon : colonnes empilées */
.onmb-acc__panel .onmb-cols { display: block; padding: 0; }
.onmb-acc__panel .onmb-col { padding: 14px 0 6px; border-left: 0; }
.onmb-acc__panel .onmb-col + .onmb-col { border-top: 1px dashed var(--onmb-line); }
.onmb-acc__panel .onmb-col__head { min-height: 0; gap: 12px; margin-bottom: 6px; }
.onmb-acc__panel .onmb-pastille { width: 42px; height: 42px; border-radius: 12px; font-size: 23px; }
.onmb-acc__panel .onmb-col__title { font-size: 14px !important; }
.onmb-acc__panel .onmb-link { padding: 11px 2px; font-size: 15px; }
.onmb-acc__panel .onmb-filters { display: block; margin: 8px 0 0; padding: 14px 0 6px; }
.onmb-acc__panel .onmb-filters__all { display: none; }  /* doublon du bouton du bandeau */
.onmb-acc__panel .onmb-filters__group { display: grid; gap: 10px; padding: 0; border: 0; }
.onmb-acc__panel .onmb-filters__label { font-size: 14px; }
.onmb-acc__panel .onmb-select { width: 100%; }
.onmb-acc__panel .onmb-banner { flex-direction: column; align-items: stretch; gap: 12px; margin: 14px 0 0; padding: 16px; }
.onmb-acc__panel .onmb-banner__icon { align-self: flex-start; padding: 0; border: 0; font-size: 38px; }
.onmb-acc__panel .onmb-banner__action { align-items: stretch; max-width: none; }
.onmb-acc__panel .onmb-banner__action .onmb-btn { width: 100%; }
.onmb-acc__panel .onmb-banner__action .onmb-banner__note { text-align: left; }

/* ───────────────────────── Pied de page ───────────────────────── */
.onmb-footer { background: var(--onmb-night); color: #fff; margin: 0; }
.onmb-footer a { color: #fff; }
.onmb-footer a:hover { color: #fff; }
.onmb-footer__info {
    display: flex; flex-wrap: wrap; gap: 6px 30px; padding: 15px 0 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .13); font-size: 13.5px; color: rgba(255, 255, 255, .78);
}
.onmb-footer__line { display: flex; align-items: center; gap: 9px; }
.onmb-footer__line .onmb-svg { font-size: 16px; color: #7fd5cb; flex: none; }
.onmb-footer__line span:not(.onmb-svg) { color: rgba(255, 255, 255, .82); min-width: 0; }
.onmb-footer__line a { color: rgba(255, 255, 255, .9); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.onmb-footer__line a:hover { text-decoration-color: #fff; }

.onmb-footer__main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; padding: 20px 0; }
.onmb-footer__links { display: flex; align-items: center; flex-wrap: wrap; row-gap: 12px; }
.onmb-footer__links li + li { margin-left: 16px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .28); }
.onmb-footer__item { display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px/1.2 var(--onmb-font); }
.onmb-footer__item .onmb-svg { font-size: 20px; }
.onmb-footer__item--text { font-size: 13.5px; font-weight: 500; }
.onmb-footer__item:hover span, .onmb-footer__item--text:hover { text-decoration: underline; text-underline-offset: 4px; }

.onmb-footer__social { display: flex; flex-direction: column; gap: 8px; padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .28); }
.onmb-footer__social-title { font: 600 14px/1 var(--onmb-font); color: #fff; }
.onmb-footer__social-list { display: flex; flex-wrap: wrap; gap: 6px; }
.onmb-social {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px;
    border: 1px solid transparent; border-radius: 7px; font: 700 13px/1 var(--onmb-font);
}
.onmb-social .onmb-svg { font-size: 19px; }
.onmb-social--facebook { background: #1877f2; }
.onmb-social--youtube  { background: #e11d1d; }
.onmb-social--x        { background: #0b1220; border-color: rgba(255, 255, 255, .55); }
.onmb-social--linkedin { background: #0a66c2; border-color: rgba(255, 255, 255, .35); }
.onmb-social:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
.onmb-social.is-disabled { cursor: default; opacity: .85; }
.onmb-social.is-disabled:hover { transform: none; box-shadow: none; }
.onmb-footer__copy { padding: 0 72px 18px 0; font-size: 12.5px; color: rgba(255, 255, 255, .6); } /* marge à droite : bouton « haut de page » du thème */

/* ───────────────────────── Verrouillage du fond (tiroir ouvert) ───────────────────────── */
html.onmb-lock, html.onmb-lock body { overflow: hidden !important; }

/* ───────────────────────── Adaptations ───────────────────────── */
@media (min-width: 992px) {
    .onmb-drawer { display: none; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .onmb-header__top { gap: 14px; }
    .onmb-logo__mark { font-size: 36px; }
    .onmb-logo__bar { height: 36px; }
    .onmb-logo__name { font-size: 13.5px; }
    .onmb-header__actions { gap: 8px; }
    .onmb-header .onmb-btn { padding: 9px 11px; font-size: 13px; }
    .onmb-nav__link { padding: 0 8px; font-size: 14.5px; gap: 4px; }
    .onmb-nav__chev { width: 15px; height: 15px; }
    .onmb-nav__search { margin-left: 4px; padding-left: 6px; }
    .onmb-cols { padding: 24px 12px 18px; }
    .onmb-col { padding: 0 20px; }
    .onmb-col__title { font-size: 15.5px !important; }
    .onmb-pastille { width: 48px; height: 48px; font-size: 26px; }
    .onmb-link { font-size: 14.5px; padding: 10px 2px; }
    .onmb-banner { padding: 14px 18px; gap: 16px; }
    .onmb-banner__text { font-size: 14.5px; }
    .onmb-filters { margin: 0 20px; }
    .onmb-filters__group { padding-left: 16px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .onmb-nav__link { padding: 0 10px; }
}

@media (max-width: 991.98px) {
    .onmb-header__bar { display: none; }
    .onmb-header__secondary { display: none; }
    .onmb-burger { display: inline-flex; }
    .onmb-header__top { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
    .onmb-header.is-compact .onmb-header__top { padding-top: 6px; padding-bottom: 6px; }
    .onmb-header__actions { gap: 10px; }
    .onmb-logo__mark { font-size: 34px; }
    .onmb-logo__bar { height: 32px; }
    .onmb-logo__name { font-size: 12.5px; }
    .onmb-header.is-compact .onmb-logo__mark { font-size: 28px; }
    .onmb-header.is-compact .onmb-logo__bar { height: 26px; }
    .onmb-header.is-compact .onmb-logo__name { font-size: 11.5px; }
    .onmb-header .onmb-btn { padding: 10px 14px; font-size: 14px; }
    .onmb-footer__social { padding-left: 0; border-left: 0; }
}
@media (max-width: 575.98px) {
    .onmb-container { padding-inline: 16px; }
    .onmb-header .onmb-btn.onmb-header__connect { padding: 3px 14px 3px 3px; gap: 7px; font-size: 13.5px; }
    .onmb-header__avatar { width: 26px; height: 26px; }
    .onmb-header .onmb-btn.onmb-header__connect .onmb-svg { font-size: 15px; }
    .onmb-logo { gap: 10px; }
    .onmb-logo__mark { font-size: 30px; }
    .onmb-logo__bar { height: 28px; }
    .onmb-logo__name { font-size: 11px; }
    .onmb-header.is-compact .onmb-logo__mark { font-size: 26px; }
    .onmb-header.is-compact .onmb-logo__bar { height: 24px; }
}
@media (max-width: 439.98px) {
    /* Écrans étroits : seul le sigle reste dans la ligne d'en-tête (le nom complet figure dans le tiroir) */
    .onmb-header .onmb-logo__bar, .onmb-header .onmb-logo__name { display: none; }
}

/* Pied de page : empilement sur petits écrans */
@media (max-width: 1199.98px) {
    .onmb-footer__social { padding-left: 0; border-left: 0; width: 100%; }
}
@media (max-width: 767.98px) {
    /* sans séparateurs : une rupture de ligne ne laisse plus un trait ou un texte collé au précédent */
    .onmb-footer__links { column-gap: 22px; row-gap: 14px; }
    .onmb-footer__links li + li { margin-left: 0; padding-left: 0; border-left: 0; }
    .onmb-social { height: 42px; flex: 1 1 calc(50% - 8px); justify-content: center; }
    .onmb-footer__social-list { width: 100%; }
    .onmb-footer__social-list li { flex: 1 1 calc(50% - 8px); display: flex; }
    .onmb-footer__social-list .onmb-social { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .onmb-mega, .onmb-drawer__panel, .onmb-drawer__backdrop, .onmb-header, .onmb-header__top, .onmb-logo__mark, .onmb-nav__link::after { transition: none !important; }
}
