targetted_decisions = {
######################################
####### Orthodox			   #######
######################################
	Archeveque_Orthodox = {
		filter = all
		ai_target_filter = all
		ai = no
		diplomacy_icon = GFX_icon_Cardinal_Vatican
		third_party_filter = all
		third_party = FROM		
		third_party_potential = {
			FROMFROM = {
			    host = {
					character = FROMFROM
				}
				age = 16
				ai = yes
				religion = FROM
			#	rightful_religious_head = FROM	#bug si activé (retirer le "#" devant la condition)
				in_revolt = no
				is_landed = no
				prisoner = no
				is_female = no
				is_married = no
				independent = no
				mercenary = no
				holy_order = no
			#	NOT = {
			#		has_minor_title = title_cardinal
			#	}	
				NOT = {
					any_liege = {
						has_claim = k_orthodox
					}
					has_claim = k_orthodox
					any_vassal = {
						has_claim = k_orthodox
					}
				}
				NOT = {
					top_liege = {
					#	custom_tooltip = {
					#		text = any_realm_character_Archeveque_orthodox
							any_realm_character = {
								has_claim = k_orthodox
							}
					#	}
					}
				}
			}
		}
		from_potential = {
			has_landed_title = k_orthodox
		}
		allow = {
			age = 0
			ai = yes
			religion = FROM
			rightful_religious_head = FROM
		#	in_revolt = no
			is_landed = yes
		#	prisoner = no
		#	is_female = no
			is_theocracy = yes
			NOT = {
				has_full_court = yes
			}
			liege = {
				religion = orthodox
			}
			NOT = {
				has_claim = k_orthodox
			}
			OR = {
				top_liege = {
					is_theocracy = yes
					religion = orthodox
					NOT = {
					#	any_liege = {
					#		has_claim = k_orthodox
					#	}
						has_claim = k_orthodox
						any_vassal = {
							has_claim = k_orthodox
						}
					}
					NOT = {
					#	top_liege = {
							custom_tooltip = {
								text = any_realm_character_Archeveque_orthodox
								any_realm_character = {
									has_claim = k_orthodox
								}
							}
					#	}
					}
				}
				AND = {
					any_liege = {
						has_landed_title = k_orthodox
					}
					top_liege = {
						NOT = {
							religion = orthodox
						}
					}
				}
				crownlaw_title = {
					holder_scope = {
					#	is_liege_or_above_of = ROOT	
					#	has_law = investiture_law_0
						NOT = {
							any_liege = {
								has_claim = k_orthodox
							}
							has_claim = k_orthodox
							any_vassal = {
								has_claim = k_orthodox
							}
						}
						NOT = {
							top_liege = {
							custom_tooltip = {
								text = any_realm_character_Archeveque_orthodox
									any_realm_character = {
										has_claim = k_orthodox
									}
								}
							}
						}
					}	
				}
			}
			FROM = {
				any_courtier = {
					age = 16
					ai = yes
					religion = orthodox # FROM ne marche pas
				#	rightful_religious_head = FROM	#bug si activé (retirer le "#" devant la condition)
					in_revolt = no
					is_landed = no
					prisoner = no
					is_female = no
					is_married = no
					independent = no
					mercenary = no
					holy_order = no
				#	NOT = {
				#		has_minor_title = title_cardinal
				#	}
				}
			}
		}		
		effect = {
			if = {
				limit = {
					FROMFROM = {
						age = 16
						ai = yes
						religion = orthodox # FROM ne marche pas
					#	rightful_religious_head = FROM	#bug si activé (retirer le "#" devant la condition)
						in_revolt = no
						is_landed = no
						prisoner = no
						is_female = no
						is_married = no
						independent = no
						mercenary = no
						holy_order = no
					#	NOT = {
					#		has_minor_title = title_cardinal
					#	}
					}
				}
				any_courtier = {
					limit = {
						has_minor_title = title_archdeacon_orthodox
					}
					move_character = FROM
				#	set_government_type = feudal_government
					remove_trait = Archidiacre_orthodox
					remove_title = title_archdeacon_orthodox
				}
				FROMFROM = {
					move_character = PREV
				#	set_government_type = theocracy_government
					add_trait = Archidiacre_orthodox
					give_minor_title = title_archdeacon_orthodox
				}
			}
		}
	}
}