.shatibi-form {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
}

.shatibi-fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.shatibi-fieldset legend {
    font-size: 1.15em;
    font-weight: 600;
    padding: 0 8px;
    color: #1d2327;
}

.shatibi-field {
    margin-bottom: 16px;
    flex: 1;
}

.shatibi-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.95em;
}

.shatibi-field input[type="text"],
.shatibi-field input[type="email"],
.shatibi-field input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.shatibi-field input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.shatibi-field--small {
    max-width: 160px;
}

.shatibi-row {
    display: flex;
    gap: 16px;
}

.shatibi-radio-group {
    display: flex;
    gap: 20px;
}

.shatibi-radio-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.shatibi-required {
    color: #d63638;
}

/* Course cards */
.shatibi-courses {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shatibi-course-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.shatibi-course-card:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.shatibi-course-card:has(input:checked) {
    border-color: #2271b1;
    background: #f0f6fc;
}

.shatibi-course-card input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #2271b1;
}

.shatibi-course-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shatibi-course-info strong {
    font-size: 1.05em;
}

.shatibi-course-info small {
    color: #666;
}

.shatibi-course-price {
    margin-top: 8px;
    color: #1d2327;
}

.shatibi-course-price--dual {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shatibi-course-price__pair {
    flex: 1 1 118px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    box-sizing: border-box;
}

.shatibi-course-price__pair--single {
    flex: 0 1 auto;
    max-width: 220px;
}

.shatibi-course-price__label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #646970;
}

.shatibi-course-price__amount {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.2;
}

.shatibi-inscription-wizard .shatibi-course-price__pair.is-selected {
    border-color: #c4b5fd;
    background: var(--shatibi-wizard-accent-soft, #ede9fe);
    box-shadow: 0 0 0 1px rgba(91, 33, 182, 0.12);
}

.shatibi-inscription-wizard .shatibi-course-price__pair.is-selected .shatibi-course-price__amount {
    color: var(--shatibi-wizard-accent, #5b21b6);
}

.shatibi-reduced {
    font-weight: 400;
    color: #666;
    font-size: 0.9em;
}

/* Submit */
.shatibi-submit {
    text-align: center;
    margin-top: 8px;
}

.shatibi-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 14px 48px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.shatibi-btn:hover {
    background: #135e96;
}

/* Notices */
.shatibi-notice {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95em;
    line-height: 1.6;
}

.shatibi-notice--success {
    background: #edfaef;
    border: 1px solid #00a32a;
    color: #1a5c2a;
}

.shatibi-notice--error {
    background: #fcf0f1;
    border: 1px solid #d63638;
    color: #8a1e1e;
}

.shatibi-error {
    color: #d63638;
    font-weight: 600;
}

/* Récapitulatif paiement (étape carte) */
.shatibi-payment-summary {
    margin-bottom: 28px;
    padding: 20px 22px;
    background: #f9f9f9;
    border: 1px solid #dcdcde;
    border-radius: 8px;
}

.shatibi-payment-summary__dossier {
    margin: 0 0 12px;
    font-size: 0.95em;
    color: #50575e;
}

.shatibi-payment-summary__schedule {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dcdcde;
}

.shatibi-payment-summary__schedule:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.shatibi-payment-summary__h4 {
    margin: 0 0 10px;
    font-size: 1.05em;
}

.shatibi-payment-summary__h4--schedule {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #dcdcde;
    font-size: 1.08em;
    font-weight: 600;
    color: #1d2327;
}

.shatibi-payment-summary__h5 {
    margin: 16px 0 8px;
    font-size: 0.95em;
    color: #1d2327;
}

.shatibi-payment-summary__total {
    margin: 0 0 8px;
    font-size: 1em;
}

.shatibi-payment-summary__amount {
    font-size: 1.15em;
    color: #1d2327;
}

.shatibi-payment-summary__list {
    margin: 0;
    padding-left: 1.25em;
    line-height: 1.6;
}

.shatibi-payment-summary__tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 4px;
    background: #e7f0f7;
    color: #1d3d5c;
}

.shatibi-payment-summary__tablewrap {
    overflow-x: auto;
}

.shatibi-payment-summary__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.shatibi-payment-summary__table th,
.shatibi-payment-summary__table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #dcdcde;
}

