/* Menu déroulant Outils — style app mobile */
.dropdown-menu-outils {
    padding: 0.65rem !important;
}

.dropdown-menu-outils a.outils-item {
    display: flex !important;
    padding: 0.7rem 0.65rem !important;
}

.dropdown-outils .dropdown-menu-outils {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 360px;
    max-width: min(400px, calc(100vw - 24px));
    max-height: min(78vh, 640px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    padding: 0.65rem;
    z-index: 1100;
    margin-top: 0;
}

/* Pont invisible entre le bouton et le menu (évite la fermeture au survol) */
.dropdown-outils .dropdown-menu-outils::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

@media (min-width: 769px) {
    .dropdown-outils {
        padding-bottom: 4px;
    }

    .dropdown-outils:hover .dropdown-menu-outils,
    .dropdown-outils.is-open .dropdown-menu-outils {
        display: block;
    }
}

.outils-section + .outils-section {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

.outils-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0056d2;
    margin: 0 0.35rem 0.5rem;
}

.outils-section-title::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #0056d2;
    flex-shrink: 0;
}

.outils-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.65rem;
    margin-bottom: 0.35rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.outils-item:last-child {
    margin-bottom: 0;
}

.outils-item:hover {
    background: #f8fafc;
    border-color: #dbeafe;
    box-shadow: 0 2px 8px rgba(0, 86, 210, 0.06);
    color: inherit;
}

.outils-item.active-item {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.outils-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.outils-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.outils-item-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.outils-item-desc {
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.35;
}

.outils-item-chevron {
    color: #cbd5e1;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.outils-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.58rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 1px 6px;
    border-radius: 10px;
    vertical-align: middle;
    letter-spacing: 0;
    text-transform: none;
}

.outils-premium-badge i {
    font-size: 0.52rem;
}

/* Mobile : menu empilé dans le burger */
@media (max-width: 768px) {
    .dropdown-outils .dropdown-menu-outils {
        position: static;
        display: none;
        width: 100%;
        max-width: none;
        max-height: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0.5rem 0.75rem 0.75rem;
        background: #f1f5f9;
    }

    .dropdown-outils.active .dropdown-menu-outils {
        display: block;
    }

    .outils-item {
        padding: 0.85rem 0.75rem;
    }
}
