
/* public/css/fil.css : page « Le fil » (billets rares ouverts, titres débloqués, 1000 pts Pulse / Hidden Star) */
.fil-page { max-width: 1100px; margin: 0 auto; padding: 28px 16px 60px; color: #e8eefc; font-family: Inter, system-ui, sans-serif; }
.fil-head h1 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.fil-head h1 span { background: linear-gradient(90deg, #a78bfa, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fil-head p { margin: 4px 0 18px; color: #8d94b3; }
.fil-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fil-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid #263050; background: #121a2c; color: #c9cee6; font: 700 13px Inter, sans-serif; cursor: pointer; }
.fil-chip.on { border-color: #a78bfa; background: rgba(167, 139, 250, 0.14); color: #fff; }
.fil-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.fil-list { display: flex; flex-direction: column; gap: 12px; }
.fil-new { padding: 10px; border-radius: 12px; border: 1px solid #3b3566; background: rgba(124, 92, 255, 0.12); text-align: center; font-weight: 700; font-size: 14px; cursor: pointer; }
/* Une publication */
.fil-ev { position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; padding: 14px; border-radius: 16px; border: 1px solid #222a44; background: linear-gradient(120deg, color-mix(in srgb, var(--a) 10%, #111726), #111726 55%); }
.fil-kind { position: absolute; left: 14px; top: -9px; padding: 2px 8px; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; background: #0b0e14; border: 1px solid color-mix(in srgb, var(--a) 60%, transparent); color: var(--a); }
.fil-vis { display: flex; align-items: center; justify-content: center; min-height: 112px; }
.fil-vis .sft { width: 100%; height: 112px; }
.fil-badge { width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; font-size: 46px; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--a) 45%, #2a2547), #15122a); box-shadow: 0 0 0 2px color-mix(in srgb, var(--a) 70%, transparent), 0 0 30px color-mix(in srgb, var(--a) 40%, transparent); }
.fil-score { text-align: center; }
.fil-score b { display: block; font: 400 54px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: 0.02em; background: linear-gradient(180deg, #fff, var(--a)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--a) 50%, transparent)); }
.fil-score small { font-size: 11px; font-weight: 800; letter-spacing: 0.2em; color: var(--a); }
.fil-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.fil-who { display: flex; align-items: center; gap: 9px; }
.fil-who img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: #222; }
.fil-who a { color: #fff; font-weight: 700; text-decoration: none; }
.fil-who a:hover { text-decoration: underline; }
.fil-who span { display: block; font-size: 13px; color: #9aa3b2; }
.fil-tag { display: inline-block; width: fit-content; margin-top: 10px; padding: 3px 9px; border-radius: 5px; font-size: 12px; font-weight: 800; color: #10131f; background: var(--a); }
.fil-title { margin: 6px 0 2px; font-size: 26px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.fil-sub { color: #9aa3b2; font-size: 13.5px; }
.fil-time { position: absolute; right: 14px; top: 12px; font-size: 12px; color: #6f7899; }
.fil-more { margin: 6px auto 0; padding: 10px 22px; border-radius: 10px; border: 1px solid #2a3350; background: #151b2c; color: #e8eefc; font: 700 13px Inter, sans-serif; cursor: pointer; }
/* Colonne de droite */
.fil-side { display: flex; flex-direction: column; gap: 14px; }
.fil-box { padding: 14px; border-radius: 14px; border: 1px solid #222a44; background: #111726; }
.fil-box h3 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #c9cee6; }
.fil-stat { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid #1c2338; font-size: 13.5px; }
.fil-stat:first-of-type { border-top: 0; }
.fil-stat b { color: var(--a, #fff); }
.fil-luck { display: flex; gap: 10px; align-items: center; }
.fil-luck .sft { flex: 1; height: 96px; }
@media (max-width: 860px) {
  .fil-cols { grid-template-columns: 1fr; }
  .fil-side { position: static; }
}
@media (max-width: 560px) {
  .fil-ev { grid-template-columns: 1fr; }
  .fil-title { font-size: 21px; }
}
.fil-ev[hidden] { display: none; } /* filtres : le display: grid de la carte l'emportait sur hidden */
.fil-new[hidden], .fil-more[hidden], .fil-empty[hidden], .fil-box[hidden] { display: none; }
.fil-new { width: 100%; color: #e8eefc; font-family: Inter, sans-serif; }
.fil-empty { margin: 0; padding: 26px 16px; border-radius: 14px; border: 1px dashed #2a3350; text-align: center; color: #8d94b3; }
.fil-vis .sft { height: 112px; }
.fil-vis { overflow: hidden; }
.fil-who img { flex: none; }
.fil-badge img { width: 70%; height: 70%; object-fit: contain; }
/* ❤ Bouton j'aime des billets (fil.js) */
.fil-like { all: unset; box-sizing: border-box; align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid #2f3866; background: #1a2040; color: #9aa3b2; font: 700 13px Inter, sans-serif; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s; }
.fil-like:hover { border-color: rgba(244, 63, 94, 0.55); color: #fda4af; }
.fil-like:active { transform: scale(0.94); }
.fil-like.on { background: rgba(244, 63, 94, 0.16); border-color: rgba(244, 63, 94, 0.55); color: #fda4af; }
.fil-like .fil-like-ico { font-size: 15px; line-height: 1; }
.fil-like.on .fil-like-ico { color: #f43f5e; }
.fil-like[disabled] { cursor: default; opacity: 0.55; }
.fil-like[disabled]:hover { border-color: #2f3866; color: #9aa3b2; }
.fil-like.pop .fil-like-ico { animation: filLikePop 0.4s ease-out; }
@keyframes filLikePop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
/* ❤ Les billets les plus aimés (colonne de droite) */
.fil-top-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid #1c2338; }
.fil-top-row:first-child { border-top: 0; }
.fil-top-n { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 6px; background: #a855f7; color: #fff; font-size: 12px; font-weight: 800; }
.fil-top-chip { width: 8px; height: 30px; flex: none; border-radius: 3px; background: var(--a); box-shadow: 0 0 8px color-mix(in srgb, var(--a) 55%, transparent); }
.fil-top-txt { flex: 1; min-width: 0; line-height: 1.25; }
.fil-top-txt b, .fil-top-txt small, .fil-top-txt a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fil-top-txt b { font-size: 13px; color: #fff; }
.fil-top-txt small { font-size: 11.5px; color: #9aa3b2; }
.fil-top-txt a { font-size: 11.5px; color: #c4b5fd; text-decoration: none; }
.fil-top-txt a:hover { text-decoration: underline; }
.fil-top-likes { flex: none; font-size: 12.5px; font-weight: 700; color: #fda4af; }

/* 🏆 Nouveau Champion (mini event) : ceinture sur fond rouge sombre, épinglé 3 jours en tête de « Tout » */
.fil-champ { background: radial-gradient(circle at 35% 30%, #5a1a1f, #1f0a0d); box-shadow: 0 0 0 2px #d9a521, 0 0 30px rgba(242, 201, 76, 0.35); }
.fil-champ img { width: 86%; height: 86%; }
.fil-pinned { border-color: #d9a521; }
.fil-pinned::after { content: '📌'; position: absolute; right: 14px; top: -10px; font-size: 14px; }
