/* Studio + boutique démo — complète elise.css (charte Élise) */
:root { --card: #fff; --line: rgba(64, 96, 112, 0.16); }
body.locked > :not(#gate) { display: none !important; }
.gate { position: fixed; inset: 0; display: grid; place-items: center; background: var(--cream, #F4EDE6); z-index: 50; padding: 1.5rem; }
.gate.ok { display: none; }
.gate-box { width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 2rem; box-shadow: 0 20px 60px rgba(45, 74, 86, 0.14); display: grid; gap: 0.8rem; }
.gate-title { font-family: Fraunces, serif; font-weight: 560; font-size: 2rem; line-height: 1.05; margin: 0; }
.gate-box input { border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 1rem; font: inherit; font-size: 1.05rem; }
.gate-err { display: none; color: #851E28; margin: 0; } .gate-err.show { display: block; }

.demo-bar { background: #2d4a56; color: #fff; text-align: center; font-size: 0.82rem; padding: 0.45rem 1rem; letter-spacing: 0.02em; }
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand img { height: 34px; width: auto; }
.brand span { font-family: Fraunces, serif; font-weight: 560; font-size: 1.15rem; line-height: 1.05; display: grid; }
.brand small { font-family: Outfit, sans-serif; font-weight: 420; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #AE795B; }
.top-nav { display: flex; gap: 0.2rem; }
.top-nav a { text-decoration: none; color: inherit; padding: 0.45rem 0.8rem; border-radius: 999px; font-size: 0.95rem; }
.top-nav a.on { background: #F4EDE6; color: #851E28; font-weight: 600; }

.shop, .studio { padding: 2.2rem 0 4rem; }
.shop section, .studio section { padding: 0; margin: 0; }
.howto { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; display: grid; gap: 0.6rem; }
.howto h2 { font-family: Fraunces, serif; font-weight: 560; font-size: 1.3rem; margin: 0; }
.howto ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; font-size: 0.95rem; }
.howto li b { color: #851E28; }
.shop-hero { max-width: 720px; margin-bottom: 2rem; }
.shop-hero h1, .studio h1 { font-family: Fraunces, serif; font-weight: 560; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.05; margin: 0.3rem 0 0.6rem; }
.shop-hero em, .studio em, .gate-title em { font-style: italic; color: #851E28; }
.products { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; display: grid; gap: 0.6rem; }
.product-head { display: flex; justify-content: space-between; align-items: center; color: #406070; font-size: 0.85rem; }
.product h2 { font-family: Fraunces, serif; font-weight: 560; font-size: 1.45rem; line-height: 1.1; margin: 0; }
.product .subtitle { color: #851E28; margin: 0; font-weight: 500; }
.product .desc { margin: 0; color: #3b3b3b; font-size: 0.97rem; }
.chapters { list-style: none; padding: 0; margin: 0.2rem 0; display: grid; gap: 0.25rem; font-size: 0.9rem; }
.chapters li span { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.78rem; color: #AE795B; margin-right: 0.5rem; }
.chip { display: inline-block; background: #F4EDE6; color: #406070; border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.78rem; margin: 0 0.3rem 0.3rem 0; }
.player { width: 100%; margin-top: 0.3rem; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; }
.buy .price { font-family: Fraunces, serif; font-size: 1.6rem; font-weight: 560; }
.buy-note, .hint, .muted { color: #6b6b6b; font-size: 0.82rem; margin: 0; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: 20px; padding: 2rem; }
.empty h2 { font-family: Fraunces, serif; margin: 0 0 0.4rem; }

.tabs { display: flex; gap: 0.4rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 0.7rem 0.9rem; font: inherit; font-size: 1rem; cursor: pointer; color: #555; }
.tab.on { color: #851E28; border-bottom-color: #851E28; font-weight: 600; }
.panel { display: none; } .panel.on { display: block; }
.studio .split { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.hidden { display: none !important; }
.drop { display: grid; gap: 0.9rem; margin-top: 1.2rem; }
.dropzone { display: grid; gap: 0.2rem; text-align: center; padding: 2rem 1rem; border: 2px dashed #AE795B; border-radius: 18px; background: #fff; cursor: pointer; }
.dropzone.over { background: #F4EDE6; }
.dropzone input { display: none; }
.dropzone span { color: #6b6b6b; font-size: 0.85rem; }
.or { text-align: center; color: #6b6b6b; font-size: 0.85rem; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: inherit; }
.progress, .fiche, .published, .result, .history { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; display: grid; gap: 0.8rem; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.8rem; color: #406070; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.steps li { display: grid; gap: 0.1rem; padding-left: 1.4rem; position: relative; font-size: 0.95rem; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #CBA747; }
.steps li.done::before { background: #406070; }
.steps li.now::before { background: #851E28; animation: pulse 1.2s infinite; }
.steps li span { color: #6b6b6b; font-size: 0.82rem; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field select { border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem; font: inherit; background: #fff; }
.meta { display: flex; flex-wrap: wrap; }
.warnings { background: #F4EDE6; border-radius: 12px; padding: 0.8rem 1rem; font-size: 0.85rem; }
.warnings ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.published h2, .result h2 { font-family: Fraunces, serif; margin: 0; }
.funnel-link { font-size: 0.9rem; } .funnel-link a { color: #851E28; }
.chat-form { display: grid; gap: 0.8rem; margin-top: 0.6rem; }
.examples { display: grid; gap: 0.5rem; margin-top: 1.4rem; }
.ex { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.9rem; font: inherit; font-size: 0.9rem; cursor: pointer; color: #333; }
.ex:hover { border-color: #AE795B; }
.result-text { font-size: 0.97rem; line-height: 1.5; }
.history ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.history li { display: grid; gap: 0.15rem; font-size: 0.88rem; border-left: 3px solid #F4EDE6; padding-left: 0.7rem; }
.history time { color: #AE795B; font-size: 0.75rem; }
.history li span { color: #6b6b6b; }
.foot { border-top: 1px solid var(--line); padding: 1.4rem 0; font-size: 0.82rem; color: #6b6b6b; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; }
@media (max-width: 599px) {
  .top-row { flex-wrap: wrap; gap: 0.5rem; }
  .brand span { font-size: 1rem; }
  .brand img { height: 28px; }
  .top-nav { width: 100%; justify-content: flex-start; }
  .top-nav a { padding: 0.35rem 0.6rem; font-size: 0.88rem; }
  .tab { padding: 0.6rem 0.6rem; font-size: 0.92rem; }
}
@media (min-width: 900px) {
  .products { grid-template-columns: 1fr 1fr; }
  .studio .split { grid-template-columns: 1fr 1fr; align-items: start; }
}

.theme-form{display:grid;gap:.9rem;margin-top:1.2rem;background:#fff;border:1px solid var(--line);border-radius:20px;padding:1.4rem}
.theme-form input[type=color]{width:100%;height:44px;border:1px solid var(--line);border-radius:12px;padding:.2rem;background:#fff}
.preview{display:grid;gap:.5rem}
.preview-bar{display:flex;justify-content:space-between;align-items:center;font-size:.85rem;color:#406070}
.preview-bar select{font:inherit;font-size:.85rem;border:1px solid var(--line);border-radius:999px;padding:.3rem .7rem;background:#fff}
#themePreview{width:100%;height:720px;border:1px solid var(--line);border-radius:18px;background:#fff}
.history .links a{color:#851E28;font-size:.85rem}
.result-text a{color:#851E28;word-break:break-all}

#micBtn.rec{background:#851E28;color:#fff;border-color:#851E28;animation:recpulse 1.2s infinite}
@keyframes recpulse{0%,100%{opacity:1}50%{opacity:.6}}
