/* SIDER FERRUM – barre de navigation par catégories (partagée par toutes les pages) */
:root{--sfnav-h:46px}
html{scroll-padding-top:128px}
body>header{top:var(--sfnav-h)!important}

.sfnav{position:sticky;top:0;z-index:1000;height:var(--sfnav-h);background:#04101e;border-bottom:1px solid rgba(255,255,255,.1);font-family:inherit;font-size:14px;line-height:1.2}
.sfnav *,.sfnav *:before,.sfnav *:after{box-sizing:border-box}
.sfnav a,.sfnav button{font:inherit;color:#dce8f3;text-decoration:none}
.sfnav ul{list-style:none;margin:0;padding:0}
.sfnav__in{width:min(1160px,calc(100% - 40px));height:100%;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px}

.sfnav__toggle,.sfnav__here{display:none}

.sfnav__menu{display:flex;align-items:stretch;height:100%;gap:2px}
.sfnav__menu>li{position:relative;display:flex}
.sfnav__link,.sfnav__tab{display:inline-flex;align-items:center;gap:8px;height:100%;padding:0 15px;background:none;border:0;border-bottom:2px solid transparent;cursor:pointer;font-weight:650;letter-spacing:.01em;white-space:nowrap;transition:color .2s,background .2s,border-color .2s}
.sfnav__link:hover,.sfnav__tab:hover,.sfnav__group.open>.sfnav__tab{color:#fff;background:rgba(255,255,255,.07)}
.sfnav__link[aria-current="page"],.sfnav__group.is-current>.sfnav__tab{color:#fff;border-bottom-color:#51c7f2}
.sfnav a:focus-visible,.sfnav button:focus-visible{outline:2px solid #51c7f2;outline-offset:-2px}

.sfnav__caret{width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .2s;flex:none}
.sfnav__group.open>.sfnav__tab .sfnav__caret{transform:rotate(225deg) translate(-1px,-1px)}

.sfnav__sub{display:none;position:absolute;top:100%;left:0;min-width:250px;padding:8px;background:#fff;border:1px solid #e3eaf1;border-top:0;border-radius:0 0 12px 12px;box-shadow:0 18px 40px rgba(4,16,30,.28)}
.sfnav__group.open>.sfnav__sub{display:block}
@media (hover:hover) and (min-width:861px){
  .sfnav__group:hover>.sfnav__sub,.sfnav__group:focus-within>.sfnav__sub{display:block}
  .sfnav__group:hover>.sfnav__tab{color:#fff;background:rgba(255,255,255,.07)}
}
.sfnav__sub a{display:block;padding:11px 14px;border-radius:8px;color:#17283a;font-size:14px;font-weight:600;white-space:nowrap}
.sfnav__sub a:hover{background:#eef6fc;color:#0878c9}
.sfnav__sub a[aria-current="page"]{background:#eaf5fc;color:#0878c9;font-weight:750}

@media (max-width:860px){
  .sfnav__in{width:min(1160px,calc(100% - 28px))}
  .sfnav__toggle{display:inline-flex;align-items:center;gap:11px;height:100%;padding:0 4px;background:none;border:0;color:#fff;font-weight:700;cursor:pointer}
  .sfnav__burger{position:relative;display:block;width:20px;height:14px;border-top:2px solid currentColor;border-bottom:2px solid currentColor}
  .sfnav__burger:before{content:"";position:absolute;left:0;right:0;top:50%;height:2px;margin-top:-1px;background:currentColor}
  .sfnav.is-open .sfnav__toggle{color:#51c7f2}
  .sfnav__here{display:block;max-width:58%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#a9bdcf;font-size:12px;font-weight:650;letter-spacing:.05em;text-transform:uppercase}

  .sfnav__menu{display:none;position:absolute;left:0;right:0;top:100%;height:auto;max-height:calc(100vh - var(--sfnav-h));max-height:calc(100dvh - var(--sfnav-h));overflow-y:auto;flex-direction:column;gap:0;padding:6px 20px 16px;background:#071a2d;border-bottom:1px solid rgba(255,255,255,.1);box-shadow:0 22px 40px rgba(4,16,30,.35)}
  .sfnav.is-open .sfnav__menu{display:flex}
  .sfnav__menu>li{display:block;border-bottom:1px solid rgba(255,255,255,.08)}
  .sfnav__menu>li:last-child{border-bottom:0}
  .sfnav__link,.sfnav__tab{width:100%;height:auto;min-height:48px;padding:12px 4px;justify-content:space-between;border-bottom:0;font-size:15px}
  .sfnav__link[aria-current="page"],.sfnav__group.is-current>.sfnav__tab{color:#51c7f2;border-bottom:0}
  .sfnav__sub{position:static;min-width:0;padding:0 0 10px 12px;background:transparent;border:0;border-radius:0;box-shadow:none}
  .sfnav__sub a{padding:12px;color:#dce8f3;white-space:normal}
  .sfnav__sub a:hover{background:rgba(255,255,255,.07);color:#fff}
  .sfnav__sub a[aria-current="page"]{background:rgba(81,199,242,.14);color:#51c7f2}
}

@media print{.sfnav{display:none}body>header{top:0!important}}
