/* =========================================================
   CertiLead Providers : page /register, colonne du formulaire
   ---------------------------------------------------------
   Parcours d'inscription en 6 étapes repris de la maquette
   « inscription-generateurs » de l'associé (source conservée dans
   tests/site9/onboarding-generateurs/inscription-generateurs.css).

   Seule la colonne de droite (.ob-form-side) est concernée : le panneau
   gauche (« chaîne de preuve », login-visual.css) n'est pas touché. Toutes
   les règles sont donc portées par des classes ob-* ou préfixées par
   .ob-form-side, et les jetons de couleur vivent sur la colonne plutôt
   que sur :root pour ne rien changer au reste du gabarit.

   Écarts volontaires avec la maquette :
   - la colonne est celle du gabarit d'authentification (5/12 puis 4/12 de
     la largeur, 100 vh, défilement propre) et non la moitié d'un écran :
     les grilles à deux colonnes retombent sur une colonne quand le
     conteneur est étroit (container query ob-form) ;
   - ajout du mot de passe (avec bouton afficher / masquer) et des deux
     acceptations juridiques à l'étape de vérification, inexistants dans
     la maquette de démonstration ;
   - polices : Inter Tight (corps) et Manrope (titres) servies depuis
     /fonts/ de cette app (copies de views/site/fonts/).
   ========================================================= */

@font-face {
    font-family: 'Inter Tight';
    src: url('/fonts/inter-tight.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('/fonts/manrope.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

/* ============================ COLONNE ============================ */
.ob-form-side {
    --ob-ink: #080b12;
    --ob-ink-2: #121826;
    --ob-cyan: #23bdd5;
    --ob-cyan-hover: #1eacc2;
    --ob-cyan-light: rgba(35, 189, 213, 0.12);
    --ob-lime: #c6f56f;
    --ob-paper: #ffffff;
    --ob-bg: #f4f6f8;
    --ob-text: #111820;
    --ob-muted: #65717d;
    --ob-border: #d8dee5;
    --ob-border-hover: #bac4ce;
    --ob-focus: rgba(35, 189, 213, 0.45);
    --ob-error: #b94b55;
    --ob-error-bg: #fdf2f3;
    --font-body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-hero: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Respiration verticale (demande Clément du 10/09/2026 : plus d'air entre
       la barre de progression et le titre, et entre les champs). Les mêmes
       jetons pilotent la variante compacte des écrans peu hauts. */
    --ob-space-progress: 58px;
    --ob-space-header: 32px;
    --ob-space-group: 28px;
    --ob-space-label: 10px;

    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    background: var(--ob-bg);
    color: var(--ob-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    container-type: inline-size;
    container-name: ob-form;
}

/* Sur écran large la colonne défile seule : la hauteur de la ligne reste
   celle de la fenêtre et le panneau gauche ne bouge pas. */
@media (min-width: 992px) {
    .ob-form-side {
        height: 100vh;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }
}

.ob-form-side *,
.ob-form-side *::before,
.ob-form-side *::after {
    box-sizing: border-box;
}

.ob-form-side button,
.ob-form-side input,
.ob-form-side select {
    font: inherit;
}

.ob-form-side :focus-visible {
    outline: 3px solid var(--ob-cyan);
    outline-offset: 2px;
}

.ob-form-side .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================ EN-TÊTE ============================ */
.ob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
}

.ob-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ob-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.ob-language-switch__option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.ob-language-switch__flag {
    display: block;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(8, 11, 18, 0.12);
}

.ob-language-switch__option.is-active {
    border-color: rgba(35, 189, 213, 0.48);
    background: var(--ob-cyan-light);
}

.ob-language-switch__option:hover {
    border-color: var(--ob-border-hover);
    background: #fff;
    transform: translateY(-1px);
}

.ob-header__login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--ob-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ob-header__login strong {
    color: var(--ob-text);
    font-weight: 600;
}

.ob-header__login:hover,
.ob-header__login:hover strong {
    color: var(--ob-cyan);
}

.ob-header__login svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ob-container {
    flex: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 24px 48px;
    display: flex;
    flex-direction: column;
}

.ob-brand-title {
    margin: 4px 0 28px;
    text-align: center;
}

.ob-brand-title h1 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ob-ink);
}

