/* ==========================================================================
   Cartoine — boutons
   Partagés par le site (app.js) et le BO (admin.js).
   .btn + une variante : .btn--primary, .btn--secondary, .btn--ghost
   Options : .btn--small, .btn--block, .btn--icon (carré, icône seule), .btn--danger (action destructive)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: var(--input-h);
  padding: .95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 0;                       /* angles droits, comme la charte */
  font-family: inherit;
  font-size: var(--fs-button);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.btn svg { flex: none; width: 1.1em; height: 1.1em; }

/* Principal : fond clair, texte noir. Survol : doré */
.btn--primary { background: var(--c-clair); color: var(--c-noir); }
.btn--primary:hover { background: var(--c-or); color: var(--c-noir); }

/* Secondaire : contour fin */
.btn--secondary {
  background: transparent;
  color: var(--c-clair);
  border-color: rgba(242, 242, 238, .35);
  font-weight: var(--fw-semibold);
}
.btn--secondary:hover { border-color: var(--c-clair); color: var(--c-clair); }

/* Discret : texte seul (actions secondaires, surtout dans le BO) */
.btn--ghost {
  background: transparent;
  color: var(--c-texte-2);
  padding-inline: var(--space-3);
  font-weight: var(--fw-semibold);
}
.btn--ghost:hover { color: var(--c-clair); }

/* Action destructive (BO) : texte rouge, jamais en bouton plein */
.btn--danger { color: var(--c-danger); }
.btn--danger:hover { color: var(--c-clair); }

/* Tailles */
.btn--small { min-height: var(--tap); padding: .6rem 1rem; font-size: var(--fs-meta); }
.btn--block { width: 100%; }
.btn--icon { min-width: var(--tap); padding-inline: 0; }

/* États */
.btn:disabled,
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
