/* URG360 Alpha 1.15 — famille d'icônes cohérente pour le menu principal. */

#appSidebar .sidebar-nav .nav-icon[data-u360-main-nav-icon]{
  width:24px!important;
  height:24px!important;
  flex:0 0 24px!important;
  display:block!important;
  color:inherit!important;
  background-color:currentColor!important;
  -webkit-mask-image:var(--u360-main-nav-icon)!important;
  mask-image:var(--u360-main-nav-icon)!important;
  -webkit-mask-repeat:no-repeat!important;
  mask-repeat:no-repeat!important;
  -webkit-mask-position:center!important;
  mask-position:center!important;
  -webkit-mask-size:23px 23px!important;
  mask-size:23px 23px!important;
  font-size:0!important;
  line-height:0!important;
}
#appSidebar .sidebar-nav-btn{gap:13px}
#appSidebar .sidebar-nav-btn.active .nav-icon[data-u360-main-nav-icon]{opacity:1}
#appSidebar .sidebar-nav-btn:not(.active) .nav-icon[data-u360-main-nav-icon]{opacity:.95}

/* Accueil */
#appSidebar [data-u360-main-nav-icon="home"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10M9 20v-6h6v6'/%3E%3C/svg%3E");
}

/* Gestion administrative */
#appSidebar [data-u360-main-nav-icon="administrative"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M9 3v3h6V3M8 11h8M8 15h5'/%3E%3C/svg%3E");
}

/* Urgences */
#appSidebar [data-u360-main-nav-icon="emergency"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E");
}

/* UHCD */
#appSidebar [data-u360-main-nav-icon="bed"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18V8M3 14h18v4M7 14v-3h5a3 3 0 0 1 3 3M3 18v2M21 18v2'/%3E%3C/svg%3E");
}

/* Hospitalisation */
#appSidebar [data-u360-main-nav-icon="hospital"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4h10v17M15 8h4v13M8 8h4M8 12h4M8 16h4M9 21v-3h2v3'/%3E%3C/svg%3E");
}

/* Fiches & ordonnances */
#appSidebar [data-u360-main-nav-icon="file-medical"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l4 4v16H6zM15 2v5h4'/%3E%3Cpath d='M12 11v6M9 14h6'/%3E%3C/svg%3E");
}

/* Protocoles & check-lists */
#appSidebar [data-u360-main-nav-icon="book-check"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5a3 3 0 0 1 3-3h5v18H6a3 3 0 0 0-3 3zM21 5a3 3 0 0 0-3-3h-5v18h5a3 3 0 0 1 3 3z'/%3E%3Cpath d='m15.5 9 1.5 1.5 3-3'/%3E%3C/svg%3E");
}
#appSidebar [data-u360-main-nav-icon="checklist"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 2 2 3-3M11 7h9M4 12l2 2 3-3M11 13h9M4 18l2 2 3-3M11 19h9'/%3E%3C/svg%3E");
}

/* SAUV */
#appSidebar [data-u360-main-nav-icon="shield-plus"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 20 6v5c0 5-3.4 8.5-8 10-4.6-1.5-8-5-8-10V6z'/%3E%3Cpath d='M12 8v7M8.5 11.5h7'/%3E%3C/svg%3E");
}
#appSidebar [data-u360-main-nav-icon="heart-pulse"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1.1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l4.2-4.1'/%3E%3Cpath d='M3 14h4l2-4 3 7 2-4h7'/%3E%3C/svg%3E");
}
#appSidebar [data-u360-main-nav-icon="brain"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 4A3.5 3.5 0 0 0 6 7.5c-2 0-3 1.5-3 3s.8 2.5 2 3c-1 2.5.8 5 3.5 5A3.5 3.5 0 0 0 12 21V4a2.5 2.5 0 0 0-2.5-2Z'/%3E%3Cpath d='M14.5 4A3.5 3.5 0 0 1 18 7.5c2 0 3 1.5 3 3s-.8 2.5-2 3c1 2.5-.8 5-3.5 5A3.5 3.5 0 0 1 12 21M8 9c2 0 3 1 3 3M16 9c-2 0-3 1-3 3'/%3E%3C/svg%3E");
}

/* Console imagerie */
#appSidebar [data-u360-main-nav-icon="scan"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3M16 3h3a2 2 0 0 1 2 2v3M21 16v3a2 2 0 0 1-2 2h-3M8 21H5a2 2 0 0 1-2-2v-3'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
}

/* Consultations */
#appSidebar [data-u360-main-nav-icon="calendar-medical"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18M12 13v5M9.5 15.5h5'/%3E%3C/svg%3E");
}

