/* Styles pour le bouton flottant */
.floating-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 16;
}

.floating-chat .chat-icon {
    width: 80px;
    height: 80px;
    background-color: #0077b6; /* Couleur de fond du bouton */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* Ombre légère */
    overflow: hidden; /* Masquer le contenu débordant du cercle */
    animation: pulse 2s infinite alternate;
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1); /* Légèrement agrandir le cercle */
    }
}
.floating-chat .chat-icon img {
    width: 100%; /* Ajuster la largeur de l'image pour remplir le cercle */
    height: auto; /* Ajuster automatiquement la hauteur en fonction de la largeur */
    fill: #fff;
    
}
.phrase{
    font-size: 20px;
    color: #e1f506;
    font-weight:bolder;
}
/* Styles pour la boîte de discussion */
.chat-box {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 300px;
    background-image: url("/img/fondpopup.png");
    background-size: cover; /* Pour couvrir toute la boîte avec l'image */
    background-position: center; /* Centrer l'image horizontalement et verticalement */
    background-repeat: no-repeat; /* Empêcher la répétition de l'image */
    border-radius: 15px; /* Coins arrondis */
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* Ombre légère */
    display: none;
    z-index: 1000;
}

.chat-box .chat-header {
    background-color: rgba(0, 0, 255, 0.36);
    color:#eeeff0; /* Couleur du texte de l'en-tête */
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight:bold
}

.chat-box .chat-header span {
    font-weight: bold;
}

.chat-box .chat-header .close-chat {
    background: none;
    border: none;
    font-size: 20px;
    color: #fff; /* Couleur de l'icône de fermeture */
    cursor: pointer;
}

.chat-box .chat-content {
    padding: 10px;
}

.chat-box a {
    display: flex;
    justify-content: center;
    color: #a3d7e9; /* Couleur du lien vers Facebook */
    text-decoration: none;
    font-weight: bold;
}
.chat-box a img{
    width:50px;
    height:50px;
}
@media (max-width: 768px) {
 
    /* Ajoutez d'autres styles pour la version mobile */
    .chat-content {
        font-size: 16px; /* Taille du texte pour les petits écrans */
    }
    .phrase{
        font-size: 14px;
    }
    .floating-chat .chat-icon {
        width: 50px;
        height: 50px;
    }
}
@media(max-width: 320px){
    .chat-box{
        right: 10px;
    }
    .chat-content {
        font-size: 13px; /* Taille du texte pour les petits écrans */
    }
    .phrase{
        font-size: 12px;
    }
}
@keyframes buttonGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3), 0 0 10px rgba(239, 250, 117, 0.849);
    }
    50% {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(239, 250, 117, 0.7);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3), 0 0 10px rgba(233, 241, 144, 0.712);
    }
}
.floating-chat .chat-icon {
    animation: buttonGlow 2s infinite; /* 2s est la durée de l'animation, "infinite" pour une répétition infinie */
}