/* Sélecteur de thème — repris du profil PixieDocs */

.theme-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.theme-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface-elevated);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.theme-option__swatch {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--color-text) 12%, transparent);
}

.theme-option__name {
    font-size: 0.92rem;
    font-weight: 600;
}

.theme-option.is-selected,
.theme-option:has(input:checked) {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.theme-option:hover {
    border-color: var(--color-primary);
}

@media (max-width: 640px) {
    .theme-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
