/**
 * WhatsApp Float Button 120 - Styles CSS
 * Développé par Web120 - www.web120.fr
 */

.wafb120-float-button {
    position: fixed;
    z-index: 9999;
    transition: all 0.3s ease;
}

.wafb120-float-button.wafb120-bottom-right {
    bottom: 20px;
    right: 20px;
}

.wafb120-float-button.wafb120-bottom-left {
    bottom: 20px;
    left: 20px;
}

.wafb120-float-button.wafb120-top-right {
    top: 20px;
    right: 20px;
}

.wafb120-float-button.wafb120-top-left {
    top: 20px;
    left: 20px;
}

.wafb120-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--button-size, 60px);
    height: var(--button-size, 60px);
    background-color: var(--button-color, #25D366);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 10px;
    box-sizing: border-box;
}

.wafb120-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.wafb120-button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.wafb120-button img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Rend l'icône blanche */
}

/* Styles pour les images personnalisées */
.wafb120-button.wafb120-custom-icon {
    padding: 4px;
}

.wafb120-button.wafb120-custom-icon picture {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.wafb120-button.wafb120-custom-icon picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none; /* Pas de filtre pour les images personnalisées */
}

/* CSS avec !important pour les images personnalisées */
.wafb120-button.wafb120-custom-icon img {
    width: 70% !important;
    height: 70% !important;
}

/* Animation de pulsation */
.wafb120-float-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--button-size, 60px);
    height: var(--button-size, 60px);
    background-color: var(--button-color, #25D366);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: wafb120-pulse 2s infinite;
    opacity: 0.6;
    z-index: -1;
}

@keyframes wafb120-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wafb120-float-button {
        bottom: 15px;
        right: 15px;
    }
    
    .wafb120-float-button.wafb120-bottom-left {
        left: 15px;
    }
    
    .wafb120-float-button.wafb120-top-right {
        top: 15px;
    }
    
    .wafb120-float-button.wafb120-top-left {
        top: 15px;
        left: 15px;
    }
}

/* Styles pour l'admin */
.wrap .card {
    padding: 15px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.wrap .card h2 {
    margin-top: 0;
    color: #23282d;
}

.wrap .card ul {
    margin-left: 20px;
}

.wrap .card li {
    margin-bottom: 5px;
}

.wrap .card code {
    background: #f1f1f1;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 13px;
}
