body.th-hub-public-page {
    margin: 0;
    background: #f4f6f8;
    color: #1b2433;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.th-hub-public-page * {
    box-sizing: border-box;
}

body.th-hub-public-page .wp-site-blocks,
body.th-hub-public-page article {
    margin: 0;
    padding: 0;
    max-width: none;
}

.th-public-site-frame {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.th-public-site-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(24px, 5vw, 72px);
    background: #ffffff;
    border-bottom: 1px solid #dde2e8;
}

.th-public-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    color: #172033;
    text-decoration: none;
}

.th-public-brand:hover,
.th-public-brand:focus {
    color: #172033;
    text-decoration: none;
}

.th-public-brand-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.th-public-brand-module {
    padding-left: 10px;
    border-left: 1px solid #cfd5dd;
    color: #3155e7;
    font-size: 14px;
    font-weight: 500;
}

.th-public-site-caption {
    margin: 0;
    color: #687383;
    font-size: 13px;
    font-weight: 400;
}

.th-public-site-content {
    flex: 1;
}

.th-public-shell {
    --th-blue: #3155e7;
    --th-blue-dark: #2543bd;
    --th-ink: #172033;
    --th-muted: #626e7d;
    --th-line: #d9dfe7;
    --th-line-strong: #aeb8c5;
    --th-soft: #eef2f7;
    width: min(calc(100% - 48px), 960px);
    margin: 0 auto;
    padding: 64px 0 88px;
    color: var(--th-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
}

.th-public-shell * {
    box-sizing: border-box;
}

.th-public-header,
.th-public-hero {
    margin: 0 0 34px;
}

.th-public-eyebrow {
    margin: 0 0 12px;
    color: var(--th-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.th-public-shell h1 {
    max-width: 760px;
    margin: 0 0 16px;
    color: var(--th-ink);
    font-family: inherit;
    font-size: clamp(36px, 4.5vw, 50px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.th-public-shell h2 {
    margin: 0 0 22px;
    color: var(--th-ink);
    font-family: inherit;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.th-public-header > p:last-child,
.th-public-lead {
    max-width: 720px;
    margin: 0;
    color: var(--th-muted);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
}

.th-public-card {
    position: relative;
    margin: 0 0 18px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--th-line);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(23, 32, 51, 0.025);
}

.th-public-step {
    position: absolute;
    top: 26px;
    right: 26px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    background: var(--th-soft);
    border-radius: 50%;
    color: var(--th-blue);
    font-size: 13px;
    font-weight: 600;
}

.th-public-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.th-public-form label,
.th-public-form legend {
    color: var(--th-ink);
    font-family: inherit;
    font-weight: 500;
}

.th-public-form label {
    display: block;
    font-size: 15px;
}

.th-public-form legend {
    padding: 0;
    font-size: 16px;
}

.th-public-form input[type="text"],
.th-public-form input[type="email"],
.th-public-form input[type="tel"],
.th-public-form textarea {
    width: 100%;
    margin: 8px 0 0;
    padding: 13px 14px;
    background: #ffffff;
    border: 1px solid var(--th-line-strong);
    border-radius: 6px;
    color: var(--th-ink);
    font: inherit;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: none;
}

.th-public-form input::placeholder,
.th-public-form textarea::placeholder {
    color: #8993a1;
    opacity: 1;
    font-weight: 400;
}

.th-public-form input:focus,
.th-public-form textarea:focus {
    outline: 3px solid rgba(49, 85, 231, 0.13);
    border-color: var(--th-blue);
}

.th-public-form textarea {
    min-height: 210px;
    resize: vertical;
}

.th-public-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.th-public-card > label + label {
    margin-top: 20px;
}

.th-public-optional {
    color: var(--th-muted);
    font-size: 12px;
    font-weight: 400;
}

.th-public-help {
    margin: 7px 0 17px;
    color: var(--th-muted);
    font-size: 14px;
    font-weight: 400;
}

.th-public-components {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.th-public-choice {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 13px 14px;
    background: #ffffff;
    border: 1px solid var(--th-line);
    border-radius: 7px;
    cursor: pointer;
    font-weight: 500 !important;
}

.th-public-choice:hover {
    border-color: #aeb8c5;
}

.th-public-choice:has(input:checked) {
    background: #f3f5ff;
    border-color: var(--th-blue);
}

.th-public-choice input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--th-blue);
}

.th-public-consent label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-weight: 400;
    line-height: 1.55;
}

.th-public-consent input {
    width: 17px;
    height: 17px;
    margin: 4px 0 0;
    accent-color: var(--th-blue);
}

.th-public-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 26px;
}

.th-public-submit p {
    max-width: 590px;
    margin: 0;
    color: var(--th-muted);
    font-size: 13px;
    font-weight: 400;
}

.th-public-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: var(--th-blue);
    border: 1px solid var(--th-blue);
    border-radius: 6px;
    color: #ffffff !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
}

.th-public-button:hover,
.th-public-button:focus {
    background: var(--th-blue-dark);
    border-color: var(--th-blue-dark);
    color: #ffffff;
}

.th-public-alert {
    margin: 0 0 20px;
    padding: 15px 17px;
    background: #fff6f6;
    border: 1px solid #d85a5a;
    border-radius: 7px;
    color: #842626;
}

.th-public-success {
    background: #f4faf6;
    border-color: #83b993;
}

.th-public-success h2 {
    margin-bottom: 9px;
}

.th-public-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.th-public-hero {
    padding: 72px 0;
}

.th-public-hero .th-public-button {
    margin-top: 26px;
}

.th-public-site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px clamp(24px, 5vw, 72px);
    background: #ffffff;
    border-top: 1px solid #dde2e8;
    color: #727d8b;
    font-size: 12px;
    font-weight: 400;
}

