@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.otf"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/Inter-Bold.otf"); }
@font-face { font-family: "Inter"; font-weight: 900; font-display: swap; src: url("fonts/InterDisplay-Black.otf"); }

:root { --bg: #0a0203; --panel: #160709; --line: #2e1216; --text: #f5eeee; --muted: #b9a5a6; --accent: #ff2b2b; --accent-dark: #c81616; --max: 1080px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
.red { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
section { padding: 84px 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.kicker { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10,2,3,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 900; font-size: 1.15rem; letter-spacing: -0.03em; text-transform: uppercase; text-decoration: none; }
.logo span { color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: #fff; font-weight: 900; font-size: 1.05rem; letter-spacing: -0.01em; text-transform: uppercase; text-decoration: none; padding: 18px 30px; border: 0; border-radius: 12px; cursor: pointer; transition: transform .15s, background .15s; box-shadow: 0 10px 40px rgba(255,43,43,.3); }
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn.small { padding: 10px 18px; font-size: .85rem; box-shadow: none; border-radius: 9px; }
.btn.big { font-size: 1.2rem; padding: 22px 38px; }
.under { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.buy-msg { display: none; margin-top: 12px; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: 8px; font-size: .9rem; color: #ffd0d0; }

/* hero */
.hero { padding: 64px 0 84px; background: radial-gradient(ellipse 70% 60% at 70% 30%, #4a0a10 0%, rgba(10,2,3,0) 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.phone { justify-self: center; width: min(320px, 78vw); aspect-ratio: 9 / 16; border-radius: 34px; border: 8px solid #1d0a0c; overflow: hidden; background: #000; box-shadow: 0 30px 90px rgba(255,43,43,.28), 0 0 0 1px #3a171b; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 9px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

/* blocks */
.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.num { font-weight: 900; font-size: 2.6rem; color: var(--accent); letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; }
.code { background: #000; border: 1px solid var(--line); border-radius: 14px; padding: 22px; font: 400 .92rem/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-x: auto; color: #e9dcdc; white-space: pre; }
.code b { color: var(--accent); font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.mods { margin-top: 40px; display: grid; gap: 12px; }
.mod { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.mod .n { font-weight: 900; font-size: 1.7rem; color: var(--accent); letter-spacing: -0.04em; }
.mod p { margin: 4px 0 0; color: var(--muted); }
.mod h3 { margin: 0; }

/* offer */
.offer { text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 40%, #4a0a10 0%, rgba(10,2,3,0) 75%); }
.pricebox { max-width: 560px; margin: 36px auto 0; background: var(--panel); border: 2px solid var(--accent); border-radius: 22px; padding: 40px 32px; }
.price { font-weight: 900; font-size: 5.4rem; letter-spacing: -0.05em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--muted); display: block; margin-top: 10px; }
.pricebox .ticks { text-align: left; max-width: 400px; margin-left: auto; margin-right: auto; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 900; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 14px 0 0; max-width: 70ch; }

/* footer + legal pages */
footer { padding: 40px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.doc { max-width: 760px; padding-top: 60px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.3rem; text-transform: none; letter-spacing: -0.02em; margin-top: 2em; }
.doc p, .doc li { color: #d8c9ca; }
.todo { background: #3a2a00; color: #ffe08a; padding: 0 5px; border-radius: 4px; font-weight: 700; }
@media (max-width: 860px) {
  section { padding: 60px 0; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .mod { grid-template-columns: 44px 1fr; gap: 12px; }
  .price { font-size: 4.4rem; }
  .top .btn.small { padding: 9px 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ============================================================
   ANIMATIONS — actives seulement quand anim.js ajoute la classe .anim
   (jamais si le visiteur a demandé moins d'animations).
   ============================================================ */
#scrollbar { position: fixed; left: 0; top: 0; z-index: 40; width: 100%; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* mots des titres */
.anim .kw { display: inline-block; opacity: 0; }
.anim .in .kw, .anim .in.kw { animation: kw .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.anim .in .kw.slam { animation: slam .6s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--d, 0s); }
@keyframes kw { from { opacity: 0; transform: translate(.35em, .08em) skewX(-10deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes slam { 0% { opacity: 0; transform: scale(2.3); filter: blur(18px); } 25% { opacity: 1; } 100% { opacity: 1; transform: scale(1); filter: blur(0); } }

/* apparitions au défilement */
.anim [data-r]:not([data-r="title"]) { opacity: 0; transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .7s; transition-delay: var(--d, 0s); }
.anim [data-r="up"] { transform: translateY(34px); filter: blur(6px); }
.anim [data-r="left"] { transform: translateX(-60px); filter: blur(6px); }
.anim [data-r="pop"] { transform: scale(.9) translateY(20px); filter: blur(8px); }
.anim [data-r].in:not([data-r="title"]) { opacity: 1; transform: none; filter: blur(0); }

/* en-tête */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero canvas.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 2; }
.hero.flash::after { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: .55; } 100% { opacity: 0; } }
.ringfx { position: absolute; z-index: 1; width: 160px; height: 90px; margin: -45px 0 0 -80px; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; pointer-events: none; animation: ring 1s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes ring { to { transform: scale(7); opacity: 0; } }
.phone-wrap { justify-self: center; perspective: 1100px; }
.anim .phone-wrap > div { animation: float 6s ease-in-out infinite; }
.anim .phone { transition: transform .25s ease-out; animation: glow 3.2s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes glow { 0%, 100% { box-shadow: 0 30px 90px rgba(255,43,43,.22), 0 0 0 1px #3a171b; } 50% { box-shadow: 0 30px 120px rgba(255,43,43,.5), 0 0 0 1px #6a2228; } }

/* boutons */
.btn { position: relative; overflow: hidden; }
.anim .btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.anim .btn.big { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 40px rgba(255,43,43,.3), 0 0 0 0 rgba(255,43,43,.5); } 50% { box-shadow: 0 10px 50px rgba(255,43,43,.45), 0 0 0 14px rgba(255,43,43,0); } }
.btn:active { transform: scale(.97); }

/* cartes : halo sous la souris + survol */
.card, .mod, .pricebox { position: relative; overflow: hidden; }
.card::before, .mod::before, .pricebox::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255,43,43,.16), transparent 70%); }
.card:hover::before, .mod:hover::before, .pricebox:hover::before { opacity: 1; }
.anim .card.ready, .anim .mod.ready { transition: transform .25s, border-color .25s, opacity .7s, filter .7s; transition-delay: 0s; }
.anim .card.ready:hover { transform: translateY(-6px); border-color: var(--accent); }
.anim .mod.ready:hover { transform: translateX(8px); border-color: var(--accent); }
.anim .card.in .num { animation: slam .6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--d, 0s) + .25s); transform-origin: 0 50%; display: inline-block; }

/* code : lignes une par une + curseur */
.anim .code .cl { display: inline-block; opacity: 0; transform: translateX(-14px); }
.anim .code.typed .cl { animation: cl .4s ease-out both; animation-delay: var(--d, 0s); }
@keyframes cl { to { opacity: 1; transform: none; } }
.anim .code.typed::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* bandeau défilant */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #000; padding: 18px 0; }
.marquee .track { display: flex; width: max-content; gap: 44px; font-weight: 900; font-size: clamp(1.6rem, 4.2vw, 3rem); letter-spacing: -0.04em; text-transform: uppercase; white-space: nowrap; }
.marquee .track span:nth-child(odd) { color: transparent; -webkit-text-stroke: 1.5px #7a2a30; }
.marquee .track span:nth-child(4n+2) { color: var(--accent); }
.anim .marquee .track { animation: marquee 32s linear infinite; }
.anim .marquee.rev .track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* prix */
.anim .pricebox.slammed .price > span { display: inline-block; animation: thump .5s cubic-bezier(.16,1,.3,1); }
@keyframes thump { 0% { transform: scale(1.35); color: var(--accent); } 100% { transform: scale(1); } }
.anim .pricebox.in { animation: border 3s ease-in-out infinite 1s; }
@keyframes border { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,43,43,0); } 50% { box-shadow: 0 0 70px 0 rgba(255,43,43,.28); } }

/* FAQ */
details[open] p { animation: faq .35s ease-out; }
@keyframes faq { from { opacity: 0; transform: translateY(-8px); } }
summary::after { transition: transform .25s; }
details[open] summary::after { transform: rotate(180deg); }

/* bouton d'achat collant (mobile) */
.stickybuy { display: none; }
@media (max-width: 860px) {
  .stickybuy { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .stickybuy.show { transform: none; }
  .stickybuy .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
