/* Navigation - Styles navbar identiques partout */
nav.main-nav#navbar,
.main-nav#navbar,
#navbar.main-nav,
nav#navbar,
.main-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    z-index: 999999 !important;
    background: rgba(10, 14, 23, 0.9) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 85px !important;
    display: block !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: inherit;
}

.logo-wrapper:hover {
    text-decoration: none !important;
}

.nav-logo {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff, #59acc9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none !important;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
    text-decoration: none !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(89, 172, 201, 0.1), rgba(125, 211, 252, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link.active {
    color: #59acc9 !important;
    font-weight: 600;
}

/* Désactiver les styles ::after qui viennent de app.css */
.nav-link::after {
    display: none !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-phone {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(89, 172, 201, 0.1);
    border: 1px solid rgba(89, 172, 201, 0.2);
    border-radius: 12px;
    color: #59acc9 !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-phone::after {
    display: none !important;
}

.nav-phone:hover {
    background: rgba(89, 172, 201, 0.2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(89, 172, 201, 0.3) !important;
    color: #59acc9 !important;
}

.btn-devis {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2b7e9b, #59acc9) !important;
    color: white !important;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(89, 172, 201, 0.3);
}

.btn-devis::after {
    display: none !important;
}

.btn-devis:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(89, 172, 201, 0.5) !important;
    color: white !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(89, 172, 201, 0.1);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: #59acc9;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 968px) {
    .nav-container {
        padding: 0 15px !important;
    }

    .logo-wrapper {
        gap: 10px !important;
    }

    .nav-logo {
        height: 40px !important;
    }

    .logo-title {
        font-size: 0.95rem !important;
    }

    .logo-subtitle {
        font-size: 0.65rem !important;
    }

    /* Menu accordéon mobile */
    .nav-menu {
        position: fixed !important;
        top: 85px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: rgba(10, 14, 23, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 20px 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    }

    .nav-menu.active {
        max-height: 500px !important;
    }

    .nav-menu li {
        width: 100% !important;
        text-align: center !important;
    }

    .nav-link {
        display: block !important;
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 1.05rem !important;
        border-radius: 0 !important;
    }

    /* Cacher les boutons desktop */
    .nav-phone,
    .btn-devis {
        display: none !important;
    }

    /* Afficher le bouton hamburger */
    .mobile-menu-btn {
        display: flex !important;
        z-index: 10 !important;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    nav.main-nav#navbar {
        height: 70px !important;
    }

    .nav-container {
        height: 70px !important;
        padding: 0 10px !important;
    }

    .nav-menu {
        top: 70px !important;
    }

    .logo-wrapper {
        gap: 8px !important;
    }

    .nav-logo {
        height: 35px !important;
    }

    .logo-title {
        font-size: 0.85rem !important;
    }

    .logo-subtitle {
        font-size: 0.6rem !important;
        letter-spacing: 1px !important;
    }
}
