/* Jaay Live — identité : violet nuit + citron vif, point rouge du direct. Clair et contrasté pour lire au soleil. */
:root {
  --em-9: #150A33; --em-8: #2D1470; --em-7: #4A2BB0; --em-5: #8C6CF2; --em-2: #DCD2FF; --em-1: #F0ECFF;
  --mg: #C9F23B; --mg-d: #9BC516; --mg-1: #F1FBCF; --live: #FF2D55; --live-1: #FFE3EA;
  --corail: #E5484D; --corail-1: #FDE8E8; --bleu: #1D7FD8; --bleu-1: #E2F0FD; --om: #FF7900; --wave: #1DC8F2;
  --fond: #FAF8FF; --carte: #FFFFFF; --encre: #160F26; --gris: #625C74; --gris-2: #9C96AD; --trait: #ECE8F5; --trait-2: #DDD6EC;
  --r: 18px; --r-s: 12px; --ombre: 0 1px 2px rgba(22,15,38,.06), 0 6px 20px rgba(22,15,38,.07);
  --titre: 'Unbounded', system-ui, sans-serif;
  --texte: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bas: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--fond); color: var(--encre); font: 15px/1.45 var(--texte); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--em-7); }
[hidden] { display: none !important; }
h1, h2, h3, .titre { font-family: var(--titre); letter-spacing: -.01em; margin: 0; line-height: 1.15; }
.muet { color: var(--gris); }
.petit { font-size: 13px; }
.fort { font-weight: 700; }
.centre { text-align: center; }
.ligne { display: flex; align-items: center; gap: 10px; }
.ligne.entre { justify-content: space-between; }
.ligne.haut { align-items: flex-start; }
.pousse { flex: 1; min-width: 0; }
.coupe { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pile > * + * { margin-top: 10px; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 12px 16px; font-weight: 700; cursor: pointer;
  background: var(--em-8); color: #fff; text-decoration: none; min-height: 46px; transition: transform .12s, background .15s; }
.btn:active { transform: scale(.97); }
.btn.large { width: 100%; }
.btn.grand { min-height: 56px; font-size: 17px; border-radius: 16px; }
.btn.mangue { background: var(--mg); color: #1E2A00; }
.btn.blanc { background: #fff; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--trait-2); }
.btn.clair { background: var(--em-1); color: var(--em-8); }
.btn.rouge { background: var(--corail-1); color: var(--corail); }
.btn.wa { background: #25D366; color: #06381C; }
.btn.petit { min-height: 36px; padding: 7px 12px; font-size: 13px; border-radius: 11px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Champs ---------- */
.champ { display: block; margin-top: 12px; }
.champ > span { display: block; font-size: 13px; font-weight: 600; color: var(--gris); margin-bottom: 5px; }
.inp { width: 100%; border: 1.5px solid var(--trait-2); background: #fff; border-radius: 13px; padding: 12px 13px; outline: none; min-height: 48px; font-size: 16px; }
.inp:focus { border-color: var(--em-7); box-shadow: 0 0 0 3px var(--em-1); }
textarea.inp { min-height: 80px; resize: vertical; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix button, .puce { border: 1.5px solid var(--trait-2); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer; font-size: 14px; }
.choix button.on, .puce.on { border-color: var(--em-8); background: var(--em-8); color: #fff; }
.carte-choix { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--trait-2); border-radius: 14px; background: #fff; cursor: pointer; width: 100%; text-align: left; }
.carte-choix.on { border-color: var(--em-8); box-shadow: 0 0 0 3px var(--em-1); }
.carte-choix .rond { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--trait-2); flex: none; }
.carte-choix.on .rond { border: 6px solid var(--em-8); }
.logo-moyen { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; flex: none; }
.erreur-txt { background: var(--corail-1); color: #A3171C; padding: 10px 12px; border-radius: 12px; margin-top: 12px; font-size: 14px; }

/* ---------- Pastilles ---------- */
.pastille { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--em-1); color: var(--em-8); white-space: nowrap; }
.pastille.mg { background: var(--mg-1); color: #3F5600; }
.pastille.rouge { background: var(--corail-1); color: #B4161B; }
.pastille.bleu { background: var(--bleu-1); color: #0E5DA6; }
.pastille.gris { background: #F1EEF7; color: var(--gris); }
.pastille.noir { background: var(--encre); color: #fff; }

/* ---------- Feuilles (fenêtres qui montent du bas) ---------- */
.voile { position: fixed; inset: 0; background: rgba(14,8,30,.5); z-index: 50; opacity: 0; transition: opacity .2s; }
.voile.ouvert { opacity: 1; }
.feuille { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--fond); border-radius: 24px 24px 0 0; max-height: 94vh; overflow-y: auto;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); padding-bottom: calc(16px + var(--bas)); overscroll-behavior: contain; }
.feuille.ouvert { transform: none; }
.feuille .poignee { width: 42px; height: 5px; border-radius: 3px; background: var(--trait-2); margin: 9px auto 0; }
.feuille .tete { position: sticky; top: 0; background: var(--fond); padding: 10px 16px 10px; display: flex; align-items: center; gap: 10px; z-index: 2; }
.feuille .tete h2 { font-size: 20px; flex: 1; }
.feuille .corps { padding: 0 16px; }
.fermer { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #F1EEF7; font-size: 20px; cursor: pointer; display: grid; place-items: center; flex: none; }
@media (min-width: 720px) {
  .feuille { left: 50%; right: auto; width: 560px; transform: translate(-50%, 100%); bottom: 0; }
  .feuille.ouvert { transform: translate(-50%, 0); }
}

/* ---------- Messages éphémères ---------- */
.toast { position: fixed; left: 50%; bottom: calc(90px + var(--bas)); transform: translate(-50%, 20px); background: var(--encre); color: #fff; padding: 12px 18px; border-radius: 14px;
  z-index: 90; opacity: 0; transition: .25s; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.25); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.rouge { background: var(--corail); }

.anneau { width: 42px; height: 42px; border-radius: 50%; border: 4px dashed var(--em-5); animation: tourne 1.4s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.cl-chargement, .v-chargement { display: grid; place-items: center; min-height: 60vh; }
.vide { text-align: center; color: var(--gris); padding: 40px 20px; }
.vide .ico { font-size: 40px; margin-bottom: 6px; }

/* =========================================================
   CÔTÉ CLIENT
   ========================================================= */
.cl-app { max-width: 620px; margin: 0 auto; padding-bottom: calc(110px + var(--bas)); min-height: 100vh; }
.cl-tete { padding: 14px 16px 6px; display: flex; align-items: center; gap: 12px; }
.cl-logo { width: 52px; height: 52px; border-radius: 16px; background: var(--em-8); color: var(--mg); display: grid; place-items: center; font: 800 20px var(--titre); flex: none; overflow: hidden; }
.cl-logo img { width: 100%; height: 100%; object-fit: cover; }
.cl-tete h1 { font-size: 21px; }
.cl-tete .slogan { font-size: 13px; color: var(--gris); }
.cl-wa { width: 46px; height: 46px; border-radius: 50%; background: #25D366; display: grid; place-items: center; flex: none; }
.cl-wa svg { width: 24px; height: 24px; }
.cl-confiance { display: flex; gap: 6px; padding: 4px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.cl-confiance::-webkit-scrollbar { display: none; }
.cl-confiance span { flex: none; font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--trait); padding: 5px 10px; border-radius: 999px; color: var(--gris); }
.cl-bonjour { margin: 0 16px 10px; background: var(--em-1); border-radius: 14px; padding: 10px 12px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.cl-bonjour a { font-weight: 700; }

.cl-statut { margin: 4px 16px 14px; border-radius: 22px; padding: 16px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #5B36D6 0%, var(--em-8) 45%, var(--em-9) 100%); }
.cl-statut::after { content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%;
  border: 10px dotted rgba(201,242,59,.6); animation: tourne 18s linear infinite; }
.cl-statut .vu { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mg); display: flex; align-items: center; gap: 6px; }
.cl-statut h2 { font-size: 24px; margin-top: 6px; max-width: 85%; position: relative; z-index: 1; }
.cl-statut .remise { display: inline-block; margin-top: 8px; background: var(--mg); color: #1E2A00; font-weight: 800; padding: 4px 10px; border-radius: 10px; font-size: 14px; }
.chrono { display: flex; gap: 6px; margin-top: 12px; position: relative; z-index: 1; }
.chrono div { background: rgba(255,255,255,.14); border-radius: 12px; padding: 6px 10px; text-align: center; min-width: 54px; }
.chrono b { display: block; font: 800 22px var(--titre); font-variant-numeric: tabular-nums; }
.chrono small { font-size: 10px; text-transform: uppercase; opacity: .8; }
.cl-statut.fini { background: #625C74; }

.cl-section { padding: 6px 16px 4px; display: flex; align-items: baseline; justify-content: space-between; }
.cl-section h3 { font-size: 18px; }
.cl-filtres { display: flex; gap: 8px; padding: 6px 16px 12px; overflow-x: auto; scrollbar-width: none; }
.cl-filtres::-webkit-scrollbar { display: none; }
.cl-filtres .puce { flex: none; }
.cl-recherche { margin: 0 16px 10px; position: relative; }
.cl-recherche input { padding-left: 40px; background: #fff; }
.cl-recherche svg { position: absolute; left: 13px; top: 14px; width: 20px; height: 20px; color: var(--gris-2); }

.cl-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.cl-grille.une { grid-template-columns: 1fr; }
.pc { background: var(--carte); border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); position: relative; cursor: pointer; display: flex; flex-direction: column; }
.pc .ph { aspect-ratio: 1; background: var(--em-1); position: relative; }
.cl-grille.une .pc .ph { aspect-ratio: 4/3; }
.pc .ph img { width: 100%; height: 100%; object-fit: cover; }
.pc .badges { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pc .inf { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pc .nom { font-weight: 600; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc .prix { font: 800 17px var(--titre); color: var(--em-8); margin-top: auto; padding-top: 4px; }
.pc .barre { font-size: 12px; color: var(--gris-2); text-decoration: line-through; font-weight: 500; margin-left: 4px; font-family: var(--texte); }
.pc .stock { font-size: 12px; font-weight: 700; }
.pc .stock.bas { color: var(--corail); }
.pc .stock.ok { color: var(--em-7); }
.pc .plus { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--mg); color: #1E2A00; font-size: 22px; font-weight: 800; cursor: pointer; display: grid; place-items: center; }
.pc.epuise .ph img { filter: grayscale(.8); opacity: .7; }
.pc.epuise .plus { background: #F1EEF7; color: var(--gris); font-size: 16px; }

.panier-barre { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + var(--bas)); z-index: 40; pointer-events: none; }
.panier-barre button { pointer-events: auto; max-width: 588px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border: 0; border-radius: 18px;
  background: var(--em-8); color: #fff; box-shadow: 0 10px 30px rgba(45,20,112,.35); cursor: pointer; animation: monte .3s; }
.panier-barre .nb { background: var(--mg); color: #1E2A00; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; }
.panier-barre .tt { font: 800 18px var(--titre); }
@keyframes monte { from { transform: translateY(30px); opacity: 0; } }

/* Fiche produit */
.fp-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; background: var(--em-1); aspect-ratio: 1; }
.fp-photos::-webkit-scrollbar { display: none; }
.fp-photos img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.fp-points { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.fp-points i { width: 7px; height: 7px; border-radius: 50%; background: var(--trait-2); }
.fp-points i.on { background: var(--em-8); width: 18px; border-radius: 4px; }
.fp-prix { font: 800 28px var(--titre); color: var(--em-8); }
.qte { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--trait-2); border-radius: 14px; }
.qte button { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; font-weight: 700; cursor: pointer; color: var(--em-8); }
.qte b { min-width: 30px; text-align: center; font-size: 17px; }
.fp-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--fond) 30%); padding: 18px 0 4px; display: grid; gap: 8px; }

/* Panier / commande */
.lp { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.lp img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--em-1); flex: none; }
.totaux { background: #fff; border-radius: 16px; padding: 12px 14px; margin-top: 14px; }
.totaux .ligne { padding: 3px 0; }
.totaux .gros { font: 800 22px var(--titre); color: var(--em-8); }
.bloc { background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--ombre); margin-top: 12px; }
.bloc h3 { font-size: 16px; margin-bottom: 4px; }

/* Confirmation et suivi */
.ok-rond { width: 84px; height: 84px; margin: 10px auto 6px; border-radius: 50%; background: var(--em-8); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.ok-rond svg { width: 44px; height: 44px; stroke: var(--mg); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.num-pay { display: flex; align-items: center; gap: 10px; background: var(--fond); border-radius: 14px; padding: 10px 12px; margin-top: 8px; border: 1.5px dashed var(--trait-2); }
.num-pay b { font: 800 20px var(--titre); letter-spacing: .02em; flex: 1; }
.etapes { margin: 12px 0 0; padding: 0; list-style: none; }
.etapes li { display: flex; gap: 12px; padding-bottom: 18px; position: relative; color: var(--gris-2); }
.etapes li::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--trait-2); }
.etapes li:last-child::before { display: none; }
.etapes .pt { width: 28px; height: 28px; border-radius: 50%; background: #F1EEF7; display: grid; place-items: center; flex: none; font-size: 14px; z-index: 1; }
.etapes li.fait { color: var(--encre); }
.etapes li.fait .pt { background: var(--em-8); color: #fff; }
.etapes li.fait::before { background: var(--em-5); }
.etapes li.ici .pt { background: var(--mg); color: #1E2A00; box-shadow: 0 0 0 5px var(--mg-1); }
.propulse { text-align: center; font-size: 12px; color: var(--gris-2); padding: 30px 16px 10px; }
.propulse a { color: var(--em-7); font-weight: 700; text-decoration: none; }

/* =========================================================
   ESPACE VENDEUR
   ========================================================= */
.v-app { max-width: 760px; margin: 0 auto; padding-bottom: calc(86px + var(--bas)); min-height: 100vh; }
.v-haut { position: sticky; top: 0; z-index: 30; background: rgba(250,248,255,.94); backdrop-filter: blur(10px); padding: 12px 16px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid transparent; }
.v-haut.ombre { border-color: var(--trait); }
.v-haut h1 { font-size: 22px; flex: 1; }
.v-haut .marque { width: 34px; height: 34px; flex: none; }
.ico-btn { width: 42px; height: 42px; border-radius: 13px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--trait); display: grid; place-items: center; cursor: pointer; position: relative; flex: none; color: var(--encre); text-decoration: none; }
.ico-btn svg { width: 21px; height: 21px; }
.ico-btn .bulle { position: absolute; top: -4px; right: -4px; background: var(--corail); color: #fff; font-size: 11px; font-weight: 800; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.v-page { padding: 4px 16px 20px; }
.v-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--trait); display: flex; justify-content: center; padding-bottom: var(--bas); }
.v-nav-in { display: flex; width: 100%; max-width: 760px; }
.v-nav button { flex: 1; border: 0; background: none; padding: 8px 2px 9px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--gris-2); cursor: pointer; position: relative; }
.v-nav button svg { width: 24px; height: 24px; }
.v-nav button.on { color: var(--em-8); }
.v-nav button.on::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--mg); }
.v-nav .bulle { position: absolute; top: 4px; left: calc(50% + 6px); background: var(--corail); color: #fff; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

.salut { font-size: 14px; color: var(--gris); margin: 2px 0 12px; }
.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tuile { background: #fff; border-radius: var(--r); padding: 13px 14px; box-shadow: var(--ombre); }
.tuile .lib { font-size: 12px; color: var(--gris); font-weight: 600; }
.tuile .val { font: 800 23px var(--titre); margin-top: 2px; font-variant-numeric: tabular-nums; }
.tuile .sous { font-size: 12px; margin-top: 2px; }
.tuile.vert { background: var(--em-8); color: #fff; }
.tuile.vert .lib, .tuile.vert .sous { color: var(--em-2); }
.tuile.mangue { background: var(--mg); color: #1E2A00; }
.tuile.mangue .lib, .tuile.mangue .sous { color: #3F5600; }
.hausse { color: var(--em-7); font-weight: 700; }
.baisse { color: var(--corail); font-weight: 700; }
.tuile.vert .hausse { color: var(--mg); }

.titre-sec { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.titre-sec h2 { font-size: 18px; }
.carte { background: #fff; border-radius: var(--r); box-shadow: var(--ombre); padding: 14px; }
.carte + .carte { margin-top: 10px; }
.liste { background: #fff; border-radius: var(--r); box-shadow: var(--ombre); overflow: hidden; }
.el { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--trait); cursor: pointer; }
.el:last-child { border-bottom: 0; }
.el .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 19px; background: var(--em-1); }
.el .ic.mg { background: var(--mg-1); }
.el .ic.rouge { background: var(--corail-1); }
.el .ic.bleu { background: var(--bleu-1); }
.el .tt { font-weight: 650; font-size: 14.5px; line-height: 1.3; }
.el .dd { font-size: 12.5px; color: var(--gris); margin-top: 1px; }
.el .mt { font-weight: 800; font-family: var(--titre); white-space: nowrap; }
.el img.mini { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; background: var(--em-1); }
.el.urgent { background: linear-gradient(90deg, var(--mg-1), #fff 60%); }
.el .chev { color: var(--gris-2); flex: none; }

.onglets { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets .puce { flex: none; }
.onglets .puce .n { background: var(--corail); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 4px; }

/* Statut : carte avec entonnoir */
.st-carte { background: #fff; border-radius: var(--r); box-shadow: var(--ombre); padding: 14px; cursor: pointer; }
.st-carte + .st-carte { margin-top: 10px; }
.st-carte.meilleur { box-shadow: 0 0 0 2px var(--mg), var(--ombre); }
.entonnoir { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.entonnoir div { background: var(--fond); border-radius: 12px; padding: 8px 6px; text-align: center; }
.entonnoir b { display: block; font: 800 19px var(--titre); }
.entonnoir small { font-size: 11px; color: var(--gris); line-height: 1.2; display: block; }
.entonnoir div:last-child { background: var(--em-1); }
.entonnoir div:last-child b { color: var(--em-8); }
.barre-h { height: 8px; background: var(--fond); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.barre-h i { display: block; height: 100%; background: var(--em-5); border-radius: 4px; }
.barre-h i.mg { background: var(--mg); }

/* Graphiques simples */
.heures { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 10px; }
.heures div { flex: 1; background: var(--em-2); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; }
.heures div.top { background: var(--mg); }
.heures-l { display: flex; justify-content: space-between; font-size: 10px; color: var(--gris-2); margin-top: 4px; }
.courbe { display: flex; align-items: flex-end; gap: 2px; height: 110px; }
.courbe div { flex: 1; background: var(--em-5); border-radius: 3px 3px 0 0; min-height: 2px; }
.courbe div:last-child { background: var(--mg); }
.conseil { display: flex; gap: 10px; padding: 11px 12px; background: var(--mg-1); border-radius: 14px; font-size: 14px; margin-top: 8px; }
.conseil b { font-size: 18px; }

/* Commande (côté vendeur) */
.cmd-carte { background: #fff; border-radius: var(--r); box-shadow: var(--ombre); padding: 13px 14px; cursor: pointer; }
.cmd-carte + .cmd-carte { margin-top: 10px; }
.cmd-carte.nouvelle { box-shadow: 0 0 0 2px var(--mg), var(--ombre); }
.suivi-etapes { display: flex; gap: 4px; margin: 12px 0 4px; }
.suivi-etapes i { flex: 1; height: 6px; border-radius: 3px; background: #F1EEF7; }
.suivi-etapes i.on { background: var(--em-5); }
.actions-wa { display: grid; gap: 8px; }
.capture-img { width: 100%; border-radius: 14px; border: 1px solid var(--trait); max-height: 420px; object-fit: contain; background: #f6f6f6; }

/* Atelier du statut : aperçu de l'image */
.apercu-statut { width: 100%; max-width: 270px; aspect-ratio: 9/16; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 40px rgba(45,20,112,.25); background: var(--em-8); }
.apercu-statut canvas { width: 100%; height: 100%; display: block; }
.choix-produits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choix-produits button { border: 2px solid transparent; border-radius: 14px; padding: 0; background: #fff; overflow: hidden; cursor: pointer; position: relative; box-shadow: var(--ombre); text-align: left; }
.choix-produits button img { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--em-1); }
.choix-produits button span { display: block; font-size: 11px; padding: 4px 6px 6px; line-height: 1.2; height: 34px; overflow: hidden; }
.choix-produits button.on { border-color: var(--em-8); }
.choix-produits button.on::after { content: '✓'; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--em-8); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.lien-boite { display: flex; align-items: center; gap: 8px; background: var(--em-1); border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.lien-boite code { flex: 1; font-size: 14px; font-weight: 700; color: var(--em-8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; }

.photos-edit { display: flex; gap: 8px; flex-wrap: wrap; }
.photos-edit .ph { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; position: relative; background: var(--em-1); }
.photos-edit .ph img { width: 100%; height: 100%; object-fit: cover; }
.photos-edit .ph button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; cursor: pointer; }
.photos-edit label { width: 76px; height: 76px; border-radius: 12px; border: 2px dashed var(--trait-2); display: grid; place-items: center; cursor: pointer; color: var(--gris); font-size: 26px; background: #fff; }
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--trait); cursor: pointer; }
.interrupteur input { appearance: none; width: 48px; height: 28px; border-radius: 14px; background: var(--trait-2); position: relative; cursor: pointer; flex: none; transition: .2s; margin: 0; }
.interrupteur input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.interrupteur input:checked { background: var(--em-7); }
.interrupteur input:checked::after { left: 23px; }

.fab { position: fixed; right: max(16px, calc(50% - 364px)); bottom: calc(80px + var(--bas)); z-index: 34; height: 56px; padding: 0 20px 0 16px; border-radius: 18px; border: 0;
  background: var(--mg); color: #1E2A00; font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 26px rgba(155,197,22,.45); cursor: pointer; }
.fab svg { width: 22px; height: 22px; }

/* Connexion et présentation */
.accueil-pub { min-height: 100vh; }
.pub-hero { background: radial-gradient(120% 100% at 85% 0%, #5B36D6 0%, var(--em-8) 40%, var(--em-9) 100%); color: #fff; padding: 22px 18px 34px; position: relative; overflow: hidden; }
.pub-hero .nav { display: flex; align-items: center; gap: 10px; max-width: 1040px; margin: 0 auto; }
.pub-hero .nav b { font: 800 22px var(--titre); flex: 1; }
.pub-hero .contenu { max-width: 1040px; margin: 34px auto 0; display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .pub-hero .contenu { grid-template-columns: 1.1fr .9fr; } }
.pub-hero h1 { font-size: clamp(32px, 7vw, 54px); font-weight: 800; }
.pub-hero h1 em { font-style: normal; color: var(--mg); }
.pub-hero p.lead { font-size: 18px; color: var(--em-2); max-width: 540px; }
.pub-tel { width: 270px; max-width: 80vw; margin: 0 auto; aspect-ratio: 9/18.5; border-radius: 38px; background: #0E0A18; padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.35); position: relative; }
.pub-tel iframe, .pub-tel .ecran { width: 100%; height: 100%; border: 0; border-radius: 30px; background: var(--fond); overflow: hidden; }
.pub-section { max-width: 1040px; margin: 0 auto; padding: 40px 18px 10px; }
.pub-section h2 { font-size: clamp(24px, 5vw, 34px); margin-bottom: 18px; }
.pub-cartes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pub-carte { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--ombre); }
.pub-carte .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--em-1); display: grid; place-items: center; font-size: 22px; margin-bottom: 10px; }
.pub-carte h3 { font-size: 17px; margin-bottom: 4px; }
.pub-carte p { margin: 0; color: var(--gris); font-size: 14.5px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare > div { border-radius: 20px; padding: 16px; }
.compare .avant { background: #F1EEF7; }
.compare .apres { background: var(--em-8); color: #fff; }
.compare ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.compare li + li { margin-top: 6px; }
.connexion-boite { max-width: 420px; margin: 0 auto; background: #fff; border-radius: 22px; padding: 20px; box-shadow: var(--ombre); }
@media (max-width: 380px) { .entonnoir b { font-size: 16px; } .tuile .val { font-size: 20px; } }

/* =========================================================
   JAAY LIVE — TikTok : numéro de vidéo, live, écran plateau
   ========================================================= */
.cl-endirect { display: flex; align-items: center; gap: 12px; margin: 0 16px 12px; padding: 12px 14px; border-radius: 18px; background: var(--live); color: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(255,45,85,.35); }
.cl-endirect .point, .lv-pastille i { width: 10px; height: 10px; border-radius: 50%; background: #fff; display: inline-block; animation: pulse 1.2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 100% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
.cl-endirect .btn { color: var(--live); }
.cl-numero { margin: 0 16px 14px; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, var(--em-8), var(--em-9)); color: #fff; box-shadow: var(--ombre); }
.cl-numero label { display: block; font: 700 15px var(--titre); margin-bottom: 10px; }
.cl-numero .inp { font: 800 24px var(--titre); text-align: center; letter-spacing: .08em; border: 0; }
.cl-numero .btn { min-height: 52px; padding: 0 22px; }
.cl-videos { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 14px; scrollbar-width: none; }
.cl-videos::-webkit-scrollbar { display: none; }
.cl-video { flex: none; width: 110px; text-decoration: none; color: var(--encre); }
.cl-video .ph { position: relative; aspect-ratio: 9/14; border-radius: 16px; overflow: hidden; background: var(--em-1); }
.cl-video .ph img { width: 100%; height: 100%; object-fit: cover; }
.cl-video .num { position: absolute; left: 6px; bottom: 6px; background: var(--mg); color: #1E2A00; font: 800 17px var(--titre); padding: 2px 10px; border-radius: 10px; }
.cl-video .t { font-size: 12px; font-weight: 600; line-height: 1.25; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-confirme { margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--mg-1); border: 2px solid var(--mg); }
.cl-confirme p { margin: 4px 0 10px; font-size: 14px; color: var(--gris); }
.lv-pastille { display: inline-flex; align-items: center; gap: 6px; background: var(--live); color: #fff; font: 700 11px var(--texte); letter-spacing: .06em; padding: 3px 9px; border-radius: 8px; vertical-align: middle; }
.lv-pastille i { width: 7px; height: 7px; }
.lv-pastille.gros { font-size: 18px; padding: 6px 14px; border-radius: 12px; }
.lv-pastille.gros i { width: 12px; height: 12px; }
.lv-pastille.petit { position: absolute; top: 8px; right: 8px; font-size: 10px; }
body.mode-live { background: #120A2B; color: #fff; }
body.mode-live .cl-tete h1, body.mode-live .cl-section h3 { color: #fff; }
body.mode-live .cl-tete .slogan, body.mode-live .muet { color: rgba(255,255,255,.7); }
body.mode-live .bloc { background: rgba(255,255,255,.08); box-shadow: none; color: #fff; }
body.mode-live .vide { color: rgba(255,255,255,.8); }
body.mode-live .propulse a { color: var(--mg); }
.lv-scene { margin: 6px 16px 12px; border-radius: 26px; overflow: hidden; background: #fff; color: var(--encre); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.lv-scene .ph { position: relative; aspect-ratio: 1; background: var(--em-1); }
.lv-scene .ph img { width: 100%; height: 100%; object-fit: cover; }
.lv-scene .inf { padding: 14px 16px 16px; }
.lv-scene .nom { font: 700 19px var(--titre); line-height: 1.2; }
.lv-scene .prix { font: 800 28px var(--titre); color: var(--em-8); }
.lv-scene .barre { text-decoration: line-through; color: var(--gris-2); }
.lv-scene .btn { margin-top: 12px; }
.lv-scene.parti .ph img { filter: grayscale(.8); }
.lv-n { position: absolute; left: 10px; top: 10px; background: var(--em-9); color: var(--mg); font: 800 15px var(--titre); padding: 4px 10px; border-radius: 10px; }
.lv-chrono { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.72); color: #fff; padding: 6px 12px; border-radius: 12px; font-size: 15px; }
.lv-chrono b { font: 800 20px var(--titre); font-variant-numeric: tabular-nums; }
.lv-reste { position: absolute; left: 10px; bottom: 10px; background: var(--live); color: #fff; font: 800 16px var(--titre); padding: 6px 12px; border-radius: 12px; animation: pulse-r 1.3s infinite; }
@keyframes pulse-r { 50% { transform: scale(1.06); } }
.lv-tampon { position: absolute; inset: 0; display: grid; place-items: center; font: 800 54px var(--titre); color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.5); transform: rotate(-12deg); }
.btn.lv-btn, .btn.btn-live { background: var(--live); color: #fff; box-shadow: 0 10px 24px rgba(255,45,85,.35); }
.btn.lv-btn.grand { font: 800 19px var(--titre); letter-spacing: .02em; min-height: 62px; }
.lv-fil { margin: 0 16px 8px; display: grid; gap: 6px; }
.lv-fil div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; animation: monte .4s; }
.lv-liste { padding: 0 16px; display: grid; gap: 8px; }
.lv-ligne { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--encre); border-radius: 16px; padding: 8px 10px; }
.lv-ligne img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--em-1); flex: none; }
.lv-ligne .muet { color: var(--gris); }
.lv-attente { margin: 10px 16px 16px; text-align: center; padding: 26px 18px; border-radius: 24px; background: linear-gradient(160deg, var(--em-7), var(--em-9)); }
.lv-attente .ico { font-size: 44px; }
.lv-attente h2 { font-size: 22px; margin-top: 6px; color: #fff; }
/* Écran plateau (2e téléphone ou ordinateur filmé pendant le live) */
body.mode-ecran { background: #0E0820; color: #fff; }
body.mode-ecran .cl-app { max-width: none; padding: 0; }
.ecran { min-height: 100vh; display: flex; flex-direction: column; padding: 18px; gap: 16px; }
.ecran-haut { display: flex; align-items: center; gap: 14px; font: 700 20px var(--titre); }
.ecran-vide { flex: 1; display: grid; place-items: center; font: 700 26px var(--titre); opacity: .7; text-align: center; }
.ecran-corps { flex: 1; display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .ecran-corps { grid-template-columns: 1fr 1fr; } }
.ecran-photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 1; background: #2D1470; max-height: 70vh; }
.ecran-photo img { width: 100%; height: 100%; object-fit: cover; }
.ecran-photo .lv-n { font-size: 26px; padding: 8px 16px; }
.ecran-nom { font: 800 clamp(26px, 5vw, 54px) var(--titre); line-height: 1.1; }
.ecran-prix { font: 800 clamp(36px, 8vw, 86px) var(--titre); color: var(--mg); margin-top: 10px; }
.ecran-prix s { font-size: .4em; color: rgba(255,255,255,.5); }
.ecran-reste { display: inline-block; margin-top: 14px; background: var(--live); padding: 8px 18px; border-radius: 16px; font: 700 clamp(20px, 4vw, 36px) var(--titre); }
.ecran-reste.parti { background: #fff; color: var(--live); }
.ecran-chrono { margin-top: 14px; font: 800 clamp(26px, 6vw, 60px) var(--titre); font-variant-numeric: tabular-nums; }
.ecran-appel { margin-top: 18px; background: #fff; color: var(--em-8); border-radius: 22px; padding: 16px 20px; font: 600 clamp(18px, 3.4vw, 30px) var(--titre); line-height: 1.25; }
.ecran-fil { background: rgba(255,255,255,.1); border-radius: 18px; padding: 12px 18px; font-size: clamp(16px, 3vw, 26px); animation: monte .4s; }
/* Influenceur */
.inf-hero { margin-top: 16px; border-radius: 24px; padding: 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #5B36D6, var(--em-8) 50%, var(--em-9)); }
.inf-code { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; background: var(--mg); color: #1E2A00; padding: 8px 14px; border-radius: 14px; }
.inf-code b { font: 800 22px var(--titre); letter-spacing: .05em; }
/* Espace vendeur : vidéos et régie */
.num-video { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--em-8); color: var(--mg); display: grid; place-items: center; font: 800 18px var(--titre); }
.num-video.gros { width: 64px; height: 64px; font-size: 26px; border-radius: 18px; }
.num-video.petit { width: 40px; height: 40px; font-size: 15px; border-radius: 12px; }
.gros-numero { margin-top: 14px; text-align: center; padding: 18px; border-radius: 24px; background: linear-gradient(135deg, var(--em-8), var(--em-9)); color: #fff; }
.gros-numero small { display: block; font-size: 13px; opacity: .8; }
.gros-numero b { display: block; font: 800 96px/1 var(--titre); color: var(--mg); margin-top: 6px; }
.phrase { margin-top: 8px; padding: 12px; border-radius: 14px; background: var(--em-1); font: 600 16px var(--titre); color: var(--em-8); line-height: 1.35; }
.carte-live { background: linear-gradient(135deg, #3A1A8C, var(--em-9)); color: #fff; border-radius: var(--r); padding: 14px; box-shadow: var(--ombre); cursor: pointer; }
.carte-live > b { display: block; margin-top: 6px; font-family: var(--titre); }
.regie-haut { position: sticky; top: 66px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; background: var(--em-9); color: #fff; padding: 10px 12px; border-radius: 16px; font-size: 13.5px; }
.regie { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.regie-p { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--ombre); cursor: pointer; border: 3px solid transparent; }
.regie-p .ph { position: relative; aspect-ratio: 4/3; background: var(--em-1); }
.regie-p .ph img { width: 100%; height: 100%; object-fit: cover; }
.regie-p .lv-n { font-size: 13px; padding: 2px 8px; left: 6px; top: 6px; }
.regie-p .inf { padding: 8px 10px 10px; display: grid; gap: 2px; }
.regie-p.actuel { border-color: var(--live); box-shadow: 0 10px 26px rgba(255,45,85,.3); }
.regie-p.parti .ph img { filter: grayscale(.9); opacity: .6; }
.chrono-regie { font: 800 22px var(--titre); color: var(--live); font-variant-numeric: tabular-nums; }
.choix-produits button .ordre { position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--live); color: #fff; font: 800 13px var(--titre); display: grid; place-items: center; font-style: normal; }
.choix-produits button .ordre:empty { display: none; }
body.mode-live .feuille { color: var(--encre); }
body.mode-live .feuille .muet { color: var(--gris); }
body.mode-live .feuille .bloc { background: #fff; color: var(--encre); box-shadow: var(--ombre); }
body.mode-live .feuille h2, body.mode-live .feuille h3 { color: var(--encre); }
