/* Parcours public Témoignages : assistant, consentement, suivi et dégradation sans JavaScript. */
.testimony-submit {
    background: var(--testimony-paper);
}

.testimony-submit__intro {
    padding-right: 42px;
}

.testimony-submit__intro > p:last-of-type,
.testimony-submit__intro li,
.testimony-step-help {
    color: var(--testimony-muted);
    font-size: 16px;
    line-height: 27px;
}

.testimony-submit__intro ul {
    margin-top: 30px;
    padding-left: 20px;
}

.testimony-wizard {
    padding: 38px;
    border: 1px solid var(--testimony-line);
    background: var(--testimony-base);
}

.testimony-wizard__progress {
    display: flex;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}

.testimony-wizard__progress li {
    position: relative;
    flex: 1 1 0;
    color: var(--testimony-muted);
    font-size: 10px;
    line-height: 15px;
    text-align: center;
    text-transform: uppercase;
}

.testimony-wizard__progress li::before {
    position: absolute;
    top: 15px;
    right: 50%;
    left: -50%;
    z-index: 0;
    height: 1px;
    background: var(--testimony-line);
    content: "";
}

.testimony-wizard__progress li:first-child::before {
    display: none;
}

.testimony-wizard__progress span {
    position: relative;
    z-index: 1;
    display: flex;
    width: 31px;
    height: 31px;
    margin: 0 auto 8px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--testimony-line);
    border-radius: 50%;
    color: var(--testimony-muted);
    background: var(--testimony-base);
}

.testimony-wizard__progress li.is-active,
.testimony-wizard__progress li.is-complete {
    color: var(--testimony-accent-deep);
}

.testimony-wizard__progress li.is-active span,
.testimony-wizard__progress li.is-complete span {
    border-color: var(--testimony-accent);
    color: var(--testimony-paper);
    background: var(--testimony-accent-deep);
}

.testimony-wizard__save {
    min-height: 22px;
    margin-bottom: 30px;
    color: var(--testimony-muted);
    font-size: 13px;
    line-height: 20px;
}

.testimony-wizard__resume {
    margin: -20px 0 28px;
    font-size: 13px;
    line-height: 20px;
}

.testimony-wizard__resume a {
    color: var(--testimony-accent-deep);
    font-weight: 700;
    text-decoration: underline;
}

.testimony-wizard__save[data-state="saving"]::before,
.testimony-wizard__save[data-state="unsaved"]::before,
.testimony-wizard__save[data-state="saved"]::before,
.testimony-wizard__save[data-state="error"]::before {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--testimony-muted);
    content: "";
}

.testimony-wizard__save[data-state="saving"]::before,
.testimony-wizard__save[data-state="unsaved"]::before {
    background: var(--testimony-accent-deep);
}

.testimony-wizard__save[data-state="saved"]::before {
    background: #2f6a45;
}

.testimony-wizard__save[data-state="error"]::before,
.testimony-field-error:not(:empty)::before {
    background: #8d2f2a;
}

.testimony-wizard fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}

.testimony-wizard fieldset[hidden] {
    display: none;
}

.testimony-wizard legend {
    width: 100%;
    margin-bottom: 26px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 38px;
}

.testimony-wizard label {
    display: block;
    margin-bottom: 8px;
    color: var(--testimony-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
}

.testimony-wizard input,
.testimony-wizard select,
.testimony-wizard textarea,
.testimony-status textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #aaa394;
    border-radius: 0;
    color: var(--testimony-ink);
    background: #fffdf8;
    font-size: 16px;
    line-height: 24px;
}

.testimony-wizard textarea,
.testimony-status textarea {
    min-height: 130px;
    resize: vertical;
}

.testimony-wizard input:focus,
.testimony-wizard select:focus,
.testimony-wizard textarea:focus,
.testimony-status textarea:focus {
    border-color: var(--testimony-accent-deep);
    outline: 2px solid var(--testimony-accent-deep);
    outline-offset: 2px;
}

.testimony-wizard [aria-invalid="true"] {
    border-color: #8d2f2a;
}

