/**
 * OOI Platform V1 — Identity Preview Card.
 *
 * CSS structurel uniquement.
 * La direction artistique reste pilotée par l’intégration UI.
 */

.ooi-identity-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    width: min(380px, calc(100vw - 2rem));
    min-height: 120px;
    padding: 1rem;
    box-sizing: border-box;
    border: 1px solid rgba(128, 197, 207, 0.42);
    border-radius: 18px;
    background: #f8fbfd;
    color: #071426;
    box-shadow:
        0 24px 64px rgba(2, 10, 22, 0.42),
        0 8px 20px rgba(2, 10, 22, 0.22);
}

.ooi-identity-preview__portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #80c5cf;
}

.ooi-identity-preview__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ooi-identity-preview__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ooi-identity-preview__content {
    min-width: 0;
}

.ooi-identity-preview__firstname,
.ooi-identity-preview__profession {
    margin: 0;
}

.ooi-identity-preview__profession {
    margin-top: 0.25rem;
    color: #526174;
}

.ooi-identity-preview__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    color: #4f4ca6;
    font-weight: 800;
    text-decoration: none;
}

.ooi-identity-preview__qr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
}

.ooi-identity-preview__qr-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px dashed currentColor;
    opacity: 0.3;
}

@media (max-width: 480px) {
    .ooi-identity-preview {
        grid-template-columns: 64px minmax(0, 1fr) 48px;
        gap: 0.75rem;
        min-height: 108px;
        padding: 0.8rem;
    }

    .ooi-identity-preview__portrait {
        width: 64px;
        height: 64px;
    }

    .ooi-identity-preview__qr {
        width: 48px;
        height: 48px;
    }
}