/* LRM — régulation médicale (accès DEV). */
#appSidebar [data-u360-main-nav-icon="headset"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-3a8 8 0 0 1 16 0v3'/%3E%3Crect x='2' y='13' width='4' height='7' rx='2'/%3E%3Crect x='18' y='13' width='4' height='7' rx='2'/%3E%3Cpath d='M20 20a3 3 0 0 1-3 3h-4'/%3E%3C/svg%3E");
}

/* Mes avis */
#appSidebar [data-u360-main-nav-icon="messages"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a7 7 0 0 1-7 7H8l-4 3 1.4-4.2A7 7 0 1 1 20 11Z'/%3E%3Cpath d='M16 6.5A6 6 0 0 1 21 12v4l-3-2'/%3E%3C/svg%3E");
}

/* Recherche patient */
#appSidebar [data-u360-main-nav-icon="search"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E");
}

/* Lits disponibles */
#appSidebar [data-u360-main-nav-icon="bed-check"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18V8M3 14h12v4M7 14v-3h4a3 3 0 0 1 3 3M3 18v2M15 18v2'/%3E%3Cpath d='m16.5 10 2 2 3.5-4'/%3E%3C/svg%3E");
}

/* Prévision lits */
#appSidebar [data-u360-main-nav-icon="trend"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18 10 12l4 4 6-8'/%3E%3Cpath d='M15 8h5v5'/%3E%3C/svg%3E");
}

/* Gestion des lits */
#appSidebar [data-u360-main-nav-icon="bed-grid"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='7' height='7' rx='1'/%3E%3Crect x='14' y='4' width='7' height='7' rx='1'/%3E%3Crect x='3' y='15' width='7' height='5' rx='1'/%3E%3Crect x='14' y='15' width='7' height='5' rx='1'/%3E%3C/svg%3E");
}

/* Statistiques */
#appSidebar [data-u360-main-nav-icon="chart"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E");
}

/* Accès temporaires */
#appSidebar [data-u360-main-nav-icon="key-clock"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='12' r='4'/%3E%3Cpath d='m11 9 3-3h3v3h3v3h-5l-4 4'/%3E%3Cpath d='M18 16v3l2 1'/%3E%3C/svg%3E");
}

/* Paramétrage */
#appSidebar [data-u360-main-nav-icon="settings"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2.8 2.8-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6v.2h-4V21a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1L4.2 17l.1-.1a1.7 1.7 0 0 0 .3-1.9A1.7 1.7 0 0 0 3 14H2.8v-4H3a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9L4.2 7 7 4.2l.1.1a1.7 1.7 0 0 0 1.9.3A1.7 1.7 0 0 0 10 3V2.8h4V3a1.7 1.7 0 0 0 1 1.6 1.7 1.7 0 0 0 1.9-.3l.1-.1L19.8 7l-.1.1a1.7 1.7 0 0 0-.3 1.9A1.7 1.7 0 0 0 21 10h.2v4H21a1.7 1.7 0 0 0-1.6 1Z'/%3E%3C/svg%3E");
}

/* Support */
#appSidebar [data-u360-main-nav-icon="help"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9a2.5 2.5 0 0 1 4.8 1c0 2-2.3 2.2-2.3 4M12 18h.01'/%3E%3C/svg%3E");
}

/* Prescription & Traçabilité, si le module est réaffiché. */
#appSidebar [data-u360-main-nav-icon="pill"]{
  --u360-main-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8.5 4.5 11 11a4 4 0 0 1-5.7 5.7l-11-11a4 4 0 0 1 5.7-5.7Z'/%3E%3Cpath d='m7 14 7-7'/%3E%3C/svg%3E");
}


/* Rétraction immédiate après navigation : tant que la souris n'est pas ressortie,
   neutraliser l'ouverture :hover du menu non épinglé. */
@media (hover:hover) and (pointer:fine) and (min-width:981px){
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact .app-sidebar,
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact .app-sidebar:hover{
    width:var(--urg-sidebar-focus)!important;
    box-shadow:10px 0 30px rgba(0,17,46,.08)!important;
    z-index:80!important;
  }
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact .app-sidebar .sidebar-lockup{display:none!important}
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact .app-sidebar .sidebar-mark{display:block!important}
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact .app-sidebar .sidebar-brand{
    padding:8px!important;
    justify-content:center!important;
  }
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact .app-sidebar .nav-label,
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact .app-sidebar .dev-dot,
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact .app-sidebar .sidebar-footer>span:first-child{
    display:none!important;
  }
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact .app-sidebar .sidebar-nav-btn{
    justify-content:center!important;
    padding:12px 10px!important;
  }
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact .app-sidebar .sidebar-footer{
    justify-content:center!important;
    padding-inline:8px!important;
  }
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact .app-sidebar .urg-sidebar-pin{
    display:none!important;
  }
}


