nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 250px;
  background-color: var(--primary-color);
  border-right: 1px solid var(--border-color);
  transition: var(--trans-05);
  overflow: hidden;
}
.headernav {
  position: relative;
  left: 250px;
  width: calc(100% - 250px);
  transition: var(--trans-05);
}
.headernav .top {
  position: fixed;
  height: 50px;
  top: 0;
  left: 250px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-white);
  width: calc(100% - 250px);
  padding: 10px 14px;
  transition: var(--trans-05);
}

nav.close {
  left: -250px;
}
nav.close ~ .headernav .top {
  left: 0px;
  width: 100% ;
}
nav.close ~ .contentBloc {
  left: 0px;
  width: 100% ;
}

.sidebar-toggle{cursor: pointer;}