.org-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 28px;
    border-left: 3px solid #379CD0;
    margin-left: 20px;
}

.org-timeline__item {
    position: relative;
    padding-bottom: 48px;
}

.org-timeline__item:last-child {
    padding-bottom: 0;
}

.org-timeline__marker {
    position: absolute;
    left: -52px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #379CD0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.org-timeline__content {
    margin-left: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.org-bureau-header {
    margin-bottom: 24px;
}

.org-bureau-title {
    font-size: 1.4rem;
    color: #379CD0;
    margin: 0 0 16px 0;
}

.org-group-photo {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    max-height: 340px;
}

.org-group-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-bureau-desc {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.org-tree-wrap {
    overflow-x: auto;
    padding-bottom: 8px;
}

.org-tree {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 0;
}

.org-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.org-node__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f4f4f4;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
    width: 140px;
    gap: 8px;
    transition: all 0.18s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.org-node__card:hover {
    border-color: #379CD0;
    box-shadow: 0 4px 12px rgba(55,156,208,0.15);
    transform: translateY(-2px);
}

.org-node__photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #379CD0;
}

.org-node__photo--placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(#379CD0, #00293F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.org-node__name {
    font-weight: 700;
    font-size: 0.82rem;
    color: #222;
    word-break: break-word;
    line-height: 1.3;
}

.org-node__role {
    font-size: 0.75rem;
    color: #379CD0;
    font-weight: 600;
}

.org-children {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
    padding-top: 0;
    position: relative;
}

.org-node:has(.org-children) > .org-node__card {
    margin-bottom: 0;
}

.org-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: #ccc;
}

.org-children::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #ccc;
}

.org-node > .org-node__card {
    margin-bottom: 0;
}

.org-node {
    padding-top: 0;
}

.org-node > .org-children {
    padding-top: 24px;
    margin-top: 0;
}

.org-node > .org-node__card + .org-children::before {
    top: 0;
}

.org-empty-hint {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    padding: 20px;
}

.org-empty-hint a {
    color: #379CD0;
    font-weight: 600;
    text-decoration: none;
}

.org-empty-hint a:hover { text-decoration: underline; }

.org-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
}

/* fond sombre + blur */
.org-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
}

/* ouverture */
.org-modal--open {
    opacity: 1;
    pointer-events: auto;
}

/* boîte principale */
.org-modal__box {
    position: relative;
    width: min(900px, 92vw);
    max-height: 85vh;
    background: rgba(15, 15, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.org-modal--open .org-modal__box {
    transform: scale(1);
}

/* image */
.org-modal__img {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    background: #0b0b0e;
}

/* zone texte */
.org-modal__info {
    padding: 20px 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.org-modal__title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.org-modal__year {
    font-size: 0.9rem;
    opacity: 0.7;
}

.org-modal__desc {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* bouton fermer */
.org-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    color: white;
    transition: 0.2s ease;
    z-index: 2;
}

.org-modal__close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
}