/* LAYOUT GLOBAL */
.sidebar {
  position: fixed;
  top: 50%;
  left: 8rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  z-index: 100;
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.nav-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*  2 MENUS NAV */
.nav-group {
  box-sizing: border-box;
  width: calc(var(--nav-item-size) + 2rem);
  margin: 0;
  padding: 2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--navbar-color);
  border: 1.5px solid var(--navbar-stroke);
  border-radius: 50px;
  box-shadow: 0px 0px 35px #00000099;
  backdrop-filter: blur(10px);
  color: var(--text-primary-color);
}

/* SÉPARATEUR  */
.nav-separator {
  width: 4rem;
  height: 2px;
  border-radius: 2px;
  background-color: var(--button-color-hover);
}

/* TITRE "PROJETS"  */
.nav-title {
  padding: 0.35rem 0 0.45rem;
}

.nav-label {
  display: block;
  font-family: var(--font-global);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--text-primary-color);
}

/*  AVATAR "ZW" */
.nav-brand {
  display: flex;
}

.avatar-tag {
  display: grid;
  place-items: center;
  width: var(--nav-item-size);
  height: var(--nav-item-size);
  box-sizing: border-box;
  font-family: var(--font-global);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-primary-color);
  background-color: var(--orbs-primary-color);
  border: 1.5px solid var(--navbar-stroke);
  border-radius: 50%;
}

/* BOUTONS / SVG */
.nav-link {
  display: grid;
  place-items: center;
  width: var(--nav-item-size);
  height: var(--nav-item-size);
  border-radius: var(--nav-item-radius);
  color: var(--navbar-svg-color);
  text-decoration: none;
  transition:
    background-color 0.3s ease-in-out,
    color 0.3s ease-in-out,
    filter 0.3s ease-in-out;

  svg {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    fill: currentColor;
  }

  &:hover,
  &:active,
  &.active {
    background-color: var(--button-color-hover);
    color: var(--svg-color-hover);
    filter: drop-shadow(var(--button-drop-shadow));
  }
}

/* RESPONSIVE TABLETTE / MOBILE */
@media (max-width: 1860px) {
  .sidebar {
    position: fixed;
    top: 50%;
    left: 50%;
    bottom: 1rem;
    top: auto;
    right: auto;
    transform: translateX(-50%);
    z-index: 100;
    flex-direction: row;
    width: max-content;
    max-width: calc(100vw - 1rem);
    padding: 0.5rem 0.75rem;
    margin: 0;
    background-color: var(--navbar-color);
    border: 1.5px solid var(--navbar-stroke);
    border-radius: 100px;
    box-shadow: 0px 0px 35px #00000099;
    backdrop-filter: blur(10px);
  }

  .nav {
    flex-direction: row;
    gap: clamp(0.25rem, 2.5vw, 1rem);
  }

  .nav-section {
    flex-direction: row;
  }

  .nav-group {
    flex-direction: row;
    width: auto;
    padding: 0;
    gap: clamp(0.25rem, 2.5vw, 1rem);
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .nav-separator,
  .nav-title {
    display: none;
  }
}

/* Responsive pour des appareils beaucoup plus compacte. */
@media (max-width: 480px) {
  .sidebar {
    --nav-item-size: 2.75rem;
  }

  .nav-link svg {
    width: 1.3rem;
    height: 1.3rem;
  }
}

@media (max-width: 360px) {
  .sidebar {
    --nav-item-size: 2.5rem;
    padding: 0.4rem 0.5rem;
  }
}
