.register-section {
    position: relative;
    overflow: hidden;
    align-items: start;
    background: #f8fafc;
}

.register-section::before {
    content: "";
    position: absolute;
    inset: -26px;
    background: url("../images/optimized/register-team-bg.6ca72bd00960.jpg") center / cover no-repeat;
    filter: blur(10px);
    opacity: .56;
    transform: scale(1.05);
}

.register-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, .82), rgba(248, 250, 252, .96)),
        radial-gradient(circle at 78% 16%, rgba(45, 212, 191, .18), transparent 32%);
}

.register-card {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100% - 32px));
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
}

.register-form {
    gap: 22px;
}

.registration-progress {
    display: none;
    padding: 0 0 20px;
    border-bottom: 1px solid #e1e6ec;
}

.registration-progress ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.registration-progress li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: #7b8491;
}

.registration-progress li > span {
    display: grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #d5dde5;
    border-radius: 50%;
    background: #fff;
    font-size: .72rem;
    font-weight: 900;
}

.registration-progress li > div {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.registration-progress strong {
    color: #475569;
    font-size: .78rem;
}

.registration-progress small {
    overflow: hidden;
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.registration-progress li.is-current > span,
.registration-progress li.is-complete > span {
    border-color: #0f766e;
    color: #fff;
    background: #0f766e;
}

.registration-progress li.is-current strong {
    color: #0f766e;
}

.register-form.is-enhanced .registration-progress {
    display: block;
}

.register-form.is-enhanced .registration-step[hidden],
.register-form.is-enhanced .role-panel[hidden],
.register-form.is-enhanced [hidden] {
    display: none !important;
}

.form-section {
    padding: 24px 0 0;
    border-top: 1px solid #e1e6ec;
}

.role-section {
    padding-top: 0;
    border-top: 0;
}

.section-title-without-index > div {
    min-width: 0;
}

.section-eyebrow {
    margin: 0 0 5px !important;
    color: #0f766e !important;
    font-size: .66rem !important;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 17px;
}

.section-title > span {
    display: grid;
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
    color: #0e8074;
    background: #e3f7f4;
    font-size: .68rem;
    font-weight: 900;
}

.section-title h2 {
    margin: 0;
    color: #10151f;
    font-size: 1.05rem;
    letter-spacing: -.02em;
}

.section-title p {
    margin: 4px 0 0;
    color: #6b7482;
    font-size: .78rem;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 20px 0 6px;
}

.role-card {
    position: relative;
    display: flex;
    min-height: 178px;
    flex-direction: column;
    gap: 8px;
    padding: 18px 16px;
    border: 1.5px solid #e1e6ec;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s ease, background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}

.role-card:hover {
    border-color: #15b8a6;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 118, 110, .08);
}

.role-card input[type="radio"] {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 16px;
    height: 16px;
    accent-color: #15b8a6;
    cursor: pointer;
}

.role-card:has(input:checked),
.role-card.is-selected {
    border-color: #15b8a6;
    background: #e3f7f4;
}

.role-card-icon {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #0e8074;
    background: #e3f7f4;
}

.role-card:has(input:checked) .role-card-icon,
.role-card.is-selected .role-card-icon {
    color: #fff;
    background: #0f766e;
}

.role-card-icon svg {
    width: 18px;
    height: 18px;
}

.role-card-label {
    margin-top: 4px;
    color: #10151f;
    font-size: 15px;
    font-weight: 700;
}

.role-card-desc {
    margin: 0;
    color: #5b6472;
    font-size: 12.5px;
    line-height: 1.45;
}

.register-form.is-enhanced .registration-step:not([hidden]) {
    animation: revealFields .28s ease;
}

@keyframes revealFields {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.personal-fields {
    margin-bottom: 16px;
}

.form-field {
    min-width: 0;
}

.form-field label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-field > legend {
    margin: 0 0 9px;
    padding: 0;
    color: var(--text);
    font-weight: 800;
}

.form-field textarea {
    width: 100%;
    min-height: 112px;
    resize: vertical;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: #fff;
    font: inherit;
}

.form-field textarea:focus {
    outline: 3px solid rgba(15, 118, 110, .16);
    border-color: var(--primary);
}

.form-field:has(textarea),
.file-field,
.choice-field {
    grid-column: 1 / -1;
}

.form-field input[type="file"] {
    width: 100%;
    min-height: auto;
    padding: 13px;
    border: 1px dashed #b8c9d8;
    border-radius: 14px;
    color: #475569;
    background: #f8fafc;
}

.form-field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 13px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #0f766e;
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
}

.upload-note {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
}

.choice-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.choice-field > div,
.choice-field > ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.choice-field > div > div,
.choice-field > ul > li {
    min-width: 0;
}

.choice-field > div label,
.choice-field > ul label {
    display: flex;
    height: 100%;
    align-items: flex-start;
    gap: 9px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #e1e6ec;
    border-radius: 10px;
    color: #344256;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.35;
    background: #fbfcfd;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
    overflow-wrap: anywhere;
}

.choice-field > div label:hover,
.choice-field > ul label:hover {
    border-color: #89d8cf;
    background: #f2fbf9;
}

.choice-field > div label:has(input:checked),
.choice-field > ul label:has(input:checked) {
    border-color: #0f766e;
    color: #075e57;
    background: #e3f7f4;
}

.choice-field.has-client-error {
    padding: 10px;
    border: 1px solid #dc2626;
    border-radius: 12px;
}

.charter-preview {
    grid-column: 1 / -1;
    max-height: 420px;
    overflow: auto;
    padding: 18px;
    border: 1px solid #dbe5eb;
    border-radius: 18px;
    background: #fbfcfd;
}

.charter-preview > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
}

.charter-preview > summary::-webkit-details-marker { display: none; }

.charter-preview > summary span {
    color: #102033;
    font-size: .86rem;
    font-weight: 850;
}

.charter-preview > summary small {
    color: #0f766e;
    font-size: .72rem;
    font-weight: 750;
}

.charter-preview-content { margin-top: 18px; }

.charter-preview .ethics-charter {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.charter-preview .ethics-charter h2 {
    margin: 6px 0 10px;
    color: #10151f;
    font-size: 1.25rem;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.charter-preview .charter-kicker {
    margin: 0;
    color: #0f766e;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.charter-preview .ethics-charter header {
    margin-bottom: 18px;
}

.charter-preview .charter-rules {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.charter-preview .charter-rules li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid #e7edf2;
    border-radius: 14px;
    background: #fff;
}

.charter-preview .charter-rules li > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    color: #075e57;
    background: #e2f8f4;
    font-size: .62rem;
    font-weight: 900;
}

.charter-preview .charter-rules strong {
    color: #102033;
    font-size: .82rem;
}

.charter-preview .charter-rules p,
.charter-preview .ethics-charter header p:not(.charter-kicker) {
    margin: 4px 0 0;
    color: #64748b;
    font-size: .74rem;
    line-height: 1.48;
}

.charter-preview-content > a {
    display: inline-flex;
    margin-top: 14px;
    color: #0f766e;
    font-size: .76rem;
    font-weight: 850;
}

.charter-consent-field {
    grid-column: 1 / -1;
}

.charter-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #dbe5eb;
    border-radius: 12px;
    background: #f8fafc;
}

.charter-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
    accent-color: #15b8a6;
}

.charter-consent label {
    display: block;
    color: #243244;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.4;
}

.choice-field input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: #15b8a6;
    cursor: pointer;
}

