@font-face { font-family: "Irish Grover"; src: url("fonts/irish-grover-latin-400-normal.woff2") format("woff2"); font-weight: 400; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; }

/* Design de la maquette Figma « FOX » (iPhone 16 - 1 et 2) : fond #0d0d0d, surfaces #121212, angles droits, vert Fox #a6ff00 */
:root {
  --bg: #0d0d0d; --s1: #121212; --s2: rgba(255,255,255,.05); --s3: #1c1c1c; --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.18);
  --lime: #a6ff00; --lime2: #86b636; --ink: #0d0d0d; --muted: rgba(255,255,255,.55); --faint: rgba(255,255,255,.3); --text: #fff;
  --danger: #ff6b6b; --warn: #ffd166;
  --pad: 20px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; font-size: 14px; line-height: 1.4; }
button, input, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
h1 { font-family: "Irish Grover", Inter, sans-serif; font-weight: 400; font-size: 24px; line-height: 1.2; margin: 0; }
[hidden] { display: none !important; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

#app { padding: calc(28px + var(--safe-t)) var(--pad) calc(120px + var(--safe-b)); max-width: 560px; margin: 0 auto; animation: rise .2s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* barre du haut : menu à gauche, crédits à droite (accueil) ; retour + titre centré (autres écrans) */
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 24px; margin-bottom: 20px; }
.bar .title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 14px; white-space: nowrap; }
.bar { position: relative; }
.icon-btn { background: none; border: 0; padding: 0; width: 32px; height: 32px; display: grid; place-items: center; margin: -4px; }
.icon-btn img { display: block; }
.credits { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--lime); font-size: 14px; padding: 4px 0; }
.credits img { display: block; }

