/* ===================== صفحة الجماعات: شبكة أسماء الجماعات ===================== */
.jm-grille{
  list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;
}
.jm-tuile{
  display:flex;align-items:center;gap:14px;height:100%;padding:14px 16px;background:#fff;color:inherit;
  border:1px solid var(--bordure);border-inline-start:4px solid var(--bleu);border-radius:var(--rayon-sm);
  box-shadow:0 2px 10px rgba(10,42,87,.05);text-decoration:none;
  transition:transform .25s,box-shadow .25s,border-color .25s;
}
a.jm-tuile:hover,a.jm-tuile:focus-visible{
  transform:translateY(-3px);box-shadow:var(--ombre-lg);border-inline-start-color:var(--orange);
}
.jm-num{
  flex-shrink:0;width:34px;height:34px;border-radius:10px;background:var(--bleu-clair);color:var(--bleu-fonce);
  display:grid;place-items:center;font-size:.85rem;font-weight:800;font-variant-numeric:tabular-nums;
  transition:background .25s,color .25s;
}
a.jm-tuile:hover .jm-num{background:var(--orange);color:#fff}
.jm-corps{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.jm-corps strong{color:var(--bleu-fonce);font-size:1rem;line-height:1.5}
.jm-corps small{color:var(--orange);font-weight:700;font-size:.74rem}
.jm-desc{color:var(--gris);font-size:.82rem;line-height:1.7}
.jm-fleche{color:var(--bleu);font-weight:800;opacity:0;transform:translateX(6px);transition:opacity .25s,transform .25s}
a.jm-tuile:hover .jm-fleche,a.jm-tuile:focus-visible .jm-fleche{opacity:1;transform:none}
.jm-note{text-align:center;color:var(--gris);font-size:.9rem;margin-top:26px}
.jm-note a{color:var(--bleu);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.jm-note a:hover{color:var(--orange)}

@media (max-width:560px){
  .jm-grille{grid-template-columns:1fr 1fr;gap:10px}
  .jm-tuile{padding:12px;gap:10px}
  .jm-num{width:30px;height:30px}
  .jm-fleche{display:none}
}
@media (max-width:360px){.jm-grille{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.jm-tuile,.jm-num,.jm-fleche{transition:none}}
