/* ============================================
   MVNU ART - Header Premium "Detach on Scroll"
   ============================================ */

/* --- Header wrapper --- */
.mvnu-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Lueur glow sous le header */
.mvnu-header-glow {
  position: absolute;
  bottom: -12px;
  left: 5%;
  width: 90%;
  height: 20px;
  background: radial-gradient(ellipse at center,
    rgba(235, 161, 108, 0.5) 0%,
    rgba(62, 157, 165, 0.3) 40%,
    transparent 70%
  );
  filter: blur(8px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

/* Le glow n'apparait QUE en mode detache */
.mvnu-header.detached .mvnu-header-glow {
  opacity: 1;
  animation: mvnu-glow-pulse 3s ease-in-out infinite;
}

@keyframes mvnu-glow-pulse {
  0%, 100% { opacity: 0.7; transform: scaleX(0.95); }
  50% { opacity: 1; transform: scaleX(1.05); }
}

/* --- Fond du header --- */
.mvnu-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(62, 157, 165, 1) 0%, rgba(29, 76, 98, 1) 100%);
  z-index: -1;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 0;
}

/* --- Etat normal (pleine largeur, colle en haut) --- */
.mvnu-header {
  padding: 0;
}

.mvnu-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

/* ============================================
   ETAT DETACHE (au scroll)
   ============================================ */
.mvnu-header.detached {
  top: 14px;
  left: 0;
  right: 0;
  width: calc(100% - 60px);
  max-width: 1200px;
  margin: 0 auto;
  transform: none;
}

.mvnu-header.detached .mvnu-header-bg {
  border-radius: 50px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 12px 40px rgba(62, 157, 165, 0.15),
    0 4px 20px rgba(235, 161, 108, 0.1);
  border: none;
}

.mvnu-header.detached .mvnu-header-inner {
  padding: 10px 32px;
}

.mvnu-header.detached .mvnu-header-logo img {
  height: 32px;
}

/* Transition detach/reattach sans keyframes pour eviter les bugs mobile */

/* --- Logo --- */
.mvnu-header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mvnu-header-logo img {
  height: 40px;
  width: auto;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(235, 161, 108, 0.15));
}

.mvnu-header-logo:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 12px rgba(235, 161, 108, 0.3));
}

/* --- Navigation desktop --- */
.mvnu-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mvnu-nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.mvnu-nav-link:hover {
  color: #fff;
  background: rgba(235, 161, 108, 0.12);
}

/* Indicateur actif : point lumineux sous le lien */
.mvnu-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #EBA16C;
  transform: translateX(-50%) scale(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px rgba(235, 161, 108, 0.6);
}

.mvnu-nav-link:hover::after,
.mvnu-nav-link.active::after {
  transform: translateX(-50%) scale(1);
}

/* Effet "pill" au hover sur le lien actif */
.mvnu-nav-link.active {
  color: #EBA16C;
  background: rgba(235, 161, 108, 0.1);
}

/* --- Dropdown Realisations --- */
.mvnu-dropdown {
  position: relative;
}

.mvnu-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.mvnu-dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.3s ease;
  margin-top: 1px;
}

.mvnu-dropdown.open .mvnu-dropdown-arrow {
  transform: rotate(180deg);
}

.mvnu-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px;
  background: linear-gradient(160deg, rgba(29, 76, 98, 0.98) 0%, rgba(62, 157, 165, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(235, 161, 108, 0.12);
  border-radius: 16px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Triangle du dropdown */
.mvnu-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: rgba(29, 76, 98, 0.98);
  border-top: 1px solid rgba(235, 161, 108, 0.12);
  border-left: 1px solid rgba(235, 161, 108, 0.12);
  border-radius: 2px 0 0 0;
}

.mvnu-dropdown.open .mvnu-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mvnu-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  border-radius: 10px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.mvnu-dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: #EBA16C;
  border-radius: 3px;
  transition: height 0.25s ease;
}

.mvnu-dropdown-item i {
  color: #EBA16C;
  font-size: 0.9rem;
  width: 22px;
  text-align: center;
  transition: transform 0.25s ease;
}

.mvnu-dropdown-item:hover {
  background: rgba(235, 161, 108, 0.08);
  color: #EBA16C;
  padding-left: 20px;
}

.mvnu-dropdown-item:hover::before {
  height: 60%;
}

.mvnu-dropdown-item:hover i {
  transform: scale(1.15);
}

/* --- Lien Contact (style identique aux autres liens) --- */

/* --- Burger mobile --- */
.mvnu-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0;
  z-index: 1001;
  transition: all 0.3s ease;
}

.mvnu-burger:hover {
  background: rgba(235, 161, 108, 0.1);
  border-color: rgba(235, 161, 108, 0.2);
}

.mvnu-burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

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

.mvnu-burger-line:nth-child(2) {
  margin-bottom: 5px;
  width: 14px;
  margin-left: auto;
  margin-right: auto;
}

/* Burger -> croix */
.mvnu-burger.active {
  background: rgba(235, 161, 108, 0.15);
  border-color: rgba(235, 161, 108, 0.3);
}

.mvnu-burger.active .mvnu-burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mvnu-burger.active .mvnu-burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MENU MOBILE PLEIN ECRAN
   ============================================ */

.mvnu-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: linear-gradient(160deg, rgba(29, 76, 98, 1) 0%, rgba(20, 55, 78, 1) 50%, rgba(15, 40, 58, 1) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.4s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.mvnu-mobile-menu-inner {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 30px 40px;
  gap: 36px;
}

/* --- Liens principaux --- */
.mvnu-mm-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mvnu-mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.3s ease;
}

