/* ==========================================================================
   BOUTONS D'ACTION SECONDAIRES (tableaux, filtres, barres d'outils)
   ========================================================================== */

.btn-action {
    background: transparent;
    border: 1px solid var(--border-controle);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-action-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-action-primary:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-action-danger {
    color: #C5221F;
    border-color: #C5221F;
}

.btn-action-danger:hover {
    background-color: #C5221F;
    color: #ffffff;
}

/* Variante compacte pour les cellules de tableau */
.btn-action-compact {
    padding: 4px 10px;
}

/* ── Bouton de dépôt de fichier (BoutonDepotFichier) ─────────────────────────
   Le libellé porte l'apparence du bouton et enveloppe un <input type="file">.
   Cet input est masqué visuellement mais reste dans l'ordre de tabulation : en
   display:none, il en sortait, et aucun dépôt de fichier de l'application
   n'était déclenchable au clavier (WCAG 2.1.1). Le libellé prend alors le
   contour de focus à sa place, via :focus-within. */

.depot-fichier {
    position: relative;
}

.depot-fichier-champ {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.depot-fichier:focus-within {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}
