/* Visuel publicitaire client dans une bannière de rubrique : toujours entier, sans voile ni texte par-dessus.
 * La hauteur de la bannière ne change pas ; l'espace libre autour du visuel reste en gris très clair. */
.b4y-directory-hero .b4y-hero-rotator__slide.b4y-hero-rotator__slide--client { object-fit: contain; object-position: 50% 50%; background: #f3f4f6; filter: none; }
.b4y-directory-hero--ads .b4y-hero-rotator__slide--client.is-active { z-index: 1; }
/* Commandes lisibles sur le fond clair et sur le visuel. */
.b4y-directory-hero--ads.is-ad-slide .b4y-hero-rotator__controls { padding-right: 12px; border-radius: 999px; background: rgba(12, 16, 26, .72); }
/* Points du défilement : taille normale (ils étaient écrasés à 4 px, le dernier hors de l'écran). */
.b4y-directory-hero--ads .b4y-hero-rotator__controls { width: auto; min-width: max-content; }
.b4y-directory-hero--ads .b4y-hero-rotator__controls .b4y-hero-rotator__dot { flex: 0 0 auto; min-width: 14px; width: 14px; }
.b4y-directory-hero--ads .b4y-hero-rotator__controls .b4y-hero-rotator__toggle { flex: 0 0 auto; width: 44px; }

/* Visuel client en première position (rubrique Garages) : bannière sur toute la largeur de l'écran.
 * Zones à ne jamais couper sur le visuel Auto Plus (en part de sa hauteur) : logo à partir de 11,7 %, adresse jusqu'à 88,7 %.
 *  - jusqu'à 900 px : visuel entier (proportions d'origine, 2:1) ;
 *  - de 901 à 1600 px : format 5:2, proche de l'ancienne bannière, recadrage haut et bas de 10 % (zones ci-dessus préservées) ;
 *  - au-delà de 1600 px : aucun recadrage ne tient à hauteur raisonnable -> présentation précédente (visuel entier, hauteur habituelle). */
@media (max-width: 1600px) {
  html body .b4y-directory-hero.b4y-directory-hero--client-full { display: block; width: 100%; max-width: none !important; height: auto !important; min-height: 0 !important; padding: 0 !important; margin-inline: 0; aspect-ratio: var(--b4y-client-ratio, 2 / 1); }
  /* Le titre (affiché avec la photo habituelle) est superposé : il ne change pas la hauteur d'une vue à l'autre. */
  html body .b4y-directory-hero--client-full:not(.is-ad-slide) > .b4y-home-container { position: absolute; inset: 0; margin-inline: auto; display: flex; align-items: center; padding-block: 0 !important; }
}
@media (min-width: 901px) and (max-width: 1600px) {
  html body .b4y-directory-hero.b4y-directory-hero--client-full { aspect-ratio: 5 / 2; }
  html body .b4y-directory-hero--client-full .b4y-hero-rotator__slide.b4y-hero-rotator__slide--client { object-fit: cover !important; object-position: 50% 50% !important; } /* l’emporte sur la règle « jamais recadrer » (b4y-photo-fiches) pour cette seule bannière, où la zone utile est préservée */
}
@media (max-width: 600px) {
  html body .b4y-directory-hero--client-full:not(.is-ad-slide) > .b4y-home-container { align-items: flex-start; padding-top: 10px !important; }
  html body .b4y-directory-hero--client-full h1 { margin: 0; font-size: 19px !important; line-height: 1.2 !important; max-width: 270px; }
  html body .b4y-directory-hero--client-full .b4y-hero-text-panel { margin: 0; padding: 8px 12px; }
}
