/* Logos des fournisseurs authentiques. Compatibilité pour le bundle Horizon
 * déjà en production (anciens pictogrammes), sans remplacer le bundle et
 * sans modifier l'authentification. Le prochain build utilise les vrais PNG.
 * Google: https://developers.google.com/identity/branding-guidelines
 * Apple: https://developer.apple.com/design/resources/
 */
.hz-web .hz-wsite-google{
  border-color:#747775!important;background:#fff!important;color:#1f1f1f!important;
}
.hz-web .hz-wsite-google svg{
  display:block!important;width:22px!important;height:22px!important;flex:none;
  background:#fff url("/__projects/horizon/brand/google-g-official.png") center / contain no-repeat!important;
}
.hz-web .hz-wsite-google svg path{opacity:0!important}
.hz-web .hz-wsite-google img{
  width:22px;height:22px;object-fit:contain;display:block;flex:none
}
.hz-web .hz-wsite-apple{
  background:#000 url("/__projects/horizon/brand/apple-continue-fr-official.png")
    center / min(100%,320px) auto no-repeat!important;
  min-height:54px!important;padding:0!important;border:0!important;
  border-radius:12px!important;overflow:hidden!important;
}
.hz-web .hz-wsite-apple>span,.hz-web .hz-wsite-apple>svg{opacity:0!important}
.hz-web .hz-wsite-apple:has(>img){background-image:none!important}
.hz-web .hz-wsite-apple>img{
  width:min(100%,320px)!important;height:auto!important;max-height:54px!important;
  object-fit:contain!important;display:block!important;margin:0 auto!important
}
/* Ancien bundle /espace : les deux logos officiels restent visibles sans
 * altérer le bouton ni le flux OAuth. Complété par restore-social-logos.js. */
button.hz-legacy-google-brand {
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:center!important;gap:12px!important;
  min-height:54px!important;background:#fff!important;border:1px solid #747775!important;
  color:#1f1f1f!important;border-radius:12px!important;
}
button.hz-legacy-google-brand::before {
  content:"";display:block;flex:none;width:22px;height:22px;
  background:url("/__projects/horizon/brand/google-g-official.png") center/contain no-repeat;
}
button.hz-legacy-apple-brand {
  display:flex!important;align-items:center!important;justify-content:center!important;
  height:54px!important;min-height:54px!important;padding:0!important;overflow:hidden!important;
  border:0!important;border-radius:12px!important;
  background:#000 url("/__projects/horizon/brand/apple-continue-fr-official.png")
    center/ min(100%,320px) 54px no-repeat!important;
}
button.hz-legacy-apple-brand>* {opacity:0!important}
/* Le consentement bloque déjà le clic : conserver néanmoins les vraies couleurs. */
button.hz-legacy-google-brand:disabled,button.hz-legacy-apple-brand:disabled {opacity:1!important}
