/* SyncArti — Compléments Bootstrap (ne jamais redéfinir les classes Bootstrap ici) */
body { background-color: #f0f2f5; }

.metier-list-scroll { max-height: 250px; overflow-y: auto; }

.form-label { font-weight: 600; }

.btn-brand {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}
.btn-brand:hover, .btn-brand:focus {
    background: #ea6c0a;
    border-color: #ea6c0a;
    color: #fff;
}

.btn-violet {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #fff !important;
}
.btn-violet:hover, .btn-violet:focus {
    background-color: #6d28d9 !important;
    border-color: #6d28d9 !important;
    color: #fff !important;
}

/* ============================================================
   Chat — composant _chat.html.twig
   ============================================================ */

/* --- Liste des messages --- */
.chat-list {
    /* Pas de hauteur fixe — scroll natif de la page */
}

/* --- Bulle auteur (nom) --- */
.chat-author {
    font-size: .8rem;
    color: #94a3b8;
    margin-bottom: .2rem;
}

/* --- Bulles --- */
.chat-bubble {
    max-width: 75%;
    border-radius: .75rem;
    padding: .55rem .8rem;
    font-size: .875rem;
    line-height: 1.45;
    position: relative;
    cursor: default;
}

/* Mes messages */
.chat-bubble--own {
    background: #dbeafe;   /* bleu pastel */
    color: #1e3a5f;
}

/* Messages des autres */
.chat-bubble--other {
    background: #f1f5f9;   /* gris clair */
    color: #1e293b;
}


/* Photo dans une bulle */
.chat-bubble img {
    max-width: 100%;
    border-radius: .4rem;
    margin-top: .25rem;
    display: block;
}

/* Bouton play/stop audio dans une bulle */
.chat-audio-btn {
    background: rgba(0,0,0,.12);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    color: inherit;
}
.chat-audio-btn:hover { background: rgba(0,0,0,.22); }

/* --- Document dans une bulle --- */
.chat-doc-link {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    padding: .35rem .5rem;
    border-radius: .4rem;
    background: rgba(0,0,0,.07);
    margin-top: .25rem;
    word-break: break-all;
}
.chat-doc-link:hover { background: rgba(0,0,0,.14); color: inherit; }
.chat-doc-link .bi { font-size: 1.2rem; flex-shrink: 0; }

/* --- Boutons modifier / supprimer (dans la ligne auteur) --- */
.chat-action-btn {
    background: none;
    border: none;
    padding: 0 .2rem;
    font-size: .75rem;
    line-height: 1;
    cursor: pointer;
    color: #94a3b8;
    vertical-align: middle;
}
.chat-action-btn:hover { color: #475569; }
.chat-action-btn--danger:hover { color: #dc3545; }

/* --- Messages système (validation / blocage / déblocage) --- */
.chat-system {
    max-width: 90%;
    margin: .35rem auto;
    padding: .65rem 1rem;
    border-radius: .75rem;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    border-width: 1.5px;
    border-style: solid;
}

.chat-system--valide {
    background: #dcfce7;   /* vert pastel */
    color: #166534;
    border-color: #bbf7d0;
}

.chat-system--bloque {
    background: #fee2e2;   /* rouge pastel */
    color: #991b1b;
    border-color: #fecaca;
}

.chat-system--debloque {
    background: #e0f2fe;   /* bleu clair */
    color: #0369a1;
    border-color: #bae6fd;
}

.chat-system-comment {
    font-weight: 400;
    font-style: italic;
    margin-top: .2rem;
}

.chat-system-time {
    font-size: .7rem;
    opacity: .6;
    margin-top: .25rem;
}

.chat-system img {
    display: block;
    max-width: 100%;
    border-radius: .4rem;
    margin: .4rem auto 0;
}