.emergency-choice-field input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.emergency-choice-field > label {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #dbe5eb;
    border-radius: 12px;
    color: #243244;
    background: #f8fafc;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1.4;
}

.emergency-choice-field > label:has(input:checked) {
    border-color: #0f766e;
    color: #075e57;
    background: #e3f7f4;
}

.registration-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid #e1e6ec;
}

.registration-actions [data-step-previous],
.registration-actions [data-step-next],
.registration-actions [data-step-status] {
    display: none;
}

.register-form.is-enhanced .registration-actions [data-step-previous]:not([hidden]),
.register-form.is-enhanced .registration-actions [data-step-next]:not([hidden]),
.register-form.is-enhanced .registration-actions [data-step-status]:not([hidden]) {
    display: inline-flex;
}

.registration-actions [data-step-status] {
    margin: 0 auto;
    color: #64748b;
    font-size: .74rem;
    font-weight: 800;
}

.registration-consent {
    margin: 0;
    color: #6b7482;
    font-size: .75rem;
    line-height: 1.5;
}

.registration-noscript {
    margin: 0;
    padding: 10px 12px;
    border-left: 3px solid #f59e0b;
    color: #7c4a03;
    background: #fff8e6;
    font-size: .76rem;
}

@media (prefers-reduced-motion: reduce) {
    .register-form.is-enhanced .registration-step:not([hidden]) {
        animation: none;
    }
}

