/* ─── NAV ─── */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(81, 81, 81, 0.1);
    padding: 0 15px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    justify-content: center;
    color: #3f51b5;
}

.nav-logo span {
    text-align: center;
    margin-top: 2.5px;
    margin-left: -5px;
    color: #3f51b5;
}

.nav-logo .logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo .logo-icon img {
    width: 35px;
    height: 35px;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--blue);
}

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

nav .btn-ghost {
    background: none;
    border: 1px solid #1a1d2e22;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px 20px;
    border-radius: 8px;
    transition: background 0.2s;
}

nav .btn-ghost:hover {
    background: rgba(63, 81, 181, 0.06);
}

nav .btn-primary {
    background: var(--blue);
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

nav .btn-primary:hover {
    background: var(--blue-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(63, 81, 181, 0.35);
}


/* ════════════════════════════════════════════════
   MOBILE NAV — Dropdown C (fix transition)
   Remplace le bloc mobile dans nav.css
════════════════════════════════════════════════ */

.nav-burger {
    display: none;
    background: rgba(63, 81, 181, 0.08);
    border: 1px solid rgba(63, 81, 181, 0.15);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.nav-burger:hover {
    background: rgba(63, 81, 181, 0.15);
}

.nav-burger [data-lucide] {
    width: 18px;
    height: 18px;
    stroke: #3f51b5;
    stroke-width: 2.2;
}

/* ── DROPDOWN — toujours dans le DOM, caché via visibility+opacity ── */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(63, 81, 181, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    z-index: 999;
    padding: 8px 0 14px;

    /* ── AJOUTS ── */
    max-height: calc(100vh - 64px); /* 64px = hauteur de la nav */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;

    /* Inchangé */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0.25s;
}

.nav-dropdown.open {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    transition:
        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0s;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.15s;
}

.nav-dropdown a:hover {
    color: #3f51b5;
    background: rgba(63, 81, 181, 0.05);
    padding-left: 26px;
}

.nav-dropdown a [data-lucide] {
    width: 18px;
    height: 18px;
    stroke: #3f51b5;
    stroke-width: 2;
    opacity: 0.7;
    flex-shrink: 0;
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(63, 81, 181, 0.08);
    margin: 8px 20px;
}

.nav-dropdown-btns {
    display: flex;
    gap: 8px;
    padding: 6px 20px 0;
}

.nav-dropdown-btns .btn-ghost-mobile {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    background: none;
    border: 1px solid #1a1d2e22;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.2s;
}

.nav-dropdown-btns .btn-ghost-mobile:hover {
    background: rgba(63, 81, 181, 0.06);
}

.nav-dropdown-btns .btn-primary-mobile {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    background: var(--blue);
    border: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.2s, box-shadow 0.2s;
}

.nav-dropdown-btns .btn-primary-mobile:hover {
    background: var(--blue-light);
    box-shadow: 0 4px 14px rgba(63, 81, 181, 0.3);
}

.profile-wrap {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    width: 210px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    animation: fadeUp 0.15s ease both;
}

.pd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    gap: 8px;
}

.pd-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(31, 28, 28, 0.683);
    /* ← dark */
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pd-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3f51b5;
    /* ← bleu nav */
    background: rgba(63, 81, 181, 0.08);
    border-radius: 6px;
    padding: 2px 8px;
}

.pd-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    /* ← discret */
    margin: 4px 0;
}

.pd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(0, 0, 0, 0.65);
    /* ← dark */
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.pd-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke-width: 2.5;
    stroke: rgba(63, 81, 181, 0.7);
    /* ← icônes bleues */
}

.pd-item:hover {
    background: rgba(63, 81, 181, 0.06);
    /* ← hover bleu léger */
    color: rgba(0, 0, 0, 0.9);
}

.pd-logout {
    color: rgba(239, 68, 68, 0.8) !important;
}

.pd-logout svg {
    stroke: rgba(239, 68, 68, 0.8) !important;
}

.pd-logout:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: rgb(239, 68, 68) !important;
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none !important;
    }

    .nav-burger {
        display: flex;
    }
}

/* ═══════════════════════════════════════════════
   CONNECT — Nav Solutions Dropdown
   Colle ces règles à la fin de ton nav.css existant
   Remplace l'ancien bloc nav-solutions.css
   ═══════════════════════════════════════════════ */

/* ── Trigger ── */
.nav-links li.has-dropdown {
    position: relative;
}

