/* ===== NAVIGATION CSS - FIDÈLE À LA V1 ===== */

/* Header et Navigation */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.5s ease;
}

/* Navigation après scroll - Style v1 */
.header.header-appear {
    position: fixed;
    height: 80px;
    background: linear-gradient(to right, #7004bc 2%, #3264f5 82%);
    box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.35);
    animation: animationFade 1s both;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
    height: 100%;
    min-height: 80px;
}

.header.header-appear .nav {
    padding: 0;
}

/* Logo - Style v1 */
.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.5s ease;
}

.logo img {
    height: 80px;
    width: auto;
    transition: all 0.5s ease;
    display: block;
    max-width: none;
}

/* Logo plus petit après scroll */
.header.header-appear .logo img {
    height: 60px;
}

/* Navigation Menu - Style v1 avec effet hover caret */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Effet hover caret - Style v1 */
.menu-line {
    position: absolute;
    top: -20px;
    font-size: 18px;
    color: #ffffff;
    left: 0;
    display: block;
    text-align: center;
    width: 30px;
    height: 30px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
}

.menu-line.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-line.positioned {
    transition: transform 0.5s;
    transition-timing-function: cubic-bezier(1, 0.01, 0, 1.22);
}

/* Animation du caret au hover - Gérée par JavaScript pour un positionnement précis */

/* Le positionnement du caret est maintenant entièrement géré par JavaScript */

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-family: 'Montserrat', sans-serif;
}

/* RÈGLE FORTE : Forcer la couleur blanche sur tous les liens de navigation dans tous les états */
.nav-link,
.nav-link:hover,
.nav-link:active,
.nav-link:focus,
.nav-link:visited,
.nav-link.active,
.nav-link.active:hover,
.nav-link.active:focus,
.nav-link.active:visited {
    color: #ffffff !important;
}

/* Actions - Bouton Connexion style v1 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-actions .btn {
    display: inline-block;
    padding: 4px 24px;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: capitalize;
}

.nav-actions .btn:hover {
    background: white;
    color: #18212e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Hamburger Menu - Style v1 */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Animation pour l'apparition du header */
@keyframes animationFade {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        gap: 1rem;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        color: #18212e;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions {
        display: none;
    }
    
    /* Actions dans le menu mobile */
    .nav-menu.active .nav-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f0f0f0;
    }
    
    .nav-menu.active .nav-actions .btn {
        width: 100%;
        justify-content: center;
        color: #03a9f5;
        border-color: #03a9f5;
    }
    
    .nav-menu.active .nav-actions .btn:hover {
        background: #03a9f5;
        color: white;
    }
}

/* Masquer les ancres uniquement sur les écrans petits (sauf Contact) */
@media (max-width: 900px) {
    .nav-anchor-only:not([href*="contact"]):not([href*="Contact"]) {
        display: none;
    }
    
    /* Masquer les éléments moins essentiels sur très petits écrans */
    .nav-item.nav-item-secondary {
        display: none;
    }
}

/* Sur les écrans moyens, réduire l'espacement mais garder les ancres visibles */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.75rem 0;
    }
    
    .logo img {
        height: 60px;
    }
    
    .header.header-appear .logo img {
        height: 40px;
    }
} 

/* ===== SOUS-NAVIGATION FONCTIONNALITÉS V2 ===== */
.functionalities-subnav {
  width: 100%;
  margin: 2rem 0 2.5rem 0;
  display: flex;
  justify-content: center;
}

.functionalities-subnav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f5f6fa;
  border-radius: 40px;
  box-shadow: 0 2px 12px rgba(50, 100, 245, 0.07);
}

.functionalities-subnav-item {
  display: flex;
}

.functionalities-subnav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  color: #7004bc;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  background: transparent;
}

.functionalities-subnav-link i {
  margin-right: 0.5em;
  font-size: 1.1em;
}

.functionalities-subnav-link.active,
.functionalities-subnav-link:hover,
.functionalities-subnav-link:focus {
  background: linear-gradient(90deg, #7004bc 0%, #3264f5 100%);
  color: #fff;
  outline: none;
}

@media (max-width: 900px) {
  .functionalities-subnav-list {
    gap: 0.5rem;
  }
  .functionalities-subnav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .functionalities-subnav-list {
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 20px;
    box-shadow: none;
    background: none;
  }
  .functionalities-subnav {
    justify-content: flex-start;
  }
  .functionalities-subnav-link {
    border-radius: 20px;
    width: 100%;
    justify-content: flex-start;
  }
} 