:root {
  --primary: #0b3d6b;
  --primary-light: #1b5e9b;
  --accent: #e8b400;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #16202b;
  --muted: #6b7785;
  --success: #1e9e5a;
  --border: #e2e8f0;
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
.muted { color: var(--muted); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #3a2a00; box-shadow: 0 8px 24px rgba(232,180,0,.35); }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--primary); background: #fff; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,61,107,.92); backdrop-filter: blur(8px); color: #fff;
}
header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand .logo { width: 30px; height: 30px; }
nav.links { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 15px; }
nav.links a { color: #cfe2f5; }
nav.links a:hover { color: #fff; }
header .cta { margin-left: 8px; }
.lang-select {
  margin-left: auto; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.lang-select option { color: #16202b; }
nav.links + .lang-select { margin-left: auto; }
@media (max-width: 760px) { nav.links { display: none; } header .cta { display: none; } }

/* Ajustements droite-à-gauche (fa, ar) */
[dir="rtl"] .hero p.sub,
[dir="rtl"] .section-head { text-align: right; }
[dir="rtl"] .section-head { text-align: center; }
[dir="rtl"] .plan .tag { right: auto; left: 22px; }
[dir="rtl"] .lang-select { margin-left: 0; margin-right: auto; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(232,180,0,.18), transparent 60%),
              linear-gradient(160deg, #0b3d6b 0%, #14497d 55%, #1b5e9b 100%);
  color: #fff; padding: 84px 0 96px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22); padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .03em; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; }
.hero h1 .hl { color: var(--accent); }
.hero p.sub { font-size: 18px; color: #d7e6f5; margin: 18px 0 28px; max-width: 540px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 14px; color: #b8d2ea; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Mockup téléphone */
.phone {
  justify-self: center; width: 280px; height: 560px; background: #0a2c4d;
  border-radius: 38px; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15);
}
.phone .screen { background: var(--bg); border-radius: 28px; height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.phone .sbar { background: var(--primary); color: #fff; padding: 16px 16px 14px; font-weight: 800; font-size: 15px; }
.phone .body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.phone .q { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; font-size: 13px; font-weight: 700; color: var(--text); }
.phone .opt { background: #fff; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--text); }
.phone .opt.ok { border-color: var(--success); background: #e4f6ec; color: #13633a; font-weight: 700; }
.phone .pill { align-self: flex-start; background: var(--accent); color: #3a2a00; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }

/* Stats */
.stats { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 36px 20px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 34px; font-weight: 900; color: var(--primary); }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 680px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }

/* Sections génériques */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,61,107,.10); }
.card .ic { font-size: 30px; }
.card h3 { font-size: 19px; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Langues */
.langs { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lang-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.lang {
  display: flex; align-items: center; gap: 10px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; font-weight: 700;
}
.lang .fl { font-size: 22px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.step .n { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.plan.pro { border: 2px solid var(--accent); box-shadow: 0 18px 50px rgba(232,180,0,.18); position: relative; }
.plan .tag { position: absolute; top: -13px; right: 22px; background: var(--accent); color: #3a2a00; font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .price { font-size: 38px; font-weight: 900; color: var(--primary); margin: 10px 0 4px; }
.plan ul { list-style: none; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li::before { content: "✓"; color: var(--success); font-weight: 900; }
@media (max-width: 680px) { .pricing { grid-template-columns: 1fr; } }

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

/* CTA */
.cta-band { background: linear-gradient(160deg, #0b3d6b, #1b5e9b); color: #fff; text-align: center; border-radius: 24px; padding: 56px 24px; }
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.cta-band p { color: #d7e6f5; margin: 12px auto 26px; max-width: 520px; }
.qr-card {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fff; color: var(--text); border-radius: 18px; padding: 18px; margin-bottom: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.qr-card img { width: 180px; height: 180px; display: block; border-radius: 8px; }
.qr-card span { font-size: 13px; font-weight: 700; color: var(--muted); }

/* Footer */
footer { background: #0a2c4d; color: #b8d2ea; padding: 48px 0 28px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
footer .brand { color: #fff; margin-bottom: 10px; }
footer .disclaimer { font-size: 13px; color: #8fb3d4; border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 20px; }
footer .credit { font-size: 13px; color: #8fb3d4; margin-top: 10px; }
footer .credit a { color: var(--accent); font-weight: 700; }
footer a:hover { color: #fff; }
