/* ============================================
   NAVBAR STYLES
   ============================================ */

.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    padding: 0 2rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    margin-left: 0;
    padding-left: 0;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-top {
    display: none;
}

.logo-img {
    width: auto;
    height: 60px;
    max-width: 300px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.arrows-icon {
    width: 36px;
    height: 36px;
    position: relative;
    flex-shrink: 0;
}

.arrow-line {
    position: absolute;
    height: 3px;
    background: rgba(0, 0, 0, 0.9);
    transform-origin: left;
    animation: growArrow 2s ease-in-out infinite;
    border-radius: 2px;
}

.arrow-line:nth-child(1) {
    top: 10px;
    animation-delay: 0s;
}

.arrow-line:nth-child(2) {
    top: 16px;
    animation-delay: 0.25s;
}

.arrow-line:nth-child(3) {
    top: 22px;
    animation-delay: 0.5s;
}

.arrow-line::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.9);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

@keyframes growArrow {
    0%, 100% { width: 65%; }
    50% { width: 100%; }
}

.shift-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.9), rgba(37, 99, 235, 0.9), rgba(10, 10, 10, 0.9));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    line-height: 1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.agency-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: rgba(37, 99, 235, 0.8);
    text-transform: uppercase;
    padding-left: 0;
    line-height: 1.2;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(10, 10, 10, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #2563eb;
   
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.nav-item.active .dropdown-icon,
.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    padding-top: 0.75rem;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Zone de pont invisible entre le lien et le menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.nav-item:hover .dropdown-menu,
.nav-item.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(10, 10, 10, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.05);
    color: #2563eb;
    transform: translateX(4px);
}

.btn-primary-nav {
    padding: 0.75rem 1.75rem;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    white-space: nowrap;
}

.btn-primary-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    background: #3b82f6;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #0a0a0a;
    transition: all 0.3s ease;
    border-radius: 1px;
}

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

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

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

/* Desktop only class */
.desktop-only {
    display: inline-flex;
}

/* Responsive */
@media (max-width: 1100px) {
    .nav-links {
        display: none;
    }
    
    .nav-right {
        gap: 0.5rem;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .logo-img {
        width: auto !important;
        height: 55px !important;
        max-width: 250px !important;
    }
    
    .shift-text {
        font-size: 1.25rem;
    }
    
    .agency-text {
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 1rem;
        width: calc(100% - 2rem);
    }
    
    .navbar .container {
        padding: 0 1rem;
    }
    
    .nav-content {
        gap: 0.5rem;
    }
    
    .logo {
        margin-left: 0;
        padding-left: 0;
    }
    
    .logo-main {
        justify-content: flex-start;
    }
    
    .logo-img {
        width: 150px!important;
        height: 70px !important;
    }
    
    .shift-text {
        font-size: 1.1rem;
    }
    
    .agency-text {
        font-size: 0.55rem;
    }
    
    .logo-main {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 0.75rem;
        width: calc(100% - 1.5rem);
        border-radius: 16px;
        left: 0.75rem;
        right: 0.75rem;
    }
    
    .navbar .container {
        padding: 0 0.75rem;
    }
    
    .nav-content {
        gap: 0.5rem;
    }
    
    .logo {
        margin-left: 0;
        padding-left: 0;
    }
    
    .logo-main {
        justify-content: flex-start;
    }
    
    .logo-img {
        width: 120px !important;
        height: 40px !important;
    }
    
    .shift-text {
        font-size: 1rem;
    }
    
    .agency-text {
        font-size: 0.5rem;
    }
    
    .logo-main {
        gap: 0.5rem;
    }
    
    .logo-top {
        gap: 0.05rem;
    }
    
    .menu-toggle {
        padding: 0.375rem;
    }
    
    .menu-toggle span {
        width: 20px;
        height: 2px;
    }
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo .logo-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.mobile-logo .logo-top {
    display: none;
}

.mobile-logo .logo-img {
    width: auto;
    height: 70px;
    max-width: 280px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1);
}

.mobile-logo:hover .logo-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.mobile-logo .arrows-icon {
    width: 32px;
    height: 32px;
    position: relative;
    flex-shrink: 0;
}

.mobile-logo .arrow-line {
    position: absolute;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transform-origin: left;
    animation: growArrow 2s ease-in-out infinite;
    border-radius: 2px;
}

.mobile-logo .arrow-line:nth-child(1) {
    top: 8px;
    animation-delay: 0s;
}

.mobile-logo .arrow-line:nth-child(2) {
    top: 14px;
    animation-delay: 0.25s;
}

.mobile-logo .arrow-line:nth-child(3) {
    top: 20px;
    animation-delay: 0.5s;
}

.mobile-logo .arrow-line::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 4px solid rgba(255, 255, 255, 0.9);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.mobile-logo .shift-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.9), rgba(37, 99, 235, 0.9), rgba(10, 10, 10, 0.9));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    line-height: 1;
}

.mobile-logo .agency-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    font-weight: 700;
    color: rgba(37, 99, 235, 0.8);
    text-transform: uppercase;
    padding-left: 0;
    line-height: 1;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: rgba(10, 10, 10, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    color: var(--color-black);
    background: rgba(0, 0, 0, 0.05);
}

.mobile-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(10, 10, 10, 0.8);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.75rem 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(37, 99, 235, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.mobile-nav-link:hover::before {
    width: 100%;
}

.mobile-nav-link:hover {
    color: #2563eb;
    transform: translateX(8px);
}

.mobile-nav-link .dropdown-icon {
    transition: transform 0.3s ease;
}

.mobile-nav-item.active .dropdown-icon {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 1rem;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    padding-left: 1rem;
}

.mobile-nav-item.active .mobile-dropdown-menu {
    max-height: 300px;
}

.mobile-dropdown-item {
    display: block;
    color: rgba(10, 10, 10, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-dropdown-item:hover {
    color: var(--color-white);
    transform: translateX(8px);
}

.mobile-menu-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #2563eb;
    color: var(--color-white);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.mobile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
    background: #3b82f6;
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .navbar {
        left: 1rem;
        right: 1rem;
        width: calc(100% - 2rem);
        transform: none;
        top: 1rem;
    }
    
    .navbar .container {
        padding: 0 1rem;
    }
    
    .nav-content {
        gap: 0.5rem;
    }
    
    .logo-main {
        gap: 0.5rem;
    }
    
    .logo-img {
        width: 190px !important;
        height: 50px !important;
    }
    
    .shift-text {
        font-size: 1.1rem;
    }
    
    .agency-text {
        font-size: 0.6rem;
    }
    
    /* Masquer le bouton devis gratuit dans la navbar en mobile */
    .btn-primary-nav {
        display: none;
    }
}
