/* ===== V9 : visite guidée ===== */
.top-actions #btn-guide { background: #fff; color: var(--slate); gap: 8px; padding: 0 16px 0 14px; position: relative; height: 40px; margin-right: 8px; }
.top-actions #btn-guide[hidden] { display: none !important; }
.pill-guide .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill-guide .tri, .ico-resume .tri { fill: currentColor; stroke-width: 1; }
.pill-guide .tri { transform-box: fill-box; transform-origin: center; transition: transform 320ms var(--ease-out); }
.pill-guide .rg { stroke-dasharray: 57; stroke-dashoffset: 0; }
@keyframes ringDraw { from { stroke-dashoffset: 57; } to { stroke-dashoffset: 0; } }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 100% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
.pill-guide.hello { animation: ringPulse 1.4s var(--ease-out) 2 .4s; }
@media (hover: hover) and (pointer: fine) {
  .top-actions #btn-guide:hover { background: var(--red); color: #fff; }
  .pill-guide:hover .rg { animation: ringDraw 700ms var(--ease-out); }
  .pill-guide:hover .tri { transform: translateX(1.5px) scale(1.12); }
}
.pill-guide:active { transform: scale(.97); }
body.is-story .top-actions > .pill-guide { display: none !important; }

/* pendant la visite : on retire tout ce qui n'est pas la pièce */
html.guided #hotspots, html.guided #dock, html.guided #brandcard, html.guided #tools, html.guided #v3-tools-toggle, html.guided .ph-fab, html.guided #sb-fab, html.guided #ph-fab,
html.guided .roomtag, html.guided .dragHint, html.guided #rooms, html.guided #live { opacity: 0 !important; pointer-events: none !important; visibility: hidden; }
html.guided .top-actions > :not(#audio-ctl) { display: none !important; }
html.guided #lockup { pointer-events: none; }

.gt-bar { position: fixed; left: 50%; bottom: calc(var(--m) + 4px); transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(41,52,61,.94); animation: gtIn 420ms var(--ease-out) both; }
.gt-bar[hidden] { display: none; }
@keyframes gtIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.gt-bar .ico-only { background: var(--slate-3); }
#gt-pp.is-play { background: var(--red); }
.gt-bar .ico-only[data-tip]::after { top: auto; bottom: calc(100% + 10px); }
.gt-steps { list-style: none; margin: 0; padding: 0 6px; display: flex; align-items: center; gap: 4px; }
.gt-step { display: flex; align-items: center; gap: 0; color: #fff; font-size: 14px; font-weight: 500; }
.gt-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: transform 300ms var(--ease-out), background-color 300ms var(--ease-out); margin: 0 5px; flex: none; }
.gt-step.is-done .gt-dot { background: #fff; }
.gt-step.is-on .gt-dot { background: var(--red); transform: scale(1.35); }
.gt-nm { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 420ms var(--ease-out), opacity 300ms var(--ease-out), margin 420ms var(--ease-out); }
.gt-step.is-on .gt-nm { max-width: 130px; opacity: 1; margin-right: 8px; }

.gt-cap { position: fixed; left: 50%; bottom: calc(var(--m) + 84px); transform: translate(-50%, 10px); z-index: 29; width: min(560px, calc(100vw - 2 * var(--m))); padding: 16px 20px; border-radius: 20px; background: rgba(41,52,61,.94); color: #fff; opacity: 0; pointer-events: none; transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.gt-cap.on { opacity: 1; transform: translate(-50%, 0); }
.gt-k { margin: 0 0 4px; font-size: 14px; color: rgba(255,255,255,.7); }
.gt-t { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.gt-b { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.88); }
.gt-b:empty { display: none; }
@media (max-width: 900px) {
  .top-actions #btn-guide:not([hidden]) { display: inline-flex !important; width: 36px; height: 36px; margin-right: 0; }
}
@media (max-width: 760px) {
  .gt-cap { bottom: calc(var(--m) + 76px); padding: 14px 16px; }
  .gt-t { font-size: 19px; }
  .gt-step.is-on .gt-nm { max-width: 90px; }
}
.ico-only:hover .ico-next .c1 { animation: nudgeR 700ms var(--ease-out); } 
@media (hover: hover) and (pointer: fine) { .ico-only:hover .ico-next .c2 { animation: nudgeR 700ms 90ms var(--ease-out); } }
@media (prefers-reduced-motion: reduce) { .gt-bar, .gt-cap, .pill-guide.hello, .pill-guide .rg { animation: none !important; transition-duration: 1ms !important; } }
/* la barre du haut s'élargit : on décale « Outils » et son tiroir */
#v3-tools-toggle { right: calc(var(--m) + 940px); }
body.v3-free #tools { right: calc(var(--m) + 1040px); }
@media (max-width: 1260px) {
  .top-actions #btn-guide { width: 40px; padding: 0; justify-content: center; margin-right: 4px; }
  .pill-guide .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #v3-tools-toggle { right: calc(var(--m) + 830px); }
  body.v3-free #tools { right: calc(var(--m) + 930px); }
}
@media (max-width: 900px) { #v3-tools-toggle { right: var(--m); } body.v3-free #tools { right: var(--m); } }

/* ===== finition : logo plus grand, titres de l'histoire plus mesurés ===== */
.logo-rhg { height: 54px; }
.st-title { font-size: clamp(36px, 5.4vw, 88px); }
@media (max-width: 760px) {
  .logo-rhg { height: 34px; }
  .st-title { font-size: clamp(34px, 10.5vw, 50px); }
}
