/* Livo Pay · site web
   Charte reprise de l'app Android (ui/theme) : nuit + menthe, Sora pour les titres et montants,
   Manrope pour les textes. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-variable.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --night: #0A1A3F;
  --night-light: #142B5F;
  --night-deep: #071331;
  --mint: #2EE6A8;
  --mint-hover: #22D99B;
  --mint-dark: #078A5E;
  --mint-text: #056B49;
  --mint-soft: #D5FBEF;
  --mint-tint: #E7FBF3;
  --mint-border: #BDEFDB;
  --mist: #F4F6FB;
  --white: #FFFFFF;
  --slate: #5A6785;
  --line: #E3E8F2;
  --line-strong: #D3DAE8;
  --dashed: #C3CCDD;
  --on-night-muted: #C9D2E8;
  --on-night-subtle: #AEB9D6;
  --info-bg: #EAEFF8;
  --info-text: #24406B;
  --amber-soft: #FFF4DB;
  --amber-text: #8A5A00;
  --coral-soft: #FDE7E8;
  --coral-text: #A3262A;
  --coral: #E5484D;
  --blue-soft: #E6EBFF;
  --blue-text: #2A3F9E;
  --peach-soft: #FFF1DB;
  --orange: #FF7900;
  --mtn: #FFCC00;
  --on-wallet: #111111;

  /* Logo : téléphone et découpe, réglés selon le fond (voir .on-light). */
  --mark-phone: var(--white);
  --mark-cut: var(--night);

  --font-title: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-text: "Manrope", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-card: 0 24px 60px -24px rgba(10, 26, 63, 0.35), 0 2px 6px rgba(10, 26, 63, 0.06);
  --shadow-soft: 0 12px 32px -16px rgba(10, 26, 63, 0.25);

  --header-h: 72px;
  --tabbar-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  color-scheme: light;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--mist);
  color: var(--night);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

button, input { font: inherit; color: inherit; }

button { cursor: pointer; }

img, svg { display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--mint-dark);
  outline-offset: 2px;
  border-radius: 6px;
}

.on-night :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--mint); }

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i.filled { fill: currentColor; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container { width: min(1200px, 100% - 48px); }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--night);
  font-weight: 800;
}

.skip-link:focus { top: 12px; }

.demo-banner {
  padding: 8px 16px;
  background: var(--amber-soft);
  color: var(--amber-text);
  font-size: 13px;
  text-align: center;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--coral-soft);
  color: var(--coral-text);
  font-weight: 700;
  text-align: center;
}

/* ---------- Logo ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  height: 32px;
  width: calc(32px * 56 / 68);
}

.wordmark {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.wordmark b { font-weight: 800; color: var(--white); }
.wordmark span { font-weight: 600; color: var(--mint); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .18s, box-shadow .18s, transform .08s, border-color .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
}

.btn .i { width: 18px; height: 18px; }
.btn:active:not(:disabled) { transform: translateY(1px); }

.btn-sm { height: 44px; padding: 0 16px; font-size: 14.5px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--mint); color: var(--night); }
.btn-primary:hover:not(:disabled) {
  background: var(--mint-hover);
  box-shadow: 0 10px 26px -10px rgba(46, 230, 168, 0.75);
}

.btn-primary:disabled { background: var(--line); color: var(--slate); cursor: not-allowed; }
.btn-primary.is-loading:disabled { background: var(--mint); color: var(--night); cursor: progress; }

.btn-dark { height: 52px; background: var(--night); color: var(--white); }
.btn-dark:hover { background: var(--night-light); }

.btn-outline {
  height: 52px;
  padding: 0 16px;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--night);
}

.btn-outline:hover { background: var(--white); border-color: var(--slate); }

.btn-outline-mint {
  height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 1.5px solid var(--mint);
  color: var(--mint);
  font-size: 14px;
}

.btn-outline-mint:hover { background: rgba(46, 230, 168, 0.1); }

.btn-text {
  height: 44px;
  padding: 0 12px;
  background: none;
  color: var(--on-night-subtle);
  font-size: 14px;
  font-weight: 700;
}

.btn-text:hover { color: var(--white); }

.spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  color: var(--night);
  transition: background-color .18s;
}

.icon-btn-mist { background: var(--mist); }
.icon-btn-mist:hover { background: var(--line); }
.icon-btn-white:hover { background: var(--line); }
.icon-btn-night { background: var(--night-light); color: var(--white); }
.icon-btn-night:hover { background: #1C3874; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--night);
  color: var(--white);
  transition: box-shadow .2s;
}

.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(7, 19, 49, 0.6); }

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.site-nav {
  display: none;
  gap: 4px;
  margin-inline: auto;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--on-night-muted);
  font-size: 14.5px;
  font-weight: 700;
  transition: color .15s, background-color .15s;
}

.site-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--night-light);
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
}

.header-link span { display: none; }
.header-actions .btn-primary { display: none; }

@media (min-width: 640px) {
  .header-link { width: auto; padding: 0 14px; background: transparent; color: var(--on-night-muted); }
  .header-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
  .header-link span { display: inline; }
  .header-actions .btn-primary { display: inline-flex; }
}

@media (min-width: 960px) {
  .site-nav { display: flex; }
  .header-actions { margin-left: 0; }
}

/* ---------- Accueil : hero ---------- */

