/* ============================================================
   Immo Estimateur – Styles front-end (résultat d'estimation)
   ============================================================ */

/* ── Loader ──────────────────────────────────────────────── */
.immo-front-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    font-size: 1rem;
    color: #475569;
}

.immo-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #cbd5e1;
    border-top-color: #1e40af;
    border-radius: 50%;
    animation: immo-spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes immo-spin {
    to { transform: rotate(360deg); }
}

/* ── Carte résultat ──────────────────────────────────────── */
.immo-front-result {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    margin: 32px 0;
    font-family: inherit;
}

/* ── En-tête ─────────────────────────────────────────────── */
.immo-front-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
    padding: 28px 32px 24px;
}

.immo-front-header h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff !important;
    border: none !important;
}

.immo-front-location {
    margin: 0;
    opacity: .85;
    font-size: .95rem;
}

/* ── Fourchette ──────────────────────────────────────────── */
.immo-front-fourchette {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.immo-front-min,
.immo-front-centrale,
.immo-front-max {
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.immo-front-centrale {
    background: #f0f9ff;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.immo-front-label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
}

.immo-front-montant {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

.immo-front-montant--main {
    font-size: 1.85rem;
    color: #1e40af;
}

/* ── Détail ──────────────────────────────────────────────── */
.immo-front-detail {
    padding: 20px 32px 8px;
    color: #475569;
    font-size: .9rem;
}

.immo-front-detail p {
    margin: 0 0 8px;
}

/* ── Disclaimer ──────────────────────────────────────────── */
.immo-front-disclaimer {
    margin: 0 !important;
    padding: 12px 32px 20px;
    font-size: .78rem;
    color: #94a3b8;
    font-style: italic;
}

/* ── Erreur ──────────────────────────────────────────────── */
.immo-front-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px 20px;
    color: #991b1b;
    margin: 20px 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .immo-front-fourchette {
        grid-template-columns: 1fr;
    }

    .immo-front-centrale {
        border-left: none;
        border-right: none;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
    }

    .immo-front-header,
    .immo-front-detail,
    .immo-front-disclaimer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .immo-front-montant--main {
        font-size: 1.5rem;
    }
}

/* ─── Fourchette sans valeur centrale (v2.11+) ────────────────────── */
.immo-front-fourchette--range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px 20px;
    background: #fff;
}

.immo-front-fourchette--range .immo-front-min,
.immo-front-fourchette--range .immo-front-max {
    flex: 1;
    text-align: center;
    padding: 20px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: transform .2s ease;
}

.immo-front-fourchette--range .immo-front-min:hover,
.immo-front-fourchette--range .immo-front-max:hover {
    transform: translateY(-2px);
}

.immo-front-fourchette--range .immo-front-label {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.immo-front-fourchette--range .immo-front-montant {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.immo-front-separator {
    font-size: 1.5rem;
    color: #94a3b8;
    font-weight: 300;
    flex: 0 0 auto;
}

.immo-front-empty {
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

@media (max-width: 600px) {
    .immo-front-fourchette--range {
        flex-direction: column;
        gap: 12px;
        padding: 20px 16px;
    }
    .immo-front-separator { display: none; }
    .immo-front-fourchette--range .immo-front-montant { font-size: 1.5rem; }
}
