/* ==========================================================================
   SURPRIA — Event editor intuitive layer
   Loaded after event-form.css / event-edit.css / ux-polish.css
   Goal: improve hierarchy and usability without changing application logic.
   ========================================================================== */

.event-editor-page {
    --event-ui-bg: #fffaf2;
    --event-ui-surface: #ffffff;
    --event-ui-surface-soft: #faf6ef;
    --event-ui-text: #171821;
    --event-ui-muted: #68635c;
    --event-ui-border: rgba(21, 21, 21, .09);
    --event-ui-border-strong: rgba(21, 21, 21, .18);
    --event-ui-radius: 18px;
    --event-ui-radius-sm: 12px;
    --event-ui-shadow: 0 12px 35px rgba(22, 24, 35, .07);
    --event-ui-shadow-hover: 0 16px 42px rgba(22, 24, 35, .11);
    --event-ui-focus: 0 0 0 4px rgba(244, 165, 28, .16);
    --event-ui-accent: #f4a51c;
    --event-ui-accent-soft: #fff3d8;
    --event-ui-success: #16875b;
    --event-ui-danger: #c73a46;
}

.event-editor-page .dashboard-main {
    background:
        radial-gradient(circle at 10% 0%, rgba(244, 165, 28, .065), transparent 28rem),
        var(--event-ui-bg);
    min-height: calc(100dvh - 70px);
}

/* --------------------------------------------------------------------------
   Page intro: shorter, clearer and visually connected to the form
   -------------------------------------------------------------------------- */

.event-editor-page .event-create-container {
    width: min(100%, 1440px);
    margin-inline: auto;
    padding-bottom: 56px;
}

.event-editor-page .event-create-header {
    max-width: 760px;
    margin: 0 0 18px;
}

