@media (max-width: 991.98px) {	
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto 16px auto;
    width: calc(100vw - 32px);
    background: rgba(155, 155, 155, 0.55); /* Fallback */
    background: color-mix(in srgb, var(--navbar-color, #9b9b9b) 55%, transparent);
	  backdrop-filter: blur(12px);
	  -webkit-backdrop-filter: blur(12px);
	  border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
    z-index: 100;
    padding: 0.5rem 0;
    display: block;
    max-width: 600px;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav .row {
    margin: 0;
    align-items: center;
  }
  .bottom-nav .col {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .bottom-nav .nav-icon i {
    font-size: 1.6rem;
    line-height: 1;
   color: rgba(255, 255, 255, 0.8);
        filter: drop-shadow(0 0px 5px rgba(0, 0, 0, 0.8));
  }

  /* Style réduit pour les utilisateurs non-PWA */
  body:not(.pwa-mode) .bottom-nav .nav-icon i {
    font-size: 1.3rem;
  }

  body:not(.pwa-mode) .bottom-nav .nav-item.active .nav-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
  }

  body:not(.pwa-mode) .bottom-nav .nav-icon img {
    width: 36px !important;
    height: 36px !important;
  }

  body:not(.pwa-mode) .bottom-nav {
    padding: 0.3rem 0;
    margin-bottom: 12px;
    width: calc(100vw - 24px);
  }

  /* Style encore plus compact pour les petits écrans non-PWA */
  @media (max-width: 576px) {
    body:not(.pwa-mode) .bottom-nav .nav-icon i {
      font-size: 1.2rem;
    }
    
    body:not(.pwa-mode) .bottom-nav .nav-item.active .nav-icon {
      width: 44px !important;
      height: 44px !important;
      min-width: 44px;
      min-height: 44px;
      max-width: 44px;
      max-height: 44px;
    }
    
    body:not(.pwa-mode) .bottom-nav .nav-icon img {
      width: 32px !important;
      height: 32px !important;
    }
    
    body:not(.pwa-mode) .bottom-nav {
      padding: 0.25rem 0;
      margin-bottom: 10px;
    }
  }
  /* Style par défaut pour les non-PWA - éléments actifs plus grands */
  body:not(.pwa-mode) .bottom-nav .nav-item.active .nav-icon {
    background: var(--primary-color);
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    margin: 0 auto;
    padding: 0 !important;
    overflow: hidden;
  }

  /* Style PWA - éléments actifs plus compacts */
  body.pwa-mode .bottom-nav .nav-item.active .nav-icon {
    background: var(--primary-color);
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 !important;
    overflow: hidden;
  }
  .bottom-nav .nav-item.active .nav-icon i {
    color: #fff;
  }
  
  /* Style spécifique pour l'image de profil quand elle est en classe active */
  .bottom-nav .nav-item.active .nav-icon img {
    width: 53px !important;
    height: 53px !important;
    border: none !important;
  }
  .bottom-nav .nav-burger {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }
  .bottom-nav .burger-dropdown {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 70px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 2000;
    padding: 0.5rem 0;
  }
  .bottom-nav .burger-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .bottom-nav .burger-dropdown li {
    padding: 0;
    margin: 0;
  }
  .bottom-nav .burger-dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
  }
  .bottom-nav .burger-dropdown a:hover {
    background: var(--grey);
  }
  @keyframes fadeInBurger {
  }
  
  /* Styles PWA - navbar plus compacte */
  body.pwa-mode .bottom-nav {
    padding: 0.3rem 0;
    margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 24px);
  }

  body.pwa-mode .bottom-nav .nav-item.active .nav-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
  }

  /* Limitation taille image en PWA */
  body.pwa-mode .bottom-nav .nav-icon img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }

  /* Style encore plus compact pour les petits écrans PWA */
  @media (max-width: 576px) {
    body.pwa-mode .bottom-nav .nav-item.active .nav-icon {
      width: 44px !important;
      height: 44px !important;
      min-width: 44px;
      min-height: 44px;
      max-width: 44px;
      max-height: 44px;
    }
    
    body.pwa-mode .bottom-nav .nav-icon img {
      width: 32px !important;
      height: 32px !important;
      max-width: 32px !important;
      max-height: 32px !important;
    }
    
    body.pwa-mode .bottom-nav {
      padding: 0.25rem 0;
      margin-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }
  }

  /* Styles pour l'effet ripple */
  .bottom-nav .nav-item {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav .nav-item::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
  }

  .bottom-nav .nav-item:active::after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
  }

  /* Animation pour l'icône active */
  .bottom-nav .nav-item.active .nav-icon {
    animation: pulseIcon 0.3s ease-out;
  }

  @keyframes pulseIcon {
    0% {
      transform: scale(0.95);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }
}

@media (min-width: 992px) {
  .bottom-nav {
    display: none !important;
  }
  .desktop-navbar {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.05rem;
    letter-spacing: 1px;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-top: 0;
  }
  .desktop-navbar .desktop-nav-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    display: inline-block;
  }
  .desktop-navbar .desktop-nav-link:hover,
  .desktop-navbar .desktop-nav-link.active {
    background: var(--grey);
    color: var(--primary-color);
    text-decoration: none;
  }
  .desktop-navbar .desktop-nav-link.active {
    font-weight: 700;
    background: var(--primary-color);
    color: var(--white);
  }
  
  /* Style spécifique pour l'image de profil sur desktop quand elle est en classe active */
  .desktop-navbar .desktop-nav-link.active .nav-icon img,
  .desktop-navbar .desktop-nav-link.active img {
    width: 53px !important;
    height: 53px !important;
    border-radius: 0 !important; /* Retire la bordure arrondie */
  }
}

/* Styles pour les badges de niveau dans la navbar */
.navbar .badge-gastronaute {
    margin: 0 !important;
}

.navbar .badge-gastronaute .badge-image-rond {
    margin: 0 auto !important;
}

.navbar .badge-gastronaute .badge-text {
    font-size: 0.65rem !important;
    margin-top: 0.15rem !important;
}

/* Ajustements pour mobile */
@media (max-width: 991px) {
    .bottom-nav .badge-gastronaute .badge-image-rond {
        width: 20px !important;
        height: 20px !important;
    }
    
    .bottom-nav .badge-gastronaute .badge-text {
        font-size: 0.6rem !important;
        margin-top: 0.1rem !important;
    }
    
    .bottom-nav .d-flex.flex-column {
        gap: 0.25rem;
    }
}
