/* ================================================
   MODULE INTERACTIONS — CSS
   À ajouter à la fin de public/assets/css/app.css
   ================================================ */

/* ── Section commentaires ───────────────────────── */
.fm-comments-section {
    border-top: 2px solid var(--fm-gray-light);
    padding-top: 2rem;
}
.fm-comments-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}
.fm-comments-count {
    font-size: 0.9rem;
    color: var(--fm-gray-dark);
    font-weight: 400;
    margin-left: 6px;
}
.fm-comments-empty {
    text-align: center;
    padding: 2rem;
    color: var(--fm-gray-mid);
    font-size: 0.9rem;
}
.fm-comments-empty i { font-size: 2rem; display: block; margin-bottom: 8px; }

/* ── Formulaire commentaire ─────────────────────── */
.fm-comment-form-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.fm-comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--fm-gold);
    color: var(--fm-black);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fm-comment-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--fm-gray-mid);
    border-radius: var(--fm-radius-lg);
    font-size: 0.9rem;
    font-family: var(--fm-font);
    color: var(--fm-black);
    resize: vertical;
    min-height: 72px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background: var(--fm-white);
}
.fm-comment-textarea:focus {
    border-color: var(--fm-gold);
    box-shadow: 0 0 0 3px rgba(212,161,30,0.12);
}
.fm-comment-chars {
    font-size: 0.75rem;
    color: var(--fm-gray-mid);
}
.fm-comment-login-prompt {
    background: var(--fm-gray-light);
    border-radius: var(--fm-radius);
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--fm-gray-dark);
}

/* ── Commentaire individuel ─────────────────────── */
.fm-comment {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}
.fm-comment-reply {
    margin-left: 2rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}
.fm-comment-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--fm-gold);
}
.fm-comment-body { flex: 1; min-width: 0; }
.fm-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.fm-comment-author {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--fm-black);
}
.fm-comment-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fm-badge-admin  { background: #fdf0f0; color: #9b2525; }
.fm-badge-mod    { background: #eff6ff; color: #1e40af; }
.fm-badge-editor { background: #f0fdf4; color: #1a6832; }
.fm-comment-date {
    font-size: 0.75rem;
    color: var(--fm-gray-mid);
    margin-left: auto;
}
.fm-comment-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #333;
    word-break: break-word;
    margin-bottom: 8px;
}
.fm-comment-actions {
    display: flex;
    gap: 12px;
}
.fm-action-btn {
    background: none;
    border: none;
    font-size: 0.78rem;
    color: var(--fm-gray-dark);
    cursor: pointer;
    padding: 0;
    font-family: var(--fm-font);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.fm-action-btn:hover { color: var(--fm-gold); }

/* ── Formulaire réponse inline ──────────────────── */
.fm-reply-form-wrap { margin-top: 10px; }
.fm-reply-form-inner {
    background: var(--fm-gray-light);
    border-radius: var(--fm-radius);
    padding: 10px;
}
.fm-replies {
    border-left: 2px solid var(--fm-gray-light);
    margin-top: 12px;
    padding-left: 12px;
}

/* ── Barre likes + favoris ──────────────────────── */
.fm-interactions-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fm-like-btn,
.fm-favori-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 99px;
    border: 1.5px solid var(--fm-gray-mid);
    background: transparent;
    color: var(--fm-gray-dark);
    font-size: 0.875rem;
    font-family: var(--fm-font);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.fm-like-btn:hover {
    border-color: #DC3545;
    color: #DC3545;
}
.fm-like-btn-active {
    background: #fff0f0;
    border-color: #DC3545;
    color: #DC3545;
}
.fm-like-btn-active i { color: #DC3545; }
.fm-like-count { font-weight: 700; min-width: 16px; text-align: center; }

.fm-favori-btn:hover {
    border-color: var(--fm-gold);
    color: var(--fm-gold);
}
.fm-favori-btn-active {
    background: rgba(212,161,30,0.1);
    border-color: var(--fm-gold);
    color: var(--fm-gold);
}

/* ── Page favoris (profil) ──────────────────────── */
.fm-favori-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--fm-white);
    border: 1px solid var(--fm-gray-light);
    border-radius: var(--fm-radius-lg);
    padding: 12px;
    text-decoration: none;
    color: var(--fm-black);
    transition: transform 0.2s, box-shadow 0.2s;
}
.fm-favori-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    color: var(--fm-black);
}
.fm-favori-card-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--fm-radius);
    flex-shrink: 0;
    background: var(--fm-gray-light);
}
.fm-favori-card-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fm-gold);
    letter-spacing: 0.05em;
}
.fm-favori-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 3px 0 0;
}

@media (max-width: 576px) {
    .fm-comment-reply { margin-left: 1rem; }
    .fm-like-btn span,
    .fm-favori-btn span { display: none; }
}
