/* Parcours d'accueil — première connexion (ERES 22/11/2026) */
.tour-root{position:fixed;inset:0;z-index:9000;opacity:0;transition:opacity .35s ease;font-family:var(--police,"Exo 2",system-ui,sans-serif);-webkit-tap-highlight-color:transparent}
.tour-root.is-in{opacity:1}
.tour-root.is-out{opacity:0;pointer-events:none}
html.tour-open{overflow:hidden}
.tour-shade{position:absolute;inset:0;background:transparent}
.tour-spot{position:fixed;left:50%;top:50%;width:0;height:0;border-radius:24px;pointer-events:none;
  box-shadow:0 0 0 200vmax rgba(3,7,28,.78);
  transition:left .5s cubic-bezier(.65,0,.25,1),top .5s cubic-bezier(.65,0,.25,1),width .5s cubic-bezier(.65,0,.25,1),height .5s cubic-bezier(.65,0,.25,1),border-radius .5s}
.tour-root.is-centered .tour-spot{box-shadow:0 0 0 200vmax rgba(3,7,28,.86)}
.tour-ring{position:absolute;inset:-3px;border-radius:inherit;border:2px solid rgba(250,130,40,.95);
  box-shadow:0 0 0 6px rgba(250,130,40,.18),0 0 34px rgba(250,130,40,.45);animation:tourPulse 2s ease-in-out infinite}
.tour-root.is-centered .tour-ring{display:none}
@keyframes tourPulse{0%,100%{box-shadow:0 0 0 5px rgba(250,130,40,.16),0 0 26px rgba(250,130,40,.35)}50%{box-shadow:0 0 0 11px rgba(250,130,40,.05),0 0 44px rgba(250,130,40,.55)}}

.tour-bubble{position:fixed;left:16px;top:16px;width:min(380px,calc(100vw - 32px));box-sizing:border-box;
  padding:18px 18px 16px;border-radius:22px;color:#eef1ff;
  background:radial-gradient(120% 90% at 0% 0%,rgba(15,40,225,.42),transparent 60%),linear-gradient(160deg,#121b4d 0%,#0a1033 100%);
  border:1px solid rgba(140,160,255,.28);
  box-shadow:0 24px 60px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.08);
  transition:left .5s cubic-bezier(.65,0,.25,1),top .5s cubic-bezier(.65,0,.25,1);outline:none;overflow:visible}
