/* Maison Acquisition — studio « Créer ma vidéo » (page /creer-ma-video) */
.studio-page { background: var(--ink); }
.st { padding: calc(96px + env(safe-area-inset-top, 0px)) 0 120px; min-height: 100vh; }
.st-intro { margin-bottom: 28px; }
.st-h1 { margin: 0; font-size: clamp(34px, 8.4vw, 64px); font-weight: 300; line-height: 1.04; letter-spacing: -.035em; }
.st-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 0; font-size: 15px; color: var(--on-ink-soft); }
.st-free { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(201, 168, 76, .5); border-radius: 999px; color: var(--gold); font-weight: 500; }
.st-free::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 168, 76, .18); }
.st-then s, .st-price s, .st-bar s { color: var(--on-ink-mute); font-weight: 300; }
.st-then b { color: var(--on-ink); font-weight: 500; }

.st-grid { display: grid; gap: 28px; }

/* Aperçu */
.st-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.st-frame { position: relative; width: min(100%, 300px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line-ink); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); transition: aspect-ratio .5s var(--ease), width .5s var(--ease); }
.st-frame[data-ratio="1:1"] { aspect-ratio: 1; width: min(100%, 340px); }
.st-frame[data-ratio="16:9"] { aspect-ratio: 16 / 9; width: 100%; max-width: 560px; }
.st-frame video { width: 100%; height: 100%; object-fit: cover; }
.st-ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; background: linear-gradient(180deg, transparent 45%, rgba(10, 9, 8, .78)); pointer-events: none; }
.st-ov-hook { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.st-ov-hook:empty { display: none; }
.st-ov-cta { align-self: flex-start; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 600; }
.st-tag { position: absolute; top: 12px; left: 12px; padding: 6px 11px; border-radius: 999px; background: rgba(15, 14, 12, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 500; }
.st-note { margin: 0; font-size: 13px; color: var(--on-ink-mute); text-align: center; max-width: 300px; }

/* Panneau */
.st-panel { min-width: 0; background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 24px; padding: 20px 16px 24px; }
.st-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.st-steps button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 0 0; border-top: 2px solid var(--line-ink); font-size: 13px; color: var(--on-ink-mute); text-align: left; transition: color .3s, border-color .3s; }
.st-steps button b { font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.st-steps button.done { color: var(--on-ink-soft); border-color: rgba(201, 168, 76, .45); }
.st-steps button[aria-current="step"] { color: var(--on-ink); border-color: var(--gold); }
.st-steps button:disabled { cursor: default; }

.st-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 22px; }
.st-step[hidden] { display: none; }
.st-lg { padding: 0; margin: 0 0 2px; font-size: 24px; font-weight: 300; letter-spacing: -.02em; }

/* Styles */
.st-concepts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-c { position: relative; display: flex; flex-direction: column; text-align: left; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-ink); background: var(--ink-3); transition: border-color .3s, transform .3s var(--ease); }
.st-c:hover { transform: translateY(-2px); }
.st-c[aria-checked="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.st-c-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0b0a09; }
.st-c-media img, .st-c-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-c-media.none { display: grid; place-items: center; color: var(--gold); }
.st-c-media.none svg { width: 38px; height: 38px; }
.st-c-txt { padding: 10px 12px 12px; display: grid; gap: 3px; }
.st-c-txt b { font-size: 14px; font-weight: 500; }
.st-c-txt span { font-size: 12px; line-height: 1.4; color: var(--on-ink-mute); }
.st-c[aria-checked="true"]::after { content: ""; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0e0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Champs */
.st-row { display: grid; gap: 18px; }
.st-field { display: grid; gap: 8px; min-width: 0; position: relative; }
.st-lab { font-size: 13.5px; font-weight: 500; color: var(--on-ink-soft); }
.st-lab small { font-weight: 400; color: var(--on-ink-mute); }
.st-lab em { font-style: normal; color: var(--gold); }
.st input:not([type="checkbox"]):not([type="file"]), .st textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-ink); background: var(--ink); color: var(--on-ink); font: 400 16px/1.5 var(--font); transition: border-color .25s; }
.st textarea { resize: vertical; min-height: 96px; }
.st input::placeholder, .st textarea::placeholder { color: rgba(243, 239, 231, .34); }
.st input:focus, .st textarea:focus { outline: none; border-color: var(--gold); }
.st .invalid { border-color: #d9735b !important; }
.st-prompt textarea { min-height: 150px; font-size: 16.5px; border-color: rgba(201, 168, 76, .35); }
.st-count { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--on-ink-mute); pointer-events: none; }

.st-seg { display: flex; gap: 6px; padding: 4px; border-radius: 16px; background: var(--ink); border: 1px solid var(--line-ink); }
.st-seg button { flex: 1; min-width: 0; min-height: 46px; padding: 6px 8px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--on-ink-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; transition: background .25s, color .25s; }
.st-seg button small { font-size: 11px; font-weight: 400; color: var(--on-ink-mute); }
.st-seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.st-seg button[aria-pressed="true"] small { color: var(--soft); }