.hero {
  position: relative;
  margin-bottom: 96px;
  color: var(--white);
}

.hero-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background:
    radial-gradient(520px circle at 88% 18%, rgba(46, 230, 168, 0.18), transparent 62%),
    radial-gradient(640px circle at 0% 100%, rgba(20, 43, 95, 0.95), transparent 70%),
    var(--night);
}

.hero-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
}

.hero-glow::after {
  /* Ondes concentriques, reprises de l'illustration de validation de l'app. */
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -260px;
  top: -200px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 34%, rgba(46, 230, 168, 0.06) 34% 35%, transparent 35% 48%,
      rgba(46, 230, 168, 0.05) 48% 49%, transparent 49% 64%, rgba(46, 230, 168, 0.04) 64% 65%, transparent 65%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 28px;
  padding-top: 20px;
}

.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: start; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(20, 43, 95, 0.9);
  color: var(--on-night-subtle);
  font-size: 13px;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(46, 230, 168, 0.6);
  animation: live 2s infinite;
}

.hero h1 {
  font-size: clamp(2rem, 1.25rem + 3.4vw, 3.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 13em;
}

.hero h1 .accent { color: var(--mint); }

.lead {
  max-width: 34em;
  color: var(--on-night-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.6;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 4px;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.hero-trust .i { color: var(--mint); }

.hero-trust .wallet-badge { width: 32px; height: 32px; border-radius: 10px; font-size: 10.5px; }
.hero-trust .wallet-badge + .wallet-badge { margin-left: -14px; box-shadow: 0 0 0 2px var(--night); }

.hero-card-wrap { position: relative; margin-bottom: -72px; }

@media (min-width: 960px) {
  .hero { margin-bottom: 128px; }
  .hero-glow { border-radius: 0 0 48px 48px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: end;
    gap: 56px;
    padding-top: 56px;
  }

  .hero-copy { padding-bottom: 128px; gap: 22px; }
  .hero-card-wrap { margin-bottom: -88px; }
}

/* ---------- Carte de recharge ---------- */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
}

.recharge-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  color: var(--night);
  box-shadow: var(--shadow-card);
}

@media (min-width: 960px) {
  .recharge-card { padding: 28px; gap: 16px; border-radius: 28px; }
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-head h2 { font-size: 18px; }

.tag-camtel {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.field { display: grid; gap: 8px; }

.field-label {
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
}

.field-error {
  color: var(--coral-text);
  font-size: 12.5px;
  line-height: 18px;
}

.field-error:empty { display: none; }

.phone-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 6px 0 14px;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  transition: border-color .15s, box-shadow .15s;
}

.phone-field:focus-within {
  border-color: var(--night);
  box-shadow: 0 0 0 4px rgba(46, 230, 168, 0.25);
}

.phone-field.is-valid { border: 2px solid var(--mint-dark); padding-left: 13.5px; }
.phone-field.is-error { border: 2px solid var(--coral); padding-left: 13.5px; }
.phone-field.is-error:focus-within { box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.15); }

.phone-prefix { color: var(--slate); font-size: 15px; font-weight: 700; }

.phone-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--night);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.phone-input::placeholder { color: rgba(90, 103, 133, 0.55); font-weight: 700; }
.phone-field:not(:has(.contact-btn:not([hidden]))) { padding-right: 10px; }

.valid-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-text);
  font-size: 11px;
  font-weight: 800;
}

.valid-badge .i { width: 14px; height: 14px; stroke-width: 2.6; }

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.chip-amount {
  height: 44px;
  padding: 0 4px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--night);
  font-size: 13.5px;
  font-weight: 800;
  transition: border-color .15s, background-color .15s, color .15s;
}

