/* Prochains événements d’une rubrique ([roq_evenements]) : affiche, pavé de date, rubrique, titre, date, lieu.
   Toute la carte est cliquable (le lien du titre s’étend sur elle). Hub Vie associative, 27/09/2026. */
.rq-evts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.rq-evts__item { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--blanc); border: 1px solid var(--bordure); box-shadow: var(--ombre-fil); transition: transform 150ms ease; }
.rq-evts__item:hover { transform: translateY(-3px); }
.rq-evts__item:hover .rq-evts__titre a { color: var(--rouge); }
.rq-evts__item:has(a:focus-visible) { outline: 3px solid var(--rouge); outline-offset: 3px; }
.rq-evts__titre a:focus-visible { outline: none; }
.rq-evts__visuel { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brume); flex-shrink: 0; }
.rq-evts__visuel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.rq-evts__sans-visuel { position: absolute; inset: 0; background: var(--degrade-rouge); }
.rq-evts__date { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; padding: 8px 10px; background: var(--degrade-rouge-vertical, var(--degrade-rouge)); color: var(--blanc); font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 30px; }
.rq-evts__date small { font-family: var(--font-alt); font-size: 12px; line-height: 16px; letter-spacing: 1px; text-transform: uppercase; }
.rq-evts__texte { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 20px 20px; }
.rq-evts__cat { margin: 0; font-family: var(--font-alt); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--rouge); }
.rq-evts__titre { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 23px; color: var(--encre); overflow-wrap: anywhere; }
.rq-evts__titre a { color: inherit; text-decoration: none; transition: color 150ms; }
.rq-evts__titre a::after { content: ""; position: absolute; inset: 0; }
.rq-evts__quand { margin: 4px 0 0; font-family: var(--font-alt); font-weight: 700; font-size: 15px; line-height: 21px; color: var(--encre); }
.rq-evts__lieu { margin: 0; font-size: 15px; line-height: 21px; color: var(--bleu-nuit); }
.rq-evts__vide { margin: 0; font-size: 18px; line-height: 26px; color: var(--bleu-nuit); }
.rq-evts__vide a { font-weight: 700; color: var(--encre); }

/* Palier tablette (1455 px) : deux colonnes de cartes couchées, l’affiche à gauche. */
@media (max-width: 1455px) {
  .rq-evts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .rq-evts__item { flex-direction: row; }
  .rq-evts__visuel { width: 170px; aspect-ratio: auto; min-height: 170px; }
}
@media (max-width: 767px) {
  .rq-evts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rq-evts__visuel { width: 112px; min-height: 150px; }
  .rq-evts__date { min-width: 58px; padding: 6px 8px; font-size: 24px; line-height: 24px; }
  .rq-evts__date small { font-size: 11px; line-height: 14px; }
  .rq-evts__texte { padding: 14px 16px 16px; gap: 4px; }
  .rq-evts__titre { font-size: 18px; line-height: 21px; }
  .rq-evts__quand, .rq-evts__lieu { font-size: 14px; line-height: 20px; }
}
/* Sous 375 px, l'affiche à gauche ne laissait que 150 px au titre, souvent en capitales (IntraMuros) : « ARCHEOLOGIQ-UES ».
   L'affiche passe au-dessus du texte (audit du 02/10/2026). */
@media (max-width: 374px) {
  .rq-evts__item { flex-direction: column; }
  .rq-evts__visuel { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
}
