/* La barre de navigation de gauche, commune à la page d'appel et au tableau de bord. */
:root { --barre: 76px; }
body.barre-ouverte { --barre: 236px; }

.barre {
  position: fixed; z-index: 5; inset: 0 auto 0 0; width: var(--barre);
  display: flex; flex-direction: column; gap: 6px; padding: 18px 14px;
  background: rgba(10, 14, 24, .72); border-right: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px); transition: width .22s ease; overflow: hidden;
}
.barre-tete { display: flex; align-items: center; gap: 12px; height: 44px; margin-bottom: 14px; }
.barre-logo {
  flex: 0 0 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 700; font-size: 20px; color: #0b0f18;
  background: linear-gradient(135deg, #ff8a3d, #ffb26b 55%, #2fd39a); box-shadow: 0 8px 26px rgba(255, 138, 61, .3);
}
.barre-nom { white-space: nowrap; opacity: 0; transition: opacity .18s; }
.barre-nom b { display: block; font-size: 15px; font-weight: 650; color: #eef2f8; }
.barre-nom small { font-size: 11.5px; color: #8d98ab; }
body.barre-ouverte .barre-nom, body.barre-ouverte .barre-lien span, body.barre-ouverte .barre-titre { opacity: 1; }

.barre-titre { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #5d687d; padding: 8px 14px 4px; white-space: nowrap; opacity: 0; transition: opacity .18s; }
.barre-lien {
  display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 13px; border-radius: 13px;
  color: #a4aec0; text-decoration: none; font-size: 14px; font-weight: 550; white-space: nowrap;
  border: 1px solid transparent; transition: background .18s, color .18s, border-color .18s;
}
.barre-lien svg { flex: 0 0 20px; width: 20px; height: 20px; }
.barre-lien span { opacity: 0; transition: opacity .18s; }
.barre-lien:hover { background: rgba(255, 255, 255, .06); color: #eef2f8; }
.barre-lien.actif { background: linear-gradient(135deg, rgba(255, 138, 61, .2), rgba(255, 138, 61, .05)); border-color: rgba(255, 138, 61, .45); color: #fff; }
.barre-lien.actif svg { color: #ff8a3d; }
.barre-pied { margin-top: auto; }
.barre-bascule { width: 100%; background: none; border: 0; cursor: pointer; font: inherit; }
.barre-bascule svg { transition: transform .22s; }
body.barre-ouverte .barre-bascule svg { transform: rotate(180deg); }

.avec-barre { margin-left: var(--barre); transition: margin-left .22s ease; }
@media (max-width: 760px) {
  body.barre-ouverte { --barre: 76px; }
  body.barre-ouverte .barre-nom, body.barre-ouverte .barre-lien span, body.barre-ouverte .barre-titre { opacity: 0; }
}
