/* doc-project | commande/v1/assets/css/components/buttons.css | Définit les styles des boutons et des segments d’actions de l’interface. | Expose: .btn, .btnPrimary, .btnGhost, .btnLight, .btnInline, .btnInlineSmall, .segmented, .segmented__btn | Dépend de: variables CSS globales (--tap, --text) | Impacte: UI, accessibilité, états interactifs | Tables: aucune */
.btn{
  width: 100%;
  min-height: var(--tap);
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  letter-spacing: .2px;
  cursor: pointer;
}
.btn:active{ transform: translateY(1px); }
.btn[aria-disabled="true"]{
  opacity:.55;
  cursor:not-allowed;
  pointer-events:none;
}
.btnPrimary{
  background: #890000;
  color: #fff;
  box-shadow: 0 10px 20px rgba(178,34,34,.25);
}
.btnGhost{
  /* Bouton "ghost" lisible partout (y compris sur surfaces claires : cards, sheets, etc.)
     Ancien style: texte blanc + fond clair => contraste insuffisant. */
  background: rgba(255,255,255,.86);
  color: var(--text);
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.btnGhost:hover{
  background: rgba(255,255,255,.92);
}
.btnGhost:active{
  background: rgba(255,255,255,.96);
}
.btnGhost:focus{
  outline: 2px solid rgba(0,0,0,.28);
  outline-offset: 2px;
}
.btnGhost[aria-disabled="true"],
.btnGhost[disabled]{
  box-shadow: none;
}
.btnLight{
  background: rgba(255,255,255,.92);
  color: #111;
}
.btnInline{
  width:auto;
  min-height:auto;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
}
.btnInlineSmall{
  padding: 6px 10px;
  font-size: 14px;
}
.btn[disabled]{
  opacity:.55;
  cursor:not-allowed;
}

.segmented{
  display:flex;
  gap: 8px;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 6px;
}
.segmented__btn{
  flex:1;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  min-height: 44px;
  cursor: pointer;
  background: transparent;
  font-weight: 900;
}
.segmented__btn.is-active{
  background: #111;
  color: #fff;
}
.segmented__btn[disabled]{
  opacity:.5;
  cursor:not-allowed;
}

