/* Composant multiselect modernisé - Design System compatible */
.pratique-multiselect {
    position: relative;
    max-width: 100%;
    width: 100%;
}

.pratique-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pratique-tag {
    background: #E6F2FF; /* primary-lighter */
    color: #0066CC; /* primary */
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pratique-tag:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.pratique-tag-remove {
    margin-left: 0.5rem;
    cursor: pointer;
    color: #DC3545; /* danger */
    font-weight: bold;
    transition: all 0.2s;
    min-width: 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.pratique-tag-remove:hover {
    color: #c82333;
    background: rgba(220, 53, 69, 0.1);
}

.pratique-search {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 1rem;
    border: 1px solid #CED4DA; /* gray-300 */
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.pratique-search:hover {
    border-color: #ADB5BD; /* gray-400 */
}

.pratique-search:focus {
    outline: none;
    border-color: #0066CC; /* primary */
    box-shadow: 0 0 0 3px #E6F2FF; /* primary-lighter */
}

.pratique-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #DEE2E6; /* gray-200 */
    border-radius: 0 0 0.5rem 0.5rem;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: none;
}

.pratique-dropdown.open {
    display: block;
}

.pratique-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    color: #212529; /* gray-800 */
    border-bottom: 1px solid #F8F9FA; /* gray-50 */
    transition: background-color 0.15s;
}

.pratique-dropdown-item:last-child {
    border-bottom: none;
}

.pratique-dropdown-item:hover {
    background: #E6F2FF; /* primary-lighter */
    color: #0066CC; /* primary */
}

.pratique-fallback-item {
    background: #ffffff;
    border: 1px solid #DEE2E6;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.pratique-fallback-item:hover {
    background: #E6F2FF;
    border-color: #0066CC;
    transform: translateY(-1px);
}
