/* DolyConnection · Volt, la mascotte */
.volt { display: block; width: 100%; height: auto; overflow: visible; }
.volt .v-corps { transform-box: fill-box; transform-origin: 50% 100%; animation: v-flotte 3s ease-in-out infinite; }
.volt .v-oeil { transform-box: fill-box; transform-origin: center; animation: v-clin 4s infinite; }
.volt .v-salue { transform-box: fill-box; transform-origin: 10% 90%; animation: v-salue 1.6s ease-in-out infinite; }
.volt .v-et { transform-box: fill-box; transform-origin: center; animation: v-etincelle 1.8s ease-in-out infinite; }
.volt .v-et2 { animation-delay: .6s; } .volt .v-et3 { animation-delay: 1.2s; }
.volt .v-ombre { transform-box: fill-box; transform-origin: center; animation: v-ombre 3s ease-in-out infinite; }
.volt-joie .v-corps { animation: v-saut .9s cubic-bezier(.3,.7,.4,1) infinite; }
.volt-joie .v-ombre { animation: v-ombre .9s ease-in-out infinite; }
.volt-joie .v-bras-g, .volt-joie .v-bras-d { transform-box: fill-box; animation: v-agite .45s ease-in-out infinite alternate; }
.volt-joie .v-bras-g { transform-origin: 90% 90%; } .volt-joie .v-bras-d { transform-origin: 10% 90%; animation-direction: alternate-reverse; }
.volt-cours .v-corps { animation: v-course .36s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.volt-cours .v-vitesse path { animation: v-vitesse .5s linear infinite; }
.volt-cours .v-vitesse path:nth-child(2) { animation-delay: .15s; } .volt-cours .v-vitesse path:nth-child(3) { animation-delay: .3s; }
.volt-cours .v-jambe { transform-box: fill-box; transform-origin: 0 0; animation: v-agite .18s ease-in-out infinite alternate; }
.volt-cours .v-ombre { animation: none; }
.volt-pense .v-q { transform-box: fill-box; transform-origin: center bottom; animation: v-etincelle 1.6s ease-in-out infinite; }
.volt-dort .v-corps { animation: v-respire 3.6s ease-in-out infinite; }
.volt-dort .v-z { animation: v-z 2.4s ease-out infinite; } .volt-dort .v-z2 { animation-delay: 1.2s; }
.volt-fier .v-bras-d { transform-box: fill-box; transform-origin: 10% 90%; animation: v-pouce 1.2s ease-in-out infinite; }

@keyframes v-flotte { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes v-saut { 0%,100% { transform: translateY(0) scale(1.04,.96); } 45% { transform: translateY(-22px) scale(.97,1.03); } }
@keyframes v-course { from { transform: rotate(8deg) translateY(0); } to { transform: rotate(10deg) translateY(-5px); } }
@keyframes v-respire { 0%,100% { transform: scale(1,1); } 50% { transform: scale(1.02,.98); } }
@keyframes v-clin { 0%,90%,100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
@keyframes v-salue { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(26deg); } }
@keyframes v-pouce { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
@keyframes v-agite { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }
@keyframes v-etincelle { 0%,100% { opacity: .25; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes v-ombre { 0%,100% { transform: scaleX(1); opacity: .18; } 50% { transform: scaleX(.8); opacity: .1; } }
@keyframes v-vitesse { from { transform: translateX(14px); opacity: 0; } 40% { opacity: .9; } to { transform: translateX(-16px); opacity: 0; } }
@keyframes v-z { from { transform: translate(0,0); opacity: 0; } 30% { opacity: 1; } to { transform: translate(10px,-18px); opacity: 0; } }

/* ----- Bulle d'aide ----- */
.volt-guide { display: flex; align-items: flex-end; gap: 10px; margin: 0 0 16px; }
.volt-guide .vg-volt { flex: 0 0 74px; width: 74px; margin-bottom: -4px; }
.volt-guide .vg-bulle { position: relative; flex: 1; background: var(--prune, #160911); color: #fff; border-radius: 18px 18px 18px 4px; padding: 11px 14px; font-size: 14px; line-height: 1.4; }
.volt-guide .vg-bulle::before { content: ''; position: absolute; left: -7px; bottom: 6px; border: 7px solid transparent; border-right-color: var(--prune, #160911); border-left: 0; }
.volt-guide .vg-bulle b { display: block; font-size: 15px; color: var(--jaune, #FFC21A); margin-bottom: 2px; }
.volt-guide .vg-bulle a { color: var(--jaune, #FFC21A); }
.volt-guide.sombre .vg-bulle { background: #fff; color: var(--prune, #160911); }
.volt-guide.sombre .vg-bulle::before { border-right-color: #fff; }
.volt-guide.sombre .vg-bulle b { color: var(--or-texte, #8a5a00); }
.volt-guide.compact .vg-volt { flex-basis: 56px; width: 56px; }
.volt-guide.compact .vg-bulle { font-size: 13.5px; padding: 9px 12px; }
.volt-guide .vg-bulle.pop, .volt-guide .vg-bulle { animation: v-pop .35s cubic-bezier(.2,.9,.3,1.3) both; transform-origin: 0 100%; }
@keyframes v-pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ----- Confettis ----- */
.volt-confettis { position: fixed; inset: 0; pointer-events: none; z-index: 260; overflow: hidden; }
.volt-confettis i { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 3px; animation: v-tombe 1.8s cubic-bezier(.25,.6,.4,1) forwards; }
@keyframes v-tombe { from { transform: translate(0,0) rotate(0); opacity: 1; } to { transform: translate(var(--x, 0), 105vh) rotate(var(--r, 360deg)); opacity: .9; } }

/* ----- Célébration ----- */
.volt-fete { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 250; width: min(420px, calc(100vw - 32px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; background: var(--prune, #160911); color: #fff; border-radius: 22px; padding: 10px 16px 10px 8px;
  box-shadow: 0 18px 50px rgba(22,9,17,.35); cursor: pointer; animation: v-fete-in .5s cubic-bezier(.2,.9,.3,1.25) both; }
.volt-fete.sort { animation: v-fete-out .35s ease-in forwards; }
.volt-fete .vf-volt { flex: 0 0 72px; width: 72px; margin: -34px 0 -6px; }
.volt-fete b { display: block; font-size: 16px; color: var(--jaune, #FFC21A); }
.volt-fete span { display: block; font-size: 14px; color: #e8dfe4; line-height: 1.35; }
@keyframes v-fete-in { from { transform: translate(-50%, 140%); } to { transform: translate(-50%, 0); } }
@keyframes v-fete-out { to { transform: translate(-50%, 160%); opacity: 0; } }

/* ----- Cinématique d'ouverture ----- */
.volt-cine { position: fixed; inset: 0; z-index: 240; color: #fff; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom));
  background: radial-gradient(120% 80% at 50% 62%, #3a1a2e 0%, #160911 62%); font-family: Inter, -apple-system, sans-serif; animation: vc-entre .35s ease-out both; }
.volt-cine.sort { animation: vc-sort .4s ease-in forwards; }
.vc-rayons { position: absolute; left: 50%; top: 60%; width: 180vmax; height: 180vmax; transform: translate(-50%, -50%); opacity: .14; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, #FFC21A 0deg 6deg, transparent 6deg 24deg); animation: vc-tourne 40s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 0, transparent 46%); mask: radial-gradient(circle, #000 0, transparent 46%); }
.vc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: vc-flash .45s ease-out .4s both; }
.vc-foudre { position: absolute; left: 50%; top: 0; width: 60px; height: 62%; transform: translateX(-50%); opacity: 0; pointer-events: none; filter: drop-shadow(0 0 12px #FFC21A);
  stroke-dasharray: 520; animation: vc-foudre .5s ease-in both; }
.vc-passer { position: relative; z-index: 3; align-self: flex-end; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.vc-scene { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.vc-bulle { position: relative; background: #fff; color: #160911; border-radius: 22px; padding: 16px 18px; width: 100%; min-height: 112px; box-shadow: 0 16px 40px rgba(0,0,0,.35); cursor: pointer; transform-origin: 50% 100%; opacity: 0; }
.vc-bulle.pop { animation: v-pop .4s cubic-bezier(.2,.9,.3,1.3) both; }
.vc-bulle::after { content: ''; position: absolute; left: 50%; bottom: -12px; margin-left: -12px; border: 12px solid transparent; border-top-color: #fff; border-bottom: 0; }
.vc-titre { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.vc-texte { margin: 0; font-size: 15.5px; line-height: 1.45; color: #4b3a45; min-height: 3em; }
.vc-volt { width: min(210px, 52vw); margin-top: 8px; opacity: 0; }
.vc-volt.saute { animation: vc-arrive .7s cubic-bezier(.2,.9,.3,1.35) both; }
.vc-sol { width: 180px; height: 14px; margin-top: -18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,194,26,.35), transparent); }
.vc-pied { position: relative; z-index: 3; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.vc-points { display: flex; gap: 8px; }
.vc-points i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.25); transition: width .3s, background .3s; }
.vc-points i.on { background: #FFC21A; }
.vc-suivant { width: 100%; }
.volt-cine.calme, .volt-cine.calme * { animation: none !important; }
.volt-cine.calme .vc-bulle, .volt-cine.calme .vc-volt { opacity: 1; }
.volt-cine.calme .vc-flash, .volt-cine.calme .vc-foudre { display: none; }
@keyframes vc-entre { from { opacity: 0; } to { opacity: 1; } }
@keyframes vc-sort { to { opacity: 0; transform: scale(1.04); } }
@keyframes vc-tourne { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes vc-flash { 0% { opacity: 0; } 30% { opacity: .85; } 100% { opacity: 0; } }
@keyframes vc-foudre { 0% { opacity: 0; stroke-dashoffset: 520; } 50% { opacity: 1; } 80% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes vc-arrive { 0% { opacity: 0; transform: translateY(-60px) scale(.6); } 60% { opacity: 1; transform: translateY(6px) scale(1.06, .94); } 100% { opacity: 1; transform: none; } }

/* ----- Accueils avec Volt ----- */
.volt-hero { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.volt-hero .vh-volt { flex: 0 0 84px; width: 84px; }
.volt-hero h1 { margin: 0 0 4px; }
.volt-hero .lead { margin: 0; }
.radar b.radar-volt { background: var(--prune, #160911); padding: 8px 6px 2px; }
.radar b.radar-volt .volt { width: 64px; }

@media (prefers-reduced-motion: reduce) {
  .volt *, .volt-guide .vg-bulle, .volt-fete { animation: none !important; }
  .volt-confettis { display: none; }
}
.volt-admin .volt-guide { max-width: 760px; margin: 4px 0 14px; }
.volt-form { min-height: 70px; }
