/* GANGAN — site vitrine (gangan.cash). Feuille unique, sans build.
   Palette reprise de la PWA (pwa_client/public/css/app.css), elle-même
   extraite du thème Flutter : le site, la PWA et l'app doivent se
   ressembler — un visiteur qui passe de l'un à l'autre ne doit pas douter
   d'être au même endroit. Thème sombre assumé : c'est l'identité du produit.
   Budget : la page d'accueil complète (html + css + icône) doit rester sous
   40 Ko gzip — le site doit se charger en 2G, comme la PWA. */

:root {
  --brand: #1b5e20;
  --brand-bright: #2e9e5b;
  --accent-orange: #f28c28;
  --bg: #101512;
  --surface: #1d211b;
  --surface-high: #262b23;
  --text: #e0e4db;
  --text-muted: #c2c9bd;
  --outline: #424940;
  --on-primary: #0b390f;
  --incoming: #1b8a3a;
  --withdraw: #ef8c00;
  --danger: #ffb4ab;
  --r-sm: 14px;
  --r-md: 16px;
  --r-lg: 24px;
  --maxw: 1080px;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-bright); }
a:hover { color: #4fc27a; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: .6rem; }
h3 { font-size: 1.15rem; margin-bottom: .35rem; }
p + p { margin-top: .8rem; }
ul, ol { padding-left: 1.3rem; }
li + li { margin-top: .35rem; }
strong { color: #fff; }
.muted { color: var(--text-muted); }
.small { font-size: .92rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- En-tête ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(16, 21, 18, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--outline);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--text-muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: var(--surface); }
.nav .btn { margin-left: 6px; color: var(--on-primary); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--outline); color: var(--text); border-radius: 10px; padding: 8px 12px; font-size: 1rem; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--outline); padding: 10px 20px 16px; gap: 2px; }
  .nav.ouvert { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---- Boutons ---- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; cursor: pointer;
  padding: 13px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: var(--brand-bright); color: var(--on-primary); font-size: 1rem; transition: filter .15s;
}
.btn:hover { filter: brightness(1.1); color: var(--on-primary); }
.btn-secondary { background: var(--surface-high); color: #fff; border-color: var(--outline); }
.btn-secondary:hover { color: #fff; }
.btn-orange { background: var(--accent-orange); color: #2b1600; }
.btn-orange:hover { color: #2b1600; }
.btn-lg { padding: 16px 28px; font-size: 1.08rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

/* ---- Sections ---- */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--outline); }
.section-title { margin-bottom: 1.6rem; }
.section-title p { color: var(--text-muted); max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--brand-bright); font-weight: 700; margin-bottom: .5rem; }

.hero { padding: 84px 0 72px; background: radial-gradient(ellipse at 20% 0%, rgba(46, 158, 91, .22), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(242, 140, 40, .10), transparent 50%); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.22rem; color: var(--text-muted); margin-top: 1.1rem; max-width: 560px; }
.hero.simple .wrap { grid-template-columns: 1fr; }
.hero.simple { padding: 64px 0 40px; }
@media (max-width: 820px) { .hero { padding: 56px 0 48px; } .hero .wrap { grid-template-columns: 1fr; } }

/* Illustration « confirmation vocale » en CSS pur (aucune image à charger) */
.voix { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-lg); padding: 28px; position: relative; overflow: hidden; }
.voix .montant { font-size: 2.4rem; font-weight: 800; color: #fff; }
.voix .bulle { margin-top: 18px; background: var(--brand); color: #fff; padding: 14px 16px; border-radius: 18px 18px 18px 4px; font-size: 1.05rem; }
.voix .bulle small { display: block; opacity: .8; margin-top: 4px; }
.voix .ondes { display: flex; gap: 4px; align-items: flex-end; height: 34px; margin-top: 18px; }
.voix .ondes i { width: 6px; background: var(--brand-bright); border-radius: 3px; animation: onde 1.1s ease-in-out infinite; }
.voix .ondes i:nth-child(2n) { animation-delay: .15s; } .voix .ondes i:nth-child(3n) { animation-delay: .3s; }
@keyframes onde { 0%, 100% { height: 8px } 50% { height: 34px } }
@media (prefers-reduced-motion: reduce) { .voix .ondes i { animation: none; height: 16px; } }
.voix .etiquette { position: absolute; top: 16px; right: 16px; background: var(--incoming); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

.grille { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.carte { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-md); padding: 24px; }
.carte .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: var(--surface-high); margin-bottom: 14px; }
.carte p { color: var(--text-muted); }
.carte.accent { border-color: var(--brand-bright); }
.carte .btn { margin-top: 16px; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-high); color: var(--text-muted); vertical-align: middle; margin-left: 6px; }
.badge.ok { background: rgba(27, 138, 58, .25); color: #7fe0a0; }
.badge.soon { background: rgba(239, 140, 0, .2); color: #ffc46b; }

.etapes { counter-reset: e; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; }
.etapes li { list-style: none; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-md); padding: 22px 22px 22px 66px; position: relative; margin: 0; }
.etapes li::before { counter-increment: e; content: counter(e); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-bright); color: var(--on-primary); font-weight: 800; display: grid; place-items: center; }

table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--outline); }
th { color: var(--text-muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; border: 1px solid var(--outline); border-radius: var(--r-md); background: var(--surface); }

.encart { background: var(--surface); border-left: 4px solid var(--accent-orange); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 18px 20px; margin: 1.2rem 0; }
.encart.vert { border-left-color: var(--brand-bright); }

.cta-bloc { background: linear-gradient(135deg, var(--brand), #14401a); border-radius: var(--r-lg); padding: 44px 32px; text-align: center; }
.cta-bloc h2 { color: #fff; }
.cta-bloc p { color: rgba(255, 255, 255, .85); max-width: 560px; margin: .6rem auto 0; }
.cta-bloc .btn-group { justify-content: center; }
.cta-bloc .btn-secondary { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }

/* Pages de texte (CGU, confidentialité, mentions) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; font-size: 1.45rem; }
.prose h3 { margin-top: 1.4rem; }
.prose p, .prose ul, .prose ol { margin-top: .7rem; }
.a-completer { background: rgba(242, 140, 40, .18); color: #ffc46b; padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* Formulaire de vérification */
.champ { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1rem; }
.champ input { flex: 1 1 260px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--outline); background: var(--surface); color: #fff; font-size: 1.05rem; }
.champ input:focus { outline: 2px solid var(--brand-bright); border-color: transparent; }
.erreur { color: var(--danger); margin-top: .6rem; }
.erreur:empty { display: none; }

/* ---- Pied de page ---- */
.site-footer { border-top: 1px solid var(--outline); padding: 40px 0 28px; color: var(--text-muted); font-size: .93rem; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0 0 .35rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .bas { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--outline); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.pied-credit { display: inline-flex; align-items: center; gap: 8px; }
.pied-credit img { height: 22px; width: auto; }
