/* Masquer le titre natif WordPress sur la page estimation */
.page-id-1956 .entry-title,
.page-id-1956 .et_pb_title_container,
.page-id-1956 h1.entry-title {
    display: none !important;
}

.dp-immo-estimator {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 0 90px;
}

.dp-immo-hero {
    text-align: center;
    margin-bottom: 30px;
}

.dp-immo-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.dp-immo-hero h1 {
    margin: 0 0 14px;
    font-size: 54px;
    line-height: 1.02;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.dp-immo-hero p {
    margin: 0 auto;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.7;
    color: #64748b;
}

/* Progression */
.dp-progress-wrap {
    position: sticky;
    top: 16px;
    z-index: 8;
    margin-bottom: 26px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 14px 34px rgba(15,23,42,0.08);
}

.dp-progress-bar {
    width: 100%;
    height: 12px;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 999px;
    overflow: hidden;
}

.dp-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0f172a 0%, #1d4ed8 55%, #38bdf8 100%);
    border-radius: 999px;
    transition: width .45s ease;
    box-shadow: 0 8px 18px rgba(29,78,216,0.25);
}

.dp-progress-text {
    margin-top: 10px;
    font-size: 13px;
    color: #475569;
    text-align: right;
    font-weight: 700;
}

/* Flow */
.dp-immo-flow {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dp-question {
    opacity: 0;
    transform: translateY(18px);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease, max-height .5s ease;
}

.dp-question.is-active {
    opacity: 1;
    transform: translateY(0);
    max-height: 2400px;
    overflow: visible;
    pointer-events: auto;
}

/* Cards */
.dp-question-card,
.dp-result-card {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    padding: 34px;
    box-shadow:
        0 24px 60px rgba(15,23,42,0.08),
        0 8px 18px rgba(15,23,42,0.04);
}

.dp-question-step,
.dp-result-badge {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 16px;
}

.dp-question-step {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.dp-result-badge {
    background: linear-gradient(90deg, rgba(29,78,216,0.10), rgba(56,189,248,0.14));
    color: #1d4ed8;
    border: 1px solid rgba(29,78,216,0.10);
}

.dp-question-card h2,
.dp-result-card h2 {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #0f172a;
    font-weight: 900;
}

.dp-question-subtitle {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
}

/* Grid */
.dp-choice-grid {
    display: grid;
    gap: 14px;
}

.dp-choice-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dp-choice-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dp-choice-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dp-choice-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Choices */
.dp-choice-card,
.dp-choice-pill {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    border-radius: 22px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
    box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}

.dp-choice-card:hover,
.dp-choice-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 78, 216, 0.28);
    box-shadow: 0 18px 32px rgba(15,23,42,0.08);
}

.dp-choice-card.is-featured {
    border-color: rgba(29,78,216,0.25);
    box-shadow: 0 14px 30px rgba(29,78,216,0.08);
}

.dp-choice-card.is-selected,
.dp-choice-pill.is-selected {
    background: linear-gradient(135deg, #0f172a 0%, #172554 60%, #1d4ed8 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 22px 40px rgba(15,23,42,0.22);
}

.dp-choice-card strong,
.dp-choice-pill strong {
    display: block;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
}

.dp-choice-card span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: inherit;
    opacity: .92;
}

.dp-choice-kicker {
    font-size: 11px !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .75;
    margin-bottom: 8px;
}

.dp-choice-pill {
    text-align: center;
    padding: 16px 10px;
    border-radius: 18px;
    font-weight: 900;
}

/* Inputs */
.dp-input-wrap {
    position: relative;
}

.dp-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
    align-items: center;
}

.dp-input {
    width: 100%;
    min-height: 64px;
    border-radius: 20px !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
    box-shadow: 0 10px 24px rgba(15,23,42,0.04);
    padding: 0 20px !important;
    font-size: 18px !important;
    color: #0f172a !important;
}

.dp-input:focus {
    outline: none;
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 4px rgba(29,78,216,0.10);
}

.dp-input-suffix {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    color: #64748b;
    pointer-events: none;
}

.dp-input-validate {
    min-height: 64px;
    width: 100%;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a 0%, #172554 60%, #1d4ed8 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(15,23,42,0.16);
    transition: transform .18s ease, box-shadow .18s ease;
}

.dp-input-validate:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(15,23,42,0.22);
}

/* Form */
.dp-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.dp-checkbox-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dp-check-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 0 18px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(15,23,42,0.04);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
    overflow: hidden;
}