/* ===== Alpha 1.15.54 — Sidebar premium ===== */
#appSidebar{
  background:
    radial-gradient(circle at 16% 8%,rgba(26,111,210,.15),transparent 24%),
    radial-gradient(circle at 88% 34%,rgba(35,197,236,.055),transparent 28%),
    linear-gradient(180deg,#061a36 0%,#07162c 45%,#081425 100%)!important;
  border-right:1px solid rgba(163,194,230,.10)!important;
  box-shadow:16px 0 42px rgba(3,15,31,.16)!important;
}
#appSidebar .sidebar-brand{
  border-bottom-color:rgba(255,255,255,.065)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,0));
}
#appSidebar .sidebar-nav{
  padding:15px 10px 14px!important;
  gap:4px!important;
  scrollbar-width:thin;
  scrollbar-color:rgba(168,192,220,.20) transparent;
}
#appSidebar .sidebar-nav::-webkit-scrollbar{width:5px}
#appSidebar .sidebar-nav::-webkit-scrollbar-track{background:transparent}
#appSidebar .sidebar-nav::-webkit-scrollbar-thumb{background:rgba(168,192,220,.17);border-radius:999px}

#appSidebar .sidebar-nav-btn{
  --u360-nav-accent:#7db6ef;
  min-height:44px;
  gap:13px!important;
  padding:10px 12px!important;
  border:1px solid transparent!important;
  border-radius:12px!important;
  color:#e7eef8!important;
  font-weight:680!important;
  letter-spacing:-.008em;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden;
  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease,
    transform .15s ease,
    box-shadow .15s ease!important;
}
#appSidebar .sidebar-nav-btn::after{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:3px;
  height:0;
  border-radius:0 4px 4px 0;
  background:var(--u360-nav-accent);
  box-shadow:0 0 13px color-mix(in srgb,var(--u360-nav-accent) 55%,transparent);
  transform:translateY(-50%);
  opacity:0;
  transition:height .16s ease,opacity .16s ease;
}
#appSidebar .sidebar-nav-btn:hover{
  color:#fff!important;
  background:rgba(255,255,255,.055)!important;
  border-color:rgba(181,207,236,.08)!important;
  transform:translateX(2px);
}
#appSidebar .sidebar-nav-btn.active{
  color:#fff!important;
  background:
    linear-gradient(90deg,rgba(31,111,208,.19),rgba(38,160,218,.075) 68%,rgba(255,255,255,.022))!important;
  border-color:rgba(112,176,237,.18)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 5px 16px rgba(0,35,78,.12)!important;
}
#appSidebar .sidebar-nav-btn.active::after{
  height:24px;
  opacity:1;
}
#appSidebar .sidebar-nav-btn .nav-label{
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
}
#appSidebar .sidebar-divider{
  height:1px!important;
  margin:7px 8px!important;
  background:linear-gradient(90deg,transparent,rgba(164,194,227,.14) 18%,rgba(164,194,227,.14) 82%,transparent)!important;
}

/* Icônes : couleur sémantique permanente, texte toujours blanc. */
#appSidebar [data-u360-main-nav-key="home"]{--u360-nav-accent:#8fb9e8}
#appSidebar [data-u360-main-nav-key="administrative"]{--u360-nav-accent:#93a9c3}
#appSidebar [data-u360-main-nav-key="emergency"]{--u360-nav-accent:#3cbef2}
#appSidebar [data-u360-main-nav-key="bed"]{--u360-nav-accent:#a78bfa}
#appSidebar [data-u360-main-nav-key="hospital"]{--u360-nav-accent:#8f8cf5}
#appSidebar [data-u360-main-nav-key="file-medical"]{--u360-nav-accent:#6caef5}
#appSidebar [data-u360-main-nav-key="book-check"],
#appSidebar [data-u360-main-nav-key="checklist"]{--u360-nav-accent:#c084fc}
#appSidebar [data-u360-main-nav-key="shield-plus"],
#appSidebar [data-u360-main-nav-key="heart-pulse"],
#appSidebar [data-u360-main-nav-key="brain"]{--u360-nav-accent:#ff6268}
#appSidebar [data-u360-main-nav-key="scan"]{--u360-nav-accent:#5ed7ef}
#appSidebar [data-u360-main-nav-key="calendar-medical"],
#appSidebar [data-u360-main-nav-key="messages"]{--u360-nav-accent:#d79cf6}
#appSidebar [data-u360-main-nav-key="search"]{--u360-nav-accent:#f2c14e}
#appSidebar [data-u360-main-nav-key="bed-check"]{--u360-nav-accent:#55d39f}
#appSidebar [data-u360-main-nav-key="trend"]{--u360-nav-accent:#7dcba4}
#appSidebar [data-u360-main-nav-key="bed-grid"]{--u360-nav-accent:#9d8cf2}
#appSidebar [data-u360-main-nav-key="chart"]{--u360-nav-accent:#54b9e9}
#appSidebar [data-u360-main-nav-key="key-clock"]{--u360-nav-accent:#f0aa52}
#appSidebar [data-u360-main-nav-key="settings"],
#appSidebar [data-u360-main-nav-key="help"]{--u360-nav-accent:#aebdd0}
#appSidebar [data-u360-main-nav-key="pill"]{--u360-nav-accent:#60cfaa}

