/* Page de vente (landing.php). Direction : salle de montage — fond noir, grande typographie, repères de
   timecode, filets fins plutôt que cartes. Une seule teinte vive (orange « enregistrement ») sur une base
   noir et blanc cassé ; l'indigo de la marque reste dans le logo.
   Propriétés logiques (arabe de droite à gauche), aucune dépendance, aucun style en ligne. */

:root {
  color-scheme: dark;
  --bg: #0A0A0B;
  --bg-2: #101012;
  --panel: #151517;
  --ink: #F4F1EA;
  --ink-2: #B7B3A9;
  --ink-3: #8F8C83;
  --line: rgba(244, 241, 234, .11);
  --line-2: rgba(244, 241, 234, .24);
  --hot: #FF5A1F;
  --hot-2: #FFB03B;
  --hot-soft: rgba(255, 90, 31, .14);
  --display: "Segoe UI Variable Display", "SF Pro Display", -apple-system, "Inter", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block-start: 88px; background: var(--bg); overflow-x: clip; }
body {
  margin: 0; overflow-x: hidden; overflow-x: clip;
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.55;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
html:lang(ar) body { font-family: var(--font-ar); line-height: 1.8; }

h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--hot); color: #0A0A0B; }
[hidden] { display: none !important; }
body > svg:first-child { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.logo-bg { fill: #4F46E5; stroke: none; }
.logo-fg { fill: #FFFFFF; stroke: #FFFFFF; }
.logo-wave { fill: none; stroke: #FFFFFF; }
.logo-wave-1 { opacity: .75; }
.logo-wave-2 { opacity: .45; }

.skip { position: fixed; inset-block-start: -100px; inset-inline-start: 16px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; }
.skip:focus { inset-block-start: 12px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- Typographie ---------- */

h1, h2 { font-family: var(--display); font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.5rem); line-height: .98; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -.04em; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
html:lang(ar) :is(h1, h2, h3) { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.3; }
html:lang(ar) h1 { font-size: clamp(2.25rem, 5.6vw, 4.75rem); }
.lead { font-size: clamp(1.0625rem, .7vw + .95rem, 1.375rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
html:lang(ar) .lead { line-height: 1.85; }
.fine { font-size: .8125rem; line-height: 1.55; color: var(--ink-3); }
.mono, .tag { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
html:lang(ar) :is(.mono, .tag) { font-family: var(--font-ar); letter-spacing: 0; font-size: .9375rem; }
.tag { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.rec { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--hot); animation: rec 1.8s ease-out infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 90, 31, 0); } }

/* ---------- Boutons ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; overflow: hidden;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; white-space: nowrap;
  transition: transform .5s var(--out), background-color .25s, color .25s, box-shadow .35s;
}
.btn .icon { width: 20px; height: 20px; transition: transform .5s var(--out); }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--ink); color: #0A0A0B; }
.btn-solid:hover { background: var(--hot); box-shadow: 0 14px 44px rgba(255, 90, 31, .34); }
.btn-solid:hover .icon { transform: translateX(4px); }
[dir="rtl"] .btn-solid:hover .icon { transform: scaleX(-1) translateX(4px); }
.btn-line { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); background: rgba(244, 241, 234, .06); }
.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 1.0625rem; }
.btn-xl { min-height: 68px; padding: 20px 40px; font-size: 1.1875rem; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Barre haute ---------- */

.progress { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 40; height: 2px; background: var(--hot); transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); }
[dir="rtl"] .progress { transform-origin: 100% 50%; }
.nav { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 30; border-block-end: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.nav.is-scrolled { background: rgba(10, 10, 11, .9); border-color: var(--line); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-scrolled { background: rgba(10, 10, 11, .66); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); }
}
.nav-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.1875rem; letter-spacing: -.02em; }
html:lang(ar) .brand { font-family: var(--font-ar); letter-spacing: 0; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.nav-links { display: none; gap: 30px; margin-inline-start: 22px; }
.nav-links a { position: relative; color: var(--ink-2); font-size: .9375rem; font-weight: 600; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -6px; height: 1px; background: var(--hot); transform: scaleX(0); transition: transform .4s var(--out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav-login { display: none; padding: 8px 12px; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.nav-login:hover { color: var(--ink); }
/* Choix de la langue : trois boutons toujours visibles, la langue en cours en clair. */
.langs { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); direction: ltr; }
.langs a { display: grid; place-items: center; min-width: 40px; min-height: 34px; padding-inline: 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); transition: background-color .2s, color .2s; }
.langs a[lang="ar"] { font-family: var(--font-ar); letter-spacing: 0; font-size: .9375rem; }
.langs a:hover { color: var(--ink); background: rgba(244, 241, 234, .1); }
.langs a[aria-current="true"] { background: var(--ink); color: #0A0A0B; }
.langs-foot a { min-width: 48px; min-height: 40px; }
@media (max-width: 479px) { .nav .brand bdi { display: none; } .nav-in { gap: 10px; } }
@media (min-width: 560px) { .nav-login { display: inline-block; } }
@media (min-width: 940px) { .nav-links { display: flex; } }

/* ---------- Ouverture ---------- */

.hero { position: relative; padding-block: clamp(110px, 15vh, 170px) clamp(28px, 4vw, 48px); isolation: isolate; overflow: hidden; }
.grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; background-position: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 10%, transparent 75%);
}
.hero-in { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-copy > * + * { margin-block-start: 22px; }
.hero-copy h1 { margin-block-start: 18px; }
.hero-copy .lead { max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }
.hero-note { font-size: .875rem; color: var(--ink-3); }

/* Titre : chaque mot monte de derrière un cache. La seconde phrase est en dégradé orange. */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block-end: .14em; margin-block-end: -.14em; }
.split .w > span { display: inline-block; }
.split .hl > span { color: transparent; background: linear-gradient(100deg, var(--hot) 10%, var(--hot-2) 90%); -webkit-background-clip: text; background-clip: text; }
.js .split .w > span { transform: translateY(110%); animation: word .9s var(--out) forwards; }
.js .split .w:nth-child(2) > span { animation-delay: .05s; }
.js .split .w:nth-child(3) > span { animation-delay: .1s; }
.js .split .w:nth-child(4) > span { animation-delay: .15s; }
.js .split .w:nth-child(5) > span { animation-delay: .2s; }
.js .split .w:nth-child(6) > span { animation-delay: .25s; }
.js .split .w:nth-child(7) > span { animation-delay: .3s; }
.js .split .w:nth-child(8) > span { animation-delay: .35s; }
.js .split .w:nth-child(9) > span { animation-delay: .4s; }
.js .split .w:nth-child(10) > span { animation-delay: .45s; }
.js .split .w:nth-child(11) > span { animation-delay: .5s; }
.js .split .w:nth-child(n+12) > span { animation-delay: .55s; }
@keyframes word { to { transform: none; } }
.js .rise { opacity: 0; transform: translateY(22px); animation: rise 1s var(--out) forwards; }
.js .rise-1 { animation-delay: .45s; }
.js .rise-2 { animation-delay: .6s; }
.js .rise-3 { animation-delay: .75s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* La photo envoyée et le téléphone qui joue la pub. La scène s'incline légèrement sous le pointeur. */
.hero-art { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); align-items: center; max-width: 560px; margin-inline: auto; padding-block-end: 22px; perspective: 1200px; direction: ltr; }
.hero-art::before { content: ""; position: absolute; inset: -12% -18%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 90, 31, .2), transparent 72%); }
.shot, .phone { position: relative; transition: transform .6s var(--out); }
.shot { z-index: 2; margin-inline-end: -14%; margin-block-start: 30%; transform: rotate(-6deg) rotateY(calc(var(--ry, 0) * 1deg)) rotateX(calc(var(--rx, 0) * 1deg)); }
.shot img { border-radius: 18px; box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px rgba(0, 0, 0, .6); }
.shot .scan { position: absolute; inset-inline: 0; inset-block-start: 0; height: 26%; border-radius: 18px 18px 0 0; background: linear-gradient(to bottom, transparent, rgba(255, 90, 31, .28)); border-block-end: 2px solid var(--hot); animation: scan 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 0% { transform: translateY(-100%); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(286%); opacity: 1; } 85%, 100% { transform: translateY(286%); opacity: 0; } }
.shot figcaption, .phone figcaption {
  position: absolute; inset-block-end: -16px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
html:lang(ar) :is(.shot, .phone) figcaption { font-family: var(--font-ar); letter-spacing: 0; font-size: .8125rem; }
.phone figcaption { background: var(--hot); color: #0A0A0B; box-shadow: none; font-weight: 700; }
.phone { justify-self: end; width: 100%; max-width: 300px; transform: rotateY(calc(var(--ry, 0) * 1.6deg)) rotateX(calc(var(--rx, 0) * 1.6deg)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.phone-screen { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 34px; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 9px #161618, 0 0 0 10px var(--line-2), 0 50px 100px rgba(0, 0, 0, .7); }
.phone-screen video { width: 100%; height: 100%; object-fit: cover; }
.tc { position: absolute; inset-block-start: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .55); font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; color: #FFFFFF; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tc b { font-weight: 600; }

@media (min-width: 980px) {
  .hero-in { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
  .hero-art { margin-inline: 0; justify-self: end; }
}

/* Quatre repères chiffrés, séparés par des filets */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-block-start: clamp(48px, 7vw, 96px); border-block-start: 1px solid var(--line); }
.facts > div { padding-block: 22px; border-block-end: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
html:lang(ar) .facts dt { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.35; }
.facts dd { margin-block-start: 8px; font-size: .875rem; color: var(--ink-3); line-height: 1.45; }
@media (min-width: 860px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .facts > div { padding-inline: 24px; border-block-end: 0; border-inline-start: 1px solid var(--line); }
  .facts > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
}

/* ---------- Bandeau défilant ---------- */

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; color: var(--ink); }
html:lang(ar) .marquee span { font-family: var(--font-ar); letter-spacing: 0; }
.marquee span:nth-of-type(2n) { color: var(--ink-3); }
.marquee i { width: 8px; height: 8px; flex: none; background: var(--hot); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.band { padding-block: clamp(72px, 11vw, 150px); }
.head { max-width: 820px; margin-block-end: clamp(36px, 5vw, 64px); }
.head > * + * { margin-block-start: 18px; }

/* Exemple réel : la vidéo et sa table de montage */
.deck { display: grid; gap: 28px; align-items: center; }
.deck-view { position: relative; justify-self: center; width: min(100%, 300px); }
.deck-view video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px rgba(0, 0, 0, .6); }
.deck-play { position: absolute; inset-block-end: 16px; inset-inline-end: 16px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #0A0A0B; transition: transform .4s var(--out), background-color .25s; }
.deck-play:hover { transform: scale(1.08); background: var(--hot); }
.deck-play[aria-pressed="true"] { background: var(--hot); }
.deck-side > * + * { margin-block-start: 16px; }
.specs { display: inline-block; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--ink-2); }
html:lang(ar) .specs { font-family: var(--font-ar); letter-spacing: 0; font-size: .875rem; }

.tl { --name: 104px; --pad: 18px; position: relative; padding: var(--pad); border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); direction: ltr; overflow: hidden; }
.tl-ruler { display: flex; justify-content: space-between; margin-inline-start: var(--name); padding-block-end: 12px; font-family: var(--mono); font-size: .6875rem; color: var(--ink-3); border-block-end: 1px dashed var(--line-2); }
.tl-row { display: grid; grid-template-columns: var(--name) minmax(0, 1fr); align-items: center; margin-block-start: 12px; }
.tl-name { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.tl-name .icon { color: var(--ink-3); }
.tl-lane { position: relative; display: flex; gap: 3px; height: 46px; }
.clip { display: flex; align-items: center; height: 100%; padding-inline: 10px; border-radius: 8px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; white-space: nowrap; overflow: hidden; transition: background-color .3s, color .3s, box-shadow .3s; }
html:lang(ar) .clip { font-family: var(--font-ar); letter-spacing: 0; font-size: .75rem; }
.clip-v { background: rgba(244, 241, 234, .09); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.v1, .v2 { flex: 2; }
.v3 { flex: 1; }
.tl[data-shot="1"] .v1, .tl[data-shot="2"] .v2, .tl[data-shot="3"] .v3 { background: var(--ink); color: #0A0A0B; }
.clip-a { position: absolute; inset-block: 0; left: 13.8%; width: 79.6%; padding-inline: 8px; background: var(--hot-soft); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, .5); }
.tl.is-voice .clip-a { background: rgba(255, 90, 31, .26); box-shadow: inset 0 0 0 1px var(--hot), 0 0 26px rgba(255, 90, 31, .25); }
.clip-m { flex: 1; padding: 0; background: rgba(244, 241, 234, .05); box-shadow: inset 0 0 0 1px var(--line); }
.clip-m svg { width: 100%; height: 100%; fill: rgba(244, 241, 234, .3); }
.tl-head { position: absolute; inset-block: 44px 14px; left: calc(var(--pad) + var(--name) + (100% - 2 * var(--pad) - var(--name)) * var(--t, 0)); width: 2px; background: var(--hot); box-shadow: 0 0 12px var(--hot); }
.tl-head::before { content: ""; position: absolute; inset-block-start: -7px; left: -5px; width: 12px; height: 12px; border-radius: 3px; background: var(--hot); transform: rotate(45deg); }
@media (min-width: 900px) { .deck { grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); } .tl { --name: 124px; --pad: 22px; } }

/* Barres de son (voix, démonstrations) */
.bars { display: flex; align-items: center; gap: 3px; width: 100%; height: 70%; }
.bars i { flex: 1; min-width: 2px; max-width: 5px; height: 30%; border-radius: 2px; background: currentColor; animation: wave 1.5s ease-in-out infinite alternate; }
.clip-a .bars { color: var(--hot); }
.bars i:nth-child(2n) { height: 62%; animation-delay: -.3s; }
.bars i:nth-child(3n) { height: 92%; animation-delay: -.7s; }
.bars i:nth-child(5n) { height: 44%; animation-delay: -1.1s; }
.bars i:nth-child(7n) { height: 76%; animation-delay: -.5s; }
.bars i:nth-child(11n) { height: 22%; animation-delay: -.9s; }
@keyframes wave { from { transform: scaleY(.4); } to { transform: scaleY(1); } }

/* ---------- Comment ça marche : scène épinglée ---------- */

.how { background: var(--bg-2); border-block: 1px solid var(--line); }
.pin { display: grid; }
.pin-stage { position: sticky; inset-block-start: 68px; z-index: 2; display: grid; justify-items: center; gap: 14px; padding-block: 14px 18px; background: var(--bg-2); border-block-end: 1px solid var(--line); }
.stage { position: relative; width: min(60vw, 240px); aspect-ratio: 1; direction: ltr; }
.stage > * { position: absolute; opacity: 0; transition: all .9s var(--out); }
.st-photo { left: 19%; top: 19%; width: 62%; transform: rotate(-4deg); border-radius: 16px; }
.st-photo img { border-radius: 16px; box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px rgba(0, 0, 0, .55); }
.corners { position: absolute; inset: -10px; border-radius: 22px; background:
  linear-gradient(var(--hot), var(--hot)) 0 0 / 22px 2px no-repeat, linear-gradient(var(--hot), var(--hot)) 0 0 / 2px 22px no-repeat,
  linear-gradient(var(--hot), var(--hot)) 100% 0 / 22px 2px no-repeat, linear-gradient(var(--hot), var(--hot)) 100% 0 / 2px 22px no-repeat,
  linear-gradient(var(--hot), var(--hot)) 0 100% / 22px 2px no-repeat, linear-gradient(var(--hot), var(--hot)) 0 100% / 2px 22px no-repeat,
  linear-gradient(var(--hot), var(--hot)) 100% 100% / 22px 2px no-repeat, linear-gradient(var(--hot), var(--hot)) 100% 100% / 2px 22px no-repeat;
  animation: breathe 2s ease-in-out infinite; transition: opacity .4s; }
@keyframes breathe { 50% { inset: -4px; } }
.st-idea { top: 52%; width: 25%; aspect-ratio: 3 / 4; display: grid; place-items: center; border-radius: 14px; background: var(--panel); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(30px); }
.st-idea b { position: absolute; inset-block-end: 8px; left: 10px; font-family: var(--mono); font-size: .6875rem; font-weight: 500; }
.st-idea i { position: absolute; top: -9px; right: -9px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--hot); color: #0A0A0B; opacity: 0; transition: opacity .4s .5s; }
.st-idea i .icon { stroke-width: 2.8; }
.st-idea-1 { left: 7%; }
.st-idea-2 { left: 37.5%; }
.st-idea-3 { left: 68%; }
.st-voice { left: 6%; top: 50%; width: 88%; height: 26%; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-radius: 999px; background: var(--panel); color: var(--hot); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(30px); }
.st-play { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--ink); color: #0A0A0B; }
.st-play .icon { fill: currentColor; width: 20px; height: 20px; }
.st-phone { left: 26%; top: 3%; width: 48%; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 6px #161618, 0 30px 60px rgba(0, 0, 0, .6); transform: scale(.7); }
.st-phone img { aspect-ratio: 9 / 16; object-fit: cover; }
.st-phone em { position: absolute; inset-inline: 10px; inset-block-end: 10px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.st-phone em::after { content: ""; position: absolute; inset: 0; background: var(--hot); transform-origin: 0 50%; animation: play 5s linear infinite; }
@keyframes play { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.st-done { top: 6%; left: 62%; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--hot); color: #0A0A0B; font-size: .8125rem; font-weight: 800; white-space: nowrap; transform: scale(.6); }
.st-done .icon { stroke-width: 2.8; }

/* État de la scène à chaque étape */
.pin[data-step="1"] .st-photo { opacity: 1; }
.pin[data-step="2"] .st-photo { opacity: 1; left: 34%; top: 4%; width: 32%; transform: rotate(0deg); }
.pin:not([data-step="1"]) .corners { opacity: 0; animation: none; }
.pin[data-step="2"] .st-idea { opacity: 1; transform: none; }
.pin[data-step="2"] .st-idea-1 { transition-delay: .05s; }
.pin[data-step="2"] .st-idea-2 { transition-delay: .15s; color: var(--ink); box-shadow: inset 0 0 0 2px var(--hot), 0 20px 40px rgba(0, 0, 0, .5); transform: translateY(-10px); }
.pin[data-step="2"] .st-idea-3 { transition-delay: .25s; }
.pin[data-step="2"] .st-idea-2 i, .pin[data-step="3"] .st-idea-2 i { opacity: 1; }
.pin[data-step="3"] .st-photo { opacity: 1; left: 8%; top: 8%; width: 26%; transform: rotate(-3deg); }
.pin[data-step="3"] .st-idea-2 { opacity: 1; left: 66%; top: 7%; width: 22%; transform: rotate(3deg); color: var(--ink); box-shadow: inset 0 0 0 2px var(--hot); }
.pin[data-step="3"] .st-voice { opacity: 1; transform: none; }
.pin[data-step="4"] .st-photo { left: 38%; top: 30%; width: 24%; transform: scale(.4); }
.pin[data-step="4"] .st-phone { opacity: 1; transform: none; }
.pin[data-step="4"] .st-done { opacity: 1; transform: none; transition-delay: .45s; }

.pin-dots { display: flex; gap: 6px; }
.pin-dots li { width: 26px; height: 3px; border-radius: 2px; background: var(--line-2); transition: background-color .4s, width .5s var(--out); }
.pin[data-step="1"] .pin-dots li:nth-child(1), .pin[data-step="2"] .pin-dots li:nth-child(2), .pin[data-step="3"] .pin-dots li:nth-child(3), .pin[data-step="4"] .pin-dots li:nth-child(4) { width: 46px; background: var(--hot); }

.pin-step { display: flex; flex-direction: column; gap: 12px; padding-block: 34px; border-block-end: 1px solid var(--line); padding-inline-start: 18px; box-shadow: inset 2px 0 0 var(--line); color: var(--ink-3); transition: color .5s, box-shadow .5s; }
[dir="rtl"] .pin-step { box-shadow: inset -2px 0 0 var(--line); }
.pin-step:last-child { border-block-end: 0; }
/* L'étape en cours est mise en avant par la couleur et un filet orange ; les autres restent lisibles. */
.pin-step.is-on { color: var(--ink); box-shadow: inset 2px 0 0 var(--hot); }
[dir="rtl"] .pin-step.is-on { box-shadow: inset -2px 0 0 var(--hot); }
.pin-step .mono { color: inherit; }
.pin-step.is-on .mono { color: var(--hot); }
.pin-step .mono span { color: var(--ink-3); }
.pin-step h3 { font-family: var(--display); font-size: clamp(1.625rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
html:lang(ar) .pin-step h3 { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.35; }
.pin-step p:last-child { max-width: 30em; color: var(--ink-3); font-size: 1.0625rem; transition: color .5s; }
.pin-step.is-on p:last-child { color: var(--ink-2); }

@media (min-width: 900px) {
  .pin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .pin-stage { inset-block-start: 0; height: 100vh; align-content: center; gap: 28px; padding: 0; background: none; border: 0; }
  .stage { width: min(100%, 440px); }
  .pin-step { min-height: 78vh; justify-content: center; border: 0; }
}

/* ---------- Atouts : fiche technique ---------- */

.sheet { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.cell { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 34px); background: var(--bg); transition: background-color .4s; }
.cell:hover { background: var(--bg-2); }
.cell .mono { margin-block-start: 22px; color: var(--hot); }
.cell > p:last-child { color: var(--ink-2); font-size: .9688rem; }
@media (min-width: 680px) { .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.demo { position: relative; height: 168px; border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); direction: ltr; }

/* 01 — la photo devient la vidéo */
.demo-match img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-match .top { animation: wipe 6s ease-in-out infinite; }
.demo-match i { position: absolute; inset-block: 0; width: 2px; background: var(--hot); box-shadow: 0 0 14px var(--hot); animation: wipe-line 6s ease-in-out infinite; }
@keyframes wipe { 0%, 12% { clip-path: inset(0 100% 0 0); } 50%, 62% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes wipe-line { 0%, 12% { left: 0; } 50%, 62% { left: calc(100% - 2px); } 100% { left: 0; } }

/* 02 — le scénario s'écrit plan par plan */
.demo-script { display: grid; align-content: center; gap: 14px; padding: 0 20px; }
.demo-script span { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; }
.demo-script b { font-family: var(--mono); font-size: .6875rem; font-weight: 500; color: var(--ink-3); }
.demo-script i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--ink), rgba(244, 241, 234, .35)); transform-origin: 0 50%; animation: write 5s var(--out) infinite; }
.demo-script span:nth-child(2) i { width: 76%; animation-delay: .5s; }
.demo-script span:nth-child(3) i { width: 54%; animation-delay: 1s; background: linear-gradient(90deg, var(--hot), var(--hot-2)); }
@keyframes write { 0% { transform: scaleX(0); } 30%, 86% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* 03 — trois langues de voix off */
.demo-voice { display: grid; align-content: center; gap: 18px; padding: 0 18px; color: var(--hot); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills b { padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); animation: pill 6s infinite; }
.pills b:nth-child(2) { animation-delay: 2s; }
.pills b:nth-child(3) { animation-delay: 4s; }
@keyframes pill { 0%, 30% { background: var(--ink); color: #0A0A0B; box-shadow: none; } 34%, 100% { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); } }
.demo-voice .bars { height: 54px; }

/* 04 — la musique baisse quand la voix parle */
.demo-duck { display: flex; align-items: center; gap: 14px; padding: 0 20px; }
.eq { display: flex; align-items: flex-end; gap: 4px; flex: 1; height: 96px; animation: duck 5s ease-in-out infinite; transform-origin: 50% 100%; }
.eq i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(244, 241, 234, .5); height: 40%; animation: wave 1.1s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.eq i:nth-child(2n) { height: 78%; animation-delay: -.4s; }
.eq i:nth-child(3n) { height: 100%; animation-delay: -.8s; }
.eq i:nth-child(5n) { height: 58%; animation-delay: -.2s; }
@keyframes duck { 0%, 22% { transform: scaleY(1); } 32%, 72% { transform: scaleY(.34); } 84%, 100% { transform: scaleY(1); } }
.duck-voice { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--hot); color: #0A0A0B; animation: speak 5s ease-in-out infinite; }
@keyframes speak { 0%, 22% { opacity: .25; transform: scale(.82); } 32%, 72% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 90, 31, .16); } 84%, 100% { opacity: .25; transform: scale(.82); } }

/* 05 — trois formats */
.demo-formats { display: flex; align-items: center; justify-content: center; gap: 16px; }
.f { display: grid; place-items: center; border-radius: 9px; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-3); animation: fmt 6s infinite; }
.f b { font-family: var(--mono); font-size: .6875rem; font-weight: 500; }
.f1 { width: 62px; height: 110px; }
.f2 { width: 88px; height: 88px; animation-delay: 2s; }
.f3 { width: 124px; height: 70px; animation-delay: 4s; }
@keyframes fmt { 0%, 30% { box-shadow: inset 0 0 0 2px var(--hot); color: var(--ink); background: var(--hot-soft); } 34%, 100% { box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-3); background: transparent; } }

/* 06 — l'essai de 5 secondes */
.demo-trial { display: grid; place-items: center; }
.demo-trial svg { width: 124px; height: 124px; transform: rotate(-90deg); }
.demo-trial circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: var(--line-2); }
.ring { stroke: var(--hot); stroke-linecap: round; stroke-dasharray: 314.2; stroke-dashoffset: 314.2; animation: ring 5s linear infinite; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.demo-trial b { position: absolute; font-family: var(--display); font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; }

/* Pour qui */
.who { display: grid; gap: 28px; margin-block-start: clamp(56px, 8vw, 110px); padding-block-start: clamp(36px, 5vw, 60px); border-block-start: 1px solid var(--line); }
.who-title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.who ul { display: grid; gap: 22px; }
.who li > * + * { margin-block-start: 6px; }
.who li p { color: var(--ink-2); font-size: .9688rem; }
@media (min-width: 900px) { .who { grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); align-items: start; } .who ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Packs ---------- */

.packs { display: grid; gap: 14px; }
.pack { display: flex; flex-direction: column; gap: 8px; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--out), box-shadow .4s, background-color .4s; }
.pack:hover { transform: translateY(-6px); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hot), 0 30px 70px rgba(0, 0, 0, .5); }
.pack .mono { color: var(--hot); }
.pack-price { font-family: var(--display); font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-block: 6px 2px; text-align: start; }
[dir="rtl"] .pack-price { text-align: end; }
.pack-videos { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }
html:lang(ar) .pack-videos { letter-spacing: 0; }
.pack-credits { color: var(--ink-3); font-size: .9375rem; margin-block-end: 22px; }
.pack .btn { margin-block-start: auto; }
@media (min-width: 760px) { .packs { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.price-est { max-width: 62em; margin-block-start: 18px; }
.ticks { display: grid; gap: 14px 32px; margin-block-start: clamp(32px, 4vw, 52px); padding-block-start: clamp(28px, 3vw, 40px); border-block-start: 1px solid var(--line); }
.ticks > li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks .icon { margin-block-start: 4px; color: var(--hot); stroke-width: 2.6; }
@media (min-width: 760px) { .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Comparaison ---------- */

.cmp { overflow-x: auto; border-block: 1px solid var(--line); }
.cmp table { width: 100%; min-width: 600px; border-collapse: collapse; }
.cmp th, .cmp td { padding: 20px 18px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); font-size: 1rem; }
.cmp tbody tr:last-child > * { border-block-end: 0; }
.cmp thead th { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
html:lang(ar) .cmp thead th { font-family: var(--font-ar); letter-spacing: 0; font-size: .9375rem; }
.cmp tbody th { width: 22%; font-weight: 700; }
.cmp td { color: var(--ink-3); }
.cmp .is-us { color: var(--ink); font-weight: 700; background: rgba(244, 241, 234, .05); }
.cmp thead .is-us { color: var(--hot); box-shadow: inset 0 2px 0 var(--hot); }

/* ---------- Questions ---------- */

.faq-wrap { display: grid; gap: 12px; }
.faq { border-block-start: 1px solid var(--line-2); }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 24px; cursor: pointer; list-style: none; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--hot); }
.faq summary h3 { font-size: clamp(1.0625rem, 1.2vw + .8rem, 1.375rem); }
.faq summary .icon { flex: none; color: var(--hot); transition: transform .5s var(--out); }
.faq details[open] summary .icon { transform: rotate(135deg); }
.faq details > p { padding-block-end: 26px; color: var(--ink-2); max-width: 46em; }
.faq details[open] > p { animation: rise .6s var(--out) both; }
@media (min-width: 980px) { .faq-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 96px); align-items: start; } .faq-wrap .head { position: sticky; inset-block-start: 110px; margin: 0; } }

/* ---------- Appel final ---------- */

.final { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(90px, 14vw, 200px); border-block-start: 1px solid var(--line); text-align: center; }
.final .grid-lines { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 0%, transparent 72%); }
.final::before { content: ""; position: absolute; inset: 20% 15%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 90, 31, .22), transparent 70%); }
.final-in { display: grid; justify-items: center; gap: 24px; }
.final h2 { font-size: clamp(2.5rem, 7.4vw, 6.5rem); line-height: .96; max-width: 14em; }
html:lang(ar) .final h2 { line-height: 1.25; font-size: clamp(2.25rem, 6.4vw, 5.25rem); }
.final .lead { max-width: 32em; }
.final .btn { margin-block-start: 12px; }

/* ---------- Pied de page ---------- */

.foot { padding-block: 40px 48px; border-block-start: 1px solid var(--line); }
.foot-in { display: grid; gap: 24px; }
.foot-brand p { margin-block-start: 10px; color: var(--ink-3); font-size: .9375rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-links a { color: var(--ink-2); font-size: .9375rem; font-weight: 600; transition: color .2s; }
.foot-links a:hover { color: var(--ink); }
.langs-foot { justify-self: start; }
@media (min-width: 860px) { .foot-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; align-items: start; } .foot-rights { grid-column: 1 / -1; } }

/* ---------- Apparition au défilement (posée par landing.js) ---------- */

.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--out), transform 1s var(--out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js :is(.sheet, .packs, .facts) > .reveal:nth-child(2) { transition-delay: .08s; }
.js :is(.sheet, .packs, .facts) > .reveal:nth-child(3) { transition-delay: .16s; }
.js :is(.sheet, .facts) > .reveal:nth-child(4) { transition-delay: .24s; }
.js .sheet > .reveal:nth-child(5) { transition-delay: .08s; }
.js .sheet > .reveal:nth-child(6) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .rise, .js .split .w > span { opacity: 1; transform: none; }
  .demo-match .top { clip-path: inset(0 50% 0 0); }
  .ring { stroke-dashoffset: 80; }
}

/* ---------- Téléphone : une page qui se parcourt écran par écran ----------
   Chaque bloc marqué « snap » occupe tout l'écran et s'aimante au défilement, comme on passe d'une vidéo
   à la suivante. Même contenu, même design ; les longues sections sont réparties sur plusieurs écrans.
   Un bouton « Créer ma pub » reste en bas, une jauge sur le côté montre où l'on en est. */

.rail, .dock, .swipe { display: none; }
.faq-group { display: contents; }

@media (max-width: 760px) {
  html { scroll-snap-type: y mandatory; scroll-padding-block-start: 0; }
  .progress { display: none; }
  .band, .hero, .final { padding-block: 0; }
  /* Un bloc qui masque son débordement devient lui-même une zone de défilement : ses écrans ne s'aimanteraient
     plus à la page. Sur téléphone, ces blocs laissent donc déborder (la page coupe déjà ce qui dépasse en largeur). */
  .hero, .sheet { overflow: visible; }
  .hero-art::before { inset: -6% 0; }
  .head { margin-block-end: 0; }

  .snap {
    display: flex; flex-direction: column; justify-content: center;
    min-height: 100vh; min-height: 100svh;
    padding-block: 88px 108px;
    scroll-snap-align: start; scroll-snap-stop: always;
  }
  .snap-end { scroll-snap-align: end; padding-block-end: 116px; }
  .head.snap h2 { font-size: clamp(2.25rem, 10.5vw, 3.25rem); }

  /* Ouverture */
  .hero-in { display: block; }
  .hero-copy.snap { position: relative; }
  .hero-art.snap { display: grid; align-content: center; max-width: 430px; }
  .swipe {
    position: absolute; inset-block-end: 92px; inset-inline: 0;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
    animation: swipe 1.8s ease-in-out infinite;
  }
  html:lang(ar) .swipe { font-family: var(--font-ar); letter-spacing: 0; font-size: .8125rem; }
  .swipe .icon { width: 18px; height: 18px; transform: rotate(-90deg); color: var(--hot); }
  .is-docked .swipe { visibility: hidden; }
  .hero-copy.snap { padding-block-end: 150px; }
  .snap-facts { justify-content: center; gap: 44px; }
  .facts { margin-block-start: 0; }

  /* Exemple : la vidéo, ses repères et sa table de montage sur un seul écran */
  .deck.snap { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 14px 16px; align-content: center; align-items: start; }
  .deck-view { grid-column: 1; grid-row: 1 / span 3; width: 100%; }
  .deck-view video { border-radius: 16px; }
  .deck-play { width: 44px; height: 44px; inset-block-end: 10px; inset-inline-end: 10px; }
  .deck-side { display: contents; }
  .deck-side > * { margin: 0; grid-column: 2; }
  .deck-side > .tl { grid-column: 1 / -1; grid-row: 4; }
  .specs { border-radius: 12px; line-height: 1.5; }

  /* Les quatre étapes : la scène reste en haut, le texte de l'étape s'aimante dessous */
  .pin { --stage-h: calc(min(60vw, 240px) + 52px); }
  .pin-stage { height: var(--stage-h); align-content: center; padding-block: 10px; }
  .pin-step.snap { justify-content: flex-start; min-height: calc(100vh - 68px - var(--stage-h)); min-height: calc(100svh - 68px - var(--stage-h)); padding-block: 26px 108px; scroll-margin-block-start: calc(68px + var(--stage-h)); }

  /* Atouts : deux par écran */
  .sheet { margin-inline: -20px; border-inline: 0; border-radius: 0; }
  .cell { justify-content: center; gap: 8px; padding: 14px 20px; min-height: calc((100vh - 152px) / 2); min-height: calc((100svh - 152px) / 2); }
  .cell:nth-child(odd) { scroll-snap-align: start; scroll-snap-stop: always; scroll-margin-block-start: 68px; }
  .cell .mono { margin-block-start: 8px; }
  .cell h3 { font-size: 1.125rem; }
  .demo { height: 112px; }
  .f1 { width: 48px; height: 86px; }
  .f2 { width: 68px; height: 68px; }
  .f3 { width: 96px; height: 54px; }
  .eq { height: 72px; }
  .demo-trial svg { width: 92px; height: 92px; }
  .demo-trial b { font-size: 1.375rem; }
  .who.snap { margin-block-start: 0; border-block-start: 0; }

  /* Packs : trois lignes compactes sur un écran */
  .packs { gap: 10px; }
  .pack { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 16px; padding: 16px 18px; border-radius: 20px; }
  .pack .mono { grid-column: 1 / -1; }
  .pack-price { grid-column: 1; grid-row: 2 / span 2; margin: 0; font-size: 2.5rem; }
  .pack-videos { grid-column: 2; font-size: 1.125rem; }
  .pack-credits { grid-column: 2; margin: 0; font-size: .875rem; }
  .pack .btn { grid-column: 1 / -1; min-height: 42px; margin-block-start: 12px; }
  .pack:hover { transform: none; }
  .ticks.snap { margin: 0; border: 0; gap: 18px; }

  /* Comparaison : une ligne par critère, les deux réponses côte à côte */
  .cmp.snap { overflow: visible; border: 0; }
  .cmp table, .cmp tbody { display: block; min-width: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; padding-block: 14px; border-block-end: 1px solid var(--line); }
  .cmp tbody tr:last-child { border-block-end: 0; }
  .cmp tbody th { grid-column: 1 / -1; width: auto; font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--hot); }
  html:lang(ar) .cmp tbody th { font-family: var(--font-ar); letter-spacing: 0; font-size: .875rem; }
  .cmp th, .cmp td { padding: 0; border: 0; font-size: .9375rem; }
  .cmp td::before { content: attr(data-h); display: block; margin-block-end: 2px; font-size: .6875rem; color: var(--ink-3); }
  .cmp .is-us { background: none; }

  /* Questions : trois par écran */
  .faq { border: 0; }
  .faq-group { display: flex; }
  .faq-group details:first-child { border-block-start: 1px solid var(--line-2); }
  .faq summary { padding-block: 18px; }

  /* Jauge de progression, sur le côté */
  .rail { display: block; position: fixed; z-index: 25; inset-inline-end: 6px; inset-block-start: 50%; width: 3px; height: 26vh; translate: 0 -50%; border-radius: 2px; background: var(--line-2); }
  .rail i { position: absolute; inset-inline: 0; inset-block-start: calc(var(--scroll, 0) * 82%); height: 18%; border-radius: 2px; background: var(--hot); transition: inset-block-start .25s linear; }

  /* Bouton toujours visible */
  .dock { display: block; position: fixed; z-index: 28; inset-inline: 0; inset-block-end: 0; padding: 26px 18px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 58%, transparent); transform: translateY(110%); transition: transform .5s var(--out); pointer-events: none; }
  .dock .btn { pointer-events: auto; min-height: 54px; box-shadow: 0 10px 34px rgba(0, 0, 0, .55); }
  .is-docked .dock { transform: none; }
  .foot { padding-block-end: 116px; }
}
@keyframes swipe { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-8px); opacity: .5; } }
/* ---------- Téléphone : les écrans clés sont des vidéos ----------
   Huit écrans ont en fond une vraie pub créée avec SadaReel (bloc « reel », rempli par landing.js à l'approche
   de l'écran). Par-dessus : l'habillage d'un lecteur (légende, boutons, barre de lecture) et un texte qui
   s'allume mot à mot comme des sous-titres. Rien de tout cela sur ordinateur ni sans script.
   « reels-on » : fonds affichés. « reels-live » : lecture et habillage (absent si le visiteur a demandé moins
   de mouvement ou d'économiser ses données : il ne voit alors que l'image fixe). */

