/* <choice-group> : contrôle segmenté (boutons radio). */

choice-group { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
choice-group label { flex: 1 1 0; min-width: max-content; min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; text-align: center; }
choice-group label:hover { color: var(--text); }
choice-group input { position: absolute; opacity: 0; pointer-events: none; }
choice-group label:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(15 23 42 / .08), 0 0 0 1px var(--border); }
choice-group label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