/* ============================ PROGRESSION ============================ */
.ob-draft-status {
    margin: -8px 0 22px;
    color: var(--ob-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.ob-draft-status.is-saved {
    color: #28775c;
}

.ob-help--before {
    margin: -2px 0 10px;
}

.ob-progress {
    margin-bottom: var(--ob-space-progress);
}

.ob-progress__bar {
    height: 4px;
    background: var(--ob-border);
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.ob-progress__fill {
    height: 100%;
    background: var(--ob-cyan);
    /* Largeur posée par le contrôleur : étapes terminées + champs renseignés
       de l'étape en cours (progression fine, 10/09/2026). */
    width: 0;
    transition: width 0.4s ease;
}

.ob-progress__steps {
    display: flex;
    justify-content: space-between;
}

.ob-progress__step {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ob-border);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.ob-progress__step.is-active {
    background: var(--ob-cyan);
    box-shadow: 0 0 0 4px var(--ob-cyan-light);
}

.ob-progress__step.is-complete {
    background: var(--ob-ink);
    color: transparent;
    position: relative;
}

.ob-progress__step.is-complete::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -2px;
}

/* ============================ ÉTAPES ============================ */
.ob-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ob-step {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: ob-fade-in 0.4s ease forwards;
}

.ob-step[hidden] {
    display: none;
}

@keyframes ob-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ob-step__header {
    margin-bottom: var(--ob-space-header);
}

.ob-step__eyebrow {
    display: block;
    font-family: var(--font-hero);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ob-cyan);
    margin-bottom: 8px;
}

.ob-step__title {
    font-family: var(--font-hero);
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ob-text);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.ob-step__desc {
    font-size: 1.05rem;
    color: var(--ob-muted);
    margin: 0;
}

/* ============================ CHAMPS ============================ */
.ob-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ob-space-group) 20px;
    margin-bottom: var(--ob-space-group);
}

.ob-form__grid > .ob-group {
    margin-bottom: 0;
}

.ob-group {
    margin-bottom: var(--ob-space-group);
}

.ob-group--mt {
    margin-top: 40px;
}

.ob-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ob-text);
    margin-bottom: var(--ob-space-label);
}

