/* ===== HEADER ===== */

.header {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header-top {
  width: 100%;
  background-color: #00001e;
  display: flex;
  align-items: center;
  padding: 12px 20px;
}

.header-top img {
  width: 190px;
  max-width: 100%;
  height: auto;
}

/* bande décorative sous le logo */
.header-bande {
  height: 25px;
  width: 100%;
  background-image: url(/image/image2.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== MENU BURGER ===== */

#burger-button-display {
  position: absolute;
  top: 22px;
  right: 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #00001e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s, transform 0.2s;
}

#burger-button-display:hover {
  background: #ffffff;
  transform: scale(1.05);
}

#burger-button-display:focus-visible {
  outline: 2px solid #ff6400;
  outline-offset: 3px;
}

.header nav ul {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  background-color: #00001e;
}

.header nav ul li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  padding: 14px 20px;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.header nav ul li a i {
  margin-right: 10px;
  font-size: 1.1rem;
}

.header nav ul li a:hover {
  background-color: rgba(255, 112, 16, 0.12);
  color: #ffffff;
  border-left-color: rgba(255, 112, 16, 0.5);
}

.header nav ul li a:focus-visible {
  outline: 2px solid #ff6400;
  outline-offset: -2px;
}

/* ===== LIEN ACTIF ===== */

.header nav ul li a.lien-actif {
  background-color: rgba(255, 255, 255, 0.08);
  border-left-color: #ff7010;
  color: #ffffff;
  font-weight: 500;
}

/* ===== PILOTAGE JS DU MENU ===== */

#navbar.nav-hide #nav-ul {
  display: none;
}

#navbar.nav-hide i.ti-x {
  display: none;
}

#navbar:not(.nav-hide) i.ti-menu-2 {
  display: none;
}

/* ===== DESKTOP ===== */

@media screen and (min-width: 1024px) {

  .header {
    width: 230px;
    flex-shrink: 0;
    min-height: 100vh;
    background-color: #00001e;
  }

  .header-top {
    padding: 20px;
  }

  #navbar {
    flex: 1;
    background-color: #00001e;
    padding-top: 12px;
  }

  #burger-button-display {
    display: none;
  }

  #nav-ul {
    display: flex;
    flex-direction: column;
  }
}