/*
 * Babyphone Video — Boutons de partage social (B2C)
 * Compagnon de babyphone-share-buttons.php
 * Réutilise les tokens --bpv-* de babyphone-front.css quand disponibles.
 */

.bpv-share-block {
    margin: 1.75rem 0;
    padding: 1rem 1.1rem;
    border-radius: var(--bpv-radius, 12px);
    background: #f8fafc;
    border: 1px solid var(--bpv-border, #e2e8f0);
}

.bpv-share-top {
    margin-top: 0;
    margin-bottom: 2rem;
}

.bpv-share-bottom {
    margin-top: 2.5rem;
    margin-bottom: 0;
}

.bpv-share-intro {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--bpv-navy, #1a365d);
}

.bpv-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: stretch;
}

.bpv-share-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--bpv-surface, #ffffff);
    color: var(--bpv-navy, #1a365d);
    border: 1px solid var(--bpv-border, #e2e8f0);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.bpv-share-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
}

.bpv-share-btn-label {
    white-space: nowrap;
}

.bpv-share-count {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--bpv-orange, #f97316);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(26, 54, 93, 0.25);
}

.bpv-share-native-hidden {
    display: none !important;
}

.bpv-share-native-visible {
    display: inline-flex !important;
}

.bpv-share-btn:hover,
.bpv-share-btn:focus-visible {
    transform: translateY(-1px);
    border-color: transparent;
    color: #ffffff;
}

.bpv-share-btn--native:hover,
.bpv-share-btn--native:focus-visible {
    background: var(--bpv-navy, #1a365d);
}

.bpv-share-btn--whatsapp:hover,
.bpv-share-btn--whatsapp:focus-visible {
    background: #25d366;
}

.bpv-share-btn--facebook:hover,
.bpv-share-btn--facebook:focus-visible {
    background: #1877f2;
}

.bpv-share-btn--pinterest:hover,
.bpv-share-btn--pinterest:focus-visible {
    background: #e60023;
}

.bpv-share-btn--copy_link:hover,
.bpv-share-btn--copy_link:focus-visible {
    background: var(--bpv-orange, #f97316);
}

.bpv-share-btn--copy_link.is-copied {
    background: var(--bpv-navy, #1a365d);
    color: #ffffff;
    border-color: transparent;
}

.bpv-share-toast {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bpv-orange-dark, #ea580c);
}

.bpv-share-toast:not([hidden]) {
    animation: bpv-share-fade 2s ease forwards;
}

@keyframes bpv-share-fade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@media (max-width: 640px) {
    .bpv-share-block {
        padding: 0.85rem 0.9rem;
    }

    .bpv-share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .bpv-share-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .bpv-share-btn--native {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bpv-share-intro {
        font-size: 0.9rem;
    }

    .bpv-share-btn {
        font-size: 0.78rem;
        min-height: 38px;
    }
}
