/* Ja Speak — thème clair et pro, dégradé corail → rose ; Poppins pour les titres, polices système pour le texte. */
@font-face { font-family: "Poppins"; src: url(/fonts/poppins-700.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/fonts/poppins-600.woff) format("woff"); font-weight: 500 600; font-display: swap; }
:root {
  /* Thème clair et pro (12 nov. 2026) : fond blanc, une couleur forte (dégradé corail → rose du logo). */
  --night: #F5F6F8;
  --night-2: #FFFFFF;
  --night-3: #ECEEF2;
  --line: #D6D9E0;
  --sand: #16181D;
  --sand-dim: #5D6271;
  --ochre: #EE4A22;
  --ochre-ink: #FFFFFF;
  --sky: #D2361C;
  --pink: #E8216C;
  --grad: linear-gradient(135deg, #FF8A2B 0%, #FF4F5A 55%, #F0216F 100%);
  --ok: #18946B;
  --warn: #B26B00;
  --bad: #D33A2C;
  --radius-lg: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 24px rgba(16, 24, 40, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
  --font-display: "Poppins", "Avenir Next", "Segoe UI Variable Display", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--night); color: var(--sand);
  font: 16px/1.55 var(--font);
  background-image: radial-gradient(90% 50% at 100% 0%, rgba(255, 46, 126, .16) 0%, transparent 60%), radial-gradient(70% 40% at 0% 0%, rgba(255, 154, 61, .10) 0%, transparent 60%);
  background-attachment: fixed;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--sky); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 6.5vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 64ch; }
.muted { color: var(--sand-dim); }
.small { font-size: .875rem; }

/* Barre du haut */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: rgba(14, 15, 20, .9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--night-3);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--sand); text-decoration: none; font: 800 1.2rem var(--font-display); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav button {
  color: var(--sand-dim); text-decoration: none; background: none; border: 0; font: inherit; font-size: .9rem;
  padding: 8px 10px; border-radius: 999px; cursor: pointer; min-height: 40px;
}
.nav a[aria-current="page"] { color: var(--sand); background: var(--night-3); }

.app { max-width: 680px; margin: 0 auto; padding: 20px 16px 64px; outline: none; }
.app.wide { max-width: 1100px; }
.loading { color: var(--sand-dim); padding: 40px 0; text-align: center; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px;
  border-radius: 999px; border: 1px solid transparent; font: 650 1rem var(--font); cursor: pointer; text-decoration: none;
  transition: transform .08s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(255, 70, 100, .25); }
.btn.primary:hover:not([disabled]) { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--sand); border-color: var(--line); }
.btn.ghost:hover { background: var(--night-2); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: .875rem; }
.btn.block { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack > * + * { margin-top: 14px; }

/* Surfaces */
.card { background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--radius-lg); padding: 20px; }
.card.narrow { max-width: 420px; margin: 40px auto; }
.section { margin-top: 28px; }

/* Formulaires */
label { display: block; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: .85rem; color: var(--sand-dim); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--night); color: var(--sand); font: inherit;
}
input:focus, select:focus { border-color: var(--ochre); outline: none; box-shadow: 0 0 0 3px rgba(255, 106, 61, .25); }

/* Messages */
.alert { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; border: 1px solid; }
.alert.error { background: #FDECEA; border-color: #F5B5AD; color: #9B2316; }
.alert.info { background: #FFF3EE; border-color: #FBC9B6; color: #5A2A1C; }
.alert.warn { background: #FFF6E0; border-color: #F1D28A; color: #6B4800; }
.alert p:last-child { margin-bottom: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--night-3); }
.badge.ok { background: rgba(92, 201, 167, .18); color: var(--ok); }
.badge.warn { background: rgba(240, 192, 90, .18); color: var(--warn); }
.badge.bad { background: rgba(255, 138, 122, .16); color: var(--bad); }
.badge.run { background: rgba(255, 159, 122, .16); color: var(--sky); }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--sand); color: var(--night); padding: 12px 18px; border-radius: 999px; font-weight: 600;
  max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); z-index: 50;
}

/* Accueil : le morceau qui se sépare en couloirs de couleur */
.hero { padding: 18px 0 8px; }
.hero p.lead { font-size: 1.1rem; color: var(--sand-dim); }
.split-art { width: 100%; height: auto; margin: 18px 0 22px; display: block; }
.progress { height: 8px; border-radius: 999px; background: var(--night-3); overflow: hidden; margin-top: 12px; }
.progress > span { display: block; height: 100%; background: var(--grad); width: 0; transition: width .2s ease; }

/* Statut de commande */
.pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ochre); margin-right: 6px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.pay-options { display: grid; gap: 10px; }
.pay-btn { justify-content: space-between; }

/* Pistes : couloirs de couleur */
.tracks { display: grid; gap: 12px; }
.track { border-radius: var(--radius-sm); background: var(--night); border: 1px solid var(--night-3); padding: 12px 14px 12px 18px; position: relative; overflow: hidden; }
.track::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--stem, var(--sky)); }
.track header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.track h4 { margin: 0; font-size: 1rem; color: var(--stem, var(--sand)); }
.track audio { width: 100%; height: 40px; }
.track[data-stem=vocals] { --stem: var(--stem-vocals); }
.track[data-stem=instrumental] { --stem: var(--stem-instrumental); }

