/* =========================================================
   Avatars à initiales – Forum Moodle  V9
   ========================================================= */

/* Arrondir les avatars du forum (vraies photos + initiales) */
.path-mod-forum img.rounded-circle,
.path-mod-forum .initials-avatar {
    border-radius: 50%;
}

/* Masquer proprement l'image d'origine */
.initials-avatar-hidden {
    display: none;
}

.initials-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
    user-select: none;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
    transition: transform .15s ease, box-shadow .15s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.initials-avatar:hover {
    transform: scale(1.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4),
                0 2px 4px rgba(0, 0, 0, .15);
}

@media (prefers-reduced-motion: reduce) {
    .initials-avatar {
        transition: none;
    }
    .initials-avatar:hover {
        transform: none;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
    }
}

/* ---------- Ligne auteur + date (très discrète) ---------- */
.forum-post-container header h3 + div {
    font-size: 9px !important;
    line-height: 1 !important;
    color: #c8c8c8 !important;
    opacity: 0.45 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-weight: normal !important;
}

.forum-post-container header h3 + div a,
.forum-post-container header h3 + div time {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: normal !important;
}

/* Alignement compact des en-têtes */
.path-mod-forum .forumpost .header,
.path-mod-forum .forum-post .header,
.path-mod-forum .post-content .header {
    align-items: center;
}
