/* File: public-bff/public/css/wanted-cta.css
 * Patrick 2026-05-30 — UNIFICATION des CTAs Wanted.
 * Source unique des 3 boutons « Je veux » / « Je vends » / « Pas en stock ? Sourcer »
 * conformes à la doctrine rule_wanted_carrefour_roles_locked (DCP_FLYWHEEL §43.6 v1.2
 * + DCP_PUBLIC §12.13.3 v1.3) — triple sortie obligatoire, refus d'office réduction.
 *
 * Utilisé par :
 *   - /wanted (page catalogue public)
 *   - home-v3 rail (à terme, quand on retirera les inline styles legacy)
 *
 * Règles :
 *   - Je veux  → fond navy #022d94, texte blanc  (acheteur — signal léger)
 *   - Je vends → fond jaune #ffb700, texte noir  (vendeur stocké → SellerCenter)
 *   - Sourcer  → fond blanc, bordure verte #0a7d39, texte vert (vendeur sans stock → SourcingPlace)
 */

/* Layout commun des 3 CTAs */
.hwr-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    border: 1.5px solid transparent;
    transition: filter .12s ease, background .12s ease, border-color .12s ease;
    font-family: inherit;
}
.hwr-cta i { font-size: 13px; }
.hwr-cta:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }

/* Variante "Je veux" — Acheteur (signal léger, navy) */
.hwr-cta-want,
a.hwr-cta-want,
a.hwr-cta-want:link,
a.hwr-cta-want:visited {
    background: #022d94;
    color: #ffffff;
}
.hwr-cta-want:hover,
a.hwr-cta-want:hover,
a.hwr-cta-want:active {
    background: #021d6e;
    color: #ffffff;
}
.hwr-cta-want.is-clicked {
    background: #0a7d39;          /* vert succès après clic */
    color: #ffffff;
    cursor: default;
}

/* Variante "Je vends" — Vendeur stocké (jaune accent flywheel) */
.hwr-cta-sell,
a.hwr-cta-sell,
a.hwr-cta-sell:link,
a.hwr-cta-sell:visited {
    background: #ffb700;
    color: #0f1111;
    font-weight: 700;
}
.hwr-cta-sell:hover,
a.hwr-cta-sell:hover,
a.hwr-cta-sell:active {
    background: #e69e00;
    color: #0f1111;
}

/* Variante "Pas en stock ? Sourcer" — Vendeur à approvisionner (outline vert) */
.hwr-cta-source,
a.hwr-cta-source,
a.hwr-cta-source:link,
a.hwr-cta-source:visited {
    background: #ffffff;
    color: #0a7d39;
    border-color: #0a7d39;
}
.hwr-cta-source:hover,
a.hwr-cta-source:hover,
a.hwr-cta-source:active {
    background: #0a7d39;
    color: #ffffff;
}

/* Grille triple CTA — pattern doctrine : Je veux + Je vends en haut côte à côte,
   Sourcer en dessous pleine largeur (signal secondaire mais toujours visible). */
.hwr-cta-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;            /* pousse les CTAs en bas de la carte */
}
.hwr-cta-grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.hwr-cta-grid .hwr-cta { width: 100%; }
