/* ===== Style général ===== */
.baq-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

/* ===== Barre de saisie ===== */
.baq-input-container {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
}

#baq-question-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
    border-right: none;
}

#baq-submit-question {
    background: #d3d3d3;
    color: #333; /* Texte noir pour meilleur contraste */
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 0 20px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#baq-submit-question:hover {
    background: #455A64;
}

/* ===== Liste des questions ===== */
.baq-question {
    background: #f9f9f9;
    border-radius: 20px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.baq-question:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.baq-question.baq-resolved {
    border-left: 4px solid #4CAF50;
}

/* En-tête de la question */
.baq-question-header {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    min-height: 48px;
}

.baq-question-text {
    flex: 1;
    margin-right: 15px;
    font-size: 15px;
    word-break: break-word;
    color: #000000;
}

/* Conteneur des actions (vote + résolu) */
.baq-question-actions {
    display: flex;
    align-items: center;
    width: 80px; /* Espace réservé fixe */
    justify-content: flex-end;
}

/* Bouton de vote */
.baq-like {
    background: transparent;
    color: #2196F3;
    border: none;
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.baq-like:hover {
    background: rgba(33, 150, 243, 0.1);
    transform: scale(1.1);
}

.baq-vote-count {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    text-align: center;
    min-width: 30px; /* Largeur minimale pour le compteur */
}

/* Icône "résolu" */
.baq-resolved-icon {
    color: #4CAF50;
    font-size: 18px;
    margin-left: 8px;
}

/* ===== Réponses ===== */
.baq-answer {
    display: none;
    padding: 0;
    overflow: hidden;
    background: #f0f7ff;
    border-top: 1px dashed #ddd;
    max-height: 0;
    opacity: 0;
    transition:
        max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease,
        padding 0.3s ease;
}

.baq-answer.active {
    display: block;
    max-height: 500px;
    opacity: 1;
    padding: 15px;
}

.baq-answer-content {
    font-size: 14px;
    color: #333;
    margin: 0;
}

.baq-answer p {
    margin: 0 0 10px 0;
    padding: 0;
}

/* ===== Animations ===== */
.baq-answer {
    transition: all 0.3s ease;
}
