.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #1e293b;
}

.nav-logo {
    height: 85px;
    width: auto;
    margin: -0.25rem 0;
}

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

.logo-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    color: #1e293b;
}

.logo-title span {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-subtitle .company {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.navbar-links {
    display: flex;
    gap: 2rem;
}

.navbar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-link i {
    font-size: 1rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.navbar-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

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

/* Dropdown Styles */
.navbar-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.navbar-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.navbar-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
}

.dropdown-item:hover .dropdown-icon {
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
    color: white;
    transform: scale(1.05);
}

.dropdown-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 12px;
    color: #64748b;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dropdown-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
}

.dropdown-desc {
    font-size: 0.8rem;
    color: #64748b;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-actions .btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-outline {
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: transparent;
}

.navbar-actions .btn-outline {
    min-width: auto;
    width: auto;
}

.btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.toggle-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: #1e293b;
    transition: all 0.3s ease;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #1e293b;
    transition: all 0.3s ease;
}

.toggle-icon::before {
    top: -8px;
}

.toggle-icon::after {
    bottom: -8px;
}

@media (max-width: 1280px) {
    .navbar-menu {
        gap: 1.5rem;
    }

    .navbar-links {
        gap: 0.25rem;
    }

    /* Cacher les icônes des liens de navigation pour gagner de la place */
    .navbar-links .navbar-link > i:first-child,
    .navbar-links .dropdown-trigger > i:first-child {
        display: none;
    }
}

@media (max-width: 1024px) {
    .navbar-menu {
        gap: 2rem;
    }

    .navbar-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        border-bottom: 1px solid rgba(37, 99, 235, 0.08);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .navbar-container {
        padding: 0.4rem 1rem;
    }

    .navbar-logo {
        gap: 0.6rem;
    }

    .nav-logo {
        height: 40px;
        margin: 0;
    }

    .logo-title {
        font-size: 0.82rem;
        letter-spacing: 0.3px;
    }

    .logo-subtitle {
        font-size: 0.68rem;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1rem 1.25rem 1.25rem;
        flex-direction: column;
        gap: 1rem;
        border-top: 1px solid rgba(37, 99, 235, 0.06);
        box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
        max-height: calc(100dvh - 56px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-links {
        flex-direction: column;
        width: 100%;
        gap: 0.15rem;
    }

    .navbar-link {
        padding: 0.75rem 1rem;
        justify-content: flex-start;
        font-size: 0.95rem;
        font-weight: 500;
        border-radius: 12px;
        color: #1e293b;
        transition: all 0.2s ease;
    }

    .navbar-link:hover,
    .navbar-link:active {
        background: rgba(37, 99, 235, 0.06);
        color: #2563eb;
    }

    .navbar-link i {
        font-size: 0.9rem;
        width: 1.5rem;
        text-align: center;
        color: #94a3b8;
    }

    /* Mobile Dropdown */
    .navbar-dropdown {
        width: 100%;
    }

    .navbar-dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: none;
    }

    .navbar-dropdown:hover .dropdown-arrow {
        transform: none;
    }

    .dropdown-trigger {
        width: 100%;
        justify-content: flex-start;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(37, 99, 235, 0.03);
        border-radius: 12px;
        margin-top: 0.25rem;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease, opacity 0.25s ease;
    }

    .navbar-dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0.35rem;
        opacity: 1;
        visibility: visible;
    }

    .navbar-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-item {
        padding: 0.6rem 0.75rem;
        gap: 0.75rem;
        border-radius: 10px;
    }

    .dropdown-item:active {
        background: rgba(37, 99, 235, 0.08);
    }

    .dropdown-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
        border-radius: 10px;
        background: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .dropdown-title {
        font-size: 0.88rem;
        font-weight: 600;
    }

    .dropdown-desc {
        font-size: 0.72rem;
        color: #94a3b8;
    }

    .navbar-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
        padding-top: 0.75rem;
    }

    .navbar-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        border-radius: 12px;
        font-weight: 500;
    }

    .navbar .btn-primary {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    .navbar .btn-outline {
        border-color: #e2e8f0;
    }

    .navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 10px;
        transition: background 0.2s ease;
    }

    .navbar-toggle:active {
        background: rgba(37, 99, 235, 0.06);
    }

    .toggle-icon {
        width: 18px;
        height: 1.5px;
        border-radius: 2px;
    }

    .toggle-icon::before,
    .toggle-icon::after {
        width: 18px;
        height: 1.5px;
        border-radius: 2px;
    }

    .toggle-icon::before {
        top: -5px;
    }

    .toggle-icon::after {
        bottom: -5px;
    }

    .navbar-toggle.active .toggle-icon {
        background: transparent;
    }

    .navbar-toggle.active .toggle-icon::before {
        transform: rotate(45deg) translate(3.5px, 3.5px);
    }

    .navbar-toggle.active .toggle-icon::after {
        transform: rotate(-45deg) translate(3.5px, -3.5px);
    }
}

/* Small phones */
@media (max-width: 400px) {
    .navbar-container {
        padding: 0.35rem 0.75rem;
    }

    .nav-logo {
        height: 34px;
    }

    .navbar-logo {
        gap: 0.45rem;
    }

    .logo-title {
        font-size: 0.72rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    .navbar-link {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
    }
}

.navbar .btn {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar .btn-outline {
    color: #475569;
    border: 1px solid #e2e8f0;
    background: transparent;
}

.navbar .btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.navbar .btn-primary {
    background: #2563eb;
    color: white;
    border: none;
}

.navbar .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.purchase-page {
    padding-top: 7rem;
}

/* ── Numéro de téléphone dans la navbar (bureau) ── */
.navbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    padding-right: 1rem;
    margin-right: 0.25rem;
    border-right: 1px solid #e2e8f0;
    transition: color 0.2s ease;
}

.navbar-phone i {
    font-size: 0.78rem;
    color: #2563eb;
    flex-shrink: 0;
}

.navbar-phone:hover {
    color: #2563eb;
}

/* En dessous de 1200px : on cache le texte, seule l'icône reste */
@media (max-width: 1200px) {
    .navbar-phone .phone-label {
        display: none;
    }
    .navbar-phone {
        padding-right: 0.75rem;
    }
}

/* Caché complètement sur mobile — présent dans le hero à la place */
@media (max-width: 1024px) {
    .navbar-phone {
        display: none;
    }
}