.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chips button { min-height: 42px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-ink); font-size: 14px; color: var(--on-ink-soft); transition: border-color .25s, background .25s, color .25s; }
.st-chips button:hover { border-color: rgba(243, 239, 231, .35); }
.st-chips button[aria-pressed="true"] { background: rgba(201, 168, 76, .14); border-color: var(--gold); color: var(--on-ink); }

.st-drop { position: relative; display: grid; place-items: center; min-height: 84px; padding: 16px; border: 1px dashed rgba(243, 239, 231, .25); border-radius: 14px; font-size: 14px; color: var(--on-ink-soft); text-align: center; cursor: pointer; transition: border-color .25s, background .25s; }
.st-drop.over, .st-drop:hover { border-color: var(--gold); background: rgba(201, 168, 76, .05); }
.st-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.st-drop u { color: var(--gold); text-underline-offset: 3px; }
.st-files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.st-files li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ink); border: 1px solid var(--line-ink); }
.st-files img { width: 100%; height: 100%; object-fit: contain; }
.st-files button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(15, 14, 12, .85); font-size: 16px; line-height: 1; }

.st-who { max-width: 380px; }
.st-check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--on-ink-soft); cursor: pointer; }
.st-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
.st-check a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.st-check.invalid span { color: #e59a86; }
.st-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }

.st-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; }
.st-nav .btn { min-height: 52px; padding: 0 24px; }

/* Récapitulatif */
.st-recap { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-ink); }
.st-recap div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-ink); font-size: 14px; }
.st-recap dt { color: var(--on-ink-mute); }
.st-recap dd { margin: 0; color: var(--on-ink); overflow-wrap: anywhere; white-space: pre-line; }
.st-price { display: grid; gap: 6px; padding: 18px; border-radius: 16px; background: var(--ink); border: 1px solid rgba(201, 168, 76, .35); }
.st-price-v { margin: 4px 0 0; font-size: 30px; font-weight: 300; letter-spacing: -.02em; }
.st-price-v b { font-weight: 500; color: var(--gold); }
.st-price-n { margin: 0; font-size: 13.5px; color: var(--on-ink-soft); }
.st-err { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(217, 115, 91, .12); color: #f0b3a3; font-size: 14px; }
#go[disabled] { opacity: .6; pointer-events: none; }

/* Après envoi */
.st-done { display: grid; gap: 18px; outline: none; }
.st-done[hidden] { display: none; }
.st-ref { margin: 0; color: var(--on-ink-soft); font-size: 14px; }
.st-ref b { color: var(--on-ink); font-weight: 500; letter-spacing: .04em; }
.st-prog { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.st-prog li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-ink); color: var(--on-ink-mute); font-size: 15px; }
.st-prog li span { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-ink); }
.st-prog li[data-s="ok"] { color: var(--on-ink); }
.st-prog li[data-s="ok"] span { border-color: var(--gold); background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0e0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.st-prog li[data-s="run"] { color: var(--on-ink); }
.st-prog li[data-s="run"] span { border-color: var(--gold); border-top-color: transparent; animation: st-spin 1s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-done-n { margin: 0; color: var(--on-ink-soft); font-size: 14.5px; }
.st-done .btn { justify-self: start; }

/* Barre mobile */
.st-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gr) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gl); background: rgba(15, 14, 12, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-ink); }
.st-bar p { margin: 0; font-size: 15px; }
.st-bar b { color: var(--gold); font-weight: 500; }
.st-bar .btn { min-height: 50px; padding: 0 22px; }
.st-bar[hidden] { display: none; }
@media (max-width: 759px) { .st-step .st-nav .btn-gold { display: none; } .st-step .st-nav { padding-top: 0; } }

@media (min-width: 560px) {
  .st-concepts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .st-panel { padding: 28px 28px 30px; }
  .st-row { grid-template-columns: 1fr 1fr; }
  .st-bar { display: none; }
  .st { padding-bottom: 80px; }
}
@media (min-width: 1040px) {
  .st { padding-top: 124px; }
  .st-intro { margin-bottom: 40px; }
  .st-grid { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 48px; align-items: start; }
  .st-stage { position: sticky; top: 104px; }
  .st-frame { width: 100%; max-width: 340px; }
  .st-frame[data-ratio="1:1"], .st-frame[data-ratio="16:9"] { width: 100%; max-width: 400px; }
  .st-panel { padding: 34px 36px 36px; }
  .st-concepts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .st-frame, .st-c { transition: none; } .st-prog li[data-s="run"] span { animation: none; } }
@media (max-width: 759px) {
  .st-frame { width: min(100%, 210px); border-radius: 18px; }
  .st-frame[data-ratio="1:1"] { width: min(100%, 250px); }
  .st-ov { padding: 12px; gap: 7px; }
  .st-ov-hook { font-size: 15px; }
  .st-ov-cta { font-size: 11px; padding: 6px 10px; }
}
