:root {
  --bg: #05080f;
  --bg2: #0a101c;
  --card: rgba(255, 255, 255, .035);
  --card2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --ink: #eaf0f8;
  --dim: #8d99ad;
  --brand: #22c55e;
  --brand2: #86efac;
  --glow: rgba(34, 197, 94, .35);
  --warn: #f87171;
  --radius: 20px;
  --max: 1180px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
}
[dir="rtl"] { --font: "Cairo", system-ui, sans-serif; --display: "Cairo", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; background: var(--bg) }
body {
  background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto }

/* ---------- fond animé ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none }
.bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 18s ease-in-out infinite alternate }
.orb.a { width: 520px; height: 520px; background: #16a34a; top: -180px; inset-inline-start: -120px }
.orb.b { width: 460px; height: 460px; background: #0ea5e9; top: 120px; inset-inline-end: -160px; opacity: .28; animation-delay: -6s }
.orb.c { width: 380px; height: 380px; background: #22c55e; top: 70%; inset-inline-start: 40%; opacity: .18; animation-delay: -12s }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15) } }

/* ---------- navigation ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(5, 8, 15, .6); border-bottom: 1px solid var(--line);
}
nav.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px }
.logo { display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); letter-spacing: -.02em; direction: ltr }
.logo b { color: var(--brand) }
.logo svg { width: 30px; height: 30px }
nav.top .links { display: flex; gap: 22px; margin-inline-start: auto; color: var(--dim); font-size: 15px }
nav.top .links a:hover { color: var(--ink) }
.lang { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 14px; color: var(--dim) }
.lang:hover { color: var(--ink); border-color: var(--dim) }
@media (max-width: 860px) { nav.top .links { display: none } .lang { margin-inline-start: auto } }

/* ---------- boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden;
  padding: 14px 22px; border-radius: 14px; font-weight: 600; font-size: 16px; cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s; white-space: nowrap;
}
.btn.primary { background: var(--brand); color: #03140a; box-shadow: 0 10px 30px -10px var(--glow) }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--glow) }
.btn.primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55), transparent 70%);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-120%) } 100% { transform: translateX(120%) } }
.btn.ghost { border: 1px solid var(--line); background: var(--card) }
.btn.ghost:hover { background: var(--card2) }
.btn.small { padding: 10px 16px; font-size: 14px; border-radius: 12px }
.btn svg { width: 20px; height: 20px; flex: none }

/* ---------- hero ---------- */
.hero { padding: 80px 0 60px }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr } .hero { padding-top: 48px } }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px;
  border: 1px solid rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); color: var(--brand2);
  font-size: 14px; font-weight: 600;
}
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--glow); animation: ping 2s infinite }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent } }
h1 {
  font: 700 clamp(38px, 5.6vw, 66px)/1.05 var(--display); letter-spacing: -.035em; margin: 22px 0 20px;
}
[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.25 }
h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em }
h1 .w > span { display: inline-block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 70ms + .15s) }
h1 .accent { background: linear-gradient(90deg, var(--brand), var(--brand2), #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent }
@keyframes rise { to { transform: none } }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); max-width: 34em }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px }
.points { list-style: none; display: grid; gap: 10px; color: var(--dim); font-size: 15px }
.points li { display: flex; gap: 10px; align-items: center }
.points svg { width: 20px; height: 20px; color: var(--brand); flex: none }

