/* ===== CUSTOM SELECT STYLES ===== */
.custom-select {
    position: relative;
}

.custom-select select {
    display: none !important;
}

.custom-select .select-selected {
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-gray-700);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.custom-select .select-selected::after {
    content: '▼';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

.custom-select.active .select-selected::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select .select-selected:hover {
    border-color: var(--color-primary);
}

.custom-select.active .select-selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(123, 82, 204, 0.1);
}

.custom-select .select-items {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.custom-select.active .select-items {
    display: block;
}

.custom-select .select-items div {
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-gray-700);
}

.custom-select .select-items div:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

.custom-select .select-items div:first-child {
    color: var(--color-gray-400);
    font-style: italic;
}

.custom-select .select-items div:first-child:hover {
    background: transparent;
    color: var(--color-gray-400);
    cursor: default;
}

/* État d'erreur */
.custom-select.error .select-selected {
    border-color: var(--color-error);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
