/* ========================================
   HEADER - Style Flib transparent
   ======================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  padding: 50px 0;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1809px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.logo {
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 50px;
}

/* Navigation principale */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 28px;
  align-items: center;
  max-width: 700px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  color: var(--color-white);
  text-transform: capitalize;
  transition: color 0.3s ease;
  position: relative;
  font-weight: 400;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link.active {
  color: var(--color-accent);
}

/* Bouton contact header - Style Flib */
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-phone {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 10px 22px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(107, 193, 175, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-phone .phone-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.btn-phone:hover .phone-icon {
  transform: rotate(15deg);
}

.btn-phone:hover {
  background-color: #5FAAA0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 193, 175, 0.4);
}

/* Menu burger (masqué par défaut) */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-menu:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-accent);
  box-shadow: 0 0 15px rgba(95, 191, 171, 0.3);
}

.burger-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.burger-menu span:nth-child(1) {
  margin-bottom: 5px;
}

.burger-menu span:nth-child(3) {
  margin-top: 5px;
}

/* États burger menu - Animation X */
.burger-menu.active {
  background: rgba(95, 191, 171, 0.2);
  border-color: var(--color-accent);
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

/* Tablette */
@media (max-width: 1023px) {
  .site-header {
    padding: 24px 0;
  }

  .header-content {
    padding: 0 20px;
  }

  .nav-list {
    gap: 24px;
  }

  .nav-link {
    font-size: 13px;
  }

  .logo img {
    height: 36px;
  }

  .btn-phone {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .site-header {
    position: relative;
    padding: 12px 0;
    background: linear-gradient(135deg, rgba(30, 58, 76, 0.98), rgba(40, 70, 90, 0.98));
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
  }

  .header-content {
    padding: 0 16px;
    position: relative;
  }

  .logo img {
    height: 28px;
  }

  /* Afficher le burger menu - centré */
  .burger-menu {
    display: flex;
    order: 2;
    z-index: 1250;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Navigation mobile - Dropdown style */
  .main-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    height: auto;
    background: linear-gradient(135deg, rgba(30, 58, 76, 0.95), rgba(40, 70, 90, 0.95));
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);

    /* Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
  }

  .main-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    max-width: none;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(95, 191, 171, 0.15);
    color: var(--color-accent);
  }

  /* Séparateur dans le menu */
  .nav-list li:nth-child(4)::after {
    content: '';
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0 4px;
  }

  /* Bouton urgence - circulaire à droite */
  .header-cta {
    order: 3;
    margin-left: auto;
  }

  .btn-phone {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    gap: 0;
    line-height: 1;
  }

  .btn-phone .phone-icon {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
  }

  /* Overlay pour fermer le menu */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1150;
  }

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