.hc-wa-widget {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 99999;
    font-family: Arial, Helvetica, sans-serif;
}

.hc-wa-launcher {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;

    background: linear-gradient(135deg, #25D366, #18b958);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
            0 10px 30px rgba(0,0,0,.22),
            0 0 0 0 rgba(37, 211, 102, 0.6);

    transition: transform .2s ease, box-shadow .2s ease;

    animation: hc-pulse 2.2s infinite;
}

.hc-wa-launcher:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
            0 16px 40px rgba(0,0,0,.28),
            0 0 0 8px rgba(37, 211, 102, 0.15);
}

.hc-wa-launcher:active {
    transform: scale(0.96);
}

/* Icône */
.hc-wa-launcher svg {
    width: 50px;
    height: 50px;
    padding-left: 2px;
    padding-bottom: 2px;
    fill: #fff;

    /* léger mouvement pour donner de la vie */
    animation: hc-bounce 2.2s infinite;
}

/* Animation halo */
@keyframes hc-pulse {
    0% {
        box-shadow:
                0 10px 30px rgba(0,0,0,.22),
                0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow:
                0 10px 30px rgba(0,0,0,.22),
                0 0 0 18px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow:
                0 10px 30px rgba(0,0,0,.22),
                0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Animation légère du logo */
@keyframes hc-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}


.hc-wa-panel {
    position: absolute;
    left: 0;
    bottom: 84px;
    width: 360px;
    max-width: calc(100vw - 24px);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.98);
    transition: all .22s ease;
}

.hc-wa-widget.open .hc-wa-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.hc-wa-header {
    background: #0b8f78;
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hc-wa-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-wa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hc-wa-brand {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 4px 0;
}

.hc-wa-status {
    font-size: 13px;
    opacity: .95;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hc-wa-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ee06d;
    display: inline-block;
}

.hc-wa-body {
    background: #efeae2;
    padding: 20px 16px 16px 16px;
    position: relative;
}

.hc-wa-time {
    text-align: center;
    color: rgba(0,0,0,.35);
    font-size: 11px;
    margin-bottom: 12px;
}

.hc-wa-bubble {
    max-width: 82%;
    background: #fff;
    color: #111;
    font-size: 16px;
    line-height: 1.45;
    padding: 16px 16px;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.hc-wa-footer {
    background: #f7f7f7;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #ececec;
}

.hc-wa-input {
    flex: 1;
    border: 0;
    background: #fff;
    border-radius: 24px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    box-shadow: inset 0 0 0 1px #e6e6e6;
}

.hc-wa-send {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-wa-send svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.hc-wa-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 640px) {
    .hc-wa-widget {
        left: 12px;
        bottom: 12px;
    }

    .hc-wa-panel {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }
}
.hc-wa-quick-btn {
    border: 1px solid #e6f4ea;
    background: #f6fffa;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #0b8f78;
    transition: all .2s ease;
}

.hc-wa-quick-btn:hover {
    background: #e9fbf3;
    border-color: #25D366;
}
.hc-wa-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Ouvert */
.hc-wa-status.is-open::before {
    background: #25D366;
}

/* Fermé proche (pause, midi…) */
.hc-wa-status.is-soon::before {
    background: #ffb020;
}

/* Fermé long (soir / week-end) */
.hc-wa-status.is-closed::before {
    background: #ccc;
}