/* Listes */
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list a.item { display: block; color: inherit; text-decoration: none; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--night-2); border: 1px solid var(--night-3); }
.list a.item:hover { border-color: var(--line); }
.item .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.item .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; padding: 36px 12px; color: var(--sand-dim); }

/* Admin */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--sand-dim); text-decoration: none; border: 1px solid var(--night-3); }
.tabs a[aria-current="page"] { background: var(--sand); color: var(--night); border-color: var(--sand); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--radius-sm); padding: 14px; }
.stat b { display: block; font: 800 1.4rem var(--font-display); }
.stat span { color: var(--sand-dim); font-size: .85rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--night-3); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--night-3); vertical-align: top; }
th { color: var(--sand-dim); font-weight: 600; background: var(--night-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; word-break: break-all; }
.settings-grid { display: grid; gap: 4px 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
details.log summary { cursor: pointer; }
pre.details { white-space: pre-wrap; word-break: break-word; background: var(--night); padding: 10px; border-radius: 8px; font-size: .8rem; max-height: 240px; overflow: auto; }

.test-pay { display: block; padding: 16px; }
.test-pay form { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 720px) {
  .app { padding-top: 32px; }
}

/* Ajustements petits écrans */
.pay-btn span:first-child { text-align: left; }
.pay-btn span:last-child, .track header .btn { white-space: nowrap; }
.track header h4 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .brand span { display: none; }
  .nav { flex-wrap: nowrap; gap: 0; overflow-x: auto; max-width: calc(100vw - 64px); scrollbar-width: none; }
  .nav a, .nav button { padding: 8px 8px; font-size: .85rem; white-space: nowrap; }
}
@media (max-width: 420px) {
  .nav a, .nav button { padding: 8px 5px; font-size: .82rem; }
  .nav-badge { margin-left: 2px; min-width: 16px; height: 16px; padding: 0 4px; }
}

/* ============================================================
   Parcours par forfait : étapes, import, forfaits, résultats
   ============================================================ */
.app.home, .app.wide-flow { max-width: 1040px; }
.app.flow { max-width: 760px; }
.row.between { justify-content: space-between; }
.lead-sm { color: var(--sand-dim); font-size: 1.02rem; }

/* Accueil en deux colonnes sur ordinateur */
.hero-split { display: grid; gap: 8px; align-items: center; }
.hero-split .split-art { margin: 8px 0 0; }
@media (min-width: 900px) {
  .hero-split { grid-template-columns: 1.1fr .9fr; gap: 40px; padding-top: 28px; }
}

/* Grande zone d'import */
.upload {
  position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer; text-decoration: none;
  color: var(--sand); margin: 18px 0 12px; padding: 30px 18px; border-radius: var(--radius-lg);
  border: 2px dashed rgba(217, 164, 65, .6); background: linear-gradient(180deg, rgba(217, 164, 65, .07), rgba(30, 38, 82, .55));
  transition: border-color .15s ease, background-color .15s ease;
}
.upload:hover, .upload.drag { border-color: var(--ochre); background-color: rgba(217, 164, 65, .08); }
.upload:focus-within { outline: 3px solid var(--ochre); outline-offset: 2px; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-cta { display: inline-flex; align-items: center; gap: 10px; font: 750 1.15rem var(--font-display); }
.upload-cta svg { box-sizing: content-box; padding: 9px; border-radius: 50%; background: var(--ochre); color: var(--ochre-ink); }
.upload-sub { color: var(--sand-dim); font-size: .9rem; }
.upload-drag { color: var(--sand-dim); font-size: .82rem; opacity: .85; }

/* Étapes du parcours */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0; margin: 4px 0 22px; counter-reset: none; }
.stepper li { display: grid; justify-items: center; gap: 6px; text-align: center; position: relative; color: var(--sand-dim); font-size: .74rem; line-height: 1.2; }
.stepper li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--night-3); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper .dot {
  position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .85rem; background: var(--night-2); border: 2px solid var(--night-3);
}
.stepper li.done { color: var(--sand); }
.stepper li.done .dot { background: var(--ok); border-color: var(--ok); color: var(--night); }
.stepper li.done::before, .stepper li.now::before, .stepper li.fail::before { background: var(--ok); }
.stepper li.now { color: var(--sand); font-weight: 700; }
.stepper li.now .dot { border-color: var(--ochre); color: var(--ochre); box-shadow: 0 0 0 4px rgba(217, 164, 65, .18); }
.stepper li.fail { color: var(--bad); font-weight: 700; }
.stepper li.fail .dot { border-color: var(--bad); color: var(--bad); }
@media (min-width: 600px) { .stepper li { font-size: .85rem; } }

