/* ============================================
   UloSport WhatsApp Button v2.0
   ============================================ */

/* Bouton page produit */
.ulosport-whatsapp-btn-single {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    max-width: 100%;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.3px;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.4;
}

.ulosport-whatsapp-btn-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.ulosport-whatsapp-btn-single:hover {
    background-color: #1FAF57 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #ffffff !important;
    text-decoration: none !important;
}

.ulosport-whatsapp-btn-single:hover::before {
    left: 100%;
}

.ulosport-whatsapp-btn-single:active {
    transform: translateY(0);
}

.ulosport-whatsapp-btn-single:visited,
.ulosport-whatsapp-btn-single:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    outline: none;
}

.ulosport-whatsapp-btn-single svg {
    flex-shrink: 0;
    vertical-align: middle;
}

/* Bouton catalogue */
.ulosport-whatsapp-btn-archive {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #25D366 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    box-sizing: border-box;
}

.ulosport-whatsapp-btn-archive:hover {
    background-color: #1FAF57 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.ulosport-whatsapp-btn-archive:visited,
.ulosport-whatsapp-btn-archive:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Animation */
@keyframes ulosport-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.ulosport-whatsapp-btn-single.ulosport-pulse {
    animation: ulosport-pulse 2s infinite;
}

/* Erreur */
.ulosport-whatsapp-error {
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    padding: 10px 14px;
    background-color: #fdeaea;
    border-radius: 5px;
    border-left: 3px solid #e74c3c;
    display: none;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.ulosport-whatsapp-error.show {
    display: block;
    animation: ulosport-shake 0.4s ease;
}

@keyframes ulosport-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .ulosport-whatsapp-btn-single {
        padding: 12px 20px;
        font-size: 15px;
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .ulosport-whatsapp-btn-single {
        padding: 11px 16px;
        font-size: 14px;
        gap: 8px;
    }
}