/* Nuvrelay — effets partagés (site + espaces). Tout passe par transform/opacity : aucun flou animé. */

/* Apparition au scroll */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="scale"] { transform: scale(.96) translateY(14px); }
.js [data-reveal="left"] { transform: translateX(-26px); }
.js [data-reveal="right"] { transform: translateX(26px); }

/* Boutons : reflet qui passe + flèche qui glisse + halo */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 66%); transform: translateX(-120%); transition: transform .7s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn-line::after, .btn-ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(124, 77, 255, .12) 48%, transparent 66%); }
.btn .arr { width: 16px; height: 16px; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.btn:hover .arr { transform: translateX(4px); }
.btn-forest { box-shadow: 0 10px 24px -14px rgba(17, 14, 26, .7); }
.btn-forest:hover { background: var(--forest); box-shadow: 0 0 0 4px rgba(124, 77, 255, .16), 0 16px 34px -14px rgba(124, 77, 255, .65); }
.btn-lime:hover { box-shadow: 0 0 0 4px rgba(124, 77, 255, .18), 0 16px 34px -14px rgba(124, 77, 255, .7); }
.btn-glow { background: linear-gradient(120deg, #1a1525, #110e1a 40%, #2a1d52 70%, #110e1a); background-size: 220% 100%; color: #fff; animation: glowMove 6s ease-in-out infinite; }
@keyframes glowMove { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.magnet { transition: transform .25s cubic-bezier(.2, .7, .2, 1), background-color .18s, box-shadow .25s, border-color .18s; will-change: transform; }

/* Projecteur qui suit la souris sur les cartes */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 77, 255, .13), transparent 60%); }
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }
.tile.dark.spot::before, .tile.lime.spot::before, .price-card.featured.spot::before { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 60%); }

/* Bordure animée (dégradé qui tourne) */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ring-border { position: relative; }
.ring-border::after { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--ang), #c8b5ff, #7c4dff, #ffb98a, #c8b5ff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: angSpin 5s linear infinite; pointer-events: none; }
@keyframes angSpin { to { --ang: 360deg; } }

/* Indicateur « en ligne » */
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e; opacity: 0; animation: livePing 2s ease-out infinite; }
@keyframes livePing { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }

/* Points de saisie */
.typing { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; animation: tdot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Défilement continu */
.mq { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: 12px; width: max-content; animation: mqMove var(--mq-speed, 48s) linear infinite; }
.mq.rev .mq-track { animation-direction: reverse; }
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes mqMove { to { transform: translateX(-50%); } }

/* Pause des animations hors écran (performance) */
.fx-off, .fx-off *, .fx-off *::before, .fx-off *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn::after { display: none; }
  .mq-track { animation: none; }
}
main#contenu { overflow-x: clip; }
