/* ==== Webforce 19/11/2026 : bouton « Prendre rendez-vous » ==== */
:root { --wf-rdv: #d9480f; --wf-rdv-hover: #b93a0a; }
a.wf-rdv, a.et_pb_button.wf-rdv, #top-menu li.wf-rdv-menu > a, #mobile_menu li.wf-rdv-menu > a {
  background-color: var(--wf-rdv) !important;
  color: #fff !important;
  border-radius: 30px;
  font-family: 'Patua One', display;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
a.wf-rdv:hover, a.et_pb_button.wf-rdv:hover, #top-menu li.wf-rdv-menu > a:hover, #mobile_menu li.wf-rdv-menu > a:hover {
  background-color: var(--wf-rdv-hover) !important;
  opacity: 1 !important;
}
a.wf-rdv:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--wf-rdv); }
#top-menu li.wf-rdv-menu { padding-left: 14px; }
.et-fixed-header #top-menu li.wf-rdv-menu > a { color: #fff !important; }

/* bouton du slider */
a.wf-rdv-hero { display: inline-block; padding: 16px 34px; font-size: 24px; line-height: 1.2; white-space: nowrap; }

/* bouton flottant, toujours visible */
a.wf-rdv-flottant {
  position: fixed; z-index: 9990; right: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; font-size: 19px; line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
a.wf-rdv-flottant:hover { transform: translateY(-2px); }
@media (max-width: 767px) {
  a.wf-rdv-flottant { left: 16px; right: 16px; bottom: 16px; justify-content: center; }
  #main-footer { padding-bottom: 80px; }
}

/* pulsation douce pour attirer l'œil */
@keyframes wf-rdv-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217,72,15,.55), 0 8px 24px rgba(0,0,0,.22); }
  70%  { box-shadow: 0 0 0 16px rgba(217,72,15,0), 0 8px 24px rgba(0,0,0,.22); }
  100% { box-shadow: 0 0 0 0 rgba(217,72,15,0), 0 8px 24px rgba(0,0,0,.22); }
}
a.wf-rdv-flottant, a.wf-rdv-hero, a.et_pb_button.wf-rdv { animation: wf-rdv-pulse 2.2s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  a.wf-rdv-flottant, a.wf-rdv-hero, a.et_pb_button.wf-rdv { animation: none; }
}

/* en-tête : plus large pour loger les 2 boutons sans chevaucher le logo */
@media (min-width: 1421px) {
  #main-header .container { width: 92% !important; max-width: 1500px !important; }
  #top-menu li { padding-right: 18px !important; }
  #top-menu li.class-btn > a { padding: 14px 20px !important; font-size: 17px !important; }
}

/* menu mobile : espace entre les 2 boutons */
#mobile_menu li.class-btn { margin-top: 8px; }

/* petite main-curseur sur le coin des boutons RDV : « ceci se clique » */
a.wf-rdv-hero, body #page-container .et_pb_section a.et_pb_button.wf-rdv { position: relative; overflow: visible; }
a.wf-rdv-hero::after, a.wf-rdv-flottant::after, body #page-container .et_pb_section a.et_pb_button.wf-rdv::after {
  content: "" !important; display: block !important; opacity: 1 !important;
  position: absolute !important; left: auto !important; top: auto !important; right: -6px !important; bottom: -16px !important;
  width: 34px !important; height: 34px !important; margin: 0 !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff' stroke='%231f2937' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 11V9.5a2 2 0 0 0-4 0V9a2 2 0 0 0-4 0V4a2 2 0 0 0-4 0v10l-1.6-1.6a2 2 0 0 0-2.8 2.8l3.6 3.6C6.7 20.3 8.4 22 11.5 22H14a8 8 0 0 0 8-8v-3a2 2 0 0 0-4 0z'/%3E%3Cpath d='M10 9v3M14 9.5V12M18 11v1.5' fill='none'/%3E%3C/svg%3E") center / contain no-repeat !important;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
  pointer-events: none;
  animation: wf-rdv-tap 2.2s ease-in-out infinite;
}
@keyframes wf-rdv-tap {
  0%, 55%, 100% { transform: translate(0, 0) scale(1); }
  65%           { transform: translate(-3px, -3px) scale(.86); }
  75%           { transform: translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  a.wf-rdv-hero::after, a.wf-rdv-flottant::after, body #page-container .et_pb_section a.et_pb_button.wf-rdv::after { animation: none; }
}

/* bouton flottant masqué quand un autre bouton RDV est déjà à l'écran */
a.wf-rdv-flottant { transition: opacity .3s ease, transform .3s ease, visibility .3s, background-color .2s ease; }
a.wf-rdv-flottant.wf-rdv-cache { opacity: 0; visibility: hidden; transform: translateY(20px); pointer-events: none; }

/* mobile : le bouton de « Mes services » ferait doublon avec celui du slider, juste au-dessus */
@media (max-width: 767px) { .home .et_pb_button_0_wrapper { display: none; } }

/* mobile : réserve la place du bouton flottant en bas de page */
@media (max-width: 767px) { body { padding-bottom: 84px; } }