.chip-amount:hover { border-color: var(--line-strong); }
.chip-amount[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--white); }

.quick-favorites {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -2px 0;
  padding: 2px 0;
}

.quick-favorites::-webkit-scrollbar { display: none; }

.guarantee-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--mint-text);
  font-size: 13px;
  font-weight: 700;
}

.guarantee-line .i { width: 16px; height: 16px; }

/* Pastilles des portefeuilles (couleurs des opérateurs, sans leurs logos), comme WalletBadge. */
.wallet-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--on-wallet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.wallet-om { background: var(--orange); }
.wallet-momo { background: var(--mtn); font-size: 11px; }

/* ---------- Accueil : sections ---------- */

.facts { position: relative; }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.fact {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
}

.fact-value {
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.fact-value small { font-size: 0.55em; font-weight: 600; color: var(--slate); letter-spacing: 0; }
.fact-label { color: var(--slate); font-size: 13.5px; line-height: 1.4; }

@media (min-width: 900px) {
  .facts-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .fact { padding: 22px 24px; }
}

.section { padding: 64px 0; }
.section-tight { padding: 24px 0; }
.section-mist { background: var(--white); }

@media (min-width: 960px) {
  .section { padding: 96px 0; }
  .section-tight { padding: 32px 0; }
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
  justify-items: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-head p { color: var(--slate); font-size: 16px; line-height: 1.6; }

.section-head-left { text-align: left; justify-items: start; margin: 0; }
.section-head-left .btn { margin-top: 8px; }

.kicker {
  color: var(--mint-dark);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker-on-night { color: var(--mint); }

/* Étapes */

.steps {
  display: grid;
  gap: 16px;
  counter-reset: none;
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.step-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform .2s, box-shadow .2s;
}

.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.step-num {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--night);
  font-size: 14px;
  font-weight: 800;
}

.step-card h3 { font-size: 18px; line-height: 1.3; margin-top: 8px; }
.step-card p { color: var(--slate); font-size: 14.5px; line-height: 1.6; }
.step-card strong { color: var(--night); font-weight: 800; }

.step-visual {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  height: 136px;
  border-radius: 18px;
  background: var(--mist);
}

.mini-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 12px;
  border: 2px solid var(--mint-dark);
  border-radius: 12px;
  background: var(--white);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.mini-field b, .device-field b { color: var(--slate); font-weight: 700; }

.mini-field i, .device-field i {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-text);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 800;
}

.mini-chips, .device-chips { display: flex; gap: 6px; }

.mini-chips i, .device-chips i {
  padding: 6px 10px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 800;
}

.mini-chips i.on, .device-chips i.on { background: var(--night); border-color: var(--night); color: var(--white); }

.mini-notif, .mini-success {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: left;
}

.mini-notif { background: var(--white); box-shadow: var(--shadow-soft); color: var(--slate); }
.mini-notif b { color: var(--night); font-weight: 800; }
.mini-notif .wallet-badge { width: 36px; height: 36px; font-size: 10.5px; }

.mini-success { background: var(--night); color: var(--on-night-muted); }
.mini-success b { color: var(--white); font-weight: 800; }

.mini-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--night);
}

.mini-check .i { width: 18px; height: 18px; stroke-width: 2.8; }

/* Garanties */

.guarantee-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 32px;
  padding: 28px 20px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(480px circle at 100% 0%, rgba(46, 230, 168, 0.16), transparent 60%),
    var(--night);
  color: var(--white);
}

.guarantee-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; justify-items: start; }
.guarantee-intro h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; }
.guarantee-intro p { color: var(--on-night-muted); font-size: 16px; line-height: 1.6; }
.guarantee-intro .btn { margin-top: 8px; }

.guarantee-list { display: grid; gap: 12px; }

.guarantee-list li {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(20, 43, 95, 0.85);
}

.guarantee-list h3 { font-size: 16px; margin-bottom: 4px; }
.guarantee-list p { color: var(--on-night-muted); font-size: 13.5px; line-height: 1.55; }

.g-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--night);
}

@media (min-width: 720px) {
  .guarantee-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .guarantee-panel { grid-template-columns: 0.85fr 1.15fr; gap: 48px; padding: 56px; border-radius: 40px; }
  .guarantee-intro { align-content: center; }
}

/* Application */

.app-grid { display: grid; gap: 48px; align-items: center; }