/* ---------- caméra animée ---------- */
.stage { position: relative }
.cam {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); background: #000;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.cam img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s ease-out }
.cam.on img { transform: scale(1) }
.cam .boxes { position: absolute; inset: 0; direction: ltr }
.box {
  position: absolute; border: 2px solid var(--brand); border-radius: 8px; opacity: 0; transform: scale(.7);
  background: rgba(34, 197, 94, .08); box-shadow: 0 0 18px var(--glow), inset 0 0 12px rgba(34, 197, 94, .15);
}
.box.on { animation: pop .55s cubic-bezier(.2, 1.4, .4, 1) forwards }
.box.off { animation: fade .4s forwards }
@keyframes pop { to { opacity: 1; transform: none } }
@keyframes fade { from { opacity: 1 } to { opacity: 0 } }
.box::before { /* coins façon viseur */
  content: ""; position: absolute; inset: -6px; border: 2px solid var(--brand2); border-radius: 10px;
  clip-path: polygon(0 0, 18% 0, 18% 4px, 4px 4px, 4px 18%, 0 18%, 0 82%, 4px 82%, 4px calc(100% - 4px), 18% calc(100% - 4px), 18% 100%, 82% 100%, 82% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 82%, 100% 82%, 100% 18%, calc(100% - 4px) 18%, calc(100% - 4px) 4px, 82% 4px, 82% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .9;
}
.scan {
  position: absolute; inset-inline: 0; height: 30%; top: -30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(34, 197, 94, .18) 85%, rgba(134, 239, 172, .7) 99%, transparent);
  animation: scan 3.2s linear infinite; mix-blend-mode: screen;
}
@keyframes scan { to { top: 100% } }
.badge {
  position: absolute; top: 14px; inset-inline-start: 14px; padding: 10px 16px 8px; border-radius: 14px;
  background: rgba(5, 10, 20, .72); backdrop-filter: blur(10px); border: 1px solid var(--line);
}
.badge small { display: block; font-size: 12px; color: var(--dim); letter-spacing: .02em }
.badge b { display: block; font: 700 38px/1.05 var(--display); color: var(--brand); font-variant-numeric: tabular-nums }
.badge b.bump { animation: bump .35s }
@keyframes bump { 40% { transform: scale(1.18); color: var(--brand2) } }
.live {
  position: absolute; top: 14px; inset-inline-end: 14px; display: flex; gap: 7px; align-items: center;
  padding: 6px 12px; border-radius: 99px; background: rgba(5, 10, 20, .72); font: 700 12px var(--font); letter-spacing: .08em;
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: blink 1.2s infinite }
@keyframes blink { 50% { opacity: .2 } }
.note { margin-top: 12px; font-size: 13px; color: var(--dim) }

/* ---------- carte WhatsApp ---------- */
.wa {
  width: min(330px, 86%); border-radius: 22px; overflow: hidden; background: #0b141a;
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  font-size: 14px; direction: inherit;
}
.hero .stage { padding-bottom: 70px }
.stage .wa { position: absolute; bottom: -30px; inset-inline-end: -28px; width: 270px; font-size: 13px; animation: float 6s ease-in-out infinite }
.stage .wa .chat { min-height: 0 }
@media (max-width: 960px) { .stage .wa { position: relative; inset: auto; margin: -40px auto 0; animation: none } }
@keyframes float { 50% { transform: translateY(-10px) } }
.wa header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #1f2c34 }
.wa header .av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); display: grid; place-items: center }
.wa header .av svg { width: 20px; height: 20px }
.wa header b { display: block; font-size: 15px }
.wa header small { color: #8696a0; font-size: 12px }
.wa .chat { padding: 14px; display: grid; gap: 6px; min-height: 180px; background:
  radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .03) 0 2px, transparent 3px) 0 0 / 22px 22px, #0b141a }
.msg {
  justify-self: start; max-width: 92%; background: #1f2c34; padding: 7px 11px; border-radius: 10px;
  border-start-start-radius: 2px; opacity: 0; transform: translateY(8px) scale(.96);
}
.msg.show { animation: msgin .4s cubic-bezier(.2, 1, .3, 1) forwards }
@keyframes msgin { to { opacity: 1; transform: none } }
.msg:first-child { font-weight: 700 }
.typing { justify-self: start; display: flex; gap: 4px; padding: 10px 12px; background: #1f2c34; border-radius: 10px; opacity: 0 }
.typing.show { opacity: 1 }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: dot 1s infinite }
.typing i:nth-child(2) { animation-delay: .15s } .typing i:nth-child(3) { animation-delay: .3s }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .4 } }

/* ---------- bandeau défilant ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .015); overflow: hidden; margin-top: 90px; direction: ltr }
.marquee .track { display: flex; gap: 48px; width: max-content; padding: 18px 0; animation: marq 32s linear infinite }
.marquee span { display: flex; align-items: center; gap: 12px; color: var(--dim); font: 600 18px var(--display); white-space: nowrap }
.marquee span b { color: var(--ink) }
@keyframes marq { to { transform: translateX(-50%) } }

/* ---------- sections ---------- */
section { padding: 100px 0 }
.head { text-align: center; max-width: 720px; margin: 0 auto 56px }
h2 { font: 700 clamp(30px, 3.8vw, 46px)/1.1 var(--display); letter-spacing: -.03em }
[dir="rtl"] h2 { letter-spacing: 0; line-height: 1.3 }
.head p { color: var(--dim); margin-top: 14px; font-size: 18px }

