/* ============================================================================
   NOUVEAU HEADER JFLB - Structure propre et moderne
   ============================================================================ */

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Container principal du header */
.jflb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 70px;
  background-color: #22b3c1;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Container interne avec max-width */
.jflb-header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.jflb-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.jflb-logo-text {
  color: white;
  font-weight: normal;
  font-size: 32px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
}

/* Navigation */
.jflb-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.jflb-nav-item {
  position: relative;
  padding-left: 10px;
  padding-right: 10px;
}

.jflb-nav-link {
  display: block;
  padding: 12px 15px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: visible;
  background-color: transparent;
  border: none;
  width: 120px;
  text-align: center;
}

/* Effet de survol */
.jflb-nav-link:hover {
  text-decoration: none;
  color: white;
  transform: translateY(-3px);
}

/* Item actif - en gris */
.jflb-nav-link.active {
  background-color: transparent;
  box-shadow: none;
  font-weight: 400;
  color: #666666;
}

/* Sous-menu */
.jflb-nav-item.has-submenu {
  position: relative;
}

.jflb-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 0;
  margin-top: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  z-index: 1001;
}

.jflb-nav-item.has-submenu:hover .jflb-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.jflb-submenu-item {
  padding: 0;
  margin: 0;
}

.jflb-submenu-link {
  display: block;
  padding: 10px 20px;
  color: #2a2a2a;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.jflb-submenu-link:hover {
  background-color: #f7f7f7;
  padding-left: 25px;
  color: #22b3c1;
  text-decoration: none;
}

/* Menu burger pour mobile */
.jflb-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.jflb-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
  transform-origin: center;
}

.jflb-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.jflb-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.jflb-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Responsive - Tablettes */
@media (max-width: 992px) {
  .jflb-header {
    height: 100px;
  }

  .jflb-header-container {
    padding: 0 20px;
  }

  .jflb-logo-text {
    font-size: 28px;
  }

  .jflb-menu-toggle {
    display: flex;
  }

  .jflb-nav {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background-color: #f7f7f7;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .jflb-nav.open {
    max-height: 500px;
  }

  .jflb-nav-item {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
  }

  .jflb-nav-item:first-child {
    border-top: 1px solid #e0e0e0;
  }

  .jflb-nav-link {
    padding: 15px 20px;
    color: #2a2a2a;
    border-radius: 0;
  }

  .jflb-nav-link:hover {
    background-color: #fff;
    color: #22b3c1;
    opacity: 1;
  }

  .jflb-nav-link.active {
    background-color: rgba(34, 179, 193, 0.1);
    color: #22b3c1;
  }

  /* Sous-menu en mode mobile */
  .jflb-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #f0f0f0;
    margin-top: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .jflb-nav-item.has-submenu.open .jflb-submenu {
    max-height: 300px;
  }

  .jflb-submenu-link {
    padding: 12px 20px 12px 40px;
    font-size: 13px;
  }

  .jflb-submenu-link:hover {
    padding-left: 45px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .jflb-logo-text {
    font-size: 24px;
  }

  .jflb-header-container {
    padding: 0 15px;
  }
}

/* Ajustement du padding du body pour compenser le header fixe */
body {
  padding-top: 70px;
  margin-top: -65px;
}

@media (max-width: 992px) {
  body {
    padding-top: 100px;
  }
}

/* Force la scrollbar visible pour éviter les décalages */
html {
  overflow-y: scroll !important;
}
