/* =====================================================================
   EduLink Learning — Visite guidée (assets/visite-guidee.js) : projecteur + bulle.
   Partagé par l'espace étudiant (V9.1) et l'espace formateur (V9.2).
   Couleurs fixes de la charte : la bulle reste lisible quel que soit le thème de la page.
   ===================================================================== */
.tour-layer { position:fixed; inset:0; z-index:9000; }
.tour-layer[hidden], .tour-pop[hidden] { display:none; }
.tour-spot { position:fixed; border-radius:14px; box-shadow:0 0 0 9999px rgba(23,21,27,.55); outline:2px solid #fff; outline-offset:0; pointer-events:none;
  transition:top .3s cubic-bezier(.16,1,.3,1), left .3s cubic-bezier(.16,1,.3,1), width .3s cubic-bezier(.16,1,.3,1), height .3s cubic-bezier(.16,1,.3,1); }
.tour-pop { position:fixed; z-index:9001; width:min(360px, calc(100vw - 24px)); padding:18px 18px 16px; border-radius:16px; background:#FFFFFF; color:#17151B;
  border:1px solid #E4DFEA; box-shadow:0 24px 60px -20px rgba(23,21,27,.45); font:400 14.5px/1.55 'Inter', system-ui, sans-serif; animation:tourIn .25s ease-out both; }
@keyframes tourIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.tour-pop .tour-hd { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.tour-pop .tour-count { font-size:12px; font-weight:700; letter-spacing:.08em; color:#514466; }
.tour-pop .tour-x { width:32px; height:32px; min-height:0; padding:0; justify-content:center; border:0; border-radius:8px; background:none; color:#514466; font-size:22px; line-height:1; cursor:pointer; }
.tour-pop .tour-x:hover { background:#F1EBFC; color:#302044; }
.tour-pop .tour-titre { margin:0 0 6px; font-size:17px; font-weight:700; line-height:1.3; color:#302044; font-family:inherit; }
.tour-pop .tour-titre:focus, .tour-pop .tour-titre:focus-visible { outline:none; }
.tour-pop .tour-texte { margin:0; color:#514466; }
.tour-pop .tour-dots { display:flex; gap:6px; margin:14px 0 0; }
.tour-pop .tour-dots i { width:7px; height:7px; border-radius:50%; background:#E4DFEA; }
.tour-pop .tour-dots i.done { background:#B9AECA; }
.tour-pop .tour-dots i.on { width:20px; border-radius:999px; background:#302044; }
.tour-pop .tour-ft { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:14px; flex-wrap:wrap; }
.tour-pop .tour-nav { display:flex; gap:8px; margin-inline-start:auto; }
.tour-pop .tour-skip { min-height:40px; padding:0 4px; border:0; background:none; color:#514466; font:600 13.5px/1.2 'Inter', system-ui, sans-serif; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.tour-pop .tour-skip:hover { color:#302044; }
.tour-pop .tour-btn { min-height:40px; padding:0 16px; border-radius:10px; border:1px solid #302044; background:#302044; color:#fff; font:600 14px/1.2 'Inter', system-ui, sans-serif; cursor:pointer; }
.tour-pop .tour-btn:hover { background:#21162F; }
.tour-pop .tour-btn.tour-btn--ghost { background:#fff; color:#302044; border-color:#D3CADF; }
.tour-pop .tour-btn.tour-btn--ghost:hover { background:#F1EBFC; }
.tour-pop button:focus-visible { outline:2px solid #302044; outline-offset:2px; }
.tour-pop [hidden] { display:none; }
.tour-live { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.tour-toast { position:fixed; z-index:9002; left:50%; bottom:88px; transform:translateX(-50%); max-width:calc(100vw - 32px); padding:12px 16px; border-radius:12px; background:#302044; color:#fff; font:500 14px/1.45 'Inter', system-ui, sans-serif; box-shadow:0 16px 40px -16px rgba(23,21,27,.5); transition:opacity .35s; }
.tour-toast.is-err { background:#A8261D; }
.tour-toast.is-out { opacity:0; }
html.tour-on, html.tour-on body { overscroll-behavior:contain; }
@media (min-width:761px) { .tour-toast { bottom:28px; } }
@media (prefers-reduced-motion:reduce) { .tour-spot { transition:none; } .tour-pop { animation:none; } }

