@property --gap { syntax: "<length>"; inherits: true; initial-value: 52px; }

:root {
  --bg: #0d0c1d;
  --bg-soft: #14122b;
  --surface: rgba(255, 255, 255, .055);
  --stroke: rgba(255, 255, 255, .12);
  --text: #f4f2ff;
  --muted: #aaa6c8;
  --violet: #9b8cff;
  --pink: #ff9ac1;
  --peach: #ffc391;
  --mint: #86ecc9;
  --grad: linear-gradient(100deg, var(--violet), var(--pink) 55%, var(--peach));
  --radius: 22px;
  --display: "Sora", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Halo de couleurs en fond, qui dérive lentement */
body::before {
  content: ""; position: fixed; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 34% at 22% 24%, rgba(155, 140, 255, .30), transparent 70%),
    radial-gradient(34% 30% at 80% 18%, rgba(255, 154, 193, .20), transparent 70%),
    radial-gradient(40% 36% at 68% 82%, rgba(134, 236, 201, .13), transparent 70%),
    radial-gradient(34% 30% at 14% 86%, rgba(255, 195, 145, .13), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(3%, 3%, 0) rotate(8deg) scale(1.12); }
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.7vw, 3.7rem); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1.12; margin-bottom: 18px; }
h3 { font-size: 1.14rem; font-weight: 600; line-height: 1.3; margin-bottom: 8px; letter-spacing: -0.01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border: 0; border-radius: 999px;
  background: var(--grad); color: #17132e;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 34px -10px rgba(255, 154, 193, .6);
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(255, 154, 193, .8); }
.btn-ghost { background: rgba(255, 255, 255, .07); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.btn-small { padding: 10px 20px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(13, 12, 29, .62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.3rem var(--display); text-decoration: none; letter-spacing: -0.02em; }
.logo-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 16px rgba(255, 154, 193, .8); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 64px 0 0; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow { display: inline-block; margin-bottom: 20px; padding: 6px 14px; border-radius: 999px; background: rgba(155, 140, 255, .14); border: 1px solid rgba(155, 140, 255, .32); color: #cfc8ff; font-size: .85rem; font-weight: 500; }
.lead { margin-top: 22px; max-width: 31em; font-size: 1.15rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: .93rem; color: var(--muted); }
.hero-points li::before { content: "✓"; margin-right: 7px; color: var(--mint); font-weight: 700; }

/* Carrousel 3D */
.stage {
  --pw: 168px; --ph: calc(var(--pw) * 1.92); --radius-ring: calc(var(--pw) * 1.42);
  position: relative; height: 540px; display: grid; place-items: center;
  perspective: 1200px; cursor: grab; touch-action: pan-y; user-select: none;
}
.stage:active { cursor: grabbing; }
.tilt { position: relative; transform-style: preserve-3d; transform: translateY(calc(var(--sp, 0) * 46px)) rotateX(calc(var(--tx, -9deg) - var(--sp, 0) * 16deg)) rotateY(var(--ty, 0deg)) scale(calc(1 - var(--sp, 0) * .14)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ring { position: relative; width: var(--pw); height: var(--ph); transform-style: preserve-3d; transform: rotateY(-18deg); }
.floor {
  position: absolute; left: 50%; top: 50%; width: calc(var(--pw) * 3.7); height: calc(var(--pw) * 3.7); border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 140, 255, .42), rgba(255, 154, 193, .14) 45%, transparent 68%);
  border: 1px solid rgba(255, 255, 255, .1);
  transform: translate(-50%, -50%) translateY(calc(var(--ph) / 2 + 26px)) rotateX(90deg);
}
.phone {
  position: absolute; inset: 0; font-size: calc(var(--pw) / 11);
  border-radius: 1.9em; background: linear-gradient(160deg, #262345, #110f24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 40px -6px rgba(155, 140, 255, .35);
  transform-style: preserve-3d;
  transform: rotateY(var(--a, 0deg)) translateZ(var(--radius-ring));
}
.phone::after { /* dos du téléphone */
  content: ""; position: absolute; left: 50%; top: 50%; width: 1.6em; height: 1.6em; margin: -.8em; border-radius: 50%;
  background: var(--grad); opacity: .85; transform: rotateY(180deg) translateZ(1px); backface-visibility: hidden;
}
.screen, .shade { position: absolute; inset: .42em; border-radius: 1.55em; backface-visibility: hidden; transform: translateZ(1px); }
.shade { inset: 0; border-radius: 1.9em; background: #0d0c1d; opacity: 0; pointer-events: none; transform: translateZ(2px); }
.screen { overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: .55em; padding: 3.4em .8em 1em; color: #fff; text-align: center; }
.s-resto { background: linear-gradient(170deg, #4a3152, #1a1530); }
.s-coiffure { background: linear-gradient(170deg, #5a2f63, #1c1533); }
.s-immo { background: linear-gradient(170deg, #24406b, #131a33); }
.s-sport { background: linear-gradient(170deg, #1f5553, #111f2b); }
.s-boutique { background: linear-gradient(170deg, #6a4532, #1f1626); }
.s-avis { background: linear-gradient(170deg, #45389a, #17132e); }

.bar { position: absolute; top: .8em; left: 1em; right: 1em; height: .2em; border-radius: 1em; background: rgba(255, 255, 255, .22); overflow: hidden; }
.bar span { display: block; height: 100%; background: #fff; transform-origin: left; animation: progress 7s linear infinite; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tag { position: absolute; top: 1.7em; left: 1em; padding: .2em .8em; border-radius: 99em; background: rgba(255, 255, 255, .16); font-size: .68em; font-weight: 600; }

.photo { position: relative; width: 100%; height: 44%; flex: none; border-radius: 1em; overflow: hidden; display: grid; place-items: center; }
.s-resto .photo { background: linear-gradient(140deg, #ffc391, #ff9ac1); }
.s-coiffure .photo { background: linear-gradient(140deg, #ff9ac1, #9b8cff); }
.s-immo .photo { background: linear-gradient(180deg, #8ec5ff, #cfe6ff 62%, #86ecc9 62%); }
.s-sport .photo { background: linear-gradient(140deg, #86ecc9, #5aa9e6); }
.s-boutique .photo { background: linear-gradient(140deg, #ffd9a8, #ffb08a); }
.photo-avis { background: rgba(255, 255, 255, .1); padding: .8em; align-content: center; gap: .5em; }

.plate { position: relative; width: 5.6em; height: 5.6em; border-radius: 50%; background: radial-gradient(circle, #f6e7c4 0 44%, #fffdf9 45% 62%, #ece3d6 63%); box-shadow: 0 .6em 1.2em rgba(60, 20, 40, .35); animation: spin 14s linear infinite; }
.plate i { position: absolute; border-radius: 50%; }
.plate i:nth-child(1) { width: 1.3em; height: .9em; left: 1.6em; top: 1.9em; background: #8a5a2b; }
.plate i:nth-child(2) { width: 1em; height: .75em; left: 2.9em; top: 2.7em; background: #a8743c; }
.plate i:nth-child(3) { width: .6em; height: .6em; left: 2.3em; top: 3.2em; background: #5f8a4a; }
@keyframes spin { to { transform: rotate(360deg); } }
.promo { font: 700 2.5em/1 var(--display); color: #fff; text-shadow: 0 .15em .5em rgba(60, 20, 90, .35); }
.house { position: relative; width: 4.4em; height: 3em; margin-top: 2.2em; background: #fff; border-radius: .2em; }
.house::before { content: ""; position: absolute; left: -.6em; right: -.6em; bottom: 100%; height: 2em; background: #ff9ac1; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.house::after { content: ""; position: absolute; left: 1.7em; bottom: 0; width: 1em; height: 1.6em; background: #5a6fd8; border-radius: .2em .2em 0 0; }
.rings { width: 4.6em; height: 4.6em; border-radius: 50%; border: .7em solid #fff; border-right-color: rgba(255, 255, 255, .3); animation: spin 5s linear infinite; }
.bag { position: relative; width: 3.8em; height: 4em; margin-top: 1.2em; background: #fff; border-radius: .4em; }
.bag::before { content: ""; position: absolute; left: .9em; right: .9em; bottom: 100%; height: 1.5em; border: .3em solid #fff; border-bottom: 0; border-radius: 2em 2em 0 0; }
.stars { color: var(--peach); font-size: 1.05em; letter-spacing: .15em; }
.quote { font: 600 .82em/1.25 var(--display); }

.s-title { font: 600 .98em/1.2 var(--display); margin-top: .3em; }
.pill { padding: .15em .9em; border-radius: 99em; background: #fff; color: #17132e; font-size: .78em; font-weight: 700; }
.sub { margin-top: auto; padding: .3em .8em; border-radius: .55em; background: rgba(0, 0, 0, .55); font-size: .72em; font-weight: 600; }
.stage-note { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .8rem; color: var(--muted); opacity: .8; }

/* Bandeau des métiers */
.marquee { margin-top: 56px; padding: 18px 0; border-block: 1px solid rgba(255, 255, 255, .08); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee ul { display: flex; flex: none; }
.marquee li { padding: 0 26px; font: 500 1rem var(--display); color: var(--muted); white-space: nowrap; }
.marquee li::after { content: "✦"; margin-left: 52px; color: var(--violet); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 104px 0; }
.section-lead { max-width: 38em; font-size: 1.1rem; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.steps li { padding: 30px; }
.step-num { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 14px; background: var(--grad); color: #17132e; font: 700 1.2rem var(--display); }
.steps p, .anatomy-list p { color: var(--muted); font-size: .98rem; }

/* Cartes qui s'inclinent */
[data-tilt] { position: relative; z-index: 0; transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease-out, border-color .3s, opacity .8s; }
[data-tilt]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .13), transparent 60%);
}
[data-tilt].tilting { transition: transform .08s linear, border-color .3s; border-color: rgba(255, 255, 255, .26); }
[data-tilt].tilting::before { opacity: 1; }

/* Vue éclatée de la vidéo */
.anatomy { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.iso { height: 480px; display: grid; place-items: center; perspective: 1700px; }
.iso-stack { position: relative; width: 230px; height: 370px; transform-style: preserve-3d; transform: translateY(40px) rotateX(58deg) rotateZ(var(--rz, -38deg)); }
.layer {
  position: absolute; inset: 0; border-radius: 24px; transform: translateZ(calc(var(--n) * var(--gap, 52px)));
  border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 0 34px -8px rgba(155, 140, 255, .45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.layer span { position: absolute; left: 16px; bottom: 12px; font: 600 .78rem var(--display); letter-spacing: .02em; }
.l-photo { background: linear-gradient(150deg, var(--peach), var(--pink)); color: #3a1830; }
.l-photo::before { content: ""; position: absolute; right: 26px; top: 30px; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .75); }
.l-motion { background: rgba(155, 140, 255, .2); }
.l-motion::before, .l-motion::after { content: ""; position: absolute; border: 2px solid rgba(200, 192, 255, .75); border-radius: 50%; border-left-color: transparent; border-bottom-color: transparent; }
.l-motion::before { width: 120px; height: 120px; }
.l-motion::after { width: 70px; height: 70px; }
.l-subs { background: rgba(255, 154, 193, .13); justify-content: flex-end; padding-bottom: 54px; }
.l-subs i { height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .88); width: 130px; }
.l-subs i:nth-child(2) { width: 90px; }
.l-voice { background: rgba(134, 236, 201, .12); }
.wave { display: flex; align-items: center; gap: 6px; height: 70px; }
.wave b { width: 7px; border-radius: 4px; background: var(--mint); height: 100%; animation: wave 1.1s ease-in-out infinite alternate; }
.wave b:nth-child(1) { animation-delay: -.2s; } .wave b:nth-child(2) { animation-delay: -.9s; } .wave b:nth-child(3) { animation-delay: -.5s; }
.wave b:nth-child(4) { animation-delay: -1.3s; } .wave b:nth-child(5) { animation-delay: -.7s; } .wave b:nth-child(6) { animation-delay: -.1s; } .wave b:nth-child(7) { animation-delay: -1s; }
@keyframes wave { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

.anatomy-list { display: grid; gap: 22px; margin-top: 30px; }
.anatomy-list li { display: flex; gap: 16px; }
.dot { flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; }
.d1 { background: var(--peach); box-shadow: 0 0 14px var(--peach); }
.d2 { background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.d3 { background: var(--pink); box-shadow: 0 0 14px var(--pink); }
.d4 { background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.anatomy-list h3 { margin-bottom: 3px; }

/* Tarifs */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 32px; }
.price-card.featured { border-color: transparent; background: linear-gradient(160deg, #201c40, #17142f) padding-box, var(--grad) border-box; box-shadow: 0 24px 70px -30px rgba(255, 154, 193, .55); }
.badge { position: absolute; top: -13px; right: 24px; padding: 4px 13px; border-radius: 999px; background: var(--grad); color: #17132e; font-size: .78rem; font-weight: 700; }
.price-name { font: 600 1rem var(--display); color: var(--muted); }
.price-amount { margin: 10px 0 4px; font: 700 3.1rem/1.05 var(--display); letter-spacing: -0.03em; }
.price-amount span { font: 500 1rem var(--sans); letter-spacing: 0; color: var(--muted); }
.price-per { font-size: .93rem; color: var(--mint); }
.price-list { margin: 24px 0 28px; flex: 1; }
.price-list li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .96rem; }
.price-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--mint); font-weight: 700; }
.prices-note { margin-top: 26px; text-align: center; font-size: .95rem; color: var(--muted); }

/* FAQ */
.faq { margin-top: 30px; display: grid; gap: 12px; }
details { border: 1px solid var(--stroke); border-radius: 16px; background: var(--surface); transition: border-color .2s, background-color .2s; }
details[open] { border-color: rgba(155, 140, 255, .45); background: rgba(155, 140, 255, .08); }
summary { position: relative; padding: 18px 54px 18px 22px; font-weight: 600; cursor: pointer; list-style: none; border-radius: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 11px; font: 400 1.6rem/1.3 var(--sans); color: var(--pink); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 20px; color: var(--muted); }

/* Démo */
.demo-panel {
  display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center; padding: 56px;
  border-radius: 32px; border: 1px solid var(--stroke);
  background: radial-gradient(70% 90% at 0% 0%, rgba(155, 140, 255, .32), transparent 70%), radial-gradient(60% 80% at 100% 100%, rgba(255, 154, 193, .22), transparent 70%), var(--bg-soft);
}
.demo-copy p { max-width: 28em; font-size: 1.1rem; color: var(--muted); }
.form { display: grid; gap: 16px; padding: 28px; border-radius: 24px; background: rgba(13, 12, 29, .6); border: 1px solid var(--stroke); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 7px; font-size: .9rem; font-weight: 500; min-width: 0; }
.optional { color: var(--muted); font-weight: 400; }
.form input, .form select { width: 100%; padding: 13px 14px; border: 1px solid var(--stroke); border-radius: 12px; background: rgba(255, 255, 255, .06); font: 400 1rem var(--sans); color: var(--text); transition: border-color .15s, background-color .15s; }
.form select option { background: var(--bg-soft); color: var(--text); }
.form input::placeholder { color: #77739a; }
.form input:focus, .form select:focus { border-color: var(--violet); background: rgba(255, 255, 255, .1); }
.form .invalid { border-color: var(--pink); }
.form-status { min-height: 1.4em; font-size: .92rem; }
.form-status.ok { color: var(--mint); }
.form-status.error { color: var(--pink); }

/* Pied de page */
.footer { padding: 34px 0; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer .logo { color: var(--text); font-size: 1.15rem; }
.footer nav { display: flex; gap: 22px; margin-left: auto; }
.footer a:hover { color: var(--text); }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: perspective(900px) translateY(36px) rotateX(14deg); transform-origin: 50% 100%; transition: opacity .8s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .reveal:nth-child(2) { transition-delay: .09s; }
.js .reveal:nth-child(3) { transition-delay: .18s; }
.js .reveal.tilting { transition: transform .08s linear, border-color .3s; }

/* Mobile */
@media (max-width: 940px) {
  .hero { padding-top: 40px; }
  .hero-grid, .anatomy, .demo-panel { grid-template-columns: 1fr; }
  .steps, .prices { grid-template-columns: 1fr; }
  .prices { gap: 30px; }
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .demo-panel { padding: 30px 22px; gap: 30px; }
  .anatomy .iso { order: 2; }
}
@media (max-width: 520px) {
  .stage { --pw: 128px; height: 420px; perspective: 900px; }
  .iso { height: 420px; }
  .iso-stack { width: 170px; height: 280px; }
  .hero-cta .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Scène 3D en arrière-plan et halo du curseur ---------- */
#bg3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.8s; }
#bg3d.ready { opacity: 1; }
.spot { position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(155, 140, 255, .12), transparent 62%); mix-blend-mode: screen; opacity: 0; transition: opacity .6s, transform .28s ease-out; will-change: transform; }
.spot.on { opacity: 1; }

/* ---------- Téléphones : épaisseur et reflet ---------- */
.edge { position: absolute; inset: 0; border-radius: inherit; background: #1d1a3a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); pointer-events: none; }
.edge:last-of-type { background: linear-gradient(200deg, #2f2a58, #131128); }
.phone::after { transform: rotateY(180deg) translateZ(13px); }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .2) 48%, transparent 58%); transform: translateX(-120%); animation: glare 6s ease-in-out infinite; }
@keyframes glare { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.layer { transition: transform .3s ease-out; }

/* ---------- Cartes : le contenu sort en relief quand on les incline ---------- */
.steps .glass, .price-card.glass { backdrop-filter: none; -webkit-backdrop-filter: none; }
.steps .glass, .price-card.glass:not(.featured) { background: none; }
.steps .glass::after, .price-card.glass:not(.featured)::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
[data-tilt] > * { transition: transform .35s ease-out; }
[data-tilt].tilting .step-num, [data-tilt].tilting .price-amount { transform: translateZ(44px); }
[data-tilt].tilting h3, [data-tilt].tilting .price-name, [data-tilt].tilting .price-per { transform: translateZ(26px); }
[data-tilt].tilting h3 + p, [data-tilt].tilting .price-list { transform: translateZ(14px); }
[data-tilt].tilting .btn { transform: translateZ(34px); }
[data-tilt].tilting .badge { transform: translateZ(54px); }

/* ---------- Finitions ---------- */
.kicker { display: block; width: fit-content; margin-bottom: 14px; font: 600 .78rem var(--display); letter-spacing: .16em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes arrive { from { opacity: 0; transform: scale(.78) translateY(40px); } }
.hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.hero-copy > :nth-child(5) { animation-delay: .4s; }
.stage { animation: arrive 1.4s cubic-bezier(.2, .7, .2, 1) .15s both; }
@media (prefers-reduced-motion: reduce) { .spot { display: none; } }

/* ---------- Exemple : la vidéo de démonstration ---------- */
.showcase { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: center; }
.showcase-phone { position: relative; justify-self: center; }
.showcase-phone::before { content: ""; position: absolute; inset: -12%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(155, 140, 255, .42), rgba(255, 154, 193, .16) 50%, transparent 70%); }
.showcase-frame { width: 320px; padding: 10px; border-radius: 44px; background: linear-gradient(160deg, #35315c, #131128); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 60px -10px rgba(155, 140, 255, .45); }
.showcase-frame video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 34px; background: #0f0d0b; object-fit: cover; }
.showcase-list { display: grid; gap: 16px; margin: 30px 0 34px; }
.showcase-list li { position: relative; padding-left: 30px; }
.showcase-list li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--mint); font-weight: 700; }
.showcase-list strong { display: block; font: 600 1.05rem var(--display); letter-spacing: -0.01em; }
.showcase-list span { color: var(--muted); font-size: .97rem; }
.showcase-note { margin-top: 16px; font-size: .85rem; color: var(--muted); opacity: .8; }
@media (max-width: 940px) {
  .showcase { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 520px) {
  .showcase-frame { width: min(300px, 78vw); }
}

/* =====================================================================
   Version mobile et iOS (Safari iPhone, ajout à l'écran d'accueil)
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
a, button, summary, .btn { touch-action: manipulation; }

/* Encoche et barre d'accueil : le contenu reste dans la zone sûre. */
.wrap { width: min(1140px, 100% - 40px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); }
.narrow { width: min(780px, 100% - 40px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); }
.nav { padding-top: env(safe-area-inset-top, 0px); }
.footer { padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }

/* Anciennes versions de Safari */
@supports not (overflow-x: clip) {
  body, .hero { overflow-x: hidden; }
}
.screen, .shade, .phone::after { -webkit-backface-visibility: hidden; }
.tilt, .ring, .phone, .iso-stack, [data-tilt] { -webkit-transform-style: preserve-3d; }

/* La scène 3D garde une hauteur fixe quand la barre d'adresse de Safari se replie. */
#bg3d { inset: 0 auto auto 0; width: 100vw; height: 100vh; height: 100lvh; }

/* Champs de formulaire : apparence native iOS retirée, 16 px minimum pour éviter le zoom automatique. */
.form input, .form select { -webkit-appearance: none; appearance: none; font-size: max(16px, 1rem); }
.form select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23aaa6c8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}

/* Bouton et panneau du menu mobile */
.menu-btn { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 1px solid var(--stroke); border-radius: 14px; background: rgba(255, 255, 255, .07); cursor: pointer; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s cubic-bezier(.2, .7, .2, 1), top .3s cubic-bezier(.2, .7, .2, 1); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 20.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; gap: 26px;
  padding: calc(96px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 12, 29, .9); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  opacity: 0; transform: translateY(-14px); pointer-events: none; overflow-y: auto; -webkit-overflow-scrolling: touch;
  transition: opacity .28s, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.mobile-menu[hidden] { display: none; }
.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 17px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 600 1.5rem var(--display); letter-spacing: -0.02em; text-decoration: none; }
.mobile-menu nav a:active { color: var(--pink); }
.mobile-menu .btn { margin-top: auto; }
.menu-open body { overflow: hidden; }

/* Barre d'action fixée en bas de l'écran, façon application */
.cta-bar {
  display: none; position: fixed; left: 12px; right: 12px; z-index: 12;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  align-items: center; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 18px;
  border: 1px solid var(--stroke); border-radius: 22px;
  background: rgba(24, 21, 48, .82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(130%); pointer-events: none;
  transition: opacity .3s, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.cta-bar.show { opacity: 1; transform: none; pointer-events: auto; }
.cta-bar p { display: grid; line-height: 1.25; }
.cta-bar strong { font: 600 1.02rem var(--display); }
.cta-bar span { font-size: .8rem; color: var(--muted); }

@media (max-width: 940px) {
  .menu-btn { display: block; }
  .nav-inner { gap: 10px; }
  .cta-bar { display: flex; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 520px) {
  .nav-inner { height: 62px; }
  .section { padding: 60px 0; }
  .hero { padding-top: 28px; }
  h1 { font-size: clamp(2.05rem, 9.4vw, 2.5rem); }
  h2 { font-size: clamp(1.6rem, 7.4vw, 2rem); }
  .lead, .section-lead { font-size: 1.04rem; }
  .steps li, .price-card { padding: 24px; }
  .price-amount { font-size: 2.7rem; }
  .marquee { margin-top: 30px; }
  .iso { height: 400px; }
  summary { padding: 16px 48px 16px 18px; }
  details p { padding: 0 18px 18px; }
  .demo-panel { border-radius: 26px; }
  /* Sur téléphone, le flou d'arrière-plan des cartes coûte cher : on le remplace par un fond uni. */
  .steps .glass::after, .price-card.glass:not(.featured)::after { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(30, 27, 58, .78); }
}
/* Site ajouté à l'écran d'accueil : pas de survol, pas de sélection de texte sur les boutons */
@media (hover: none) {
  .btn:hover { transform: none; }
  .btn, .menu-btn, summary { -webkit-user-select: none; user-select: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .cta-bar, .menu-btn span { transition: none; }
}
