/* CRM Immobilier - Styles */

:root {
    --stage-nouveau:  #6c757d;
    --stage-en-cours: #0d6efd;
    --stage-conclu:   #198754;
}

/* Layout */
body {
    background-color: #f4f6f9;
    font-size: 0.9rem;
}

main.container-fluid {
    max-width: 1400px;
}

/* Kanban Pipeline */
.pipeline-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    align-items: flex-start;
}

.pipeline-column {
    flex: 0 0 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    overflow: hidden;
}

.pipeline-column-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.pipeline-column-header.stage-nouveau   { background: var(--stage-nouveau); }
.pipeline-column-header.stage-en_cours  { background: var(--stage-en-cours); }
.pipeline-column-header.stage-conclu    { background: var(--stage-conclu); }

.pipeline-cards {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 80px;
}

.contact-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: box-shadow .15s, border-color .15s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    border-color: #cbd5e1;
    color: inherit;
    text-decoration: none;
}

.contact-card .card-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.contact-card .card-meta {
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

/* Badges */
.badge { font-size: 0.72rem; }

/* Fiche contact */
.contact-header {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Liste de biens */
.property-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    overflow: hidden;
    transition: box-shadow .15s;
    height: 100%;
}

.property-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.14);
}

.property-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.property-card .property-body {
    padding: 0.75rem;
}

.property-card .property-price {
    font-weight: 700;
    font-size: 1rem;
    color: #0d6efd;
}

/* Matching badge */
.match-badge {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Notes */
.note-item {
    background: #f8fafc;
    border-left: 3px solid #0d6efd;
    border-radius: 0 6px 6px 0;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.6rem;
}

.note-item .note-meta {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Filtres */
.filter-bar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Stats */
.stat-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    padding: 1.25rem;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 0.25rem;
}

/* Login */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.login-box {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

/* Table responsive */
.table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    font-weight: 600;
    background: #f8fafc;
}

/* Action buttons */
.btn-action {
    padding: 0.2rem 0.5rem;
    font-size: 0.78rem;
}

/* Responsive */
@media (max-width: 768px) {
    .pipeline-board {
        flex-direction: column;
    }
    .pipeline-column {
        flex: none;
        width: 100%;
    }
}