/* Forfaits */
.plans { display: grid; gap: 14px; margin-top: 14px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; border-radius: var(--radius-lg);
  background: var(--night-2); border: 1px solid var(--night-3);
}
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan.featured { border: 2px solid var(--ochre); background: linear-gradient(180deg, rgba(217, 164, 65, .10), var(--night-2) 55%); }
.plan.current { outline: 2px solid var(--ok); outline-offset: -2px; }
.plan-flag {
  position: absolute; top: -12px; left: 20px; margin: 0; padding: 3px 12px; border-radius: 999px;
  background: var(--ochre); color: var(--ochre-ink); font-size: .78rem; font-weight: 800;
}
.plan-price { margin: 4px 0 0; font: 800 2rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.plan-songs { margin: 0; color: var(--sand); }
.plan-feats { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 6px; color: var(--sand-dim); font-size: .9rem; flex: 1; }
.plan-feats li { padding-left: 22px; position: relative; }
.plan-feats li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
@media (min-width: 760px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan.featured { transform: translateY(-6px); }
}

/* Ce que tu obtiens */
.explain-grid { display: grid; gap: 12px; }
.explain { background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--radius-sm); padding: 16px; }
.explain h3 { margin: 10px 0 4px; }
.explain p { margin: 0; color: var(--sand-dim); font-size: .92rem; }
.mini-wave { display: block; width: 100%; height: 30px; }
@media (min-width: 760px) { .explain-grid { grid-template-columns: repeat(2, 1fr); } }

/* Comment ça marche (vraie séquence : numérotation) */
.howto { list-style: none; counter-reset: step; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.howto li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; }
.howto li::before {
  content: counter(step); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night-3); color: var(--ochre); font-weight: 800;
}
.howto strong { display: block; }
.howto span { color: var(--sand-dim); font-size: .92rem; }
@media (min-width: 900px) {
  .howto { grid-template-columns: repeat(5, 1fr); }
  .howto li { grid-template-columns: 1fr; row-gap: 8px; }
  .howto li::before { grid-row: auto; }
}

/* Commande : forfait, chansons, paiement */
.order-head h1 { margin-bottom: 4px; }
.order-plan { margin-top: 16px; }
.order-plan .plan-title { margin: 2px 0; }
.order-plan .muted.small, .order-plan p { margin: 0; }
#plan-switch .plans { margin-top: 22px; }
.count-pill { padding: 4px 12px; border-radius: 999px; background: var(--night-3); font-weight: 800; font-size: .9rem; }
.song-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.song-row, .upload-row, .file-head, .song-head { display: flex; align-items: center; gap: 12px; }
.song-row { padding: 10px 10px 10px 12px; border-radius: var(--radius-sm); background: var(--night-2); border: 1px solid var(--night-3); }
.file-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--night-3); color: var(--ochre); }
.file-meta { flex: 1; min-width: 0; display: grid; }
.file-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--sand-dim);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { color: var(--bad); border-color: var(--bad); }
#uploads { display: grid; gap: 8px; margin-top: 8px; }
.upload-row { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; border-radius: var(--radius-sm); background: var(--night-2); border: 1px solid var(--night-3); }
.upload-row .progress { margin-top: 0; }
.upload-row.ok .progress > span { background: var(--ok); }
.upload-row.failed { border-color: rgba(255, 138, 122, .5); }
.pay-card h2 { margin-bottom: 12px; }
.summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--night-3); }
.summary strong { font: 800 1.5rem var(--font-display); white-space: nowrap; }

/* Résultats par chanson */
.progress-card .progress { margin: 4px 0 10px; }
.results-head { margin-bottom: 4px; }
.results-head p { margin: 0; }
.songs { display: grid; gap: 14px; }
.song-card { background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--radius-lg); padding: 14px; }
.song-card .song-head { margin-bottom: 12px; }
.song-card .alert { margin: 0 0 10px; }
.song-card .tracks { gap: 10px; }
.zip-one { margin-top: 12px; }
@media (max-width: 420px) {
  .track header { flex-wrap: wrap; }
  .summary { flex-direction: column; gap: 2px; }
}

/* Deux fichiers par chanson : voix (Acapella) puis instrumental (Karaoké) */
.track header { align-items: flex-start; }
.track-desc { margin: 2px 0 0; color: var(--sand-dim); font-size: .85rem; }
.track-dl { margin-top: 10px; }
.you-get h2 { margin-bottom: 12px; }
.get-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.get-list li { display: flex; gap: 12px; align-items: flex-start; }
.get-list li > i { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; }
.get-list li > span { display: grid; }

