.mega-navbar {
  background-color: var(--b24-blue);
  font-family: inherit;
  position: relative;
  /* overflow:hidden retiré — bloquait le scroll horizontal et les dropdowns */
}

.navbar-menu a {
  color: #fff !important;
}

/* ── SCROLL HORIZONTAL PILLS ──
   Remplace float:left par flex + scroll
   Fond non modifié */
.mega-navbar .navbar-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  align-items: center !important;
  justify-content: flex-start !important;  /* aligné gauche : sinon le 1er item est poussé hors viewport quand le contenu déborde (scrollable) */
  flex: 1 !important;
  min-width: 0 !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.mega-navbar .navbar-menu::-webkit-scrollbar {
  display: none !important;
}

/* ── Pills : liens simples (sans dropdown) ── */
.mega-navbar a {
  font-size: 13px;
  color: rgb(255, 255, 255);
  text-align: left;
  padding: 6px 14px;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
  /* float retiré — géré par flex */
}

.mega-navbar .navbar-menu > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important; /* espace icône ↔ texte */
  padding: 6px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: white !important;
  font-size: 13px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.mega-navbar .navbar-menu > a > i {
  font-size: 14px;
  flex-shrink: 0;
}

.mega-navbar .navbar-menu > a:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
}

/* ── Pills : boutons dropdown ── */
.mega-dropdown {
  position: relative !important;
  flex-shrink: 0 !important;
  /* float retiré — géré par flex */
}

.mega-dropdown .dropbtn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 999px !important;
  outline: none;
  color: white !important;
  padding: 6px 14px !important;
  background: transparent !important;
  font: inherit;
  margin: 0;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: background 0.2s, border-color 0.2s;
}

.mega-navbar a:hover,
.mega-dropdown:hover .dropbtn {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
}

/* Chevron rotation */
.mega-dropdown .dropbtn .fa-angle-down {
  font-size: 11px;
  opacity: 0.7;
  transition: transform 0.2s;
}

.mega-dropdown:hover .dropbtn .fa-angle-down {
  transform: rotate(180deg);
}

/* 🛡️ MEGA MENU DROPDOWN */
.mega-dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  width: 100%;
  left: 0;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 999;
  border-top: 3px solid var(--b24-blue);
}

.mega-dropdown-content .header-section {
  background: var(--b24-blue);
  padding: 20px;
  color: white;
}

.mega-dropdown-content .header-section h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.mega-dropdown:hover .mega-dropdown-content {
  display: block;
}

/* 🛡️ MEGA COLUMNS LAYOUT */
.mega-row {
  display: flex;
  padding: 30px;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.mega-column {
  flex: 1;
  min-width: 200px;
}

.mega-column h3 {
  color: var(--b24-blue);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.mega-column a {
  display: block;
  color: #666 !important;
  padding: 8px 0;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
  width: 100%;
  /* reset pill styles pour les liens internes du dropdown */
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  background: transparent !important;
  white-space: normal !important;
  flex-shrink: unset !important;
}

.mega-column a:hover {
  color: var(--b24-blue) !important;
  padding-left: 10px;
  border-bottom-color: #e0e0e0;
  background: transparent !important;
  border-color: transparent !important;
  border-bottom-color: #e0e0e0 !important;
}

/* Special sections */
.featured-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 15px;
}

.featured-section h4 {
  color: var(--b24-blue);
  font-size: 14px;
  margin-bottom: 10px;
}

.featured-section p {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

/* Full width sections */
.full-width-section {
  background: #f8f9fa;
  padding: 15px 30px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.full-width-section a {
  color: var(--b24-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  /* reset pill */
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.full-width-section a:hover {
  text-decoration: underline;
  background: transparent !important;
}

/* Content Area */
.content {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.demo-section {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.demo-title {
  color: #333;
  font-size: 28px;
  margin-bottom: 20px;
}

.demo-subtitle {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
}

.demo-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
  text-align: left;
}

.feature {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--b24-blue);
}

.feature h4 {
  color: var(--b24-blue);
  margin-bottom: 10px;
}

.feature p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* 🚀 BOOTSTRAP 5 DEMO SECTION */
.bootstrap-showcase {
  margin-top: 40px;
  padding: 30px;
  background: #e3f2fd;
  border-radius: 12px;
  border: 2px solid var(--b24-blue);
}

.bootstrap-showcase h3 {
  color: var(--b24-blue);
  margin-bottom: 20px;
  text-align: center;
}

/* ── Boutons navigation scroll (style identique swipers) ── */
.mega-navbar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.mega-navbar-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: white;
  border: 1px solid #D5D9D9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-size: 16px;
  color: #0F1111;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.mega-navbar-scroll-btn:hover {
  background: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.mega-navbar-scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.mega-navbar-scroll-prev { left: 4px; }
.mega-navbar-scroll-next { right: 4px; }

.mega-navbar .navbar-menu {
  scroll-behavior: smooth;
}

/* Mobile : cacher les boutons, scroll tactile natif */
@media screen and (max-width: 768px) {
  .mega-navbar-scroll-btn { display: none; }
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  padding: 15px 20px;
  cursor: pointer;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .search-bar {
    margin: 0;
    max-width: 100%;
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Mobile : scroll tactile horizontal */
  .mega-navbar .navbar-menu {
    display: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 6px 12px !important;
    gap: 6px !important;
  }

  .mega-navbar .navbar-menu.show {
    display: flex !important;
  }

  .mega-navbar .navbar-menu .dropbtn,
  .mega-navbar .navbar-menu > a {
    padding: 5px 12px !important;
    font-size: 12px !important;
  }

  .mega-row {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .mega-dropdown-content {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
  }

  .mega-dropdown-content.show {
    display: block;
  }

  .mega-dropdown:hover .mega-dropdown-content {
    display: none;
  }

  .mega-navbar a,
  .mega-dropdown {
    float: none;
    display: block;
  }
}

/* ── Catégorie active — fond orange ── */
.mega-navbar .navbar-menu > a.mega-nav-active {
    background: #e77600 !important;
    border-color: #e77600 !important;
    color: white !important;
}