/* ==========================================================================
   InfoZone : animations immersives
   Tout est activé par la classe .js-motion (posée par motion.js) :
   sans JavaScript, ou avec « réduire les animations », le site reste statique et lisible.
   ========================================================================== */

:root {
	--ease: cubic-bezier(.2, .8, .2, 1);
	--beat: 2.143s; /* une mesure à 112 BPM, comme les vidéos */
}

/* ---------- Barre de progression + halo curseur ---------- */
.scroll-progress {
	position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 200;
	background: linear-gradient(90deg, var(--accent), #ffc857 55%, var(--teal));
	transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
	pointer-events: none;
}
.cursor-glow {
	position: fixed; left: 0; top: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px; z-index: 1;
	border-radius: 50%; pointer-events: none; opacity: 0;
	background: radial-gradient(circle, rgba(255, 90, 44, .13), rgba(45, 224, 196, .05) 45%, transparent 70%);
	transition: opacity .4s; will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* ---------- Titres : les mots montent un par un ---------- */
.js-motion [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .02em .14em; margin: -.08em -.02em -.14em; }
.js-motion [data-split] .wi {
	display: inline-block; transform: translateY(115%) rotate(5deg); opacity: 0; filter: blur(6px);
	transition: transform .9s var(--ease), opacity .6s ease, filter .8s ease;
	transition-delay: calc(var(--i, 0) * 60ms);
}
.js-motion [data-split].is-in .wi { transform: none; opacity: 1; filter: none; }

/* ---------- Apparition : décalage en cascade ---------- */
.js-motion .reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js-motion .tiles .reveal, .js-motion .cards .reveal, .js-motion .ranges .reveal { transform: translateY(36px) scale(.96); }
.js-motion .tiles .reveal.is-visible, .js-motion .cards .reveal.is-visible, .js-motion .ranges .reveal.is-visible { transform: none; }
.js-motion .eyebrow { position: relative; }
.js-motion .section-head .eyebrow::after, .js-motion .eyebrow-line::after {
	content: ""; display: inline-block; width: 0; height: 2px; margin-left: 12px; vertical-align: middle;
	background: var(--accent); transition: width 1s var(--ease) .3s;
}
.js-motion .section-head.is-visible .eyebrow::after { width: 48px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); will-change: transform; }
.hero-orbs .o1 { width: 520px; height: 520px; right: -120px; top: -120px; background: rgba(255, 90, 44, .35); }
.hero-orbs .o2 { width: 420px; height: 420px; left: -140px; bottom: -160px; background: rgba(45, 224, 196, .22); }
.hero-orbs .o3 { width: 260px; height: 260px; left: 42%; top: 30%; background: rgba(255, 200, 87, .14); }
.js-motion .hero-orbs .o1 { animation: orbPulse var(--beat) ease-in-out infinite; }
.js-motion .hero-orbs .o2 { animation: orbPulse calc(var(--beat) * 2) ease-in-out infinite reverse; }
.js-motion .hero-orbs .o3 { animation: orbFloat 9s ease-in-out infinite; }
@keyframes orbPulse { 0%, 100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.12; } }
@keyframes orbFloat { 0%, 100% { translate: 0 0; } 50% { translate: 40px -30px; } }
.hero-inner { position: relative; z-index: 1; }

