/* Styles pour le menu mobile full-page */

/* Empêche le décalage de la page lors de la disparition de la barre de scroll */
html {
  scrollbar-gutter: stable;
}

/* --- ÉTAT OUVERT DU MENU (Règles forcées) --- */
html.mobile-menu-open,
body.mobile-menu-open {
  overflow: hidden !important;
}

body.mobile-menu-open .mobile-menu-wrapper {
  visibility: visible;
  pointer-events: auto;
}

/* Force la navbar mobile à rester en haut et visible */
body.mobile-menu-open .navbar--mobile {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 1001 !important; /* Au-dessus de l'overlay (1000) */
}


/* --- STRUCTURE NAVBAR MOBILE --- */
.navbar--mobile {
    display: none; /* Cachée par défaut */
    background-color: #071030;
    position: sticky;
    top: 0;
    z-index: 998;
    margin: 0;
    width: 100%;
}

.navbar--mobile .navbar_container {
    border: none;
    background-color: transparent;
    padding: 0.5rem 0;
    min-height: auto;
    width: 100%;
}

@media screen and (max-width: 767px) {
    .navbar--desktop {
        display: none !important;
    }
    .navbar--mobile {
        display: flex !important;
    }
}


/* --- ANIMATION DE L'ICÔNE EN CROIX --- */
.mobile-nav-button {
  cursor: pointer;
  padding: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
}
.mobile-nav-icon {
  position: relative;
  width: 24px;
  height: 18px;
}
/* Styles pour l'icône hamburger */
.mobile-nav-line-top,
.mobile-nav-line-middle,
.mobile-nav-line-bottom {
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: #fff;
}
.mobile-nav-line-top { top: 0; }
.mobile-nav-line-middle { top: 8px; }
.mobile-nav-line-bottom { top: 16px; }

/* Styles pour l'icône croix */
.mobile-nav-cross {
  position: relative;
  width: 24px;
  height: 24px;
}
.mobile-nav-cross-line-1,
.mobile-nav-cross-line-2 {
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: #fff;
  transform-origin: center;
}
.mobile-nav-cross-line-1 {
  transform: translateY(-50%) rotate(45deg);
}
.mobile-nav-cross-line-2 {
  transform: translateY(-50%) rotate(-45deg);
}

/* Affichage des icônes selon l'état du menu */
body.mobile-menu-open .mobile-nav-hamburger {
  display: none !important;
}
body.mobile-menu-open .mobile-nav-cross {
  display: block !important;
}


/* --- TRANSITIONS MENU --- */
.mobile-menu-bg-layer {
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
body.mobile-menu-open .mobile-menu-bg-layer {
  transform: translateX(0%);
}
.mobile-menu-bg-layer.layer-2 { transition-delay: 0.1s; }
.mobile-menu-bg-layer.layer-3 { transition-delay: 0.2s; }

/* Container principal du contenu */
.mobile-menu-content {
  display: flex;
  /* flex-direction: column; */
  justify-content: center;
  height: 100vh;
  align-items: center;
  padding: 4rem 2rem 5rem;
  position: relative;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease 0.4s;
}

body.mobile-menu-open .mobile-menu-content {
  opacity: 1;
}

/* Menu links container */
.mobile-menu-links {
  flex: 1;
  /* display: flex; */
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

/* Styles des liens du menu */
.mobile-menu-link {
  display: block;
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  text-decoration: none;
  /* padding: 0.8rem 0; */
  position: relative;
  overflow: hidden;
}

.mobile-menu-text {
  display: inline-block;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.mobile-menu-open [data-menu-item]:nth-child(1) .mobile-menu-text { 
  transition-delay: 0.5s; 
}
body.mobile-menu-open [data-menu-item]:nth-child(2) .mobile-menu-text { 
  transition-delay: 0.6s; 
}
body.mobile-menu-open [data-menu-item]:nth-child(3) .mobile-menu-text { 
  transition-delay: 0.7s; 
}
body.mobile-menu-open [data-menu-item]:nth-child(4) .mobile-menu-text { 
  transition-delay: 0.8s; 
}
body.mobile-menu-open [data-menu-item]:nth-child(5) .mobile-menu-text { 
  transition-delay: 0.9s; 
}

body.mobile-menu-open .mobile-menu-text {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-link:hover .mobile-menu-text {
  color: #c1ff72;
}

/* Container CTA */
.mobile-menu-cta {
  margin-top: 1rem;
  text-align: center;
}

.mobile-menu-button-cta {
  display: inline-block;
  padding: 1rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 8px;
  background-color: #c1ff72;
  color: #071030;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  width: 80vw;
}

.mobile-menu-button-cta:hover {
  background-color: #a8e85a;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(193, 255, 114, 0.3);
}

/* Section réseaux sociaux */
.mobile-menu-social {
  margin-top: auto;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 80vw;
}

.mobile-menu-social-title {
  margin-bottom: 1.5rem;
  text-align: center;
}

.mobile-menu-social-title .mobile-menu-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-menu-social-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

body.mobile-menu-open .mobile-menu-social-links {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1s;
}

.mobile-menu-social-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
}

body.mobile-menu-open [data-social-item]:nth-child(1) {
  transition-delay: 1.1s;
}
body.mobile-menu-open [data-social-item]:nth-child(2) {
  transition-delay: 1.2s;
}

body.mobile-menu-open .mobile-menu-social-link {
  opacity: 1;
  transform: scale(1);
}

.mobile-menu-social-link:hover {
  background: rgba(193, 255, 114, 0.2);
  transform: translateY(-2px) scale(1.05);
}

.mobile-social-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.mobile-social-text {
  color: #fff;
}
body.mobile-menu-open .mobile-menu-link:nth-child(4) { transition-delay: 0.65s; }


/* --- STRUCTURE MENU --- */
.mobile-menu-wrapper {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
  z-index: 1000;
}

.mobile-menu-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}
.mobile-menu-bg-layer.layer-1 { background-color: #071030; }
.mobile-menu-bg-layer.layer-2 {background-color: #c1ff72;}
.mobile-menu-bg-layer.layer-3 {background-color: #071030;}

.mobile-menu-links {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: start;
  height: 60%;
  gap: 1.8rem;
  z-index: 1001;
  will-change: opacity;
  width: 80%;
}

.mobile-menu-link {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  will-change: transform, opacity;
}
.mobile-menu-link:hover { background-color: rgba(255, 255, 255, 0.1); }

.mobile-menu-link.is-secondary {
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 2rem;
  color: #c1ff72;
  border: 2px solid #c1ff72;
  padding: 0.75rem 1.5rem;
}
.mobile-menu-link.is-secondary:hover {
  background-color: #c1ff72;
  color: #071030;
} 