/* Fonctionnalités : écrans qui s'ouvrent comme dans l'app */
.fx-intro { padding-bottom: 8px; }
.fx { position: relative; }
.fx-stage { position: relative; }
.fx-slide { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; width: min(var(--max), 100% - 40px); margin-inline: auto; padding: 48px 0; }
.fx-text { display: grid; gap: 14px; justify-items: start; max-width: 520px; }
.fx-num { font-family: var(--mono); font-size: .85rem; color: var(--orange); letter-spacing: .14em; }
.fx-ic .icon { width: 56px; height: 56px; margin: 0; box-shadow: inset 0 0 0 2px rgba(242, 106, 39,.5); background: var(--bg-2); }
.fx-ic .icon svg { width: 26px; height: 26px; }
.fx-text h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.08; }
.fx-text p { color: var(--muted); font-size: 1.05rem; }
.fx-ph { position: relative; display: grid; place-items: center; }
.fx-ph .phone { width: 240px; position: relative; z-index: 1; }
.fx-ring { position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1px dashed var(--line); animation: spin 80s linear infinite; }
.fx-bar, .fx-count, .fx-prog, .fx-glow { display: none; }

/* Mode « écrans » (JavaScript actif) */
.fx-js .fx-stage { position: sticky; top: 66px; height: calc(100svh - 66px); overflow: hidden; }
body:not(.planner-page) .fx-js .fx-stage { top: 54px; height: calc(100svh - 54px); }
.fx-js .fx-slides { position: absolute; inset: 0; margin-inline: auto; }
.fx-js .fx-slide { position: absolute; inset: 0 0 96px 0; width: min(var(--max), 100% - 40px); padding: 0; visibility: hidden; pointer-events: none; transition: visibility 0s .8s; }
.fx-js .fx-slide.on { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.fx-js .fx-ph .phone { height: min(60svh, 540px); width: auto; aspect-ratio: 396 / 840; }
.fx-js .fx-ring { width: min(58svh, 470px); height: min(58svh, 470px); }

.fx-js .fx-text > *, .fx-js .fx-ph { opacity: 0; transition: opacity .35s ease, transform .5s cubic-bezier(.4,0,.2,1); }
.fx-js .fx-text > * { transform: translateX(80px); }
.fx-js .fx-ph { transform: translateX(200px) rotate(9deg) scale(.9); }
.fx-js .fx-slide.before .fx-text > * { transform: translateX(-80px); }
.fx-js .fx-slide.before .fx-ph { transform: translateX(-200px) rotate(-9deg) scale(.9); }
.fx-js .fx-slide.on .fx-text > *, .fx-js .fx-slide.on .fx-ph { opacity: 1; transform: none; transition: opacity .6s ease, transform .85s cubic-bezier(.2,.85,.2,1); }
.fx-js .fx-slide.on .fx-text > :nth-child(1) { transition-delay: .05s; }
.fx-js .fx-slide.on .fx-text > :nth-child(2) { transition-delay: .1s; }
.fx-js .fx-slide.on .fx-text > :nth-child(3) { transition-delay: .16s; }
.fx-js .fx-slide.on .fx-text > :nth-child(4) { transition-delay: .22s; }
.fx-js .fx-slide.on .fx-text > :nth-child(5) { transition-delay: .3s; }
.fx-js .fx-slide.on .fx-ph { transition-delay: .12s; }

.fx-js .fx-glow { display: block; position: absolute; width: 900px; height: 900px; right: -200px; top: 50%; margin-top: -450px; border-radius: 50%; opacity: 0; transition: opacity .9s; pointer-events: none; }
.fx-js .fx-glow.a { background: radial-gradient(circle, rgba(242, 106, 39,.2), transparent 62%); }
.fx-js .fx-glow.b { background: radial-gradient(circle, rgba(232,135,58,.16), transparent 62%); }
.fx-js .fx-stage[data-p="0"] .fx-glow.a, .fx-js .fx-stage[data-p="1"] .fx-glow.b { opacity: 1; }

.fx-js .fx-bar { display: flex; position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); gap: 4px; padding: 6px; background: rgba(39, 39, 41,.92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 14px 34px rgba(0,0,0,.5); z-index: 4; max-width: calc(100% - 24px); }
.fx-tab { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 500; padding: 8px 14px 8px 8px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; }
.fx-tab .icon { width: 30px; height: 30px; margin: 0; background: transparent; }
.fx-tab .icon svg { width: 17px; height: 17px; }
.fx-tab:hover { color: var(--text); }
.fx-tab.on { background: rgba(242, 106, 39,.18); color: var(--text); }
.fx-tab.on .icon { color: var(--teal); }
.fx-js .fx-count { display: block; position: absolute; top: 22px; right: max(20px, calc((100% - var(--max)) / 2)); font-family: var(--mono); color: var(--muted); font-size: .85rem; z-index: 3; }
.fx-count b { color: var(--teal); font-size: 1.3rem; }
.fx-js .fx-prog { display: block; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--line); z-index: 4; }
.fx-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--orange)); transition: width .4s; }

@media (max-width: 900px) {
  .fx-slide { grid-template-columns: 1fr; gap: 24px; }
  .fx-ph { order: -1; }
  .fx-js .fx-slide { grid-template-rows: minmax(0, 42%) minmax(0, 1fr); gap: 30px; align-items: start; padding-top: 10px; }
  .fx-js .fx-ph { height: 100%; align-self: stretch; }
  .fx-js .fx-ph .phone { height: 100%; max-height: 34svh; }
  .fx-js .fx-ring { display: none; }
  .fx-js .fx-text { gap: 8px; }
  .fx-js .fx-text h2 { font-size: 1.6rem; }
  .fx-js .fx-text p { font-size: .95rem; }
  .fx-js .fx-ic, .fx-js .fx-num { display: none; }
  .fx-js .fx-text .ticks li { font-size: .88rem; }
  .fx-js .fx-count { display: none; }
  .fx-tab span { display: none; }
  .fx-tab { padding: 8px; }
  .fx-tab.on span { display: inline; }
}
@media (max-width: 480px) { .fx-js .fx-slide { bottom: 84px; } .fx-js .fx-text .ticks li:nth-child(n+3) { display: none; } }
@media (prefers-reduced-motion: reduce) { .fx-js .fx-text > *, .fx-js .fx-ph { transition: opacity .2s !important; transform: none !important; } .fx-ring { animation: none; } }