/* Pied de page : numéro de version servi */
.site-foot { max-width: 760px; margin: 0 auto; padding: 0 16px 28px; color: var(--sand-dim); font-size: .78rem; }
.foot-links { margin: 0; opacity: .7; }
.signature { margin: 8px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; line-height: 1.55; }
.signature p { margin: 0 0 6px; }
.signature strong { color: var(--sand); }
.mali-bar { display: block; width: 42px; height: 4px; margin-bottom: 12px; border-radius: 2px;
  background: linear-gradient(90deg, #14B53A 0 33.3%, #FCD116 33.3% 66.6%, #CE1126 66.6%); }

/* Paiement par transfert Orange Money / Wave */
.manual-steps { margin: 0 0 12px; padding-left: 1.3em; display: grid; gap: 18px; }
.manual-steps > li::marker { color: var(--ochre); font-weight: 800; }
.manual-accs { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.manual-acc { display: flex; align-items: center; gap: 10px; padding: 10px; min-width: 0; border-radius: var(--radius-sm); background: var(--night-3); border: 1px solid var(--line); }
.manual-num .cc { font: inherit; letter-spacing: inherit; opacity: 1; }
.acc-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.op-logo { width: 38px; height: 38px; border-radius: 10px; flex: none; object-fit: cover; }
.op-logo.sm { width: 22px; height: 22px; border-radius: 5px; vertical-align: middle; }
.radio .op-logo.sm { margin-left: 2px; }
.copy-btn { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 52px; min-height: 52px;
  padding: 6px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--night-2); color: var(--sky); font: 600 .78rem var(--font); cursor: pointer; }
.copy-btn:hover { border-color: var(--sky); }
.copy-btn:active { transform: scale(.96); }
.copy-btn.copied { color: #5fd3a6; border-color: #5fd3a6; }
.manual-num { font-family: var(--font-display); font-size: clamp(1.1rem, 5.2vw, 1.35rem); letter-spacing: .02em; overflow-wrap: anywhere; color: var(--ochre); user-select: all; }
.manual-form { margin-top: 12px; }
.manual-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.manual-form legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--ochre); background: rgba(217, 164, 65, .12); }
.radio input { accent-color: var(--ochre); width: 18px; height: 18px; margin: 0; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--sky); text-decoration: underline; font: inherit; cursor: pointer; }
.manual-wait p:first-child { display: flex; align-items: baseline; gap: 4px; }
.manual-review { display: grid; gap: 14px; }
.manual-item h3 { margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 14px 0; }
.kv dt { color: var(--sand-dim); font-size: .875rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 8px; } }
.decide-box { margin-top: 4px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--ochre); background: rgba(217, 164, 65, .08); }
.decide-box p { margin-bottom: 12px; }

/* Connexion avec Google */
.btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; text-decoration: none; }
.btn.google:hover { background: #f2f2f2; }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--sand-dim); font-size: .875rem; max-width: none; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Pages légales */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.site-foot a { color: inherit; }
.txn-opt summary { cursor: pointer; color: var(--sand-dim); font-size: .9rem; margin-bottom: 8px; }
.txn-opt[open] summary { margin-bottom: 8px; }

/* Bouton d'aide WhatsApp */
.wa-help { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.wa-help:hover { background: #1ebe5a; }
.wa-help:focus-visible { outline-color: #fff; }
@media (max-width: 420px) { .wa-help span { display: none; } .wa-help { padding: 12px; } }
.site-foot { padding-bottom: 72px; }

/* Crédits restants d'un forfait payé */
.credit-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; margin-bottom: 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--ochre); background: rgba(217,164,65,.10); }
.credit-card > div { display: grid; gap: 2px; }
.credit-pill { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(217,164,65,.15); color: var(--ochre); border: 1px solid rgba(217,164,65,.4); }
.credit-block h2 { margin-bottom: 6px; }
.expire-note { margin: 8px 0 0; text-align: center; }

/* Parcours court : chansons → forfait et paiement */
.upload-btn { width: 100%; font: inherit; color: inherit; cursor: pointer; }
.cta-next { margin-top: 14px; min-height: 54px; font-size: 1.05rem; }
.back-link { margin: 0 0 10px; }
.card.drag { outline: 2px dashed var(--ochre); outline-offset: 4px; }
.plan-picker { display: grid; gap: 8px; }
.plan-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; min-height: 60px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--night-2); color: var(--sand); font: inherit; text-align: left; cursor: pointer; }
.plan-opt:hover:not(:disabled) { border-color: var(--sand-dim); }
.plan-opt.on { border-color: var(--ochre); background: rgba(217,164,65,.10); }
.plan-opt:disabled { opacity: .45; cursor: not-allowed; }
.plan-opt.on:disabled { opacity: 1; }
.plan-opt-txt { display: grid; flex: 1; }
.plan-opt-price { white-space: nowrap; }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--sand-dim); flex: none; position: relative; }
.plan-opt.on .radio-dot { border-color: var(--ochre); }
.plan-opt.on .radio-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ochre); }
.pay-card { margin-top: 14px; }
.pay-card .pay-options { margin-top: 14px; }
.credit-note { margin: 10px 2px 0; }
.pay-note { margin: 10px 0 0; text-align: center; }
.pay-card .pay-options { grid-template-columns: minmax(0, 1fr); }
.pay-btn.btn { flex-direction: column; justify-content: center; gap: 0; min-height: 60px; padding: 10px 18px; border-radius: 18px; }
.pay-btn .pay-main { font-size: 1.15rem; font-weight: 800; white-space: nowrap; text-align: center; }
.pay-btn .pay-sub { font-size: .9rem; font-weight: 600; opacity: .85; white-space: normal; text-align: center; }
.back-link .link-btn { padding: 0; }

/* Chansons déjà payées : bloc en haut de page */
.credit-top { margin: 0 0 14px; border-color: rgba(217,164,65,.55); background: linear-gradient(180deg, rgba(217,164,65,.10), transparent 70%), var(--night-2); }
.credit-top-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.credit-top-head > div { display: grid; gap: 2px; }
.credit-num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ochre); color: var(--ochre-ink); font: 800 1.3rem var(--font-display); }
.credit-add { min-height: 54px; font-size: 1.05rem; }
#home-credit:empty, #resume-credits:empty { display: none; }
#home-credit { margin-top: 8px; }

