/* Reset CSS pour éviter tout conflit */
.ef-navbar *,
.ef-navbar *::before,
.ef-navbar *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ef-navbar {
  background-color: #2C3E50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  height: 70px; /* Hauteur fixe pour le menu */
}

.ef-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.ef-navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.ef-navbar-logo {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  min-width: 160px;
  flex-shrink: 0;
}

.ef-navbar-logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.ef-navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

.ef-navbar-menu {
  display: flex;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.ef-navbar-item {
  position: relative;
  margin: 0 8px;
  flex-shrink: 0;
}

.ef-navbar-link {
  color: #fff;
  text-decoration: none;
  padding: 25px 12px;
  display: block;
  font-weight: 400;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 0.95rem;
}

.ef-navbar-link:hover,
.ef-navbar-link:focus {
  color: #bda27e;
  background-color: rgba(255,255,255,0.05);
}

.ef-navbar-link.active {
  background-color: rgba(255,255,255,0.1);
}

.ef-dropdown {
  position: relative;
}

.ef-dropdown-toggle::after {
  content: '▼';
  margin-left: 5px;
  font-size: 0.8rem;
}

.ef-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 380px;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: none;
  border-radius: 0 0 4px 4px;
  z-index: 1031;
  padding: 5px 0;
  white-space: nowrap;
}

/* Ajustement automatique pour éviter de sortir de l'écran */
.ef-navbar-item:nth-last-child(-n+2) .ef-dropdown-menu {
  left: auto;
  right: 0;
}

.ef-dropdown:hover .ef-dropdown-menu,
.ef-dropdown:focus-within .ef-dropdown-menu {
  display: block;
}

.ef-dropdown-item {
  display: block;
  padding: 12px 18px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.2s;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: nowrap;
}

.ef-dropdown-item:hover {
  background-color: #f8f9fa;
  color: #C0392B;
}

.ef-dropdown-header {
  padding: 14px 18px;
  background-color: #2C3E50;
  color: #ffffff;
  border-bottom: 2px solid #34495e;
  border-top: 1px solid #34495e;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ef-premium-item {
  background-color: rgba(192, 57, 43, 0.05);
  border-left: 3px solid #C0392B;
  margin: 1px 0;
}

.ef-premium-item .ef-dropdown-item {
  padding: 14px 18px;
  font-weight: 500;
  color: #2C3E50;
}

.ef-premium-item .ef-dropdown-item:hover {
  background-color: rgba(192, 57, 43, 0.1);
  color: #C0392B;
}

.ef-premium-star {
  color: #FFD700;
  margin-left: 5px;
  font-size: 0.9rem;
}

.ef-action-btn {
  background-color: #C0392B;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s;
  display: inline-block;
  margin: 0 5px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.ef-action-btn:hover {
  background-color: #A93226;
  color: #fff;
  transform: none;
}

.ef-submenu-toggle {
  cursor: pointer;
  padding: 14px 18px;
  background-color: #2C3E50;
  color: #ffffff;
  border-bottom: 2px solid #34495e;
  border-top: 1px solid #34495e;
  font-weight: 600;
  user-select: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  white-space: nowrap;
}

.ef-submenu-toggle::after {
  content: '▸';
  float: right;
}

.ef-submenu-toggle:hover {
  background-color: #34495e;
  color: #bda27e;
}

.ef-submenu-toggle.active {
  background-color: #C0392B;
}

.ef-submenu-toggle.active::after {
  transform: rotate(180deg);
}

.ef-submenu-content {
  display: none;
}

@media (max-width: 1200px) {
  .ef-navbar-link {
    padding: 25px 8px;
    font-size: 0.9rem;
  }
  
  .ef-navbar-logo {
    font-size: 1rem;
    min-width: 140px;
  }
  
  .ef-action-btn {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 991px) {
  .ef-navbar-toggle {
    display: block;
  }
  
  .ef-navbar-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #2C3E50;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    align-items: flex-start;
  }
  
  .ef-navbar-menu.active {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  
  .ef-navbar-link {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
  }
  
  .ef-dropdown-menu {
    position: static;
    box-shadow: none;
    max-height: none;
    background-color: rgba(0,0,0,0.1);
    border-radius: 0;
    width: 100%;
    padding-left: 15px;
    min-width: 100%;
    white-space: normal;
  }
  
  .ef-dropdown:hover .ef-dropdown-menu,
  .ef-dropdown:focus-within .ef-dropdown-menu {
    display: none;
  }
  
  .ef-dropdown.active .ef-dropdown-menu {
    display: block;
  }
  
  .ef-dropdown-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  
  .ef-premium-item .ef-dropdown-item {
    color: #fff;
    font-weight: 500;
    background-color: rgba(192, 57, 43, 0.15);
  }
  
  .ef-premium-item .ef-dropdown-item:hover {
    background-color: rgba(192, 57, 43, 0.25);
    color: #fff;
  }
  
  .ef-dropdown-header {
    padding: 14px 15px;
    background-color: #2C3E50;
    color: #ffffff;
    border-bottom: 2px solid #34495e;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  
  .ef-submenu-toggle {
    padding: 14px 15px;
    background-color: #2C3E50;
    color: #ffffff;
    border-bottom: 2px solid #34495e;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  
  .ef-submenu-toggle:hover {
    background-color: #34495e;
    color: #bda27e;
  }
  
  .ef-action-btn {
    margin: 15px;
    display: block;
    width: calc(100% - 30px);
    text-align: center;
  }

  .ef-navbar-item.ef-action-item {
    width: 100%;
  }
}

body {
  padding-top: 70px; /* Marge fixe pour éviter les chevauchements */
}

.breadcrumb-container {
  margin-top: 0 !important; /* Annuler la marge dynamique */
}

.bg-header {
  margin-top: 0;
}

@media (max-width: 768px) {
  .ef-navbar {
    height: 60px; /* Hauteur fixe pour mobile */
  }
  
  .ef-navbar-content {
    height: 60px;
  }
  
  .ef-navbar-menu {
    top: 60px;
  }
  
  .ef-navbar-logo {
    font-size: 1.1rem;
  }
  
  .ef-navbar-logo img {
    width: 30px;
    height: 30px;
  }
  
  body {
    padding-top: 60px; /* Marge fixe ajustée pour mobile */
  }
}
