/* Visite guidée interactive (maquette envoyée sans rendez-vous). Activée par la clé "visite" de site.json.
   Fond assombri, élément commenté éclairé, bulle posée à côté avec une flèche ; tout arrive en fondu. */
.vg-launch { position: fixed; z-index: 70; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 6px; border: 0; border-radius: 999px; background: #fff; color: var(--navy); font: 600 14.5px/1 var(--text); box-shadow: 0 14px 34px -16px rgba(var(--ink-rgb), .55), 0 0 0 1px rgba(var(--ink-rgb), .08); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.vg-launch.vg-vis { opacity: 1; transform: none; pointer-events: auto; }
.vg-launch.vg-vis.vg-loin { opacity: 0; transform: translateY(10px); pointer-events: none; }
.vg-launch:hover { box-shadow: 0 18px 40px -16px rgba(var(--ink-rgb), .6), 0 0 0 1px rgba(var(--ink-rgb), .16); }
.vg-launch i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; }
.vg-launch i svg { width: 12px; height: 12px; fill: currentColor; margin-left: 2px; }
.vg-launch:focus-visible, .vg-bulle button:focus-visible, .vg-bulle a:focus-visible, .vg-bulle input:focus-visible { outline: 3px solid rgba(var(--cyan-rgb), .9); outline-offset: 3px; }

/* Fond assombri, avec une découpe par élément éclairé */
.vg-masque { position: fixed; inset: 0; z-index: 75; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.vg-masque.vg-vis { opacity: 1; }
.vg-ombre { fill: rgba(var(--ink-rgb), .6); }
.vg-anneaux { position: fixed; inset: 0; z-index: 76; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.vg-anneau { position: fixed; border-radius: 18px; box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), .95), 0 0 24px 4px rgba(var(--cyan-rgb), .35); }
.vg-on .vg-anneaux { opacity: 1; }