.testimony-field > small,
.testimony-upload small,
.testimony-noscript {
    display: block;
    margin-top: 7px;
    color: var(--testimony-muted);
    font-size: 12px;
    line-height: 18px;
}

.testimony-field-error {
    min-height: 18px;
    color: #7c2723 !important;
    font-weight: 700;
}

.testimony-wizard__notice,
.testimony-consent-text,
.testimony-form-alert {
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid var(--testimony-line);
    color: var(--testimony-muted);
    background: var(--testimony-paper);
    font-size: 14px;
    line-height: 23px;
}

.testimony-wizard__notice h3 {
    margin-bottom: 12px;
    color: var(--testimony-ink);
    font-size: 20px;
}

.testimony-consent-text {
    max-height: 320px;
    overflow-y: auto;
}

.testimony-consent-list {
    margin-top: 26px;
}

.testimony-consent-list > div {
    padding: 14px 0;
    border-top: 1px solid var(--testimony-line);
}

.testimony-consent {
    display: flex !important;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 0 !important;
}

.testimony-consent input {
    flex: 0 0 20px;
    width: 20px;
    min-height: 20px;
    margin-top: 2px;
    padding: 0;
}

.testimony-consent span {
    font-size: 13px;
    font-weight: 500;
    line-height: 21px;
}

.testimony-wizard__review {
    margin-bottom: 24px;
    background: var(--testimony-paper);
}

.testimony-wizard__review section {
    padding: 22px;
    border-top: 1px solid var(--testimony-line);
}

.testimony-wizard__review h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.testimony-wizard__review dl,
.testimony-status dl {
    margin: 0;
}

.testimony-wizard__review dl > div,
.testimony-status dl > div {
    display: flex;
    gap: 18px;
    padding: 8px 0;
}

.testimony-wizard__review dt,
.testimony-status dt {
    flex: 0 0 150px;
    color: var(--testimony-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.testimony-wizard__review dd,
.testimony-status dd {
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.testimony-wizard__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 34px;
}

.testimony-wizard__actions .is-loading::after {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 9px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    vertical-align: -2px;
    animation: testimony-submission-spinner 800ms linear infinite;
}

.testimony-wizard__confirmation {
    padding: 34px;
    border: 1px solid var(--testimony-line);
    background: var(--testimony-paper);
}

.testimony-wizard__confirmation h3 {
    font-size: 30px;
}

.testimony-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
}

.testimony-status-page {
    min-height: 720px;
    color: var(--testimony-ink);
    background: var(--testimony-base);
}

.testimony-status {
    padding: 150px 0 100px;
}

.testimony-status h1 {
    max-width: 760px;
    margin-bottom: 32px;
    font-size: 54px;
    line-height: 58px;
}

.testimony-status__panel,
.testimony-status__action,
.testimony-status__withdraw {
    margin-bottom: 24px;
    padding: 26px;
    border: 1px solid var(--testimony-line);
    background: var(--testimony-paper);
}

.testimony-status__withdraw label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.testimony-status__withdraw .button {
    margin-top: 14px;
}

@keyframes testimony-submission-spinner {
    to { transform: rotate(360deg); }
}

@media (max-width: 991px) {
    .testimony-submit__intro {
        margin-bottom: 30px;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .testimony-wizard {
        padding: 25px;
    }

    .testimony-wizard__progress li {
        font-size: 0;
    }

    .testimony-wizard__progress li span {
        font-size: 10px;
    }

    .testimony-wizard__actions {
        flex-direction: column-reverse;
    }

    .testimony-wizard__actions .button {
        width: 100%;
    }

    .testimony-wizard__review dl > div,
    .testimony-status dl > div {
        flex-direction: column;
        gap: 3px;
    }

    .testimony-wizard__review dt,
    .testimony-status dt {
        flex-basis: auto;
    }

    .testimony-status {
        padding: 110px 0 70px;
    }

    .testimony-status h1 {
        font-size: 40px;
        line-height: 44px;
    }
}

@media (max-width: 479px) {
    .testimony-wizard {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimony-wizard__actions .is-loading::after {
        animation-duration: 1ms;
    }
}