.js-motion .hero-badge, .js-motion .hero-text, .js-motion .hero-actions { opacity: 0; transform: translateY(22px); animation: heroIn .9s var(--ease) forwards; }
.js-motion .hero-badge { animation-delay: .1s; }
.js-motion .hero-text { animation-delay: .75s; }
.js-motion .hero-actions { animation-delay: .95s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.js-motion .hero h1 em { background: linear-gradient(100deg, var(--accent), #ffc857, var(--teal), var(--accent)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; font-style: normal; }
@keyframes shimmer { to { background-position: 300% 0; } }
.js-motion .hero-card { animation: heroIn 1s var(--ease) .5s both, cardFloat 6s ease-in-out 1.6s infinite; transform-style: preserve-3d; transition: transform .25s ease-out; }
@keyframes cardFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.js-motion .tl-clips i { transform: scaleX(0); transform-origin: 0 50%; animation: clipGrow 1s var(--ease) forwards; animation-delay: calc(.9s + var(--k, 0) * 90ms); }
@keyframes clipGrow { to { transform: scaleX(1); } }
.js-motion .tl-track { opacity: 0; transform: translateX(-16px); animation: heroIn .7s var(--ease) forwards; }
.js-motion .tl-1 { animation-delay: .7s; } .js-motion .tl-2 { animation-delay: .85s; } .js-motion .tl-3 { animation-delay: 1s; } .js-motion .tl-4 { animation-delay: 1.15s; }

/* ---------- Bandeau défilant ---------- */
.marquee { overflow: hidden; background: var(--ink-2); border-block: 1px solid rgba(255, 255, 255, .07); padding: 18px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; white-space: nowrap; font-weight: 800; font-size: clamp(20px, 3vw, 32px); letter-spacing: -.02em; color: var(--text); will-change: transform; }
.marquee-track span { opacity: .85; }
.marquee-track span:nth-of-type(3n + 1) { color: var(--accent); }
.marquee-track span:nth-of-type(3n + 2) { -webkit-text-stroke: 1px var(--text); color: transparent; }
.marquee-track b { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex: none; }

/* ---------- Le film (défilement piloté) ---------- */
.film { position: relative; background: var(--ink); }
.film-pin { position: relative; padding: 90px 0 110px; }
.film-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.film-bg .o1 { width: 560px; height: 560px; right: -160px; top: 5%; background: rgba(255, 90, 44, .28); }
.film-bg .o2 { width: 480px; height: 480px; left: -160px; bottom: 5%; background: rgba(45, 224, 196, .2); }
.film-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.film-stage { position: relative; width: min(100% - 40px, 900px); margin-inline: auto; display: grid; gap: 70px; }
.film-scene { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.film-title { font-size: clamp(38px, 7vw, 84px); line-height: 1; font-weight: 900; margin: 0; display: grid; gap: .08em; }
.film-title .hl { color: var(--accent); }
.film-title .hl.big { font-size: 1.25em; background: linear-gradient(100deg, var(--accent), #ffc857); -webkit-background-clip: text; background-clip: text; color: transparent; }
.film-scene p { color: var(--muted); max-width: 52ch; margin: 0; }
.film-logo { font-weight: 900; font-size: 22px; display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.film-logo b { color: var(--accent); font-weight: 900; }
.offer-card { width: min(100%, 560px); border-radius: 28px; padding: 34px 32px 30px; background: var(--ink-3); border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.offer-ico { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 90, 44, .15); color: var(--accent); }
.offer-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.offer-cat { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 800; }
.offer-title { font-size: clamp(28px, 5vw, 44px); font-weight: 900; margin: 4px 0 0; }
.offer-price { font-size: clamp(54px, 11vw, 96px); font-weight: 900; line-height: 1; color: var(--accent); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.offer-price .from { font-size: .26em; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: .15em; vertical-align: .9em; }
.offer-desc { color: var(--text); margin: 6px 0 0; max-width: 40ch; }
.offer-link { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; text-decoration: none; }
.offer-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.cta-line { margin-top: 6px !important; color: var(--text) !important; font-size: 22px; }
.phone-pill { display: inline-flex; align-items: center; gap: 12px; padding: 14px 28px; border-radius: 999px; background: rgba(45, 224, 196, .12); border: 1px solid rgba(45, 224, 196, .4); color: var(--teal); font-weight: 900; font-size: clamp(22px, 4vw, 34px); text-decoration: none; }
.phone-pill svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.film-scroll { margin-top: 14px; width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 14px; position: relative; }
.film-scroll i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }
.film-hud { display: none; }

/* Mode animé : la scène reste épinglée pendant que l'on défile */
.film-live .film-track { height: calc(100vh * 6.2); }
.film-live .film-pin { position: sticky; top: 0; height: 100vh; padding: 0; display: grid; align-items: center; overflow: hidden; }
.film-live .film-stage { display: block; height: min(86vh, 700px); }
.film-live .film-scene { position: absolute; inset: 0; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(40px) scale(.96); filter: blur(10px); transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s ease, visibility 0s .6s; }
.film-live .film-scene.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
.film-live .film-scene.is-past { transform: translateY(-50px) scale(1.04); }
.film-live .film-title span { display: block; opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .9s var(--ease); }
.film-live .is-active .film-title span { opacity: 1; transform: none; }
.film-live .is-active .film-title span:nth-child(2) { transition-delay: .18s; }
.film-live .offer-card > * { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .8s var(--ease); }
.film-live .is-active .offer-card > * { opacity: 1; transform: none; }
.film-live .is-active .offer-card > *:nth-child(1) { transition-delay: .05s; }
.film-live .is-active .offer-card > *:nth-child(2) { transition-delay: .15s; }
.film-live .is-active .offer-card > *:nth-child(3) { transition-delay: .25s; }
.film-live .is-active .offer-card > *:nth-child(4) { transition-delay: .4s; }
.film-live .is-active .offer-card > *:nth-child(5) { transition-delay: .6s; }
.film-live .is-active .offer-card > *:nth-child(6) { transition-delay: .8s; }
.film-live .offer-card { transform: scale(.94) rotateX(8deg); transition: transform 1s var(--ease); }
.film-live .is-active .offer-card { transform: none; }
.film-live .film-scene > :not(.film-title):not(.offer-card) { opacity: 0; transform: translateY(18px); transition: opacity .6s ease .35s, transform .8s var(--ease) .35s; }
.film-live .is-active > :not(.film-title):not(.offer-card) { opacity: 1; transform: none; }
.film-live .film-hud { display: flex; position: absolute; left: 50%; bottom: 32px; width: min(100% - 40px, 640px); transform: translateX(-50%); align-items: center; gap: 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; z-index: 2; }
.hud-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--fp, 0)); background: linear-gradient(90deg, var(--accent), var(--teal)); }
.hud-label { min-width: 120px; text-align: right; color: var(--text); font-weight: 700; }

/* ---------- Cartes : reflet qui suit le curseur ---------- */
.js-motion .tile, .js-motion .card, .js-motion .range, .js-motion .price-row { position: relative; }
.js-motion .tile::after, .js-motion .card::after, .js-motion .range::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 90, 44, .16), transparent 60%);
}
.js-motion .tile:hover::after, .js-motion .card:hover::after, .js-motion .range:hover::after { opacity: 1; }
.js-motion .tile, .js-motion .card, .js-motion .range { will-change: transform; }
.js-motion .tile:hover .icon-wrap svg, .js-motion .card:hover .icon-wrap svg { animation: wobble .7s ease; }
@keyframes wobble { 20% { transform: rotate(-12deg) scale(1.1); } 50% { transform: rotate(9deg) scale(1.1); } 80% { transform: rotate(-4deg); } }

/* ---------- Piliers : grand numéro qui se déplace ---------- */
.js-motion .pillar-num { display: inline-block; will-change: transform; }

/* ---------- Tarifs : changement d'onglet ---------- */
.js-motion .tab-panel:not([hidden]) { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.js-motion .tab-panel:not([hidden]) .price-row { animation: rowIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + .1s); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-18px); } }
.js-motion .price-row:hover .price { transform: scale(1.08); }
.js-motion .price { transition: transform .3s var(--ease); display: inline-block; }