/* Bulle avec sa flèche */
.vg-bulle { position: fixed; z-index: 80; left: 0; top: 0; width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: visible; padding: 16px 18px 16px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.vg-bulle[hidden] { display: none; }
.vg-bulle.vg-vis { opacity: 1; transform: none; }
.vg-bulle.vg-large { width: min(390px, calc(100vw - 24px)); }
.vg-bulle[data-place="centre"] .vg-fleche, .vg-bulle[data-place="dedans"] .vg-fleche { display: none; }
.vg-fleche { position: absolute; width: 16px; height: 16px; background: #fff; transform: translate(-50%, -50%) rotate(45deg); border-radius: 3px; }
.vg-bulle[data-place="bas"] .vg-fleche { top: 0; }
.vg-bulle[data-place="haut"] .vg-fleche { top: 100%; }
.vg-bulle[data-place="droite"] .vg-fleche { left: 0; }
.vg-bulle[data-place="gauche"] .vg-fleche { left: 100%; }
.vg-in { position: relative; max-height: calc(100vh - 56px); overflow: auto; overscroll-behavior: contain; margin: -4px -6px -4px -4px; padding: 4px 6px 4px 4px; }
.vg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px -8px 2px 0; }
.vg-step { font: 600 12px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-d); }
.vg-bar { height: 3px; margin: 0 0 12px; border-radius: 3px; background: var(--line); overflow: hidden; }
.vg-bar span { display: block; height: 100%; border-radius: 3px; background: var(--cyan); transition: width .5s var(--ease); }
.vg-close { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--grey); cursor: pointer; display: grid; place-items: center; }
.vg-close:hover { background: var(--sky); color: var(--navy); }
.vg-close svg { width: 16px; height: 16px; }
.vg-bulle h2 { font-family: var(--display); font-size: 21px; line-height: 1.2; color: var(--navy); outline: none; }
.vg-bulle p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: #3F3E35; }
.vg-bulle .vg-do { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed rgba(var(--cyan-rgb), .9); background: rgba(var(--cyan-rgb), .08); font-weight: 600; font-size: 14.5px; color: var(--navy); }
.vg-main-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: #fff; }
.vg-main-ico svg { width: 18px; height: 18px; }
.vg-do:not(.vg-fait) .vg-main-ico { animation: vg-tape 1.6s var(--ease) infinite; }
@keyframes vg-tape { 0%, 100% { transform: none; } 45% { transform: translateY(-3px) rotate(-8deg); } 60% { transform: translateY(1px) scale(.94); } }
.vg-bulle .vg-do.vg-fait { border-style: solid; background: rgba(var(--cyan-rgb), .14); }
.vg-bulle .vg-pq { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--sky); font-size: 14px; line-height: 1.5; color: var(--navy); }
.vg-pq b { display: block; margin-bottom: 2px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--cyan-d); }
.vg-bulle .vg-note { margin-top: 8px; font-size: 13px; color: var(--grey); }
.vg-list { display: grid; gap: 8px; margin-top: 12px; }
.vg-list li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.45; color: #3F3E35; }
.vg-list li::before { content: ''; position: absolute; left: 1px; top: .32em; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.vg-nav { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.vg-btn { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: 600 14.5px/1.2 var(--text); text-align: center; cursor: pointer; text-decoration: none; transition: border-color .2s, background-color .2s, box-shadow .3s; }
.vg-btn:hover { border-color: var(--navy); }
.vg-btn:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.vg-btn.vg-main { border-color: var(--navy); background: var(--navy); color: #fff; }
.vg-btn.vg-prev { flex: none; width: 44px; padding: 0; }
.vg-btn svg { width: 16px; height: 16px; flex: none; }
.vg-btn.vg-pulse { animation: vg-pulse 1.4s var(--ease) 3; }
@keyframes vg-pulse { 50% { box-shadow: 0 0 0 7px rgba(var(--cyan-rgb), .3); } }
.vg-ctas { display: grid; gap: 8px; margin-top: 14px; }
.vg-ctas + .vg-nav { margin-top: 8px; }

/* Calcul de remboursement */
.vg-roi { margin-top: 12px; }
.vg-bulle .vg-pay { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--cyan-rgb), .12); border: 1.5px solid rgba(var(--cyan-rgb), .55); font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--navy); }
.vg-pay svg { width: 22px; height: 22px; flex: none; color: var(--cyan-d); }
.vg-roi label { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.vg-roi label output { float: right; font-weight: 700; }
.vg-roi input[type=range] { width: 100%; height: 30px; margin: 2px 0 0; accent-color: var(--cyan-d); cursor: pointer; }
.vg-bulle .vg-res { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 14.5px; line-height: 1.45; }
.vg-res b { font-family: var(--display); font-size: 20px; color: var(--cyan-l, #fff); }
.vg-roi small { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--grey); }

@media (max-width: 700px) {
  .vg-launch { left: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); width: 44px; padding: 0; justify-content: center; }
  .vg-launch .vg-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vg-on .mbar { transform: translateY(110%) !important; }
  .vg-bulle, .vg-bulle.vg-large { width: calc(100vw - 24px); padding: 14px 16px; border-radius: 16px; }
  .vg-in { max-height: min(62vh, calc(100vh - 56px)); }
  .vg-bulle[data-place="centre"] .vg-in { max-height: calc(100vh - 60px); }
  .vg-bulle h2 { font-size: 19px; }
  .vg-bulle p { font-size: 14.5px; }
  .vg-anneau { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .vg-bulle, .vg-masque, .vg-launch, .vg-bar span { transition: none; }
  .vg-main-ico, .vg-btn.vg-pulse { animation: none !important; }
}

/* Documents à télécharger dans une étape (devis, rapport) */
.vg-docs { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--sand, #F6F6F4); border: 1px solid var(--line); }
.vg-docs-t { margin: 0 0 2px; font: 700 12px/1.2 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.vg-btn.vg-doc { justify-content: flex-start; border-color: var(--navy); }
.vg-btn.vg-doc svg { width: 18px; height: 18px; }
