/* Effets communs à toutes les pages. Sans html.fx, rien n'est masqué. */
.progress { position: fixed; z-index: 95; inset: 0 0 auto; height: 3px; background: var(--copper); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.site-header { transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .3s; }
.site-header.away { transform: translateY(-100%); }

/* Titres qui montent mot par mot */
.fx .fx-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.fx .fx-title .w > span { display: inline-block; transform: translateY(112%) rotate(5deg); transform-origin: left top; transition: transform .85s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i) * 45ms); }
.fx .fx-title.in .w > span { transform: none; }

/* Inclinaison 3D et reflet */
[data-tilt] { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.tilting { transition-duration: .08s; --ty: -5px; box-shadow: 0 30px 50px -30px rgba(23, 19, 14, .6); }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 65%); }
.tilting::after { opacity: 1; }

/* Curseur */
.cur { position: fixed; z-index: 92; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid var(--copper); border-radius: 50%; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .2s, width .2s, height .2s, margin .2s, background-color .2s; }
.cur.on { opacity: 1; }
.cur.big { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(201, 149, 74, .22); }

/* Pied de page */
.footer-mark { display: flex; justify-content: space-between; margin-top: 48px; font: 800 clamp(2.5rem, 13.2vw, 12.5rem)/.85 var(--display); letter-spacing: -.05em; color: var(--copper); overflow: hidden; padding-bottom: .05em; }
.fx .footer-mark span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i) * 40ms); }
.fx .footer-mark.in span { transform: none; }

/* Badge tournant du CTA */
.spin-badge { position: absolute; right: clamp(12px, 3vw, 40px); top: clamp(12px, 3vw, 36px); width: clamp(84px, 11vw, 140px); height: clamp(84px, 11vw, 140px); color: var(--ink); pointer-events: none; }
.spin-badge svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.cta { position: relative; overflow: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 959px) { .spin-badge { display: none; } }

