/* File: public-bff/public/css/frontend-sourcing-pilot.css
   Bannière « Sourcing groupé actif » (page détail produit) — refonte navy.
   A/B test : 2 variantes via .v-a / .v-b sur la racine .src-pilot.
   Flat design, sans gradient. */

.src-pilot-section { width: 80%; max-width: 1520px; margin: 0 auto 22px; }

.src-pilot { border-radius: 16px; padding: 24px 26px; }

/* Eyebrow */
.src-pilot-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 12px; font-weight: 800; letter-spacing: .6px;
    text-transform: uppercase; margin-bottom: 18px;
}
.src-pilot-dot {
    width: 9px; height: 9px; border-radius: 50%; background: #ffc83d;
    flex-shrink: 0; animation: srcPilotPulse 2s infinite;
}
.src-pilot-eyebrow-i, .src-pilot-i { font-size: 10px; opacity: .6; cursor: help; }
@keyframes srcPilotPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 200, 61, .55); }
    70%  { box-shadow: 0 0 0 7px rgba(255, 200, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 200, 61, 0); }
}

/* Rangée de cartes */
.src-pilot-cards { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 14px; }
.src-pilot-card { border-radius: 12px; padding: 16px 18px; }
.src-pilot-card-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .4px; margin-bottom: 6px;
    display: flex; align-items: center; gap: 6px;
}
.src-pilot-card-label--row { justify-content: space-between; }
.src-pilot-deadline { text-transform: none; font-weight: 600; }
.src-pilot-stat { font-size: 24px; font-weight: 800; line-height: 1; }
.src-pilot-sub { font-size: 12px; font-weight: 600; margin-top: 5px; }
.src-pilot-sub--row { display: flex; justify-content: space-between; }
.src-pilot-bar { height: 9px; border-radius: 99px; overflow: hidden; margin: 9px 0 7px; }
.src-pilot-bar > span { display: block; height: 100%; border-radius: 99px; }
.src-pilot-price { font-size: 22px; font-weight: 800; line-height: 1.1; }