@media (min-width: 960px) {
  .app-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.app-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.app-rings {
  position: absolute;
  width: min(520px, 110%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(46, 230, 168, 0.22) 0 30%, rgba(46, 230, 168, 0.12) 30% 46%,
      rgba(46, 230, 168, 0.06) 46% 64%, transparent 64%);
}

.device {
  position: relative;
  width: 272px;
  padding: 10px;
  border-radius: 46px;
  background: var(--night-deep);
  box-shadow: 0 40px 80px -30px rgba(10, 26, 63, 0.55), inset 0 0 0 2px #1A2B55;
}

.device-screen {
  overflow: hidden;
  height: 540px;
  border-radius: 37px;
  background: var(--mist);
}

.device-header {
  display: grid;
  gap: 6px;
  padding: 22px 16px 74px;
  border-radius: 0 0 24px 24px;
  background: var(--night);
  color: var(--white);
}

.device-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

.device-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: -0.03em;
}

.device-logo .brand-mark { height: 20px; width: calc(20px * 56 / 68); }
.device-logo b { font-weight: 800; }
.device-logo span { color: var(--mint); font-weight: 600; }

.device-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--night-light);
}

.device-bell .i { width: 15px; height: 15px; }
.device-header small { color: var(--on-night-subtle); font-size: 10.5px; }
.device-header strong { font-family: var(--font-title); font-size: 17px; line-height: 1.25; }

.device-card {
  display: grid;
  gap: 9px;
  margin: -56px 12px 0;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 30px -16px rgba(10, 26, 63, 0.35);
}

.device-card small { color: var(--slate); font-size: 10px; font-weight: 700; }

.device-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 8px 9px 10px;
  border: 2px solid var(--mint-dark);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.device-field i { margin-left: auto; font-size: 8px; padding: 2px 6px; }

.device-chips i { flex: 1; padding: 6px 0; font-size: 10px; text-align: center; border-radius: 8px; }

.device-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  border-radius: 11px;
  background: var(--mint);
  font-size: 12px;
  font-weight: 800;
}

.device-btn .i { width: 13px; height: 13px; }

.device-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--mint-text);
  font-size: 9.5px;
  font-weight: 700;
}

.device-note .i { width: 11px; height: 11px; }

.device-section { padding: 16px 16px 8px; font-family: var(--font-title); font-size: 12px; font-weight: 700; }

.device-favs { display: flex; gap: 14px; padding: 0 16px; }

.device-favs span {
  display: grid;
  justify-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
}

.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--font-title);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  color: var(--night);
}

.av-mint { background: var(--mint-soft); }
.av-blue { background: var(--blue-soft); }
.av-peach { background: var(--peach-soft); }

.float-card {
  position: absolute;
  right: max(0px, calc(50% - 250px));
  bottom: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  line-height: 1.35;
  animation: float 5s ease-in-out infinite;
}

.float-card b { font-weight: 800; }
.float-card small { color: var(--slate); font-size: 12px; }

.app-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; }
.app-copy h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; }
.app-copy > p { color: var(--slate); font-size: 16px; line-height: 1.65; }

.check-list { display: grid; gap: 12px; margin: 4px 0 8px; }

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
}

.check-list .i {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--mint-text);
  stroke-width: 2.8;
}

.app-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px 0 14px;
  border-radius: var(--radius-md);
  background: var(--night);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.store-soon .i { width: 24px; height: 24px; color: var(--mint); }
.store-soon small { display: block; color: var(--on-night-subtle); font-size: 11px; font-weight: 700; }

/* FAQ */

.faq-grid { display: grid; gap: 32px; }

@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
  .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { color: var(--slate); transition: transform .2s; }
.faq-list details[open] summary .i { transform: rotate(180deg); }
.faq-list details p { padding: 0 32px 20px 0; color: var(--slate); font-size: 15px; line-height: 1.65; }
.faq-list details strong { color: var(--night); font-weight: 800; }

/* Bandeau final */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 24px;
  border-radius: 28px;
  background:
    radial-gradient(420px circle at 0% 0%, rgba(255, 255, 255, 0.45), transparent 60%),
    var(--mint);
}

.cta-band h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { margin-top: 6px; color: rgba(10, 26, 63, 0.75); font-size: 15.5px; }

@media (min-width: 960px) {
  .cta-band { padding: 40px 48px; border-radius: 36px; }
}

/* ---------- Pied de page ---------- */

.site-footer {
  margin-top: 40px;
  padding: 48px 0 24px;
  background: var(--night);
  color: var(--on-night-muted);
}

.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: grid; gap: 14px; max-width: 340px; }
.footer-brand p { font-size: 14px; line-height: 1.6; }

