/*
 * Jetons repris de docs/handoff/README.md § 6, comme l'app : les deux pages sont lues juste
 * après un écran de l'app, un autre bleu s'y verrait.
 */
:root {
  --navy: #10314f;
  --accent: #2f79bd;
  --bg: #eef2f6;
  --surface: #ffffff;
  --border: #e7edf3;
  --text: #0f2033;
  --muted: #64778c;
  --warning: #c9891e;
  --warning-bg: #fdf4e5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
}

header {
  background: var(--navy);
  color: #fff;
  padding: 28px 20px;
}

header .inner, main, .wrap { max-width: 760px; margin: 0 auto; }

header a.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
header p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

main, .wrap { padding: 28px 20px 64px; }

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 18px;
}

h1 { font-size: 1.6rem; margin: 0 0 6px; }
h2 { font-size: 1.1rem; margin: 26px 0 8px; }
h2:first-of-type { margin-top: 0; }
p, li { color: var(--text); }
.lede, .updated { color: var(--muted); }
.updated { font-size: 0.85rem; margin-top: 0; }

a { color: var(--accent); }

ul { padding-inline-start: 22px; }
li { margin-bottom: 6px; }

.langs { margin: 0 0 18px; font-size: 0.9rem; }
.langs a { margin-inline-end: 12px; }

/* Bloc arabe : le sens de lecture change, le reste de la mise en page non. */
[dir="rtl"] { font-family: "Cairo", system-ui, sans-serif; text-align: right; }

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 48px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------------------
 * Page d'accueil. Les pages légales n'utilisent rien de ce qui suit.
 * ------------------------------------------------------------------------ */

.hero {
  background: linear-gradient(160deg, #0e2c49 0%, #10314f 45%, #1b4f7d 100%);
  color: #fff;
  padding: 56px 20px 64px;
  position: relative;
  overflow: hidden;
}

/* Les deux halos bleus du décor de l'app, au même endroit du repère. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 130, 200, 0.55) 0%, rgba(50, 130, 200, 0) 70%);
  pointer-events: none;
}
.hero::before { width: 420px; height: 420px; top: -160px; inset-inline-end: -120px; }
.hero::after { width: 340px; height: 340px; bottom: -180px; inset-inline-start: -100px; }

.hero .inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero .langs { margin-bottom: 18px; }
.hero .langs a { color: #fff; }

.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 14px;
  max-width: 16ch;
}

.hero p.sub { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; margin: 0 0 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; padding: 0; list-style: none; }
.chips li {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  margin: 0;
}

/* Badges des stores. Non cliquables tant que l'app n'y est pas : un lien mort
   promettrait un téléchargement qui n'existe pas. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 18px;
  color: #fff;
  text-decoration: none;
  min-width: 178px;
}
.store-badge[aria-disabled="true"] { opacity: 0.62; cursor: default; }
.store-badge svg { flex: none; }
.store-badge .lines { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .small { font-size: 0.66rem; color: rgba(255, 255, 255, 0.75); }
.store-badge .big { font-size: 1.02rem; font-weight: 600; }

.stores-note { color: rgba(255, 255, 255, 0.6); font-size: 0.82rem; margin: 14px 0 0; }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.card .arabic-name { color: var(--muted); font-size: 0.9rem; margin: 0 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .badge {
  display: inline-block;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.badge-amti { background: #e8f0f9; color: #2f79bd; }
.badge-rokh { background: #eaf3ec; color: #0e7a4f; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding-inline-start: 44px;
  margin-bottom: 18px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 0.92rem; }

.price { font-size: 1.35rem; font-weight: 700; }
.price small { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
