/* Rubrique Infos : actions des articles (J'aime, favori, commentaires, partage), message
   éphémère, fil de commentaires. Partagé par /Infos et /Infos/Article/{id} ; le menu de
   partage, commun au portail, est dans share-menu.css.
   Couleurs : variables --brand, --navy, --teal des pages. */

/* ── Boutons d'action ─────────────────────────────────────────── */
.ic-btn { display: inline-flex; align-items: center; gap: 4px; min-width: 34px; height: 32px; padding: 0 7px; border: 0; border-radius: 8px; background: transparent; color: #6b7280; font: 600 .78rem 'Poppins', 'Poppins repli', Segoe UI, Arial, sans-serif; cursor: pointer; transition: background .15s, color .15s; }
.ic-btn:hover { background: #f3f5fa; color: var(--navy); }
.ic-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.ic-btn:disabled { opacity: .6; cursor: default; }
.ic-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-btn.like-btn.active { color: var(--brand); }
.ic-btn.like-btn.active svg { fill: #dfe6fb; }
.ic-btn.fav-btn.active { color: #e11d48; }
.ic-btn.fav-btn.active svg { fill: #e11d48; }
.ic-btn.comment-btn:hover { color: var(--teal); }
.ic-btn.pop svg { animation: ic-pop .3s ease; }
@keyframes ic-pop { 50% { transform: scale(1.3); } }
.like-count:empty, .comment-count:empty { display: none; }

/* ── Message éphémère ─────────────────────────────────────────── */
.info-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .85rem; box-shadow: 0 8px 24px rgba(23,29,53,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1100; max-width: calc(100% - 32px); text-align: center; }
.info-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.info-toast a { color: #c7d2fe; font-weight: 600; }

/* ── Fenêtre des commentaires (page Infos) ────────────────────── */
.icm-dialog { width: min(640px, calc(100% - 24px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 64px rgba(23,29,53,.3); color: #1f2937; font-family: 'Poppins', 'Poppins repli', Segoe UI, Arial, sans-serif; }
.icm-dialog::backdrop { background: rgba(23,29,53,.45); }
.icm-dialog[open] { display: flex; flex-direction: column; }
.icm-dialog__head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid #eef0f5; }
.icm-dialog__title { flex: 1; min-width: 0; margin: 0; font-size: 1rem; line-height: 1.35; color: var(--navy); }
.icm-dialog__title small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.icm-dialog__close { flex-shrink: 0; width: 34px; height: 34px; border: 0; border-radius: 8px; background: #f3f5fa; color: #4b5563; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.icm-dialog__close:hover { background: #e7ebf3; }
.icm-dialog__body { overflow-y: auto; padding: 16px 20px 20px; }
.icm-dialog__foot { padding: 0 20px 16px; font-size: .78rem; }
.icm-dialog__foot a { color: var(--brand); font-weight: 600; text-decoration: none; }
@media (max-width: 560px) {
    .icm-dialog { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
}

/* ── Fil de commentaires ──────────────────────────────────────── */
.icm { font-size: .88rem; }
.icm-top { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; color: var(--navy); }
.icm-top small { color: #9ca3af; font-size: .75rem; }
.icm-form { background: #f7f8fb; border: 1px solid #e8ebf2; border-radius: 12px; padding: 12px; margin-bottom: 18px; }
.icm-as { font-size: .8rem; color: #6b7280; margin-bottom: 8px; }
.icm-as b { color: var(--navy); }
.icm-replying { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--brand); margin-bottom: 6px; }
.icm-replying[hidden] { display: none; }
.icm-form textarea { width: 100%; min-height: 76px; resize: vertical; border: 1px solid #d9dde5; border-radius: 10px; padding: 10px 12px; font: 400 .9rem 'Poppins', 'Poppins repli', Segoe UI, Arial, sans-serif; color: #1f2937; background: #fff; }
.icm-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.icm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.icm-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.icm-counter { font-size: .75rem; color: #9ca3af; }
.icm-counter.warn { color: #b45309; }
.icm-submit { border: 0; border-radius: 999px; background: var(--brand); color: #fff; padding: 8px 18px; font: 600 .85rem 'Poppins', 'Poppins repli', Segoe UI, Arial, sans-serif; cursor: pointer; }
.icm-submit:hover { filter: brightness(.95); }
.icm-submit:disabled { opacity: .55; cursor: default; }
.icm-error { margin: 8px 0 0; font-size: .8rem; color: #b91c1c; }
.icm-error[hidden] { display: none; }
.icm-full { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; font-size: .82rem; }
.icm-empty { color: #9ca3af; text-align: center; padding: 18px 0 6px; }
.icm-list, .icm-replies { list-style: none; margin: 0; padding: 0; }
.icm-item { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid #f0f2f6; }
.icm-list > .icm-item:first-child { border-top: 0; padding-top: 0; }
.icm-replies { margin-top: 6px; }
.icm-replies .icm-item { padding: 10px 0 0; border-top: 0; }
.icm-avatar { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .75rem; letter-spacing: .02em; }
.icm-replies .icm-avatar { width: 28px; height: 28px; font-size: .68rem; }
.icm-main { flex: 1; min-width: 0; }
.icm-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.icm-pseudo { font-weight: 700; color: var(--navy); }
.icm-you { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); background: #eef1fb; border-radius: 999px; padding: 1px 7px; }
.icm-meta time { font-size: .74rem; color: #9ca3af; }
.icm-text { margin: 3px 0 4px; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; color: #374151; }
.icm-text.muted { font-style: italic; color: #9ca3af; }
.icm-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.icm-react { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.icm-react-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 2px 9px; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; color: #374151; font: 600 .76rem 'Poppins', 'Poppins repli', Segoe UI, Arial, sans-serif; cursor: pointer; line-height: 1; transition: background .15s, border-color .15s, transform .1s; }
.icm-react-btn:not(.has):not(.on) { opacity: .55; }
.icm-react-btn:hover { border-color: var(--brand); opacity: 1; }
.icm-react-btn:active { transform: scale(.94); }
.icm-react-btn.on { background: #eef2ff; border-color: var(--brand); color: var(--brand); opacity: 1; }
.icm-react-btn:disabled { cursor: wait; }
.icm-react-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.icm-react-emoji { font-size: 1rem; line-height: 1; }
.icm-react-emoji.fa-heart { color: #e0245e; }
.icm-react-count:empty { display: none; }
.comments.is-closed { display: none; }
.icm-link { border: 0; background: none; padding: 0; color: #6b7280; font: 600 .76rem 'Poppins', 'Poppins repli', Segoe UI, Arial, sans-serif; cursor: pointer; }
.icm-link:hover { color: var(--brand); }
.icm-link.danger:hover { color: #b91c1c; }
.icm-link:disabled { color: #9ca3af; cursor: default; }
.icm-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.icm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
