/* Bouton WhatsApp présent sur tout le site (refonte, lot 1).
   Une seule source : ce fichier ne dépend d'aucun style de page.
   Aucun décalage de mise en page : la barre est en position:fixed et le bloc
   statique réserve sa hauteur (margin, pas de position absolue). */

.vf-wa-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 18px 0 8px;
}

.vf-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid rgba(6, 78, 59, .16);
    border-radius: 999px;
    background: #25d366;
    color: #06301c;
    font: 700 1rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .24);
    transition: transform .15s ease, box-shadow .15s ease;
}

.vf-wa-btn:hover,
.vf-wa-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, .32);
}

.vf-wa-btn svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: currentColor;
}

.vf-wa-note {
    margin: 0;
    color: #475569;
    font: 500 .92rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Barre fixe mobile : n'existe jamais au-dessus de 768 px. */
.vf-wa-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, .12);
    font: 500 .92rem/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.vf-wa-bar[data-vf-open="1"] {
    display: flex;
}

.vf-wa-bar .vf-wa-btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 12px 14px;
    font-size: .95rem;
}

.vf-wa-bar-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    font: 700 1.1rem/1 system-ui, sans-serif;
    cursor: pointer;
}

@media (min-width: 769px) {
    .vf-wa-bar {
        display: none !important;
    }
}

/* Panneau QR (ordinateur uniquement) : le bouton ouvre ce panneau. */
.vf-wa-qr {
    position: fixed;
    inset: 0;
    z-index: 2147483100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
}

.vf-wa-qr[data-vf-open="1"] {
    display: flex;
}

.vf-wa-qr-card {
    width: 100%;
    max-width: 340px;
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    font: 500 .95rem/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #1e293b;
}

.vf-wa-qr-card img {
    width: 200px;
    height: 200px;
    margin: 4px auto 10px;
    display: block;
}

.vf-wa-qr-card h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.vf-wa-qr-card a {
    color: #155FB8;
    font-weight: 700;
}

.vf-wa-qr-close {
    display: block;
    margin-top: 14px;
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font: 600 .95rem/1 system-ui, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