.ob-input,
.ob-select {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid var(--ob-border);
    border-radius: 8px;
    font-size: 1.08rem;
    color: var(--ob-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.ob-input::placeholder {
    color: #a0abb6;
}

.ob-input:hover,
.ob-select:hover {
    border-color: var(--ob-border-hover);
}

.ob-input:focus,
.ob-select:focus {
    border-color: var(--ob-cyan);
    outline: none;
    box-shadow: 0 0 0 4px var(--ob-cyan-light);
}

.ob-select-wrapper {
    position: relative;
}

.ob-select {
    appearance: none;
    padding-right: 48px;
    cursor: pointer;
}

.ob-select-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--ob-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.ob-error-msg {
    display: none;
    color: var(--ob-error);
    font-size: 0.8rem;
    margin-top: 6px;
    font-weight: 500;
}

.has-error .ob-input,
.has-error .ob-select {
    border-color: var(--ob-error);
    background: var(--ob-error-bg);
}

.has-error .ob-error-msg {
    display: block;
    animation: ob-fade-in 0.3s ease;
}

/* ============================ TÉLÉPHONE ============================ */
.ob-phone {
    display: flex;
    align-items: stretch;
    min-height: 56px;
    overflow: hidden;
    border: 1px solid var(--ob-border);
    border-radius: 8px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ob-phone:focus-within {
    border-color: var(--ob-cyan);
    box-shadow: 0 0 0 3px rgba(36, 191, 216, 0.14);
}

.ob-phone__prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-right: 1px solid var(--ob-border);
    background: #f2f5f7;
    color: var(--ob-ink);
    font-weight: 700;
    font-size: 1.08rem;
}

.ob-phone__input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 0 14px;
    background: transparent;
    color: var(--ob-ink);
    font: inherit;
    font-size: 1.08rem;
    outline: 0;
}

.ob-help {
    display: block;
    margin-top: 7px;
    color: var(--ob-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.ob-group.has-error .ob-phone {
    border-color: var(--ob-error);
}

/* ============================ MOT DE PASSE ============================ */
.ob-password {
    display: flex;
    align-items: stretch;
    min-height: 56px;
    overflow: hidden;
    border: 1px solid var(--ob-border);
    border-radius: 8px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ob-password:focus-within {
    border-color: var(--ob-cyan);
    box-shadow: 0 0 0 3px rgba(36, 191, 216, 0.14);
}

.ob-password__input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 0 14px;
    background: transparent;
    color: var(--ob-ink);
    font: inherit;
    font-size: 1.08rem;
    letter-spacing: 0.04em;
    outline: 0;
}

.ob-password__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--ob-border);
    background: #f2f5f7;
    color: var(--ob-muted);
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.ob-password__toggle:hover {
    color: var(--ob-ink);
    background: #e9eef2;
}

.ob-password__toggle:focus-visible {
    outline-offset: -3px;
}

.ob-password__toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ob-password__toggle svg[hidden] {
    display: none;
}

.ob-group.has-error .ob-password {
    border-color: var(--ob-error);
}

/* ============================ VOLUMES ============================ */
.ob-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ob-radio {
    position: relative;
}

.ob-radio__card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    margin: 0;
    background: #fff;
    border: 1px solid var(--ob-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ob-radio__card strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ob-text);
}

.ob-radio input:checked + .ob-radio__card {
    border-color: var(--ob-cyan);
    background: var(--ob-cyan-light);
    box-shadow: 0 0 0 1px var(--ob-cyan);
}

.ob-radio input:focus-visible + .ob-radio__card,
.ob-check input:focus-visible + .ob-check__label,
.ob-check-card-wrap input:focus-visible + .ob-check-card,
.ob-radio-card-wrap input:focus-visible + .ob-radio-card {
    outline: 3px solid var(--ob-cyan);
    outline-offset: 3px;
}

.ob-radio__card:hover {
    border-color: var(--ob-border-hover);
}

/* ============================ CASES (sources, acceptations) ============================ */
.ob-check-list {
    display: grid;
    gap: 12px;
}

.ob-check {
    position: relative;
}

.ob-check__label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--ob-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ob-text);
    transition: all 0.2s ease;
}

.ob-check__label--legal {
    align-items: flex-start;
    font-weight: 400;
    line-height: 1.45;
}

.ob-check__label--legal .ob-check__box {
    flex: none;
    margin-top: 1px;
}

.ob-check__label--legal a {
    color: var(--ob-cyan-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ob-check__label--legal a:hover {
    color: var(--ob-ink);
}

.ob-check__box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--ob-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #fff;
}

.ob-check__box svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.ob-check input:checked + .ob-check__label {
    border-color: var(--ob-cyan);
    background: var(--ob-cyan-light);
}

.ob-check input:checked + .ob-check__label .ob-check__box {
    background: var(--ob-cyan);
    border-color: var(--ob-cyan);
}

.ob-check input:checked + .ob-check__label .ob-check__box svg {
    opacity: 1;
    transform: scale(1);
}

.ob-check__label:hover {
    border-color: var(--ob-border-hover);
}

.ob-group.has-error .ob-check__label--legal {
    border-color: var(--ob-error);
}

/* ============================ CARTES À COCHER (objectifs) ============================ */
.ob-check-list--cards {
    gap: 16px;
}

.ob-check-card-wrap {
    position: relative;
}

.ob-check-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--ob-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ob-check-card__icon {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 10px;
    background: var(--ob-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ob-muted);
    transition: all 0.2s ease;
}

.ob-check-card__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ob-check-card__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 2px;
}

