/* Interface du studio. Sombre, sobre, sans bibliothèque : les polices embarquées servent aussi au rendu. */
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/Inter-Medium.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/Inter-Bold.ttf") format("truetype"); }
@font-face { font-family: "TikTok Sans"; font-weight: 500; font-display: swap; src: url("/fonts/TikTokSans-Medium.ttf") format("truetype"); }
@font-face { font-family: "TikTok Sans"; font-weight: 700; font-display: swap; src: url("/fonts/TikTokSans-Bold.ttf") format("truetype"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/fonts/SpaceGrotesk-Medium.ttf") format("truetype"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/fonts/SpaceGrotesk-Bold.ttf") format("truetype"); }

:root {
  --bg: #0b0c11;
  --surface: #14161d;
  --surface-2: #1b1e27;
  --line: #262a36;
  --text: #f1f3f8;
  --muted: #9097a8;
  --accent: #00e676;
  --accent-ink: #04130b;
  --danger: #ff5a6a;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-x: hidden;
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(1200px 600px at 70% -10%, #171a26 0%, var(--bg) 60%) fixed;
  color: var(--text);
  font: 500 15px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----- en-tête */
.top {
  display: flex; align-items: center; gap: 18px;
  padding: 14px clamp(16px, 3vw, 32px);
}
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.wallet-badge { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(0, 230, 118, 0.4); background: rgba(0, 230, 118, 0.1); color: var(--accent); font-size: 13px; font-weight: 700; }
.demo-flag + .wallet-badge { margin-left: 0; }
.account { position: relative; display: flex; align-items: center; }
.demo-flag + .wallet-badge, .wallet-badge + .account, .demo-flag + .account { margin-left: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #00e676, #38bdf8); color: #04130b; font-weight: 700; text-transform: uppercase; }
.account-menu { position: absolute; right: 0; top: 44px; z-index: 20; width: 250px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.account-menu p { margin: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.account-balance { color: var(--muted); font-size: 13px !important; }
.account-menu .ghost { height: 38px; }
.login { width: min(92vw, 400px); padding: 28px 24px 22px; text-align: center; }
.login form, .login-sent { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.login h3 { margin: 4px 0 0; font-size: 21px; letter-spacing: -0.01em; }
.login p { margin: 0; color: var(--muted); font-size: 14.5px; }
.login .field { text-align: left; margin-top: 6px; }
.login input { height: 48px; font-size: 16px; }
.login-icon, .login-sent svg { align-self: center; }
.login-close { position: absolute; right: 12px; top: 12px; }
.login-error { color: var(--danger) !important; font-size: 13.5px !important; text-align: left; }
.login-fine { font-size: 12px !important; }
.login-sent strong { color: var(--text); overflow-wrap: anywhere; }
.login a.primary { display: grid; place-items: center; text-decoration: none; }
.link-button { border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; padding: 4px; }
.link-button:hover { color: var(--text); }
.secure { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; text-align: left; border-radius: 11px; border: 1px dashed rgba(255, 196, 0, 0.5); background: rgba(255, 196, 0, 0.07); }
.secure strong { color: #ffd666; font-size: 14px; }
.secure span { color: var(--muted); font-size: 13px; }
.hero { max-width: 1240px; margin: 0 auto; padding: 6px clamp(16px, 3vw, 32px) 18px; }
.hero h1 { margin: 0; font-size: clamp(22px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.hero h1 span { background: linear-gradient(90deg, #00e676, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; color: var(--muted); font-size: 13.5px; }
.trust li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.examples button { display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s, transform 0.15s; }
.examples button:hover { border-color: var(--accent); transform: translateY(-2px); }
.examples .logos { display: flex; flex: none; }
.examples img { width: 38px; height: 38px; border-radius: 10px; background: #fff; object-fit: contain; box-shadow: 0 0 0 2px var(--surface); }
.examples img + img { margin-left: -10px; }
.examples span { display: flex; flex-direction: column; min-width: 0; }
.examples small { color: var(--muted); font-size: 12.5px; }
.hero p { margin: 8px 0 0; color: var(--muted); font-size: clamp(14px, 1.3vw, 16px); }
.demo-flag { margin-left: auto; padding: 5px 10px; border-radius: 999px; background: rgba(255, 196, 0, 0.12); color: #ffd666; font-size: 12px; }

/* ----- mise en page : aperçu à gauche, réglages à droite */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(16px, 3vw, 40px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px clamp(16px, 3vw, 32px) 48px;
  align-items: start;
}
.stage {
  position: sticky; top: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  height: min(calc(100dvh - 200px), 920px);
  min-height: 420px;
}
.device {
  position: relative;
  flex: 1 1 auto; min-height: 0;
  display: grid; place-items: center;
  width: 100%;
}
.frame { --ambient: #00e676; position: relative; border-radius: 22px; transition: box-shadow 0.4s; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 110px -30px color-mix(in srgb, var(--ambient) 55%, transparent), var(--shadow); }
#preview { display: block; width: 100%; height: 100%; border-radius: 22px; background: #080613; }

/* Calques posés sur l'aperçu : ils ne font pas partie de la vidéo */
.layer { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; pointer-events: none; }
.box { position: absolute; border: 1.5px dashed transparent; border-radius: 10px; pointer-events: auto; cursor: grab; touch-action: none; transition: border-color 0.15s, background 0.15s; }
.frame:hover .box, .box.is-active { border-color: rgba(255, 255, 255, 0.5); }
.box:hover, .box.is-active { background: rgba(255, 255, 255, 0.06); border-color: #fff; }
.box.is-active { cursor: grabbing; }
.grip { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.15s; }
.frame:hover .grip, .box.is-active .grip { opacity: 1; }
.grip[data-grip="nw"] { left: -8px; top: -8px; cursor: nwse-resize; }
.grip[data-grip="se"] { right: -8px; bottom: -8px; cursor: nwse-resize; }
.guide { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--accent); }

/* Zones recouvertes par l'application du réseau social (indicatif) */
.zone { position: absolute; background: repeating-linear-gradient(135deg, rgba(255, 90, 106, 0.34) 0 7px, rgba(255, 90, 106, 0.16) 7px 14px); }
.zone-top { top: 0; left: 0; right: 0; height: var(--zone-top); display: grid; place-items: center; }
.zone-top span { font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.zone-bottom { bottom: 0; left: 0; right: 0; height: var(--zone-bottom); display: flex; flex-direction: column; justify-content: center; gap: 9%; padding: 0 22% 0 5%; }
.zone-bottom i { display: block; height: 7%; min-height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.75); }
.zone-bottom i:nth-child(1) { width: 38%; }
.zone-bottom i:nth-child(2) { width: 100%; }
.zone-bottom i:nth-child(3) { width: 62%; }
.zone-right { right: 0; bottom: var(--zone-bottom); width: var(--zone-right); height: 38%; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; }
.zone-right b { width: 62%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.8); }

.stage-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.tools-label { align-self: center; color: var(--muted); font-size: 12.5px; margin-right: 2px; }
.transport {
  display: flex; align-items: center; gap: 10px;
  width: min(100%, 520px);
  padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.clock { min-width: 38px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.scrub { flex: 1; }

/* ----- étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; position: sticky; top: 8px; z-index: 4; }
.steps button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); white-space: nowrap; }
.steps b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--text); font-size: 12px; }
.steps button[aria-selected="true"] { background: #2b3040; color: var(--text); font-weight: 700; }
.steps button[aria-selected="true"] b { background: var(--accent); color: var(--accent-ink); }
.step { display: flex; flex-direction: column; gap: 12px; }
.hint { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.compare-row { display: flex; gap: 8px; align-items: center; }
.company-button.is-slim { padding: 8px 12px; border-style: dashed; }
.company-button.is-slim strong { font-size: 14px; font-weight: 500; color: var(--muted); }
.company-button.is-slim img:not([hidden]) + span strong { color: var(--text); font-weight: 700; }

/* ----- cartes de réglages */
.panel { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.grow { flex: 1 1 140px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { color: var(--muted); font-size: 13px; }
.field strong { color: var(--text); }

input[type="text"], input[type="number"], input[type="search"], select {
  width: 100%; height: 42px; padding: 0 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px;
  transition: border-color 0.15s;
}
input:hover, select:hover { border-color: #353a4a; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.money { position: relative; }
.money em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; font-size: 13px; pointer-events: none; }
.money input { padding-right: 78px; font-weight: 700; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 99px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6.5px; border-radius: 50%; background: var(--text); border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 0; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.segmented button { height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); transition: background 0.15s, color 0.15s; }
.segmented button[aria-checked="true"] { background: #2b3040; color: var(--text); font-weight: 700; }
.segmented.small button { height: 32px; padding: 0 12px; font-size: 13px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; white-space: nowrap; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.chip:hover { color: var(--text); border-color: #3a4052; }
.chip.is-on { background: var(--text); border-color: var(--text); color: #0b0c11; font-weight: 700; }

.icon-button { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); }
.icon-button:hover { background: #2b3040; }

.company-button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; }
.company-button:hover { border-color: #3a4052; }
.company-button img, .picker-list img { border-radius: 10px; background: #fff; object-fit: contain; flex: none; }
.company-button span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.company-button strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-button small { color: var(--muted); font-size: 13px; }

.title-row { display: flex; gap: 8px; align-items: center; }

.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.themes button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; }
.themes i { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.themes i::after { content: ""; position: absolute; inset: 55% 14% 18% 14%; border-radius: 99px; background: var(--swatch-curve); transform: rotate(-24deg); }
.themes button[aria-checked="true"] { color: var(--text); }
.themes button[aria-checked="true"] i { border-color: var(--accent); }

.colors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.color { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; font-size: 13px; color: var(--muted); cursor: pointer; }
.color input { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.color input::-webkit-color-swatch-wrapper { padding: 0; }
.color input::-webkit-color-swatch { border: 0; border-radius: 8px; }
.color input::-moz-color-swatch { border: 0; border-radius: 8px; }

.switch { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; flex: none; border-radius: 99px; background: var(--line); position: relative; transition: background 0.15s; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform 0.15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); background: var(--accent-ink); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plans button { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; text-align: left; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 13px; transition: border-color 0.15s, background 0.15s; }
.plans strong { font-size: 16px; }
.plans span { color: var(--accent); font-weight: 700; font-size: 14px; }
.plans small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.plans button[aria-checked="true"] { border-color: var(--accent); background: rgba(0, 230, 118, 0.07); }

.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.offers button { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 10px 12px; text-align: left; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 13px; transition: border-color 0.15s, background 0.15s; }
.offers strong { font-size: 15px; }
.offers span { color: var(--accent); font-weight: 700; font-size: 14px; }
.offers small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.offers em { position: absolute; top: -9px; left: 10px; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.offers em:empty { display: none; }
.offers button[aria-checked="true"] { border-color: var(--accent); background: rgba(0, 230, 118, 0.07); }
.wallet-line { margin: 0; padding: 10px 12px; border-radius: 11px; background: rgba(0, 230, 118, 0.09); color: var(--accent); font-size: 14px; }
.next { align-self: stretch; color: var(--muted); }
.next:hover { color: var(--text); border-color: #3a4052; }
.cta { position: sticky; bottom: 0; padding: 12px 0 14px; background: linear-gradient(to top, var(--bg) 70%, transparent); display: flex; flex-direction: column; gap: 8px; }
.primary { height: 52px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; transition: transform 0.1s, filter 0.15s; }
.primary:hover { filter: brightness(1.08); }
.primary:active { transform: scale(0.985); }
.primary:disabled { opacity: 0.55; cursor: progress; }
.ghost { height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: transparent; }
.cta-note { margin: 0; text-align: center; color: var(--muted); font-size: 13px; min-height: 18px; }
.cta-note.is-error { color: var(--danger); }
.legal { margin: 0; color: #6b7285; font-size: 11.5px; line-height: 1.45; text-align: center; }

/* ----- voile de progression sur l'aperçu */
.overlay { z-index: 3; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 9, 14, 0.72); backdrop-filter: blur(6px); border-radius: 22px; padding: 18px; }
.overlay-card { width: min(100%, 320px); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.overlay-title { margin: 0; font-weight: 700; font-size: 17px; }
.overlay-note { margin: 0; color: var(--muted); font-size: 13px; min-height: 18px; }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width 0.2s; }
.overlay-actions { display: flex; flex-direction: column; gap: 8px; }
.overlay-actions a.primary { display: grid; place-items: center; text-decoration: none; }

/* ----- fenêtres */
dialog { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); padding: 0; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(4, 5, 8, 0.66); backdrop-filter: blur(3px); }
.picker { width: min(94vw, 520px); height: min(86dvh, 680px); }
.picker[open] { display: flex; flex-direction: column; }
.picker-head { display: flex; gap: 8px; padding: 14px 14px 10px; }
.picker-filters { display: flex; gap: 6px; padding: 0 14px 10px; }
.picker-list { list-style: none; margin: 0; padding: 0 8px 10px; overflow-y: auto; flex: 1; }
.picker-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: transparent; text-align: left; }
.picker-list button:hover, .picker-list button:focus-visible { background: var(--surface-2); }
.picker-list span { display: flex; flex-direction: column; min-width: 0; }
.picker-list small { color: var(--muted); font-size: 12.5px; }
.picker-empty { padding: 28px; text-align: center; color: var(--muted); }
.pay { width: min(92vw, 420px); padding: 22px; }
.pay h3 { margin: 0 0 8px; font-size: 18px; }
.pay p { margin: 0 0 10px; color: var(--muted); }
.pay-warning { font-size: 13px; padding: 10px 12px; border-radius: 11px; background: rgba(255, 196, 0, 0.1); color: #ffd666 !important; }
.pay-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.pay-actions .primary { height: 44px; font-size: 15px; }

/* ----- sections sous l'outil */
.info { max-width: 1040px; margin: 0 auto; padding: 34px clamp(16px, 3vw, 32px); }
.info h2 { margin: 0 0 20px; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how li { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.how b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.how strong { font-size: 17px; margin-top: 4px; }
.how span { color: var(--muted); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.pricing article { position: relative; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pricing article.is-featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(0, 230, 118, 0.08), var(--surface) 55%); }
.pricing em { position: absolute; top: -11px; left: 18px; padding: 3px 10px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 12px; font-weight: 700; }
.pricing h3 { margin: 0; font-size: 16px; color: var(--muted); font-weight: 500; }
.price { margin: 6px 0 14px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.pricing ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14.5px; }
.pricing li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.info details { border-bottom: 1px solid var(--line); }
.info summary { padding: 16px 0; cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.info summary::-webkit-details-marker { display: none; }
.info summary::after { content: "+"; color: var(--muted); font-weight: 500; font-size: 20px; line-height: 1; }
.info details[open] summary::after { content: "–"; }
.info details p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }
.foot { max-width: 1040px; margin: 0 auto; padding: 26px clamp(16px, 3vw, 32px) 110px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: #6b7285; font-size: 13px; }

/* ----- petits écrans : aperçu en haut, réglages dessous */
@media (max-width: 860px) {
  /* Les zones collantes (aperçu en haut, bouton en bas) sont exclues des défilements automatiques */
  html { scroll-padding-top: calc(52dvh + 12px); scroll-padding-bottom: 96px; }
  .top { gap: 8px; padding-top: 10px; padding-bottom: 6px; }
  .demo-flag { font-size: 0; padding: 4px 9px; }
  .demo-flag::before { content: "Démo"; font-size: 11px; }
  .wallet-badge { height: 36px; }
  .avatar { width: 38px; height: 38px; }
  .hero { padding-bottom: 8px; }
  .hero p, .trust { display: none; }
  .studio { grid-template-columns: minmax(0, 1fr); padding-bottom: 20px; gap: 12px; }
  .panel, .stage { min-width: 0; }
  /* Aperçu en haut, toujours visible ; ses outils passent en colonne dans la marge de droite */
  .stage { position: sticky; top: 0; z-index: 5; height: 52dvh; min-height: 300px; padding: 6px 0 8px; gap: 6px; background: linear-gradient(to bottom, var(--bg) 94%, transparent); }
  .frame, #preview, .layer, .overlay { border-radius: 14px; }
  .transport { width: 100%; padding: 0 8px; }
  .transport .scrub { height: 36px; }
  #speedButton { display: none; }
  .stage-tools { position: absolute; top: 8px; right: 0; flex-direction: column; align-items: flex-end; gap: 6px; }
  .stage-tools .chips { flex-direction: column; align-items: flex-end; gap: 6px; }
  .stage-tools .chip { background: var(--surface); }
  .stage-tools .chip.is-on { background: var(--text); }
  .tools-label { margin: 0; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
  .steps { position: static; }
  .steps button { gap: 6px; font-size: 14px; }
  /* Au doigt : aucune cible sous 36 px */
  .chip { height: 36px; }
  .segmented.small button { height: 38px; }
  .panel input[type="range"] { height: 36px; }
  .link-button { min-height: 36px; }
  .themes i { border-radius: 10px; }
  /* Formules en lignes : nom à gauche, prix à droite */
  .offers { grid-template-columns: 1fr; gap: 12px; }
  .offers button { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 14px; }
  .offers small { grid-column: 1 / -1; }
  .offers span { font-size: 15px; }
  .how, .pricing, .examples { grid-template-columns: 1fr; }
  .info { padding: 26px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Offres payantes pas encore ouvertes (aucun prestataire de paiement configuré) */
.plans button:disabled { opacity: 0.45; cursor: default; }
.soon-note { display: none; margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 196, 0, 0.1); color: #ffd666; font-size: 14px; }
.payments-off .soon-note { display: block; }

/* Lien discret pour gérer ou résilier son abonnement (la page est tenue par le prestataire de paiement) */
.manage-link { display: block; margin: 8px 0 0; padding: 8px 0; min-height: 36px; background: none; border: 0; color: var(--muted, #9aa3b5); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.manage-link:hover { color: #fff; }
.account-menu #manageSubscription { width: 100%; margin-bottom: 8px; }

/* Très petits écrans (320 à 360 points) : l'en-tête ne doit jamais faire déborder la page. Le nom se
   resserre, puis se tronque s'il manque encore de la place ; les boutons gardent leur taille de doigt. */
.top { min-width: 0; }
.brand { min-width: 0; flex: 0 1 auto; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.brand svg { flex: none; }
@media (max-width: 359px) {
  .top { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .brand { font-size: 15px; gap: 7px; }
  .account .chip { padding-left: 11px; padding-right: 11px; font-size: 13px; }
}

/* Connexion par e-mail pas encore ouverte */
.login-off #loginButton, .login-off #secureWallet { display: none !important; }