.dp-check-card:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 78, 216, 0.28);
    box-shadow: 0 16px 28px rgba(15,23,42,0.08);
}

.dp-check-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #1d4ed8;
    flex: 0 0 auto;
}

.dp-check-card span {
    font-weight: 800;
    color: #0f172a;
}

.dp-check-card.is-checked {
    border-color: rgba(29, 78, 216, 0.45);
    background: linear-gradient(135deg, rgba(29,78,216,0.08) 0%, rgba(56,189,248,0.10) 100%);
    box-shadow: 0 18px 34px rgba(29,78,216,0.10);
}

/* Buttons */
.dp-question-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.dp-next-manual,
.dp-submit-btn {
    min-height: 58px;
    padding: 0 24px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a 0%, #172554 60%, #1d4ed8 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.dp-next-manual:hover,
.dp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(15,23,42,0.24);
}

.dp-submit-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 12px 26px rgba(15,23,42,.08);
    text-align: center;
}

.dp-submit-btn-secondary:hover {
    background: #fff;
}

/* Consent */
.dp-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.dp-consent input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #1d4ed8;
}

.dp-legal-note {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

.dp-auto-estimate-loader {
    margin-top: 16px;
    font-size: 14px;
    color: #475569;
    font-weight: 700;
    text-align: center;
}

/* Result */
.dp-result-card {
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(56,189,248,0.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(29,78,216,0.10), transparent 20%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dp-result-card h2 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.dp-result-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    align-items: stretch;
}

.dp-result-box {
    min-height: 164px;
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dp-result-box.is-main {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #172554 55%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 24px 46px rgba(15,23,42,0.18);
    transform: scale(1.02);
}

.dp-result-box.is-main::before {
    content: "Le plus probable";
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    min-height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.dp-result-box span {
    display: block;
    font-size: 13px;
    opacity: .84;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dp-result-box strong {
    display: block;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.dp-result-explain {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
}

.dp-result-note {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.dp-result-contact-cta {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 980px) {
    .dp-choice-grid-3,
    .dp-choice-grid-4,
    .dp-choice-grid-5,
    .dp-result-values,
    .dp-checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dp-input-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .dp-immo-estimator {
        padding: 10px 0 60px;
    }

    .dp-immo-hero h1 {
        font-size: 36px;
    }

    .dp-immo-hero p {
        font-size: 16px;
    }

    .dp-progress-wrap {
        top: 10px;
        padding: 14px;
        border-radius: 18px;
    }

    .dp-question-card,
    .dp-result-card {
        padding: 22px;
        border-radius: 24px;
    }

    .dp-question-card h2,
    .dp-result-card h2 {
        font-size: 28px;
    }

    .dp-choice-grid-2,
    .dp-choice-grid-3,
    .dp-choice-grid-4,
    .dp-choice-grid-5,
    .dp-form-grid,
    .dp-result-values,
    .dp-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .dp-input {
        min-height: 58px;
        font-size: 16px !important;
    }

    .dp-result-box strong {
        font-size: 28px;
    }
}

.dp-feedback-message {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 700;
    border: 1px solid transparent;
    box-shadow: 0 12px 24px rgba(15,23,42,0.05);
}

.dp-feedback-message.is-success {
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
    border-color: rgba(16, 185, 129, 0.22);
    color: #065f46;
}

.dp-feedback-message.is-error {
    background: linear-gradient(180deg, #fef2f2 0%, #fff1f2 100%);
    border-color: rgba(239, 68, 68, 0.20);
    color: #991b1b;
}

.dp-feedback-message.is-info {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
    border-color: rgba(29, 78, 216, 0.16);
    color: #1e3a8a;
}

.dp-center-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.dp-center-subtitle {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.dp-result-badge-center {
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.dp-estimate-disclaimer-card .dp-consent {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.dp-estimate-disclaimer-card .dp-legal-note {
    text-align: center;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.dp-question-actions-center {
    justify-content: center;
}

.dp-form-grid-full {
    grid-column: 1 / -1;
}

#dp-contact-feedback {
    max-width: 720px;
    margin: 18px auto 0;
    text-align: center;
}

.dp-question-actions-center .dp-submit-btn {
    min-width: 320px;
}

@media (max-width: 767px) {
    .dp-question-actions-center .dp-submit-btn {
        width: 100%;
        min-width: 0;
    }
}

#dp-estimate-feedback {
    max-width: 760px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 15px;
    padding: 18px 22px;
}