/* Style du bouton flottant WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    width: 55px;
    height: 55px;
    line-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF !important;
}

.forum-container {
        background-color: #f4f6f8;
        min-height: 85vh;
        padding-top: 120px;
        padding-bottom: 60px;
    }
    .forum-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 3px;
        transition: all 0.2s ease-in-out;
    }
    .forum-card:hover {
        border-color: #cbd5e1;
    }
    .forum-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
    }
    .avatar-status {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 2px solid #fff;
        position: absolute;
        bottom: 2px;
        right: 2px;
    }

    .btn-forum-primary {
        background-color: #1abc9c;
        color: #ffffff;
        border: none;
        border-radius: 3px;
        font-weight: 600;
        padding: 9px 24px;
    }
    .btn-forum-primary:hover {
        background-color: #16a085;
        color: #ffffff;
    }
    /* Bulle style image exemple */
    .speech-bubble {
        background-color: #94a3b8;
        color: #ffffff;
        padding: 6px 14px;
        font-weight: 700;
        font-size: 0.85rem;
        border-radius: 2px;
        position: relative;
        display: inline-block;
        text-align: center;
        min-width: 65px;
    }
    .speech-bubble::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px 6px 0;
        border-style: solid;
        border-color: #94a3b8 transparent;
        display: block;
        width: 0;
    }
    .speech-bubble.complaint { background-color: #e74c3c; }
    .speech-bubble.complaint::after { border-color: #e74c3c transparent; }

    .speech-bubble.suggestion { background-color: #f39c12; }
    .speech-bubble.suggestion::after { border-color: #f39c12 transparent; }

    .speech-bubble.comment { background-color: #1abc9c; }
    .speech-bubble.comment::after { border-color: #1abc9c transparent; }

    .stat-sidebar-cell {
        background-color: #fafafa;
        border-left: 1px solid #f1f5f9;
    }
    .list-group-forum .list-group-item {
        border: none;
        border-bottom: 1px solid #f1f5f9;
        color: #475569;
        font-weight: 500;
        padding: 12px 16px;
    }
    .list-group-forum .list-group-item.active {
        background-color: transparent;
        color: #1abc9c;
        font-weight: 700;
    }

    /* Correctif Flexbox pour contenus volumineux */
    .flex-grow-1-fix {
        flex: 1 1 0%;
        min-width: 0;
    }
    .forum-post-content {
        font-size: 1.5rem;
        line-height: 1.5;
        white-space: pre-line;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* 1. Correction du débordement de l'avatar et du contenu */
.forum-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    transition: all 0.2s ease-in-out;
    overflow: hidden; /* Empêche tout élément enfant de dépasser des bords */
}

/* Forcer l'avatar à garder sa taille fixe sans déformer le flex */
.forum-avatar {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* 2. Correction de la taille des icônes/flèches de la pagination Laravel */
.pagination svg {
    width: 1rem !important;
    height: 1rem !important;
}

.pagination .page-link {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    color: #475569;
}

.pagination .page-item.active .page-link {
    background-color: #1abc9c;
    border-color: #1abc9c;
    color: #ffffff;
}

/* Alignement parfait de la barre de recherche */
.input-group .input-group-text {
    display: flex;
    align-items: center;
    background: transparent;
}

.input-group .form-control {
    height: 100%;
    box-shadow: none !important;
}

.input-group .form-control:focus {
    background-color: transparent !important;
}