.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.footer-links h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a { display: block; padding: 6px 0; font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--on-night-subtle);
  font-size: 12.5px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr auto; }
}

/* ---------- Barre d'onglets mobile ---------- */

.tabbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.tabbar a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  color: var(--slate);
  font-size: 11px;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  transition: background-color .15s;
}

.tabbar a.is-active { color: var(--night); font-weight: 800; }
.tabbar a.is-active .tab-icon { background: var(--mint-soft); }

body { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom)); }

body[data-view="step"] .tabbar,
body[data-view="night"] .tabbar { display: none; }

body[data-view="step"],
body[data-view="night"] { padding-bottom: 0; }

@media (min-width: 960px) {
  .tabbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  z-index: 80;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--night);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  transform: translateX(-50%);
  animation: toast-in .2s ease-out;
}

body[data-view="step"] .toast { bottom: 120px; }

@media (min-width: 960px) {
  .toast, body[data-view="step"] .toast { bottom: 24px; }
}

/* ======================================================================
   Parcours : recharge, paiement, validation, suivi, reçu, historique, aide
   ====================================================================== */

.flow-root { min-height: calc(100vh - var(--header-h)); outline: none; }

body[data-view="night"] { background: var(--night); }
body[data-view="night"] .site-footer { display: none; }
body[data-view="step"] .site-footer { display: none; }

.page { padding: 20px 0 40px; }

@media (min-width: 960px) {
  .page { padding: 32px 0 64px; }
}

.flow-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.flow-head h1 {
  flex: 1;
  min-width: 0;
  font-size: 20px;
  text-align: center;
}

.flow-head .spacer { width: 44px; flex: none; }

.step-label {
  min-width: 44px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.stepper { display: none; }

@media (min-width: 960px) {
  .flow-head { gap: 16px; margin-bottom: 28px; }
  .flow-head h1 { font-size: 28px; text-align: left; }
  .flow-head .step-label { display: none; }

  .stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate);
    font-size: 13.5px;
    font-weight: 700;
  }

  .stepper span { display: inline-flex; align-items: center; gap: 8px; }

  .stepper b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--line-strong);
    font-size: 12px;
    font-weight: 800;
  }

  .stepper .is-active { color: var(--night); }
  .stepper .is-active b { background: var(--night); border-color: var(--night); color: var(--white); }
  .stepper .is-done b { background: var(--mint); border-color: var(--mint); color: var(--night); }
  .stepper .bar { width: 32px; height: 2px; border-radius: 2px; background: var(--line-strong); }
}

.flow-grid {
  display: grid;
  gap: 16px;
}

.flow-main, .flow-side { display: grid; gap: 16px; align-content: start; min-width: 0; }

@media (min-width: 960px) {
  .flow-grid { grid-template-columns: minmax(0, 1fr) 384px; gap: 28px; align-items: start; }
  .flow-side { position: sticky; top: calc(var(--header-h) + 24px); }
}

.side-first { order: -1; }

@media (min-width: 960px) {
  .side-first { order: 0; }
}

.white-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: var(--white);
}

@media (min-width: 960px) {
  .white-card { padding: 22px; gap: 14px; }
}

.card-title { font-family: var(--font-title); font-size: 16px; font-weight: 700; }

.section-label {
  padding: 0 4px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
}

.section-title { padding: 0 4px; font-family: var(--font-title); font-size: 16px; font-weight: 700; }

/* Barre d'action : collée en bas sur mobile (BottomActionBar), dans la colonne de droite sur ordinateur. */
.cta-dock {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: grid;
  gap: 8px;
  padding: 12px 16px calc(16px + var(--safe-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
}

body[data-view="step"] .page { padding-bottom: 140px; }

@media (min-width: 960px) {
  .cta-dock { position: static; padding: 0; background: none; border: 0; }
  body[data-view="step"] .page { padding-bottom: 64px; }
}

.secure-note { color: var(--slate); font-size: 12.5px; text-align: center; }

.error-banner {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--coral-text);
  font-size: 13.5px;
  font-weight: 700;
}

/* Recharge */

.pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -4px;
  padding: 2px 4px;
}

.pills::-webkit-scrollbar { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--night);
  font-size: 13px;
  font-weight: 700;
  transition: border-color .15s, background-color .15s;
}

.pill:hover { border-color: var(--line-strong); }
.pill .i { width: 16px; height: 16px; }
.pill[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--white); }

.amount-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.amount-display {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.amount-display small { color: var(--slate); font-size: 17px; font-weight: 600; letter-spacing: 0; }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.amount-tile {
  height: 56px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--night);
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  transition: border-color .15s, background-color .15s, color .15s;
}