.tour-bubble.is-pop{animation:tourPop .45s cubic-bezier(.2,1.3,.4,1)}
@keyframes tourPop{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
.tour-bubble.arrow-up::before,.tour-bubble.arrow-down::before{content:"";position:absolute;left:var(--arrow-x,50%);width:16px;height:16px;margin-left:-8px;
  background:#111a4a;border:1px solid rgba(140,160,255,.28);transform:rotate(45deg)}
.tour-bubble.arrow-up::before{top:-9px;border-right:0;border-bottom:0}
.tour-bubble.arrow-down::before{bottom:-9px;border-left:0;border-top:0;background:#0b1236}

.tour-bubble.is-center{left:50% !important;top:50% !important;transform:translate(-50%,-50%);width:min(400px,calc(100vw - 32px)) !important;padding:0 22px 20px;text-align:left}
.tour-bubble.is-center.is-pop{animation:tourPopC .55s cubic-bezier(.2,1.25,.4,1)}
@keyframes tourPopC{from{opacity:0;transform:translate(-50%,-46%) scale(.94)}to{opacity:1;transform:translate(-50%,-50%)}}
.tour-hero{position:relative;height:118px;margin:0 -22px 14px;border-radius:22px 22px 0 0;overflow:hidden;
  background:radial-gradient(80% 120% at 50% 110%,rgba(250,130,40,.35),transparent 60%),linear-gradient(180deg,#0f28e1 0%,#0a1a8a 60%,#0b1240 100%);
  display:flex;align-items:center;justify-content:center}
.tour-orb{position:absolute;width:150px;height:150px;border-radius:50%;left:-40px;top:-60px;background:radial-gradient(circle,rgba(255,255,255,.22),transparent 65%);animation:tourFloat 6s ease-in-out infinite}
.tour-orb-2{left:auto;right:-50px;top:30px;width:120px;height:120px;background:radial-gradient(circle,rgba(250,130,40,.45),transparent 65%);animation-delay:-3s}
@keyframes tourFloat{0%,100%{transform:translate(0,0)}50%{transform:translate(14px,10px)}}
.tour-brand{position:relative;font-weight:900;font-size:30px;letter-spacing:-.01em;color:#fff;text-shadow:0 4px 22px rgba(0,0,0,.35)}
.tour-brand em{font-style:normal;color:#FA8228}

.tour-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.tour-icon{flex:none;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;
  background:linear-gradient(140deg,#FA8228,#ff9f52);box-shadow:0 6px 16px rgba(250,130,40,.35)}
.tour-icon svg{width:19px;height:19px;fill:none;stroke:#1a0d00;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tour-icon svg path[d^="M8 5v14"]{fill:#1a0d00;stroke:none}
.tour-kicker{flex:1;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#aeb8ff}
.tour-skip{border:0;background:transparent;color:#9aa4d8;font:inherit;font-size:13px;padding:6px 4px;cursor:pointer}
.tour-skip:hover{color:#fff}
.tour-title{margin:2px 0 6px;font-size:21px;line-height:1.2;font-weight:900;color:#fff}
.tour-text{margin:0 0 14px;font-size:15.5px;line-height:1.45;color:#d6dcff}
.tour-text b{color:#fff}

.tour-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tour-dots{display:flex;gap:6px;flex-wrap:wrap}
.tour-dot{width:7px;height:7px;padding:0;border:0;border-radius:99px;background:rgba(174,184,255,.3);cursor:pointer;transition:width .3s,background .3s}
.tour-dot.is-done{background:rgba(250,130,40,.55)}
.tour-dot.is-on{width:22px;background:#FA8228}
.tour-btns{display:flex;align-items:center;gap:8px}
.tour-next{border:0;border-radius:14px;padding:11px 18px;font:inherit;font-weight:800;font-size:15px;color:#1a0d00;cursor:pointer;
  background:linear-gradient(140deg,#FA8228,#ff9a4a);box-shadow:0 8px 20px rgba(250,130,40,.35);transition:transform .15s}
.tour-next:active{transform:scale(.96)}
.tour-next:focus-visible,.tour-prev:focus-visible,.tour-later:focus-visible,.tour-skip:focus-visible{outline:2px solid #fff;outline-offset:2px}
.tour-prev{width:40px;height:40px;border-radius:12px;border:1px solid rgba(174,184,255,.3);background:rgba(255,255,255,.04);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.tour-later{border:0;background:transparent;color:#aeb8ff;font:inherit;font-size:14px;padding:8px 6px;cursor:pointer}
.tour-bubble.is-outro .tour-next{padding:13px 20px}
.tour-bar{position:absolute;left:18px;right:18px;bottom:0;height:3px;border-radius:3px;overflow:hidden;background:transparent}
.tour-bar-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#0F28E1,#FA8228);transition:width .5s ease}

.tour-replay{min-width:40px;font-weight:900}

.tour-burst{position:fixed;left:50%;top:42%;width:0;height:0;pointer-events:none;z-index:9100}
.tour-bubble .tour-burst{position:absolute;top:58px}
.tour-burst i{position:absolute;width:8px;height:12px;border-radius:2px;opacity:0;animation:tourConf 1.2s cubic-bezier(.15,.7,.3,1) forwards}
@keyframes tourConf{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--dx),calc(var(--dy) + 90px)) rotate(var(--rot))}}

@media (prefers-reduced-motion:reduce){
  .tour-root,.tour-spot,.tour-bubble,.tour-bar-fill,.tour-dot{transition:none}
  .tour-ring,.tour-orb,.tour-bubble.is-pop,.tour-bubble.is-center.is-pop{animation:none}
}

/* Correctifs v2 : boutons du site neutralisés dans la bulle */
.tour-root button{min-height:0;min-width:0;margin:0;text-transform:none;letter-spacing:normal;line-height:1.2}
.tour-root .tour-dot{width:7px;height:7px;flex:none;padding:0}
.tour-root .tour-dot.is-on{width:22px}
.tour-root .tour-prev{display:grid;place-items:center;width:40px;height:40px;padding:0 0 3px;color:#fff;font-size:24px;font-weight:700}
.tour-root .tour-skip{color:#b9c2f0;font-weight:600}
.tour-bubble.is-outro .tour-dots{display:none}
.tour-bubble.is-outro .tour-foot,.tour-bubble.is-outro .tour-btns{display:flex;flex-direction:column-reverse;align-items:stretch;width:100%;gap:6px}
.tour-bubble.is-outro .tour-next{width:100%;white-space:nowrap}
.tour-root .tour-later{color:#c4cbf5 !important;font-weight:600;padding:10px 6px}.tour-root .tour-later:hover{color:#fff !important}

/* VODIC-VOIX : voix d'ERES */
.tour-son{margin-left:auto;display:inline-flex;align-items:center;gap:6px;height:32px;min-width:32px;padding:0 8px;border-radius:16px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.tour-son svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tour-son svg path:first-child{fill:currentColor}
.tour-son + .tour-skip{margin-left:4px}
.tour-son.is-off{opacity:.55}.tour-son.is-off .w1,.tour-son.is-off .w2{opacity:0}
.is-talking .tour-son{border-color:#FA8228;color:#FA8228}
.is-talking .tour-son .w1{animation:vodicW 1s ease-in-out infinite}.is-talking .tour-son .w2{animation:vodicW 1s ease-in-out .25s infinite}
.needs-tap .tour-son{background:#FA8228;border-color:#FA8228;color:#1a0d00;animation:vodicPulse 1.4s ease-in-out infinite}
@keyframes vodicW{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes vodicPulse{0%,100%{box-shadow:0 0 0 0 rgba(250,130,40,.55)}50%{box-shadow:0 0 0 8px rgba(250,130,40,0)}}
@media (prefers-reduced-motion:reduce){.tour-son *,.tour-son{animation:none!important}}
/* VODIC-VOIX : jamais de mot coupé dans l'en-tête */
.tour-son, .tour-skip { white-space: nowrap; flex-shrink: 0; }
.tour-son span { white-space: nowrap; }
.tour-head > :first-child { min-width: 0; }