.nav-links li.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links li.has-dropdown > a .chevron {
    width: 13px;
    height: 13px;
    stroke: var(--muted);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.22s ease, stroke 0.2s;
    flex-shrink: 0;
}

.nav-links li.has-dropdown:hover > a .chevron {
    transform: rotate(180deg);
    stroke: #3f51b5;
}

/* ── Panel ── */
.solutions-dropdown {
    position: absolute;
    top: calc(100% + 30px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 600px;
    background: #ffffff;
    border: 1px solid rgba(63, 81, 181, 0.12);
    border-radius: 16px;
    padding: 10px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 16px 48px rgba(63, 81, 181, 0.12);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
    z-index: 1000;
}

/* Flèche pointer */
.solutions-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 11px;
    height: 11px;
    background: #ffffff;
    border-left: 1px solid rgba(63, 81, 181, 0.12);
    border-top: 1px solid rgba(63, 81, 181, 0.12);
}

.nav-links li.has-dropdown:hover .solutions-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* ── Grille 2x2 ── */
.sd-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

/* ── Carte ── */
.sd-card {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 11px;
    padding: 5px;
    padding-right: 10px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.sd-card:hover {
    background: rgba(63, 81, 181, 0.10);
}

/* Icône */
.sd-icon {
    width: 36px;
    height: 40px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sd-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Couleurs par niche */
.sd-card[data-niche="sales"] .sd-icon {
    background: rgba(59, 130, 246, 0.09);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.sd-card[data-niche="freelancers"] .sd-icon {
    background: rgba(16, 185, 129, 0.09);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.sd-card[data-niche="support"] .sd-icon {
    background: rgba(245, 158, 11, 0.09);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.sd-card[data-niche="recruiting"] .sd-icon {
    background: rgba(139, 92, 246, 0.09);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.18);
}

/* Texte */
.sd-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sd-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1d2e;
    line-height: 1.3;
}

.sd-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(80, 85, 120, 0.7);
    line-height: 1.45;
}

/* =========================
   CARD BASE
========================= */

/* Hover effect */
.sd-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.1);
}

/* =========================
   TEXT
========================= */

/* =========================
   COMING BADGE
========================= */
.sd-product .coming-badge {
    font-size: 10px;
    margin-left: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: #444;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* =========================
   GRID
========================= */
.sd-product .sd-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 10px 20px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .sd-product .sd-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   OPTIONAL: VISUAL DIFFERENCE
========================= */

/* Speech Layer (tech vibe) */
.sd-product .sd-card[data-niche="SpeechLayer"] {
    background: linear-gradient(
        180deg,
        rgba(120, 90, 255, 0.06),
        rgba(120, 90, 255, 0.02)
    );
}

/* Voice Line (telephony vibe) */
.sd-product .sd-card[data-niche="VoiceLine"] {
    background: linear-gradient(
        180deg,
        rgba(0, 180, 120, 0.06),
        rgba(0, 180, 120, 0.02)
    );
}

/* =========================
   SUBTLE HOVER COLOR SHIFT
========================= */
.sd-product .sd-card[data-niche="SpeechLayer"]:hover {
    box-shadow: 0 10px 28px rgba(120, 90, 255, 0.15);
}

.sd-product .sd-card[data-niche="VoiceLine"]:hover {
    box-shadow: 0 10px 28px rgba(0, 180, 120, 0.15);
}



/* ══════════════════════════════════════════════════
   MOBILE — solutions dans le nav-dropdown blanc
   ══════════════════════════════════════════════════ */

.nav-dropdown .solutions-mobile-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px 4px;
    font-family: 'Sora', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(63, 81, 181, 0.45);
    pointer-events: none;
}

.nav-dropdown .solutions-mobile-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    text-decoration: none;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.15s;
}

.nav-dropdown .solutions-mobile-item:hover {
    color: #3f51b5;
    background: rgba(63, 81, 181, 0.05);
    padding-left: 26px;
}

.nav-dropdown .solutions-mobile-item .sm-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sd-card[data-niche="howtouse"] .sd-icon {
    background: rgba(63, 81, 181, 0.09);
    color: #3f51b5;
    border: 1px solid rgba(63, 81, 181, 0.18);
}

.sd-card[data-niche="download"] .sd-icon {
    background: rgba(16, 185, 129, 0.09);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.sd-card[data-niche="docs"] .sd-icon {
    background: rgba(245, 158, 11, 0.09);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.sd-card[data-niche="changelog"] .sd-icon {
    background: rgba(239, 68, 68, 0.09);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.18);
}