/* ========================================================================
   THERAOO — ÉTAPE DE PRÉVISUALISATION WP JOB MANAGER
   Préfixe theraoo-preview-step : n'affecte pas les fiches publiées.
   ======================================================================== */
.theraoo-preview-step {
    box-sizing: border-box;
    max-width: 1040px;
    margin: 28px auto 54px;
    padding: clamp(20px, 4vw, 42px);
    border: 1px solid #e2e9f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(16, 52, 80, .06);
    color: #24384b;
}
.theraoo-preview-step * { box-sizing: border-box; }

/* Bloc succès / sauvegarde. */
.theraoo-preview-step__status { display: flex; align-items: flex-start; gap: 18px; }
.theraoo-preview-step__check {
    display: inline-flex; flex: 0 0 54px; align-items: center; justify-content: center;
    height: 54px; border-radius: 50%; background: #e5f5f0; color: #17795e;
    font-size: 29px; font-weight: 700;
}
.theraoo-preview-step__eyebrow {
    margin: 0 0 8px; color: #397b94; font-size: 13px;
    font-weight: 700; letter-spacing: .045em; text-transform: uppercase;
}
.theraoo-preview-step__status h2 {
    margin: 0 0 10px; color: #123556; font-size: clamp(24px, 3vw, 31px); line-height: 1.25;
}
.theraoo-preview-step__status p:last-child { margin: 0; line-height: 1.65; }

