header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

/* ========================================
   BANDEROLE
======================================== */

.banderole {
  background: linear-gradient(
    135deg,
    var(--wp--preset--color--second-background) 0%,
    var(--wp--preset--color--primary) 100%
  );
  width: 100vw;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--wp--preset--color--light);
  padding: 8px 0;
  position: relative;
  overflow: hidden;
  animation: banderoleGlow 3s ease-in-out infinite alternate;
}

.banderole::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: banderoleShine 4s ease-in-out infinite;
}

@keyframes banderoleGlow {
  0% {
    box-shadow: 0 0 10px
      rgba(var(--wp--preset--color--primary-rgb, 0, 123, 255), 0.3);
  }
  100% {
    box-shadow: 0 0 20px
      rgba(var(--wp--preset--color--primary-rgb, 0, 123, 255), 0.6);
  }
}

@keyframes banderoleShine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.banderole-content {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  min-height: 20px;
}

.banderole-text {
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.banderole-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--wp--preset--color--light);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  font-size: 13px;
}

.banderole-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banderole-link svg {
  transition: transform 0.3s ease;
}

.banderole-link:hover svg {
  transform: translateX(2px);
}

.banderole-languages {
  position: absolute;
  top: 50%;
  right: 25px;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.banderole-lang-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  color: var(--wp--preset--color--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.banderole-lang-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banderole-lang-link.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================
   NAVIGATION - BASE
======================================== */

.acf-block-navigation {
  position: relative;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Effet de scroll - Background transparent vers noir */
.acf-block-navigation.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--wp--style--global--content-size);
  padding: 30px 0;
}

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

.nav-logo {
  flex-shrink: 0;
  z-index: 1001;
}

.nav-logo img {
  height: auto;
  max-height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--wp--preset--font-family--primary);
  font-size: var(--wp--preset--font-size--large);
  font-weight: 600;
  color: var(--wp--preset--color--light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-logo-text:hover {
  color: var(--wp--preset--color--primary);
}

/* ========================================
   NAVIGATION DESKTOP
======================================== */

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--wp--preset--spacing--60);
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--50);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary-item a {
  font-family: var(--wp--preset--font-family--primary);
  font-size: 16px;
  font-weight: 400;
  color: var(--wp--preset--color--light);
  text-decoration: none;
  padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
  border-radius: var(--wp--custom--radius--small);
  transition: all 0.3s ease;
  position: relative;
}

.nav-primary-item a:hover {
  color: var(--wp--preset--color--secondary);
  background-color: var(--wp--preset--color--second-background);
}

/* ========================================
   NAVIGATION SECONDARY
======================================== */
.nav-secondary-container {
  position: relative;
  height: 60px;
  width: 245px;
  cursor: pointer;
}

.nav-secondary-main-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  background-color: var(--wp--preset--color--white);
  border-radius: 40px;
  padding: 4px;
  position: relative;
  z-index: 10;
}

.nav-secondary-main-view:hover .nav-secondary-main-view-button svg {
}

.nav-secondary-main-view-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--wp--preset--color--black);
  margin-left: 20px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  max-width: 200px;
}

.nav-secondary-main-view-item-title {
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  user-select: none;
}

.nav-secondary-main-view-item-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--wp--preset--color--contrast-3);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin-top: 2px;
  user-select: none;
}

.nav-secondary-main-view-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  aspect-ratio: 1/1;
  background-color: var(--wp--preset--color--primary);
  border-radius: 100px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-secondary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: auto;
  background-color: var(--wp--preset--color--second-background);
  border-radius: 20px;
  padding: 45px 15px 0px 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}

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

.nav-secondary-item {
  list-style: none;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.nav-secondary-item:hover {
  transform: translateX(4px);
}

.nav-secondary-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 12px 5px;
  user-select: none;
}

.nav-secondary-item-content {
  display: flex;
  flex-direction: column;
  color: var(--wp--preset--color--light);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.2s ease;
  border-radius: 12px;
}

.nav-secondary-item a:hover .nav-secondary-item-content {
  color: var(--wp--preset--color--secondary);
  background-color: transparent;
}

.nav-secondary-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--wp--preset--color--white);
  margin-top: 4px;
  line-height: 1.3;
  display: block;
}

.nav-secondary-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
}

/* ========================================
   BOUTON BURGER MOBILE
======================================== */

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  gap: 4px;
}

.nav-burger-line {
  width: 20px;
  height: 2px;
  background-color: var(--wp--preset--color--light);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(2) {
  opacity: 0;
}

.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* ========================================
   NAVIGATION MOBILE
======================================== */

.nav-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  z-index: 1000;
  will-change: height;
  background-color: var(--wp--preset--color--background);
}

.nav-mobile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
  gap: var(--wp--preset--spacing--60);
  overflow-y: auto;
  margin-top: 75px;
  padding-bottom: 150px;
}

.nav-mobile-primary,
.nav-mobile-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wp--preset--spacing--40);
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-mobile-item {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.nav-mobile-item a {
  font-family: var(--wp--preset--font-family--primary);
  font-size: var(--wp--preset--font-size--large);
  font-weight: 400;
  color: var(--wp--preset--color--light);
  text-decoration: none;
  padding: var(--wp--preset--spacing--30);
  text-align: center;
  transition: color 0.3s ease;
  display: block;
  width: 100%;
}

.nav-mobile-item a:hover {
  color: var(--wp--preset--color--secondary);
}

.nav-mobile-desc {
  display: block;
  font-size: var(--wp--preset--font-size--small);
  opacity: 0.7;
  font-weight: 300;
  margin-top: var(--wp--preset--spacing--20);
}

/* ========================================
   BANDEROLE MOBILE
======================================== */

.nav-mobile-banderole {
  position: relative;
}

.nav-mobile-banderole-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.nav-mobile-banderole-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--wp--preset--color--light);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-mobile-banderole-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wp--preset--color--light);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-size: 14px;
}

.nav-mobile-banderole-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nav-mobile-banderole-link svg {
  transition: transform 0.3s ease;
}

.nav-mobile-banderole-link:hover svg {
  transform: translateX(3px);
}

.nav-mobile-banderole-languages {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.nav-mobile-banderole-lang-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 32px;
  color: var(--wp--preset--color--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.nav-mobile-banderole-lang-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-mobile-banderole-lang-link.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.nav-burger {
  display: none;
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */

@media (max-width: 1024px) {
  .nav-burger {
    display: flex;
  }

  .banderole {
    display: none;
  }

  .nav-secondary-container,
  .nav-primary {
    display: none;
  }
  .nav-container {
    padding: var(--wp--preset--spacing--30) 0px;
    position: relative;
  }

  .nav-logo img {
    max-height: 32px;
  }
}