#appSidebar .sidebar-nav-btn .nav-icon[data-u360-main-nav-icon]{
  color:var(--u360-nav-accent)!important;
  opacity:.98!important;
  filter:drop-shadow(0 0 7px color-mix(in srgb,var(--u360-nav-accent) 16%,transparent));
  transition:transform .15s ease,filter .15s ease,color .15s ease!important;
}
#appSidebar .sidebar-nav-btn:hover .nav-icon[data-u360-main-nav-icon],
#appSidebar .sidebar-nav-btn.active .nav-icon[data-u360-main-nav-icon]{
  transform:scale(1.035);
  filter:drop-shadow(0 0 9px color-mix(in srgb,var(--u360-nav-accent) 28%,transparent));
}

/* Recherche patient = repère doré premium. */
#appSidebar .sidebar-nav-btn[data-u360-main-nav-key="search"]{
  background:linear-gradient(90deg,rgba(242,193,78,.085),rgba(242,193,78,.018))!important;
  border-color:rgba(242,193,78,.10)!important;
}
#appSidebar .sidebar-nav-btn[data-u360-main-nav-key="search"]:hover{
  background:linear-gradient(90deg,rgba(242,193,78,.15),rgba(242,193,78,.04))!important;
  border-color:rgba(242,193,78,.19)!important;
}
#appSidebar .sidebar-nav-btn[data-u360-main-nav-key="search"].active{
  background:linear-gradient(90deg,rgba(242,193,78,.19),rgba(242,193,78,.055))!important;
  border-color:rgba(242,193,78,.23)!important;
}

/* SAUV : critique identifiable sans mettre tout le libellé en rouge. */
#appSidebar .sidebar-nav-btn.critical-nav{
  color:#f6f8fb!important;
  background:linear-gradient(90deg,rgba(255,98,104,.075),rgba(255,98,104,.012))!important;
  border-color:rgba(255,98,104,.07)!important;
}
#appSidebar .sidebar-nav-btn.critical-nav:hover{
  background:linear-gradient(90deg,rgba(255,98,104,.14),rgba(255,98,104,.03))!important;
  border-color:rgba(255,98,104,.16)!important;
}
#appSidebar .sidebar-nav-btn.critical-nav.active{
  color:#fff!important;
  background:linear-gradient(90deg,rgba(213,44,54,.72),rgba(166,28,38,.56))!important;
  border-color:rgba(255,123,128,.30)!important;
  box-shadow:0 7px 20px rgba(115,15,23,.18)!important;
}

/* Élément désactivé / indisponible : net mais non dominant. */
#appSidebar .sidebar-nav-btn:disabled,
#appSidebar .sidebar-nav-btn[aria-disabled="true"]{
  opacity:.44!important;
  filter:saturate(.45);
  cursor:not-allowed!important;
}

/* Footer premium, compact et lisible. */
#appSidebar .sidebar-footer{
  min-height:52px;
  padding:11px 14px 13px!important;
  border-top:1px solid rgba(255,255,255,.07)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(0,0,0,.05));
  color:#98acc4!important;
}
#appSidebar .environment-badge{
  border:1px solid rgba(255,255,255,.13)!important;
  background:rgba(255,255,255,.045)!important;
  color:#d9e6f5!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
}

