.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4.6vw, 3rem); text-wrap: balance; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.kicker { display: inline-block; font: 600 .78rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
.hl { color: var(--accent-2); }

/* Navigation : logo, 3 liens, langue, un seul bouton */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(8, 8, 10, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 1.08rem/1 var(--display); letter-spacing: -.02em; }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; flex-wrap: nowrap; white-space: nowrap; }
.nav .btn { white-space: nowrap; flex-shrink: 0; }
.logo { flex-shrink: 0; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; padding: .45em .7em; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--text); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 150px; border-radius: 12px; background: #16161a; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.lang li a { display: block; padding: .55em .8em; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; }
.lang li a:hover, .lang li a[aria-current] { background: var(--surface-2); }
@media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } .nav-links { gap: 8px; } }
@media (max-width: 340px) { .logo span { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(70px, 13vw, 150px) 0 clamp(60px, 10vw, 110px); }
.hero::before {
  content: ''; position: absolute; left: 50%; top: -25%; width: min(1100px, 150vw); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(139, 108, 255, .07) 35%, transparent 65%);
  pointer-events: none; animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .6; transform: translateX(-50%) scale(1.06); } }
.hero-in { position: relative; text-align: center; display: grid; justify-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.pill b { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: .75rem; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 5.6rem); max-width: 18ch; margin-bottom: .35em; }
.hero h1 span { background: linear-gradient(180deg, #fff 30%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 2.3vw, 1.3rem); max-width: 620px; color: #b8b8c2; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 46px; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; list-style: none; padding: 0; margin: 0; }
.stats b { display: block; font: 700 1.6rem/1.1 var(--display); letter-spacing: -.02em; }
.stats span { font-size: .85rem; color: var(--muted); }

/* Blocs */
.block { padding: clamp(64px, 10vw, 120px) 0; }
.block-head { max-width: 680px; margin-bottom: 36px; }
.block-head p { color: var(--muted); }
.band { background: var(--bg2); border-block: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, background .2s; }
.card:hover { border-color: var(--line-2); background: var(--surface-2); }
.card .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(139, 108, 255, .14); color: var(--accent-2); margin-bottom: 16px; }
.card .ic svg { width: 20px; height: 20px; }
.card p { margin: 0; color: var(--muted); }
.card strong { color: var(--text); font-weight: 600; }

.steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; counter-reset: s; }
.steps li { padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: '0' counter(s); display: block; font: 700 .85rem var(--display); color: var(--accent-2); margin-bottom: 10px; }
.steps b { font: 700 1.15rem var(--display); }
.steps p { margin: 8px 0 0; color: var(--muted); }
.steps strong { color: var(--text); font-weight: 600; }
.modes { display: flex; flex-wrap: wrap; gap: 8px; }
.modes span { padding: .45em 1em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: #c9c9d2; font-size: .9rem; }

/* Installation */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { padding: .6em 1.2em; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 500; font-size: .92rem; color: var(--muted); transition: all .15s; }
.tabs button[aria-selected="true"] { background: #fff; color: #0a0a0c; }
.tab-panel { padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.howto { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: h; }
.howto li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; counter-increment: h; }
.howto li::before { content: counter(h); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-weight: 600; font-size: .85rem; }
.note { padding: 14px 16px; border-radius: var(--r-sm); background: rgba(139, 108, 255, .1); color: #cfc6ff; font-size: .95rem; margin: 0; }

/* Formulaires */
.early, .contact { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.early > div > p, .contact > div > p { color: var(--muted); }
@media (max-width: 860px) { .early, .contact { grid-template-columns: 1fr; gap: 28px; } }
.form { display: grid; gap: 14px; padding: 26px; border-radius: 20px; background: var(--bg2); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.form label { display: grid; gap: 7px; font-weight: 500; font-size: .92rem; color: #c9c9d2; }
.form input, .form select, .form textarea { width: 100%; padding: .8em .95em; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); font-size: 1rem; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-glow); }
.form .check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 400; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 4px; }
.form-msg { margin: 0; font-size: .92rem; color: var(--ok); }
.form-msg:empty { display: none; }
.form-msg.err { color: var(--err); }
.form-alt { margin: 0; font-size: .92rem; color: var(--muted); text-align: center; }
.mail { font-weight: 600; color: var(--text) !important; }

.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.warning { padding-bottom: 60px; }
.warning div { padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.warning h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: .4em; }
.warning p { color: var(--muted); margin: 0; font-size: .95rem; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .9rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

.legal { padding-block: 60px 90px; max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.15rem; margin-top: 1.8em; letter-spacing: -.01em; }
.legal p { color: #c3c3cc; }
.auth { padding-block: 60px 90px; max-width: 480px; }
.auth h1 { font-size: clamp(2rem, 6vw, 2.6rem); }
.auth > p { color: var(--muted); }
.auth .tabs { display: flex; margin: 14px 0; }
.auth .tabs button { flex: 1; }
.auth .tab-panel { padding: 0; border: 0; background: none; }
.totp-row input { letter-spacing: .5em; font-size: 1.3rem; text-align: center; font-variant-numeric: tabular-nums; }

/* ===================== Ambiance : scène, faisceaux, beat ===================== */
:root { --beat: .469s; } /* 128 BPM */
.hero { isolation: isolate; min-height: min(100svh, 980px); }
.hero::before { display: none; }
.stage-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.haze { position: absolute; inset: -20%; background:
  radial-gradient(40% 30% at 30% 30%, rgba(139, 108, 255, .28), transparent 70%),
  radial-gradient(35% 28% at 72% 40%, rgba(255, 79, 163, .18), transparent 70%),
  radial-gradient(50% 35% at 50% 85%, rgba(56, 189, 248, .12), transparent 70%);
  filter: blur(30px); animation: haze 18s ease-in-out infinite alternate; }
@keyframes haze { to { transform: translate(4%, -3%) rotate(6deg) scale(1.1); } }

/* Lyres : faisceaux coniques qui balaient la salle */
.beam { position: absolute; top: -12%; width: 46vmax; height: 120vh; transform-origin: 50% 0; mix-blend-mode: screen; opacity: .55;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 85%);
  clip-path: polygon(48% 0, 52% 0, 100% 100%, 0 100%); filter: blur(6px); }
.b1 { left: 2%; background: linear-gradient(180deg, rgba(139, 108, 255, .85), transparent 85%); animation: sweepL 7.5s ease-in-out infinite; }
.b2 { left: 22%; animation: sweepR 9.4s ease-in-out infinite; opacity: .3; }
.b3 { right: 22%; background: linear-gradient(180deg, rgba(255, 79, 163, .7), transparent 85%); animation: sweepL 8.6s ease-in-out infinite reverse; }
.b4 { right: 2%; background: linear-gradient(180deg, rgba(56, 189, 248, .6), transparent 85%); animation: sweepR 6.8s ease-in-out infinite; }
@keyframes sweepL { 0%, 100% { transform: rotate(28deg); } 50% { transform: rotate(-18deg); } }
@keyframes sweepR { 0%, 100% { transform: rotate(-26deg); } 50% { transform: rotate(16deg); } }
.floor { position: absolute; left: -10%; right: -10%; bottom: 0; height: 38%;
  background: radial-gradient(60% 80% at 50% 100%, rgba(139, 108, 255, .35), transparent 70%);
  animation: kick var(--beat) ease-out infinite; }
@keyframes kick { 0% { opacity: 1; } 60%, 100% { opacity: .45; } }

.hero h1 span { animation: glow calc(var(--beat) * 4) ease-out infinite; }
@keyframes glow { 0%, 25% { filter: drop-shadow(0 0 22px rgba(185, 166, 255, .65)); } 26%, 100% { filter: drop-shadow(0 0 0 transparent); } }

/* Téléphone de démonstration qui flashe en rythme */
.phone { position: relative; width: 150px; aspect-ratio: 9 / 19; margin: 8px auto 26px; padding: 7px; border-radius: 30px;
  background: linear-gradient(160deg, #2a2a33, #0e0e12); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px rgba(0, 0, 0, .6), 0 0 80px var(--accent-glow);
  animation: bob calc(var(--beat) * 2) ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-1deg); } }
.phone-screen { position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: #08080a; display: grid; place-content: center; justify-items: center; gap: 12px; }
.ph-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: phflash calc(var(--beat) * 4) steps(1) infinite; }
@keyframes phflash { 0% { opacity: .95; background: #fff; } 6% { opacity: 0; } 25% { opacity: .75; background: #b9a6ff; } 31% { opacity: 0; } 50% { opacity: .75; background: #ff4fa3; } 56% { opacity: 0; } 75% { opacity: .75; background: #38bdf8; } 81%, 100% { opacity: 0; } }
.ph-ring { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 2px solid rgba(255, 255, 255, .25); animation: ring var(--beat) ease-out infinite; mix-blend-mode: difference; }
.ph-ring b { font: 700 1.5rem/1 var(--display); color: #fff; }
.ph-ring span { font-size: .55rem; letter-spacing: .25em; color: #aaa; }
@keyframes ring { 0% { transform: scale(1.12); border-color: #fff; } 100% { transform: scale(1); } }
.ph-dots { position: relative; display: flex; gap: 6px; mix-blend-mode: difference; }
.ph-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); animation: dot calc(var(--beat) * 4) steps(1) infinite; }
.ph-dots i:nth-child(2) { animation-delay: var(--beat); }
.ph-dots i:nth-child(3) { animation-delay: calc(var(--beat) * 2); }
.ph-dots i:nth-child(4) { animation-delay: calc(var(--beat) * 3); }
@keyframes dot { 0%, 24% { background: #fff; } 25%, 100% { background: rgba(255, 255, 255, .25); } }

/* Égaliseur */
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 44px; margin: 0 auto 34px; }
.eq i { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(0deg, var(--accent), #ff4fa3); transform-origin: bottom; transform: scaleY(.15);
  animation: eq calc(var(--beat) * var(--m, 1)) ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -73ms); opacity: .85; }
@keyframes eq { to { transform: scaleY(var(--h, .9)); } }

/* Défilé de styles */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg2); padding: 18px 0; }
.ticker-in { display: flex; width: max-content; gap: 34px; align-items: center; animation: tick 38s linear infinite; }
.ticker span { font: 700 clamp(1.3rem, 3vw, 2rem)/1 var(--display); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); text-transform: uppercase; }
.ticker span:nth-of-type(3n+1) { color: #fff; -webkit-text-stroke: 0; }
.ticker b { color: var(--accent); font-size: 1rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Cartes éclairées sous le doigt / la souris */
.card { position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 108, 255, .22), transparent 60%); }
.card:hover::before { opacity: 1; }
.card .ic { animation: icpulse calc(var(--beat) * 4) ease-out infinite; }
@keyframes icpulse { 0%, 8% { box-shadow: 0 0 0 0 rgba(139, 108, 255, .5); } 30%, 100% { box-shadow: 0 0 0 10px rgba(139, 108, 255, 0); } }
.band { position: relative; overflow: hidden; }
.band::after { content: ''; position: absolute; top: -50%; left: -20%; width: 60%; height: 200%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(139, 108, 255, .07), transparent); animation: sheen 9s ease-in-out infinite; }
@keyframes sheen { 0% { transform: translateX(-60%) rotate(8deg); } 100% { transform: translateX(260%) rotate(8deg); } }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .beam, .ph-flash { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===================== Hero : tout tient dans le premier écran ===================== */
.hero { min-height: calc(100svh - 64px); padding: 28px 0; display: flex; align-items: center; }
.hero-in { width: 100%; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; text-align: left; justify-items: stretch; }
.hero-text { display: grid; justify-items: start; }
.hero .pill { margin-bottom: 20px; }
.hero h1 { max-width: 13ch; margin-bottom: .3em; font-size: clamp(2.4rem, 6.2vw, 5.2rem); }
.hero .lead { margin-bottom: 0; }
.hero .cta { justify-content: flex-start; margin: 26px 0 30px; }
.hero .stats { justify-content: flex-start; gap: 10px 36px; }
.hero-visual { display: grid; justify-items: center; gap: 18px; }
.hero .phone { width: min(230px, 100%); margin: 0; }
.hero .ph-ring { width: 110px; height: 110px; }
.hero .ph-ring b { font-size: 2rem; }
.hero .eq { margin: 0; height: 40px; }

@media (max-width: 860px) {
  .hero { padding: 18px 0 22px; align-items: flex-start; }
  .hero-in { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .hero-text { justify-items: center; }
  .hero .pill { margin-bottom: 14px; font-size: .74rem; white-space: nowrap; max-width: 100%; }
  .hero h1 { font-size: clamp(2rem, 9.4vw, 3rem); max-width: 16ch; }
  .hero .lead { font-size: 1rem; line-height: 1.5; }
  .hero .cta { justify-content: center; margin: 18px 0 16px; gap: 10px; }
  .hero .cta .btn { padding: .8em 1.2em; font-size: .9rem; }
  .hero .stats { justify-content: center; gap: 8px 22px; }
  .hero .stats b { font-size: 1.15rem; }
  .hero .stats span { font-size: .72rem; }
  .hero-visual { grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 16px; }
  .hero .phone { width: 92px; padding: 5px; border-radius: 20px; }
  .hero .phone-screen { border-radius: 16px; gap: 6px; }
  .hero .ph-ring { width: 54px; height: 54px; }
  .hero .ph-ring b { font-size: 1rem; }
  .hero .ph-ring span { font-size: .4rem; }
  .hero .eq { height: 60px; gap: 3px; }
  .hero .eq i { width: 4px; }
}
/* Petits écrans (iPhone SE…) : on garde l'essentiel, sans rien couper */
@media (max-width: 860px) and (max-height: 740px) {
  .hero .pill { display: none; }
  .hero-in { gap: 12px; }
  .hero .phone { width: 66px; padding: 4px; border-radius: 16px; }
  .hero .phone-screen { border-radius: 12px; gap: 4px; }
  .hero .ph-ring { width: 40px; height: 40px; }
  .hero .ph-ring b { font-size: .75rem; }
  .hero .ph-ring span, .hero .ph-dots { display: none; }
  .hero .eq { height: 44px; }
}
@media (max-width: 860px) and (max-height: 580px) { .hero-visual { display: none; } }

/* Défilé des styles en bas du premier écran */
.hero { flex-direction: column; justify-content: center; padding-bottom: 0; }
.hero-in { flex: 1; align-content: center; }
.hero .ticker { width: 100%; margin-top: 22px; padding: 14px 0; background: rgba(8, 8, 10, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 0; }
@media (max-width: 860px) {
  .hero .ticker { margin-top: 14px; padding: 10px 0; }
  .hero .ticker span { font-size: 1.05rem; }
  .hero .ticker-in { gap: 22px; }
}
@media (max-width: 860px) and (max-height: 740px) {
  .hero { padding-top: 10px; }
  .hero .cta { margin: 14px 0 12px; }
  .hero .ticker { margin-top: 10px; padding: 8px 0; }
}
/* Ajustement fin : le premier écran tient pile, défilé compris */
.hero { padding-top: 18px; }
.hero .phone { width: min(210px, calc((100svh - 330px) * .47)); }
@media (max-width: 860px) {
  .hero { padding-top: 12px; }
  .hero .phone { width: 92px; }
  .hero .ticker { margin-top: 10px; }
}
@media (max-width: 860px) and (max-height: 740px) { .hero .phone { width: 66px; } .hero { padding-top: 6px; } }
.hero { min-height: calc(100svh - 65px); } /* 64 px de header + 1 px de bordure */
