/* Raccourcis téléphoniques mobiles : le devis reste dans la navigation. */
.mobile-contact-bar { display:none!important; }
.mobile-contact-floating { display:none; }
@media(max-width:800px) {
  /* L’ancienne barre n’occupe plus le bas de l’écran. */
  body { padding-bottom:env(safe-area-inset-bottom,0px); }
  .mobile-contact-floating {
    position:fixed;
    left:max(14px,env(safe-area-inset-left,0px));
    bottom:calc(18px + env(safe-area-inset-bottom,0px));
    z-index:38;
    display:flex;
    flex-direction:column;
    gap:10px;
    width:52px;
    pointer-events:none;
  }
  .mobile-contact-floating > a {
    display:flex;
    align-items:center;
    justify-content:center;
    width:52px;
    min-height:52px;
    border:0;
    border-radius:50%;
    color:#fff;
    background:var(--control-reflection),linear-gradient(145deg,#6440a4,#3f236c);
    box-shadow:0 5px 12px rgba(25,13,45,.2),0 14px 30px rgba(25,13,45,.24);
    text-decoration:none;
    pointer-events:auto;
    transition:transform .25s ease,box-shadow .25s ease;
  }
  .mobile-contact-floating > .floating-contact-whatsapp {
    background:var(--control-reflection),linear-gradient(145deg,#14865b,#086140);
  }
  .mobile-contact-floating svg { display:block; width:26px; height:26px; flex-shrink:0; }
  .mobile-contact-floating > a:focus-visible { outline:3px solid var(--focus-color); outline-offset:4px; }
  .mobile-contact-floating > a:active { transform:scale(.94); box-shadow:0 4px 10px rgba(25,13,45,.22); }
  .js .mobile-contact-floating[data-mobile-contact-ready="true"] {
    opacity:0;
    transform:translate3d(-12px,12px,0);
    visibility:hidden;
    transition:opacity .22s ease,transform .3s cubic-bezier(.22,1,.36,1),visibility 0s linear .3s;
  }
  .js .mobile-contact-floating[data-mobile-contact-ready="true"][data-mobile-contact-visible="true"] {
    opacity:1;
    transform:translate3d(0,0,0);
    visibility:visible;
    transition:opacity .22s ease,transform .3s cubic-bezier(.22,1,.36,1),visibility 0s;
  }
  body.menu-open .mobile-contact-floating,
  body.assistant-open .mobile-contact-floating,
  body:has(input:focus,textarea:focus,select:focus,[contenteditable="true"]:focus) .mobile-contact-floating {
    opacity:0;
    visibility:hidden;
    pointer-events:none;
  }
}
@media(prefers-reduced-motion:reduce) {
  .mobile-contact-floating,.mobile-contact-floating > a,
  .js .mobile-contact-floating[data-mobile-contact-ready="true"] { transition:none; transform:none; }
}
@media print { .mobile-contact-floating { display:none!important; } }
