    :root {
        --primary: #1f5eff;
        /* BLEU */
        --primary-2: #0f46e8;
        --text: #0f172a;
        --muted: #64748b;
        --bg: #ffffff;
        --card: #ffffff;
        --soft: #f7f7fb;
        --line: #e9eef7;
        --shadow: 0 10px 25px rgba(15, 23, 42, .08);
        --radius: 22px;
    }

    /* Important pour intégration dans un “cadre” existant */
    html,
    body {
        height: 100%;
    }

    body {
        margin: 0;
        background: transparent;
        font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
        color: var(--text);
    }



    .header {
        text-align: center;
        padding-top: 4px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--line);
    }

    .title {
        margin: 0;
        font-weight: 800;
        font-size: clamp(18px, 2.2vw, 28px);
        letter-spacing: -0.02em;
    }

    .subtitle {
        margin: 6px 0 0;
        color: var(--muted);
        font-size: 13px;
    }

    .form-shell {
        height: 100%;
    }

    .stage {
        height: calc(100% - 78px);
        /* header inclus */
        display: flex;
        align-items: center;
        /* CENTRAGE vertical */
        justify-content: center;
        overflow: hidden;
    }

    .inner-frame {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        /* CENTRAGE vertical */
        justify-content: center;
    }

    .step {
        display: none;
        width: min(620px, 100%);
        height: 100%;
        /* ⬅️ CLÉ */
    }

    .step.active {
        display: flex;
        /* flex pour centrage */
        flex-direction: column;
        justify-content: center;
        /* CENTRAGE vertical */
    }



    .q-head {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 18px;
    }

    .badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 6px;
        background: var(--primary);
        color: white;
        font-weight: 800;
        font-size: 12px;
        box-shadow: 0 6px 14px rgba(31, 94, 255, .25);
    }

    .question {
        margin: 0;
        font-size: clamp(18px, 2vw, 24px);
        font-weight: 800;
        letter-spacing: -0.02em;
    }

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

    @media (max-width: 520px) {
        .grid-2 {
            grid-template-columns: 1fr;
        }
    }

    .choice-card {
        background: #fff6ef00;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 18px 16px;
        cursor: pointer;
        transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
        text-align: center;
        background: #fff;
    }

    .choice-card:hover {
        transform: translateY(-1px);
        border-color: rgba(31, 94, 255, .35);
        box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
    }

    .choice-icon {
        height: 86px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
    }

    .choice-label {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: var(--primary);
        font-weight: 800;
    }

    .pill-letter {
        width: 22px;
        height: 22px;
        border-radius: 999px;
        border: 1px solid rgba(31, 94, 255, .35);
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 800;
        background: rgba(31, 94, 255, .06);
    }

    .list {
        margin-top: 16px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .pill {
        width: 100%;
        border: 1px solid var(--line);
        background: #fff;
        border-radius: 999px;
        padding: 12px 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    }

    .pill:hover {
        transform: translateY(-1px);
        border-color: rgba(31, 94, 255, .35);
        box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
    }

    .pill .pill-letter {
        flex: 0 0 auto;
    }

    .pill span {
        color: var(--primary);
        font-weight: 800;
    }

    .input-wrap {
        margin-top: 12px;
    }

    .helper {
        margin: 6px 0 0;
        color: var(--muted);
        font-size: 13px;
        text-align: center;
    }

    .field {
        width: 100%;
        background: transparent;
        border: 0;
        border-bottom: 2px solid rgba(31, 94, 255, .25);
        padding: 14px 6px;
        font-size: 20px;
        outline: none;
        color: var(--text);
    }

    .field::placeholder {
        color: rgba(31, 94, 255, .45);
        font-weight: 600;
    }

    .field:focus {
        border-bottom-color: var(--primary);
    }

    .actions {
        margin-top: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .btn {
        border: 0;
        background: var(--primary);
        color: #fff;
        font-weight: 800;
        padding: 12px 22px;
        border-radius: 999px;
        cursor: pointer;
        box-shadow: 0 10px 22px rgba(31, 94, 255, .22);
        transition: transform .15s ease, background .15s ease, opacity .15s ease;
    }

    .btn:hover {
        transform: translateY(-1px);
        background: var(--primary-2);
    }

    .btn:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
    }

    .mini {
        background: transparent;
        border: 1px solid var(--line);
        color: var(--muted);
        box-shadow: none;
    }

    .mini:hover {
        background: rgba(15, 23, 42, .03);
        transform: none;
    }

    .phone-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .country {
        display: flex;
        align-items: center;
        gap: 8px;
        border-bottom: 2px solid rgba(31, 94, 255, .25);
        padding: 10px 6px;
        min-width: 92px;
    }

    .flag {
        font-size: 18px;
        line-height: 1;
    }

    .country select {
        border: 0;
        outline: none;
        background: transparent;
        color: var(--text);
        font-weight: 700;
        font-size: 14px;
    }

    .note-error {
        margin-top: 10px;
        color: #b91c1c;
        font-weight: 700;
        text-align: center;
        font-size: 13px;
        display: none;
    }

    .thanks {
        text-align: center;
        padding: 10px 6px;
    }

    .thanks h3 {
        margin: 0 0 8px;
        font-size: 22px;
        font-weight: 900;
        letter-spacing: -0.02em;
    }

    .thanks p {
        margin: 0;
        color: var(--muted);
    }

    /* =========================
   MODE COMPACT (réduction)
   ========================= */

    /* Titre du module */
    .title {
        font-size: clamp(16px, 1.6vw, 22px);
    }

    .subtitle {
        font-size: 12px;
    }

    /* Question */
    .q-head {
        margin-bottom: 12px;
    }

    .badge {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .question {
        font-size: clamp(15px, 1.6vw, 20px);
    }

    /* Cartes (Propriétaire / Locataire) */
    .grid-2 {
        gap: 12px;
        margin-top: 12px;
    }

    .choice-card {
        padding: 12px 12px;
        border-radius: 14px;
    }

    .choice-icon {
        height: 62px;
        /* ↓ réduit */
        margin-bottom: 8px;
    }

    .choice-icon svg {
        width: 110px;
        /* ↓ réduit */
        height: auto;
    }

    .choice-label {
        gap: 8px;
        font-size: 14px;
    }

    .pill-letter {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    /* Réponses en “pill” */
    .list {
        margin-top: 12px;
        gap: 10px;
    }

    .pill {
        padding: 10px 12px;
        /* ↓ réduit */
        gap: 10px;
    }

    .pill span {
        font-size: 14px;
        /* ↓ réduit */
    }

    /* Texte d’aide */
    .helper {
        font-size: 12px;
    }

    /* Champs texte */
    .input-wrap {
        margin-top: 10px;
    }

    .field {
        padding: 10px 6px;
        /* ↓ réduit */
        font-size: 16px;
        /* ↓ réduit */
    }

    /* Téléphone */
    .country {
        padding: 8px 6px;
        min-width: 86px;
    }

    .flag {
        font-size: 16px;
    }

    .country select {
        font-size: 13px;
    }

    /* Boutons */
    .actions {
        margin-top: 14px;
        gap: 10px;
    }

    .btn {
        padding: 10px 18px;
        /* ↓ réduit */
        font-size: 13px;
    }

    /* Merci */
    .thanks h3 {
        font-size: 18px;
    }

    .thanks p {
        font-size: 13px;
    }