/* Boutons radio stylés (pills) */

.radio-pill-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.radio-pill-group-stack {
  flex-direction: column;
  align-items: stretch;
}

.radio-pill-group-stack .radio-pill {
  width: 100%;
}

.radio-pill-group-stack .radio-pill-face {
  display: block;
  width: 100%;
  text-align: left;
}

.radio-pill {
  position: relative;
  display: inline-block;
  margin: 0;
  cursor: pointer;
  font-weight: normal;
}

.radio-pill.is-disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.radio-pill-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.radio-pill-face {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1.35;
  color: #444;
  background: #fff;
  border: 2px solid #d8e4e4;
  border-radius: 100px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.radio-pill:hover .radio-pill-face {
  border-color: #58a681;
  background: #f6fbf8;
}

.radio-pill-input:focus + .radio-pill-face {
  box-shadow: 0 0 0 3px rgba(88, 166, 129, 0.35);
}

.radio-pill-input:checked + .radio-pill-face {
  color: #2d6b4f;
  font-weight: 600;
  background: #e8f5ef;
  border-color: #58a681;
  box-shadow: 0 1px 4px rgba(88, 166, 129, 0.2);
}

.radio-pill-input:disabled + .radio-pill-face {
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #999;
  box-shadow: none;
}

.radio-pill-group-compact .radio-pill-face {
  padding: 5px 11px;
  font-size: 12px;
}

.form-horizontal .radio-pill-group {
  margin-top: 2px;
}