.shatibi-payment-summary__table th {
    background: #f6f7f7;
    font-weight: 600;
}

.shatibi-payment-summary__table--schedule th,
.shatibi-payment-summary__table--schedule td {
    border-color: #dcdcde;
}

.shatibi-payment-summary__table--schedule tbody tr:nth-child(even) {
    background: #fafafa;
}

.shatibi-payment-legal {
    margin: 0 0 22px;
    padding: 0;
    max-width: 720px;
    font-size: 0.95em;
    line-height: 1.65;
    color: #2c3338;
}

.shatibi-payment-legal p {
    margin: 0 0 14px;
}

.shatibi-payment-legal__notice {
    margin-bottom: 0 !important;
    padding: 12px 14px;
    background: #f6f7f7;
    border-left: 3px solid #646970;
    color: #1d2327;
    font-size: 0.93em;
}

.shatibi-payment-summary__fullpay {
    margin: 0 0 12px;
    font-size: 0.92em;
    line-height: 1.5;
    color: #50575e;
}

/* ——— Confirmation après paiement carte ——— */
.shatibi-payment-confirmation {
    max-width: 720px;
    margin: 0 auto;
}

.shatibi-payment-confirmation__banner {
    margin: 0 0 24px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #edfaef;
    border: 1px solid #00a32a;
    color: #1a5c2a;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
}

.shatibi-payment-confirmation__block {
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
}

.shatibi-payment-confirmation__block--muted {
    background: #f6f7f7;
}

.shatibi-payment-confirmation__block-title {
    margin: 0 0 12px;
    font-size: 1.05em;
    font-weight: 600;
    color: #1d2327;
}

.shatibi-payment-confirmation__list {
    margin: 0;
    padding-left: 1.25em;
    line-height: 1.6;
    color: #2c3338;
}

.shatibi-payment-confirmation__dl {
    margin: 0;
}

.shatibi-payment-confirmation__dl-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 16px;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.shatibi-payment-confirmation__dl-row dt {
    margin: 0;
    font-weight: 600;
    color: #50575e;
}

.shatibi-payment-confirmation__dl-row dd {
    margin: 0;
    color: #1d2327;
}

.shatibi-payment-confirmation__schedule {
    margin-bottom: 18px;
}

.shatibi-payment-confirmation__schedule:last-child {
    margin-bottom: 0;
}

.shatibi-payment-confirmation__dossier {
    margin: 0 0 10px;
    font-size: 0.95em;
    color: #50575e;
}

.shatibi-payment-confirmation__tablewrap {
    overflow-x: auto;
}

.shatibi-payment-confirmation__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
}

.shatibi-payment-confirmation__table th,
.shatibi-payment-confirmation__table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #dcdcde;
}

.shatibi-payment-confirmation__table th {
    background: #f6f7f7;
    font-weight: 600;
}

.shatibi-payment-confirmation__text {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: #2c3338;
}

.shatibi-payment-confirmation__footer {
    margin: 0 0 16px;
    font-size: 0.9em;
    color: #50575e;
    text-align: center;
}

.shatibi-payment-confirmation__fallback {
    margin-top: 16px;
}

@media (max-width: 600px) {
    .shatibi-payment-confirmation__dl-row {
        grid-template-columns: 1fr;
    }
}

.shatibi-payment-summary__table tbody tr:nth-child(even) {
    background: #fff;
}

@media (max-width: 600px) {
    .shatibi-row {
        flex-direction: column;
        gap: 0;
    }
    .shatibi-field--small {
        max-width: none;
    }
    .shatibi-fieldset {
        padding: 16px;
    }
}

/* ——— Inscription wizard (multi-étapes) ——— */
:root {
    --shatibi-wizard-accent: #5b21b6;
    --shatibi-wizard-accent-soft: #ede9fe;
    --shatibi-wizard-accent-hover: #4c1d95;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.shatibi-form.shatibi-form--wizard {
    max-width: none;
    margin: 0;
}

.shatibi-inscription-wizard {
    max-width: 960px;
    margin: 0 auto 22px;
    font-size: 0.92rem;
}

.shatibi-inscription-wizard .shatibi-btn {
    padding: 9px 18px;
    font-size: 0.88rem;
}

