/* ============================================
   REAL ESTATE SECTION V2 - Propriétés & Biens
   Design Premium & Typographie Elégante
   ============================================ */

.immo-v2-section {
    background: #fff;
    font-family: Montserrat, sans-serif;
}

.immo-v2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px;
}

/* Bouton En savoir plus header */
.immo-header-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    background: transparent;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-left: 6px;
    white-space: nowrap;
}

.immo-header-more-btn:hover {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 6px 16px rgba(59,130,246,0.3);
}

/* Grille immobilière */
.immo-v2-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

/* Carte propriété */
.immo-v2-card {
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.immo-v2-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.immo-v2-card-img {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.immo-v2-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.immo-v2-card:hover .immo-v2-card-img img {
    transform: scale(1.1);
}

.immo-v2-img-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 12px;
    color: #1a3a8f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 2;
}

.immo-v2-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.immo-v2-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
}

.immo-v2-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 14px;
}

.immo-v2-location i {
    color: #ef4444;
}

.immo-v2-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.immo-v2-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
}

.immo-v2-feature-item i {
    color: #1a3a8f;
    font-size: 16px;
}

.immo-v2-price {
    font-size: 20px;
    font-weight: 800;
    color: #1a3a8f;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.immo-v2-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.immo-v2-btn:hover {
    background: #1a3a8f;
    transform: scale(1.05);
}

/* Bloc Agent */
.immo-v2-agent-cta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 35px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.immo-v2-agent-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.immo-v2-agent-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.immo-v2-agent-details h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #0f172a;
}

.immo-v2-agent-details p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.immo-v2-contact-btn {
    background: linear-gradient(135deg, #1a3a8f 0%, #2d5cc2 100%);
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(26, 58, 143, 0.2);
}

.immo-v2-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(26, 58, 143, 0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ≤ 1200px : 3 colonnes */
@media (max-width: 1200px) {
    .immo-v2-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ≤ 1024px : 2 colonnes */
@media (max-width: 1024px) {
    .immo-v2-container {
        padding: 40px 24px;
    }

    .immo-v2-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
        margin-bottom: 40px;
    }

    .immo-v2-card {
        border-radius: 22px;
    }

    .immo-v2-card-img {
        height: 220px;
    }

    .immo-v2-card-content {
        padding: 22px;
    }

    .immo-v2-card-title {
        font-size: 20px;
    }
}

/* ≤ 768px : 2 colonnes serrées, cartes plus compactes */
@media (max-width: 768px) {
    .immo-v2-container {
        padding: 28px 16px;
    }

    .immo-header-more-btn {
        display: none;
    }

    .immo-v2-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 32px;
    }

    .immo-v2-card {
        border-radius: 18px;
    }

    .immo-v2-card-img {
        height: 170px;
    }

    .immo-v2-img-badge {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 10px;
    }

    .immo-v2-card-content {
        padding: 16px;
    }

    .immo-v2-price {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .immo-v2-card-title {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .immo-v2-location {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .immo-v2-features {
        gap: 10px;
        padding: 10px 0;
        margin-bottom: 16px;
    }

    .immo-v2-feature-item {
        font-size: 11px;
        gap: 5px;
    }

    .immo-v2-feature-item i {
        font-size: 13px;
    }

    .immo-v2-btn {
        padding: 10px 16px;
        font-size: 12px;
        gap: 6px;
    }

    /* Bloc agent empilé et compact */
    .immo-v2-agent-cta {
        flex-direction: column;
        text-align: center;
        padding: 24px 18px;
        border-radius: 20px;
        gap: 20px;
    }

    .immo-v2-agent-info {
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }

    .immo-v2-agent-img {
        width: 82px;
        height: 82px;
    }

    .immo-v2-agent-details h4 {
        font-size: 18px;
    }

    .immo-v2-agent-details p {
        font-size: 13px;
    }

    .immo-v2-contact-btn {
        width: 100%;
        text-align: center;
        padding: 13px 20px;
        font-size: 14px;
    }
}

/* ≤ 560px : 1 colonne pleine largeur (lisibilité maximale) */
@media (max-width: 560px) {
    .immo-v2-container {
        padding: 22px 12px;
    }

    .immo-v2-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .immo-v2-card {
        border-radius: 16px;
    }

    .immo-v2-card-img {
        height: 200px;
    }

    .immo-v2-card-content {
        padding: 18px;
    }

    .immo-v2-card-title {
        font-size: 19px;
    }

    .immo-v2-price {
        font-size: 19px;
    }

    .immo-v2-features {
        gap: 14px;
    }

    .immo-v2-feature-item {
        font-size: 12px;
    }

    .immo-v2-btn {
        font-size: 13px;
        padding: 11px 18px;
    }
}

/* ≤ 380px : très petits écrans */
@media (max-width: 380px) {
    .immo-v2-container {
        padding: 18px 10px;
    }

    .immo-v2-card-img {
        height: 180px;
    }

    .immo-v2-card-content {
        padding: 14px;
    }

    .immo-v2-features {
        gap: 10px;
    }

    .immo-v2-agent-img {
        width: 72px;
        height: 72px;
    }
}
