@font-face { font-family: "Archivo"; src: url("/fonts/Archivo.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --bg: #0a0c0e; --panel: #12161a; --panel2: #181d22; --line: #232a31; --line2: #2f3841;
  --text: #eef2f4; --muted: #8a959f; --acc: #00f0b5; --acc-ink: #00231a; --warn: #ffb347; --bad: #ff5d6c; --ok: #00f0b5;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; line-height: 1.15; }
h2 { font-size: 17px; font-weight: 750; margin: 0 0 12px; }
h3 { font-size: 13px; font-weight: 700; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.boot { padding: 80px; text-align: center; color: var(--muted); }

/* barre du haut */
.top { display: flex; align-items: center; gap: 18px; padding: 14px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(10,12,14,.92); backdrop-filter: blur(10px); z-index: 20; }
.logo { font-weight: 900; font-size: 19px; letter-spacing: -0.02em; color: var(--text); display: flex; align-items: center; gap: 9px; }
.logo:hover { text-decoration: none; }
.logo i { width: 12px; height: 12px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 14px var(--acc); display: block; }
.top nav { display: flex; gap: 4px; margin-left: 12px; }
.top nav a { color: var(--muted); padding: 7px 12px; border-radius: 9px; font-weight: 600; }
.top nav a.on, .top nav a:hover { color: var(--text); background: var(--panel2); text-decoration: none; }
.spacer { flex: 1; }
.pill { background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pill b { color: var(--text); }

main { max-width: 1240px; margin: 0 auto; padding: 30px 28px 80px; }
.narrow { max-width: 440px; margin: 9vh auto 0; }

/* éléments */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card + .card { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn { border: 1px solid var(--line2); background: var(--panel2); border-radius: 11px; padding: 10px 16px; font-weight: 700; cursor: pointer; transition: transform .06s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: #46525e; background: #1e252b; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.primary:hover { background: #38ffd0; }
.btn.big { padding: 14px 22px; font-size: 16px; border-radius: 13px; }
.btn.ghost { background: transparent; }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.btn.mini { padding: 5px 10px; font-size: 13px; border-radius: 8px; font-weight: 600; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--acc); cursor: pointer; padding: 0; font-weight: 600; }
.link:hover { text-decoration: underline; }
label.f { display: block; font-size: 13px; font-weight: 650; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; background: #0d1114; border: 1px solid var(--line2); border-radius: 11px; padding: 11px 13px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(0,240,181,.13); }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--acc); flex: none; }
.note { border: 1px solid var(--line); border-left: 3px solid var(--warn); background: rgba(255,179,71,.06); border-radius: 10px; padding: 10px 13px; font-size: 13.5px; margin-top: 10px; }
.note.bad { border-left-color: var(--bad); background: rgba(255,93,108,.07); }
.note.info { border-left-color: var(--acc); background: rgba(0,240,181,.05); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line2); color: var(--muted); }
.tag.done { color: var(--acc); border-color: rgba(0,240,181,.4); }
.tag.run { color: var(--warn); border-color: rgba(255,179,71,.4); }
.tag.failed { color: var(--bad); border-color: rgba(255,93,108,.4); }

/* accueil */
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; position: relative; transition: border-color .15s, transform .12s; }
.pcard:hover { border-color: #46525e; transform: translateY(-2px); }
.pcard .thumb { aspect-ratio: 9/14; background: #000 center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.pcard .meta { padding: 11px 12px 13px; }
.pcard .meta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .del { position: absolute; top: 8px; right: 8px; opacity: 0; background: rgba(0,0,0,.7); border: 0; color: #fff; border-radius: 8px; padding: 5px 8px; cursor: pointer; }
.pcard:hover .del { opacity: 1; }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line2); border-radius: var(--r); color: var(--muted); }

/* étapes */
.steps { display: flex; gap: 8px; margin-bottom: 26px; }
.step { flex: 1; display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); cursor: default; text-align: left; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.step b { display: block; color: inherit; font-size: 14px; }
.step small { font-size: 12px; }
.step.open { cursor: pointer; }
.step.open:hover { border-color: #46525e; }
.step.on { border-color: var(--acc); color: var(--text); }
.step.on .n { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.step.ok .n { color: var(--acc); border-color: rgba(0,240,181,.5); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.side { position: sticky; top: 84px; }
.phone { width: 100%; aspect-ratio: 9/16; border-radius: 26px; overflow: hidden; background: #000; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0,0,0,.5); position: relative; }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; padding: 20px; text-align: center; }
.side .cap { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.foot { display: flex; gap: 12px; margin-top: 22px; align-items: center; }

/* étape 1 */
.hero input[type=url] { font-size: 17px; padding: 16px 18px; border-radius: 14px; }
.src { display: flex; gap: 16px; align-items: center; }
.src img { width: 74px; aspect-ratio: 9/16; object-fit: cover; border-radius: 10px; border: 1px solid var(--line2); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bar { height: 8px; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--acc); border-radius: 99px; transition: width .6s; }
.bar.ind i { width: 35%; animation: slide 1.3s infinite ease-in-out; }
@keyframes slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

/* étape Paramètres */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1px solid var(--line2); background: var(--panel2); border-radius: 11px; padding: 9px 14px; cursor: pointer; font-weight: 650; user-select: none; }
.opt:hover { border-color: #46525e; }
.opt.on { border-color: var(--acc); background: rgba(0,240,181,.1); color: var(--acc); }
.opt small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.opt.on small { color: #8fe9d2; }
.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.voice { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.voice b { font-weight: 700; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line2); cursor: pointer; padding: 0; }
.sw.on { outline: 2px solid var(--text); outline-offset: 2px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; border: 1px solid rgba(255,255,255,.35); vertical-align: 1px; }
input[type=range] { accent-color: var(--acc); width: 220px; }
.sub { margin-top: 18px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 650; }
.switch i { width: 42px; height: 24px; border-radius: 99px; background: var(--line2); position: relative; transition: background .15s; flex: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch.on i { background: var(--acc); }
.switch.on i::after { transform: translateX(18px); }

/* étape Script */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mode { border: 1px solid var(--line2); background: var(--panel2); border-radius: 13px; padding: 14px; cursor: pointer; }
.mode:hover { border-color: #46525e; }
.mode.on { border-color: var(--acc); background: rgba(0,240,181,.08); }
.mode b { display: block; margin-bottom: 3px; }
.mode span { font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; font-weight: 700; }
.tab.on { background: var(--text); color: #0a0c0e; border-color: var(--text); }
textarea.script { min-height: 300px; font-size: 15.5px; }
.meter { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.meter b { color: var(--text); }
.meter .ok { color: var(--ok); } .meter .off { color: var(--warn); }
.busy { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel2); margin-bottom: 14px; }
.busy:last-child { margin-bottom: 0; }
#scriptline { margin-bottom: 16px; }
#scriptline .note { margin-top: 0; }
#scriptline .busy { margin-bottom: 0; }
details.more { margin-top: 16px; }
details.more summary { cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 600; user-select: none; }
details.more summary:hover { color: var(--text); }
.modes + form, .modes + .foot, .modes + p { margin-top: 0; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--acc); animation: rot .8s linear infinite; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }

/* étape Export */
.exp { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
.exp .vid { aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; text-align: center; }
.exp .vid video { width: 100%; height: 100%; object-fit: cover; }
.copy { background: #0d1114; border: 1px solid var(--line2); border-radius: 11px; padding: 11px 13px; font-size: 14px; white-space: pre-wrap; margin: 6px 0 8px; }

/* admin */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
td input[type=number] { width: 84px; padding: 6px 8px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.kpi b { display: block; font-size: 22px; font-weight: 800; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; }

/* crédits : pastille de la barre du haut, coût sur les boutons, page « Mes crédits » */
a.btn:hover { text-decoration: none; }
.pill.cr { position: relative; color: var(--text); font-weight: 700; border-color: rgba(0,240,181,.4); background: rgba(0,240,181,.08); transition: border-color .15s; }
.pill.cr:hover { border-color: var(--acc); text-decoration: none; }
.pill.cr b { color: var(--acc); font-size: 14px; }
.pill.cr.low { border-color: rgba(255,179,71,.5); background: rgba(255,179,71,.08); } .pill.cr.low b { color: var(--warn); }
.pill.cr.bad { border-color: rgba(255,93,108,.55); background: rgba(255,93,108,.08); } .pill.cr.bad b { color: var(--bad); }
.pill.cr.bump { animation: crbump .5s ease; }
@keyframes crbump { 40% { transform: scale(1.14); } }
.crfly { position: absolute; right: 10px; top: 100%; font-weight: 900; font-size: 13px; pointer-events: none; animation: crfly 1.5s ease forwards; }
.crfly.up { color: var(--acc); } .crfly.down { color: var(--warn); }
@keyframes crfly { from { opacity: 0; transform: translateY(-6px); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(16px); } }
.crcost { display: inline-flex; align-items: center; margin-left: 10px; padding: 2px 9px; border-radius: 99px; font-size: .78em; font-weight: 800; background: rgba(0,35,26,.16); white-space: nowrap; vertical-align: 1px; }
.btn:not(.primary) .crcost { background: rgba(0,240,181,.12); color: var(--acc); }
.crpage { max-width: 920px; margin: 0 auto; }
.crhero { text-align: center; padding: 34px 24px 28px; background: radial-gradient(700px 260px at 50% -20%, rgba(0,240,181,.16), transparent 70%), var(--panel); }
.crbig { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.crbig b { font-size: 76px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.crbig .bolt { font-size: 38px; } .crbig span:last-child { font-size: 20px; color: var(--muted); font-weight: 700; }
.crsub { color: var(--muted); margin: 8px 0 20px; }
.crbar { display: flex; gap: 3px; height: 12px; border-radius: 99px; overflow: hidden; max-width: 520px; margin: 0 auto 12px; }
.crbar i { display: block; min-width: 8px; }
.crbar .d, .crlegend i.d { background: #ffe600; } .crbar .m, .crlegend i.m { background: var(--acc); } .crbar .x, .crlegend i.x { background: #7ab8ff; }
.crlegend { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 13.5px; color: var(--muted); }
.crlegend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.crlegend b { color: var(--text); } .crlegend em { font-style: normal; }
.crnext { margin-top: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); } .crnext b { color: var(--text); }
.crline { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.crline:last-of-type { border-bottom: 0; }
.crline .em { font-size: 20px; } .crline small { display: block; color: var(--muted); font-size: 12.5px; } .crline > b { color: var(--acc); white-space: nowrap; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 6px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--panel2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 16px; }
.plan.star { border-color: rgba(0,240,181,.55); box-shadow: 0 0 0 1px rgba(0,240,181,.25), 0 18px 50px rgba(0,240,181,.07); }
.plan.cur { background: rgba(0,240,181,.06); }
.plan h3 { text-transform: none; letter-spacing: 0; font-size: 18px; color: var(--text); margin: 0 0 2px; }
.plan .price { margin: 10px 0 12px; display: flex; align-items: baseline; gap: 6px; } .plan .price b { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; } .plan .price span { color: var(--muted); font-size: 13px; }
.plan .price.soon { color: var(--muted); font-size: 13px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; color: var(--muted); flex: 1; align-content: start; }
.plan li { padding-left: 20px; position: relative; } .plan li::before { content: "✓"; position: absolute; left: 0; color: var(--acc); font-weight: 900; }
.plan li b { color: var(--text); } .plan li small { font-size: 12px; }
.plan .foot { margin-top: 16px; } .plan .foot .btn { width: 100%; text-align: center; white-space: normal; padding: 10px 8px; line-height: 1.25; }
/* Formule à paliers : la liste des crédits du mois (comme chez Lovable). */
.plan.fam { min-width: 0; }
.plans.fams { grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); }
.plans.solo { grid-template-columns: 1fr; margin-top: 12px; }
.plans.solo .plan { display: grid; grid-template-columns: minmax(130px, .8fr) auto minmax(0, 2fr) auto; align-items: center; gap: 6px 22px; padding: 14px 16px; }
.plans.solo .plan .price, .plans.solo .plan .foot { margin: 0; } .plans.solo .plan .price b { font-size: 20px; }
.plans.solo .plan ul { display: flex; flex-wrap: wrap; gap: 4px 18px; } .plans.solo .plan .foot .btn { width: auto; }
@media (max-width: 760px) { .plans.solo .plan { display: flex; align-items: stretch; } .plans.solo .plan .price { margin: 8px 0; } .plans.solo .plan .foot { margin-top: 12px; } }
.tiersel { position: relative; margin: 0 0 14px; }
.tierbtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line2); background: #0d1114; color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: border-color .15s; }
.tierbtn:hover, .tiersel.open .tierbtn { border-color: var(--acc); }
.tierbtn span { color: var(--muted); } .tierbtn b { color: var(--text); }
.tierbtn i { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); flex: none; transition: transform .15s; }
.tiersel.open .tierbtn i { transform: rotate(-135deg) translate(-2px, -2px); }
.tierlist { position: absolute; left: 0; min-width: 100%; width: max-content; max-width: min(340px, 86vw); top: calc(100% + 6px); z-index: 30; display: grid; gap: 2px; padding: 6px; max-height: 330px; overflow-y: auto; background: #1a2026; border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.tier { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.tier:hover, .tier:focus-visible { background: rgba(255,255,255,.06); outline: none; }
.tier.on { background: rgba(0,240,181,.13); } .tier.on b { color: var(--acc); }
.tier b { white-space: nowrap; } .tier .nn { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.tier span { margin-left: auto; font-weight: 700; color: var(--muted); white-space: nowrap; } .tier span small { font-weight: 500; font-size: 12px; }
.tier.on span { color: var(--acc); }
.tier .save, .savepill { font-style: normal; font-size: 11.5px; font-weight: 800; color: #86e3a8; background: rgba(70,190,120,.16); border-radius: 7px; padding: 2px 7px; white-space: nowrap; }
.tier .mine { font-style: normal; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line2); border-radius: 7px; padding: 1px 6px; white-space: nowrap; }
.seg { display: inline-flex; gap: 4px; padding: 4px; margin: 2px 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: #0d1114; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; padding: 7px 14px; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: 0 0 0 1px var(--line2); }
.seg button em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #86e3a8; margin-left: 4px; }
.plan .billed { margin: -6px 0 12px; font-size: 12.5px; color: var(--muted); }
/* Admin : paliers et marge estimée. */
.pgrid .net { white-space: nowrap; font-size: 13px; } .pgrid .net b { color: var(--acc); } .pgrid .net.bad b { color: var(--bad); } .pgrid .net small { display: block; color: var(--muted); font-size: 12px; }
.pgrid.tiers table { min-width: 860px; } .pgrid.tiers th, .pgrid.tiers td { padding-left: 8px; padding-right: 8px; }
.pgrid .links { display: grid; gap: 5px; } .pgrid .links input[type=text] { min-width: 150px; padding: 5px 8px; font-size: 13px; }
.basefix { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 4px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel2); }
.basefix label.f { margin: 0 0 6px; } .basefix input[type=number] { width: 120px; } .basefix p { margin: 0; flex: 1; min-width: 220px; }
.ribbon { position: absolute; top: -10px; left: 14px; background: var(--acc); color: var(--acc-ink); font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 99px; }
.packs { display: flex; flex-wrap: wrap; gap: 10px; }
.pack { display: flex; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; }
.pack b { font-size: 17px; } .pack span { color: var(--muted); font-size: 13px; } .pack em { font-style: normal; font-weight: 800; margin: 0 4px; }
.crhist td { padding: 8px 10px; } .crdelta { text-align: right; font-weight: 800; white-space: nowrap; } .crdelta.up { color: var(--acc); } .crdelta.down { color: var(--muted); }
/* admin : grille des formules */
.pgrid { overflow-x: auto; } .pgrid table { min-width: 980px; }
.pgrid td input[type=text] { padding: 6px 8px; min-width: 104px; } .pgrid td input[type=number] { width: 78px; }
.pgrid td input[type=checkbox], .pgrid td input[type=radio] { width: 17px; height: 17px; accent-color: var(--acc); }
.rulegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; } .rulegrid label.f { margin-top: 0; }
.kpi small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: #1f262d; border: 1px solid var(--line2); border-radius: 12px; padding: 11px 16px; box-shadow: 0 14px 40px rgba(0,0,0,.5); max-width: 560px; }
.toast.bad { border-color: var(--bad); }

@media (max-width: 920px) {
  .cols { grid-template-columns: 1fr; } .side { position: static; max-width: 260px; margin: 0 auto; order: -1; }
  .steps { flex-wrap: wrap; } .step { flex: 1 1 45%; } .modes { grid-template-columns: 1fr; }
  main { padding: 20px 16px 60px; } .top { padding: 12px 16px; flex-wrap: wrap; }
  .exp { grid-template-columns: 110px minmax(0, 1fr); } .voice { grid-template-columns: 1fr; }
}