.shatibi-steps {
    margin-bottom: 16px;
}

.shatibi-steps__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    justify-content: space-between;
    counter-reset: shatibi-step;
}

.shatibi-steps__item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    color: #50575e;
    font-size: 0.8em;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.shatibi-steps__item.is-current {
    background: var(--shatibi-wizard-accent-soft);
    border-color: #c4b5fd;
    color: var(--shatibi-wizard-accent);
}

.shatibi-steps__item.is-done {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.shatibi-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #c3c4c7;
    font-size: 0.75em;
}

.shatibi-steps__item.is-current .shatibi-steps__num {
    border-color: var(--shatibi-wizard-accent);
    color: var(--shatibi-wizard-accent);
}

.shatibi-steps__item.is-done .shatibi-steps__num {
    border-color: #10b981;
    color: #10b981;
    font-size: 0;
}

.shatibi-steps__item.is-done .shatibi-steps__num::after {
    content: '✓';
    font-size: 12px;
    line-height: 1;
}

.shatibi-wizard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 252px;
    gap: 16px;
    align-items: start;
}

.shatibi-wizard-layout.shatibi-wizard-layout--step1 {
    grid-template-columns: 1fr;
}

.shatibi-wizard-main {
    min-width: 0;
}

.shatibi-wizard-errors {
    margin-bottom: 16px;
}

.shatibi-wizard-panel[hidden] {
    display: none !important;
}

.shatibi-wizard-panel__title {
    margin: 0 0 10px;
    font-size: 1.08em;
    color: #1d2327;
}

.shatibi-wizard-panel__lead {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    color: #2c3338;
}

.shatibi-fieldset--plain {
    border: none;
    padding: 0;
    margin: 0 0 16px;
}

.shatibi-fieldset--plain legend {
    padding: 0;
    margin-bottom: 8px;
    font-size: 0.92em;
}

.shatibi-inscription-wizard .shatibi-field {
    margin-bottom: 10px;
}

.shatibi-inscription-wizard .shatibi-courses {
    gap: 8px;
}

.shatibi-inscription-wizard .shatibi-course-card {
    padding: 10px 12px;
    gap: 10px;
    border-width: 1px;
    border-radius: 6px;
}

.shatibi-inscription-wizard .shatibi-course-info strong {
    font-size: 0.95em;
}

.shatibi-inscription-wizard .shatibi-course-price__pair {
    padding: 6px 8px;
    gap: 2px;
}

.shatibi-inscription-wizard .shatibi-course-price__amount {
    font-size: 0.92rem;
}

.shatibi-inscription-wizard .shatibi-course-card:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.shatibi-inscription-wizard .shatibi-course-card:has(input:checked) {
    border-color: var(--shatibi-wizard-accent);
    background: var(--shatibi-wizard-accent-soft);
}

.shatibi-inscription-wizard .shatibi-course-card input[type="checkbox"] {
    accent-color: var(--shatibi-wizard-accent);
}

.shatibi-inscription-wizard .shatibi-field input:focus {
    border-color: var(--shatibi-wizard-accent);
    box-shadow: 0 0 0 2px rgba(91, 33, 182, 0.15);
}

.shatibi-wizard-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding-top: 6px;
    flex-wrap: wrap;
}

.shatibi-wizard-toolbar__next {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.shatibi-btn--primary {
    background: var(--shatibi-wizard-accent);
}

.shatibi-btn--primary:hover {
    background: var(--shatibi-wizard-accent-hover);
}

.shatibi-btn--ghost {
    background: transparent;
    color: #1d2327;
    border: 1px solid #c3c4c7;
    padding: 9px 16px;
}

.shatibi-btn--ghost:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
}

.shatibi-wizard-recap__inner {
    position: sticky;
    top: 12px;
    padding: 12px 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: linear-gradient(180deg, #faf5ff 0%, #fff 48%);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.shatibi-wizard-recap__title {
    margin: 0 0 8px;
    font-size: 0.95em;
    color: var(--shatibi-wizard-accent);
}

.shatibi-wizard-recap__lines {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 8px;
}

.shatibi-wizard-recap__line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92em;
    margin-bottom: 8px;
    line-height: 1.4;
}

