/* Site vitrine Saorya v2 (owner 21/10 : « trop simple, aucune animation »).
   Le moment fort = la carte de France en direct du hero (main.js) ; le reste reste calme.
   Couleurs de l'app (mobile/src/lib/theme.ts), fond plus profond pour faire briller l'or. */
:root {
  --night: #0A1020;
  --navy: #0F1728;
  --slate: #18223A;
  --slate2: #212C47;
  --ink: #F6EEE4;
  --ink2: #B4B1B5;
  --ink3: #8B8A93;
  --gold: #D59B4E;
  --gold-hi: #F2C98A;
  --green: #7FCB9B;
  --coral: #EB9784;
  --line: rgba(246, 238, 228, .09);
  --pad: clamp(16px, 5vw, 64px);
  --max: 1160px;
}
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: optional;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: optional;
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 17px/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h2 { font-size: clamp(30px, 3.9vw, 50px); max-width: 16ch; }
p { margin: 0; }
section { position: relative; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: 68px; display: flex; align-items: center; gap: 24px;
  padding: 0 var(--pad); background: rgba(10, 16, 32, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; color: var(--ink2); font-size: 15px; font-weight: 500; transition: color .15s; }
.links a:hover { color: var(--ink); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; font-weight: 700;
  border-radius: 16px; background: var(--gold); color: var(--night); transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--gold-hi); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn-store { min-height: 60px; padding: 10px 24px 10px 18px; font-size: 17px; line-height: 1.15; box-shadow: 0 14px 40px -14px rgba(213, 155, 78, .7); }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store span { display: flex; flex-direction: column; align-items: flex-start; }
.btn-store small { font-weight: 600; font-size: 12px; opacity: .78; }
.btn-off { background: var(--slate); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.btn-off:hover { transform: none; background: var(--slate); }

/* ---------- hero : carte de France en direct ---------- */
.hero { min-height: 100svh; padding: 108px var(--pad) 56px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 72% 45%, rgba(213, 155, 78, .13), transparent 70%), radial-gradient(50% 60% at 10% 90%, rgba(36, 56, 110, .45), transparent 70%);
}
/* scene : la France a gauche, le telephone pose dessus a droite */
.stage { position: relative; width: 100%; max-width: 760px; aspect-ratio: 1 / .86; justify-self: end; }
.map { position: absolute; left: 0; top: 0; width: 72%; height: 100%; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.live-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--ink2); background: rgba(24, 34, 58, .8); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: beat 2s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(127, 203, 155, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(127, 203, 155, 0); } }
.hero h1 { max-width: 12ch; font-size: clamp(40px, 4.6vw, 66px); }
.lead { margin-top: 24px; max-width: 50ch; color: var(--ink2); font-size: clamp(17px, 1.45vw, 19.5px); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine { margin-top: 14px; color: var(--ink3); font-size: 14px; }
.map-legend { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 34px auto 0; display: flex; align-items: center; gap: 8px; color: var(--ink3); font-size: 13px; }
.lg { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lg-on { background: var(--gold); }
.lg-store { background: var(--green); margin-left: 12px; }

/* telephone : ecran verrouille, les notifs y tombent */
.device {
  position: absolute; right: 0; bottom: 0; width: min(300px, 44%); aspect-ratio: 9 / 19.2; border-radius: 52px; padding: 12px;
  background: linear-gradient(160deg, #1B2643, #070B16 70%); box-shadow: 0 0 0 1.5px #2C3756, 0 50px 110px -40px #000, 0 0 140px -50px rgba(213, 155, 78, .55);
  overflow: hidden; isolation: isolate;
}
.device::before {
  content: ""; position: absolute; inset: 12px; border-radius: 42px; z-index: -1;
  background: radial-gradient(120% 70% at 30% 10%, #2C4A86 0%, #15203B 45%, #0B1122 100%);
}
.island { width: 32%; height: 28px; margin: 6px auto 0; border-radius: 20px; background: #000; }
.lock { text-align: center; margin-top: 26px; }
.lock-date { font-size: 15px; font-weight: 600; color: rgba(246, 238, 228, .85); }
.lock-time { margin-top: 6px; font-size: clamp(44px, 5vw, 66px); font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.notifs { position: absolute; left: 14px; right: 14px; bottom: 26px; display: flex; flex-direction: column-reverse; gap: 8px; }
.notif {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 18px;
  background: rgba(246, 241, 234, .94); color: #141C2E; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  animation: drop .55s cubic-bezier(.2, .9, .3, 1.15) both; transform-origin: top center;
}
.notif.fresh { box-shadow: 0 0 0 2px var(--gold), 0 14px 34px -12px rgba(0, 0, 0, .7); }
.notif img { width: 34px; height: 34px; border-radius: 9px; }
.notif b { display: block; font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif span { display: block; font-size: 12.5px; line-height: 1.3; color: #333B4D; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif i { font-style: normal; font-size: 10.5px; color: #6B7080; align-self: start; white-space: nowrap; }
.notif.out { animation: fade .4s ease both; }
@keyframes drop { from { opacity: 0; transform: translateY(-26px) scale(.96); } }
@keyframes fade { to { opacity: 0; transform: scale(.96); } }

/* ---------- bandeau des formats ---------- */
.ribbon { border-block: 1px solid var(--line); background: var(--navy); overflow: hidden; padding: 18px 0; }
.ribbon-track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.ribbon-track span { padding: 0 28px; color: var(--ink2); font-weight: 600; font-size: 16px; white-space: nowrap; }
.ribbon-track span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 28px; border-radius: 50%; background: var(--gold); vertical-align: middle; transform: translateY(-2px); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- la chaine ---------- */
.chain { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--pad) 0; }
.chain-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.chain-steps::before {
  content: ""; position: absolute; left: 26px; right: 26px; top: 26px; height: 2px;
  background: linear-gradient(90deg, var(--gold) var(--p, 0%), rgba(246, 238, 228, .12) var(--p, 0%)); transition: --p 1.6s;
}
.chain-steps li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.step-n {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 20px; position: relative; z-index: 1;
  background: var(--night); color: var(--ink3); box-shadow: inset 0 0 0 2px var(--slate2); transition: background .4s, color .4s, box-shadow .4s;
}
.chain-steps li.on .step-n { background: var(--gold); color: var(--night); box-shadow: 0 0 0 6px rgba(213, 155, 78, .18); }
.chain-steps b { font-size: 21px; margin-top: 10px; }
.chain-steps p { color: var(--ink2); font-size: 16px; max-width: 32ch; }
.mini { margin-top: 8px; padding: 14px 16px; border-radius: 16px; background: var(--slate); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 64px; }
.mini-detect span { color: var(--ink3); }
.mini-detect b { margin: 0 0 0 auto; font-size: 18px; font-variant-numeric: tabular-nums; }
.mini-check span { font-weight: 700; font-size: 18px; }
.mini-check i { font-style: normal; margin-left: auto; color: var(--green); font-weight: 600; }
.mini-notif { background: rgba(246, 241, 234, .95); color: #141C2E; }
.mini-notif img { border-radius: 7px; }
.mini-notif span { display: flex; flex-direction: column; line-height: 1.25; font-size: 13.5px; }
.mini-notif b { margin: 0; font-size: 14px; }

/* ---------- blocs texte + demo ---------- */
.split { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.split-rev .split-text { order: 2; }
.split-text { display: flex; flex-direction: column; gap: 18px; }
.split-text p { color: var(--ink2); max-width: 46ch; }

.tag-demo, .count-card, .value-card {
  border-radius: 28px; padding: clamp(22px, 3vw, 32px); background: linear-gradient(160deg, var(--slate), var(--navy));
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px #000;
}
.tag-head { display: flex; align-items: center; gap: 14px; }
.tag-thumb { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; color: var(--night); background: linear-gradient(140deg, var(--gold-hi), var(--gold)); flex: none; }
.tag-name { font-weight: 700; font-size: 18px; }
.tag-ref { color: var(--ink3); font-size: 14.5px; }
.tag-label { display: block; margin-top: 26px; color: var(--ink2); font-size: 14.5px; font-weight: 600; }
.tag-price { font-size: clamp(44px, 5vw, 58px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 4px; }
input[type="range"] { width: 100%; margin: 14px 0 18px; accent-color: var(--gold); height: 30px; cursor: pointer; }
.verdict { padding: 14px 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 2px; background: rgba(127, 203, 155, .12); transition: background .25s; }
.verdict b { font-size: 18px; color: var(--green); transition: color .25s; }
.verdict span { color: var(--ink2); font-size: 15px; }
.verdict[data-v="cher"] { background: rgba(213, 155, 78, .13); }
.verdict[data-v="cher"] b { color: var(--gold-hi); }
.verdict[data-v="revendeur"] { background: rgba(235, 151, 132, .12); }
.verdict[data-v="revendeur"] b { color: var(--coral); }

.count-label, .value-label { color: var(--ink3); font-size: 14.5px; font-weight: 600; }
.count-name { font-size: 22px; font-weight: 700; margin-top: 4px; }
.count-clock { font-size: clamp(40px, 5vw, 58px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--gold-hi); margin-top: 14px; line-height: 1.1; }
.count-bar { height: 6px; border-radius: 6px; background: var(--slate2); margin-top: 22px; overflow: hidden; }
.count-bar span { display: block; height: 100%; width: 40%; background: var(--gold); border-radius: 6px; }

.value-num { font-size: clamp(44px, 5vw, 58px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.value-gain { color: var(--green); font-weight: 600; margin-top: 4px; }
.spark { width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.spark-line { stroke-dasharray: 420; stroke-dashoffset: 420; }
.spark-fill { opacity: 0; transition: opacity .8s .9s; }
.value-card.on .spark-line { animation: draw 1.6s ease forwards; }
.value-card.on .spark-fill { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- ecrans ---------- */
.screens { padding: clamp(80px, 11vw, 150px) 0 0; }
.screens h2 { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.screens-row { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px var(--pad) 26px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); scroll-padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); scrollbar-width: thin; scrollbar-color: var(--slate2) transparent; }
.screens-row img { flex: none; width: clamp(200px, 22vw, 270px); height: auto; border-radius: 26px; scroll-snap-align: start; background: var(--slate); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--pad) 0; }
.faq h2 { margin-bottom: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 600; font-size: 18.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq details[open] > div { grid-template-rows: 1fr; }
.faq details > div > p { overflow: hidden; color: var(--ink2); padding-bottom: 0; max-width: 62ch; }
.faq details[open] > div > p { padding-bottom: 22px; }

/* ---------- fin ---------- */
.final { margin-top: clamp(90px, 12vw, 160px); padding: clamp(70px, 10vw, 120px) var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 34px; background: radial-gradient(60% 80% at 50% 100%, rgba(213, 155, 78, .16), transparent 70%); border-top: 1px solid var(--line); }
.final h2 { max-width: 18ch; }

footer { border-top: 1px solid var(--line); padding: 34px var(--pad) calc(34px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
footer nav a { color: var(--ink2); text-decoration: none; font-size: 15px; }
footer nav a:hover { color: var(--ink); }
footer p { color: var(--ink3); font-size: 13px; max-width: 62ch; }

/* ---------- tablette / telephone ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .nav { justify-content: space-between; }
  .hero { padding-top: 100px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .stage { justify-self: center; margin-top: 8px; max-width: 460px; aspect-ratio: auto; padding-top: 26%; }
  .map { left: -12%; top: -4%; width: 124%; height: auto; aspect-ratio: 1 / .9; opacity: .75; }
  .device { position: relative; right: auto; bottom: auto; margin: 0 auto; width: min(300px, 82%); }
  .lock-time { font-size: clamp(40px, 12vw, 60px); }
  .chain-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .chain-steps::before { left: 26px; right: auto; top: 26px; bottom: 26px; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold) var(--p, 0%), rgba(246, 238, 228, .12) var(--p, 0%)); }
  .chain-steps li { padding-left: 74px; }
  .step-n { position: absolute; left: 0; top: 0; }
  .chain-steps b { margin-top: 12px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-rev .split-text { order: 0; }
}
@media (max-width: 520px) {
  .ctas .btn-store { width: 100%; justify-content: flex-start; }
  .map-legend { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .spark-line { stroke-dashoffset: 0; }
  .spark-fill { opacity: 1; }
}

/* ---------- entree en scene (main.js) ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: #05080F; display: grid; place-items: center; overflow: hidden; transition: opacity .7s ease .1s; }
.intro[hidden] { display: none; }
.intro.gone { opacity: 0; pointer-events: none; }
.intro-count { text-align: center; transition: transform .5s cubic-bezier(.6, 0, .4, 1), opacity .3s; }
.intro.boom .intro-count { transform: scale(1.6); opacity: 0; }
.intro-label { color: var(--ink3); font-weight: 600; font-size: clamp(15px, 1.6vw, 20px); letter-spacing: .02em; }
.intro-digits {
  font-weight: 700; font-size: clamp(88px, 22vw, 260px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFE3B0, var(--gold) 60%, #8A5A22); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 40px rgba(213, 155, 78, .45));
}
.intro-digits.tick { animation: tick .42s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes tick { from { transform: scale(1.18); filter: drop-shadow(0 0 80px rgba(242, 201, 138, .9)); } }
.intro-flash { position: absolute; inset: -20%; background: radial-gradient(circle, rgba(255, 236, 200, .95), rgba(213, 155, 78, .5) 25%, transparent 60%); opacity: 0; transform: scale(.2); pointer-events: none; }
.intro.boom .intro-flash { animation: flash .9s ease-out forwards; }
@keyframes flash { 15% { opacity: 1; } to { opacity: 0; transform: scale(1.6); } }
.intro-ring { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; border: 2px solid var(--gold-hi); opacity: 0; pointer-events: none; }
.intro.boom .intro-ring { animation: ring 1.1s cubic-bezier(.1, .7, .3, 1) forwards; }
.intro.boom .intro-ring.r2 { animation-delay: .14s; border-color: var(--green); }
@keyframes ring { 0% { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(40); } }
.intro-notif { --pop: 1.25; position: absolute; left: 50%; top: 50%; width: min(360px, 86vw); margin: 0; transform: translate(-50%, -50%) scale(.4); opacity: 0; animation: none; }
.intro.boom .intro-notif { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) .12s forwards; box-shadow: 0 0 0 2px var(--gold), 0 0 80px rgba(242, 201, 138, .6); }
@keyframes pop { to { opacity: 1; transform: translate(-50%, -50%) scale(var(--pop)); } }
@media (min-width: 980px) { .intro-notif { --pop: 1.75; } }
.intro-skip { position: absolute; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); background: none; border: 1px solid var(--line); color: var(--ink3); font: 600 14px "Instrument Sans", sans-serif; padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.intro-skip:hover { color: var(--ink); }
/* la page arrive derriere l'intro : texte du hero en cascade (un seul moment orchestre) */
body.intro-on .hero-text > * { opacity: 0; transform: translateY(18px); }
body.intro-done .hero-text > * { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); opacity: 1; transform: none; }
body.intro-done .hero-text > *:nth-child(2) { transition-delay: .08s; }
body.intro-done .hero-text > *:nth-child(3) { transition-delay: .18s; }
body.intro-done .hero-text > *:nth-child(4) { transition-delay: .28s; }
body.intro-done .hero-text > *:nth-child(5) { transition-delay: .36s; }

/* ---------- titre holo, comme une carte brillante (suit la souris / l'inclinaison) ---------- */
.holo {
  --mx: 50%; --my: 40%;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 22%),
    linear-gradient(115deg, var(--ink) 30%, #F2C98A 42%, #9FE3C9 50%, #B6A6FF 57%, #F2C98A 64%, var(--ink) 76%);
  background-size: 100% 100%, 260% 100%;
  background-position: 0 0, calc(var(--mx) * 1.4) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- telephone en 3D ---------- */
.stage { perspective: 1400px; }
.device { transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)); transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
.glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .16), transparent 45%); mix-blend-mode: screen; }
@media (max-width: 980px) { .device { --ry: 0deg; --rx: 0deg; } }

/* =================== v4 : la suite (owner 21/10 : « la suite, c'est pas top ») =================== */

/* ---------- 1. scrollytelling ---------- */
.scrolly { height: 420vh; height: 420svh; }
.scrolly-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.scrolly-pin::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 55% at 70% 50%, rgba(213, 155, 78, .12), transparent 70%); pointer-events: none; }
.scrolly-inner { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 80px var(--pad) 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.scrolly-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 6px; }
.scrolly-steps li { padding: 16px 0 16px 22px; border-left: 2px solid var(--slate2); opacity: .38; transition: opacity .4s, border-color .4s; }
.scrolly-steps li.on { opacity: 1; border-color: var(--gold); }
.scrolly-steps b { display: block; font-size: 21px; }
.scrolly-steps p { color: var(--ink2); font-size: 16px; max-width: 40ch; margin-top: 4px; }
.scrolly-bar { height: 3px; border-radius: 3px; background: var(--slate2); margin-top: 26px; max-width: 360px; overflow: hidden; }
.scrolly-bar span { display: block; height: 100%; width: 0; background: var(--gold); }
.scrolly-phone { justify-self: center; }
.device-flat { position: relative; right: auto; bottom: auto; width: min(320px, 70vw); transform: none; }
.screen-stack { position: absolute; inset: 12px; border-radius: 40px; overflow: hidden; background: #F6F1EA; }
.screen-stack > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .3, 1); }
.screen-stack > .on { opacity: 1; transform: none; }
.lock-layer { background: radial-gradient(120% 70% at 30% 10%, #2C4A86 0%, #15203B 45%, #0B1122 100%); color: var(--ink); text-align: center; padding-top: 8px; }
.lock-layer .lock-date { margin-top: 30px; }
.lock-layer .lock-time { font-size: 64px; }
.lock-notifs { position: absolute; left: 12px; right: 12px; bottom: 30px; display: grid; gap: 8px; text-align: left; }
.lock-layer.on .notif { animation: drop .55s cubic-bezier(.2, .9, .3, 1.15) both; }
.lock-layer.on .notif:nth-child(2) { animation-delay: .25s; }

/* ---------- 2. fil Live ---------- */
.feed-sec { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 130px) var(--pad) 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.feed-head { display: flex; flex-direction: column; gap: 18px; }
.feed-head p { color: var(--ink2); max-width: 44ch; }
.feed { border-radius: 28px; background: #F6F1EA; color: #141C2E; padding: 18px 16px 8px; box-shadow: 0 50px 100px -50px #000, 0 0 0 1px rgba(255, 255, 255, .06); height: 480px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.feed-top { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: #5F6371; padding: 0 6px 12px; }
.feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 12px; }
.feed li.new { animation: slideIn .6s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-22px); } }
.fmt { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.feed .where { font-size: 12.5px; color: #8E8C93; }
.feed .name { font-weight: 600; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .state { font-size: 13.5px; font-weight: 700; color: #2E8B57; }
.feed .state em { font-style: normal; color: #5F6371; font-weight: 600; }
.feed .ago { font-size: 12.5px; font-weight: 700; color: #2E8B57; font-variant-numeric: tabular-nums; align-self: start; }

/* ---------- 3. prix en jauge ---------- */
.price-sec { margin-top: clamp(80px, 10vw, 130px); padding: clamp(70px, 9vw, 120px) var(--pad); transition: background .5s; background: radial-gradient(60% 80% at 75% 50%, rgba(127, 203, 155, .1), transparent 70%); }
.price-sec[data-v="cher"] { background: radial-gradient(60% 80% at 75% 50%, rgba(213, 155, 78, .14), transparent 70%); }
.price-sec[data-v="revendeur"] { background: radial-gradient(60% 80% at 75% 50%, rgba(235, 151, 132, .14), transparent 70%); }
.price-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.price-text { display: flex; flex-direction: column; gap: 18px; }
.price-text p { color: var(--ink2); max-width: 46ch; }
.gauge { position: relative; height: 12px; margin-top: 18px; display: flex; border-radius: 12px; }
.gauge .z { height: 100%; }
.gauge .z1 { flex: 21; background: var(--green); border-radius: 12px 0 0 12px; }
.gauge .z2 { flex: 14; background: var(--gold); }
.gauge .z3 { flex: 65; background: var(--coral); border-radius: 0 12px 12px 0; opacity: .85; }
.mark { position: absolute; top: 50%; left: 19%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(10, 16, 32, .9), 0 0 24px rgba(246, 238, 228, .5); transition: left .12s ease-out; }
.gauge-legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink3); margin-top: 10px; }
/* le curseur EST la jauge : vert = prix conseille (+5 %), or = jusqu a +20 %, corail = prix de revendeur (35 -> 140 EUR) */
.price-sec input.gauge-range { -webkit-appearance: none; appearance: none; height: 12px; border-radius: 12px; margin: 28px 0 6px; padding: 0;
  background: linear-gradient(90deg, var(--green) 0 21.6%, var(--gold) 21.6% 29.5%, var(--coral) 29.5% 100%); }
.gauge-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); cursor: grab;
  box-shadow: 0 0 0 5px rgba(10, 16, 32, .9), 0 0 28px rgba(246, 238, 228, .6); }
.gauge-range::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--ink); cursor: grab; box-shadow: 0 0 0 5px rgba(10, 16, 32, .9), 0 0 28px rgba(246, 238, 228, .6); }
.gauge-legend { position: relative; height: 18px; margin-bottom: 22px; }
.gauge-legend span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; color: var(--ink3); }
.gauge-legend span:last-child { transform: translateX(-100%); }
.gauge-legend span.l0 { left: 0; transform: none; }
.gauge-legend span.l20 { left: 29.5%; }
.gauge-legend span.lr { left: 100%; }

/* ---------- 4. mosaique ---------- */
.bento-sec { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 130px) var(--pad) 0; }
.bento { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.tile { border-radius: 26px; padding: 22px; background: linear-gradient(160deg, var(--slate), var(--navy)); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; overflow: hidden; }
.tile .vis { flex: 1; min-height: 130px; position: relative; display: flex; flex-direction: column; justify-content: center; margin-bottom: 18px; }
.tile h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.tile p { color: var(--ink2); font-size: 15px; margin-top: 4px; }
.t-island { grid-column: span 2; }
.t-coll { grid-column: span 3; }
.di { align-self: center; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 30px; background: #000; color: var(--ink); width: min(420px, 100%); overflow: hidden; white-space: nowrap;
  clip-path: inset(0 calc(50% - 64px) round 30px); transition: clip-path .7s cubic-bezier(.3, 1.2, .5, 1); }
.di.open { clip-path: inset(0 0 round 30px); }
.di-dot { transition: transform .7s cubic-bezier(.3, 1.2, .5, 1); transform: translateX(var(--shift, 0px)); }
.di.open .di-dot { transform: none; }
.di-timer { transition: transform .7s cubic-bezier(.3, 1.2, .5, 1); transform: translateX(calc(-1 * var(--shift, 0px))); }
.di.open .di-timer { transform: none; }
.di-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--green); animation: beat 2s infinite; }
.di-txt { font-weight: 600; font-size: 14px; opacity: 0; transition: opacity .3s .3s; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.di.open .di-txt { opacity: 1; }
.di-timer { margin-left: auto; color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.barcode { align-self: center; width: 70%; height: 90px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 14px, transparent 14px 16px); border-radius: 4px; opacity: .9; }
.laser { position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: var(--coral); box-shadow: 0 0 14px 2px rgba(235, 151, 132, .8); animation: laser 2.2s ease-in-out infinite; }
@keyframes laser { 0%, 100% { transform: translateY(-46px); } 50% { transform: translateY(46px); } }
.tile .depts { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 10px; justify-content: center; }
.depts span { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 18px; background: var(--slate2); color: var(--ink2); }
.depts span.hot { background: rgba(127, 203, 155, .16); color: var(--green); animation: hot 2.4s ease-in-out infinite; }
.depts span.hot:nth-child(5) { animation-delay: 1.2s; }
@keyframes hot { 50% { box-shadow: 0 0 0 6px rgba(127, 203, 155, .15); } }
.tile .tc-label { color: var(--ink3); font-size: 14px; font-weight: 600; margin: 0; }
.tile .tc-clock { white-space: nowrap; font-size: clamp(28px, 2.9vw, 42px); font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-top: 4px; }
.tile.value-card { border-radius: 26px; padding: 22px; }
.tile.t-coll .value-num { color: var(--ink); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; font-size: clamp(34px, 3.6vw, 46px); }
.t-coll .spark { margin-top: 8px; max-height: 110px; }
.tile .cote-badge { font-size: clamp(56px, 6vw, 78px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--green); text-align: center; }
.tile .cote-sub { font-size: 16px; text-align: center; color: var(--ink2); font-weight: 600; }

/* ---------- 5. double defilement ---------- */
.marquee-sec { padding: clamp(80px, 10vw, 130px) 0 0; }
.marquee-sec h2 { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.marquee { overflow: hidden; margin-top: 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: 18px; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-track img { width: clamp(190px, 18vw, 240px); height: auto; border-radius: 24px; flex: none; }

/* ---------- 6. fin : pluie de notifs ---------- */
.final { overflow: hidden; }
.final h2, .final .btn { position: relative; z-index: 2; }
.rain { position: absolute; inset: 0; z-index: 1; pointer-events: none; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, transparent 30%, #000 75%); mask-image: radial-gradient(70% 70% at 50% 50%, transparent 30%, #000 75%); }
.rain .notif { position: absolute; top: 0; width: 250px; opacity: .55; animation: fall linear infinite; }
@keyframes fall { from { transform: translateY(-140px) rotate(var(--r, 0deg)); } to { transform: translateY(820px) rotate(var(--r, 0deg)); } }

@media (max-width: 980px) {
  .scrolly { height: 400vh; height: 400svh; }
  .scrolly-inner { grid-template-columns: minmax(0, 1fr); padding-top: 76px; gap: 18px; }
  .scrolly-text h2 { font-size: clamp(26px, 7vw, 34px); }
  .scrolly-steps { margin-top: 14px; }
  .scrolly-steps { display: grid; }
  .scrolly-steps li { grid-area: 1 / 1; padding: 6px 0 6px 16px; opacity: 0; visibility: hidden; transition: opacity .35s; }
  .scrolly-steps li.on { opacity: 1; visibility: visible; }
  .scrolly-bar { margin-top: 10px; }
  .scrolly-phone { order: -1; }
  .device-flat { width: min(270px, 66vw); }
  .lock-notifs .notif { grid-template-columns: 30px minmax(0, 1fr); padding: 9px 10px; }
  .lock-notifs .notif i { display: none; }
  .lock-notifs .notif img { width: 30px; height: 30px; }
  .feed-sec, .price-inner { grid-template-columns: minmax(0, 1fr); }
  .feed { height: 420px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .t-island, .t-coll { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .scrolly { height: auto; }
  .scrolly-pin { position: relative; height: auto; }
  .rain { display: none; }
}
