/* Velia Studio : couche d'expérience (curseur, aura, magnétisme, intro) */

/* curseur sur mesure, seulement avec une souris */
@media (hover: hover) and (pointer: fine) {
  html.vx-curseur, html.vx-curseur * { cursor: none !important; }
  html.vx-curseur input, html.vx-curseur textarea, html.vx-curseur select { cursor: text !important; }
}
.vx-aura { position: fixed; left: 0; top: 0; z-index: 3; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 92, 53, .30) 0%, rgba(255, 92, 53, .12) 40%, rgba(255, 92, 53, 0) 70%); opacity: 0; transition: opacity .4s; will-change: transform; backface-visibility: hidden; }
.vx-aura.on { opacity: 1; }
.vx-aura.nuit { background: radial-gradient(circle, rgba(255, 92, 53, .34) 0%, rgba(255, 92, 53, .12) 40%, rgba(255, 92, 53, 0) 70%); }
.vx-point, .vx-anneau { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; will-change: transform; }
.vx-point { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #FF5C35; }
.vx-anneau { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid rgba(22, 22, 26, .35); display: grid; place-items: center; transition: opacity .3s, width .35s cubic-bezier(.2, .7, .2, 1), height .35s cubic-bezier(.2, .7, .2, 1), margin .35s cubic-bezier(.2, .7, .2, 1), background .35s, border-color .35s; }
.vx-anneau span { font: 600 11px/1 'Hanken Grotesk', sans-serif; letter-spacing: .04em; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s; white-space: nowrap; }
.vx-point.on, .vx-anneau.on { opacity: 1; }
.vx-anneau.lien { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: #FF5C35; border-color: #FF5C35; }
.vx-anneau.lien span { opacity: 1; transform: none; }
.vx-anneau.lien + .vx-point, .vx-point.cache { opacity: 0; }
.vx-anneau.bouton { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-color: transparent; background: #fff; }
.vx-anneau.clair { border-color: rgba(255, 255, 255, .5); }
.vx-anneau.presse { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.vx-anneau.texte { width: 4px; height: 30px; margin: -15px 0 0 -2px; border-radius: 2px; background: #FF5C35; border-color: #FF5C35; }

/* éclat au clic */
.vx-eclat { position: fixed; z-index: 9998; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #FF5C35; pointer-events: none; animation: vx-eclat .6s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes vx-eclat { to { transform: scale(7); opacity: 0; } }

/* barre de progression du défilement */
.vx-progres { position: fixed; left: 0; top: 0; z-index: 300; height: 2px; width: 100%; background: linear-gradient(90deg, #FF5C35, #ff8a63); transform-origin: left center; transform: scaleX(0); pointer-events: none; }

/* grille de points du hero, réactive à la souris */
.hero { position: relative; }
.vx-champ { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > *:not(.vx-champ):not(.blob) { position: relative; z-index: 2; }

/* titre révélé lettre par lettre */
h1.vx-split { opacity: 1 !important; animation: none !important; }
.vx-mot { display: inline-block; white-space: nowrap; }
.vx-l { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(6deg); filter: blur(6px); animation: vx-lettre .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 28ms + var(--d, .15s)); }
@keyframes vx-lettre { to { opacity: 1; transform: none; filter: none; } }
h1.vx-fin .vx-l { animation: none; opacity: 1; transform: none; filter: none; transition: color .25s; }

/* projecteur sous la souris sur les blocs (sans pseudo-élément, pour ne rien écraser) */
@property --vx-a { syntax: '<number>'; inherits: false; initial-value: 0; }
.vx-spot { --vx-a: 0; background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 92, 53, calc(var(--vx-a) * .14)), transparent 60%); transition: --vx-a .35s; }
.vx-spot:hover { --vx-a: 1; }
.mcard.vx-spot { transition: --vx-a .35s, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; }

/* l'écran de démonstration s'incline avec la souris */
.vx-tilt { transform-style: preserve-3d; will-change: transform; }
.vx-l { will-change: transform; }

/* rideau entre les pages */
html::after { content: ''; position: fixed; inset: 0; z-index: 10001; pointer-events: none; background: #16161A; border-top: 3px solid #FF5C35; clip-path: inset(100% 0 0 0); }
html.vx-part::after { clip-path: inset(0 0 0 0); transition: clip-path .5s cubic-bezier(.76, 0, .24, 1); pointer-events: auto; }
html.vx-arrive::after { clip-path: inset(0 0 0 0); border-top: 0; border-bottom: 3px solid #FF5C35; }
html.vx-arrive.vx-ouvre::after { clip-path: inset(0 0 100% 0); transition: clip-path .7s cubic-bezier(.76, 0, .24, 1); }

/* boutons magnétiques */
.vx-aimant { transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .25s, color .25s !important; will-change: transform; }

/* intro au premier passage */
.vx-intro { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: #16161A; color: #F4F3F0; transition: clip-path .9s cubic-bezier(.76, 0, .24, 1); clip-path: inset(0 0 0 0); }
.vx-intro.part { clip-path: inset(0 0 100% 0); }
.vx-intro-c { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vx-intro-nom { font: 700 clamp(2.6rem, 9vw, 6rem)/1 'Bricolage Grotesque', sans-serif; letter-spacing: -.035em; overflow: hidden; }
.vx-intro-nom span { display: inline-block; transform: translateY(105%); animation: vx-monte .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.vx-intro-nom .o { color: #FF5C35; }
@keyframes vx-monte { to { transform: none; } }
.vx-intro-barre { width: min(240px, 60vw); height: 2px; background: rgba(244, 243, 240, .15); overflow: hidden; }
.vx-intro-barre i { display: block; height: 100%; width: 100%; background: #FF5C35; transform-origin: left; transform: scaleX(0); animation: vx-charge 1.05s cubic-bezier(.6, 0, .2, 1) .2s forwards; }
@keyframes vx-charge { to { transform: none; } }
.vx-intro-n { font: 500 13px/1 'Hanken Grotesk', sans-serif; letter-spacing: .2em; color: rgba(244, 243, 240, .55); font-variant-numeric: tabular-nums; }

/* le reste du site attend la fin de l'intro */
html.vx-attente .hero h1, html.vx-attente .hero .ey, html.vx-attente .hero p, html.vx-attente .hero .cue { animation-play-state: paused !important; }
html.vx-attente .vx-l { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .vx-aura, .vx-point, .vx-anneau, .vx-eclat, .vx-intro, .vx-champ { display: none !important; }
  html::after { display: none !important; }
  .vx-l { animation: none; opacity: 1; transform: none; filter: none; }
  html.vx-curseur, html.vx-curseur * { cursor: auto !important; }
}
.hero h1 em { white-space: nowrap; }