/* Admin sur téléphone */
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px;
  background: #e5484d; color: #fff; font: 700 .72rem/1 var(--font); vertical-align: 2px; }
.nav-badge[hidden] { display: none; }
.admin-help summary { cursor: pointer; }
.admin-help ol { margin: 10px 0 0; }

/* Alertes ntfy (admin) */
.alerts-card { margin: 0 0 14px; }
.alerts-card summary { cursor: pointer; }
.alerts-steps { margin: 12px 0; padding-left: 1.3em; display: grid; gap: 14px; }
.alerts-steps li > .btn { margin: 8px 0 6px; }
.topic-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.topic-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 8px 10px; border-radius: 8px; background: var(--night-3); font-size: .85rem; }
details.alerts-card { margin-top: 14px; }

/* Jauge du disque (admin) */
.disk-card h2 { margin: 0; }
.disk-pct.ok { color: var(--ok); } .disk-pct.warn { color: var(--warn); } .disk-pct.bad { color: var(--bad); }
.disk-bar { height: 12px; border-radius: 999px; background: var(--night-3); overflow: hidden; margin: 12px 0 10px; }
.disk-bar span { display: block; height: 100%; border-radius: inherit; background: #5fd3a6; }
.disk-bar.warn span { background: var(--ochre); } .disk-bar.bad span { background: #ff6b6b; }

/* Confirmation avant « J'ai payé » */
.check-confirm { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 4px; padding: 12px; border-radius: var(--radius-sm);
  background: var(--night-3); border: 1px solid var(--line); cursor: pointer; font-weight: 500; }
.check-confirm input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ochre); }
.warn-note { color: var(--warn); margin: 4px 0 10px; }

/* Navigateur intégré (TikTok…) */
.alert.inapp .btn { margin: 10px 0 6px; }
.btn.google.busy { opacity: .6; pointer-events: none; }

/* ---------- Finitions (revue de qualité) ---------- */
@media (max-width: 520px) { .wa-help { width: 54px; height: 54px; right: 14px; bottom: 14px; } }
/* Questions fréquentes */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--radius-sm); padding: 0 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 28px 15px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--ochre); font-weight: 600; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: var(--sand-dim); }
/* Numéro de commande */
.order-ref strong { color: var(--sand); letter-spacing: .03em; }
/* Attente de validation : envoi de la capture */
.wa-proof { margin-top: 10px; gap: 8px; }
.wa-proof svg { width: 20px; height: 20px; }
.wa-proof svg path { fill: #25D366; }
/* Page introuvable */
.center-card { text-align: center; }
.center-row { justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ================= Ja Speak ================= */
h1, h2 { font-weight: 700; letter-spacing: -0.02em; }
.brand { font-weight: 700; }
.kicker { display: inline-block; font: 600 .78rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--sky);
  background: rgba(255, 106, 61, .12); border: 1px solid rgba(255, 106, 61, .3); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.btn.big { min-height: 56px; font-size: 1.05rem; padding: 14px 22px; }
.hero-ctas { display: grid; gap: 10px; margin: 18px 0 10px; }
.hero-ctas .btn { white-space: nowrap; }
@media (min-width: 560px) { .hero-ctas { grid-template-columns: auto auto; justify-content: start; } }
.center { text-align: center; }

/* Téléphone de l'accueil : démonstration en boucle (9 s) = la photo, la voix, la photo qui parle */
.hero-phone { position: relative; width: min(250px, 64vw); margin: 26px auto 12px; --cycle: 9s; }
.hp-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; border: 3px solid #2E3040;
  background: #15161D; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 8px #15161D, 0 0 80px rgba(255, 90, 90, .12); }
.hp-face { position: absolute; inset: 0; width: 100%; height: 100%; }
.hp-fig { transform-origin: 90px 260px; animation: hp-sway var(--cycle) ease-in-out infinite; }
@keyframes hp-sway { 0%, 58% { transform: none; } 66% { transform: translateY(-2px) rotate(-.6deg); } 78% { transform: translateY(1px) rotate(.7deg); } 90% { transform: translateY(-1px) rotate(-.4deg); } 96%, 100% { transform: none; } }
.hp-eyes { transform-box: fill-box; transform-origin: center; animation: hp-blink 3.2s infinite; }
@keyframes hp-blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.hp-closed { animation: hp-closed var(--cycle) infinite; }
@keyframes hp-closed { 0%, 58% { opacity: 1; } 60%, 94% { opacity: 0; } 96%, 100% { opacity: 1; } }
.hp-open { opacity: 0; animation: hp-open var(--cycle) infinite; }
@keyframes hp-open { 0%, 58% { opacity: 0; } 60%, 94% { opacity: 1; } 96%, 100% { opacity: 0; } }
.hp-mouth { transform-box: fill-box; transform-origin: center; animation: talk .36s ease-in-out infinite alternate; }
@keyframes talk { from { transform: scale(.85, .3); } to { transform: scale(1.1, 1.25); } }
/* Analyse du visage : cadre et ligne qui balaye la photo */
.hp-scan { position: absolute; left: 0; right: 0; top: 0; height: 28%; background: linear-gradient(180deg, transparent, rgba(255, 138, 90, .35) 85%, rgba(255, 138, 90, .9) 100%);
  border-bottom: 2px solid #FF8A5A; opacity: 0; animation: hp-scan var(--cycle) linear infinite; }
@keyframes hp-scan { 0% { opacity: 0; transform: translateY(-30%); } 6% { opacity: 1; } 30% { opacity: 1; transform: translateY(300%); } 33%, 100% { opacity: 0; transform: translateY(300%); } }
.hp-frame { position: absolute; left: 24%; right: 24%; top: 21%; bottom: 40%; opacity: 0; animation: hp-frame var(--cycle) ease infinite; }
.hp-frame i { position: absolute; width: 16px; height: 16px; border: 0 solid #FF8A5A; }
.hp-frame i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; border-top-left-radius: 6px; }
.hp-frame i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; border-top-right-radius: 6px; }
.hp-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; border-bottom-left-radius: 6px; }
.hp-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; border-bottom-right-radius: 6px; }
@keyframes hp-frame { 0%, 8% { opacity: 0; transform: scale(1.12); } 16%, 56% { opacity: 1; transform: none; } 62%, 100% { opacity: 0; } }
/* Étape en cours */
.hp-step { position: absolute; left: 12px; top: 12px; height: 24px; min-width: 112px; }
.hp-step b { position: absolute; left: 0; top: 0; white-space: nowrap; font: 700 .72rem var(--font); color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .18);
  padding: 5px 10px; border-radius: 999px; opacity: 0; backdrop-filter: blur(4px); }
