/* Parcours de captation de leads : habillage aligné sur le style global du site (global.css) */

.lead-gate {
    --lg-brand: var(--primary-color, #3f4079);
    --lg-brand-hover: #696ab0;
    --lg-teal: var(--secondary-color, #3aa9b4);
    --lg-soft: #f0f0f8;
    --lg-bg: #f8f9fb;
    --lg-ok: #1f7a4a;
    --lg-ok-soft: #e4f4ea;
    --lg-warn: #946200;
    --lg-warn-soft: #fff4d9;
    --lg-err: #c0392b;
    --lg-err-soft: #fdeceb;
    --lg-line: #e4e6eb;
    --lg-field: #696969;
    --lg-title: #3f3f3f;
    --lg-ink: var(--color-gray-600, #4b5563);
    --lg-muted: #7b8190;
    --lg-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --lg-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    margin-top: 2rem;
    color: var(--lg-ink);
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 15px;
    line-height: 1.5;
}

.lead-gate *,
.lead-gate *::before,
.lead-gate *::after {
    box-sizing: border-box;
}

.lead-gate [hidden] {
    display: none !important;
}

/* ---------- jauge de consultations ---------- */
.lg-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--lg-shadow);
    font-size: 14px;
}

.lg-bar strong {
    color: var(--lg-title);
    font-weight: 600;
}

.lg-grow {
    flex: 1;
    min-width: 160px;
}

.lg-dots {
    display: flex;
    gap: 4px;
    flex: none;
}

.lg-dots i {
    width: 22px;
    height: 6px;
    border-radius: 3px;
    background: var(--lg-line);
}

.lg-dots i.on {
    background: var(--lg-brand);
}

.lg-unlock .lg-dots i.on {
    background: var(--lg-teal);
}

/* ---------- cartes ---------- */
.lg-card {
    margin-bottom: 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--lg-shadow);
    overflow: hidden;
}

.lg-pad,
.lg-otp,
.lg-confirm {
    padding: 24px;
}

.lg-gate-h {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px 24px;
    background: var(--lg-soft);
}

.lg-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--lg-brand);
    color: #fff;
}

.lg-gate-h h2 {
    margin: 0;
    color: var(--lg-title);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

.lg-gate-h p {
    margin: 2px 0 0;
    font-size: 13.5px;
    color: var(--lg-muted);
}

.lg-opts {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
}

.lg-opt {
    padding: 22px 24px;
}

.lg-opt+.lg-opt {
    border-left: 1px solid var(--lg-line);
}

.lg-opt h3 {
    margin: 0 0 6px;
    color: var(--lg-title);
    font-size: 17px;
    font-weight: 500;
}

.lg-k {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lg-teal);
}

.lg-lead {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--lg-ink);
}

.lg-note {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--lg-muted);
}

.lg-small {
    font-size: 13px;
    color: var(--lg-muted);
}

.lg-title {
    margin: 0 0 6px;
    color: var(--lg-title);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
}

.lg-serif {
    font-family: inherit;
}

/* ---------- boutons & liens (pilules, comme « Espace client » / « Je m'inscris ») ---------- */
.lead-gate .lg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 24px;
    border: 1px solid var(--lg-brand);
    border-radius: 50px;
    background: #fff;
    color: var(--lg-brand) !important;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.lead-gate .lg-btn:hover {
    background: var(--lg-soft);
}

.lead-gate .lg-btn:disabled {
    opacity: .6;
    cursor: progress;
}

.lead-gate .lg-primary {
    background: var(--lg-brand);
    color: #fff !important;
}

.lead-gate .lg-primary:hover {
    background: var(--lg-teal);
    border-color: var(--lg-teal);
}

.lead-gate .lg-accent {
    background: var(--lg-teal);
    border-color: var(--lg-teal);
    color: #fff !important;
}

.lead-gate .lg-accent:hover {
    background: var(--lg-brand);
    border-color: var(--lg-brand);
}

.lead-gate .lg-block {
    display: flex;
    width: 100%;
}

.lead-gate .lg-sm {
    min-height: 34px;
    padding: 6px 16px;
    font-size: 12.5px;
}

.lead-gate .lg-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--lg-brand);
    font: inherit;
    font-size: 13.5px;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.lead-gate .lg-link:hover {
    color: var(--lg-teal);
}

.lead-gate .lg-link:disabled {
    color: var(--lg-muted);
    text-decoration: none;
    cursor: default;
}

.lg-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* ---------- formulaires (champs comme global.css : bordure grise, rayon 6px) ---------- */
.lg-field {
    margin-bottom: 14px;
    min-width: 0;
}

.lg-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--lg-title);
    font-size: 13px;
    font-weight: 500;
}

.lg-field label i {
    font-style: normal;
    font-weight: 400;
    color: var(--lg-muted);
}

.lead-gate .lg-field input {
    display: block;
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--lg-field);
    border-radius: 6px;
    background: #fff;
    color: #000;
    font: inherit;
    font-size: 15px;
    line-height: 1.3;
    outline: none;
}

