/* Bandes de logos qui défilent (02/12/2026, logos_site.py).
   Gabriel : « des couleurs, des logos… que les logos défilent, partout (sans rentrer trop dans l'abus) ». */
.defile-bloc { margin: 28px 0 8px; min-width: 0; contain: inline-size; }
.defile-section { padding: 40px 0 44px; }
.defile-section .defile-bloc { margin: 0; }
.defile-titre { margin: 0 0 16px; text-align: center; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #525880); }
.defile-legende { margin: 12px auto 0; max-width: 780px; text-align: center; font-size: .82rem; line-height: 1.55; color: var(--muted, #525880); }
.defile { overflow: hidden; padding: 4px 0; }
.defile-piste { display: flex; gap: 12px; width: max-content; margin: 0; padding: 0; list-style: none; animation: defile-logos 55s linear infinite; }
.defile.inverse .defile-piste { animation-direction: reverse; }
.defile:hover .defile-piste, .defile:focus-within .defile-piste { animation-play-state: paused; }
@keyframes defile-logos { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.defile-carte { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 76px; min-width: 150px; padding: 10px 20px; background: #fff; border: 1px solid rgba(10, 15, 44, .1); border-radius: 14px; }
.defile-carte img { display: block; max-height: 36px; max-width: 150px; width: auto; height: auto; }
.defile-carte span { font-weight: 800; font-size: 1rem; color: #0A0F2C; white-space: nowrap; }
.defile-carte.sombre { background: #0A0F2C; border-color: #0A0F2C; }
/* Logo presque carré (AGEFICE) : plus haut pour rester lisible */
.defile-carte img[src$="agefice.jpg"] { max-height: 56px; }
/* Logos clients : sans carte, comme sur l'accueil */
.defile-nu .defile-piste { gap: 56px; padding-right: 56px; }
.defile-nu .defile-carte { height: 52px; min-width: 0; padding: 0; background: none; border: 0; }
.defile-nu .defile-carte img { max-height: 40px; max-width: 160px; }
@media (max-width: 600px) {
  .defile-carte { height: 64px; min-width: 120px; padding: 8px 14px; }
  .defile-carte img { max-height: 28px; max-width: 120px; }
  .defile-carte img[src$="agefice.jpg"] { max-height: 46px; }
  .defile-nu .defile-piste { gap: 40px; }
  .defile-nu .defile-carte img { max-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .defile-piste { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .defile-piste [aria-hidden="true"] { display: none; }
}