@media (max-width: 900px) {
    .choice-field > div,
    .choice-field > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .register-section {
        align-items: stretch;
        padding-inline: 0;
    }

    .register-card {
        width: min(100% - 24px, 920px);
        padding-inline: 18px;
    }

    .section-title {
        gap: 10px;
    }

    .role-grid,
    .field-grid,
    .choice-field > div,
    .choice-field > ul {
        grid-template-columns: 1fr;
    }

    .role-card {
        min-height: auto;
        padding-right: 44px;
    }

    .registration-actions {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .registration-actions [data-step-status] {
        order: -1;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .registration-actions .btn {
        flex: 1 1 130px;
    }

    .registration-progress small {
        display: none;
    }

    .form-field input[type="file"]::file-selector-button {
        display: block;
        width: 100%;
        margin: 0 0 10px;
    }

    .charter-preview {
        max-height: 360px;
        padding: 14px;
    }

    .charter-preview .charter-rules li {
        grid-template-columns: 1fr;
    }
}

body[data-cyber-theme="dark"] .register-section {
    background: #07111f;
}

body[data-cyber-theme="dark"] .register-section::after {
    background:
        linear-gradient(180deg, rgba(7, 17, 31, .82), rgba(7, 17, 31, .96)),
        radial-gradient(circle at 78% 16%, rgba(45, 212, 191, .16), transparent 32%);
}

body[data-cyber-theme="dark"] .register-card,
body[data-cyber-theme="dark"] .charter-preview,
body[data-cyber-theme="dark"] .charter-preview .charter-rules li,
body[data-cyber-theme="dark"] .charter-consent,
body[data-cyber-theme="dark"] .choice-field > div label,
body[data-cyber-theme="dark"] .choice-field > ul label,
body[data-cyber-theme="dark"] .emergency-choice-field > label {
    border-color: #26384f;
    background: #0f1d2d;
    color: #f8fafc;
}

body[data-cyber-theme="dark"] .form-section {
    border-top-color: #26384f;
}

body[data-cyber-theme="dark"] .choice-field > div label:has(input:checked),
body[data-cyber-theme="dark"] .choice-field > ul label:has(input:checked),
body[data-cyber-theme="dark"] .emergency-choice-field > label:has(input:checked) {
    border-color: #2dd4bf;
    color: #ccfbf1;
    background: #103f3b;
}

body[data-cyber-theme="dark"] .section-title h2,
body[data-cyber-theme="dark"] .charter-preview > summary span,
body[data-cyber-theme="dark"] .charter-preview .ethics-charter h2,
body[data-cyber-theme="dark"] .charter-preview .charter-rules strong,
body[data-cyber-theme="dark"] .charter-consent label {
    color: #f8fafc;
}

body[data-cyber-theme="dark"] .section-title p,
body[data-cyber-theme="dark"] .charter-preview .charter-rules p,
body[data-cyber-theme="dark"] .charter-preview .ethics-charter header p:not(.charter-kicker),
body[data-cyber-theme="dark"] .upload-note,
body[data-cyber-theme="dark"] .registration-consent,
body[data-cyber-theme="dark"] .registration-actions [data-step-status] {
    color: #a8b8cc;
}

body[data-cyber-theme="dark"] .registration-progress {
    border-bottom-color: #26384f;
}

body[data-cyber-theme="dark"] .registration-progress li > span {
    border-color: #33465f;
    color: #cbd5e1;
    background: #0b1726;
}

body[data-cyber-theme="dark"] .registration-progress li.is-current > span,
body[data-cyber-theme="dark"] .registration-progress li.is-complete > span {
    border-color: #2dd4bf;
    color: #042f2e;
    background: #2dd4bf;
}

body[data-cyber-theme="dark"] .registration-progress strong {
    color: #d9e4f0;
}

body[data-cyber-theme="dark"] .form-field input[type="file"],
body[data-cyber-theme="dark"] .form-field textarea {
    border-color: #33465f;
    color: #f8fafc;
    background: #0b1726;
}

/* Mise en page éditoriale et parcours guidé. */
.register-section {
    padding: 42px 24px 64px;
    background: #eef3f5;
}

.register-section::before,
.register-section::after { display: none; }

.register-shell {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1240px, 100%);
    margin: 0 auto;
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: 24px;
}

.register-visual {
    position: sticky;
    top: 92px;
    min-height: min(760px, calc(100vh - 116px));
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    background: #0b1726;
    box-shadow: 0 26px 72px rgba(15, 23, 42, .18);
}

.register-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.register-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 20, 34, .18), rgba(6, 20, 34, .9)),
        linear-gradient(120deg, rgba(15, 118, 110, .12), transparent 54%);
}

