/**
 * Kapela — Style : Onglets, segments et formulaires
 * Auteur : Jacks Ngalangala
 */

/* Onglets et segments */
.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  height: 46px;
  padding: 0 2px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.on {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--acc);
}
.tab small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.t-terre .tabs {
  border: 0;
  gap: 8px;
}
.t-terre .tab {
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surf);
  margin: 0;
  color: var(--ink);
}
.t-terre .tab.on {
  background: var(--dark);
  color: var(--dark-t);
  border-color: var(--dark);
}
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-ui);
  background: var(--surf);
  flex-wrap: wrap;
}
.t-maison .seg {
  border-radius: 8px;
}
.seg button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-ui);
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.seg button.on {
  background: var(--dark);
  color: var(--dark-t);
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chipb {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-ui);
  background: var(--surf);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chipb.on {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--dark-t);
}

/* ───────── Formulaires ───────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.field small {
  font-size: 12px;
  color: var(--muted);
}
.inp,
select.inp,
textarea.inp {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-ui);
  background: var(--surf2);
  font-size: 15px;
  outline: none;
}
textarea.inp {
  padding: 12px 14px;
  min-height: 90px;
  resize: vertical;
  border-radius: var(--r);
}
.t-terre textarea.inp {
  border-radius: 18px;
}
.inp:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--line2);
}
.search {
  position: relative;
  min-width: 220px;
}
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.search .inp {
  padding-left: 42px;
}
.t-maison .search .inp {
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form .full {
  grid-column: 1/-1;
}
@media (max-width: 860px) {
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  cursor: pointer;
  font-size: 14px;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--acc);
}
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--line);
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.switch.on {
  background: var(--ok);
}
.switch.on::after {
  left: 23px;
}