.mvnu-mobile-menu.active .mvnu-mm-link {
  transform: translateY(0);
  opacity: 1;
}

/* Delays appliques aux enfants directs de .mvnu-mm-links */
.mvnu-mobile-menu.active .mvnu-mm-links > :nth-child(1) { transition-delay: 0.08s; }
.mvnu-mobile-menu.active .mvnu-mm-links > :nth-child(2) { transition-delay: 0.14s; }
.mvnu-mobile-menu.active .mvnu-mm-links > :nth-child(3) { transition-delay: 0.2s; }
.mvnu-mobile-menu.active .mvnu-mm-links > :nth-child(4) { transition-delay: 0.26s; }
.mvnu-mobile-menu.active .mvnu-mm-links > :nth-child(5) { transition-delay: 0.32s; }

.mvnu-mm-link-text {
  position: relative;
  z-index: 1;
}

/* Ligne animee au hover */
.mvnu-mm-link-line {
  display: block;
  width: 0;
  height: 3px;
  background: #EBA16C;
  border-radius: 3px;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mvnu-mm-link:hover {
  color: #EBA16C;
}

.mvnu-mm-link:hover .mvnu-mm-link-line {
  width: 100%;
}

/* --- Accordeon Realisations --- */
.mvnu-mm-accordion {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mvnu-mobile-menu.active .mvnu-mm-accordion {
  transform: translateY(0);
  opacity: 1;
}

/* Le trigger ressemble aux autres liens */
.mvnu-mm-accord-trigger {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Fleche */
.mvnu-mm-accord-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
  flex-shrink: 0;
}

.mvnu-mm-accordion.open .mvnu-mm-accord-arrow {
  transform: rotate(-135deg);
  border-color: #EBA16C;
}

/* Panneau sous-liens */
.mvnu-mm-accord-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mvnu-mm-accordion.open .mvnu-mm-accord-panel {
  max-height: 300px;
}

/* Sous-liens */
.mvnu-mm-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mvnu-mm-sub i {
  color: #EBA16C;
  width: 22px;
  text-align: center;
  font-size: 0.95rem;
}

.mvnu-mm-sub:hover {
  color: #EBA16C;
}

@media (hover: hover) {
  .mvnu-mm-sub:hover {
    padding-left: 28px;
  }
}

/* --- Reseaux sociaux en bas --- */
.mvnu-mm-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 10px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s,
              opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

.mvnu-mobile-menu.active .mvnu-mm-socials {
  transform: translateY(0);
  opacity: 1;
}

.mvnu-mm-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mvnu-mm-socials a:hover {
  background: rgba(235, 161, 108, 0.15);
  border-color: rgba(235, 161, 108, 0.3);
  color: #EBA16C;
  transform: translateY(-2px);
}

/* --- Spacer pour compenser le header fixed --- */
.mvnu-header-spacer {
  height: 72px;
}

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

/* --- Tablette large / petit desktop --- */
@media screen and (max-width: 1200px) {
  .mvnu-header-inner {
    max-width: 100%;
    padding: 14px 28px;
  }

  .mvnu-nav {
    gap: 2px;
  }

  .mvnu-nav-link {
    font-size: 0.72rem;
    padding: 7px 11px;
  }

  .mvnu-header.detached {
    max-width: 96%;
  }
}

/* --- Tablette --- */
@media screen and (max-width: 991px) {
  .mvnu-nav {
    display: none;
  }

  .mvnu-burger {
    display: flex;
  }

  .mvnu-header-inner {
    padding: 12px 20px;
  }

  .mvnu-header.detached {
    width: calc(100% - 30px);
    top: 10px;
  }

  .mvnu-header.detached .mvnu-header-bg {
    border-radius: 22px;
  }

  .mvnu-header.detached .mvnu-header-inner {
    padding: 10px 20px;
  }

  .mvnu-header-spacer {
    height: 64px;
  }
}

/* --- Smartphone --- */
@media screen and (max-width: 640px) {
  .mvnu-header-inner {
    padding: 10px 16px;
  }

  .mvnu-header-logo img {
    height: 34px;
  }

  .mvnu-header.detached {
    width: calc(100% - 20px);
    top: 8px;
  }

  .mvnu-header.detached .mvnu-header-bg {
    border-radius: 18px;
  }

  .mvnu-header.detached .mvnu-header-inner {
    padding: 8px 16px;
  }

  .mvnu-header.detached .mvnu-header-logo img {
    height: 28px;
  }

  .mvnu-header-spacer {
    height: 58px;
  }

  .mvnu-burger {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .mvnu-burger-line {
    width: 20px;
  }

  .mvnu-burger-line:nth-child(2) {
    width: 12px;
  }

  /* Menu mobile smartphone */
  .mvnu-mobile-menu-inner {
    padding: 90px 24px 30px;
    gap: 28px;
  }

  .mvnu-mm-link {
    font-size: 1.05rem;
    padding: 14px 0;
  }

  .mvnu-mm-sub {
    font-size: 0.85rem;
    padding: 11px 0 11px 18px;
  }
}

/* --- Tres petit ecran --- */
@media screen and (max-width: 380px) {
  .mvnu-header-logo img {
    height: 28px;
  }

  .mvnu-header-inner {
    padding: 8px 12px;
  }

  .mvnu-mobile-menu-inner {
    padding: 80px 18px 24px;
    gap: 22px;
  }

  .mvnu-mm-link {
    font-size: 0.95rem;
    padding: 12px 0;
  }

  .mvnu-mm-sub {
    font-size: 0.8rem;
    padding: 10px 0 10px 16px;
  }
}
