/* =========================================================
   WhatsApp SN — Styles Front-end
   ========================================================= */

/* ----- Bandeau réassurance ----- */
.wsn-reassurance-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px;
}

.wsn-reassurance-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f5f7fb;
    border: 1px solid #e6ebf2;
    font-size: 13px;
    line-height: 1.2;
}

/* ----- Carte vendeur ----- */
.wsn-seller-box {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e7ecf3;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
}

/* ----- En-tête vendeur ----- */
.wsn-seller-box__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.wsn-seller-box__eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin-bottom: 2px;
}

.wsn-seller-box__name {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.wsn-seller-box__sub {
    margin-top: 4px;
    color: #4b5563;
    font-size: 13px;
}

/* ----- Badges ----- */
.wsn-seller-box__benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0 16px;
}

.wsn-seller-box__benefits span {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    font-size: 13px;
    color: #374151;
    text-align: center;
    display: block;
}

/* ----- Message hors horaires ----- */
.wsn-seller-box__offline {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 3px solid #f59e0b;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: #92400e;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* ----- Bouton WhatsApp ----- */
.wsn-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 14px;
    background: #25D366;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s, opacity .2s;
    box-shadow: 0 12px 24px rgba(37, 211, 102, .24);
}

.wsn-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(37, 211, 102, .32);
    opacity: .95;
    color: #fff !important;
}

.wsn-wa-btn__icon { font-size: 18px; }

/* ----- Note bas ----- */
.wsn-seller-box__note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

/* ----- Bouton flottant ----- */
.wsn-floating {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    transition: transform .2s, box-shadow .2s;
    animation: wsn-bounce-in .45s cubic-bezier(.34,1.56,.64,1);
}

@keyframes wsn-bounce-in {
    from { opacity: 0; transform: scale(.4); }
    to   { opacity: 1; transform: scale(1); }
}

.wsn-floating:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 22px rgba(0,0,0,.3);
}

.wsn-floating:hover .wsn-floating-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.wsn-floating-tooltip {
    position: absolute;
    right: 68px;
    background: #111;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 7px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}

.wsn-floating-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #111;
}

/* ----- Responsive ----- */
@media (max-width: 767px) {
    .wsn-seller-box {
        padding: 15px;
        border-radius: 16px;
    }

    .wsn-seller-box__benefits {
        grid-template-columns: 1fr;
    }

    .wsn-seller-box__name {
        font-size: 16px;
    }

    .wsn-floating {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
}

.wsn-valid { color: #1a7a3e; font-weight: 600; }
