/* Un seul thème, volontaire : l'app Copi est sombre, la page lui ressemble (design system v5). */
:root {
  color-scheme: dark;
  --bg: #151823;
  --card: #1E2235;
  --fg: #F0F0F5;
  --fg2: #A0A4B8;
  --mint: #8FE0AC;
  --logo: #3CB371;
  --border-subtle: rgba(255, 255, 255, 0.08);
  /* Contour et coins du badge Apple, repris pour le cadre du badge Google. */
  --badge-border: #A6A6A6;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  /* Dégradé signature de l'accueil de l'app. */
  background: linear-gradient(180deg, #17503F 0%, #163B4A 22%, #151D2A 44%, var(--bg) 66%) no-repeat, var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
/* Pendant au logo du haut : le contenu reste centré dans la page. */
body::after { content: ""; display: block; height: 48px; flex: none; }

.brand { display: flex; align-items: center; gap: 10px; height: 48px; font-size: 16px; font-weight: 600; letter-spacing: 3px; }
.brand img { display: block; width: 28px; height: 28px; }
.vtc { color: var(--logo); }

main { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.intro { display: flex; flex-direction: column; align-items: center; text-align: center; }
.icon { display: block; width: 104px; height: 104px; border-radius: 23px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
h1 { margin: 32px 0 0; font-size: 34px; line-height: 40px; font-weight: 800; letter-spacing: -0.5px; text-wrap: balance; }
.lede { margin: 12px 0 0; max-width: 300px; font-size: 17px; line-height: 25px; font-weight: 500; color: var(--fg2); text-wrap: pretty; }

/* ---------- Badges officiels, même taille ---------- */
.stores { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.store { display: block; width: 190px; height: 60px; border-radius: 13px; }
.store:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.apple img { display: block; width: 100%; height: 100%; }
/* Le badge Google est moins large que celui d'Apple à hauteur égale : posé, sans déformation,
   dans un cadre de la taille du badge Apple. */
.google { display: flex; align-items: center; justify-content: center; background: #040707; border: 1.5px solid var(--badge-border); }
.google img { display: block; width: 158px; height: auto; }
.google { order: 1; }
.apple { order: 2; }
html[data-os="ios"] .apple, html[data-os="other"] .apple { order: 0; }

/* ---------- Ordinateur : QR code pour passer sur le téléphone ---------- */
.qr-card { display: none; }
@media (min-width: 900px) {
  body { padding: 28px 80px 40px; }
  .brand { font-size: 18px; }
  .brand img { width: 32px; height: 32px; }
  main { gap: 96px; }
  .intro { align-items: flex-start; text-align: left; max-width: 520px; }
  .icon { width: 96px; height: 96px; border-radius: 21px; }
  h1 { font-size: 52px; line-height: 58px; letter-spacing: -1px; }
  .lede { max-width: none; font-size: 19px; line-height: 28px; margin-top: 16px; }
  .stores { flex-direction: row; gap: 16px; }
  .store { width: 177px; height: 56px; border-radius: 12px; }
  .google img { width: 147px; }
  .qr-card { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--border-subtle); }
  .qr-card img { display: block; width: 200px; height: 200px; padding: 14px; background: #FFFFFF; border-radius: 12px; }
  .qr-card p { margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; }
}
