/* ===================================
   HEADER PREMIUM
   En-tête professionnel avec logo centré et téléphone à droite
   =================================== */

.elite-header-minimal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 18px 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
}

/* ========== LOGO (CENTRE ABSOLU) ========== */
.elite-header-inner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: auto;
}

.logo-centered {
  text-align: center;
}

.logo-container {
  display: inline-block;
}

#logo-link {
  display: block;
  transition: opacity 0.3s ease;
}

#logo-link:hover {
  opacity: 0.85;
}

.header-logo {
  height: 75px;
  width: auto;
  object-fit: contain;
}

/* ========== LANGUAGE SWITCHER (GAUCHE) ========== */
.language-switcher {
  display: flex;
  gap: 4px;
  background: rgba(184, 144, 81, 0.1);
  padding: 4px;
  border-radius: 999px;
  position: relative;
  z-index: 1001;
  pointer-events: auto;
  margin-right: auto;
}

.lang-indicator {
  position: absolute;
  width: calc(50% - 2px);
  height: calc(100% - 8px);
  background: #B89051;
  border-radius: 999px;
  top: 4px;
  left: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(184, 144, 81, 0.3);
  z-index: 0;
  pointer-events: none;
}

.language-switcher.lang-en .lang-indicator {
  transform: translateX(calc(100% + 4px));
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #4a5568;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.3s ease;
  font-family: 'Poppins', sans-serif;
  pointer-events: all;
  position: relative;
  z-index: 1;
  user-select: none;
}

.lang-btn.active {
  color: #FFFFFF;
}

.lang-btn:not(.active):hover {
  background: rgba(184, 144, 81, 0.15);
  color: #1a1a1a;
}

.lang-btn:active {
  transform: scale(0.95);
  background: rgba(184, 144, 81, 0.25);
}

.lang-btn.active:active {
  transform: scale(0.95);
}

.lang-flag {
  font-size: 1.125rem;
  line-height: 1;
}

.lang-text {
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ========== TÉLÉPHONE (DROITE) ========== */
.header-phone {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #B89051;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(184, 144, 81, 0.35);
  position: relative;
  z-index: 2;
}

.header-phone:hover {
  transform: translateY(-2px);
  background: #A67E44;
  box-shadow: 0 6px 20px rgba(184, 144, 81, 0.5);
}

.header-phone:active {
  transform: translateY(0);
}

.icon-phone {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ========== HAMBURGER MENU BUTTON ========== */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1005;
  position: relative;
  width: 48px;
  height: 48px;
  transition: all 0.3s ease;
  margin-right: auto;
}

.hamburger-btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2.5px;
  background: #333333;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

/* Position des 3 barres au repos */
.hamburger-btn span:nth-child(1) {
  transform: translate(-50%, -8px);
}

.hamburger-btn span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.hamburger-btn span:nth-child(3) {
  transform: translate(-50%, 6px);
}

.hamburger-btn:hover span {
  background: #B89051;
}

/* Transformation en X - barres parfaitement centrées */
.hamburger-btn.active span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
  background: #B89051;
}

.hamburger-btn.active span:nth-child(2) {
  transform: translate(-50%, -50%);
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
  background: #B89051;
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 77px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 1002;
  flex-direction: column;
  padding: 30px 5%;
  gap: 20px;
  overflow-y: auto;
  animation: slideDown 0.3s ease;
}

.mobile-menu.active {
  display: flex;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
  height: 100vh;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 20px;
}

.mobile-menu-section:last-child {
  border-bottom: none;
}

.mobile-menu-label {
  font-size: 0.875rem;
  color: #666666;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-menu-item {
  display: block;
  color: #333333;
  text-decoration: none;
  padding: 12px 0;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.mobile-menu-item:hover {
  color: #B89051;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .elite-header-minimal {
    padding: 14px 5%;
    justify-content: space-between;
    /* keep header fixed on mobile so it stays visible during navigation */
    position: fixed;
  }

  .hamburger-btn {
    display: flex;
    position: relative;
    z-index: 1004;
  }

  .header-logo {
    height: 50px;
  }

  .header-phone {
    font-size: 0.88rem;
    padding: 10px 18px;
    margin-left: auto;
    position: relative;
    z-index: 1003;
  }

  .phone-text {
    display: none;
  }

  .icon-phone {
    width: 22px;
    height: 22px;
  }

  .language-switcher {
    display: flex;
    margin-right: 8px;
    margin-left: 0;
    transform: scale(0.85);
    order: 3;
    position: absolute;
    left: 50px;
  }

  .hamburger-btn {
    order: 1;
  }

  .elite-header-inner {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    order: 2;
  }

  .logo-centered {
    display: flex;
    justify-content: center;
  }

  .header-phone {
    z-index: 4;
    order: 4;
  }
}

@media (max-width: 480px) {
  .elite-header-minimal {
    padding: 12px 5%;
  }

  .hamburger-btn {
    /* keep hamburger positioned by flex layout; avoid left offset which can clip it */
    width: 40px;
    height: 40px;
  }

  .hamburger-btn span {
    width: 20px;
    height: 2px;
    gap: 4px;
  }

  .header-logo {
    height: 40px;
  }

  .header-phone {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .icon-phone {
    width: 18px;
    height: 18px;
  }

  .mobile-menu {
    top: 70px;
    padding: 20px 5%;
    gap: 15px;
  }
}