.ob-check-card__text strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ob-text);
}

.ob-check-card__text span {
    font-size: 0.85rem;
    color: var(--ob-muted);
    line-height: 1.4;
}

.ob-check-card__indicator {
    width: 24px;
    height: 24px;
    flex: none;
    border: 2px solid var(--ob-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ob-check-card__indicator svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.ob-check-card-wrap input:checked + .ob-check-card {
    border-color: var(--ob-cyan);
    background: #fff;
    box-shadow: 0 4px 12px rgba(35, 189, 213, 0.08), 0 0 0 1px var(--ob-cyan);
}

.ob-check-card-wrap input:checked + .ob-check-card .ob-check-card__icon {
    background: var(--ob-cyan-light);
    color: var(--ob-cyan);
}

.ob-check-card-wrap input:checked + .ob-check-card .ob-check-card__indicator {
    background: var(--ob-cyan);
    border-color: var(--ob-cyan);
}

.ob-check-card-wrap input:checked + .ob-check-card .ob-check-card__indicator svg {
    opacity: 1;
    transform: scale(1);
}

.ob-check-card:hover {
    border-color: var(--ob-border-hover);
}

/* ============================ CARTES RADIO (intégration) ============================ */
.ob-radio-list {
    display: grid;
    gap: 16px;
}

.ob-radio-card-wrap {
    position: relative;
}

.ob-radio-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--ob-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ob-radio-card__icon {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 8px;
    background: var(--ob-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ob-muted);
    transition: all 0.2s ease;
}

.ob-radio-card__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ob-radio-card__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ob-radio-card__text strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ob-text);
}

.ob-radio-card__text span {
    font-size: 0.85rem;
    color: var(--ob-muted);
}

.ob-radio-card-wrap input:checked + .ob-radio-card {
    border-color: var(--ob-cyan);
    background: var(--ob-cyan-light);
    box-shadow: 0 0 0 1px var(--ob-cyan);
}

.ob-radio-card-wrap input:checked + .ob-radio-card .ob-radio-card__icon {
    background: var(--ob-cyan);
    color: #fff;
}

.ob-radio-card:hover {
    border-color: var(--ob-border-hover);
}

/* ============================ RÉCAPITULATIF ============================ */
.ob-summary {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.ob-summary__section {
    background: #fff;
    border: 1px solid var(--ob-border);
    border-radius: 12px;
    padding: 24px;
}

.ob-summary__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ob-border);
}

.ob-summary__head h3 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ob-text);
}

.ob-summary__edit {
    background: none;
    border: none;
    padding: 4px 8px;
    color: var(--ob-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ob-summary__edit:hover {
    color: var(--ob-ink);
    text-decoration: underline;
}

.ob-summary__list {
    margin: 0;
    display: grid;
    gap: 16px;
}

.ob-summary__list div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ob-summary__list dt {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ob-muted);
}

.ob-summary__list dd {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ob-text);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.ob-summary__section .ob-group:last-child {
    margin-bottom: 0;
}

.ob-legal-note {
    font-size: 0.78rem;
    color: var(--ob-muted);
    text-align: center;
    margin: 16px 0 0;
    line-height: 1.5;
}

/* ============================ TRAITEMENT ET SUCCÈS ============================ */
.ob-processing {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 0;
}

.ob-loader {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.ob-spinner {
    animation: ob-rotate 2s linear infinite;
    width: 100%;
    height: 100%;
}

.ob-spinner .path {
    stroke: var(--ob-cyan);
    stroke-linecap: round;
    animation: ob-dash 1.5s ease-in-out infinite;
}

@keyframes ob-rotate { 100% { transform: rotate(360deg); } }
@keyframes ob-dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.ob-processing__title {
    font-family: var(--font-hero);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ob-text);
    margin: 0 0 32px;
}

.ob-processing__bar {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: var(--ob-border);
    border-radius: 6px;
    overflow: hidden;
}

.ob-processing__fill {
    height: 100%;
    width: 0%;
    background: var(--ob-cyan);
    transition: width 0.3s ease;
}

.ob-success {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 0;
}

.ob-success__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--ob-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 0 0 10px rgba(198, 245, 111, 0.2);
}