.amount-tile:hover { border-color: var(--line-strong); }

.amount-tile.is-other {
  background: transparent;
  border: 2px dashed var(--dashed);
  color: var(--slate);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 800;
}

.amount-tile[aria-pressed="true"] { background: var(--night); border: 1.5px solid var(--night); color: var(--white); }

@media (min-width: 600px) {
  .amount-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 960px) {
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .amount-tile { height: 64px; font-size: 19px; }
}

.text-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}

.text-field:focus-within { border-color: var(--night); box-shadow: 0 0 0 4px rgba(46, 230, 168, 0.25); }
.text-field.is-error { border: 2px solid var(--coral); }

.text-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 800;
}

.text-field span { color: var(--slate); font-weight: 700; }

.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary-line > span:first-child { color: var(--slate); }
.summary-line > span:last-child { font-weight: 700; text-align: right; }
.summary-line .free { color: var(--mint-text); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.total-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.total-line > span:first-child { font-size: 15px; font-weight: 800; }
.total-line > span:last-child { font-family: var(--font-title); font-size: 20px; font-weight: 800; white-space: nowrap; }

/* Paiement */

.recap {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(260px circle at 100% 0%, rgba(46, 230, 168, 0.14), transparent 70%),
    var(--night);
  color: var(--white);
}

.recap-top { display: flex; align-items: center; justify-content: space-between; color: var(--on-night-subtle); font-size: 12.5px; }

.chip-night {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--night-light);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.recap-number { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.recap-number strong { font-family: var(--font-title); font-size: 22px; font-weight: 700; white-space: nowrap; }
.recap-number span { color: var(--on-night-subtle); font-size: 14px; }
.recap .divider { background: rgba(255, 255, 255, 0.12); }
.recap .summary-line > span:first-child { color: var(--on-night-muted); }
.recap .total-line > span:first-child { font-weight: 700; }
.recap .total-line > span:last-child { color: var(--mint); font-size: 22px; }

.wallet-options { display: grid; gap: 10px; }

.wallet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.wallet-option:hover { border-color: var(--line-strong); }
.wallet-option.is-selected { border-color: var(--night); }
.wallet-option:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(46, 230, 168, 0.35); }
.wallet-option input { position: absolute; opacity: 0; pointer-events: none; }
.wallet-option .wo-text { flex: 1; display: grid; gap: 2px; }
.wallet-option .wo-text b { font-size: 15px; font-weight: 800; }
.wallet-option .wo-text small { color: var(--slate); font-size: 12.5px; }

.radio {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--dashed);
  border-radius: 50%;
  transition: border-color .15s;
}

.wallet-option.is-selected .radio { border-color: var(--night); }

.wallet-option.is-selected .radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--night);
}

@media (min-width: 720px) {
  .wallet-options { grid-template-columns: 1fr 1fr; }
}

.detected {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  color: var(--mint-text);
  font-size: 13px;
  font-weight: 700;
}

.detected .i { width: 15px; height: 15px; stroke-width: 2.6; }

.guarantee-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--mint-border);
  border-radius: 18px;
  background: var(--mint-tint);
}

.guarantee-card .g-icon { width: 36px; height: 36px; }
.guarantee-card .g-icon .i { width: 18px; height: 18px; }
.guarantee-card b { display: block; font-size: 14px; font-weight: 800; }
.guarantee-card p { color: var(--info-text); font-size: 12.5px; line-height: 1.5; }

/* Validation (écran nuit) */

.night-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 0 48px;
  color: var(--white);
  text-align: center;
}

.night-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.night-top p { flex: 1; color: var(--on-night-subtle); font-size: 14px; font-weight: 700; }
.night-top .spacer { width: 44px; }

.waiting-illustration { width: 260px; height: 210px; margin: 8px auto 0; overflow: visible; }

.pulse-ring {
  transform-origin: 120px 108px;
  animation: pulse-ring 1.8s linear infinite;
}

.night-page h1 { font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem); line-height: 1.2; margin-top: 4px; }
.night-page .night-text { margin: 10px auto 0; max-width: 28em; color: var(--on-night-muted); font-size: 15.5px; line-height: 1.55; }
.night-page .night-text b { color: var(--white); font-weight: 800; white-space: nowrap; }

.waiting-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--night-light);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); opacity: .35; animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .4s; }
.dots i:nth-child(3) { animation-delay: .8s; }

.steps-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--night-light);
  text-align: left;
}