.reel, .reel-ui { display: none; }
.hero-copy > .reel + *, .head > .reel + * { margin-block-start: 0; }

@media (max-width: 760px) {
  .reels-on .reel-screen { position: relative; isolation: isolate; }
  .reels-on .reel { display: block; position: absolute; z-index: -1; inset-block: 0; inset-inline: calc(50% - 50vw); overflow: hidden; background: var(--bg); pointer-events: none; }
  .reels-on .final .reel { inset-inline: 0; }
  .reel video { width: 100%; height: 100%; object-fit: cover; }
  .reel-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 10, 11, .82) 0%, rgba(10, 10, 11, .52) 30%, rgba(10, 10, 11, .6) 62%, rgba(10, 10, 11, .94) 100%); }
  .reels-on .final::before, .reels-on .final .grid-lines { display: none; }

  /* Le texte posé sur l'image : plus clair, avec une ombre qui le détache du fond. */
  .reels-on .reel-screen :is(h1, h2, h3, p) { text-shadow: 0 1px 16px rgba(0, 0, 0, .6); }
  .reels-on .reel-screen .hl { text-shadow: none; }
  .reels-on .reel-screen :is(.lead, .who li p) { color: var(--ink); }
  .reels-on .reel-screen :is(.tag, .hero-note) { color: var(--ink-2); }
  .js.reels-on .reel-screen.reveal { opacity: 1; transform: none; transition: none; }

  /* La place de l'habillage : la colonne de boutons du côté de la fin, la légende en bas. */
  .reels-live .reel-screen { padding-inline-end: 56px; padding-block-end: 188px; }
  /* Ouverture : le titre et le texte gardent toute la largeur, seuls les boutons du bas laissent la place à la colonne. */
  .reels-live .hero-copy.reel-screen { padding-inline-end: 0; padding-block-end: 104px; }
  .reels-live .hero-copy > * + * { margin-block-start: 14px; }
  .reels-live .hero-copy .lead { font-size: 1rem; }
  /* Écran court (barres du navigateur comprises) : la note, reprise sur le dernier écran, puis le second bouton
     (la section qu'il ouvre est deux écrans plus bas) laissent la place à la légende. */
  @media (max-height: 760px) { .reels-live .hero-copy .hero-note { display: none; } }
  @media (max-height: 690px) { .reels-live .hero-copy .btn-line { display: none; } }
  .reels-live .hero-copy :is(.cta-row, .hero-note) { padding-inline-end: 56px; }
  .reels-live .final.reel-screen { padding-inline-end: 0; }
  .reels-live .final .final-in { padding-inline: 20px 76px; gap: 16px; }
  .reels-live .final h2 { font-size: clamp(1.875rem, 8.6vw, 2.25rem); }
  .reels-live .swipe { display: none; }

  /* Sous-titres : chaque mot s'allume à son tour, le mot en cours en orange. */
  .cw { transition: opacity .3s, color .3s; }
  .is-cued .cw { opacity: .28; }
  .is-cued .cw.is-said { opacity: 1; }
  .is-cued .cw.is-now { color: var(--hot); }

  /* Habillage du lecteur */
  .reels-live .reel-ui { --b: calc(26px + env(safe-area-inset-bottom)); display: block; position: fixed; z-index: 27; inset-inline: 0; inset-block-end: 0; height: 0; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; pointer-events: none; }
  .reels-live.is-docked .reel-ui { --b: calc(106px + env(safe-area-inset-bottom)); }
  .reels-live .reel-ui.is-on { opacity: 1; visibility: visible; }

  .reel-cap { position: absolute; inset-inline: 20px 78px; inset-block-end: var(--b); display: grid; gap: 4px; font-size: .8125rem; line-height: 1.35; color: var(--ink); text-shadow: 0 1px 10px rgba(0, 0, 0, .75); transition: inset-block-end .45s var(--out), opacity .3s; }
  html:lang(ar) .reel-cap { line-height: 1.6; }
  .reel-user { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 700; }
  .reel-user .brand-mark { width: 22px; height: 22px; }
  .reel-tune, .reel-swipe { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--ink-2); }
  .reel-swipe .icon { transform: rotate(-90deg); color: var(--hot); animation: swipe-up 1.8s ease-in-out infinite; }
  .is-docked .reel-swipe, html:not(.is-docked) .reel-tune { display: none; }
  /* Écran dont le texte descend jusqu'en bas (petit téléphone) : la légende s'efface pour ne pas le recouvrir. */
  .reel-ui.is-tight .reel-cap { opacity: 0; }
  .reel-tune .icon { color: var(--hot); }
  .reel-tune-in { flex: 0 1 200px; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
  .reel-tune-track { display: flex; width: max-content; white-space: nowrap; animation: tune 11s linear infinite; }
  .reel-tune-track bdi { padding-inline-end: 32px; }
  [dir="rtl"] .reel-tune-track { animation-name: tune-rtl; }

  .reel-rail { position: absolute; inset-inline-end: 14px; inset-block-end: var(--b); display: grid; justify-items: center; gap: 14px; transition: inset-block-end .45s var(--out); }
  .reel-ui.is-on .reel-rail { pointer-events: auto; }
  .reel-rail button { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 10, 11, .46); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); transition: transform .2s var(--out), background-color .2s, border-color .2s, color .2s; }
  .reel-rail button:active { transform: scale(.9); }
  .reel-rail button[aria-pressed="true"] { background: var(--hot); border-color: var(--hot); color: #0A0A0B; }
  .reel-rail .icon { width: 22px; height: 22px; }
  #reel-next .icon { transform: rotate(90deg); }
  html:not(.is-docked) #reel-next { animation: nudge 1.8s ease-in-out infinite; }
  .reel-note { position: absolute; inset-inline-end: 58px; inset-block-start: 66px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; font-size: .75rem; font-weight: 600; background: var(--ink); color: var(--bg); }
  .reel-note:empty { display: none; }

  .reel-bar { position: absolute; inset-inline: 20px; inset-block-end: calc(var(--b) - 14px); height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; transition: inset-block-end .45s var(--out); }
  .reel-bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
  [dir="rtl"] .reel-bar i { transform-origin: 100% 50%; }
}
@keyframes tune { to { transform: translateX(-50%); } }
@keyframes tune-rtl { to { transform: translateX(50%); } }
@keyframes swipe-up { 0%, 100% { transform: rotate(-90deg); } 50% { transform: rotate(-90deg) translateX(5px); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
