.ooi-identity-profile {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 24px;
}

.ooi-identity-profile__card,
.ooi-identity-profile__history {
    width: 100%;
}

.ooi-identity-profile .ooi-identity-card {
    max-width: none;
}

.ooi-identity-profile__empty {
    padding: 18px;
    border: 1px dashed rgba(114, 112, 172, .30);
    border-radius: 16px;
    background: rgba(114, 112, 172, .05);
    color: rgba(7, 20, 38, .66);
    font-size: 14px;
}

.ooi-identity-profile-error {
    padding: 14px 16px;
    border: 1px solid #D99E82;
    border-radius: 10px;
    background: #fff8f4;
}

@media (max-width: 520px) {
    .ooi-identity-profile {
        gap: 18px;
    }
}

/**
 * OOI Platform V1 — Identity Profile V2
 */


/* =========================================================
   PROFIL GLOBAL
========================================================= */

.ooi-identity-profile--v2 {
    display: flex;
    width: 100%;
    max-width: var(--ooi-container);
    margin: 0 auto;
    flex-direction: column;
    gap: clamp(
        var(--ooi-space-lg),
        4vw,
        var(--ooi-space-xxl)
    );
    color: var(--ooi-text);
}


/* =========================================================
   SECTIONS
========================================================= */

.ooi-identity-profile__section {
    position: relative;
    width: 100%;
    min-width: 0;
}

.ooi-identity-profile__section > * {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.ooi-identity-profile__section--hero {
    position: relative;
    z-index: 3;
}

.ooi-identity-profile__section--timeline {
    position: relative;
    z-index: 4;
}

.ooi-identity-profile__section--expertise {
    position: relative;
    z-index: 3;
}

.ooi-identity-profile__section--network {
    position: relative;
    z-index: 2;
}

.ooi-identity-profile__section--ooi-card {
    position: relative;
    z-index: 1;
}


/* =========================================================
   CONTINUITÉ VISUELLE
========================================================= */

.ooi-identity-profile__section--hero
.ooi-identity-card,
.ooi-identity-profile__section--timeline
.ooi-identity-timeline,
.ooi-identity-profile__section--expertise
.ooi-identity-expertise,
.ooi-identity-profile__section--network
.ooi-identity-network,
.ooi-identity-profile__section--ooi-card
.ooi-identity-ooi-card {
    max-width: none;
}

.ooi-identity-profile__section--hero
.ooi-identity-card {
    box-shadow: var(--ooi-shadow-lg);
}


/* =========================================================
   ÉTATS ADMINISTRATEUR
========================================================= */

.ooi-identity-profile__admin-empty {
    padding: var(--ooi-space-md) var(--ooi-space-lg);
    border: 1px dashed rgba(114, 112, 172, .30);
    border-radius: var(--ooi-radius-md);
    background: rgba(114, 112, 172, .04);
    color: var(--ooi-text-light);
    font-size: var(--ooi-font-sm);
    line-height: 1.5;
}

.ooi-identity-profile__admin-empty strong {
    color: var(--ooi-text);
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 620px) {

    .ooi-identity-profile--v2 {
        gap: var(--ooi-space-lg);
    }

    .ooi-identity-profile__admin-empty {
        padding: var(--ooi-space-md);
    }
}

/*
 * La fiche publique se lit comme un seul parcours.
 * Le hero reste dominant ; les preuves du parcours se prolongent dessous
 * sans recréer une succession de tableaux administratifs.
 */
.ooi-identity-profile {
    gap: clamp(28px, 4vw, 52px);
}

.ooi-identity-profile__section--hero {
    position: relative;
    z-index: 2;
}

.ooi-identity-profile__section--timeline,
.ooi-identity-profile__section--network {
    position: relative;
    z-index: 1;
}

.ooi-identity-profile__section--timeline::before,
.ooi-identity-profile__section--network::before {
    position: absolute;
    top: calc(clamp(28px, 4vw, 52px) * -1);
    left: clamp(30px, 8vw, 120px);
    width: 1px;
    height: clamp(28px, 4vw, 52px);
    background: linear-gradient(
        180deg,
        rgba(128, 197, 207, .45),
        rgba(114, 112, 172, .10)
    );
    content: "";
}

.ooi-identity-profile__admin-empty,
.ooi-identity-profile__section--expertise,
.ooi-identity-profile__section--ooi-card {
    display: none !important;
}