/* Services animés */
.svc-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 20px; }
.svc-filter button { flex: none; min-height: 46px; padding: 8px 18px; background: none; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; font: 600 .9688rem var(--body); cursor: pointer; transition: background-color .2s, color .2s; }
.svc-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(4, 1fr); } .svc.wide { grid-column: span 2; } }
.svc { display: flex; flex-direction: column; padding: 12px 12px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.svc[hidden] { display: none; }
.fx .svc.pop { animation: fadeup .5s cubic-bezier(.2, .8, .2, 1) both; }
.svc h3 { margin: 16px 8px 6px; font-size: 1.3125rem; }
.svc p { margin-inline: 8px; color: var(--text-2); font-size: .9688rem; line-height: 1.5; }
.svc small { margin: 10px 8px 0; font-size: .8125rem; font-weight: 600; color: var(--copper-deep); }
.mv { position: relative; height: 150px; overflow: hidden; border-radius: 12px; background: var(--ink); color: var(--paper); }
.mv, .mv * { animation-play-state: paused; }
.mv.live, .mv.live * { animation-play-state: running; }
.mv i, .mv b, .mv span { position: absolute; display: block; }

/* SEO */
.v-seo i { left: 16%; right: 16%; height: 22px; border-radius: 6px; background: #3a3227; }
.v-seo i:nth-child(1) { top: 20px; } .v-seo i:nth-child(2) { top: 48px; } .v-seo i:nth-child(3) { top: 76px; } .v-seo i:nth-child(4) { top: 104px; }
.v-seo b { left: 13%; right: 13%; height: 26px; top: 102px; border-radius: 6px; background: var(--copper); animation: seo 3.4s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes seo { 0%, 12% { transform: none; } 55%, 92% { transform: translateY(-84px); } 100% { transform: none; } }
/* Local */
.v-local b { left: 50%; top: 42%; width: 36px; height: 36px; margin-left: -18px; background: var(--copper); border-radius: 50% 50% 50% 0; rotate: -45deg; animation: drop 2.6s cubic-bezier(.3, 1.5, .5, 1) infinite; }
.v-local i { left: 50%; top: 68%; width: 90px; height: 28px; margin-left: -45px; border: 2px solid var(--copper); border-radius: 50%; animation: ripple 2.6s infinite; }
@keyframes drop { 0% { transform: translate(40px, -60px); opacity: 0; } 25%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes ripple { 0%, 22% { scale: .2; opacity: 0; } 30% { opacity: 1; } 80%, 100% { scale: 1.5; opacity: 0; } }
/* GEO */
.v-geo span { left: 14px; padding: 7px 12px; font-size: .75rem; border-radius: 12px; background: #3a3227; opacity: 0; animation: bub 5s infinite; white-space: nowrap; }
.v-geo span:nth-child(1) { top: 20px; }
.v-geo span:nth-child(2) { top: 66px; left: auto; right: 14px; background: var(--copper); color: var(--ink); font-weight: 600; animation-delay: .7s; }
@keyframes bub { 0% { opacity: 0; transform: translateY(10px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* Ads */
.v-ads i { left: 50%; top: 50%; border: 2px solid var(--copper); border-radius: 50%; translate: -50% -50%; }
.v-ads i:nth-child(1) { width: 26px; height: 26px; background: var(--copper); }
.v-ads i:nth-child(2) { width: 66px; height: 66px; animation: pulse2 2s infinite; }
.v-ads i:nth-child(3) { width: 106px; height: 106px; animation: pulse2 2s .3s infinite; }
@keyframes pulse2 { 0%, 100% { opacity: .25; scale: .9; } 50% { opacity: 1; scale: 1; } }
/* Réseaux */
.v-social span { left: 50%; top: 0; width: 86px; margin-left: -43px; animation: feed 7s linear infinite; }
.v-social span::before { content: ""; display: block; height: 400px; background: repeating-linear-gradient(#3a3227 0 72px, transparent 72px 80px); }
.v-social b { right: 22%; bottom: 8px; color: var(--copper); font-size: 1.25rem; animation: heart 2.2s infinite; }
.v-social b:nth-of-type(2) { right: 14%; animation-delay: .8s; }
@keyframes feed { to { transform: translateY(-160px); } }
@keyframes heart { 0% { transform: none; opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-110px) scale(1.5); opacity: 0; } }
/* Contenu */
.v-content i { left: 16%; height: 9px; border-radius: 5px; background: var(--paper); transform-origin: left; animation: type 4s infinite; }
.v-content i:nth-child(1) { top: 34px; width: 68%; height: 14px; background: var(--copper); } .v-content i:nth-child(2) { top: 64px; width: 62%; animation-delay: .4s; } .v-content i:nth-child(3) { top: 84px; width: 66%; animation-delay: .8s; } .v-content i:nth-child(4) { top: 104px; width: 42%; animation-delay: 1.2s; }
@keyframes type { 0% { transform: scaleX(0); } 28%, 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
/* Site */
.v-site span { inset: 16px 16% 16px; border: 1.5px solid #4a4134; border-radius: 8px; }
.v-site i { background: #3a3227; border-radius: 4px; animation: blockin 4s cubic-bezier(.2, 1.2, .4, 1) infinite; }
.v-site i:nth-of-type(1) { left: 20%; right: 20%; top: 28px; height: 14px; background: var(--copper); }
.v-site i:nth-of-type(2) { left: 20%; width: 34%; top: 50px; height: 66px; animation-delay: .25s; }
.v-site i:nth-of-type(3) { right: 20%; width: 21%; top: 50px; height: 30px; animation-delay: .5s; }
.v-site i:nth-of-type(4) { right: 20%; width: 21%; top: 86px; height: 30px; animation-delay: .75s; }
@keyframes blockin { 0% { opacity: 0; transform: translateY(16px) scale(.9); } 18%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* E-commerce */
.v-shop b { left: 50%; bottom: 22px; width: 92px; height: 54px; margin-left: -46px; border: 3px solid var(--paper); border-top: 0; border-radius: 0 0 14px 14px; }
.v-shop i { left: 50%; top: -30px; width: 26px; height: 26px; border-radius: 6px; background: var(--copper); animation: fall 3s cubic-bezier(.5, 0, .9, .6) infinite; }
.v-shop i:nth-of-type(2) { margin-left: -28px; animation-delay: 1s; background: var(--paper); }
.v-shop i:nth-of-type(3) { margin-left: 8px; animation-delay: 2s; }
.v-shop span { right: 26%; top: 56px; width: 28px; height: 28px; line-height: 28px; border-radius: 50%; text-align: center; font-size: .8125rem; font-weight: 700; background: var(--copper); color: var(--ink); animation: bump 1s infinite; }
@keyframes fall { 0% { transform: none; opacity: 1; } 42% { transform: translateY(116px); opacity: 1; } 50%, 100% { transform: translateY(116px); opacity: 0; } }
@keyframes bump { 45% { scale: 1; } 55% { scale: 1.35; } 70% { scale: 1; } }
/* Motion */
.v-motion b { left: 50%; top: 34px; width: 0; height: 0; margin-left: -14px; border-style: solid; border-width: 22px 0 22px 34px; border-color: transparent transparent transparent var(--copper); animation: playp 1.6s ease-in-out infinite; }
.v-motion span { left: 12%; right: 12%; bottom: 26px; height: 6px; border-radius: 3px; background: #3a3227; overflow: hidden; }
.v-motion span::after { content: ""; display: block; height: 100%; background: var(--copper); transform-origin: left; animation: timeline 3.2s linear infinite; }
@keyframes playp { 50% { scale: 1.2; } }
@keyframes timeline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Stratégie */
.v-strat svg { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.v-strat path { fill: none; stroke: var(--copper); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 460; stroke-dashoffset: 460; animation: draw 4s ease-in-out infinite; }
@keyframes draw { 60%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
/* Avis */
.v-stars { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 2.125rem; color: var(--copper); }
.v-stars span { position: static; display: inline-block; animation: starin 3.4s cubic-bezier(.2, 1.6, .4, 1) infinite; }
.v-stars span:nth-child(2) { animation-delay: .12s; } .v-stars span:nth-child(3) { animation-delay: .24s; } .v-stars span:nth-child(4) { animation-delay: .36s; } .v-stars span:nth-child(5) { animation-delay: .48s; }
@keyframes starin { 0% { transform: scale(0) rotate(-40deg); } 18%, 86% { transform: none; opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }
/* Fidélité */
.v-loyal { display: grid; grid-template-columns: repeat(5, 30px); gap: 8px; place-content: center; }
.v-loyal i { position: static; height: 30px; border-radius: 50%; border: 1.5px dashed #6a5e4d; animation: stampin 5s infinite; }
.v-loyal i:nth-child(2) { animation-delay: .25s; } .v-loyal i:nth-child(3) { animation-delay: .5s; } .v-loyal i:nth-child(4) { animation-delay: .75s; } .v-loyal i:nth-child(5) { animation-delay: 1s; } .v-loyal i:nth-child(6) { animation-delay: 1.25s; } .v-loyal i:nth-child(7) { animation-delay: 1.5s; } .v-loyal i:nth-child(8) { animation-delay: 1.75s; } .v-loyal i:nth-child(9) { animation-delay: 2s; } .v-loyal i:nth-child(10) { animation-delay: 2.25s; }
@keyframes stampin { 0% { background: transparent; scale: 1; } 8% { background: var(--copper); scale: 1.2; border-color: var(--copper); } 14%, 80% { background: var(--copper); scale: 1; border-color: var(--copper); } 100% { background: transparent; } }
/* Automatisations */
.v-auto i { top: 50%; width: 64px; height: 64px; margin-top: -32px; border-radius: 50%; border: 10px dashed var(--copper); animation: gear 5s linear infinite; }
.v-auto i:nth-child(1) { left: calc(50% - 62px); } .v-auto i:nth-child(2) { left: calc(50% - 2px); border-color: var(--paper); animation-direction: reverse; }
@keyframes gear { to { transform: rotate(360deg); } }
/* Logiciels */
.v-soft i { width: 42px; height: 30px; border-radius: 6px; background: #3a3227; animation: nodep 3s infinite; }
.v-soft i:nth-of-type(1) { left: calc(50% - 21px); top: 16px; background: var(--copper); }
.v-soft i:nth-of-type(2) { left: 16%; bottom: 18px; animation-delay: .4s; }
.v-soft i:nth-of-type(3) { left: calc(50% - 21px); bottom: 18px; animation-delay: .8s; }
.v-soft i:nth-of-type(4) { right: 16%; bottom: 18px; animation-delay: 1.2s; }
.v-soft svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.v-soft line { stroke: #6a5e4d; stroke-width: 2; stroke-dasharray: 6 6; animation: dash 1.2s linear infinite; }
@keyframes nodep { 50% { background: var(--copper); } }
@keyframes dash { to { stroke-dashoffset: -24; } }

/* Tunnels */
.v-funnel i { left: 50%; height: 26px; border-radius: 6px; translate: -50% 0; background: #4a4134; }
.v-funnel i:nth-child(1) { top: 26px; width: 62%; } .v-funnel i:nth-child(2) { top: 60px; width: 42%; } .v-funnel i:nth-child(3) { top: 94px; width: 24%; background: var(--copper); }
.v-funnel b { left: 50%; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--paper); animation: funnel 2.2s cubic-bezier(.5, 0, .7, 1) infinite; }
@keyframes funnel { 0% { transform: none; opacity: 0; } 15% { opacity: 1; } 80% { transform: translateY(116px) scale(1.2); opacity: 1; } 100% { transform: translateY(126px); opacity: 0; } }
/* Identité */
.v-brand b { left: calc(50% - 88px); top: 39px; width: 72px; height: 72px; background: var(--copper); animation: morph 5s ease-in-out infinite; }
.v-brand i { left: calc(50% + 12px); width: 72px; height: 18px; border-radius: 9px; animation: swatch 5s infinite; transform-origin: left; }
.v-brand i:nth-of-type(1) { top: 39px; background: var(--copper); } .v-brand i:nth-of-type(2) { top: 66px; background: var(--paper); animation-delay: .3s; } .v-brand i:nth-of-type(3) { top: 93px; background: #6a5e4d; animation-delay: .6s; }
@keyframes morph { 0%, 100% { border-radius: 50%; rotate: 0deg; } 33% { border-radius: 12px; rotate: 90deg; } 66% { border-radius: 50% 8px; rotate: 180deg; } }
@keyframes swatch { 0% { transform: scaleX(0); } 15%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
/* Relances */
.v-mail b { left: 50%; top: 42px; width: 110px; height: 72px; margin-left: -55px; border: 3px solid var(--paper); border-radius: 8px; animation: mailin 3.2s cubic-bezier(.2, 1.1, .4, 1) infinite; }
.v-mail i { left: 50%; top: 34px; width: 74px; height: 74px; margin-left: -37px; border: solid var(--paper); border-width: 0 3px 3px 0; rotate: 45deg; scale: .78 .5; animation: mailin 3.2s cubic-bezier(.2, 1.1, .4, 1) infinite; }
.v-mail span { left: calc(50% + 40px); top: 26px; width: 34px; height: 34px; line-height: 34px; border-radius: 50%; text-align: center; font-weight: 700; background: var(--copper); color: var(--ink); animation: badge 3.2s infinite; }
@keyframes mailin { 0% { transform: translateX(-90px); opacity: 0; } 22%, 88% { transform: none; opacity: 1; } 100% { transform: translateX(90px); opacity: 0; } }
@keyframes badge { 0%, 28% { scale: 0; } 36%, 88% { scale: 1; } 100% { scale: 0; } }

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  .mv *, .spin-badge svg { animation: none !important; }
  .v-seo b { top: 18px; } .v-local b, .v-geo span, .v-stars span { opacity: 1; }
  .v-loyal i { background: var(--copper); border-color: var(--copper); }
  .v-strat path { stroke-dashoffset: 0; }
  .v-content i, .v-site i { opacity: 1; } .v-shop i { display: none; }
}

/* Le reflet des cartes reste sous le contenu cliquable */
.svc > * { position: relative; }
.svc[data-tilt]::after { z-index: 2; }