/* cartes secteurs avec lumière qui suit la souris */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px }
.grid .card:nth-child(-n+2) { grid-column: span 3 }
.grid .card { grid-column: span 2 }
.grid .card:nth-child(n+6) { grid-column: span 3 }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr } .grid .card, .grid .card:nth-child(-n+2), .grid .card:nth-child(n+6) { grid-column: auto } }
.card {
  position: relative; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: transform .35s, border-color .35s; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 197, 94, .16), transparent 45%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(34, 197, 94, .4) }
.card:hover::before { opacity: 1 }
.card .cam { border: 0; border-radius: 0; box-shadow: none }
.card .cam .badge { padding: 6px 12px 5px } .card .cam .badge b { font-size: 26px }
.card .body { padding: 20px 22px 24px }
.card h3 { font: 700 22px var(--display); display: flex; gap: 10px; align-items: center }
.card p { color: var(--dim); margin: 8px 0 16px; font-size: 15px }
.card .more { color: var(--brand); font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center }
.card .more svg { width: 18px; transition: transform .25s } .card:hover .more svg { transform: translateX(4px) }
[dir="rtl"] .card .more svg { transform: scaleX(-1) } [dir="rtl"] .card:hover .more svg { transform: scaleX(-1) translateX(4px) }

/* pertes / solution */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px }
@media (max-width: 860px) { .vs { grid-template-columns: 1fr } }
.vs .col { border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); background: var(--card) }
.vs .loss { background: linear-gradient(160deg, rgba(248, 113, 113, .09), transparent 60%) }
.vs .win { background: linear-gradient(160deg, rgba(34, 197, 94, .12), transparent 60%); border-color: rgba(34, 197, 94, .3) }
.vs h3 { font: 700 22px var(--display); margin-bottom: 18px }
.vs ul { list-style: none; display: grid; gap: 14px }
.vs li { display: flex; gap: 12px; align-items: flex-start }
.vs li svg { width: 22px; height: 22px; flex: none; margin-top: 2px }
.vs .loss svg { color: var(--warn) } .vs .win svg { color: var(--brand) }

/* rapport */
.report { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center }
@media (max-width: 860px) { .report { grid-template-columns: 1fr } }
.report .wa { margin-inline: auto; width: min(360px, 100%) }

/* étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr } }
.steps::before {
  content: ""; position: absolute; top: 44px; inset-inline: 16%; height: 2px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--brand), transparent); transform: scaleX(0); transition: transform 1.4s .3s;
}
.steps.in::before { transform: scaleX(1) }
@media (max-width: 860px) { .steps::before { display: none } }
.step { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: center }
.step .n {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center;
  font: 700 24px var(--display); color: #03140a; background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 30px -8px var(--glow);
}
.step h3 { font: 700 21px var(--display); margin-bottom: 8px }
.step p { color: var(--dim); font-size: 15px }

/* caméras compatibles */
.cams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px }
@media (max-width: 860px) { .cams { grid-template-columns: 1fr 1fr } }
.cams div { padding: 22px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; font-weight: 600; font-size: 15px }
.cams svg { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--brand) }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; color: var(--brand); font-size: 24px; line-height: 1; transition: transform .3s }
.faq details[open] summary::after { transform: rotate(45deg) }
.faq details p { padding: 0 24px 22px; color: var(--dim) }

/* appel final */
.final {
  position: relative; text-align: center; border-radius: 28px; padding: 72px 24px; overflow: hidden;
  background: radial-gradient(600px circle at 50% 0%, rgba(34, 197, 94, .25), transparent 60%), var(--bg2);
  border: 1px solid rgba(34, 197, 94, .25);
}
.final p { color: var(--dim); max-width: 560px; margin: 16px auto 30px; font-size: 18px }

/* pages secteur */
.crumbs { color: var(--dim); font-size: 14px; display: inline-flex; gap: 8px; margin-bottom: 18px }
.crumbs a:hover { color: var(--ink) }
.others { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px }
.others a { padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 15px }
.others a:hover { border-color: var(--brand) }

footer { padding: 40px 0 60px; color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center }

/* bouton WhatsApp flottant */
.fab {
  position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transform: scale(0); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1);
}
.fab.show { transform: scale(1) }
.fab svg { width: 30px; height: 30px; color: #fff }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
  h1 .w > span, .reveal, .msg, .box { opacity: 1 !important; transform: none !important }
  .scan { display: none }
}
