﻿.bip-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

    .bip-page-header h1 {
        margin: 0;
        color: #0f172a;
        font-size: 2rem;
    }

    .bip-page-header p {
        margin: 6px 0 0;
        color: #64748b;
    }

.bip-page-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bip-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
}

    .bip-card h2 {
        margin-top: 0;
        margin-bottom: 16px;
        font-size: 1.25rem;
        color: #0f172a;
    }

.bip-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #475569;
}

.bip-empty-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.bip-empty-state h3 {
    margin: 0 0 8px;
    color: #0f172a;
}

.bip-empty-state p {
    margin: 0;
}

.bip-empty-actions {
    margin-top: 20px;
}

.bip-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    padding: 24px;
}

.bip-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #dbe4ea;
    border-top-color: #137466;
    border-radius: 50%;
    animation: bip-spin 0.8s linear infinite;
}

@keyframes bip-spin {
    to {
        transform: rotate(360deg);
    }
}

.bip-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.bip-status-success {
    background: #dcfce7;
    color: #166534;
}

.bip-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.bip-status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.bip-status-info {
    background: #dbeafe;
    color: #1e40af;
}

.bip-status-neutral {
    background: #e2e8f0;
    color: #334155;
}

.bip-search-box input {
    width: 100%;
    min-width: 260px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    outline: none;
}

    .bip-search-box input:focus {
        border-color: #137466;
        box-shadow: 0 0 0 3px rgba(19, 116, 102, 0.12);
    }

.bip-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.bip-confirm-box {
    width: min(420px, calc(100vw - 32px));
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

    .bip-confirm-box h3 {
        margin: 0 0 8px;
    }

    .bip-confirm-box p {
        color: #475569;
    }

.bip-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.bip-button-secondary,
.bip-button-danger,
.bip-button-primary {
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.bip-button-primary {
    background: #137466;
    color: white;
}

    .bip-button-primary:hover {
        background: #0f5f54;
    }

.bip-button-secondary {
    background: #e2e8f0;
    color: #334155;
}

.bip-button-danger {
    background: #dc2626;
    color: white;
}

/* 18/11 : étapes du choix d'un logement (accord, coordonnées, code) et code à 6 chiffres, mêmes visuels partout. */
.bip-etape {
    margin: 14px 0 4px;
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(30, 58, 138, .08);
    text-align: left;
}
.bip-etape-tete {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
}
.bip-etape-tete .bip-etape-icone {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    font-size: 1.05rem;
}
.bip-etape-tete strong { display: block; font-size: 1rem; }
.bip-etape-tete small { display: block; opacity: .85; font-size: .8rem; margin-top: 2px; }
.bip-etape-tete .bip-etape-pas { margin-left: auto; flex: none; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 600; }
.bip-etape-corps { padding: 16px 18px 18px; }
.bip-etape-corps p { margin: 0 0 12px; color: #334155; font-size: .9rem; }
.bip-etape-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bip-etape-grille input {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: .92rem;
    background: #f8fafc;
}
.bip-etape-grille input:focus, .bip-otp-code:focus { outline: none; border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.bip-otp-code,
.bip-login input.bip-otp-code {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 4px 0 12px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: .45em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.bip-otp-code::placeholder { color: #cbd5e1; letter-spacing: .45em; }
.bip-etape-bouton {
    border: none;
    border-radius: 12px;
    padding: 11px 18px;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 118, 110, .25);
}
.bip-etape-bouton:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.bip-etape-note { font-size: .82rem; color: #64748b; margin-top: 10px; }