.hp-step .s1 { animation: hp-s1 var(--cycle) infinite; } .hp-step .s2 { animation: hp-s2 var(--cycle) infinite; } .hp-step .s3 { animation: hp-s3 var(--cycle) infinite; background: var(--grad); border-color: transparent; }
@keyframes hp-s1 { 0% { opacity: 0; } 4%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes hp-s2 { 0%, 32% { opacity: 0; } 36%, 56% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes hp-s3 { 0%, 60% { opacity: 0; } 64%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }
.hp-tag { position: absolute; right: 10px; top: 12px; font: 600 .68rem var(--font); color: #fff; background: rgba(0, 0, 0, .5); padding: 5px 9px; border-radius: 999px; opacity: 0; animation: hp-tag var(--cycle) infinite; }
@keyframes hp-tag { 0%, 62% { opacity: 0; } 68%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }
/* La voix : micro + forme d'onde */
.hp-wave { position: absolute; left: 12px; right: 12px; bottom: 22px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 16px; color: #fff;
  background: rgba(10, 10, 16, .62); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .12); opacity: 0; transform: translateY(14px); animation: hp-wave var(--cycle) ease infinite; }
@keyframes hp-wave { 0%, 32% { opacity: 0; transform: translateY(14px); } 38%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(14px); } }
.hp-wave svg { flex: none; color: #FF8A5A; }
.hp-bars { flex: 1; display: flex; justify-content: space-between; align-items: center; height: 38px; }
.hp-bars i { display: block; width: 5px; border-radius: 3px; background: var(--grad); animation: bar .6s ease-in-out infinite alternate; transform-origin: center; }
@keyframes bar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.hp-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .1); }
.hp-progress i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; animation: hp-prog var(--cycle) linear infinite; }
@keyframes hp-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hp-fig, .hp-eyes, .hp-mouth, .hp-bars i, .hp-scan, .hp-frame, .hp-progress i { animation: none; }
  .hp-closed, .hp-step .s1, .hp-step .s2, .hp-frame, .hp-scan { opacity: 0; animation: none; }
  .hp-open, .hp-step .s3, .hp-tag, .hp-wave { opacity: 1; transform: none; animation: none; }
  .hp-mouth { transform: scale(1, .8); }
}

/* Idées et règles */
.ideas { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.idea { background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--radius-sm); padding: 14px 16px; }
.idea strong { display: block; margin-bottom: 4px; font-family: var(--font-display); }
.idea span { color: var(--sand-dim); font-size: .92rem; }
.rules { margin: 0; padding-left: 20px; color: var(--sand-dim); }
.rules li { margin-bottom: 8px; }
.rules strong { color: var(--sand); }
.plan-songs { color: var(--sand-dim); }
.plan-songs strong { color: var(--sand); }

/* Composeur : photo + voix */
.composer h2 { margin-bottom: 14px; }
.comp-grid { display: grid; gap: 16px; margin-bottom: 14px; }
@media (min-width: 600px) { .comp-grid { grid-template-columns: 200px 1fr; } }
.slot-title { font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.slot-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .8rem; }
.photo-slot { position: relative; display: grid; place-items: center; width: min(100%, 240px); margin: 0 auto; aspect-ratio: 4 / 5; border-radius: var(--radius-sm);
  border: 2px dashed var(--line); background: var(--night); color: var(--sand); cursor: pointer; overflow: hidden; padding: 0; font: inherit; }
