/* HEADER (en overlay sur l'image du hero) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 7px 0 0 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.header.header-white {
    background: #FFF;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo Catella à gauche */
.logo-container {
  flex-shrink: 0;
}

.logo-img {
  width: 80px;
}
.logo-img.logo-home {
  width: 110px;
  transition: width 0.3s ease;
}

/* Navigation + Language à droite */
.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Navigation */
.main-nav {
  display: flex;
}
/* specific for mobile */
.special-nav {
	display: none;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 50px;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-family: "GillSansMTPro-Medium", sans-serif;
  transition: opacity 0.3s ease;
  position: relative;
}
.header.header-white .nav-link {
    color: #333;
}
/* Language Switch VERTICAL (FR au dessus, | au milieu, EN en dessous) */
.language-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-size: 12px;
  font-weight: 300;
  font-family: "GillSansMTPro-Light", sans-serif;
  line-height: 1;
  gap: 5px;
}

.header.header-white .language-switch {
    color: #333;
}

.lang-active {
  font-family: "GillSansMTPro-Bold", sans-serif;
  opacity: 1;
}
.lang .flag {
  width: 13px;
  height: 10px;
  border-radius: 4px;
  object-fit: cover;
}
.lang-separator-img {
  height: 12px;
  width: auto;
  opacity: 1;
}
#lang-separator {
  width: 32px;
  height: 1px;
}
.lang-switch-mobile{
  height: 1px;
  width: 20px;
}

.lang-inactive {
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s ease;
  text-decoration: none;
  color: white;
}
.header.header-white .lang-inactive {
    color: #333;
}
.lang-inactive:hover {
  opacity: 1;
}

/* Burger Menu (caché par défaut) */
.burger-menu {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
}

.burger-line {
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  transform-origin: center;
}
.header.header-white .burger-line {
	background: #333;
}
.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
/* Header Scroll Effect - seulement quand on scroll */
.header.scrolled {
  background-color: #FFF;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.header.scrolled .logo-img.logo-home {
	width: 80px;
}
/* Texte blanc par défaut (transparent) */
.header .nav-link {
  color: white;
}

.header .language-switch {
  color: white;
}

.header .burger-line {
  background: white;
}

/* Texte noir quand scrollé */
.header.scrolled .nav-link {
  color: #333;
}

.header.scrolled .language-switch {
  color: #333;
}
.header.scrolled .language-switch .lang-inactive {
  color: #333;
}
.header.scrolled .burger-line {
  background: #333;
}
/* Responsive */
@media (max-width: 1024px) {
  .nav-list {
    gap: 30px;
  }
  .hero-content {
    justify-content: center;
    padding-top: 60px;
  }
}
.mobile-menu-overlay {
    display: none;
}
@media (max-width: 768px) {
  /* Afficher le burger menu */
  .burger-menu {
    display: flex;
  }
  .hero-content {
    justify-content: center;
    padding-top: 60px;
  }
  .logo-img.logo-home {
	width: 80px;
  }
  .nav-right { 
	gap: 20px;
  }
  /* Cacher la navigation */
  .main-nav {
    display: none;
  }
  /* specific for mobile */
  .special-nav {
	display: flex;
  }
  .special-nav .nav-list li a {
	font-size: 14px;
  }
  .lang-inactive {
    color: black;
    font-weight: 200;
  }
  /* Menu Mobile Overlay */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

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

  /* Bouton fermer - simple croix sans rond */
  .mobile-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 40px;
    color: #333;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
  }

  .mobile-close-btn:hover {
    opacity: 0.7;
  }

  /* Navigation mobile */
  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    list-style: none;
    margin-bottom: 60px;
  }

  .mobile-nav-link {
    font-size: 24px;
    color: #333;
    font-weight: 500;
    padding: 20px;
    text-decoration: none;
    text-align: center;
  }
  
  .mobile-nav-link.active {
	font-family: "GillSansMTPro-Medium", sans-serif;
  }

  /* Language switch mobile */
  .mobile-language-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    font-size: 14px;
    font-family: "GillSansMTPro-Light", sans-serif;
    line-height: 1;
    gap: 5px;
  }
}
@media (max-width: 480px) {
  .logo-img {
    height: 60px;
  }
}
