/* Site de présentation de Wallet — mêmes couleurs que l'app, clair ou sombre
   selon le réglage de l'appareil. */

@font-face {
  font-family: "Inter";
  src: url("/app/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2f2f7;
  --elev: #fff;
  --label: #000;
  --label-2: rgba(60, 60, 67, .6);
  --label-3: rgba(60, 60, 67, .3);
  --sep: rgba(60, 60, 67, .2);
  --fill: rgba(118, 118, 128, .12);
  --blue: #007aff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(0, 0, 0, .08);
  --phone-frame: #111113;
  --phone-shadow: 0 30px 60px rgba(0, 0, 0, .22);
  color-scheme: light;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1080px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --elev: #1c1c1e;
    --label: #fff;
    --label-2: rgba(235, 235, 245, .6);
    --label-3: rgba(235, 235, 245, .3);
    --sep: rgba(84, 84, 88, .65);
    --fill: rgba(118, 118, 128, .24);
    --blue: #0a84ff;
    --shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08);
    --phone-frame: #2c2c2e;
    --phone-shadow: 0 30px 60px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 17px/1.47 var(--font);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
html:not(.is-phone) .phone-only, html.is-phone .desktop-only { display: none !important; }

main > section, .facts, .footer, .nav {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Barre du haut ------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.nav-right { display: flex; align-items: center; gap: 10px; }

.lang { display: flex; padding: 2px; border-radius: 10px; background: var(--fill); }
.lang button { min-width: 38px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.lang button[aria-pressed="true"] { background: var(--elev); color: var(--label); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 25px;
  background: var(--label);
  color: var(--bg);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  transition: opacity .15s ease, transform .15s ease;
}
.btn:active { opacity: .7; transform: scale(.98); }
.btn--ghost { background: var(--elev); color: var(--label); box-shadow: var(--shadow); }
.btn--small { min-height: 36px; padding: 0 16px; border-radius: 18px; font-size: 15px; white-space: nowrap; }

/* --- Accroche ------------------------------------------------------------ */

.hero { padding-top: clamp(28px, 7vw, 72px); text-align: center; overflow: hidden; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--label-2); margin-bottom: 14px; }
.hero h1 {
  max-width: 15em;
  margin-inline: auto;
  font-size: clamp(36px, 7.4vw, 68px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.lead {
  max-width: 36em;
  margin: 20px auto 0;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--label-2);
  text-wrap: pretty;
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: clamp(36px, 7vw, 64px);
  height: clamp(380px, 78vw, 560px); /* les téléphones dépassent et sont coupés en bas */
}

.phone {
  position: relative;
  flex: none;
  width: clamp(200px, 46vw, 290px);
  padding: 9px;
  border-radius: 46px;
  background: var(--phone-frame);
  box-shadow: var(--phone-shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .14);
  z-index: 2;
}
.phone img { width: 100%; border-radius: 38px; }
.phone--side { width: clamp(170px, 38vw, 250px); margin-top: 44px; z-index: 1; }
.phone--side:first-child { margin-right: clamp(-150px, -22vw, -40px); }
.phone--side:last-child { margin-left: clamp(-150px, -22vw, -40px); }
@media (min-width: 760px) {
  .phone--side:first-child { margin-right: 28px; }
  .phone--side:last-child { margin-left: 28px; }
}

/* --- Titres de section --------------------------------------------------- */

main > section { padding-top: clamp(64px, 10vw, 112px); }
h2 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.03em;
  text-align: center;
  text-wrap: balance;
}
.sub { max-width: 34em; margin: 14px auto 0; text-align: center; color: var(--label-2); text-wrap: pretty; }

/* --- Tuiles -------------------------------------------------------------- */

.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; gap: 20px; } }

.tile {
  position: relative;
  height: clamp(480px, 118vw, 600px);
  padding: 32px 28px 0;
  border-radius: 32px;
  background: var(--elev);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}
.tile h3 { font-size: clamp(24px, 3.6vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.tile p { max-width: 24em; margin: 10px auto 0; color: var(--label-2); text-wrap: pretty; }
.tile .phone { width: min(74%, 270px); margin: 28px auto 0; }

/* --- Points clés --------------------------------------------------------- */

.facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: clamp(48px, 8vw, 80px); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts strong { display: block; font-size: 17px; font-weight: 600; }
.facts span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--label-2); }

/* --- Installation -------------------------------------------------------- */

.install { max-width: 680px !important; }
.tabs { display: flex; width: fit-content; margin: 28px auto 0; padding: 3px; border-radius: 12px; background: var(--fill); }
.tabs button { min-width: 116px; height: 36px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--label-2); }
.tabs button[aria-selected="true"] { background: var(--elev); color: var(--label); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }

.steps { list-style: none; counter-reset: step; margin-top: 20px; border-radius: 26px; background: var(--elev); box-shadow: var(--shadow); overflow: hidden; }
.steps[hidden] { display: none; }
.steps li { position: relative; counter-increment: step; min-height: 62px; padding: 17px 18px 17px 62px; }
.steps li + li::before { content: ""; position: absolute; top: 0; left: 62px; right: 18px; height: .5px; background: var(--sep); }
.steps li::after { content: counter(step); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.steps b { font-weight: 600; }

.note { margin-top: 16px; padding: 14px 18px; border-radius: 18px; border: .5px solid var(--sep); font-size: 15px; line-height: 1.4; color: var(--label-2); }
.note b { color: var(--label); font-weight: 600; }

/* --- Questions ----------------------------------------------------------- */

.faq { max-width: 680px !important; }
.faq h2 { margin-bottom: 24px; }
details { border-top: .5px solid var(--sep); }
details:last-child { border-bottom: .5px solid var(--sep); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--label-3); border-bottom: 2px solid var(--label-3); transform: rotate(45deg); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(-135deg); }
details p { padding: 0 2px 18px; color: var(--label-2); }

/* --- Pied de page -------------------------------------------------------- */

.footer { padding-top: clamp(56px, 9vw, 96px); padding-bottom: max(40px, env(safe-area-inset-bottom)); text-align: center; }
.footer p { max-width: 40em; margin-inline: auto; font-size: 13px; line-height: 1.4; color: var(--label-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
