.pskorg-organigramme {
    --pskorg-indigo: #0B0B36;
    --pskorg-indigo-clair: #9BA3D4;
    --pskorg-bleu: #00B0F4;
    --pskorg-bleu-fonce: #042C53;
    --pskorg-bleu-clair: #E6F1FB;
    --pskorg-vert: #00CC92;
    --pskorg-vert-fonce: #04342C;
    --pskorg-vert-clair: #EAF3DE;
    --pskorg-gris-fond: #F7F9FC;
    --pskorg-bordure: #E2E6ED;
    --pskorg-texte-att: #8A90A0;
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 12px;
    box-sizing: border-box;
}
.pskorg-organigramme * {
    box-sizing: border-box;
}

/* --- Carrousels (postes clés) --- */
.pskorg-carousel {
    background: var(--pskorg-indigo);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 0 auto 20px auto;
    max-width: 420px;
}
.pskorg-carousel-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--pskorg-vert);
    margin-bottom: 12px;
}
.pskorg-carousel-slide {
    display: flex;
    align-items: center;
    gap: 16px;
}
.pskorg-carousel-texte .pskorg-nom {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}
.pskorg-carousel-texte .pskorg-poste {
    color: var(--pskorg-indigo-clair);
    font-size: 13px;
    margin-top: 2px;
}
.pskorg-carousel-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
}
.pskorg-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3C3489;
    cursor: pointer;
    transition: background 0.2s ease;
}
.pskorg-dot-actif {
    background: var(--pskorg-vert);
}

/* --- Groupes en grille --- */
.pskorg-niveau-groupe {
    margin-bottom: 28px;
}
.pskorg-niveau-titre {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--pskorg-texte-att);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.pskorg-grille {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.pskorg-carte {
    background: #fff;
    border: 0.5px solid var(--pskorg-bordure);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 230px;
    flex: 1 1 230px;
    max-width: 320px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pskorg-carte:hover {
    box-shadow: 0 4px 16px rgba(11, 11, 54, 0.08);
    transform: translateY(-2px);
}
.pskorg-carte .pskorg-nom {
    font-size: 14px;
    font-weight: 600;
    color: var(--pskorg-indigo);
}
.pskorg-carte .pskorg-poste {
    font-size: 12.5px;
    color: var(--pskorg-texte-att);
    margin-top: 2px;
}

/* Réduction progressive de la taille selon le niveau (repère visuel de hiérarchie) */
.pskorg-taille-1 .pskorg-carte { padding: 16px 20px; }
.pskorg-taille-1 .pskorg-avatar { width: 56px; height: 56px; font-size: 16px; }
.pskorg-taille-2 .pskorg-carte { padding: 12px 16px; }
.pskorg-taille-2 .pskorg-avatar { width: 46px; height: 46px; font-size: 14px; }
.pskorg-taille-3 .pskorg-carte { padding: 10px 14px; min-width: 190px; }
.pskorg-taille-3 .pskorg-avatar { width: 40px; height: 40px; font-size: 13px; }

/* --- Avatars --- */
.pskorg-avatar,
.pskorg-avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    overflow: hidden;
}
.pskorg-avatar-grande,
.pskorg-avatar-grande-wrap {
    width: 64px;
    height: 64px;
    font-size: 17px;
}
.pskorg-avatar img,
.pskorg-avatar-wrap img,
.pskorg-avatar-grande img,
.pskorg-avatar-grande-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.pskorg-avatar-a { background: var(--pskorg-bleu-clair); color: var(--pskorg-bleu-fonce); }
.pskorg-avatar-b { background: var(--pskorg-vert-clair); color: var(--pskorg-vert-fonce); }
.pskorg-avatar-c { background: #F1EFE8; color: #444441; }
.pskorg-avatar-d { background: #FAEEDA; color: #854F0B; }
.pskorg-carousel-slide .pskorg-avatar {
    background: var(--pskorg-bleu);
    color: var(--pskorg-bleu-fonce);
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .pskorg-carousel {
        max-width: 100%;
        padding: 16px 18px;
    }
    .pskorg-carte {
        min-width: 100%;
        flex: 1 1 100%;
        max-width: 100%;
    }
    .pskorg-grille {
        gap: 10px;
    }
}