/* Identification de la fiche et statut privé. */
.theraoo-preview-step__job {
    margin: 29px 0 22px; padding: 23px 25px;
    border: 1px solid #e4ebf3; border-radius: 11px; background: #f8fafc;
}
.theraoo-preview-step__job-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #667a8b; font-size: 13px; font-weight: 700; }
.theraoo-preview-step__job-meta span { padding: 5px 10px; border-radius: 16px; background: #edf1f5; color: #53677d; font-size: 12px; }
.theraoo-preview-step__job h3 { margin: 10px 0 8px; color: #133d60; font-size: clamp(19px, 2.4vw, 24px); }
.theraoo-preview-step__job p { margin: 0; line-height: 1.6; }

/* Bouton principal : ouverture d'un vrai single Elementor. */
.theraoo-preview-step a.theraoo-preview-step__view {
    display: flex; align-items: center; justify-content: center; gap: 11px;
    min-height: 62px; padding: 13px 22px; border: 1px solid #075e9d;
    border-radius: 9px; background: #0170b9; color: #fff !important;
    font-size: 16px; font-weight: 700; text-align: center; text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}
.theraoo-preview-step a.theraoo-preview-step__view:hover,
.theraoo-preview-step a.theraoo-preview-step__view:focus {
    background: #005c98; color: #fff !important; transform: translateY(-1px);
}
.theraoo-preview-step__external { font-size: 21px; }
.theraoo-preview-step__hint { margin: 10px 0 0; color: #6c7885; font-size: 13px; line-height: 1.6; text-align: center; }
.theraoo-preview-step__warning { color: #9b2e2e; }

/* Boutons conservant les name= attendus par WP Job Manager. */
.theraoo-preview-step__form { margin: 0; }
.theraoo-preview-step__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 27px 0; }
.theraoo-preview-step__form button.theraoo-preview-step__edit {
    padding: 12px 22px; border: 1px solid #bacbda; border-radius: 9px;
    background: #fff; color: #1a567b; font-size: 15px; font-weight: 700; cursor: pointer;
}
.theraoo-preview-step__form button.theraoo-preview-step__edit:hover { border-color: #0170b9; background: #f1f8fc; color: #124b74; }
.theraoo-preview-step__submit-area {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding-top: 25px; border-top: 1px solid #e5edf3;
}
.theraoo-preview-step__submit-area h3 { margin: 0 0 7px; color: #143b5c; font-size: 19px; }
.theraoo-preview-step__submit-area p { max-width: 470px; margin: 0; color: #687989; font-size: 14px; line-height: 1.55; }
.theraoo-preview-step__form button.theraoo-preview-step__submit {
    flex-shrink: 0; padding: 14px 21px; border: 1px solid #127458; border-radius: 9px;
    background: #14795d; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.35;
    cursor: pointer;
}
.theraoo-preview-step__form button.theraoo-preview-step__submit:hover { background: #10674f; color: #fff; }

/* ========================================================================
   Bandeau non publié, inséré dans le vrai template Elementor/Hello.
   ======================================================================== */
.theraoo-private-preview-bar {
    position: sticky; top: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 11px;
    width: 100%; min-height: 48px; padding: 10px 16px;
    border-bottom: 1px solid #c9d7e2; background: #eff6fa;
    color: #1a405b; font-size: 14px; box-shadow: 0 3px 10px rgba(19, 54, 81, .08);
}
.admin-bar .theraoo-private-preview-bar { top: 32px; }
.theraoo-private-preview-bar__dot { width: 9px; height: 9px; border-radius: 50%; background: #0170b9; }
.theraoo-private-preview-bar small { color: #61798a; font-size: 12px; }

/* Responsive de l'étape de prévisualisation et de son bandeau. */
@media (max-width: 767px) {
    .theraoo-preview-step__status { gap: 12px; }
    .theraoo-preview-step__check { flex-basis: 43px; height: 43px; font-size: 24px; }
    .theraoo-preview-step__job { padding: 18px; }
    .theraoo-preview-step__submit-area { align-items: stretch; flex-direction: column; }
    .theraoo-preview-step__form button.theraoo-preview-step__submit,
    .theraoo-preview-step__form button.theraoo-preview-step__edit { width: 100%; }
    .theraoo-preview-step__actions { display: block; }
    .admin-bar .theraoo-private-preview-bar { top: 46px; }
}


/* ========================================================================
   THERAOO — CONFIRMATION APRÈS MODIFICATION D'UNE FICHE « PENDING »
   Déclenchée uniquement après une sauvegarde réussie de edit-job.
   Aucun changement sur le formulaire ni sur la modération native.
   ======================================================================== */
.job-manager-message .theraoo-edit-save-feedback {
    max-width: 1060px;
    padding: 12px 4px 12px 2px;
    color: #233e52;
}
.job-manager-message .theraoo-edit-save-feedback__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.45;
}
.job-manager-message .theraoo-edit-save-feedback__status {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 18px;
    background: #eef2f6;
    color: #455d76;
    font-size: 12px;
    font-weight: 700;
}
.job-manager-message .theraoo-edit-save-feedback p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
}
.job-manager-message .theraoo-edit-save-feedback__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.job-manager-message .theraoo-edit-save-feedback__actions a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    transition: background-color .2s ease;
}
.job-manager-message .theraoo-edit-save-feedback__actions a.theraoo-edit-save-feedback__view {
    border: 1px solid #0170b9;
    background: #0170b9;
    color: #fff;
}
.job-manager-message .theraoo-edit-save-feedback__actions a.theraoo-edit-save-feedback__view:hover,
.job-manager-message .theraoo-edit-save-feedback__actions a.theraoo-edit-save-feedback__view:focus {
    background: #005c98;
    color: #fff;
}
.job-manager-message .theraoo-edit-save-feedback__actions a.theraoo-edit-save-feedback__back {
    border: 1px solid #c0cfdb;
    background: #fff;
    color: #1b5679;
}
.job-manager-message .theraoo-edit-save-feedback__actions a.theraoo-edit-save-feedback__back:hover,
.job-manager-message .theraoo-edit-save-feedback__actions a.theraoo-edit-save-feedback__back:focus {
    background: #f1f7fb;
}
@media (max-width: 640px) {
    .job-manager-message .theraoo-edit-save-feedback__actions { flex-direction: column; }
    .job-manager-message .theraoo-edit-save-feedback__actions a { width: 100%; }
}
