/* La visite guidee par le viking (visite.js, 08/10/2026).
   Le voile, c'est l'ombre immense du projecteur : un seul element, qui suit la
   tuile. Au-dessus des fenetres (80) et des messages (90), sous l'ecran
   d'ouverture. */
.vs-voile { position: fixed; inset: 0; z-index: 95; opacity: 0; transition: opacity .22s ease-out; -webkit-tap-highlight-color: transparent; }
.vs-voile.vs-ouvert { opacity: 1; }
.vs-voile.vs-sortie { opacity: 0; transition-duration: .16s; }

.vs-trou {
  position: fixed; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 200vmax rgba(4, 6, 10, .8), 0 0 0 2px rgba(74, 222, 128, .6), 0 0 28px 4px rgba(74, 222, 128, .18);
  transition: left .32s cubic-bezier(.16, 1, .3, 1), top .32s cubic-bezier(.16, 1, .3, 1),
    width .32s cubic-bezier(.16, 1, .3, 1), height .32s cubic-bezier(.16, 1, .3, 1);
}
/* Sans tuile : tout est grise, le viking parle au milieu. */
.vs-sans-cible .vs-trou { box-shadow: 0 0 0 200vmax rgba(4, 6, 10, .84); }

/* Le viking et sa bulle, cote a cote, juste au-dessus ou au-dessous. */
.vs-groupe {
  position: fixed; left: 12px; right: 12px; display: flex; align-items: flex-end; gap: 6px;
  transition: top .32s cubic-bezier(.16, 1, .3, 1);
}
.vs-viking { flex: 0 0 66px; width: 66px; height: 94px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.vs-bulle {
  position: relative; flex: 1; min-width: 0; padding: 14px 14px 10px;
  border-radius: 18px; background: var(--fond3); border: 1px solid var(--bord);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
/* La pointe vise le milieu de la tuile (--vs-pointe, posee par visite.js). */
.vs-groupe::before {
  content: ''; position: absolute; left: calc(var(--vs-pointe, 50%) - 8px); width: 16px; height: 16px;
  background: var(--fond3); border: 1px solid var(--bord); transform: rotate(45deg); z-index: 1;
}
.vs-sous::before { top: -7px; border-right: none; border-bottom: none; }
.vs-sur::before { bottom: -7px; border-left: none; border-top: none; }
.vs-centre::before { display: none; }
.vs-sur { align-items: flex-start; }

.vs-texte { position: relative; z-index: 2; margin: 0 0 10px; font-size: 1rem; line-height: 1.5; color: var(--texte); text-wrap: pretty; }
.vs-bas { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; }
.vs-compte { flex: 1; font-size: .78rem; font-weight: 600; color: var(--texte2); font-variant-numeric: tabular-nums; }
.vs-passer { min-height: 44px; padding: 0 12px; background: none; border: none; color: var(--texte2); font-size: .88rem; }
.vs-suite {
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: none;
  background: var(--actif2); color: #06210f; font-weight: 700; font-size: .92rem;
}
.vs-suite:focus-visible, .vs-passer:focus-visible { outline: 2px solid var(--actif); outline-offset: 2px; }

/* Pendant une visite ou une question, la bulle de conseil habituelle du
   viking se tait : deux bulles a la fois, on ne sait plus laquelle lire. */
body:has(.vs-voile) .vk-bulle { visibility: hidden; }

/* La question du viking (19/10/2026, Julien : « le viking doit etre a
   l'initiative ») : en bas de l'ecran, le viking entre d'abord par la gauche,
   puis sa bulle sort de lui, la pointe tournee vers sa tete. */
.vs-parle { top: auto; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); align-items: flex-end; }
.vs-parle .vs-viking { flex-basis: 84px; width: 84px; height: 120px; animation: vs-entree .5s cubic-bezier(.16, 1, .3, 1) both; }
.vs-parle .vs-bulle { margin-bottom: 46px; transform-origin: left bottom; animation: vs-bulle .34s cubic-bezier(.16, 1, .3, 1) .32s both; }
/* La pointe de la bulle, a gauche, vers la bouche du viking. */
.vs-parle::before { left: 84px; top: auto; bottom: 66px; border-right: none; border-top: none; transform: rotate(45deg); animation: vs-bulle .34s cubic-bezier(.16, 1, .3, 1) .32s both; }
.vs-parle.vs-sans-viking::before { display: none; }
.vs-parle.vs-sans-viking .vs-bulle { margin-bottom: 0; }
.vs-parle.vs-bond .vs-viking { animation: vs-bond .42s cubic-bezier(.25, 1, .5, 1); }
@keyframes vs-entree { from { opacity: 0; transform: translateX(-70px) translateY(10px); } }
@keyframes vs-bulle { from { opacity: 0; transform: scale(.6); } }
@keyframes vs-bond { 40% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) {
  .vs-parle .vs-viking, .vs-parle .vs-bulle, .vs-parle::before, .vs-parle.vs-bond .vs-viking { animation: none; }
}

/* Les reponses empilees, pleine largeur, la principale en vert, les autres en
   contour. */
.vs-choix { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.vs-choix .vs-suite { width: 100%; }
.vs-autre {
  min-height: 44px; padding: 8px 16px; border-radius: 12px; width: 100%;
  border: 1px solid var(--bord); background: var(--fond2); color: var(--texte);
  font-weight: 600; font-size: .92rem; line-height: 1.3;
}
.vs-autre:active { background: var(--fond); }
.vs-autre:focus-visible { outline: 2px solid var(--actif); outline-offset: 2px; }
.vs-choix button:disabled { opacity: .55; }

/* Le petit « i » rond, partout le meme. */
.vs-i {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--bord); background: var(--fond2);
  color: var(--info); font: italic 700 1rem/1 Georgia, 'Times New Roman', serif;
}
.vs-i:active { background: var(--fond3); }
/* Zone d'appui de 44 px autour d'un bouton dessine en 34. */
.vs-i { position: relative; }
.vs-i::after { content: ''; position: absolute; inset: -5px; }

@media (prefers-reduced-motion: reduce) {
  .vs-voile, .vs-trou, .vs-groupe { transition: none; }
}
.mu-plein-haut .vs-i { margin-left: auto; margin-right: 8px; align-self: center; }
/* Les filtres de la liste des sports (08/10/2026). */
.filtresSports { margin: 0 0 12px; }
/* La recherche des sports (08/10/2026). */
.rechercheSports { margin: 0 0 10px; }
.rechercheSports input { width: 100%; min-height: 46px; }
.rechercheSportsVide { margin: 4px 0 10px; font-size: .86rem; color: var(--texte2); }
