/* Header mobile/tablette masqué sur PC */
.jnd-pro-sidebar-mobile-header {
  display: none;
}

/* Sidebar desktop */
.jnd-pro-sidebar {
  width: 100%;
  height: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

/* Sections */
.jnd-pro-sidebar-section,
.jnd-pro-sidebar-footer {
  margin: 0;
  padding: 0;
}

/* Tous les items */
.jnd-pro-sidebar a,
.jnd-pro-sidebar-company {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 54px;

  padding: 14px 18px;

  border: 1px solid #d9d9d9;
  border-right: none;
  border-bottom: none;

  text-decoration: none;
  box-sizing: border-box;

  transition:
    background 0.25s ease,
    color 0.25s ease;
}

/* Bordure finale */
.jnd-pro-sidebar-footer a {
  border-bottom: 1px solid #d9d9d9;
}

/* Société */
.jnd-pro-sidebar-company {
  background: #000;
  color: #fff;
  font-weight: 600;
}

/* Catégories principales */
.jnd-pro-sidebar-section > a:first-of-type {
  background: #e9e9e9;
  color: #000;
  font-weight: 600;
}

/* Sous-items */
.jnd-pro-sidebar-section a:not(:first-of-type) {
  background: #fff;
  color: #000;
  padding-left: 32px;
  font-size: 15px;
}

/* Hover */
.jnd-pro-sidebar a:hover {
  background: #009900;
  color: #fff;
}

/* Déconnexion */
.jnd-pro-logout {
  background: #009900 !important;
  color: #fff !important;
  font-weight: 600;
  text-align: center;
  justify-content: center !important;
}

.jnd-pro-logout:hover {
  background: #000 !important;
  color: #fff !important;
}

/* Caret */
.jnd-pro-sidebar-dropdown::after {
  content: "\f0d7";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 14px;
}

/* PC intermédiaire */
@media (min-width: 981px) and (max-width: 1200px) {

  .jnd-pro-sidebar {
    font-size: 15px;
  }

  .jnd-pro-sidebar a,
  .jnd-pro-sidebar-company {
    min-height: 50px;
    padding: 12px 16px;
  }

  .jnd-pro-sidebar-section a:not(:first-of-type) {
    padding-left: 26px;
    font-size: 14px;
  }
}

/* Tablette + mobile */
@media (max-width: 980px) {

  .jnd-pro-sidebar-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100% !important;
    max-width: 100% !important;

    min-height: 52px;
    padding: 14px 18px;

    background: linear-gradient(135deg, #000 0%, #111 45%, #009900 100%);
    color: #fff;

    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;

    box-sizing: border-box;

    border: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  }

  .jnd-pro-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 32px;

    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 6px;

    background: rgba(0,0,0,0.25);
    color: #fff;

    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .jnd-pro-sidebar {
    display: none;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    margin-bottom: 24px;
  }

  .jnd-pro-sidebar.is-open {
    display: block !important;
  }

  .jnd-pro-sidebar-company {
    display: none !important;
  }

  .jnd-pro-layout-row,
  .jnd-pro-layout-row .et_pb_column,
  .jnd-pro-layout-row .et_pb_module,
  .jnd-pro-layout-row .et_pb_code,
  .jnd-pro-layout-row .et_pb_code_inner {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Mobile uniquement */
@media (max-width: 767px) {

  .jnd-pro-sidebar-mobile-header {
    min-height: 50px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .jnd-pro-sidebar-toggle {
    width: 36px;
    height: 32px;
    font-size: 21px;
  }

  .jnd-pro-sidebar {
    margin-bottom: 20px;
  }

  .jnd-pro-sidebar a {
    min-height: 46px;
    padding: 11px 14px;
    font-size: 14px;
  }

  .jnd-pro-sidebar-section a:not(:first-of-type) {
    padding-left: 24px;
    font-size: 13px;
  }

  .jnd-pro-sidebar-dropdown::after {
    font-size: 12px;
  }
}