.step-row { display: flex; align-items: center; gap: 12px; font-size: 14px; }

.step-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--night);
  font-size: 13px;
  font-weight: 800;
}

.steps-card .divider { background: rgba(255, 255, 255, 0.1); }

.ussd-row { display: flex; align-items: center; gap: 12px; }
.ussd-row > div { flex: 1; display: grid; gap: 2px; }
.ussd-row strong { font-size: 14px; font-weight: 800; }
.ussd-row small { color: var(--on-night-muted); font-size: 12.5px; line-height: 1.45; }
.ussd-row code { color: var(--white); font-family: var(--font-text); font-weight: 800; }
.ussd-actions { display: flex; gap: 8px; flex: none; }

/* « Composer » n'a de sens que sur un téléphone ; « Copier » sur ordinateur. */
.only-pointer { display: none; }

@media (hover: hover) and (pointer: fine) {
  .only-pointer { display: inline-flex; }
  .only-touch { display: none; }
}

.night-actions { display: grid; gap: 12px; justify-items: center; margin-top: 12px; }

.failed-block { display: grid; gap: 12px; padding-top: 48px; }

.failed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(229, 72, 77, 0.16);
  color: #FF8A8E;
}

.failed-icon .i { width: 40px; height: 40px; stroke-width: 2.4; }

/* Suivi */

.status-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: center;
}

.status-hero h2 { font-size: 22px; }
.status-hero p { color: var(--slate); font-size: 14px; }

.ring { position: relative; width: 112px; height: 112px; }
.ring svg { width: 112px; height: 112px; }
.ring .ring-progress { transition: stroke-dasharray .6s ease; }
.ring.is-animating .ring-rotor { transform-origin: 56px 56px; animation: spin 2.4s linear infinite; }

.ring-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--night);
}

.ring-icon .i { width: 40px; height: 40px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.status-pill .i { width: 14px; height: 14px; }

.tone-amber { background: var(--amber-soft); color: var(--amber-text); }
.tone-mint { background: var(--mint-soft); color: var(--mint-text); }
.tone-coral { background: var(--coral-soft); color: var(--coral-text); }
.tone-blue { background: var(--blue-soft); color: var(--blue-text); }

.timeline { padding: 18px 20px; border-radius: var(--radius-lg); background: var(--white); }

.tl-row { display: flex; gap: 14px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-line { width: 3px; height: 30px; background: var(--line); }
.tl-line.is-done { background: var(--mint); }
.tl-body { flex: 1; display: grid; gap: 2px; padding-top: 3px; padding-bottom: 6px; }
.tl-body b { font-size: 15px; font-weight: 800; }
.tl-body small { color: var(--slate); font-size: 12.5px; }
.tl-row.is-pending .tl-body b { color: var(--slate); }
.tl-time { padding-top: 4px; color: var(--slate); font-size: 12.5px; font-weight: 700; }

.tl-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
}

.tl-dot.is-done { background: var(--mint); color: var(--night); }
.tl-dot.is-done .i { width: 16px; height: 16px; stroke-width: 2.8; }
.tl-dot.is-active { border: 3px solid var(--mint); }
.tl-dot.is-active::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--night); animation: blink .8s ease-in-out infinite alternate; }
.tl-dot.is-pending { border: 2px solid var(--line-strong); }

.info-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--info-bg);
  color: var(--info-text);
  font-size: 14px;
}

.refund-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 4px;
  color: var(--mint-text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}

.refund-note .i { width: 18px; height: 18px; }

.ref-tag {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--white);
  color: var(--slate);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.two-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Reçu */

.success-header {
  padding: 16px 0 96px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background:
    radial-gradient(420px circle at 50% 0%, rgba(46, 230, 168, 0.16), transparent 70%),
    var(--night);
  color: var(--white);
  text-align: center;
}

.success-header .container { display: grid; justify-items: center; gap: 10px; }
.success-header .close-row { justify-self: stretch; display: flex; }
.success-header h1 { font-size: clamp(1.55rem, 1.3rem + 1vw, 2.1rem); }
.success-header p { color: var(--on-night-muted); font-size: 15.5px; }
.success-header p b { color: var(--white); font-weight: 800; }

.success-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(46, 230, 168, 0.14);
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}

.success-badge::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--mint);
}

.success-badge .i { position: relative; width: 44px; height: 44px; color: var(--night); stroke-width: 2.6; }

.chip-mint-night {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--night-light);
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
}

.chip-mint-night .i { width: 14px; height: 14px; }

