/* AutoDeal — palette rose harmonisée sur toutes les pages publiques.
   Référence unique : rose vif du bouton WhatsApp (#FF087C).
   Préserver les boutons secondaires (ghost/outline), les icônes et les actions neutres. */

:root,
html[data-theme="light"],
html[data-theme="dark"],
html[data-theme="night"] {
  --pink: #ff087c !important;
  --pink-2: #ff087c !important;
  --ad-pink: #ff087c !important;
  --ad-primary: #ff087c !important;
  --accent-pink: #ff087c !important;
  --ad-action-pink: #ff087c;
  --ad-action-pink-hover: #e70070;
}

/* Les vrais boutons d'action, quel que soit le thème ou le composant. */
html body :is(a, button, input[type="button"], input[type="submit"]).btn:not(.ghost):not(.ghost-on-dark):not(.outline):not(.secondary):not(.btn-outline),
html body :is(a, button).offer-btn,
html body :is(a, button).air-search-btn,
html body :is(a, button).hero-search-btn,
html body :is(a, button).ad-parts-cta,
html body :is(a, button).ad-showrooms-hero-cta,
html body :is(a, button).ad-floating-favorite,
html body :is(a, button).ad-primary-btn,
html body :is(a, button).sd-submit,
html body button[type="submit"]:not(.ghost):not(.outline):not(.secondary):not(.icon-btn):not(.menu-btn):not(.sd-outline-btn):not(.sd-mini-btn) {
  background: var(--ad-action-pink) !important;
  background-color: var(--ad-action-pink) !important;
  background-image: none !important;
  border-color: var(--ad-action-pink) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Overrides pour les anciennes règles de contact à forte spécificité. */
html body .vd-seller-card .vd-seller-actions :is(a.btn[data-contact="phone"], a.btn.vd-seller-map),
html body #showroomDetailMain .showroom-profile-text .profile-actions :is(a.btn[data-act="phone"], a.btn[data-act="route"], a.btn[data-act="whatsapp"]),
html body :is(a.btn[data-act="phone"], a.btn[data-act="route"], a.btn[data-contact="phone"], a.btn[data-contact="whatsapp"]) {
  background: var(--ad-action-pink) !important;
  background-image: none !important;
  border-color: var(--ad-action-pink) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Survol identique pour toutes les actions roses. */
html body :is(a, button, input[type="button"], input[type="submit"]).btn:not(.ghost):not(.ghost-on-dark):not(.outline):not(.secondary):not(.btn-outline):hover,
html body :is(a, button).offer-btn:hover,
html body :is(a, button).air-search-btn:hover,
html body :is(a, button).hero-search-btn:hover,
html body :is(a, button).ad-parts-cta:hover,
html body :is(a, button).ad-showrooms-hero-cta:hover,
html body :is(a, button).ad-floating-favorite:hover,
html body :is(a, button).ad-primary-btn:hover,
html body :is(a, button).sd-submit:hover,
html body button[type="submit"]:not(.ghost):not(.outline):not(.secondary):not(.icon-btn):not(.menu-btn):not(.sd-outline-btn):not(.sd-mini-btn):hover,
html body .vd-seller-card .vd-seller-actions :is(a.btn[data-contact="phone"], a.btn.vd-seller-map):hover,
html body #showroomDetailMain .showroom-profile-text .profile-actions :is(a.btn[data-act="phone"], a.btn[data-act="route"], a.btn[data-act="whatsapp"]):hover,
html body :is(a.btn[data-act="phone"], a.btn[data-act="route"], a.btn[data-contact="phone"], a.btn[data-contact="whatsapp"]):hover {
  background: var(--ad-action-pink-hover) !important;
  background-image: none !important;
  border-color: var(--ad-action-pink-hover) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Boutons secondaires : restent blancs/transparents, avec liseré rose. */
html body :is(a,button).btn.ghost,
html body :is(a,button).btn.outline,
html body :is(a,button).sd-outline-btn {
  border-color: var(--ad-action-pink) !important;
}

/* Ne jamais recolorer les boutons fermés/désactivés ou les icônes utilitaires. */
html body :is(button, a)[aria-disabled="true"],
html body :is(button, a).ad-sr-action-disabled {
  pointer-events: none;
}
