/* Bouton flottant WhatsApp « Demander un devis » et retour en haut (D322). Chargé seulement quand le bouton est affiché
   (sites studio, chat et vox avec un numéro configuré) : public.css reste sous son budget de poids. */
.flottant { position: fixed; z-index: 80; right: var(--e-4); bottom: var(--e-4); display: flex; flex-direction: column; align-items: flex-end; gap: var(--e-3); pointer-events: none; }
.flottant > * { pointer-events: auto; }
/* Solar-Chat actif sur le même site (D158) : son bouton et son panneau montent au-dessus du bouton WhatsApp, le retour en haut
   se place au-dessus du chat. Sélecteurs préfixés par body : chat-widget.css est chargé après cette feuille. */
body .sc-bouton { bottom: calc(var(--e-4) + 62px + var(--e-3)); }
body .sc-panneau { bottom: calc(var(--e-4) + 62px + var(--e-3) + 68px); max-height: min(580px, calc(100vh - 188px)); }
.flottant-chat .flottant-haut { margin: 0 4px calc(56px + var(--e-3)) 0; }
.flottant-wa { display: flex; align-items: center; gap: var(--e-3); color: var(--blanc); text-decoration: none; }
.flottant-pastille { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #3fd16b; color: var(--nuit-950); box-shadow: var(--ombre-forte); transition: transform .2s ease; }
.flottant-bulle { display: flex; flex-direction: column; justify-content: center; gap: .3rem; min-height: 62px; padding: .6rem 1.6rem .65rem 1.35rem; border-radius: 999px; background: var(--nuit-950); border: 1px solid var(--nuit-600); box-shadow: var(--ombre-forte); transition: border-color .2s ease; }
.flottant-meta { display: flex; align-items: center; gap: .5rem; font: 600 .66rem/1 var(--police-texte); letter-spacing: .2em; text-transform: uppercase; color: var(--texte-inverse-doux); white-space: nowrap; }
.flottant-point { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #3fd16b; box-shadow: 0 0 0 3px rgba(63, 209, 107, .22); }
.flottant-titre { font: 700 1.06rem/1.15 var(--police-titre); color: var(--blanc); white-space: nowrap; }
.flottant-fleche { display: inline-block; margin-left: .4rem; transition: transform .2s ease; }
.flottant-wa:hover .flottant-pastille { transform: scale(1.06); }
.flottant-wa:hover .flottant-bulle, .flottant-haut:hover { border-color: var(--nuit-300); }
.flottant-wa:hover .flottant-fleche { transform: translateX(4px); }
.flottant-wa:focus-visible, .flottant-haut:focus-visible { outline: 2px solid #3fd16b; outline-offset: 4px; border-radius: 999px; }
.flottant-haut { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; background: var(--nuit-950); color: var(--blanc); border: 1px solid var(--nuit-600); box-shadow: var(--ombre-forte); cursor: pointer; transition: border-color .2s ease; }
.flottant-haut[hidden] { display: none; }
.flottant-haut .ico { transform: rotate(-90deg); }
@media (max-width: 479px) { .flottant { right: var(--e-3); bottom: var(--e-3); } body .sc-bouton { bottom: calc(var(--e-3) + 54px + var(--e-3)); } body .sc-panneau { bottom: calc(var(--e-3) + 54px + var(--e-3) + 68px); max-height: min(580px, calc(100vh - 176px)); } .flottant-pastille { width: 50px; height: 50px; } .flottant-bulle { min-height: 54px; padding: .5rem 1.2rem .55rem 1.05rem; } .flottant-titre { font-size: .97rem; } .flottant-meta { font-size: .6rem; letter-spacing: .16em; } .flottant-haut { width: var(--cible); height: var(--cible); } }
@media (max-width: 359px) { .flottant-meta { display: none; } }
@media (prefers-reduced-motion: reduce) { .flottant-pastille, .flottant-bulle, .flottant-fleche, .flottant-haut { transition: none; } }
@media print { .flottant { display: none; } }
