/* ── Boutons de l'espace partenaire ─────────────────────────────────────────
   Trois niveaux, une seule échelle de taille :
     .fe-btn--principal   vert plein : l'action n° 1 de la zone (une seule)
     .fe-btn--secondaire  contour, fond blanc : actions utiles, moins fréquentes
     .fe-btn--discret     texte seul : actions rares
   Variantes : --sur-fonce (secondaire posé sur un en-tête foncé),
               --large (pleine largeur, ex. paiement),
               --premium (renouvellement urgent, doré),
               --alerte (action n° 1 urgente : correction demandée),
               --danger (confirmation d'une suppression),
               --icone (carré, icône seule : toujours un title / aria-label),
               --petit (dans une carte ou un tableau).
   Hauteur 40 px (34 px en --petit), 44 px partout sur mobile (cible tactile).
   Chargé après Bootstrap (poi/base.html) : préfixe fe- pour ne rien heurter. */

.fe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 40px;
    padding: 0 1.1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
    -webkit-tap-highlight-color: transparent;
}
.fe-btn:hover, .fe-btn:focus { text-decoration: none; }
.fe-btn:focus-visible { outline: 2px solid #2f7d63; outline-offset: 2px; }
.fe-btn[disabled], .fe-btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.fe-btn i { font-size: .9em; }

/* Principal */
.fe-btn--principal { background: #64c8a8; color: #1a2e4a; font-weight: 700; }
.fe-btn--principal:hover { background: #55b494; color: #1a2e4a; }

/* Secondaire */
.fe-btn--secondaire { background: #fff; color: #1a2e4a; border-color: #d1d5db; }
.fe-btn--secondaire:hover { background: #f3f4f6; border-color: #9ca3af; color: #1a2e4a; }

/* Secondaire posé sur un en-tête foncé */
.fe-btn--secondaire.fe-btn--sur-fonce { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.fe-btn--secondaire.fe-btn--sur-fonce:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); color: #fff; }

/* Discret */
.fe-btn--discret { background: transparent; color: #6b7280; padding: 0 .6rem; }
.fe-btn--discret:hover { background: #f3f4f6; color: #1a2e4a; }

/* Premium : renouvellement urgent (période de grâce), couleurs Premium du site */
.fe-btn--premium { background: #d4af37; color: #3d2f06; font-weight: 700; }
.fe-btn--premium:hover { background: #c19b26; color: #3d2f06; }

/* Alerte : remplace le principal quand une action urgente est attendue */
.fe-btn--alerte { background: #c0392b; color: #fff; font-weight: 700; }
.fe-btn--alerte:hover { background: #a93226; color: #fff; }

/* Danger : bouton de confirmation d'une suppression */
.fe-btn--danger { background: #c0392b; color: #fff; }
.fe-btn--danger:hover { background: #a93226; color: #fff; }
/* Discret rouge (corbeille) */
.fe-btn--discret.fe-btn--risque { color: #c0392b; }
.fe-btn--discret.fe-btn--risque:hover { background: #fdecea; color: #a93226; }

/* Tailles */
.fe-btn--petit { min-height: 34px; padding: 0 .8rem; font-size: .8rem; border-radius: 7px; }
.fe-btn--icone { width: 40px; padding: 0; }
.fe-btn--petit.fe-btn--icone { width: 34px; }

/* Pleine largeur (bouton de paiement, mobile) */
.fe-btn--large { width: 100%; min-height: 48px; font-size: .95rem; }

/* Pastille de compteur dans un bouton (ex. messages non lus) */
.fe-btn__pastille {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem;
    border-radius: 999px; background: #c0392b; color: #fff;
    font-size: .7rem; font-weight: 700; line-height: 1;
}

@media (max-width: 768px) {
    .fe-btn, .fe-btn--petit { min-height: 44px; }
    .fe-btn--icone, .fe-btn--petit.fe-btn--icone { width: 44px; }
}