/* CTAs */
.src-pilot-ctas { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.src-pilot-cta-wrap { flex: 1; min-width: 240px; display: block; }
.src-pilot-cta {
    width: 100%; display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 14px 18px; border-radius: 99px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    border: 2px solid transparent; text-decoration: none;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

/* Barre basse pleine largeur (échéance) — déborde le padding pour toucher les bords,
   coins arrondis alignés sur ceux du cadre. */
.src-pilot-footer {
    margin: 18px -26px -24px;
    padding: 15px 22px;
    border-radius: 0 0 16px 16px;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    font-size: 16px; font-weight: 700;
}
.src-pilot-footer .src-pilot-i { font-size: 12px; }

/* ════════════ VARIANTE A — navy + cartes blanches ════════════ */
.src-pilot.v-a { background: #022d94; }
.v-a .src-pilot-eyebrow { color: #cfe0ff; }
.v-a .src-pilot-card { background: #fff; border: 1px solid #d9e3fb; }
.v-a .src-pilot-card-label { color: #4666b3; }
.v-a .src-pilot-deadline { color: #4666b3; }
.v-a .src-pilot-stat { color: #022d94; }
.v-a .src-pilot-sub { color: #5f6c79; }
.v-a .src-pilot-sub strong { color: #022d94; }
.v-a .src-pilot-bar { background: #e7edfb; }
.v-a .src-pilot-bar > span { background: #022d94; }
.v-a .src-pilot-price { color: #022d94; }
.v-a .src-pilot-cta--primary { background: #fff; color: #022d94; }
.v-a .src-pilot-cta--primary:hover { background: #eef3ff; }
.v-a .src-pilot-cta--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.v-a .src-pilot-cta--secondary:hover { border-color: #fff; }
.v-a .src-pilot-footer { background: #021f6a; color: #ffc83d; }

/* ════════════ VARIANTE B — navy « dark UI » + accent ambre ════════════ */
.src-pilot.v-b { background: #04226e; }
.v-b .src-pilot-eyebrow { color: #bcd0ff; }
.v-b .src-pilot-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }
.v-b .src-pilot-card-label { color: #9fb6ee; }
.v-b .src-pilot-deadline { color: #ffc83d; }
.v-b .src-pilot-stat { color: #fff; }
.v-b .src-pilot-sub { color: #c3cfe8; }
.v-b .src-pilot-sub strong { color: #ffc83d; }
.v-b .src-pilot-bar { background: rgba(255,255,255,.14); }
.v-b .src-pilot-bar > span { background: #ffc83d; }
.v-b .src-pilot-price { color: #fff; }
.v-b .src-pilot-cta--primary { background: #ffc83d; color: #04226e; }
.v-b .src-pilot-cta--primary:hover { opacity: .9; }
.v-b .src-pilot-cta--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.v-b .src-pilot-cta--secondary:hover { border-color: #fff; }
.v-b .src-pilot-footer { background: rgba(0,0,0,.28); color: #ffc83d; }

/* Le prix verrouillé (cadenas) reste lisible sur fond sombre */
.v-b .src-price-locked-val i { color: #ffc83d; }
.v-b .src-price-locked-val span { color: #9fb6ee; }

/* ───── Partage simple (bouton + popover) ───── */
.src-share { position: relative; flex: 0 0 auto; display: flex; }
.src-share-btn {
    width: 54px; align-self: stretch;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12); color: #fff;
    border: 1px solid rgba(255,255,255,.32); border-radius: 99px;
    font-size: 16px; cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.src-share-btn:hover { background: rgba(255,255,255,.22); border-color: #fff; }

.src-share-pop {
    position: absolute; bottom: calc(100% + 12px); right: 0;
    width: 300px; max-width: 84vw;
    background: #fff; color: #0f1111;
    border: 1px solid #e6eaf2; border-radius: 14px;
    box-shadow: 0 12px 32px rgba(2,45,148,.22);
    padding: 16px; z-index: 60; display: none; text-align: left;
}
.src-share.open .src-share-pop { display: block; }
.src-share-pop::after {
    content: ''; position: absolute; top: 100%; right: 22px;
    border: 8px solid transparent; border-top-color: #fff;
}
.src-share-title { font-size: 13px; font-weight: 800; color: #022d94; margin-bottom: 10px; }
.src-share-url { display: flex; gap: 6px; margin-bottom: 12px; }
.src-share-input {
    flex: 1; min-width: 0; font-size: 12px; color: #5f6c79;
    border: 1px solid #e0e6f2; border-radius: 9px; padding: 9px 11px; background: #f8faff;
}
.src-share-copy {
    flex: 0 0 auto; width: 40px; border: 1px solid #e0e6f2; border-radius: 9px;
    background: #fff; color: #022d94; cursor: pointer; font-size: 14px;
}
.src-share-copy:hover { background: #eef3ff; }
.src-share-icons { display: flex; gap: 10px; }
.src-share-ico {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #e6eaf2;
    font-size: 17px; text-decoration: none; cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.src-share-ico:hover { background: #f4f7ff; border-color: #cdd9f3; }
.src-share-icons .src-share-ico--wa { color: #25d366; }
.src-share-icons .src-share-ico--tg { color: #229ed9; }
.src-share-icons .src-share-ico--fb { color: #1877f2; }
.src-share-icons .src-share-ico--em { color: #5f6c79; }
.src-share-icons .src-share-ico--qr { color: #022d94; }
.src-share-qrbox { margin-top: 14px; display: flex; justify-content: center; }
.src-share-qrbox img, .src-share-qrbox canvas { border-radius: 8px; }

/* Responsive */
@media (max-width: 880px) {
    .src-pilot-section { width: 92%; }
    .src-pilot-cards { grid-template-columns: 1fr; }
}