/* recherche et filtres */
.search { display: block; width: 100%; height: 40px; background: var(--s1); border: 1px solid transparent; padding: 0 14px; color: var(--text); outline: none; }
.search::placeholder { color: var(--faint); }
.search:focus { border-color: var(--line2); }
.filters { display: flex; gap: 20px; margin: 20px calc(-1 * var(--pad)) 20px 0; overflow-x: auto; scrollbar-width: none; padding-right: var(--pad); }
.filters::-webkit-scrollbar { display: none; }
.chip { background: var(--s1); border: 0; padding: 6px; white-space: nowrap; flex: none; color: var(--text); }
.chip.on { background: #fff; color: var(--ink); }

/* dossiers de projets : copie fidèle du logiciel Windows (desktop/renderer/studio.css « .fold ») — plaque arrière avec onglet, plaque avant pleine, miniature à droite */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.fold { position: relative; aspect-ratio: 330 / 212; width: 100%; border: 0; padding: 0; background: none; text-align: left; color: #fff; cursor: pointer; transition: transform .18s ease;
  --back: #232623; --f0: #303430; --f1: #1a1c1a; --edge: rgba(255,255,255,.07); }
.fold:active { transform: translateY(-2px); --back: #34440f; --f0: #3d5410; --f1: #1d2709; --edge: rgba(166,255,0,.35); }
.fold-plate { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 12px 20px rgba(0,0,0,.4)); }
.fold-plate .back { fill: var(--back); }
.fold-plate .s0 { stop-color: var(--f0); } .fold-plate .s1 { stop-color: var(--f1); }
.fold-plate .front { stroke: var(--edge); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fold-body { position: absolute; left: 7%; right: 6%; top: 25%; bottom: 8%; display: flex; align-items: stretch; justify-content: space-between; gap: 6px; }
.fold-txt { display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; min-width: 0; flex: 1; }
.fold-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: auto; }
.fold-more { width: 24px; height: 24px; margin-left: -7px; margin-top: -4px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: rgba(255,255,255,.72); padding: 0; }
.fold-more .ic { width: 16px; height: 16px; }
.fold-tag { flex: none; font-size: 9px; font-weight: 600; line-height: 1; padding: 3px 5px; border: 1px solid; white-space: nowrap; letter-spacing: .02em; }
.fold-tag.kt-character { color: #cbff62; background: rgba(166,255,0,.12); border-color: rgba(166,255,0,.38); }
.fold-tag.kt-ads { color: #ffc783; background: rgba(255,150,40,.14); border-color: rgba(255,150,40,.42); }
.fold-tag.kt-failed { color: #ff8f8f; background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.4); }
.fold-t { font-weight: 700; font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold-n { font-size: 11px; color: rgba(255,255,255,.72); }
.fold-d { font-size: 9.5px; color: rgba(255,255,255,.45); margin-top: 3px; white-space: nowrap; }
.fold-thumb { align-self: center; flex: none; height: 100%; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: #0d0d0d; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 6px 14px rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); }
.fold-thumb.empty { background: rgba(255,255,255,.05); border-style: dashed; }
.fold-thumb video, .fold-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.fold-chip { position: absolute; left: 4%; top: 1%; background: #a6ff00; color: #0d0d0d; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; }
.fold-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #0d0d0d; animation: foldpulse 1.1s ease-in-out infinite alternate; }
@keyframes foldpulse { from { opacity: .25; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.fold.live .fold-plate { filter: drop-shadow(0 12px 20px rgba(0,0,0,.4)) drop-shadow(0 0 14px rgba(166,255,0,.18)); }
.fold.live { --back: #34440f; --f0: #2b3a10; --f1: #141a0a; --edge: rgba(166,255,0,.4); }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 12px; color: var(--muted); }
.skeleton { aspect-ratio: 330 / 212; background: linear-gradient(180deg, #232623, #1a1c1a); clip-path: polygon(0 0, 33.94% 0, 41.82% 16.04%, 100% 16.04%, 100% 100%, 0 100%); opacity: .5; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* menu ⋮ d'un projet : feuille qui monte du bas */
.sheet { position: fixed; z-index: 9; left: 0; right: 0; bottom: 0; background: #141614; border-top: 1px solid rgba(255,255,255,.16); padding: 10px 10px calc(16px + var(--safe-b)); animation: up .2s ease; }
@keyframes up { from { transform: translateY(100%); } }
.sheet b { display: block; padding: 10px 12px 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.sheet button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 14px 12px; font-size: 15px; color: #fff; }

/* bouton « Créer un projet » : verre dépoli posé sur la grille */
.fab { position: fixed; z-index: 4; left: 50%; transform: translateX(-50%); bottom: calc(46px + var(--safe-b)); width: 207px; height: 91px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(17.4px); -webkit-backdrop-filter: blur(17.4px); border: 1px solid rgba(255,255,255,.1); color: #fff; font-weight: 500; font-size: 14px; }
.fab img { display: block; }

/* « Choisis un concept » */
.concepts { display: grid; gap: 20px; margin-top: 36px; }
.concept { position: relative; height: 78px; background: var(--s2); border: 1px solid transparent; overflow: hidden; text-align: left; padding: 0 0 0 23px; width: 100%; }
.concept.on { border-color: var(--lime); background: rgba(166,255,0,.06); }
.concept b { display: block; font-size: 14px; font-weight: 700; }
.concept i { display: block; font-size: 12px; margin-top: 4px; }
.concept .tag { display: inline-block; margin-top: 6px; font-size: 10px; font-style: normal; color: var(--warn); }
.concept .shot { position: absolute; left: 221px; top: 18px; width: 90.578px; height: 161.027px; border-radius: 5px; overflow: hidden; transform: rotate(7.46deg); transform-origin: center;
  background-image: linear-gradient(160.12deg, rgba(255,255,255,.1) 8.45%, rgba(166,255,0,.1) 23.83%); }
.concept .shot img { position: absolute; left: -3.12px; top: -8.67px; width: 97.462px; height: 130.491px; object-fit: cover; pointer-events: none; }

/* bouton principal blanc, collé en bas (maquette : « Continuer ») */
.cta { position: fixed; z-index: 4; left: 10px; right: 10px; bottom: calc(40px + var(--safe-b)); max-width: 540px; margin: 0 auto; background: #fff; color: var(--ink); border: 0; padding: 8px 16px; min-height: 40px; font-weight: 500; font-size: 14px; }
.cta:disabled { background: #2a2a2a; color: var(--muted); }
/* le contenu glisse sous le bouton du bas sans se mélanger à lui */
.cta { box-shadow: 0 0 0 10px var(--bg), 0 -30px 30px 10px var(--bg); }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; border: 1px solid var(--line2); background: var(--s1); color: var(--text); font-weight: 500; padding: 10px 16px; text-decoration: none; }
.btn.white { background: #fff; color: var(--ink); border-color: #fff; }
.btn.lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn + .btn { margin-top: 10px; }
.link { background: none; border: 0; color: var(--lime); padding: 0; font-weight: 500; }

/* éditeur */
.steps { display: flex; gap: 4px; margin: -6px 0 22px; }
.steps i { flex: 1; height: 2px; background: var(--s3); }
.steps i.on { background: var(--lime); }
.section { margin-top: 22px; }
.label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
textarea, input.field { display: block; width: 100%; background: var(--s1); border: 1px solid transparent; padding: 12px 14px; outline: none; color: var(--text); }
textarea { min-height: 200px; resize: vertical; line-height: 1.5; }
textarea:focus, input.field:focus { border-color: var(--line2); }
textarea::placeholder, input.field::placeholder { color: var(--faint); }
.hint { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }
.options { display: grid; gap: 10px; }
.options.two { grid-template-columns: 1fr 1fr; }
.options.three { grid-template-columns: repeat(3, 1fr); }
.opt { background: var(--s2); border: 1px solid transparent; padding: 14px; text-align: left; width: 100%; display: flex; gap: 12px; align-items: center; }
.opt.on { border-color: var(--lime); background: rgba(166,255,0,.06); }
.opt b { display: block; font-weight: 600; }
.opt .muted { display: block; font-size: 12px; margin-top: 2px; }
.opt.col { flex-direction: column; align-items: stretch; gap: 8px; }
.swatch { height: 44px; border: 1px solid var(--line2); }
.panel { background: var(--s2); padding: 16px; }
.panel + .panel { margin-top: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { display: inline-block; padding: 3px 8px; font-size: 11px; font-weight: 500; background: var(--s3); }
.tag.lime { background: rgba(166,255,0,.14); color: var(--lime); }
.tag.warn { background: rgba(255,209,102,.14); color: var(--warn); }
.tag.bad { background: rgba(255,107,107,.14); color: var(--danger); }
audio { width: 100%; margin-top: 10px; }

/* micro */
.rec { display: grid; place-items: center; gap: 14px; padding: 28px 0 10px; }
.recbtn { width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255,107,107,.15); }
.recbtn.on { animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(255,107,107,.05); } }
.timer { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* récapitulatif, suivi, lecture */
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sum div:last-child { border: 0; }
.sum .total { font-weight: 700; color: var(--lime); }
.progress { height: 4px; background: var(--s3); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--lime); transition: width .6s ease; }
.track { display: grid; gap: 14px; margin-top: 18px; }
.track div { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.track .on { color: var(--text); } .track .done { color: var(--lime); }
.track .n { width: 22px; height: 22px; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 11px; flex: none; }
.track .on .n { border-color: var(--lime); } .track .done .n { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.player { width: 100%; max-height: 60vh; background: #000; display: block; }

/* listes des rubriques (marques, produits…) */
.list { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--s2); padding: 12px 14px; }
.item .sw { width: 28px; height: 28px; flex: none; }
.item img.th { width: 44px; height: 44px; object-fit: cover; flex: none; background: var(--s3); }
.news h3 { font-size: 14px; margin: 0 0 4px; }
.news p { margin: 0; color: var(--muted); }

/* menu latéral */
.scrim { position: fixed; inset: 0; z-index: 8; background: rgba(0,0,0,.55); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; z-index: 9; top: 0; bottom: 0; left: 0; width: min(78vw, 300px); background: var(--s1); border-right: 1px solid var(--line); padding: calc(28px + var(--safe-t)) 20px calc(20px + var(--safe-b));
  transform: translateX(-102%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: grid; gap: 8px; margin-bottom: 22px; }
.drawer-logo { height: 30px; width: auto; justify-self: start; }
.drawer-nav { display: grid; }
.drawer-nav button { background: none; border: 0; text-align: left; padding: 13px 0; font-size: 16px; color: var(--text); }
.drawer-nav button.on { color: var(--lime); }
.drawer hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; width: 100%; }

.toast { position: fixed; z-index: 10; left: 16px; right: 16px; bottom: calc(150px + var(--safe-b)); background: var(--s3); border: 1px solid var(--line2); padding: 12px 14px; text-align: center; animation: rise .2s ease; }
.toast.bad { border-color: var(--danger); }
.center { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 16px; }
.center .logo { height: 70px; margin: 0 auto; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--lime); animation: spin .9s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo { position: fixed; z-index: 7; top: calc(6px + var(--safe-t)); left: 50%; transform: translateX(-50%); font-size: 10px; }

/* bandeau « Installer Fox » (PWA) */
.install { display: flex; align-items: center; gap: 12px; background: var(--s2); border: 1px solid rgba(166,255,0,.3); padding: 10px 12px; margin-bottom: 14px; position: relative; }
.install img { flex: none; border-radius: 9px; }
.install > span { flex: 1; min-width: 0; display: grid; }
.install .btn { width: auto; min-height: 34px; padding: 6px 12px; font-size: 13px; }
.install-x { position: absolute; top: 2px; right: 4px; background: none; border: 0; color: var(--muted); font-size: 11px; padding: 4px; }

/* ───────── éditeur : maquette Figma « iPhone 16 - 3 » (barre fixe, script, tuiles voix off, lignes Précisions / Marque / Produit, bouton fixe) ───────── */
body.noscroll { overflow: hidden; }
.ed-bar { position: fixed; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + var(--safe-t)) 20px 12px; background: rgba(13,13,13,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: 560px; margin: 0 auto; }
.ed-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 64%; background: none; border: 0; color: #fff; font-weight: 700; font-size: 12px; padding: 6px 4px; }
.ed-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-name img { flex: none; }
.ed-name-in { flex: 1; max-width: 64%; min-width: 0; background: #121212; border: 1px solid var(--lime); color: #fff; font: 700 13px Inter, sans-serif; padding: 7px 10px; text-align: center; outline: none; }
.ed-preview-btn { background: #272727; border: 0; color: #fff; font-size: 12px; font-weight: 500; padding: 7px 12px; }
.ed { padding-top: calc(42px + var(--safe-t)); padding-bottom: 20px; display: flex; flex-direction: column; }
.ed-script { background: transparent; border: 0; padding: 18px 0 6px; min-height: clamp(150px, 32dvh, 300px); font: 700 16px/1.45 Inter, sans-serif; color: #fff; resize: none; outline: none; }
.ed-script::placeholder { color: rgba(255,255,255,.2); }
.ed-script.ro { color: rgba(255,255,255,.85); font-weight: 600; min-height: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ed-count { font-size: 11px; color: var(--muted); text-align: right; min-height: 14px; }
.ed-line { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 8px 0 10px; width: 100%; }
.ed-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ed-tile { height: clamp(100px, 30vw, 132px); background: #121212; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 10px; letter-spacing: .02em; }
.ed-tile.gen { background: linear-gradient(180deg, #121212, #1a2700); }
.ed-tile:active { outline: 1px solid rgba(166,255,0,.5); }
.ed-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #121212; min-height: 54px; padding: 0 20px; margin-top: 10px; }
.ed-row.tall { min-height: 62px; }
.ed-row-l { display: flex; align-items: center; gap: 20px; min-width: 0; }
.ed-row-l > span { display: grid; gap: 4px; min-width: 0; }
.ed-row-l b { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-row-l i { font-size: 10px; color: #fff; }
.ed-row-l > i { font-size: 12px; }
.ed-row .pill { background: #fff; color: #0d0d0d; border-radius: 30px; padding: 3px 7px; font-size: 14px; white-space: nowrap; }
#r-prec .ed-row-l { gap: 10px; }
.ed-chg { flex: none; display: inline-flex; align-items: center; gap: 10px; background: #272727; border: 0; color: #fff; font: italic 10px Inter, sans-serif; padding: 7px 11px; }
.ed-logo { width: 32px; height: 32px; flex: none; object-fit: cover; background: #272727; display: block; }
.ed-ic { width: 32px; height: 32px; display: grid; place-items: center; flex: none; color: #fff; }
.ed-ic.lime { color: var(--lime); }
.ed-voice-ready { background: #121212; padding: 14px 20px; }
.ed-voice-ready .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ed-cta { left: 20px; right: 20px; bottom: calc(16px + var(--safe-b)); box-shadow: 0 0 0 16px var(--bg); }
.demo-ed { top: auto; bottom: calc(66px + var(--safe-b)); }

/* aperçu (projet monté) */
.ed-sec { margin-top: 14px; }
.pv-card { display: flex; gap: 16px; background: #121212; padding: 12px; align-items: center; cursor: pointer; }
.pv-card.bad { border: 1px solid rgba(255,107,107,.35); }
.pv-thumb { position: relative; width: 64px; aspect-ratio: 9 / 16; flex: none; background: #0d0d0d; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; overflow: hidden; display: grid; place-items: center; color: var(--lime); }
.pv-thumb.empty { color: var(--muted); }
.pv-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-play { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; color: #fff; }
.pv-meta { display: grid; gap: 4px; min-width: 0; }
.pv-meta .label { margin: 0; font-size: 10px; }
.pv-meta b { font-size: 14px; }
.pv-meta .ed-chg { justify-self: start; margin-top: 6px; }
.pv-full { min-height: 46dvh; display: grid; place-items: center; background: #000; }
.pv-full .player { max-height: 62dvh; width: auto; max-width: 100%; }
.pv-demo { position: relative; width: min(60vw, 240px); aspect-ratio: 9 / 16; display: grid; place-items: center; overflow: hidden; text-align: center; font-size: 12px; color: #fff; padding: 12px; }
.pv-demo span { position: relative; z-index: 1; }

/* feuilles qui montent du bas */
.bs-scrim { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.6); animation: fade .2s ease; }
.bs { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 88dvh; display: flex; flex-direction: column;
  background: #141614; border-top: 1px solid rgba(255,255,255,.14); animation: up .28s cubic-bezier(.2,.9,.3,1); transition: transform .2s ease; }
.bs.tall { min-height: 72dvh; }
.bs-grab { width: 100%; padding: 10px 0 6px; flex: none; touch-action: none; }
.bs-grab::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); margin: 0 auto; }
.bs-body { overflow-y: auto; padding: 4px 20px calc(20px + var(--safe-b)); }
.bs-t { font-family: Inter, sans-serif; font-weight: 700; font-size: 17px; margin: 6px 0 6px; }
.bs-s { color: var(--muted); font-size: 13px; margin: 0 0 16px; line-height: 1.45; }
.bs-list { display: grid; gap: 8px; }
.bs-item { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: #1c1f1c; border: 1px solid transparent; color: #fff; padding: 12px 14px; }
.bs-item.on { border-color: var(--lime); background: rgba(166,255,0,.06); }
.bs-item > span { display: grid; gap: 3px; min-width: 0; }
.bs-item b { font-size: 14px; }
.bs-item i { font-size: 12px; color: var(--muted); font-style: normal; }
.bs-cta { margin-top: 18px; }
.bs-read { background: #0d0d0d; padding: 14px; font-size: 15px; line-height: 1.6; max-height: 34dvh; overflow-y: auto; margin-top: 8px; }

/* montage : carré au dégradé animé (mesh) */
.mt-box { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 6px; }
.mt-sq { position: relative; width: min(62vw, 260px); aspect-ratio: 1; margin: 6px auto 8px; overflow: hidden; }
.mesh { position: absolute; inset: 0; background: #0a0c0a; overflow: hidden; }
.mesh i { position: absolute; width: 75%; height: 75%; border-radius: 50%; filter: blur(28px); opacity: .9; animation: blob 7s ease-in-out infinite alternate; }
.mesh i:nth-child(1) { background: #a6ff00; left: -15%; top: -15%; }
.mesh i:nth-child(2) { background: #2fd27a; right: -20%; top: 5%; animation-duration: 9s; animation-delay: -2s; }
.mesh i:nth-child(3) { background: #f2ffbd; left: 10%; bottom: -25%; animation-duration: 8s; animation-delay: -4s; opacity: .7; }
.mesh i:nth-child(4) { background: #1d6b00; right: -10%; bottom: -10%; animation-duration: 11s; animation-delay: -1s; }
.mesh.mini i { filter: blur(8px); }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(22%, 14%) scale(1.15); } 66% { transform: translate(-12%, 22%) scale(.9); } 100% { transform: translate(14%, -16%) scale(1.1); } }
.mt-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; color: #0d0d0d; }
.mt-in b { font-size: clamp(30px, 11vw, 44px); font-weight: 700; letter-spacing: -1px; }
.mt-in span { font-size: 13px; font-weight: 600; }
.mt-sq.done .mesh i { animation-play-state: paused; }
.mt-actions { display: flex; gap: 10px; margin-top: 6px; }
.mt-actions .btn { flex: 1; }
.mt-actions .btn + .btn { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .mesh i { animation: none; } }
@media (max-width: 359px) { .mt-actions { grid-template-columns: 1fr; } .ed-row { padding: 0 14px; } .ed-row-l { gap: 12px; } }

/* précisions (comme le logiciel : cartes avec le passage, la consigne et la vignette inclinée) */
.prec-list { display: grid; gap: 10px; margin-bottom: 12px; }
.prec { position: relative; background: rgba(255,255,255,.05); min-height: 64px; padding: 12px 96px 12px 14px; overflow: hidden; cursor: pointer; }
.prec-q { font-weight: 700; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prec-n { font: italic 12px Inter, sans-serif; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.85); }
.prec .slant { position: absolute; right: 34px; top: 8px; width: 44px; height: 78px; object-fit: cover; border-radius: 5px; transform: rotate(7.46deg); border: 1px solid rgba(255,255,255,.18); }
.prec-del { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; background: none; border: 0; color: var(--muted); font-size: 12px; }
.prec-add { display: flex; align-items: center; gap: 10px; width: 100%; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.2); color: #fff; padding: 14px; font-size: 13px; }
.plus-c { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.phr { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; }
.phr::-webkit-scrollbar { display: none; }
.phr-c { flex: none; max-width: 240px; background: #1c1f1c; border: 1px solid transparent; color: #fff; font-size: 12px; padding: 8px 10px; text-align: left; white-space: normal; line-height: 1.35; }
.phr-c.on { border-color: var(--lime); }
.p-note { min-height: 84px; }
.how-mini { width: 34px; height: 52px; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; }
.how-mini i { display: block; background: var(--lime); }
.how-mini.inset i { width: 60%; height: 34%; border-radius: 3px; }
.how-mini.full i { width: 100%; height: 100%; opacity: .8; }
.cap-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; }
.cap-check input { width: 18px; height: 18px; accent-color: #a6ff00; flex: none; margin-top: 1px; }

/* ───────── accueil des nouveaux (maquette Figma « 01 · Créez votre vidéo », « 02 · Publiez », « 03 · Obtenez des résultats ! ») ───────── */
#app:has(.ob) { padding: 0; animation: none; }
.ob { position: relative; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: #0d0d0d; padding: calc(24px + var(--safe-t)) 28px calc(28px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
.ob-stage { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.ob-fit { position: relative; width: 337px; height: 354px; }
.ob-art { position: absolute; left: 0; top: 0; width: 337px; height: 354px; transform-origin: 0 0; }
.ob-msg { min-height: 150px; }
.ob-title { font: 600 clamp(30px, 9.2vw, 36px)/1.08 Inter, sans-serif; letter-spacing: -.01em; margin: 0; color: #fff; }
.ob-text { font-size: 14px; line-height: 21.7px; color: #a1a1a1; margin: 18px 0 0; }
.ob-nav { padding-top: 22px; }
.ob-prog { display: flex; align-items: center; gap: 8px; height: 4px; margin-bottom: 35px; }
.ob-prog i { width: 23px; height: 4px; background: #303030; }
.ob-prog i.on { background: #a6ff00; }
.ob-prog span { margin-left: auto; font: 500 10px Inter, sans-serif; color: #a1a1a1; letter-spacing: .04em; }
.ob-btn { width: 100%; height: 56px; background: #fff; color: #0d0d0d; border: 0; display: flex; align-items: center; justify-content: center; gap: 12px; font: 600 15px Inter, sans-serif; }
.ob-btn:disabled { opacity: .6; }
.ob-btn img { display: block; }
.ob-arr { font-size: 22px; font-weight: 500; line-height: 1; }
.ob-foot2 { text-align: center; color: #a1a1a1; font-size: 11px; margin: 10px 0 0; }

/* cartes des illustrations (positions de la maquette, dans un cadre de 337 × 354) */
.ob-card { position: absolute; background: #171717; border: 1px solid #333; overflow: hidden; color: #fff; }
.ob-badge { position: absolute; background: #252525; border: 1px solid #333; display: flex; align-items: center; gap: 10px; font: 500 11px Inter, sans-serif; color: #fff; padding: 0 12px; }
.ob-badge .ok { color: #a6ff00; font: 600 14px Inter, sans-serif; }
.ob1 { left: 17px; top: 14px; width: 303px; height: 321px; }
.ob-t11 { position: absolute; left: 15px; top: 16px; font: 500 11px Inter, sans-serif; }
.ob-dots { position: absolute; left: 265px; top: 12px; color: #a1a1a1; font-size: 14px; }
.ob-compo { position: absolute; left: 62px; top: 50px; width: 177px; height: 189px; background: #a6ff00; color: #0d0d0d; }
.ob-kick { position: absolute; left: 14px; top: 15px; font: 600 9px Inter, sans-serif; }
.ob-compo b { position: absolute; left: 14px; top: 45px; font: 700 27px/27.54px Inter, sans-serif; }
.ob-fmt { position: absolute; left: 14px; top: 155px; width: 54px; height: 20px; background: #0d0d0d; color: #fff; font: 500 9px Inter, sans-serif; padding: 4px 10px; }
.ob-arrow { position: absolute; left: 138px; top: 146px; font-size: 25px; line-height: 31px; }
.ob-tc { position: absolute; top: 252px; font-size: 9px; color: #a1a1a1; }
.ob-tc.l { left: 15px; } .ob-tc.r { left: 254px; }
.ob-clips { position: absolute; left: 15px; top: 276px; display: flex; gap: 4px; }
.ob-clips i { position: relative; width: 35px; height: 25px; background: #324319; }
.ob-clips i.on { background: #698e29; }
.ob-clips s { position: absolute; left: 4px; top: 33px; width: 27px; height: 3px; background: #536c2c; }
.ob-head { position: absolute; left: 163px; top: 271px; width: 2px; height: 47px; background: #a6ff00; }
.ob1b { left: 138px; top: 314px; width: 199px; height: 39px; }
.ob2 { left: 11px; top: 31px; width: 315px; height: 284px; }
.ob-h { position: absolute; left: 17px; top: 20px; font: 600 15px Inter, sans-serif; }
.ob-sub { position: absolute; left: 17px; top: 46px; font-size: 10px; color: #a1a1a1; }
.ob-net { position: relative; left: 15px; width: 283px; height: 47px; background: #212121; display: flex; align-items: center; gap: 11px; padding: 0 10px; font: 500 12px Inter, sans-serif; }
.ob-net:nth-of-type(1) { position: absolute; top: 81px; } .ob-net:nth-of-type(2) { position: absolute; top: 138px; } .ob-net:nth-of-type(3) { position: absolute; top: 195px; }
.ob-mark { width: 30px; height: 30px; background: #353535; display: grid; place-items: center; font: 700 14px Inter, sans-serif; flex: none; }
.ob-mark.lime { background: #a6ff00; color: #0d0d0d; }
.ob-net .ok { margin-left: auto; color: #a6ff00; font: 600 16px Inter, sans-serif; }
.ob-pub { position: absolute; left: 35px; top: 291px; width: 267px; height: 53px; background: #a6ff00; color: #0d0d0d; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.ob-pub .big { font: 600 21px Inter, sans-serif; }
.ob-pub b { display: block; font: 600 14px Inter, sans-serif; }
.ob-pub i { display: block; font: 400 10px Inter, sans-serif; font-style: normal; margin-top: 3px; }
.ob3 { left: 11px; top: 28px; width: 315px; height: 300px; }
.ob-sub2 { position: absolute; left: 19px; top: 19px; font-size: 12px; color: #a1a1a1; }
.ob-num { position: absolute; left: 19px; top: 48px; font: 600 43px/53.75px Inter, sans-serif; }
.ob-grow { position: absolute; left: 212px; top: 67px; width: 83px; height: 27px; background: #263513; color: #a6ff00; font: 600 11px Inter, sans-serif; padding: 7px 10px; }
.ob-grid { position: absolute; left: 19px; width: 275px; height: 1px; background: #2b2b2b; }
.ob-bar { position: absolute; bottom: 40px; width: 19px; background: #3a5020; }
.ob-bar.lime { background: #a6ff00; }
.ob-foot { position: absolute; top: 277px; font-size: 9px; color: #a1a1a1; }
.ob-foot.l { left: 19px; } .ob-foot.r { left: 218px; }
.ob3b { left: 128px; top: 310px; width: 209px; height: 43px; font-size: 10px; }
.ob3b .big2 { font-size: 23px; }

/* flèches et coches dessinées */
.gl { display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ob-grow { display: inline-flex; align-items: center; gap: 4px; }
.ob-arrow { display: grid; place-items: center; width: 30px; height: 30px; }
.ob-arr { display: inline-flex; }
.ob-badge .ok, .ob-net .ok, .ob-pub .big { display: inline-flex; align-items: center; }

/* personnages et produits */
.ed-logo.plus { display: grid; place-items: center; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 18px; }
.item .th { width: 44px; height: 44px; object-fit: cover; flex: none; background: var(--s3); display: block; }
.char-prev { background: #0d0d0d; display: grid; place-items: center; padding: 10px; }
.char-prev img { max-width: 100%; max-height: 42dvh; display: block; }
.ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ph-pick { aspect-ratio: 1; background: #1c1f1c center / cover no-repeat; border: 1px dashed rgba(255,255,255,.25); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; padding: 10px; gap: 3px; }
.ph-pick b { font-size: 12px; } .ph-pick i { font-size: 11px; color: var(--muted); font-style: normal; }
.ph-pick.has { border-style: solid; border-color: var(--lime); }
.ph-pick.has b, .ph-pick.has i { background: rgba(0,0,0,.6); padding: 2px 4px; align-self: flex-start; color: #fff; }
