/* =====================
   MENU DESKTOP (visible par défaut)
===================== */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-left: 0;
  margin: 0;
}

.nav-phone.desktop-only {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;  /* Caché par défaut sur desktop */
}

.mobile-menu {
  display: none;  /* Caché par défaut sur desktop */
}

/* =====================
 MENU MOBILE (visible uniquement sur petits écrans)
===================== */
@media (max-width: 991px) {
  /* Cacher le menu desktop */
  .nav-menu,
  .nav-phone.desktop-only {
      display: none;
  }
  
  /* Afficher le bouton burger */
  .menu-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      background: none;
      border: none;
      font-size: 28px;
      cursor: pointer;
      color: #17224D;
  }
  
  /* Menu mobile - overlay */
  .mobile-menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 85%;
      max-width: 400px;
      height: 100vh;
      background: white;
      z-index: 2000;
      transition: right 0.3s ease;
      box-shadow: -5px 0 30px rgba(0,0,0,0.15);
      overflow-y: auto;
      display: block !important;
  }
  
  .mobile-menu.open {
      right: 0;
  }
  
  /* Overlay de fond */
  .menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1999;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
  }
  
  .menu-overlay.active {
      opacity: 1;
      visibility: visible;
  }
}

/* =====================
 RÉINITIALISATION POUR DESKTOP
===================== */
@media (min-width: 992px) {
  .mobile-menu,
  .menu-toggle,
  .menu-overlay {
      display: none !important;
  }
}


/* ========== BOUTON TÉLÉPHONE FLOTTANT ========== */
.floating-phone {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 98;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: pulse 2s infinite;
}

.floating-phone i {
  font-size: 28px;
  color: white;
}

.floating-phone:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.floating-phone:hover i {
  transform: rotate(15deg);
}

/* Animation de pulsation pour attirer l'attention */
@keyframes pulse {
  0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
      box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Version simplifiée pour les écrans très petits */
@media (max-width: 480px) {
  .floating-phone {
      bottom: 80px;
      right: 20px;
      width: 55px;
      height: 55px;
  }
  
  .floating-phone i {
      font-size: 24px;
  }
}

/* Ajustement si le bouton back-to-top est présent */
.back-to-top {
  bottom: 30px;
  right: 30px;
  z-index: 99;
}

@media (max-width: 480px) {
  .back-to-top {
      bottom: 20px;
      right: 20px;
  }
}

/* Sur desktop, légèrement remonté */
@media (min-width: 992px) {
  .floating-phone {
      bottom: 100px;
      right: 30px;
  }
}