@media (max-width: 720px) {
    .th-public-site-header {
        min-height: 64px;
        padding: 14px 18px;
    }

    .th-public-site-caption {
        display: none;
    }

    .th-public-shell {
        width: min(calc(100% - 32px), 960px);
        padding: 42px 0 64px;
    }

    .th-public-shell h1 {
        font-size: 36px;
    }

    .th-public-card {
        padding: 24px 20px;
    }

    .th-public-grid,
    .th-public-components {
        grid-template-columns: 1fr;
    }

    .th-public-step {
        top: 20px;
        right: 20px;
    }

    .th-public-submit,
    .th-public-site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .th-public-button {
        width: 100%;
    }
}

/* Questionnaire Web multi-étapes */
.th-public-wizard {
    width: min(calc(100% - 48px), 1040px);
}

.th-wizard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px;
}

.th-wizard-header > div:first-child {
    flex: 1;
}

.th-wizard-project {
    min-width: 220px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--th-line);
    border-radius: 8px;
}

.th-wizard-project span,
.th-wizard-project strong {
    display: block;
}

.th-wizard-project span {
    margin-bottom: 4px;
    color: var(--th-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.th-wizard-project strong {
    font-size: 15px;
    font-weight: 500;
}

.th-progress {
    overflow: hidden;
    height: 6px;
    margin: -12px 0 30px;
    background: #dfe5ec;
    border-radius: 999px;
}

.th-progress span {
    display: block;
    height: 100%;
    background: var(--th-blue);
    border-radius: inherit;
    transition: width .2s ease;
}

.th-public-form select,
.th-public-form input[type="url"],
.th-public-form input[type="date"] {
    width: 100%;
    margin: 8px 0 0;
    padding: 13px 14px;
    background: #fff;
    border: 1px solid var(--th-line-strong);
    border-radius: 6px;
    color: var(--th-ink);
    font: inherit;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: none;
}

.th-public-form select:focus,
.th-public-form input[type="url"]:focus,
.th-public-form input[type="date"]:focus {
    outline: 3px solid rgba(49, 85, 231, .13);
    border-color: var(--th-blue);
}

.th-public-options {
    margin-bottom: 22px;
}

.th-public-options .th-public-choice {
    min-height: 58px;
    align-items: flex-start;
}

.th-public-options .th-public-choice input {
    margin-top: 3px;
}

.th-conditional-panel[hidden] {
    display: none !important;
}

.th-conditional-panel {
    border-left: 3px solid #8ea4f5;
}

.th-wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px;
}

.th-public-button-secondary {
    background: #fff;
    color: var(--th-blue);
    border: 1px solid var(--th-blue);
}

.th-public-button-secondary:hover,
.th-public-button-secondary:focus {
    background: #f4f6ff;
    color: var(--th-blue-dark);
}

.th-resume-note {
    margin: 22px 0 0;
    color: var(--th-muted);
    font-size: 13px;
    text-align: center;
}

.th-final-confirmation {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding: 18px;
    background: var(--th-soft);
    border-radius: 6px;
}

.th-final-confirmation input {
    margin-top: 4px;
}

@media (max-width: 760px) {
    .th-wizard-header {
        display: block;
    }

    .th-wizard-project {
        margin-top: 22px;
        min-width: 0;
    }

    .th-wizard-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .th-wizard-actions > div,
    .th-wizard-actions .th-public-button {
        width: 100%;
        text-align: center;
    }
}
.th-public-followup .th-followup-project{margin-top:18px;color:var(--th-ink)}.th-followup-question{position:relative}.th-followup-question h2{padding-right:44px;line-height:1.35}.th-followup-question textarea{margin-top:16px}


.th-public-file-field {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--th-line);
}

.th-public-form input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px dashed var(--th-line-strong);
    border-radius: 6px;
    color: var(--th-muted);
    font: inherit;
    font-size: 14px;
}

.th-public-form input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid var(--th-line-strong);
    border-radius: 5px;
    color: var(--th-ink);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.th-public-file-help {
    display: block;
    margin-top: 8px;
    color: var(--th-muted);
    font-size: 13px;
    font-weight: 400;
}
