/* ===========================================
   DROPDOWN MOBILE MODERNE - KODANN SITE
   =========================================== */

/* Styles de base pour le hamburger (toutes tailles d'écran) */
.hamburger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--kodann-primary, #1e5b9c);
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Styles généraux pour le header mobile */
@media (max-width: 1024px) {
  /* Conteneur principal header mobile */
  .site-header__container {
    position: relative;
    padding: 10px 15px !important;
  }

  /* Logo responsive */
  .site-header__logo {
    margin-right: 20px !important;
    margin-top: 10px !important;
    margin-bottom: 5px !important;
  }

  .site-header__logo-img {
    width: 180px !important;
    height: auto !important;
  }

  /* Container pour boutons droite */
  .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
  }

  /* Amélioration du sélecteur de langue */
  .lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(30, 91, 156, 0.2);
    margin-right: 0 !important;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1002;
  }

  .lang-btn {
    font-size: 13px !important;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 28px;
    text-align: center;
  }

  .lang-btn.active {
    background-color: var(--kodann-primary, #1e5b9c);
    color: white;
    box-shadow: 0 2px 4px rgba(30, 91, 156, 0.3);
  }

  .lang-btn:not(.active) {
    color: var(--kodann-primary, #1e5b9c);
  }

  .lang-separator {
    margin: 0 4px;
    color: #ccc;
    font-size: 12px;
  }

  /* Hamburger menu amélioré */
  .hamburger-menu {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1003;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px;
    width: 40px;
    height: 35px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(30, 91, 156, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .hamburger-menu:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }

  .hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--kodann-primary, #1e5b9c) !important;
    border-radius: 2px;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Animation X pour hamburger actif */
  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background-color: #e74c3c !important;
    margin: 0;
  }

  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
    margin: 0;
  }

  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background-color: #e74c3c !important;
    margin: 0;
  }

  /* Masquer navigation desktop */
  .nav-main {
    display: none !important;
  }

  /* DROPDOWN MOBILE MODERNE */
  .mobile-nav-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(30, 91, 156, 0.95) 0%, rgba(20, 70, 120, 0.98) 100%);
    backdrop-filter: blur(15px);
    z-index: 1001;
    display: none;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .mobile-nav-dropdown.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 80px 20px 20px;
    text-align: center;
  }

  /* Style des liens de navigation mobile */
  .mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 400px;
  }

  .mobile-nav-item {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInNavItem 0.6s ease forwards;
  }

  .mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
  .mobile-nav-item:nth-child(2) { animation-delay: 0.15s; }
  .mobile-nav-item:nth-child(3) { animation-delay: 0.2s; }
  .mobile-nav-item:nth-child(4) { animation-delay: 0.25s; }
  .mobile-nav-item:nth-child(5) { animation-delay: 0.3s; }
  .mobile-nav-item:nth-child(6) { animation-delay: 0.35s; }
  .mobile-nav-item:nth-child(7) { animation-delay: 0.4s; }

  @keyframes slideInNavItem {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 25px;
    border-radius: 15px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
  }

  .mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
  }

  .mobile-nav-link:hover::before {
    left: 100%;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #fff;
  }

  .mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  /* Bouton de fermeture */
  .mobile-nav-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-family: Arial, sans-serif;
  }

  .mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
  }

  /* Pattern décoratif */
  .mobile-nav-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
  }

  /* Logo dans le dropdown */
  .mobile-nav-logo {
    margin-bottom: 40px;
    opacity: 0;
    transform: scale(0.8);
    animation: logoFadeIn 0.6s ease 0.2s forwards;
  }

  @keyframes logoFadeIn {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .mobile-nav-logo img {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    padding: 12px 16px;
    box-sizing: border-box;
  }

  /* Contact info dans dropdown */
  .mobile-nav-footer {
    margin-top: auto;
    padding-top: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: footerSlideUp 0.6s ease 0.5s forwards;
  }

  @keyframes footerSlideUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mobile-nav-contact {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
  }

  .mobile-nav-social {
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .mobile-nav-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    transition: all 0.3s ease;
  }

  .mobile-nav-social a:hover {
    color: white;
    transform: scale(1.2);
  }
}

/* Responsive pour très petits écrans */
@media (max-width: 576px) {
  .site-header__container {
    padding: 8px 12px !important;
  }

  .site-header__logo-img {
    width: 150px !important;
  }

  .lang-switcher {
    padding: 6px 10px;
  }

  .lang-btn {
    font-size: 12px !important;
    padding: 3px 6px;
    min-width: 25px;
  }

  .hamburger-menu {
    padding: 6px;
  }

  .mobile-nav-link {
    font-size: 16px;
    padding: 15px 20px;
  }

  .mobile-nav-content {
    padding: 70px 15px 15px;
  }
}

/* Animation de fond ondulant */
@keyframes waveAnimation {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
    opacity: 0.8;
  }
  50% { 
    transform: translateY(-20px) rotate(180deg); 
    opacity: 0.4;
  }
}

.mobile-nav-dropdown::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: waveAnimation 4s ease-in-out infinite;
  pointer-events: none;
}

.mobile-nav-dropdown::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: waveAnimation 6s ease-in-out infinite reverse;
  pointer-events: none;
}