.shatibi-wizard-recap__course-block {
    list-style: none;
    margin: 0 0 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid #ececec;
}

.shatibi-wizard-recap__course-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.shatibi-wizard-recap__course-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 0.82em;
    font-weight: 600;
    color: #1d2327;
}

.shatibi-wizard-recap__course-name {
    min-width: 0;
}

.shatibi-wizard-recap__course-total {
    white-space: nowrap;
    font-weight: 700;
}

.shatibi-wizard-recap__installments {
    list-style: disc;
    margin: 4px 0 0 1.1em;
    padding: 0;
    font-size: 0.78em;
    color: #50575e;
    line-height: 1.45;
}

.shatibi-wizard-recap__inst-row {
    margin: 2px 0;
}

.shatibi-wizard-recap__name {
    color: #2c3338;
}

.shatibi-wizard-recap__price {
    font-weight: 600;
    white-space: nowrap;
    color: #1d2327;
}

.shatibi-wizard-recap__tag {
    display: inline-block;
    margin-left: 4px;
    padding: 0 6px;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 4px;
    background: #d1fae5;
    color: #065f46;
    vertical-align: middle;
}

.shatibi-wizard-recap__empty {
    color: #646970;
    font-style: italic;
    margin-bottom: 8px;
}

.shatibi-wizard-recap__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.82em;
    color: #50575e;
}

.shatibi-wizard-recap__row--total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.92em;
    font-weight: 700;
    color: #1d2327;
}

.shatibi-wizard-recap__payment-mode {
    margin: 6px 0 0;
    padding: 6px 8px;
    font-size: 0.75em;
    line-height: 1.55;
    color: #3c434a;
    background: #f6f7f7;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.shatibi-wizard-panel__hint {
    margin: 12px 0 0;
    font-size: 0.95em;
    line-height: 1.55;
    color: #50575e;
}

.shatibi-payment-mode-notice {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #c4b5fd;
    background: #faf5ff;
    font-size: 0.82em;
    line-height: 1.45;
    color: #2c3338;
}

.shatibi-payment-mode-notice p {
    margin: 0;
}

.shatibi-course-card__mode {
    display: inline-block;
    margin: 6px 0 0;
    padding: 3px 10px;
    font-size: 0.78em;
    font-weight: 600;
    border-radius: 999px;
    background: var(--shatibi-wizard-accent-soft, #ede9fe);
    color: var(--shatibi-wizard-accent, #5b21b6);
}

.shatibi-course-installment-hint {
    display: block;
    margin: 4px 0 0;
    font-size: 0.75em;
    font-weight: 600;
    color: #50575e;
}

.shatibi-field-hint {
    margin: 0 0 8px;
    font-size: 0.8em;
    line-height: 1.45;
    color: #50575e;
}

.shatibi-per-course-pay-full {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shatibi-pay-course-row {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #e4e4e7;
    background: #fafafa;
}

.shatibi-pay-course-row__title {
    font-weight: 600;
    font-size: 0.82em;
    color: #1d2327;
    margin-bottom: 6px;
}

.shatibi-pay-course-row__note {
    margin: 0;
    font-size: 0.78em;
    line-height: 1.45;
    color: #50575e;
}

.shatibi-pay-course-row__fieldset {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shatibi-pay-mode-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78em;
    line-height: 1.4;
    color: #1d2327;
    border: 1px solid transparent;
}

.shatibi-pay-mode-option:hover {
    background: #f4f4f5;
}

.shatibi-pay-mode-option input {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--shatibi-wizard-accent, #5b21b6);
}

.shatibi-pay-mode-option__text {
    flex: 1;
    min-width: 0;
}

.shatibi-pay-mode-option__hint {
    display: block;
    margin-top: 2px;
    font-weight: 400;
    color: #646970;
}

.shatibi-wizard-recap__note {
    margin: 8px 0 0;
    font-size: 0.72em;
    line-height: 1.45;
    color: #646970;
}

@media (max-width: 900px) {
    .shatibi-wizard-layout {
        grid-template-columns: 1fr;
    }

    .shatibi-wizard-recap__inner {
        position: static;
    }

    .shatibi-steps__list {
        flex-direction: column;
    }
}