.ob-success__icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--ob-ink);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ob-success__card {
    background: #fff;
    border: 1px solid var(--ob-border);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    text-align: left;
    width: 100%;
}

.ob-success__card strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--ob-ink);
}

.ob-success__card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ob-muted);
}

/* ============================ ACTIONS ============================ */
.ob-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: auto;
    padding-top: 32px;
}

.ob-actions--submit {
    flex-direction: column;
    align-items: stretch;
}

.ob-submit-error {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(198, 60, 60, 0.35);
    border-radius: 8px;
    background: rgba(198, 60, 60, 0.06);
    color: var(--ob-error);
    font-size: 0.9rem;
    line-height: 1.45;
}

.ob-submit-error[hidden] {
    display: none;
}

.ob-submit-error__retry {
    justify-self: start;
    margin-top: 4px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ob-submit-error__retry[hidden] {
    display: none;
}

.ob-actions--center {
    flex-wrap: wrap;
    justify-content: center;
}

.ob-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.ob-btn--primary {
    background: var(--ob-cyan);
    color: var(--ob-ink);
    box-shadow: 0 4px 12px rgba(35, 189, 213, 0.2);
}

.ob-btn--primary:hover {
    background: var(--ob-cyan-hover);
    color: var(--ob-ink);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(35, 189, 213, 0.3);
}

.ob-btn--primary:active {
    transform: translateY(0);
}

.ob-btn--primary:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.ob-btn--ghost {
    background: transparent;
    color: var(--ob-text);
    border-color: var(--ob-border);
}

.ob-btn--ghost:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--ob-border-hover);
    color: var(--ob-text);
}

.ob-btn--large {
    min-height: 56px;
    font-size: 1.1rem;
    width: 100%;
}

/* ============================ COLONNE ÉTROITE ============================ */
/* La colonne du gabarit fait 300 à 560 px de large selon l'écran : en dessous
   de 520 px, les paires de champs et les cartes de volume passent sur une
   colonne, et les marges se resserrent. */
@container ob-form (max-width: 520px) {
    .ob-header {
        padding: 16px 20px;
    }

    .ob-container {
        padding: 0 20px 40px;
    }

    .ob-form__grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .ob-form__grid > .ob-group {
        margin-bottom: var(--ob-space-group);
    }

    .ob-step__title {
        font-size: 1.8rem;
    }

    .ob-check-card,
    .ob-radio-card {
        gap: 12px;
        padding: 16px;
    }

    .ob-summary__section {
        padding: 20px;
    }
}

@container ob-form (max-width: 360px) {
    .ob-radio-grid {
        grid-template-columns: 1fr;
    }

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

    .ob-btn {
        width: 100%;
    }
}

/* ============================ ÉCRANS PEU HAUTS ============================ */
/* Même densité que la maquette sur un portable : tout reste visible sans
   défilement excessif. */