.photo-slot:hover { border-color: var(--ochre); }
.photo-slot.has { border-style: solid; border-color: var(--night-3); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-empty { display: grid; justify-items: center; gap: 6px; padding: 16px; text-align: center; }
.ph-change { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, .65); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.voice-box { display: grid; gap: 10px; }
.voice-box [data-v] { display: grid; gap: 10px; }
.voice-box [data-v][hidden] { display: none; }
/* Lecteur de la voix */
.vp { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); }
.vp-play { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: var(--grad); box-shadow: 0 6px 18px rgba(255, 90, 90, .35); transition: transform .12s ease; }
.vp-play:active { transform: scale(.94); }
.vp-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.vp-track { position: relative; height: 42px; cursor: pointer; }
.vp-bars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.vp-bars i { flex: 1; max-width: 6px; min-width: 2px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.vp-on { clip-path: inset(0 100% 0 0); }
.vp-on i { background: var(--grad); }
.vp-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--sand-dim); }
.vp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vp-time { flex: none; font-variant-numeric: tabular-nums; }
.rec-line { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 1.4rem; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #FF3B3B; align-self: center; animation: pulse 1s ease-in-out infinite; }
.rec-meter { height: 10px; border-radius: 999px; background: var(--night-3); overflow: hidden; }
.rec-meter span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .08s linear; }
.link-btn { background: none; border: 0; color: var(--sky); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
#c-progress { margin: 6px 0 12px; }
#c-progress[hidden] { display: none; }

/* Vidéos : liste avant paiement, cartes de résultat */
.v-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.v-row { display: flex; align-items: center; gap: 12px; background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--radius-sm); padding: 8px 10px; }
.v-row .file-meta { flex: 1; min-width: 0; }
.v-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--night-3); }
.v-thumb.ph { display: grid; place-items: center; color: var(--sand-dim); }
.v-player { width: 100%; max-height: 70vh; border-radius: var(--radius-sm); background: #000; display: block; margin: 6px 0 12px; }
.v-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v-wait { display: flex; align-items: center; gap: 12px; }
.v-wait p { margin: 0; }
.trial-card { border-color: rgba(255, 106, 61, .45); background: linear-gradient(135deg, rgba(255, 154, 61, .10), rgba(255, 46, 126, .10)), var(--night-2); margin-bottom: 16px; }
.trial-card p { margin: 2px 0 0; }
.upsell { border-top: 1px solid var(--night-3); padding-top: 22px; }
.cta-next { margin-top: 16px; }

/* Fenêtre « Crée ton compte » à l'arrivée */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center;
  padding: 0 max(0px, env(safe-area-inset-right)) 0 max(0px, env(safe-area-inset-left)); animation: fade .2s ease; }
.sheet { position: relative; width: 100%; max-width: 440px; background: var(--night-2); border: 1px solid var(--night-3); border-radius: 22px 22px 0 0;
  padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); animation: rise .25s ease; }
.sheet h2 { font-size: 1.45rem; margin: 0 36px 6px 0; }
.sheet .btn.block { margin-top: 10px; }
.sheet .or-sep { margin: 12px 0 2px; }
.sheet-x { position: absolute; top: 14px; right: 14px; }
.sheet-login { margin: 14px 0 6px; max-width: none; }
.sheet-later { display: block; margin: 4px auto 0; color: var(--sand-dim); font-size: .9rem; }
.sheet-inapp { margin: 8px 0 0; }
.center { text-align: center; }
@media (min-width: 600px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 22px; } }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* Capture de paiement : même cadre que « La photo » */
.proof-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.proof-slot { aspect-ratio: 3 / 4; }
.proof-slot img { object-fit: contain; background: var(--night); }
.ph-done { display: grid; justify-items: center; gap: 6px; font-size: 2rem; color: var(--ochre); }
.ph-done strong { font-size: 1rem; color: var(--sand); }
.ph-done[hidden], .proof-slot [hidden] { display: none; }

/* Barre de temps de l'enregistrement : se remplit jusqu'à la durée maximale du forfait */
.rec-limit { height: 6px; border-radius: 999px; background: var(--night-3); overflow: hidden; }
.rec-limit span { display: block; height: 100%; width: 0; background: var(--grad); }