.lead-gate .lg-field input::placeholder {
    color: #9aa0ad;
}

.lead-gate .lg-field input:focus {
    border-color: var(--lg-brand);
    box-shadow: 0 0 0 3px var(--lg-soft);
}

.lead-gate .lg-field input[readonly] {
    background: var(--lg-bg);
    color: var(--lg-muted);
    border-color: var(--lg-line);
}

.lead-gate .is-invalid {
    border-color: var(--lg-err) !important;
}

.lead-gate button:focus-visible,
.lead-gate a:focus-visible {
    outline: 3px solid var(--lg-soft);
    outline-offset: 2px;
}

.lg-fe {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--lg-err);
}

.lg-fe:empty {
    display: none;
}

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

.lg-check-l {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--lg-ink);
    cursor: pointer;
}

.lg-check-l input {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--lg-brand);
}

.lead-gate form.is-busy {
    opacity: .75;
}

/* ---------- code OTP ---------- */
.lg-otp {
    max-width: 540px;
    margin-inline: auto;
}

.lg-codes {
    display: flex;
    gap: 8px;
    margin: 16px 0 8px;
}

.lead-gate .lg-codes input {
    flex: 1 1 0;
    min-width: 0;
    max-width: 48px;
    height: 56px;
    padding: 0;
    text-align: center;
    border: 1px solid var(--lg-field);
    border-radius: 6px;
    background: #fff;
    color: #000;
    font: 600 22px/1 var(--lg-mono);
    outline: none;
}

.lead-gate .lg-codes input:focus {
    border-color: var(--lg-brand);
    box-shadow: 0 0 0 3px var(--lg-soft);
}

.lg-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--lg-muted);
}

.lg-democode {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 8px 14px;
    border: 1px dashed #e0b44c;
    border-radius: 10px;
    background: var(--lg-warn-soft);
    color: var(--lg-warn);
    font-size: 12.5px;
}

.lg-democode code {
    font: 700 16px/1 var(--lg-mono);
    letter-spacing: .2em;
    color: var(--lg-title);
}

/* ---------- alertes ---------- */
.lg-alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.lg-alert-api {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.lg-ok {
    background: var(--lg-ok-soft);
    color: var(--lg-ok);
}

.lg-warn {
    background: var(--lg-warn-soft);
    color: var(--lg-warn);
}

.lg-err {
    background: var(--lg-err-soft);
    color: var(--lg-err);
}

/* ---------- essai 48h ---------- */
.lg-hero {
    padding: 24px;
    background: linear-gradient(135deg, var(--lg-brand) 0%, var(--lg-brand-hover) 100%);
    color: #fff;
}

.lg-hero .lg-kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .85;
}

.lg-hero .lg-title {
    margin: 6px 0;
    color: #fff;
    font-size: 24px;
}

.lg-hero p {
    margin: 0;
    opacity: .95;
    font-size: 15px;
}

.lg-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
}

.lg-perks li::before {
    content: "\2713\00a0";
    font-weight: 700;
}

.lg-trial-body {
    padding: 22px 24px;
}

.lg-trial-body form {
    margin-top: 18px;
}

/* ---------- confirmation ---------- */
.lg-confirm {
    text-align: center;
}

.lg-big {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--lg-ok-soft);
    color: var(--lg-ok);
}

.lg-kv {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    max-width: 380px;
    margin: 18px auto;
    text-align: left;
    font-size: 14px;
}

.lg-kv dt {
    color: var(--lg-muted);
}

.lg-kv dd {
    margin: 0;
    color: var(--lg-title);
    font-weight: 600;
}

.lead-gate .lg-ico {
    flex: none;
}

/* ---------- contenu de démonstration (moteur « session ») ---------- */
.lead-demo h3 {
    margin: 18px 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #3f3f3f;
}

.lead-demo p {
    margin: 0 0 8px;
}

.lead-demo-ribbon {
    margin-top: 22px;
    padding-top: 12px;
    border-top: 1px solid #e4e6eb;
    color: #7b8190;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 760px) {
    .lg-opts {
        grid-template-columns: minmax(0, 1fr);
    }

    .lg-opt+.lg-opt {
        border-left: 0;
        border-top: 1px solid var(--lg-line);
    }

    .lg-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .lg-pad,
    .lg-otp,
    .lg-confirm {
        padding: 18px;
    }

    .lg-codes {
        gap: 5px;
    }

    .lead-gate .lg-codes input {
        height: 48px;
        font-size: 19px;
    }

    .lead-gate .lg-actions .lg-btn {
        width: 100%;
    }
}

/* ---------- langues RTL ---------- */
[dir=rtl] .lg-codes {
    direction: ltr;
}

[dir=rtl] .lg-opt+.lg-opt {
    border-left: 0;
    border-right: 1px solid var(--lg-line);
}