/* MOTOR FEST — Fiches pilotes aléatoires sur l'accueil (08/10/2026)
   Portée limitée à la section pilotes, sans modifier les autres pages. */
.mf-home-pilots .mf-home-pilots-grid{align-items:stretch;}
.mf-home-pilots .mf-rotating-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
  opacity:1;
  transition:opacity .28s ease,box-shadow .28s ease,border-color .28s ease;
}
.mf-home-pilots .mf-rotating-card.mf-card-changing{opacity:.12;}
.mf-home-pilots .mf-rotating-card img{
  display:block;
  aspect-ratio:4/5;
  width:100%;
  height:auto;
  object-fit:cover;
}
.mf-home-pilots .mf-rotating-card .card-body{
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-height:162px;
  gap:7px;
  text-align:center;
  padding:16px 15px 20px;
}
.mf-home-pilots .mf-home-pilot-category{
  display:inline-block;
  padding:4px 10px;
  border:1px solid var(--pilot-accent,#2ee357);
  border-radius:99px;
  color:var(--pilot-accent,#2ee357);
  font-size:.65rem;
  font-weight:900;
  letter-spacing:.1em;
  line-height:1.25;
}
.mf-home-pilots [data-type="grip"]{--pilot-accent:#22d3ee;}
.mf-home-pilots [data-type="truc-de-filles"]{--pilot-accent:#ff79b9;}
.mf-home-pilots .mf-rotating-card h3{
  margin:0;
  font-size:clamp(1.55rem,2.3vw,2rem);
  line-height:1.12;
  overflow-wrap:anywhere;
}
.mf-home-pilots .mf-rotating-card p{
  margin:0;
  line-height:1.5;
  max-width:36ch;
  text-wrap:pretty;
}
.mf-home-pilots .mf-home-pilots-caption{
  margin:16px auto 0;
  text-align:center;
  color:var(--muted,#bac4cc);
  font-size:.78rem;
}
.mf-home-pilots .mf-home-pilots-actions{justify-content:center;}
.mf-home-pilots .mf-home-pilots-more[hidden],
.mf-home-pilots .mf-home-pilots-caption[hidden]{display:none!important;}
@media (max-width:680px){
  .mf-home-pilots .mf-rotating-card .card-body{min-height:144px;}
  .mf-home-pilots .mf-rotating-card h3{font-size:1.9rem;}
}
@media (prefers-reduced-motion:reduce){
  .mf-home-pilots .mf-rotating-card{transition:none!important;}
  .mf-home-pilots .mf-rotating-card.mf-card-changing{opacity:1;}
}