/* Numéro Wave : couleur du logo Wave */
.manual-acc[data-acc="wave"] .manual-num { color: #1DC8FE; }

/* Choix du moyen de paiement : cartes à cocher (Orange Money / Wave) */
.pay-h { margin: 0 0 4px; }
.manual-acc.pick { position: relative; cursor: pointer; border-width: 2px; transition: border-color .15s ease, background-color .15s ease; }
.manual-acc.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.manual-acc.pick:has(input:checked) { border-color: #FF7900; background: rgba(255, 121, 0, .08); }
.manual-acc.pick[data-acc="wave"]:has(input:checked) { border-color: #1DC8FE; background: rgba(29, 200, 254, .08); }
.manual-acc.pick:has(input:checked) .pick-dot { border-color: #FF7900; background: radial-gradient(circle, #FF7900 0 45%, transparent 50%); }
.manual-acc.pick[data-acc="wave"]:has(input:checked) .pick-dot { border-color: #1DC8FE; background: radial-gradient(circle, #1DC8FE 0 45%, transparent 50%); }
.manual-acc.pick:has(input:focus-visible) { outline: 3px solid var(--ochre); outline-offset: 2px; }
.manual-pay .manual-form { margin-top: 12px; }
.manual-acc.pick .manual-num { user-select: auto; -webkit-user-select: auto; }

/* Bouton d'aide WhatsApp : plus petit et plus discret (v0.1.17) */
.wa-help { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); gap: 6px; padding: 7px 12px 7px 9px; font-size: .82rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.wa-help svg { width: 18px; height: 18px; }
@media (max-width: 420px) { .wa-help { padding: 8px; } }
@media (max-width: 520px) { .wa-help { width: 40px; height: 40px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 0; justify-content: center; } }


/* ---------- Écrans plus simples (v0.1.19) ---------- */
.hero-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 4px; }
.hero-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-weight: 700; font-size: .95rem; }
.hero-steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #FF9A3D, #FF2E7E); color: #fff; font-size: .85rem; }
.plan-for { margin: -4px 0 8px; font-size: .9rem; font-weight: 700; color: var(--ochre); }
.rules { list-style: none; padding-left: 0; display: grid; gap: 10px; }
.rules li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; margin: 0; }
.r-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: .9rem; }
.r-ok .r-ic { background: rgba(60, 200, 120, .2); color: #5be39b; }
.r-no .r-ic { background: rgba(255, 90, 90, .2); color: #ff8a8a; }
.r-info .r-ic { background: rgba(255, 255, 255, .12); color: var(--sand); font-style: italic; }
.comp-intro { margin: -4px 0 14px; color: var(--sand-dim); }
.c-missing { margin: 8px 0; font-size: .92rem; }
.pay-step { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; font-weight: 700; font-size: 1.02rem; }
.pay-step .slot-n { flex: none; }
.pay-sub { margin: 0 0 8px; }

.pay-step > span:last-child { text-align: left; }
.hero-steps { gap: 6px; }
.hero-steps li { padding: 5px 10px 5px 5px; font-size: .86rem; gap: 6px; }
.hero-steps b { width: 22px; height: 22px; font-size: .8rem; }

/* ---------- Thème clair : ajustements des endroits codés pour le fond sombre ---------- */
body { background-image: radial-gradient(80% 40% at 100% 0%, rgba(240, 33, 111, .07) 0%, transparent 60%), radial-gradient(60% 35% at 0% 0%, rgba(255, 138, 43, .07) 0%, transparent 60%); }
.topbar { background: rgba(255, 255, 255, .92); border-bottom-color: var(--line); }
.card { box-shadow: var(--shadow); border-color: var(--night-3); }
.upload-cta { border-color: rgba(255, 90, 54, .55); background: linear-gradient(180deg, rgba(255, 90, 54, .05), rgba(240, 33, 111, .04)); }
.vp { background: var(--night-3); }
.vp-bars i { background: rgba(22, 24, 29, .18); }
.hero-steps li { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.r-info .r-ic { background: var(--night-3); }
.sheet-backdrop { background: rgba(16, 18, 24, .45); }
.toast { box-shadow: 0 8px 30px rgba(16, 24, 40, .2); }
.wa-help { box-shadow: 0 4px 14px rgba(16, 24, 40, .18); }
input, select, textarea { background: #fff; }
.plan-for, .manual-num, .faq summary::after { color: var(--sky); }
.radio:has(input:checked), .plan-opt.on { background: #FFF1EC; }

/* ---------- Barre des crédits (sous la barre du haut) ---------- */
.userbar { max-width: 680px; margin: 0 auto; padding: 12px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ub-hello { margin: 0; font-size: 1rem; color: var(--sand-dim); }
.ub-hello strong { color: var(--sand); font-family: var(--font-display); }
.credit-pill { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cp-main { display: inline-flex; align-items: center; gap: 6px; color: var(--sand); text-decoration: none; padding-right: 6px; min-height: 36px; }
.cp-main b { font: 800 1.15rem var(--font-display); }
.cp-main span { font-size: .85rem; color: var(--sand-dim); }
.cp-plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font: 700 1.3rem/1 var(--font); text-decoration: none; box-shadow: 0 3px 10px rgba(240, 33, 111, .3); }
.credit-pill.empty .cp-main b { color: var(--sand-dim); }
.credit-pill.empty { animation: cp-nudge 2.4s ease 1s 2; }
@keyframes cp-nudge { 0%, 100% { transform: none; } 10% { transform: scale(1.06); } 20% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .credit-pill.empty { animation: none; } }
.credit-pill { position: relative; }
.credit-pill.bump { animation: cp-bump .9s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cp-bump { 0% { transform: scale(1); } 30% { transform: scale(1.18); } 100% { transform: scale(1); } }
.cp-gain { position: absolute; right: 8px; top: -6px; font: 800 .95rem var(--font-display); color: var(--ok); pointer-events: none; animation: cp-gain 1.6s ease forwards; }
@keyframes cp-gain { 0% { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }
@media (prefers-reduced-motion: reduce) { .credit-pill.bump, .cp-gain { animation: none; } .cp-gain { display: none; } }

/* Numéro Mobile Money demandé sur la page de paiement (comptes Google sans numéro) */
.pay-phone { margin-top: 12px; display: grid; gap: 8px; }
.pay-phone label { font-weight: 600; }