/* Mode compact : garder la couleur comme repère principal. */
@media (hover:hover) and (pointer:fine) and (min-width:981px){
  body.urg-focus-mode:not(.urg-sidebar-pinned) #appSidebar:not(:hover) .sidebar-nav-btn,
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact #appSidebar .sidebar-nav-btn{
    border-color:transparent!important;
    background:transparent!important;
    transform:none!important;
  }
  body.urg-focus-mode:not(.urg-sidebar-pinned) #appSidebar:not(:hover) .sidebar-nav-btn[data-u360-main-nav-key="search"],
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact #appSidebar .sidebar-nav-btn[data-u360-main-nav-key="search"]{
    background:rgba(242,193,78,.065)!important;
  }
  body.urg-focus-mode:not(.urg-sidebar-pinned) #appSidebar:not(:hover) .sidebar-nav-btn.active,
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact #appSidebar .sidebar-nav-btn.active{
    background:rgba(35,115,205,.13)!important;
    border-color:rgba(109,174,235,.11)!important;
  }
  body.urg-focus-mode:not(.urg-sidebar-pinned) #appSidebar:not(:hover) .sidebar-nav-btn.active::after,
  body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact #appSidebar .sidebar-nav-btn.active::after{
    height:21px;
  }
}


/* ===== Alpha 1.15.55 — intégration du logo comme sur APP ===== */
#appSidebar .sidebar-brand{
  height:108px!important;
  min-height:108px!important;
  padding:10px 14px!important;
  justify-content:center!important;
  align-items:center!important;
  background:#001a3f!important;
  border-bottom:1px solid rgba(255,255,255,.075)!important;
}
#appSidebar .sidebar-lockup{
  display:block!important;
  width:min(224px,calc(100% - 8px))!important;
  max-width:224px!important;
  height:auto!important;
  object-fit:contain!important;
  margin:0 auto!important;
}
#appSidebar .sidebar-mark{
  display:none!important;
}

/* Menu clinique compact : symbole seul. */
body.urg-focus-mode:not(.urg-sidebar-pinned) #appSidebar .sidebar-brand{
  height:96px!important;
  min-height:96px!important;
  padding:10px 8px!important;
}
body.urg-focus-mode:not(.urg-sidebar-pinned) #appSidebar .sidebar-lockup{
  display:none!important;
}
body.urg-focus-mode:not(.urg-sidebar-pinned) #appSidebar .sidebar-mark{
  display:block!important;
  width:58px!important;
  height:58px!important;
  margin:auto!important;
}

/* Au survol du menu compact, revenir exactement au lockup horizontal. */
@media (hover:hover) and (pointer:fine) and (min-width:981px){
  body.urg-focus-mode:not(.urg-sidebar-pinned):not(.urg-sidebar-force-compact) #appSidebar:hover .sidebar-brand{
    height:108px!important;
    min-height:108px!important;
    padding:10px 14px!important;
  }
  body.urg-focus-mode:not(.urg-sidebar-pinned):not(.urg-sidebar-force-compact) #appSidebar:hover .sidebar-lockup{
    display:block!important;
  }
  body.urg-focus-mode:not(.urg-sidebar-pinned):not(.urg-sidebar-force-compact) #appSidebar:hover .sidebar-mark{
    display:none!important;
  }
}

/* Épinglé = version ouverte avec lockup horizontal. */
body.urg-focus-mode.urg-sidebar-pinned #appSidebar .sidebar-brand{
  height:108px!important;
  min-height:108px!important;
  padding:10px 14px!important;
}
body.urg-focus-mode.urg-sidebar-pinned #appSidebar .sidebar-lockup{
  display:block!important;
}
body.urg-focus-mode.urg-sidebar-pinned #appSidebar .sidebar-mark{
  display:none!important;
}

/* Rétraction forcée après navigation : retour symbole seul. */
body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact #appSidebar .sidebar-brand{
  height:96px!important;
  min-height:96px!important;
  padding:10px 8px!important;
}
body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact #appSidebar .sidebar-lockup{
  display:none!important;
}
body.urg-focus-mode:not(.urg-sidebar-pinned).urg-sidebar-force-compact #appSidebar .sidebar-mark{
  display:block!important;
  width:58px!important;
  height:58px!important;
}


/* ===== Alpha 1.15.56 — lockup fondu dans le header =====
   Le PNG officiel contient un fond #030f2a : le header reprend exactement
   cette teinte pour supprimer visuellement l'effet de cartouche/étiquette. */
#appSidebar .sidebar-brand{
  background:#030f2a!important;
}
#appSidebar .sidebar-lockup{
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
}


/* ===== Alpha 1.15.57 — logo transparent sur le dégradé premium ===== */
#appSidebar .sidebar-brand{
  background:transparent!important;
  border-bottom:1px solid rgba(163,194,230,.08)!important;
}
#appSidebar .sidebar-lockup{
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
}
