/* ---------- Communauté ---------- */
.finder { padding: 10px; margin-bottom: 40px; }
.finder-input { display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 20px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color 0.2s; }
.finder-input:focus-within { border-color: var(--text); }
.finder-input i { font-size: 22px; color: var(--accent-text); }
.finder-input .muted { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.finder-input input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.finder-input input::placeholder { color: var(--faint); }
.instant { display: grid; gap: 14px; padding: 18px 10px 8px; justify-items: start; }
.instant-hits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.hit { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-sm); transition: background-color 0.2s; }
.hit:hover { background: var(--surface-2); }
.hit .cover { width: 64px; height: 48px; border-radius: 8px; }
.hit .cover::after { display: none; }
.hit b { display: block; }
.hit small { color: var(--muted); font-size: 13px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.comm { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.comm-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.comm .chips { margin-bottom: 20px; }
.req-list { display: grid; gap: 10px; }
.req { display: grid; grid-template-columns: 64px minmax(0, 1fr) 96px; gap: 18px; align-items: start; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s; }
.req:hover { border-color: var(--line-2); }
.metoo { display: grid; justify-items: center; align-content: center; gap: 2px; width: 64px; height: 68px; border-radius: var(--r-sm); border: 1px solid var(--line-2); font-size: 14px; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.metoo i { font-size: 20px; }
.metoo:hover { border-color: var(--text); }
.metoo.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.metoo.big { width: 92px; height: 104px; }
.metoo.big i { font-size: 28px; }
.metoo.big .mono { font-size: 20px; }
.metoo small { font-size: 11px; opacity: 0.7; }
.req-title { display: block; font-family: var(--display); font-size: 22px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; }
.req-title:hover { color: var(--accent-text); }
.req-details { color: var(--muted); font-size: 15px; margin-top: 6px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.req-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; font-size: 13px; }
.req-side { display: grid; justify-items: center; align-content: center; gap: 2px; height: 100%; min-height: 68px; border-radius: var(--r-sm); background: var(--bg-2); text-align: center; }
.req-side b { font-size: 24px; font-weight: 500; }
.req-side small { font-size: 12px; color: var(--muted); }
.req-avs { display: flex; margin-bottom: 4px; }
.req-avs span { width: 22px; height: 22px; border-radius: 6px; margin-left: -6px; display: grid; place-items: center; color: #fff; font: 700 11px var(--display); box-shadow: 0 0 0 2px var(--bg-2); }
.req-avs span:first-child { margin-left: 0; }
.comm-side { display: grid; gap: 14px; position: sticky; top: calc(var(--nav-h) + 32px); }
.comm-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px; gap: 8px; text-align: center; }
.comm-stats strong { display: block; font-size: 30px; font-weight: 500; }
.comm-stats span { font-size: 12px; color: var(--muted); }
.comm-helpers, .comm-how { padding: 20px; display: grid; gap: 12px; }
.helper { display: grid; grid-template-columns: 16px 36px 1fr; gap: 10px; align-items: center; }
.helper .av, .answer .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 600; font-size: 13px; }
.helper small { display: block; font-size: 12px; color: var(--muted); }
.comm-how ol { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.comm-how b { color: var(--text); font-weight: 600; }
.ask { padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; margin-bottom: 28px; border-color: var(--accent-text); }
.ask-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.answers { display: grid; gap: 14px; }
.answer { position: relative; padding: 22px; display: grid; gap: 14px; }
.answer.accepted { border-color: var(--accent-text); }
.answer header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.answer footer { display: flex; gap: 8px; flex-wrap: wrap; }
.accepted-tag { justify-self: start; }
.answer-project { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 10px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); transition: border-color 0.2s; }
.answer-project:hover { border-color: var(--text); }
.answer-project .cover { width: 120px; aspect-ratio: 4 / 3; border-radius: 10px; }
.answer-project b { display: block; font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.answer-project small { display: block; color: var(--muted); margin: 2px 0 6px; }
.answer-project > i { font-size: 22px; margin-right: 8px; }
.btn.on-line { border-color: var(--accent-text); color: var(--accent-text); }
.reply { padding: 22px; display: grid; gap: 16px; }
.reply h3 { font-size: 22px; }
.picker { display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.pick { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; text-align: left; transition: background-color 0.2s; }
.pick:hover { background: var(--surface-2); }
.pick.on { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent-text); }
.pick .cover { width: 44px; height: 34px; border-radius: 7px; }
.pick .cover::after { display: none; }
.pick b { display: block; font-size: 14px; }
.pick small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }

/* bloc communauté de l'accueil */
.home-comm { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.home-comm .finder { margin: 28px 0 16px; }
.home-comm .req { grid-template-columns: 56px minmax(0, 1fr) 84px; padding: 14px; }
.home-comm .metoo { width: 56px; height: 60px; }
.home-comm .req-title { font-size: 19px; }
.home-comm .req-details { display: none; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; }
.examples button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line-2); font-size: 14px; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.examples button:hover { color: var(--text); border-color: var(--text); }

@media (max-width: 1080px) {
  .comm, .home-comm { grid-template-columns: 1fr; }
  .comm-side { position: static; }
  .instant-hits { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .req { grid-template-columns: 52px minmax(0, 1fr); }
  .req-side { grid-column: 2; justify-items: start; padding: 8px 12px; min-height: 0; grid-auto-flow: column; align-items: center; gap: 8px; }
  .metoo { width: 52px; height: 60px; }
  .finder-input .muted { display: none; }
  .finder-input input { font-size: 18px; }
  .ask-row { grid-template-columns: 1fr; }
  .req-head { grid-template-columns: 1fr; }
  .answer-project { grid-template-columns: 80px 1fr; }
  .answer-project .cover { width: 80px; }
  .answer-project > i { display: none; }
}

/* les colonnes de grille ne doivent pas s'élargir à cause des puces qui défilent */
.comm > *, .home-comm > * { min-width: 0; }

@media (max-width: 720px) {
  .home-comm .req { grid-template-columns: 52px minmax(0, 1fr); }
  .home-comm .metoo { width: 52px; }
}
