/**
 * HEADER ULTRA-MODERNE - Niveau Mondial
 * Fabre Métal Construction
 * Version: 3.0
 */

/* ============================================
   HEADER PRINCIPAL
   ============================================ */

.site-header-pro {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(0, 15, 30, 0.92);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header-pro.scrolled {
  background: rgba(0, 15, 30, 0.98);
  border-bottom-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.header-container-pro {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  position: relative;
}

/* ============================================
   LOGO SECTION
   ============================================ */

.logo-section-pro {
  flex-shrink: 0;
  z-index: 10;
}

.logo-link-pro {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo-link-pro:hover {
  transform: translateY(-2px);
}

.logo-wrapper-pro {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.logo-wrapper-pro::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.logo-link-pro:hover .logo-wrapper-pro::before {
  left: 100%;
}

.logo-link-pro:hover .logo-wrapper-pro {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.3);
  transform: scale(1.05);
}

.logo-text-pro {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.company-name-pro {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  line-height: 1;
}

.company-tagline-pro {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(212, 175, 55, 0.9);
  text-transform: uppercase;
}

/* ============================================
   NAVIGATION PRINCIPALE
   ============================================ */

.main-nav-pro {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list-pro {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item-pro {
  position: relative;
}

.nav-link-pro {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav-link-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 215, 0, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
  z-index: -1;
}

.nav-link-pro:hover::before {
  opacity: 1;
}

.nav-link-pro:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.nav-underline {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, #ffd700, #d4af37, transparent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.nav-link-pro:hover .nav-underline {
  width: 80%;
}

/* Lien Contact mis en évidence */
.nav-link-highlight {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 215, 0, 0.1));
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-link-highlight:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(255, 215, 0, 0.15));
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

/* ============================================
   ACTIONS SECTION
   ============================================ */

.header-actions-pro {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* ============================================
   SÉLECTEUR DE LANGUE PREMIUM
   ============================================ */

.language-selector-pro {
  position: relative;
}

.language-dropdown {
  position: relative;
}

.language-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.language-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

.language-icon {
  stroke-width: 2;
  opacity: 0.8;
}

.current-language {
  font-weight: 700;
  letter-spacing: 1px;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.language-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: rgba(0, 15, 30, 0.98);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 1000;
}

.language-dropdown.active .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #ffffff;
  padding-left: 24px;
}

.language-option.active {
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
  font-weight: 700;
}

.flag-icon {
  font-size: 20px;
  line-height: 1;
}

/* ============================================
   MENU MOBILE TOGGLE
   ============================================ */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s ease;
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 15, 30, 0.98);
  backdrop-filter: blur(20px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.mobile-menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.5);
  transform: rotate(90deg);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.mobile-nav-link {
  display: block;
  padding: 16px 40px;
  color: #ffffff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-nav-link:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.5);
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .nav-list-pro {
    gap: 4px;
  }
  
  .nav-link-pro {
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media (max-width: 992px) {
  .main-nav-pro {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-container-pro {
    padding: 0 20px;
    height: 70px;
  }
  
  .company-name-pro {
    font-size: 16px;
  }
  
  .company-tagline-pro {
    font-size: 9px;
  }
  
  .logo-wrapper-pro {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .header-container-pro {
    padding: 0 15px;
  }
  
  .company-tagline-pro {
    display: none;
  }
  
  .language-button {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ============================================
   DROPDOWN MENU SERVICES
   ============================================ */

.nav-item-pro.has-dropdown {
  position: relative;
}

/* Ancien CSS dropdown supprimé - voir ligne 653 pour la nouvelle version */

/* Mobile submenu */
.mobile-nav-item-with-submenu {
  list-style: none;
}

.mobile-submenu-toggle {
  cursor: pointer;
  position: relative;
}

.mobile-submenu-toggle::after {
  content: '▼';
  font-size: 10px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.mobile-nav-item-with-submenu.active .mobile-submenu-toggle::after {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 20px;
}

.mobile-nav-item-with-submenu.active .mobile-submenu {
  max-height: 500px;
}

.mobile-submenu li {
  list-style: none;
}

.mobile-submenu-link {
  display: block;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
}

.mobile-submenu-link:hover {
  color: #d4af37;
  border-left-color: #d4af37;
  padding-left: 25px;
}


/* ============================================
   STYLE DU SOUS-MENU SERVICES - DESKTOP
   ============================================ */

/* Dropdown menu container */
ul.dropdown-menu,
.nav-item-pro .dropdown-menu,
.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    background: rgba(0, 15, 30, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    padding: 12px 0 !important;
    min-width: 280px !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1000 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Afficher le dropdown au survol */
.nav-item-pro.has-dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* Items du dropdown */
.dropdown-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dropdown-menu li a {
    display: block !important;
    padding: 12px 24px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.dropdown-menu li a:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #d4af37 !important;
    padding-left: 28px !important;
}

/* Divider entre les sections */
.dropdown-divider {
    height: 1px !important;
    background: rgba(212, 175, 55, 0.2) !important;
    margin: 8px 16px !important;
    list-style: none !important;
}

/* Animation de l'icône dropdown */
.nav-item-pro.has-dropdown .nav-link-pro::after {
    content: '' !important;
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    margin-left: 8px !important;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 5px solid currentColor !important;
    transition: transform 0.3s ease !important;
    vertical-align: middle !important;
}

.nav-item-pro.has-dropdown:hover .nav-link-pro::after {
    transform: rotate(180deg) !important;
}

/* ============================================
   STYLE DU SOUS-MENU SERVICES - MOBILE
   ============================================ */

/* Mobile submenu container */
.mobile-submenu {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(10, 37, 64, 0.5) !important;
    border-radius: 8px !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Afficher le submenu mobile quand actif */
.mobile-nav-item-with-submenu.active .mobile-submenu {
    max-height: 800px !important;
    padding: 8px 0 !important;
}

/* Mobile submenu links */
.mobile-submenu-link {
    display: block !important;
    padding: 12px 24px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
}

.mobile-submenu-link:hover,
.mobile-submenu-link:active {
    background: rgba(247, 181, 0, 0.1) !important;
    color: #f7b500 !important;
    border-left-color: #f7b500 !important;
    padding-left: 28px !important;
}

/* Mobile submenu divider */
.mobile-submenu-divider {
    height: 1px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    margin: 8px 16px !important;
    list-style: none !important;
}

/* Mobile submenu toggle icon */
.mobile-submenu-toggle {
    position: relative !important;
    cursor: pointer !important;
    user-select: none !important;
}

.mobile-submenu-toggle::after {
    content: '+' !important;
    position: absolute !important;
    right: 20px !important;
    font-size: 24px !important;
    font-weight: 300 !important;
    transition: transform 0.3s ease !important;
}

.mobile-nav-item-with-submenu.active .mobile-submenu-toggle::after {
    content: '−' !important;
    transform: rotate(180deg) !important;
}

/* Animation d'entrée pour chaque item du dropdown - DESACTIVEE car cause problème d'invisibilité */
/* .nav-item-pro.has-dropdown:hover .dropdown-menu li {
    animation: slideInDown 0.3s ease forwards !important;
    opacity: 0 !important;
}

.nav-item-pro.has-dropdown:hover .dropdown-menu li:nth-child(1) { animation-delay: 0.05s !important; }
.nav-item-pro.has-dropdown:hover .dropdown-menu li:nth-child(2) { animation-delay: 0.1s !important; }
.nav-item-pro.has-dropdown:hover .dropdown-menu li:nth-child(3) { animation-delay: 0.15s !important; }
.nav-item-pro.has-dropdown:hover .dropdown-menu li:nth-child(4) { animation-delay: 0.2s !important; }
.nav-item-pro.has-dropdown:hover .dropdown-menu li:nth-child(5) { animation-delay: 0.25s !important; }
.nav-item-pro.has-dropdown:hover .dropdown-menu li:nth-child(6) { animation-delay: 0.3s !important; }
.nav-item-pro.has-dropdown:hover .dropdown-menu li:nth-child(7) { animation-delay: 0.35s !important; }
.nav-item-pro.has-dropdown:hover .dropdown-menu li:nth-child(8) { animation-delay: 0.4s !important; }
.nav-item-pro.has-dropdown:hover .dropdown-menu li:nth-child(9) { animation-delay: 0.45s !important; }
.nav-item-pro.has-dropdown:hover .dropdown-menu li:nth-child(10) { animation-delay: 0.5s !important; }
.nav-item-pro.has-dropdown:hover .dropdown-menu li:nth-child(11) { animation-delay: 0.55s !important; }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} */