.receipt-wrap {
  display: grid;
  gap: 16px;
  max-width: 520px;
  margin: -64px auto 0;
  padding-bottom: 48px;
}

@media (max-width: 959px) {
  .receipt-wrap { padding-bottom: 120px; }
}

.receipt {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 20px 50px -24px rgba(10, 26, 63, 0.3);
}

.receipt-head { display: flex; align-items: center; justify-content: space-between; }
.receipt-head h2 { font-size: 16px; }
.receipt-head .ref-tag { background: var(--mist); }
.receipt .summary-line > span:last-child { font-weight: 800; }

.perforation {
  position: relative;
  height: 18px;
  margin: 0 -20px;
  background: linear-gradient(90deg, var(--line) 50%, transparent 50%) center / 11px 2px repeat-x;
  background-clip: content-box;
  padding: 0 20px;
}

.perforation::before,
.perforation::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mist);
  transform: translateY(-50%);
}

.perforation::before { left: -11px; }
.perforation::after { right: -11px; }

.receipt .total-line > span:last-child { font-size: 22px; }

.three-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.three-buttons .btn { padding: 0 8px; font-size: 14.5px; }

/* Historique */

.list-page { max-width: 760px; margin: 0 auto; }

.page-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 0 4px; }
.page-title h1 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.page-title p { color: var(--slate); font-size: 13.5px; }

.order-list { display: grid; gap: 8px; }

.order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  background: var(--white);
  text-align: left;
  transition: box-shadow .15s, transform .15s;
}

.order-row:hover { box-shadow: var(--shadow-soft); transform: translateY(-1px); }

.order-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-soft);
}

.order-avatar .i { width: 18px; height: 18px; }
.order-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.order-main b { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-main small { color: var(--slate); font-size: 12.5px; }
.order-side { display: grid; justify-items: end; gap: 4px; }
.order-side b { font-size: 15px; font-weight: 800; white-space: nowrap; }

.status-chip {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: center;
}

.empty-state .g-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--mint-soft); color: var(--mint-text); }
.empty-state .g-icon .i { width: 28px; height: 28px; }
.empty-state h2 { font-size: 18px; }
.empty-state p { max-width: 26em; color: var(--slate); font-size: 14.5px; }
.empty-state .btn { margin-top: 6px; }

.skeleton {
  height: 66px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--white) 0%, #ECF0F7 50%, var(--white) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.device-note-small { margin-top: 16px; padding: 0 4px; color: var(--slate); font-size: 12.5px; text-align: center; }

/* Aide */

.help-grid { display: grid; gap: 16px; }
.help-card { display: grid; gap: 8px; padding: 18px; border-radius: 22px; background: var(--white); }
.help-card h2 { font-size: 16px; }
.help-card p { color: var(--slate); font-size: 14px; line-height: 1.6; }
.help-contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.help-faq { padding: 4px 18px; border-radius: 22px; background: var(--white); }
.help-faq .faq-list details:first-child { border-top: 0; }
.help-faq .faq-list details:last-child { border-bottom: 0; }

/* Les grilles à une colonne ne doivent jamais s'élargir au contenu (rangées défilantes, montants longs). */
.flow-grid, .flow-main, .flow-side, .white-card, .field, .recharge-card, .help-grid, .receipt-wrap, .receipt,
.recap, .steps-card, .status-hero, .order-list { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 960px) {
  .flow-grid { grid-template-columns: minmax(0, 1fr) 384px; }
}

/* ---------- Animations ---------- */

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(46, 230, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-ring {
  from { transform: scale(1); opacity: .4; }
  to { transform: scale(1.85); opacity: 0; }
}

@keyframes dot {
  0%, 33% { opacity: 1; }
  34%, 100% { opacity: .35; }
}

@keyframes blink { from { opacity: .35; } to { opacity: 1; } }

@keyframes shimmer { to { background-position: -200% 0; } }

@keyframes pop {
  from { transform: scale(.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.flow-root > * { animation: view-in .25s ease-out; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Impression du reçu ---------- */

@media print {
  body { background: #fff; padding: 0; }
  .site-header, .site-footer, .tabbar, .demo-banner, .toast, .no-print { display: none !important; }
  .success-header { padding: 0 0 16px; background: none; color: var(--night); }
  .success-header p, .success-header p b { color: var(--night); }
  .success-badge { display: none; }
  .receipt-wrap { margin: 0 auto; }
  .receipt { box-shadow: none; border: 1px solid var(--line); }
  .perforation::before, .perforation::after { background: #fff; }
}
