/* My89 EventCard V1 — bloc evenement commun aux pages de resultats */
.m89-event-card{
  display:flex;
  align-items:flex-start;
  gap:1rem;
  min-height:178px;
  margin:0 0 1rem;
  padding:.8rem;
  overflow:hidden;
  background:#fff;
  border:1px solid #d8ddd8;
  border-radius:14px;
}
.m89-event-card.-aprevoir{background:#FAFAD2}
.m89-event-card-body{
  order:2;
  flex:1 1 auto;
  min-width:0;
  padding:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.m89-event-card-badges{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.35rem;
  margin:0 0 .42rem;
}
.m89-event-card-badge{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:.18rem .48rem;
  border-radius:999px;
  font-size:.72rem;
  line-height:1;
  font-weight:700;
}
.m89-event-card-badge.-topagenda{
  border:1px solid #b9d8aa;
  background:#eff8e9;
  color:#2f770e;
}
.m89-event-card-badge.-aprevoir{
  border:1px solid #ddc75d;
  background:#fff7c9;
  color:#665500;
}
.m89-event-card-pretitre{
  margin:0 0 .3rem;
  color:#339900;
  font-size:.96rem;
  line-height:1.25;
  font-weight:700;
}
.m89-event-card h3{
  margin:0 0 .5rem;
  color:#222;
  font-size:1.22rem;
  line-height:1.2;
  font-weight:700;
  overflow-wrap:anywhere;
}
.m89-event-card h3 a{color:inherit;text-decoration:none}
.m89-event-card h3 a:hover{text-decoration:underline}
.m89-event-card-date{
  margin:0 0 .32rem;
  color:#339900;
  font-size:1rem;
  line-height:1.35;
  font-weight:700;
}
.m89-event-card-place{
  margin:0 0 .3rem;
  color:#5b625e;
  font-size:.97rem;
  line-height:1.38;
}
.m89-event-card-access{
  margin:0 0 .62rem;
  color:#777f7a;
  font-size:.86rem;
  line-height:1.35;
  font-weight:400;
}
.m89-event-card-detail{
  margin-top:auto;
  color:#222;
  font-size:.96rem;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:4px;
}

/* Desktop : vignette a gauche, largeur identique. */
.m89-event-card-visual{
  order:1;
  flex:0 0 160px;
  width:160px;
  display:block;
  align-self:flex-start;
  margin:0;
  overflow:hidden;
  border-radius:10px;
  background:#fff;
  text-decoration:none;
}
.m89-event-card-visual img{
  display:block;
  width:160px;
  max-width:160px;
  height:auto;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
}

/* Smartphone : texte a gauche, image a droite. */
@media(max-width:650px){
  .m89-event-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) 34%;
    gap:0;
    min-height:170px;
    padding:0;
    border-radius:13px;
    margin-bottom:.7rem;
  }
  .m89-event-card.-no-image{grid-template-columns:minmax(0,1fr)}
  .m89-event-card-body{order:0;grid-column:1;padding:.85rem .72rem .85rem .9rem}
  .m89-event-card.-no-image .m89-event-card-body{grid-column:1/-1}
  .m89-event-card-badges{gap:.28rem;margin-bottom:.36rem}
  .m89-event-card-badge{font-size:.68rem}
  .m89-event-card-pretitre{font-size:.9rem;margin-bottom:.26rem}
  .m89-event-card h3{font-size:1.06rem;line-height:1.2;margin-bottom:.45rem;font-weight:700}
  .m89-event-card-date{font-size:.91rem;line-height:1.3;margin-bottom:.3rem}
  .m89-event-card-place{font-size:.88rem;line-height:1.34;margin-bottom:.24rem}
  .m89-event-card-access{font-size:.78rem;line-height:1.3;margin-bottom:.52rem}
  .m89-event-card-detail{font-size:.88rem}
  .m89-event-card-visual{
    order:0;
    grid-column:2;
    width:auto;
    min-width:0;
    margin:.48rem .48rem .48rem 0;
    border-radius:9px;
  }
  .m89-event-card-visual img{
    width:100%;
    max-width:100%;
    height:auto;
    max-height:235px;
    border-radius:9px;
  }
}
@media(max-width:390px){
  .m89-event-card{grid-template-columns:minmax(0,1fr) 33%;min-height:162px}
  .m89-event-card.-no-image{grid-template-columns:minmax(0,1fr)}
  .m89-event-card-body{padding:.78rem .6rem .78rem .78rem}
  .m89-event-card h3{font-size:1rem}
  .m89-event-card-date{font-size:.86rem}
  .m89-event-card-place{font-size:.84rem}
  .m89-event-card-visual{margin:.42rem .42rem .42rem 0;border-radius:8px}
  .m89-event-card-visual img{border-radius:8px}
}
