.organigramme-container {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.organigramme {
    position: relative;
    min-width: 1400px;
    width: 100%;
    padding: 15px;
}

#org-cards {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-niveau {
    display: flex;
    justify-content: center;
    width: 100%;
}

.org-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-card {
    background: rgba(255, 255, 255, 1);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Connecteurs */
.connecteur {
    position: absolute;
    background-color: #6c757d;
    pointer-events: none;
    z-index: 1;
}

.connecteur-vertical {
    width: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.connecteur-horizontal {
    height: 2px;
}

.connecteur-lateral {
    position: absolute;
    height: 2px;
}

.connecteur-haut {
    bottom: 50%;
}

.connecteur-bas {
    top: 50%;
}

.connecteur-gauche {
    right: 50%;
    margin-right: -1px;
}

.connecteur-droite {
    left: 50%;
    margin-left: -1px;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.org-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #343a40;
}

.org-card p {
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.org-card p.small {
    color: #6c757d;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .organigramme-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .organigramme {
        min-width: 1400px;
    }

    .org-niveau {
        flex-direction: row;
        gap: 40px;
        justify-content: center;
        width: 100%;
    }

    .org-item {
        flex: 0 0 auto;
    }

    .org-card {
        width: 250px;
    }
}