.event-editor-page .event-create-header h1 {
    max-width: 700px;
    margin-bottom: 10px;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.event-editor-page .event-create-header > p {
    max-width: 650px;
    color: var(--event-ui-muted);
    line-height: 1.65;
    text-wrap: pretty;
}

.event-editor-page .event-back {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-bottom: 18px;
    padding: 0 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.event-editor-page .event-back:hover {
    background: rgba(255,255,255,.78);
    transform: translateX(-2px);
}

.event-editor-page .event-form-notice {
    border-radius: 12px;
    border: 1px solid var(--event-ui-border);
    background: rgba(255,255,255,.78);
    box-shadow: none;
}

.event-editor-page .event-create-draft-notice,
.event-editor-page .event-edit-draft-notice {
    color: var(--event-ui-success);
    border-color: rgba(22, 135, 91, .18);
    background: rgba(22, 135, 91, .055);
}

.event-editor-page .event-edit-save-notice {
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Main two-column editor
   -------------------------------------------------------------------------- */

.event-editor-page .event-editor-layout {
    align-items: start;
    gap: clamp(24px, 3vw, 44px);
}

.event-editor-page .event-editor-form {
    min-width: 0;
}

.event-editor-page .event-form-section {
    position: relative;
    margin-bottom: 22px;
    padding: clamp(22px, 3vw, 34px);
    overflow: visible;
    border: 1px solid var(--event-ui-border);
    border-radius: var(--event-ui-radius);
    background: var(--event-ui-surface);
    box-shadow: 0 5px 20px rgba(22, 24, 35, .035);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.event-editor-page .event-form-section:hover {
    border-color: var(--event-ui-border-strong);
    box-shadow: var(--event-ui-shadow);
}

.event-editor-page .event-section-number {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 30px;
    margin: 0 0 14px;
    border-radius: 999px;
    background: var(--event-ui-accent-soft);
    color: var(--event-ui-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.event-editor-page .event-section-heading {
    margin-bottom: 22px;
}

.event-editor-page .event-section-heading h2 {
    margin-bottom: 7px;
    color: var(--event-ui-text);
    letter-spacing: -.025em;
    text-wrap: balance;
}

.event-editor-page .event-section-heading p {
    max-width: 660px;
    margin: 0;
    color: var(--event-ui-muted);
    line-height: 1.58;
}

.event-editor-page .event-section-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--event-ui-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* A subtle vertical timeline makes the four-step flow obvious on desktop. */
@media (min-width: 901px) {
    .event-editor-page .event-editor-form {
        position: relative;
    }

    .event-editor-page .event-editor-form::before {
        content: "";
        position: absolute;
        z-index: 0;
        top: 38px;
        bottom: 94px;
        left: -18px;
        width: 2px;
        border-radius: 2px;
        background: linear-gradient(
            to bottom,
            rgba(244, 165, 28, .34),
            rgba(244, 165, 28, .065)
        );
    }

    .event-editor-page .event-form-section {
        z-index: 1;
    }
}

/* --------------------------------------------------------------------------
   Event type cards: clearly selectable
   -------------------------------------------------------------------------- */

.event-editor-page .event-type-grid {
    gap: 12px;
}

.event-editor-page .event-type-card {
    cursor: pointer;
}

.event-editor-page .event-type-card-inner {
    min-height: 92px;
    padding: 16px 14px;
    border: 1.5px solid var(--event-ui-border);
    border-radius: 14px;
    background: var(--event-ui-surface-soft);
    box-shadow: none;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.event-editor-page .event-type-card:hover .event-type-card-inner {
    transform: translateY(-2px);
    border-color: #e7bd69;
    background: #fff;
    box-shadow: 0 10px 24px rgba(30, 24, 16, .08);
}

.event-editor-page .event-type-card input:checked + .event-type-card-inner {
    border-color: var(--event-ui-accent);
    background: var(--event-ui-accent-soft);
    box-shadow: var(--event-ui-focus);
}

.event-editor-page .event-type-card input:focus-visible + .event-type-card-inner {
    outline: 3px solid rgba(244, 165, 28, .28);
    outline-offset: 2px;
}

.event-editor-page .event-type-card-icon {
    transform: scale(.94);
}

.event-editor-page .event-type-check {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--event-ui-accent);
    color: #fff;
    opacity: 0;
    transform: scale(.72);
    transition: opacity .15s ease, transform .15s ease;
}

.event-editor-page .event-type-card input:checked + .event-type-card-inner .event-type-check {
    opacity: 1;
    transform: scale(1);
}

/* --------------------------------------------------------------------------
   Theme picker: stronger imagery, clearer selected state
   -------------------------------------------------------------------------- */

.event-editor-page .theme-selection-grid {
    gap: 14px;
}

.event-editor-page .theme-selection-card {
    cursor: pointer;
}

.event-editor-page .theme-selection-inner {
    position: relative;
    overflow: hidden;
    border: 1.5px solid var(--event-ui-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.event-editor-page .theme-selection-card:hover .theme-selection-inner {
    transform: translateY(-3px);
    border-color: #c5bfdc;
    box-shadow: var(--event-ui-shadow-hover);
}

.event-editor-page .theme-selection-card input:checked + .theme-selection-inner {
    border-color: var(--event-ui-accent);
    box-shadow: var(--event-ui-focus), 0 10px 26px rgba(30, 24, 16, .08);
}

.event-editor-page .theme-selection-card input:focus-visible + .theme-selection-inner {
    outline: 3px solid rgba(244, 165, 28, .28);
    outline-offset: 2px;
}

.event-editor-page .theme-selection-preview {
    background: #f3f3f6;
}

.event-editor-page .theme-selection-preview img {
    transition: transform .35s ease;
}

.event-editor-page .theme-selection-card:hover .theme-selection-preview img {
    transform: scale(1.025);
}

.event-editor-page .theme-selection-content {
    padding-top: 2px;
}

.event-editor-page .theme-selection-content > strong {
    color: var(--event-ui-text);
    font-size: 15px;
}

.event-editor-page .theme-selection-check {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--event-ui-accent);
    color: #fff;
    box-shadow: 0 5px 15px rgba(91, 76, 255, .24);
    opacity: 0;
    transform: scale(.72);
    transition: opacity .15s ease, transform .15s ease;
}

.event-editor-page .theme-selection-card input:checked + .theme-selection-inner .theme-selection-check {
    opacity: 1;
    transform: scale(1);
}

.event-editor-page .premium-badge,
.event-editor-page .free-badge {
    width: fit-content;
    border-radius: 999px;
    font-weight: 750;
}

/* --------------------------------------------------------------------------
   Inputs: visual hierarchy and less "form fatigue"
   -------------------------------------------------------------------------- */

.event-editor-page .event-fields-grid {
    gap: 16px;
}

.event-editor-page .event-field {
    min-width: 0;
}

.event-editor-page .event-field > label,
.event-editor-page .event-media-framing-title {
    color: #343642;
    font-size: 13px;
    font-weight: 750;
}

.event-editor-page .event-field input[type="text"],
.event-editor-page .event-field input[type="datetime-local"],
.event-editor-page .event-field select,
.event-editor-page .event-field textarea {
    min-height: 48px;
    border: 1.5px solid var(--event-ui-border);
    border-radius: 12px;
    background: #fff;
    color: var(--event-ui-text);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.event-editor-page .event-field input:hover,
.event-editor-page .event-field select:hover,
.event-editor-page .event-field textarea:hover {
    border-color: var(--event-ui-border-strong);
}

.event-editor-page .event-field input:focus,
.event-editor-page .event-field select:focus,
.event-editor-page .event-field textarea:focus {
    border-color: var(--event-ui-accent);
    box-shadow: var(--event-ui-focus);
    outline: none;
}

.event-editor-page .event-field-primary {
    padding: 15px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(91,76,255,.06), rgba(91,76,255,.015));
}

.event-editor-page .event-field-primary > label {
    color: var(--event-ui-accent);
}

.event-editor-page .event-field-help {
    margin-top: 7px;
    color: var(--event-ui-muted);
    font-size: 12px;
    line-height: 1.5;
}

.event-editor-page .event-field-secondary {
    max-width: 420px;
}

/* --------------------------------------------------------------------------
   Media upload: make it feel like a clear CTA instead of another field
   -------------------------------------------------------------------------- */

.event-editor-page .event-media-upload {
    min-height: 190px;
    border: 2px dashed #cfd2dc;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(91,76,255,.025), transparent),
        var(--event-ui-surface-soft);
    cursor: pointer;
    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.event-editor-page .event-media-upload:hover {
    transform: translateY(-1px);
    border-color: var(--event-ui-accent);
    background: var(--event-ui-accent-soft);
    box-shadow: var(--event-ui-focus);
}

.event-editor-page .event-media-upload:focus-within {
    border-color: var(--event-ui-accent);
    box-shadow: var(--event-ui-focus);
}

.event-editor-page .event-media-empty {
    gap: 8px;
}

.event-editor-page .event-media-upload-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-inline: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(22,24,35,.08);
    font-size: 26px;
}

.event-editor-page .event-media-empty strong {
    font-size: 16px;
}

.event-editor-page .event-media-empty span {
    color: var(--event-ui-muted);
}

.event-editor-page .event-media-remove,
.event-editor-page .event-media-reset {
    min-height: 42px;
    border-radius: 10px;
}

/* Framing is an advanced control: visually secondary. */
.event-editor-page .event-media-framing {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--event-ui-border);
    border-radius: 14px;
    background: var(--event-ui-surface-soft);
}

.event-editor-page .event-media-fit {
    gap: 8px;
}

.event-editor-page .event-media-fit label span,
.event-editor-page .theme-preview-framing-fit button {
    border-radius: 10px;
}

/* Experience settings are important but secondary to content/theme. */
.event-editor-page .event-experience-section .event-fields-grid > .event-field:not(.event-field-full) {
    padding: 14px;
    border: 1px solid var(--event-ui-border);
    border-radius: 13px;
    background: var(--event-ui-surface-soft);
}

/* --------------------------------------------------------------------------
   Preview: calmer, sticky and clearly secondary
   -------------------------------------------------------------------------- */

.event-editor-page .event-editor-preview-column {
    min-width: 0;
}

@media (min-width: 901px) {
    .event-editor-page .event-editor-preview-column {
        position: sticky;
        top: 88px;
        max-height: calc(100dvh - 108px);
        overflow: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }
}

.event-editor-page .theme-live-preview {
    border: 1px solid var(--event-ui-border);
    border-radius: 20px;
    background: rgba(255,255,255,.9);
    box-shadow: var(--event-ui-shadow);
    backdrop-filter: blur(12px);
}

.event-editor-page .theme-live-preview-header {
    padding-bottom: 12px;
}

.event-editor-page .theme-preview-label {
    color: var(--event-ui-muted);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.event-editor-page #themePreviewName {
    color: var(--event-ui-text);
}

.event-editor-page .theme-preview-player-bar {
    gap: 7px;
    padding: 8px;
    border: 1px solid var(--event-ui-border);
    border-radius: 12px;
    background: var(--event-ui-surface-soft);
}

.event-editor-page .theme-preview-player-control {
    min-height: 38px;
    border-radius: 9px;
    white-space: nowrap;
}

.event-editor-page .theme-preview-player-control.is-primary {
    box-shadow: 0 7px 16px rgba(30,24,16,.12);
}

.event-editor-page .theme-preview-editor-status {
    color: var(--event-ui-muted);
    font-size: 11px;
    font-weight: 700;
}

.event-editor-page .theme-phone {
    margin-inline: auto;
    filter: drop-shadow(0 18px 28px rgba(22,24,35,.13));
}

.event-editor-page .theme-preview-help {
    color: var(--event-ui-muted);
    line-height: 1.5;
}

/* The photo framing panel is useful but should not visually outweigh preview. */
.event-editor-page .theme-preview-framing-panel {
    border: 1px solid var(--event-ui-border);
    border-radius: 14px;
    background: var(--event-ui-surface-soft);
}

/* --------------------------------------------------------------------------
   Alerts / save actions
   -------------------------------------------------------------------------- */

.event-editor-page .form-alert {
    border-radius: 14px;
}

.event-editor-page .form-alert-error {
    border: 1px solid rgba(199, 58, 70, .22);
    background: rgba(199, 58, 70, .055);
}

.event-editor-page .event-form-actions {
    position: sticky;
    z-index: 18;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding: 12px;
    border: 1px solid rgba(228,230,236,.9);
    border-radius: 16px;
    background: rgba(255,255,255,.91);
    box-shadow: 0 12px 35px rgba(22,24,35,.10);
    backdrop-filter: blur(14px);
}

.event-editor-page .event-form-actions .btn {
    min-height: 48px;
    border-radius: 12px;
}

.event-editor-page .event-form-actions .btn-primary {
    min-width: 190px;
    box-shadow: 0 9px 22px rgba(30,24,16,.16);
}

/* --------------------------------------------------------------------------
   Edit-only media and danger zone
   -------------------------------------------------------------------------- */

.event-edit-page .event-current-media {
    overflow: hidden;
    border: 1px solid var(--event-ui-border);
    border-radius: 16px;
    background: var(--event-ui-surface-soft);
}

.event-edit-page .event-current-media-heading {
    padding-bottom: 10px;
}

.event-edit-page .event-edit-danger-zone {
    margin-top: 36px;
    border-radius: 16px;
}

/* --------------------------------------------------------------------------
   Responsive: one clear task at a time
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) and (min-width: 901px) {
    .event-editor-page .event-editor-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 36%);
        gap: 24px;
    }

    .event-editor-page .theme-preview-player-bar {
        flex-wrap: wrap;
    }

    .event-editor-page .theme-preview-editor-status {
        order: -1;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .event-editor-page .event-create-container {
        padding-inline: clamp(14px, 4vw, 22px);
    }

    .event-editor-page .event-form-section {
        margin-bottom: 14px;
        padding: 20px 16px;
        border-radius: 16px;
    }

    .event-editor-page .event-section-number {
        width: 42px;
        height: 28px;
        margin-bottom: 11px;
    }

    .event-editor-page .event-section-heading {
        margin-bottom: 18px;
    }

    .event-editor-page .event-type-grid,
    .event-editor-page .theme-selection-grid {
        gap: 10px;
    }

    .event-editor-page .event-type-card-inner {
        min-height: 76px;
    }

    .event-editor-page .event-editor-preview-column {
        position: static;
    }

    .event-editor-page .theme-live-preview {
        border-radius: 0;
    }

    .event-editor-page .event-form-actions {
        bottom: max(8px, env(safe-area-inset-bottom));
        margin-inline: -4px;
        padding: 9px;
        border-radius: 14px;
    }

    .event-editor-page .event-form-actions .btn {
        min-height: 46px;
    }
}

@media (max-width: 640px) {
    .event-editor-page .event-create-header {
        margin-bottom: 14px;
    }

    .event-editor-page .event-create-header h1 {
        font-size: clamp(28px, 9vw, 36px);
    }

    .event-editor-page .event-create-draft-notice,
    .event-editor-page .event-edit-draft-notice,
    .event-editor-page .event-edit-save-notice {
        font-size: 13px;
    }

    .event-editor-page .event-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-editor-page .theme-selection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-editor-page .theme-selection-content {
        padding-inline: 10px;
    }

    .event-editor-page .theme-selection-content > strong {
        font-size: 13px;
    }

    .event-editor-page .premium-badge,
    .event-editor-page .free-badge {
        font-size: 10px;
    }

    .event-editor-page .event-field-primary {
        padding: 12px;
    }

    .event-editor-page .event-experience-section .event-fields-grid > .event-field:not(.event-field-full) {
        padding: 12px;
    }

    .event-editor-page .event-form-actions {
        display: grid;
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    }

    .event-editor-page .event-form-actions .btn {
        width: 100%;
        min-width: 0;
        padding-inline: 10px;
        font-size: 14px;
    }
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

.event-editor-page :where(
    button,
    a,
    input,
    select,
    textarea,
    .event-type-card,
    .theme-selection-card
):focus-visible {
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .event-editor-page *,
    .event-editor-page *::before,
    .event-editor-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ==========================================================================
   SURPRIA — Mobile Step 4 refinement (2026-08-10 v2)
   Keeps the historical warm palette and turns the last step into a compact,
   action-first experience instead of a large instruction card.
   ========================================================================== */

.event-editor-page .event-wizard-panel-heading span,
.event-editor-page .event-visual-editor-kicker {
    color: #8c5d06;
}

/* The wizard itself must follow the same visual language as the rest of SURPRIA. */
.event-editor-page .event-wizard-progress,
.event-editor-page .event-wizard-actions {
    border-color: rgba(21, 21, 21, .08);
    background: rgba(255, 250, 242, .94);
    box-shadow: 0 12px 32px rgba(30, 24, 16, .08);
}

.event-editor-page .event-wizard-progress button.is-active {
    background: #171717;
    color: #fff;
}

.event-editor-page .event-wizard-progress button.is-active .event-wizard-progress-number {
    background: #f4a51c;
    color: #19130a;
}

.event-editor-page .event-visual-editor-guide {
    border-color: rgba(21, 21, 21, .09);
    background:
        radial-gradient(circle at 100% 0, rgba(244, 165, 28, .09), transparent 35%),
        linear-gradient(145deg, #fff, #fffaf2);
    box-shadow: 0 14px 34px rgba(30, 24, 16, .06);
}

.event-editor-page .event-visual-editor-tips {
    background: rgba(21, 21, 21, .035);
}

.event-editor-page .event-step4-preview-button,
.event-editor-page .event-wizard-submit {
    background: #171717;
    color: #fff;
    box-shadow: 0 10px 24px rgba(21, 21, 21, .16);
}

.event-editor-page .event-step4-preview-button:hover,
.event-editor-page .event-wizard-submit:hover {
    background: #292929;
}

.event-editor-page .event-inline-save-status[data-state="saving"] {
    background: #fff3d8;
    color: #8a5e0b;
}

@media (max-width: 650px) {
    /* Step 4: the title already explains the task; avoid repeating a second
       oversized explanatory panel underneath it. */
    .event-editor-page .event-wizard-panel[data-wizard-step="3"] {
        gap: 12px;
    }

    .event-editor-page .event-wizard-panel[data-wizard-step="3"] .event-wizard-panel-heading {
        padding-bottom: 0;
    }

    .event-editor-page .event-wizard-panel[data-wizard-step="3"] .event-wizard-panel-heading h2 {
        font-size: clamp(1.72rem, 8vw, 2.05rem);
        line-height: 1.04;
    }

    .event-editor-page .event-wizard-panel[data-wizard-step="3"] .event-wizard-panel-heading p {
        margin-top: 7px;
        font-size: .82rem;
        line-height: 1.48;
    }

    .event-editor-page .event-visual-editor-guide {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 18px;
        border-radius: 20px;
        overflow: hidden;
    }

    /* Small phone cue: visual rather than another paragraph. */
    .event-editor-page .event-visual-editor-guide::after {
        content: "";
        position: absolute;
        top: 15px;
        right: 16px;
        width: 34px;
        height: 54px;
        border: 2px solid rgba(21, 21, 21, .14);
        border-radius: 10px;
        background:
            linear-gradient(180deg, rgba(244,165,28,.16), rgba(255,255,255,.5));
        pointer-events: none;
    }

    .event-editor-page .event-visual-editor-guide::before {
        content: "";
        position: absolute;
        z-index: 1;
        top: 19px;
        right: 27px;
        width: 12px;
        height: 2px;
        border-radius: 2px;
        background: rgba(21,21,21,.18);
        pointer-events: none;
    }

    .event-editor-page .event-visual-editor-copy {
        padding-right: 48px;
    }

    .event-editor-page .event-visual-editor-kicker {
        margin-bottom: 5px;
        font-size: .62rem;
        letter-spacing: .09em;
    }

    .event-editor-page .event-visual-editor-copy h3 {
        max-width: 270px;
        font-size: 1.22rem;
        line-height: 1.08;
    }

    .event-editor-page .event-visual-editor-copy p {
        margin-top: 7px;
        max-width: 320px;
        font-size: .76rem;
        line-height: 1.48;
    }

    /* Tips become compact reassurance chips instead of a vertical grey block. */
    .event-editor-page .event-visual-editor-tips {
        display: flex;
        gap: 7px;
        padding: 0;
        overflow-x: auto;
        border-radius: 0;
        background: transparent;
        scrollbar-width: none;
    }

    .event-editor-page .event-visual-editor-tips::-webkit-scrollbar {
        display: none;
    }

    .event-editor-page .event-visual-editor-tips span {
        flex: 0 0 auto;
        max-width: 190px;
        padding: 8px 10px;
        border: 1px solid rgba(21,21,21,.07);
        border-radius: 999px;
        background: #faf6ef;
        color: #5f5a53;
        font-size: .64rem;
        line-height: 1.25;
        font-weight: 750;
    }

    .event-editor-page .event-visual-editor-tips span::before {
        margin-right: 5px;
        color: #287847;
    }

    .event-editor-page .event-step4-preview-button {
        width: 100%;
        min-height: 54px;
        padding-inline: 16px;
        border-radius: 15px;
        font-size: .86rem;
        line-height: 1.22;
    }

    .event-editor-page .event-inline-save-status {
        min-height: 26px;
        justify-self: start;
        padding-inline: 9px;
        border: 1px solid rgba(21,21,21,.06);
        background: #fff;
        font-size: .6rem;
    }

    /* Final navigation: neutral Back, visually dominant Save. */
    .event-editor-page .event-wizard-actions {
        grid-template-columns: .78fr 1.22fr;
        gap: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        margin-inline: -2px;
        padding: 8px;
        border-radius: 16px;
    }

    .event-editor-page .event-wizard-actions .btn {
        min-height: 50px;
        border-radius: 13px;
        font-size: .82rem;
    }

    .event-editor-page .event-wizard-actions .event-wizard-submit {
        grid-column: auto;
        background: #171717;
        color: #fff;
    }

    .event-editor-page .event-wizard-actions .event-wizard-prev {
        background: #fff;
        color: #171717;
        border: 1px solid rgba(21,21,21,.08);
    }
}

@media (max-width: 390px) {
    .event-editor-page .event-visual-editor-guide {
        padding: 16px;
    }

    .event-editor-page .event-visual-editor-copy {
        padding-right: 42px;
    }

    .event-editor-page .event-visual-editor-guide::after {
        right: 13px;
        width: 31px;
        height: 50px;
    }

    .event-editor-page .event-visual-editor-guide::before {
        right: 23px;
    }

    .event-editor-page .event-wizard-actions {
        grid-template-columns: .72fr 1.28fr;
    }
}

/* ========================================================================== 
   SURPRIA — Mobile theme preview V3
   Turn the preview into a dedicated mobile canvas rather than a stacked
   desktop column. Loaded as part of event-intuitive.css.
   ========================================================================== */

@media (max-width: 900px) {
    .event-editor-page .event-editor-preview-column .theme-live-preview.is-mobile-open {
        --preview-mobile-width: 420px;
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: block;
        padding:
            max(18px, env(safe-area-inset-top))
            12px
            max(20px, env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background:
            radial-gradient(circle at 50% -8%, rgba(244,165,28,.10), transparent 30rem),
            linear-gradient(180deg, #fffdf9 0%, #f8f4ed 100%);
        scrollbar-width: none;
    }

    .event-editor-page .event-editor-preview-column .theme-live-preview.is-mobile-open::-webkit-scrollbar {
        display: none;
    }

    /* Header becomes a quiet floating title area. */
    .event-editor-page .theme-live-preview.is-mobile-open .theme-live-preview-header {
        width: min(100%, var(--preview-mobile-width));
        min-height: 72px;
        margin: 0 auto 8px;
        padding: 12px 62px 10px 10px;
        border: 0;
        background: transparent;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-label {
        margin-bottom: 5px;
        color: #736c62;
        font-size: .64rem;
        letter-spacing: .095em;
    }

    .event-editor-page .theme-live-preview.is-mobile-open #themePreviewName {
        font-size: 1.05rem;
        letter-spacing: -.015em;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-badge {
        min-height: 28px;
        padding-inline: 10px;
        border-radius: 999px;
        background: #171717;
        color: #fff;
        font-size: .58rem;
        box-shadow: none;
    }

    /* Close control: less visually aggressive, still easy to hit. */
    .event-editor-page .theme-preview-mobile-close {
        top: max(14px, env(safe-area-inset-top));
        right: 14px;
        z-index: 1035;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(21,21,21,.08);
        background: rgba(255,255,255,.88);
        color: #171717;
        box-shadow: 0 10px 28px rgba(22,24,35,.12);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    /* One compact control dock: status above, 3 actions below. */
    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-player-bar {
        position: relative;
        z-index: 12;
        width: min(100%, var(--preview-mobile-width));
        display: grid;
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr) minmax(0, .9fr);
        gap: 7px;
        margin: 0 auto 14px;
        padding: 8px;
        border: 1px solid rgba(21,21,21,.075);
        border-radius: 18px;
        background: rgba(255,255,255,.82);
        box-shadow: 0 12px 32px rgba(26,24,20,.08);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-editor-status {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 27px;
        padding: 0 8px;
        border: 0;
        background: transparent;
        color: #7a746b;
        font-size: .62rem;
        font-weight: 800;
        text-align: center;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-player-control {
        grid-row: 2;
        width: 100%;
        min-width: 0;
        min-height: 43px;
        padding-inline: 8px;
        border-radius: 12px;
        background: #fff;
        font-size: .63rem;
        line-height: 1.12;
        box-shadow: none;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-player-control.is-primary {
        background: #171717;
        color: #fff;
        box-shadow: 0 8px 18px rgba(21,21,21,.13);
    }

    /* Phone becomes the visual hero. */
    .event-editor-page .theme-live-preview.is-mobile-open .theme-phone {
        width: min(86vw, 350px);
        max-width: 350px;
        margin: 0 auto;
        filter: drop-shadow(0 22px 38px rgba(20,20,20,.16));
        transform: translateZ(0);
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-phone-screen {
        min-height: min(72dvh, 620px);
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-help {
        width: min(100%, 350px);
        margin: 10px auto 0;
        color: #7a746b;
        font-size: .66rem;
        line-height: 1.45;
        text-align: center;
    }

    /* Framing behaves like a mobile bottom sheet. It starts collapsed via JS. */
    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-framing-panel {
        position: sticky;
        z-index: 30;
        bottom: max(8px, env(safe-area-inset-bottom));
        width: min(calc(100% - 8px), var(--preview-mobile-width));
        margin: 16px auto 0;
        border: 1px solid rgba(21,21,21,.08);
        border-radius: 20px;
        background: rgba(255,255,255,.94);
        box-shadow: 0 18px 45px rgba(24,22,19,.15);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-framing-panel::before {
        content: "";
        display: block;
        width: 34px;
        height: 4px;
        margin: 8px auto -2px;
        border-radius: 999px;
        background: rgba(21,21,21,.14);
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-framing-header {
        min-height: 58px;
        padding: 9px 11px 10px 15px;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-framing-header span {
        color: #8c5d06;
        font-size: .56rem;
        letter-spacing: .08em;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-framing-header strong {
        font-size: .75rem;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-framing-collapse {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: #f4f1eb;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-framing-body {
        max-height: 54dvh;
        overflow-y: auto;
        padding: 14px 15px 17px;
        scrollbar-width: thin;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-framing-fit button {
        min-height: 44px;
        border-radius: 13px;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-framing-reset {
        min-height: 43px;
        border-radius: 13px;
    }
}

@media (max-width: 420px) {
    .event-editor-page .theme-live-preview.is-mobile-open {
        padding-inline: 8px;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-live-preview-header {
        padding-left: 8px;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-player-bar {
        gap: 6px;
        padding: 7px;
        border-radius: 16px;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-preview-player-control {
        min-height: 41px;
        padding-inline: 5px;
        font-size: .58rem;
    }

    .event-editor-page .theme-live-preview.is-mobile-open .theme-phone {
        width: min(88vw, 338px);
    }
}


/* --------------------------------------------------------------------------
   Wizard step 1 — one obvious choice, then lightweight details
   -------------------------------------------------------------------------- */
.event-editor-page .event-wizard-panel[data-wizard-step="1"] {
    gap: 20px;
}

.event-editor-page .event-essential-type-section {
    order: 1;
}

.event-editor-page .event-essential-details-section {
    order: 2;
    margin-top: 2px;
    padding-top: 20px;
    border-top: 1px solid var(--event-ui-border);
}

.event-editor-page .event-essential-details-section .event-fields-grid {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    align-items: start;
    gap: 14px;
}

.event-editor-page .event-essential-details-section .event-field-full {
    grid-column: auto;
}

.event-editor-page .event-essential-details-section .event-field-primary {
    padding: 0;
    background: transparent;
}

.event-editor-page .event-essential-details-section .event-field-primary > label {
    color: var(--event-ui-text);
}

.event-editor-page .event-essential-details-section .event-field-secondary {
    max-width: none;
    padding: 0;
}

.event-editor-page .event-essential-details-section select {
    min-height: 46px;
}

@media (max-width: 680px) {
    .event-editor-page .event-essential-details-section .event-fields-grid {
        grid-template-columns: 1fr;
    }

    .event-editor-page .event-essential-details-section {
        padding-top: 16px;
    }
}
/*
 * SURPRIA — Mobile preview reassurance UX
 * 2026-08-10
 *
 * Makes the mobile preview exit explicit and reassuring:
 * - "synchronised" state
 * - primary "finish and return" action
 * - close X remains secondary
 * - visible reminder back in step 4
 */

.theme-preview-mobile-sync-footer {
    display: none;
}

.event-preview-return-status {
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 11px 14px;
    border: 1px solid rgba(26, 26, 26, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.05);
    font-size: 13px;
    font-weight: 700;
    color: #24211e;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease;
}

.event-preview-return-status:not([hidden]) {
    display: flex;
}

.event-preview-return-status.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.event-preview-return-status-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 999px;
    background: #1b1b1b;
    color: #fff;
    font-size: 13px;
}

@media (max-width: 900px) {
    .theme-live-preview.is-mobile-open {
        padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
    }

    .theme-live-preview.is-mobile-open .theme-preview-mobile-close {
        opacity: .72;
        transform: scale(.92);
    }

    .theme-live-preview.is-mobile-open .theme-preview-mobile-close:focus-visible,
    .theme-live-preview.is-mobile-open .theme-preview-mobile-close:hover {
        opacity: 1;
    }

    .theme-live-preview.is-mobile-open .theme-preview-mobile-sync-footer {
        display: grid;
        position: fixed;
        z-index: 1200;
        left: max(10px, env(safe-area-inset-left, 0px));
        right: max(10px, env(safe-area-inset-right, 0px));
        bottom: max(10px, env(safe-area-inset-bottom, 0px));
        gap: 9px;
        padding: 10px;
        border: 1px solid rgba(25, 23, 20, 0.10);
        border-radius: 20px;
        background: rgba(255, 253, 249, 0.96);
        box-shadow:
            0 18px 50px rgba(26, 22, 18, 0.16),
            0 2px 8px rgba(26, 22, 18, 0.05);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .theme-preview-mobile-sync-state {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        padding: 0 4px;
    }

    .theme-preview-mobile-sync-icon {
        display: inline-grid;
        place-items: center;
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        border-radius: 999px;
        background: #1b1b1b;
        color: #fff;
        font-size: 14px;
        font-weight: 900;
    }

    .theme-preview-mobile-sync-state > div {
        min-width: 0;
    }

    .theme-preview-mobile-sync-state strong,
    .theme-preview-mobile-sync-state small {
        display: block;
    }

    .theme-preview-mobile-sync-state strong {
        margin-bottom: 2px;
        color: #1b1b1b;
        font-size: 12px;
        line-height: 1.25;
        font-weight: 900;
    }

    .theme-preview-mobile-sync-state small {
        color: #6d665f;
        font-size: 10px;
        line-height: 1.35;
        font-weight: 600;
    }

    .theme-preview-mobile-finish {
        width: 100%;
        min-height: 48px;
        border: 0;
        border-radius: 14px;
        background: #1b1b1b;
        color: #fff;
        font: inherit;
        font-size: 13px;
        line-height: 1.2;
        font-weight: 900;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(27, 27, 27, 0.14);
    }

    .theme-preview-mobile-finish:active {
        transform: translateY(1px);
    }

    .theme-preview-mobile-finish:focus-visible {
        outline: 3px solid rgba(255, 166, 0, .34);
        outline-offset: 2px;
    }

    .event-preview-return-status {
        margin-top: -4px;
        margin-bottom: 14px;
    }
}

@media (max-width: 420px) {
    .theme-preview-mobile-sync-footer {
        border-radius: 18px;
    }

    .theme-preview-mobile-sync-state small {
        font-size: 9.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .event-preview-return-status,
    .theme-preview-mobile-finish {
        transition: none;
    }
}


/* Smart photo-framing layout */
@media (max-width: 900px) {
.theme-live-preview.is-mobile-open.is-framing-open {
        padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    }

    .theme-live-preview.is-mobile-open .theme-preview-mobile-sync-footer.is-collapsed-for-framing {
        display: none;
    }

    .theme-live-preview.is-mobile-open.is-framing-open .theme-preview-framing-panel {
        position: relative;
        z-index: 20;
        margin-top: 14px;
        margin-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        max-height: none;
        overflow: visible;
    }
}


/* V3 — reassurance message at the top; no ambiguous close X */
@media (max-width: 900px) {
    .theme-live-preview.is-mobile-open {
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .theme-live-preview.is-mobile-open .theme-preview-mobile-sync-footer-top {
        display: grid;
        position: relative;
        z-index: 40;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin: 8px 0 12px;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(26, 22, 18, 0.08);
    }

    /*
     * When photo framing opens we keep the top reassurance area visible:
     * it no longer overlaps the framing controls because it is in normal flow.
     */
    .theme-live-preview.is-mobile-open
    .theme-preview-mobile-sync-footer-top.is-collapsed-for-framing {
        display: grid;
    }

    .theme-live-preview.is-mobile-open.is-framing-open
    .theme-preview-mobile-sync-footer-top {
        display: grid;
    }
}

/* Phase 1 V6 — mobile preview: reassurance at top, finish action after preview */
.theme-preview-mobile-finish-bottom {
    display: none;
}

@media (max-width: 900px) {
    .theme-live-preview.is-mobile-open {
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .theme-live-preview.is-mobile-open .theme-preview-mobile-sync-footer-top {
        padding: 9px 11px;
        margin-bottom: 12px;
    }

    .theme-live-preview.is-mobile-open .theme-preview-mobile-sync-footer-top .theme-preview-mobile-sync-state {
        padding: 0;
    }

    .theme-live-preview.is-mobile-open .theme-preview-mobile-sync-footer-top .theme-preview-mobile-sync-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        font-size: 12px;
    }

    .theme-live-preview.is-mobile-open .theme-preview-mobile-finish-bottom {
        display: block;
        width: 100%;
        margin: 16px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    }

    .theme-live-preview.is-mobile-open .theme-preview-mobile-finish-bottom .theme-preview-mobile-finish {
        min-height: 52px;
    }
}


/* Occasion -> thèmes : révélation progressive après le choix du moment */
.event-occasion-theme-section[hidden]{display:none!important}
.event-occasion-theme-section.is-revealed{
  animation:surpriaThemeReveal .28s ease-out both;
  scroll-margin-top:96px;
}
@keyframes surpriaThemeReveal{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}
@media(prefers-reduced-motion:reduce){
  .event-occasion-theme-section.is-revealed{animation:none}
}
/* SURPRIA — Phase 1 / création rapide
   Couche de polissage volontairement isolée pour pouvoir revenir en arrière facilement. */

.event-create-page .event-create-header { max-width: 760px; margin-inline: auto; text-align: center; }
.event-create-page .event-create-header .event-back { position: absolute; left: 0; }
.event-create-page .event-create-header p { max-width: 620px; margin-inline: auto; }

.event-create-fast-intro {
    max-width: 760px; margin: 0 auto 18px; padding: 14px 16px;
    display: flex; gap: 12px; align-items: center;
    border: 1px solid rgba(124, 92, 255, .16); border-radius: 18px;
    background: rgba(124, 92, 255, .055);
}
.event-create-fast-intro-icon { font-size: 22px; flex: 0 0 auto; }
.event-create-fast-intro strong, .event-create-fast-intro span { display: block; }
.event-create-fast-intro strong { font-size: 14px; margin-bottom: 2px; }
.event-create-fast-intro span { font-size: 13px; line-height: 1.45; opacity: .72; }

/* Le wizard donne déjà le contexte : les anciens titres internes font doublon. */
.event-create-page .event-wizard-panel > .event-form-section > .event-section-number,
.event-create-page .event-wizard-panel > .event-form-section > .event-section-heading { display: none; }

.event-create-page .event-wizard-panel { gap: 16px; }
.event-create-page .event-wizard-panel-heading { margin-bottom: 8px; }
.event-create-page .event-wizard-panel-heading h2 { margin-bottom: 5px; }
.event-create-page .event-wizard-panel-heading p { max-width: 650px; }

/* Occasion : choix immédiat, sans cartes surdimensionnées. */
.event-create-page .event-type-grid { gap: 10px; }
.event-create-page .event-type-card-inner { min-height: 76px; padding: 12px; }
.event-create-page .event-type-card-icon { font-size: 25px; }

/* Thèmes : priorité au visuel et à la sélection, moins de chrome. */
.event-create-page .theme-selection-grid { gap: 12px; }
.event-create-page .theme-selection-card { border-radius: 16px; }
.event-create-page .theme-selection-preview { aspect-ratio: 16 / 10; }

/* Les notices de sauvegarde sont utiles mais ne doivent pas concurrencer le parcours. */
.event-create-page .event-create-draft-notice { max-width: 760px; margin-inline: auto; font-size: 13px; }

/* Personnalisation : titre + média sont les actions essentielles. */
.event-create-page .event-essential-details-section .event-fields-grid { gap: 12px; }
.event-create-page .event-field-primary input { min-height: 52px; font-size: 16px; }
.event-create-page .event-media-upload { min-height: 150px; }

/* Actions plus évidentes : l'utilisateur doit toujours savoir comment avancer. */
.event-create-page .event-wizard-actions { padding-top: 14px; }
.event-create-page .event-wizard-actions .btn-primary,
.event-create-page .event-wizard-submit { min-height: 52px; font-weight: 750; }

@media (max-width: 760px) {
    .event-create-page .event-create-container { padding-inline: 14px; }
    .event-create-page .event-create-header { text-align: left; padding-top: 4px; }
    .event-create-page .event-create-header .event-back { position: static; display: inline-flex; margin-bottom: 18px; }
    .event-create-page .event-create-header h1 { font-size: clamp(28px, 9vw, 38px); line-height: 1.05; }
    .event-create-fast-intro { align-items: flex-start; border-radius: 15px; }
    .event-create-page .event-wizard-progress-copy small { display: none; }
    .event-create-page .event-wizard-progress-copy strong { font-size: 11px; }
    .event-create-page .event-wizard-progress-number { width: 30px; height: 30px; }
    .event-create-page .event-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-create-page .event-type-card-inner { min-height: 68px; }
    .event-create-page .event-wizard-panel-heading p { font-size: 14px; }
}


/* Média visiteur : aperçu réaliste sans demander deux fois le fichier. */
.event-create-page .event-media-upload:has(#reveal_media:disabled) {
    cursor: default;
    pointer-events: none;
    overflow: hidden;
}
.event-create-page .event-media-guest-locked {
    position: relative;
    min-height: 190px;
    padding: 0;
    overflow: hidden;
    border-radius: inherit;
}
.event-create-page .event-media-guest-demo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .42;
    filter: saturate(.75);
}
.event-create-page .event-media-guest-overlay {
    position: relative;
    z-index: 1;
    min-height: 190px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.88));
}
.event-create-page .event-media-guest-overlay strong { margin: 7px 0 5px; font-size: 16px; }
.event-create-page .event-media-guest-overlay span { max-width: 440px; font-size: 13px; line-height: 1.5; opacity: .78; }

/* V5 — Étape 3 recentrée sur Message → Média → Aperçu. */
.event-create-page [data-wizard-step="3"] .event-step3-editor-card {
    padding: 20px;
    border-radius: 18px;
}
.event-create-page [data-wizard-step="3"] .event-step3-editor-heading h3 {
    margin-bottom: 7px;
    font-size: clamp(20px, 2vw, 26px);
}
.event-create-page [data-wizard-step="3"] .event-step3-editor-button {
    min-height: 54px;
    width: 100%;
    margin-top: 14px;
}
.event-create-page [data-wizard-step="3"] .event-final-media-section {
    margin-top: 14px;
}
.event-create-page [data-wizard-step="3"] .event-final-media-section .event-section-heading {
    margin-bottom: 12px;
}
.event-create-page [data-wizard-step="3"] .event-media-preview {
    min-height: 190px;
}
.event-create-page [data-wizard-step="3"] .event-experience-options {
    margin-top: 14px;
    border-radius: 16px;
}
.event-create-page [data-wizard-step="3"] .event-experience-options > summary {
    padding: 15px 16px;
}
.event-create-page .event-wizard-reassurance {
    flex-basis: 100%;
    margin: 2px 0 0;
    text-align: right;
    font-size: 12px;
    opacity: .68;
}
@media (max-width: 760px) {
    .event-create-page [data-wizard-step="3"] .event-step3-editor-card { padding: 16px; }
    .event-create-page [data-wizard-step="3"] .event-step3-editor-button { position: sticky; bottom: 10px; z-index: 4; }
    .event-create-page .event-wizard-reassurance { text-align: center; }
}

/* UX 02 — la personnalisation se fait d'abord dans le rendu réel. */
.event-create-page .event-form.is-visual-editor-step .event-editor-layout {
    grid-template-columns: minmax(300px, .72fr) minmax(500px, 1.28fr);
    gap: 34px;
}
.event-create-page .event-form.is-visual-editor-step .event-editor-preview-column { z-index: 3; }
.event-create-page .event-form.is-visual-editor-step .theme-live-preview {
    box-shadow: 0 18px 55px rgba(25, 20, 45, .13);
}
.event-preview-first-callout {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; margin-bottom: 14px;
    border: 1px solid rgba(108, 92, 231, .18);
    border-radius: 16px; background: rgba(108, 92, 231, .055);
}
.event-preview-first-icon {
    display: grid; place-items: center; flex: 0 0 32px;
    width: 32px; height: 32px; border-radius: 50%;
    background: #fff; font-size: 17px;
}
.event-preview-first-callout strong, .event-preview-first-callout small { display: block; }
.event-preview-first-callout strong { margin-bottom: 3px; font-size: .98rem; }
.event-preview-first-callout small { line-height: 1.45; opacity: .76; }
.event-create-page .event-form.is-visual-editor-step .event-step4-advanced { opacity: .88; }
@media (max-width: 900px) {
    .event-create-page .event-form.is-visual-editor-step .event-editor-layout { grid-template-columns: 1fr; }
    .event-preview-first-callout { margin-top: 4px; }
}


/* ==========================================================================
   SURPRIA — Wizard final (3 étapes)
   1 Occasion → 2 Univers → 3 Personnalisation
   Personnalisation : 1 Média → 2 Textes → 3 Langue → 4 Test
   ========================================================================== */

/* Règle de sécurité : un panneau masqué par le wizard reste masqué. */
.event-create-page .event-wizard-panel[hidden],
.event-editor-page .event-wizard-panel[hidden] {
    display: none !important;
}

/* Timeline réellement basée sur trois étapes. */
.event-create-page .event-wizard-progress.is-surpria-timeline > ol,
.event-editor-page .event-wizard-progress.is-surpria-timeline > ol,
.event-create-page .event-wizard-progress > ol,
.event-editor-page .event-wizard-progress > ol {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (min-width: 901px) {
    .event-create-page .event-wizard-progress.is-surpria-timeline > ol::before,
    .event-editor-page .event-wizard-progress.is-surpria-timeline > ol::before {
        left: 16.6667% !important;
        right: 16.6667% !important;
    }
}

/* Étape 3 : ordre stable. Le flex n'est activé QUE lorsque le panneau est actif. */
.event-create-page .event-wizard-panel[data-wizard-step="3"]:not([hidden]),
.event-editor-page .event-wizard-panel[data-wizard-step="3"]:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
}

.event-create-page [data-wizard-step="3"]:not([hidden]) > .event-wizard-panel-heading,
.event-editor-page [data-wizard-step="3"]:not([hidden]) > .event-wizard-panel-heading {
    order: 0 !important;
}
.event-create-page [data-wizard-step="3"]:not([hidden]) > .event-essential-details-section.is-language-only,
.event-editor-page [data-wizard-step="3"]:not([hidden]) > .event-essential-details-section.is-language-only {
    order: 1 !important;
}
.event-create-page [data-wizard-step="3"]:not([hidden]) > .event-final-media-section,
.event-editor-page [data-wizard-step="3"]:not([hidden]) > .event-final-media-section {
    order: 2 !important;
}
.event-create-page [data-wizard-step="3"]:not([hidden]) > .event-step3-editor-card,
.event-editor-page [data-wizard-step="3"]:not([hidden]) > .event-step3-editor-card {
    order: 3 !important;
}
.event-create-page [data-wizard-step="3"]:not([hidden]) > .event-experience-section,
.event-editor-page [data-wizard-step="3"]:not([hidden]) > .event-experience-section {
    order: 4 !important;
}
.event-create-page [data-wizard-step="3"]:not([hidden]) > .event-step3-test-experience,
.event-editor-page [data-wizard-step="3"]:not([hidden]) > .event-step3-test-experience {
    order: 5 !important;
}

/* 1 · Média */
.event-create-page [data-wizard-step="3"] .event-final-media-section,
.event-editor-page [data-wizard-step="3"] .event-final-media-section {
    margin-top: 10px !important;
}
.event-create-page [data-wizard-step="3"] .event-final-media-section > .event-section-heading,
.event-editor-page [data-wizard-step="3"] .event-final-media-section > .event-section-heading {
    display: block !important;
    margin: 0 0 10px !important;
}
.event-create-page [data-wizard-step="3"] .event-final-media-section > .event-section-heading h2,
.event-create-page [data-wizard-step="3"] .event-final-media-section > .event-section-heading p,
.event-editor-page [data-wizard-step="3"] .event-final-media-section > .event-section-heading h2,
.event-editor-page [data-wizard-step="3"] .event-final-media-section > .event-section-heading p {
    display: none !important;
}
.event-create-page [data-wizard-step="3"] .event-final-media-section .event-section-kicker,
.event-editor-page [data-wizard-step="3"] .event-final-media-section .event-section-kicker {
    display: block !important;
    margin: 0 !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
}

/* 2 · Textes */
.event-create-page [data-wizard-step="3"] .event-step3-editor-card,
.event-editor-page [data-wizard-step="3"] .event-step3-editor-card {
    margin-top: 16px !important;
    padding: 18px 20px !important;
}
.event-create-page [data-wizard-step="3"] .event-preview-first-callout,
.event-create-page [data-wizard-step="3"] .event-step3-mini-preview,
.event-create-page [data-wizard-step="3"] .event-step3-editor-tips,
.event-editor-page [data-wizard-step="3"] .event-preview-first-callout,
.event-editor-page [data-wizard-step="3"] .event-step3-mini-preview,
.event-editor-page [data-wizard-step="3"] .event-step3-editor-tips {
    display: none !important;
}
.event-step3-text-edit-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 14px !important;
    min-height: 42px;
}

/* 3 · Langue */
.event-create-page [data-wizard-step="3"] .event-essential-details-section.is-language-only,
.event-editor-page [data-wizard-step="3"] .event-essential-details-section.is-language-only {
    margin-top: 16px !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}
.event-create-page .event-step3-language-label,
.event-editor-page .event-step3-language-label {
    display: block !important;
    margin: 0 0 10px !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
}

/* Évite les anciens titres de section autour du seul champ langue. */
.event-create-page [data-wizard-step="3"] .event-essential-details-section.is-language-only > .event-section-heading,
.event-editor-page [data-wizard-step="3"] .event-essential-details-section.is-language-only > .event-section-heading {
    display: none !important;
}

/* Options Premium, uniquement quand réellement utiles. */
.event-create-page [data-wizard-step="3"] .event-experience-section,
.event-editor-page [data-wizard-step="3"] .event-experience-section {
    margin-top: 16px !important;
}

/* 4 · Tester : dernier bloc, une seule fois. */
.event-step3-test-experience {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px !important;
    padding: 18px 0 0 !important;
    border-top: 1px solid rgba(15,23,42,.10) !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}
.event-step3-test-copy {
    max-width: 520px;
}
.event-step3-test-copy p {
    margin: 5px 0 0;
    line-height: 1.5;
}
.event-step3-test-kicker {
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

/* Aucune deuxième carte de validation dans la preview. */
.event-step4-preview-intro,
.event-step3-preview-test {
    display: none !important;
}

/* La sauvegarde reste silencieuse pendant l'étape créative. */
.event-form.is-visual-editor-step .theme-preview-mobile-sync-footer,
.event-form.is-visual-editor-step .event-wizard-reassurance {
    display: none !important;
}

@media (max-width: 900px) {
    .event-step3-text-edit-action,
    .event-step3-test-play {
        width: 100%;
    }
    .event-step3-test-experience {
        flex-direction: column;
        align-items: stretch;
    }
}


/* ==========================================================================\n   SURPRIA — Event Create / clean wizard foundation\n   Source unique pour les ajustements spécifiques au parcours de création.\n   ========================================================================== */

.event-wizard-panel[data-wizard-step="3"] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-wizard-panel[data-wizard-step="3"] > .event-wizard-panel-heading {
    margin-bottom: 2px;
}

/* La langue appartient à l'expérience du destinataire : elle est volontairement
   la première décision de l'étape 3 et n'est plus rangée en réglage avancé. */
.event-wizard-panel[data-wizard-step="3"] .event-essential-details-section.is-language-only {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.event-wizard-panel[data-wizard-step="3"] .event-essential-details-section.is-language-only > .event-section-heading,
.event-wizard-panel[data-wizard-step="3"] .event-essential-details-section.is-language-only > .event-section-number {
    display: none !important;
}

.event-wizard-panel[data-wizard-step="3"] .event-essential-details-section.is-language-only .event-fields-grid {
    display: block !important;
}

.event-wizard-panel[data-wizard-step="3"] .event-step3-language-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(145px, 190px);
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid var(--border-soft, #e7e1d8) !important;
    border-radius: 14px !important;
    background: var(--surface, #fff) !important;
}

.event-wizard-panel[data-wizard-step="3"] .event-step3-language-field label {
    margin: 0 !important;
    font-weight: 800;
}

.event-wizard-panel[data-wizard-step="3"] .event-step3-language-field label::before {
    content: "🌐 ";
}

.event-wizard-panel[data-wizard-step="3"] .event-step3-language-field select {
    width: 100%;
    min-height: 40px;
    margin: 0;
}

.event-wizard-panel[data-wizard-step="3"] .event-final-media-section,
.event-wizard-panel[data-wizard-step="3"] .event-step3-editor-card,
.event-wizard-panel[data-wizard-step="3"] .event-experience-section,
.event-wizard-panel[data-wizard-step="3"] .event-step3-test-experience {
    margin-top: 0 !important;
}

/* Le conteneur Expérience ne crée plus une seconde grande carte autour des
   cartes spécifiques (Baby Reveal, Destination Reveal, etc.). */
.event-wizard-panel[data-wizard-step="3"] .event-experience-section.is-premium-experience {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.event-wizard-panel[data-wizard-step="3"] .event-experience-section.is-premium-experience > .event-section-number,
.event-wizard-panel[data-wizard-step="3"] .event-experience-section.is-premium-experience > .event-section-heading {
    display: none !important;
}

@media (max-width: 620px) {
    .event-wizard-panel[data-wizard-step="3"] .event-step3-language-field {
        grid-template-columns: 1fr;
        gap: 7px;
    }
}

/* Ordre final étape 3 : 1 langue → 2 média → 3 textes → options thème → 4 test. */
.event-wizard-panel[data-wizard-step="3"] .event-step3-language-field {
    grid-template-columns: minmax(0, 1fr) minmax(145px, 190px);
}
.event-wizard-panel[data-wizard-step="3"] .event-step3-language-kicker {
    grid-column: 1;
    display: block;
    font-size: .72rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-primary, #f5a000);
}
.event-wizard-panel[data-wizard-step="3"] .event-step3-language-field > label {
    grid-column: 1;
    margin-top: -5px !important;
}
.event-wizard-panel[data-wizard-step="3"] .event-step3-language-field > select {
    grid-column: 2;
    grid-row: 1 / span 2;
}
@media (max-width: 560px) {
    .event-wizard-panel[data-wizard-step="3"] .event-step3-language-field {
        grid-template-columns: 1fr;
    }
    .event-wizard-panel[data-wizard-step="3"] .event-step3-language-field > select {
        grid-column: 1;
        grid-row: auto;
    }
}


/* Étape 3 — ordre structurel définitif : le DOM, et non CSS order, décide. */
.event-create-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow,
.event-editor-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
}
.event-create-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow > *,
.event-editor-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow > * {
    order: initial !important;
}
.event-create-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow .event-final-media-section,
.event-editor-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow .event-final-media-section {
    margin: 0 !important;
}
.event-create-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow .event-step3-editor-card,
.event-editor-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow .event-step3-editor-card {
    margin: 0 !important;
}
.event-create-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow .event-step3-test-experience,
.event-editor-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow .event-step3-test-experience {
    margin-top: 2px !important;
}

/* Étape 3 — le JS impose désormais l'ordre physique. Aucun order CSS requis. */
.event-create-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow,
.event-editor-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}
.event-create-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow > *,
.event-editor-page .event-wizard-panel[data-wizard-step="3"] > .event-step3-flow > * {
    order: 0 !important;
}


/* ============================================================
   SURPRIA — Étape 3 : largeur homogène desktop + mobile
   Langue / Média / Textes / Options / Test utilisent tout le flux.
   ============================================================ */

.event-create-page .event-wizard-panel[data-wizard-step="3"] .event-step3-flow,
.event-editor-page .event-wizard-panel[data-wizard-step="3"] .event-step3-flow {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.event-create-page .event-wizard-panel[data-wizard-step="3"] .event-step3-flow > *,
.event-editor-page .event-wizard-panel[data-wizard-step="3"] .event-step3-flow > * {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.event-create-page .event-wizard-panel[data-wizard-step="3"] .event-step3-editor-card,
.event-editor-page .event-wizard-panel[data-wizard-step="3"] .event-step3-editor-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    align-self: stretch !important;
}

/* Les contenus internes ne doivent pas imposer une largeur au parent. */
.event-create-page .event-wizard-panel[data-wizard-step="3"] .event-step3-editor-card > *,
.event-editor-page .event-wizard-panel[data-wizard-step="3"] .event-step3-editor-card > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .event-create-page .event-wizard-panel[data-wizard-step="3"] .event-step3-flow,
    .event-editor-page .event-wizard-panel[data-wizard-step="3"] .event-step3-flow {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .event-create-page .event-wizard-panel[data-wizard-step="3"] .event-step3-editor-card,
    .event-editor-page .event-wizard-panel[data-wizard-step="3"] .event-step3-editor-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* ============================================================
   SURPRIA — Creation visual 02
   Parcours lisible en 4 temps, sans modifier le moteur.
   ============================================================ */
.event-create-page .event-editor-form,
.event-editor-page .event-editor-form {
    counter-reset: surpria-create-step;
}

.event-create-page .event-form-section,
.event-editor-page .event-form-section {
    position: relative;
    overflow: visible;
    border: 1px solid rgba(34, 27, 20, .08) !important;
    box-shadow: 0 14px 42px rgba(46, 34, 20, .055) !important;
}

.event-create-page .event-section-number,
.event-editor-page .event-section-number {
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: #17130f !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
    box-shadow: none !important;
}

.event-create-page .event-form-section:focus-within .event-section-number,
.event-editor-page .event-form-section:focus-within .event-section-number {
    background: #f4a51c !important;
    color: #17130f !important;
}

.event-create-page .event-section-heading h2,
.event-editor-page .event-section-heading h2 {
    color: #17130f !important;
    letter-spacing: -.035em;
}

.event-create-page .event-section-kicker,
.event-editor-page .event-section-kicker {
    color: #b56d00 !important;
    font-weight: 850 !important;
    letter-spacing: .08em !important;
}

/* Occasion : choix rapides, moins "formulaire". */
.event-create-page .event-type-card-inner,
.event-editor-page .event-type-card-inner {
    min-height: 92px;
    border: 1px solid rgba(34, 27, 20, .09) !important;
    box-shadow: none !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.event-create-page .event-type-card:hover .event-type-card-inner,
.event-editor-page .event-type-card:hover .event-type-card-inner {
    transform: translateY(-2px);
    border-color: rgba(244,165,28,.55) !important;
    box-shadow: 0 10px 28px rgba(46,34,20,.07) !important;
}
.event-create-page .event-type-card input:checked + .event-type-card-inner,
.event-editor-page .event-type-card input:checked + .event-type-card-inner {
    border-color: #f4a51c !important;
    background: #fffaf0 !important;
    box-shadow: 0 0 0 3px rgba(244,165,28,.12) !important;
}

/* Themes : cartes plus visuelles et sélection évidente. */
.event-create-page .theme-selection-card,
.event-editor-page .theme-selection-card {
    border-radius: 20px !important;
}
.event-create-page .theme-selection-inner,
.event-editor-page .theme-selection-inner {
    border-radius: 20px !important;
    overflow: hidden;
    border: 1px solid rgba(34,27,20,.09) !important;
    box-shadow: none !important;
}
.event-create-page .theme-selection-card input:checked + .theme-selection-inner,
.event-editor-page .theme-selection-card input:checked + .theme-selection-inner {
    border-color: #f4a51c !important;
    box-shadow: 0 0 0 3px rgba(244,165,28,.13), 0 14px 32px rgba(46,34,20,.08) !important;
}

/* Contenu : le titre de la surprise est clairement le champ principal. */
.event-create-page .event-field-primary input,
.event-editor-page .event-field-primary input {
    min-height: 58px !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    border-width: 1px !important;
}
.event-create-page .event-field-secondary,
.event-editor-page .event-field-secondary {
    padding-top: 4px;
}

/* Revelation : upload traité comme le point central de l'étape. */
.event-create-page .event-media-upload,
.event-editor-page .event-media-upload {
    border: 1.5px dashed rgba(181,109,0,.34) !important;
    background: #fffdf8 !important;
    border-radius: 20px !important;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.event-create-page .event-media-upload:hover,
.event-editor-page .event-media-upload:hover {
    border-color: #f4a51c !important;
    background: #fff8e9 !important;
}

/* Preview : ressemble à un outil de contrôle, pas à une 5e carte de formulaire. */
.event-create-page .theme-live-preview,
.event-editor-page .theme-live-preview {
    border: 1px solid rgba(34,27,20,.09) !important;
    box-shadow: 0 22px 60px rgba(46,34,20,.10) !important;
}
.event-create-page .theme-preview-label,
.event-editor-page .theme-preview-label {
    color: #b56d00 !important;
    font-weight: 850 !important;
}
.event-create-page .theme-preview-editor-tab.is-active,
.event-editor-page .theme-preview-editor-tab.is-active {
    background: #17130f !important;
    color: #fff !important;
    border-color: #17130f !important;
}

/* Actions finales : CTA principal incontestable. */
.event-create-page .event-form-actions,
.event-editor-page .event-form-actions {
    padding-top: 8px;
    border-top: 1px solid rgba(34,27,20,.08);
}
.event-create-page .event-form-actions .btn-primary,
.event-editor-page .event-form-actions .btn-primary {
    min-height: 54px;
    padding-inline: 24px;
    border-radius: 15px !important;
    box-shadow: 0 10px 24px rgba(244,165,28,.18) !important;
}

@media (min-width: 1024px) {
    .event-create-page .event-editor-form,
    .event-editor-page .event-editor-form {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }
    .event-create-page .event-form-section,
    .event-editor-page .event-form-section {
        padding: 30px !important;
    }
    .event-create-page .event-editor-preview-column,
    .event-editor-page .event-editor-preview-column {
        align-self: start;
    }
}

@media (max-width: 700px) {
    .event-create-page .event-form-section,
    .event-editor-page .event-form-section {
        padding: 20px 16px !important;
        border-radius: 22px !important;
    }
    .event-create-page .event-section-number,
    .event-editor-page .event-section-number {
        width: 38px !important;
        height: 38px !important;
        font-size: 12px !important;
    }
    .event-create-page .event-section-heading h2,
    .event-editor-page .event-section-heading h2 {
        font-size: clamp(23px, 7vw, 30px) !important;
    }
    .event-create-page .event-type-grid,
    .event-editor-page .event-type-grid {
        gap: 10px !important;
    }
    .event-create-page .event-type-card-inner,
    .event-editor-page .event-type-card-inner {
        min-height: 78px;
    }
    .event-create-page .event-form-actions,
    .event-editor-page .event-form-actions {
        gap: 10px;
    }
}
