/*------------------------
 * ------- PAGE INSCRIPTION B2B (module b2bregistration) -------
 *-------------------------*/
body#module-b2bregistration-business {
    --cex-reg-accent: #0091c8;
    --cex-reg-green: #3cb878;
    --cex-reg-ink: #1a2330;
    --cex-reg-muted: #5c6775;
    --cex-reg-surface: #f3f7fa;
    --cex-reg-line: rgba(26, 35, 48, 0.1);
}

body#module-b2bregistration-business #wrapper {
    background: #fff;
}

body#module-b2bregistration-business #content-wrapper {
    padding-top: 0;
}

body#module-b2bregistration-business #main > .page-header {
    display: none;
}

/* Le badge reCAPTCHA reste en bas d'écran (défaut Google) : de l'air en
   bas de page pour ne pas le masquer, même convention que la page Contact. */
body#module-b2bregistration-business #main {
    padding-bottom: 5rem;
}

.pro-reg {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.pro-reg__title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cex-reg-ink);
}

.pro-reg__intro {
    max-width: 640px;
    margin: 0 0 1.25rem;
    color: var(--cex-reg-ink);
    line-height: 1.5;
}

.pro-reg__login-hint {
    margin: 0 0 1.5rem;
    color: var(--cex-reg-muted);
}

.pro-reg__login-hint a {
    color: var(--cex-reg-accent);
    font-weight: 600;
}

.pro-reg-card {
    padding: 1.75rem 1.75rem 0.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid var(--cex-reg-line);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(26, 35, 48, 0.05);
}

.pro-reg-card--consent {
    padding-bottom: 1.75rem;
    background: var(--cex-reg-surface);
    border: none;
    box-shadow: none;
}

.pro-reg-card__title {
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--cex-reg-ink);
    border-bottom: 1px solid var(--cex-reg-line);
}

.pro-reg-card__title--sub {
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

.pro-reg-card .form-group {
    margin-bottom: 1.25rem;
}

.pro-reg-card label {
    font-weight: 600;
    color: var(--cex-reg-ink);
}

.pro-reg-card .form-control {
    border-radius: 10px;
    border-color: #d5dee7;
    min-height: 46px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pro-reg-card .form-control:focus {
    border-color: var(--cex-reg-accent);
    box-shadow: 0 0 0 3px rgba(0, 145, 200, 0.15);
    outline: none;
}

.pro-reg-card .cex-generate-password {
    display: inline-block;
    margin-top: 0.5rem;
    padding-left: 0;
}

.cex-password-strength {
    display: none;
    height: 4px;
    margin-top: 0.6rem;
    border-radius: 999px;
    background: var(--cex-reg-line);
    overflow: hidden;
}

.cex-password-strength.is-visible {
    display: block;
}

.cex-password-strength__bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: #d9463c;
    transition: width 0.2s ease, background 0.2s ease;
}

.cex-password-strength__bar[data-score="1"] { width: 25%; background: #d9463c; }
.cex-password-strength__bar[data-score="2"] { width: 50%; background: #e0a12d; }
.cex-password-strength__bar[data-score="3"] { width: 75%; background: #3cb878; }
.cex-password-strength__bar[data-score="4"] { width: 100%; background: #2f9d65; }

.pro-reg-card .form-control-submit:disabled {
    background: #c2c9d1;
    color: #6b7480;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pro-reg-card__footer {
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cex-reg-line);
}

.pro-reg-card .form-control-submit {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    background: var(--cex-reg-green);
    border: none;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pro-reg-card .form-control-submit:hover,
.pro-reg-card .form-control-submit:focus {
    background: #2f9d65;
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .pro-reg {
        padding: 1rem 0.75rem 2.5rem;
    }

    .pro-reg-card {
        padding: 1.25rem 1.25rem 0.25rem;
    }
}