/* ---------- Méthode : la ligne se remplit ---------- */
.js-motion .steps { position: relative; }
.js-motion .steps::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.js-motion .steps::after { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--teal)); transform-origin: 0 50%; transform: scaleX(var(--stp, 0)); }
.js-motion .step { transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .4s; }
.js-motion .step.is-lit { border-color: var(--accent); }

/* ---------- Zone : radar ---------- */
.js-motion .zone-list span svg { position: relative; }
.js-motion .zone-list span::before { content: ""; position: absolute; }
.js-motion .zone-list span { position: relative; }
.js-motion .zone-list span:hover svg { animation: ping 1s ease-out; }
@keyframes ping { 0% { transform: scale(1); } 40% { transform: scale(1.5); color: var(--accent); } 100% { transform: scale(1); } }

/* ---------- Boutons ---------- */
.js-motion .btn-primary { position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .3s; will-change: transform; }
.js-motion .btn-primary::before { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none; }
.js-motion .btn-primary:hover::before { left: 130%; }
.js-motion .btn-primary:hover { box-shadow: 0 10px 34px rgba(255, 90, 44, .45); }

/* ---------- Mobile et accessibilité ---------- */
@media (max-width: 700px) {
	.cursor-glow { display: none; }
	.film-live .film-track { height: calc(100vh * 5.4); }
	.offer-card { padding: 26px 20px 24px; border-radius: 22px; }
	.hud-label { min-width: 0; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.scroll-progress, .cursor-glow { display: none; }
	.js-motion [data-split] .wi { transform: none; opacity: 1; filter: none; transition: none; }
	.js-motion .hero-badge, .js-motion .hero-text, .js-motion .hero-actions, .js-motion .hero-card, .js-motion .tl-track, .js-motion .tl-clips i { animation: none; opacity: 1; transform: none; }
	.js-motion .hero-orbs .orb, .marquee-track { animation: none; }
	
	.film-live .film-pin { position: relative; height: auto; padding: 90px 0 110px; display: block; overflow: visible; }
	.film-live .film-stage { height: auto; display: grid; gap: 70px; }
	.film-live .film-scene { position: relative; opacity: 1; visibility: visible; transform: none; filter: none; transition: none; }
	.film-live .film-title span, .film-live .offer-card > *, .film-live .film-scene > :not(.film-title):not(.offer-card) { opacity: 1; transform: none; transition: none; }
	.film-live .offer-card { transform: none; }
	.film-live .film-hud { display: none; }
}

/* ---------- Explorateur de tarifs (React) ---------- */
.svg-ico { display: inline-flex; }
.svg-ico svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.explorer-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 22px; }
.price-search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; background: var(--white); border: 2px solid rgba(11, 16, 32, .12); border-radius: 999px; padding: 0 18px; transition: border-color .25s, box-shadow .25s; }
.price-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255, 90, 44, .14); }
.price-search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted-dark); stroke-width: 2; flex: none; }
.price-search input { flex: 1; border: 0; background: transparent; padding: 14px 0; font: inherit; color: var(--ink); outline: none; min-width: 0; }
.chips-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-filter button { font: inherit; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; border: 2px solid rgba(11, 16, 32, .14); background: transparent; color: var(--ink); cursor: pointer; transition: all .25s var(--ease); }
.chips-filter button:hover { transform: translateY(-2px); border-color: var(--accent); }
.chips-filter button.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.explorer .tab-bar { position: absolute; bottom: 0; height: 3px; border-radius: 2px; background: var(--accent); transition: left .45s var(--ease), width .45s var(--ease); pointer-events: none; }
.explorer .tab .svg-ico { margin-right: 4px; }
.row-cat { display: inline-block; margin-left: 10px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.unit { font-size: .6em; font-weight: 700; opacity: .75; }
.no-result { padding: 30px 0; color: var(--muted-dark); }
.explorer .tab-panel[hidden] { display: none; }
.explorer .price-row { animation: rowIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@media (prefers-reduced-motion: reduce) { .explorer .price-row, .explorer .tab-panel { animation: none; } }

.offer-ico .svg-ico svg { width: 30px; height: 30px; }
