@font-face { font-family: J; src: url(/fonts/PlusJakartaSans-ExtraBold.ttf); font-weight: 800; font-display: swap; }
@font-face { font-family: J; src: url(/fonts/PlusJakartaSans-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: J; src: url(/fonts/PlusJakartaSans-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: AR; src: url(/fonts/NotoSansArabic-Bold.ttf); font-weight: 700 800; font-display: swap; }
@font-face { font-family: AR; src: url(/fonts/NotoSansArabic-Regular.ttf); font-weight: 400 500; font-display: swap; }

:root {
  --blue: #1B4FD8; --blueD: #0A2577; --blueL: #EEF3FF; --orange: #FF6B1A; --green: #00C896;
  --ink: #0F172A; --muted: #64748B; --line: #E2E8F0; --bg: #F6F8FC; --card: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #E8EDF7; --muted: #9AA8BF; --line: #22304A; --bg: #0B1222; --card: #121B30; --blueL: #16223D; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: J, AR, system-ui, sans-serif; font-weight: 500; color: var(--ink); background: var(--bg); line-height: 1.55; }
html[dir=rtl] body { font-family: AR, J, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
html[dir=rtl] h1, html[dir=rtl] h2, html[dir=rtl] h3 { letter-spacing: 0; line-height: 1.35; }
h2 { font-size: clamp(28px, 4.5vw, 42px); text-align: center; margin-bottom: 12px; }
.sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
section { padding: 72px 0; }
.o { color: var(--orange); }

/* En-tête */
header { position: sticky; top: 0; z-index: 10; background: rgba(10, 37, 119, .92); backdrop-filter: blur(10px); color: #fff; }
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; text-decoration: none; margin-inline-end: auto; }
.brand img { width: 38px; height: 38px; border-radius: 10px; background: #fff; }
.nav .links a { text-decoration: none; opacity: .85; font-weight: 700; font-size: 15px; margin-inline-start: 18px; }
.nav .links a:hover { opacity: 1; }
.lang { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; padding: 6px 8px; font: inherit; font-size: 14px; }
.lang option { color: #000; }
.btn-dl { background: var(--orange); color: #fff; text-decoration: none; font-weight: 800; padding: 9px 16px; border-radius: 12px; font-size: 15px; white-space: nowrap; }
@media (max-width: 860px) { .nav .links { display: none; } }
@media (max-width: 420px) { .btn-dl { display: none; } }

/* Héros */
.hero { position: relative; overflow: hidden; color: #fff; padding: 56px 0 0;
  background: radial-gradient(900px 600px at 70% 10%, #2D63F0 0%, #1B4FD8 45%, #0A2577 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.07) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.07) 2px, transparent 2px);
  background-size: 48px 48px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.kicker { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); opacity: .9; max-width: 560px; margin-bottom: 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 56px; }
.play { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; text-decoration: none; border: 2px solid rgba(255,255,255,.7); border-radius: 16px; padding: 10px 22px 10px 16px; }
.play svg { width: 34px; height: 34px; }
.play small { display: block; font-size: 11px; font-weight: 700; opacity: .85; letter-spacing: .04em; }
.play b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.phone { width: min(320px, 80vw); margin: 0 auto -6px; border-radius: 44px 44px 0 0; background: #0B1020; padding: 12px 12px 0; box-shadow: 0 30px 80px rgba(2,10,40,.55); }
.phone img { border-radius: 34px 34px 0 0; aspect-ratio: 9/14; object-fit: cover; object-position: top; width: 100%; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero p.lead { margin-inline: auto; } .stores { justify-content: center; margin-bottom: 36px; } }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: -1px; padding: 22px 0; background: var(--card); border-bottom: 1px solid var(--line); }
.stats div { text-align: center; font-weight: 800; font-size: 15px; color: var(--blue); }
@media (prefers-color-scheme: dark) { .stats div { color: #8FB0FF; } }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; text-align: center; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; margin: 0 auto 12px; }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
.step .shot { margin-top: 18px; border-radius: 22px; overflow: hidden; border: 6px solid #0B1020; aspect-ratio: 9/13; }
.step .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step .ico { width: 140px; height: 140px; margin: 18px auto 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step .shot { max-width: 300px; margin-inline: auto; } }

/* Calculateurs */
.cats { display: grid; gap: 28px; }
.cat h3 { font-size: 18px; color: var(--muted); margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.calc img { width: 52px; height: 52px; flex: none; }

/* Nouveautés */
.news { background: linear-gradient(160deg, #0A2577, #1B4FD8); color: #fff; }
.news .sub { color: rgba(255,255,255,.8); }
.newgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.newcard { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 22px; padding: 16px; }
.newcard .shot { border-radius: 18px; overflow: hidden; border: 5px solid #0B1020; aspect-ratio: 9/12; margin-bottom: 14px; background: #fff; }
.newcard .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.newcard .ico { width: 120px; height: 120px; margin: 4px auto 14px; }
.newcard h3 { font-size: 18px; margin-bottom: 6px; }
.newcard p { opacity: .8; font-size: 14px; }
@media (max-width: 900px) { .newgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .newgrid { grid-template-columns: 1fr; } }

/* Fonctionnalités */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.feat .dot { width: 44px; height: 44px; border-radius: 14px; background: var(--blueL); display: grid; place-items: center; margin-bottom: 12px; }
.feat .dot svg { width: 24px; height: 24px; stroke: var(--blue); }
@media (prefers-color-scheme: dark) { .feat .dot svg { stroke: #8FB0FF; } }
.feat h3 { font-size: 18px; margin-bottom: 4px; }
.feat p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }

/* Vidéo */
.video { display: flex; justify-content: center; }
.video video { width: min(340px, 86vw); border-radius: 28px; border: 8px solid #0B1020; box-shadow: 0 24px 60px rgba(5,20,70,.3); background: #0A2577; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
summary { cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--orange); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; }

/* Appel final */
.cta { text-align: center; background: radial-gradient(700px 400px at 50% 0%, #2D63F0, #0A2577); color: #fff; }
.cta h2 { margin-bottom: 8px; }
.cta p { opacity: .85; margin-bottom: 26px; }
.cta .stores { justify-content: center; margin-bottom: 26px; }
.social { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; background: rgba(255,255,255,.12); padding: 8px 16px; border-radius: 999px; }
.social svg { width: 20px; height: 20px; fill: #fff; }

/* Textes légaux */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { text-align: start; font-size: 30px; }
.legal .upd { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.legal h3 { font-size: 18px; margin: 20px 0 6px; }
.legal p { color: var(--muted); }
.legal + .legal { margin-top: 56px; }
footer { background: #0A2577; color: rgba(255,255,255,.85); padding: 28px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer a { text-decoration: none; margin-inline-end: 16px; }

/* Liens de l'app (/#confidentialite, /#conditions) : la section arrive en
   haut de l'écran, sous l'en-tête fixe, même en fin de page. */
[id] { scroll-margin-top: 76px; }
#conditions { min-height: calc(100vh - 76px); }
