/* STV1000 PWA - publier.css (mode wizard) */
#stv-pwa-app {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 18px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a0f08;
}

.stv-screen {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

/* === LOGO === */
.stv-logo {
    text-align: center;
    margin: 30px 0 40px;
}
.stv-logo-name {
    display: block;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #1a0f08;
}
.stv-logo-sub {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c98a3a;
    margin-top: 6px;
}

/* === TEXTES === */
.stv-text {
    text-align: center;
    font-size: 16px;
    color: #5a4a38;
    margin: 4px 0;
}
.stv-text-small {
    text-align: center;
    font-size: 13px;
    color: #8a7860;
    margin: 0;
}
.stv-step {
    text-align: center;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c98a3a;
    margin: 0 0 6px;
}

/* === FORM === */
.stv-input, .stv-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid #d4cabc;
    border-radius: 8px;
    background: #fff;
    font-size: 17px;
    font-family: inherit;
    color: #1a0f08;
    -webkit-appearance: none;
}
.stv-input:focus, .stv-textarea:focus {
    outline: none;
    border-color: #c98a3a;
    box-shadow: 0 0 0 3px rgba(201, 138, 58, 0.2);
}
.stv-textarea {
    resize: vertical;
    min-height: 130px;
}

/* === BOUTONS === */
.stv-btn {
    display: block;
    width: 100%;
    padding: 18px 22px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-appearance: none;
    transition: opacity 0.15s;
    font-family: inherit;
}
.stv-btn:active { opacity: 0.8; }
.stv-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.stv-btn-primary {
    background: #1a0f08;
    color: #fff;
}
.stv-btn-secondary {
    background: #faf6f0;
    color: #1a0f08;
    border: 1px solid #d4cabc;
}
.stv-btn-ghost {
    background: transparent;
    color: #8a7860;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    padding: 12px;
}

/* === BOUTON POSTER (geant en home) === */
.stv-screen-home {
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}
.stv-btn-poster {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: #c1272d;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    box-shadow: 0 12px 30px rgba(193, 39, 45, 0.3);
}
.stv-btn-poster:active {
    transform: scale(0.97);
    box-shadow: 0 6px 15px rgba(193, 39, 45, 0.3);
}

/* === PREVIEW PHOTO === */
.stv-preview {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 8px;
    background: #faf6f0;
    border: 1px solid #d4cabc;
}

.stv-comment-saved {
    background: #faf6f0;
    border-left: 3px solid #c98a3a;
    padding: 10px 14px;
    font-style: italic;
    color: #5a4a38;
    margin: 0;
    font-size: 14px;
    border-radius: 0 6px 6px 0;
}

/* === ERREUR === */
.stv-err {
    background: #fbe9e9;
    color: #8c2222;
    border: 1px solid #e3b8b8;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

/* === SPINNER === */
.stv-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #d4cabc;
    border-top-color: #c98a3a;
    border-radius: 50%;
    margin: 40px auto 20px;
    animation: stv-spin 0.8s linear infinite;
}
@keyframes stv-spin { to { transform: rotate(360deg); } }

/* === SUCCES === */
.stv-check {
    width: 80px;
    height: 80px;
    margin: 30px auto 14px;
    background: #1f6b3a;
    color: #fff;
    border-radius: 50%;
    font-size: 44px;
    line-height: 80px;
    text-align: center;
}
.stv-done {
    text-align: center;
    margin: 0;
    font-size: 26px;
    color: #1a0f08;
}
.stv-link {
    display: block;
    text-align: center;
    color: #c98a3a;
    font-size: 14px;
    margin: 6px 0 14px;
}

/* === Plein ecran installe (PWA standalone) === */
@media (display-mode: standalone) {
    body { background: #faf6f0; margin: 0; }
    #stv-pwa-app { padding-top: 40px; }
}