@media (min-width: 961px) and (max-height: 999px) {
    .ob-form-side {
        --ob-space-progress: 42px;
        --ob-space-header: 24px;
        --ob-space-group: 20px;
        --ob-space-label: 8px;
    }

    .ob-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .ob-container {
        min-height: 0;
        padding-bottom: 12px;
    }

    .ob-brand-title {
        margin: 0 0 16px;
    }

    .ob-brand-title h1 {
        font-size: 28px;
    }

    .ob-draft-status {
        margin-bottom: 10px;
        font-size: 0.7rem;
    }

    .ob-progress__bar {
        margin-bottom: 10px;
    }

    .ob-progress__step {
        width: 22px;
        height: 22px;
    }

    .ob-step__eyebrow {
        margin-bottom: 4px;
        font-size: 0.68rem;
    }

    .ob-step__title {
        margin-bottom: 4px;
        font-size: 1.6rem;
    }

    .ob-step__desc {
        font-size: 0.86rem;
    }

    .ob-form__grid {
        column-gap: 16px;
    }

    .ob-group--mt {
        margin-top: 28px;
    }

    .ob-label {
        font-size: 0.8rem;
    }

    .ob-input,
    .ob-select {
        min-height: 40px;
        padding-right: 13px;
        padding-left: 13px;
        font-size: 0.88rem;
    }

    .ob-select {
        padding-right: 40px;
    }

    .ob-phone,
    .ob-password {
        min-height: 40px;
    }

    .ob-phone__prefix,
    .ob-phone__input,
    .ob-password__input {
        font-size: 0.88rem;
    }

    .ob-password__toggle {
        width: 44px;
    }

    .ob-password__toggle svg {
        width: 18px;
        height: 18px;
    }

    .ob-help {
        margin-top: 4px;
        font-size: 0.68rem;
        line-height: 1.3;
    }

    .ob-help--before {
        margin: -1px 0 6px;
    }

    .ob-radio-grid {
        gap: 8px;
    }

    .ob-radio__card {
        height: 40px;
    }

    .ob-radio__card strong {
        font-size: 0.84rem;
    }

    .ob-check-list {
        gap: 10px;
    }

    .ob-check__label {
        gap: 9px;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .ob-check__box {
        width: 17px;
        height: 17px;
        border-width: 1.5px;
    }

    .ob-check__box svg {
        width: 11px;
        height: 11px;
    }

    .ob-check-list--cards,
    .ob-radio-list {
        gap: 10px;
    }

    .ob-check-card,
    .ob-radio-card {
        gap: 10px;
        padding: 10px 12px;
    }

    .ob-check-card__icon,
    .ob-radio-card__icon {
        width: 36px;
        height: 36px;
    }

    .ob-check-card__text strong,
    .ob-radio-card__text strong {
        font-size: 0.88rem;
    }

    .ob-check-card__text span,
    .ob-radio-card__text span {
        font-size: 0.7rem;
        line-height: 1.25;
    }

    .ob-summary {
        gap: 12px;
        margin-bottom: 16px;
    }

    .ob-summary__section {
        padding: 14px 16px;
    }

    .ob-summary__head {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .ob-summary__list {
        gap: 8px;
    }

    .ob-summary__list dd {
        font-size: 0.86rem;
    }

    .ob-actions {
        margin-top: 8px;
        padding-top: 20px;
    }

    .ob-btn {
        min-height: 42px;
        padding-right: 20px;
        padding-left: 20px;
        font-size: 0.9rem;
    }

    .ob-processing {
        padding: 24px 0;
    }
}

/* ============================ MOBILE ============================ */
@media (max-width: 640px) {
    .ob-header {
        padding: 14px 20px;
        background: #fff;
        border-bottom: 1px solid var(--ob-border);
    }

    .ob-container {
        padding: 24px 20px 40px;
    }

    .ob-brand-title h1 {
        font-size: 28px;
    }

    .ob-step__title {
        font-size: 1.6rem;
    }
}

/* ============================ MOUVEMENT RÉDUIT ============================ */
@media (prefers-reduced-motion: reduce) {
    .ob-step {
        animation: none !important;
    }

    .ob-progress__fill,
    .ob-progress__step,
    .ob-btn,
    .ob-check-card,
    .ob-radio-card,
    .ob-check__box {
        transition: none !important;
    }
}