.register-visual-copy {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    padding: 28px;
}

.register-visual-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 850;
}

.register-visual-brand img {
    width: 34px;
    height: 34px;
}

.register-visual-copy p {
    margin: 0 0 10px;
    color: #99f6e4;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.register-visual-copy h2 {
    max-width: 390px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.register-visual-copy ul {
    display: grid;
    gap: 9px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.register-visual-copy li {
    position: relative;
    padding-left: 23px;
    color: #dce8ef;
    font-size: .82rem;
}

.register-visual-copy li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #5eead4;
    font-weight: 900;
}

.register-card {
    width: 100%;
    max-width: none;
    padding: clamp(26px, 4vw, 46px);
    border: 1px solid rgba(203, 213, 225, .8);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .1);
    backdrop-filter: none;
}

.register-card > h1 {
    max-width: 620px;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.045em;
}

.register-card > .auth-intro { max-width: 590px; }

.role-grid {
    gap: 10px;
    margin-top: 16px;
}

.role-card {
    min-height: 126px;
    gap: 5px;
    padding: 15px 42px 15px 14px;
    border-radius: 14px;
}

.role-card-icon {
    width: 30px;
    height: 30px;
}

.role-card-label { font-size: .88rem; }
.role-card-desc { font-size: .72rem; }

.register-form.is-enhanced.is-beyond-first-step .role-section {
    display: none;
}

.registration-progress {
    position: sticky;
    z-index: 4;
    top: 72px;
    padding: 13px 0 16px;
    background: #fff;
}

.register-form.is-enhanced .registration-step:not([hidden]) {
    animation: revealStep .32s cubic-bezier(.22, 1, .36, 1);
}

@keyframes revealStep {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}

.choice-field > div,
.choice-field > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.registration-actions {
    position: sticky;
    z-index: 5;
    bottom: 0;
    margin: 8px -8px -8px;
    padding: 16px 8px 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .84), #fff 28%);
    backdrop-filter: blur(12px);
}

@media (max-width: 980px) {
    .register-shell {
        grid-template-columns: minmax(0, 1fr);
        max-width: 820px;
    }

    .register-visual {
        position: relative;
        top: auto;
        min-height: 300px;
    }

    .register-visual-copy {
        padding: 24px;
    }

    .register-visual-copy h2 { max-width: 560px; }
    .register-visual-copy ul { display: none; }
}

@media (max-width: 700px) {
    .register-section { padding: 14px 12px 34px; }

    .register-shell { gap: 12px; }

    .register-visual {
        min-height: 210px;
        border-radius: 22px;
    }

    .register-visual-copy { padding: 18px; }

    .register-visual-copy h2 {
        max-width: 330px;
        font-size: 1.45rem;
    }

    .register-card {
        width: 100%;
        padding: 24px 18px;
        border-radius: 22px;
    }

    .registration-progress {
        top: 62px;
    }

    .choice-field > div,
    .choice-field > ul { grid-template-columns: minmax(0, 1fr); }
}

body[data-cyber-theme="dark"] .register-section { background: #07111f; }

body[data-cyber-theme="dark"] .register-card,
body[data-cyber-theme="dark"] .registration-progress,
body[data-cyber-theme="dark"] .registration-actions {
    border-color: #26384f;
    background-color: #0f1d2d;
}

body[data-cyber-theme="dark"] .registration-actions {
    background: linear-gradient(180deg, rgba(15, 29, 45, .84), #0f1d2d 28%);
}
