targetted_decisions = {
######################################
####### Vatican				   #######
######################################
	Cardinal_Seculier = {
		filter = all
		ai_target_filter = all
		ai = no
		diplomacy_icon = GFX_icon_Cardinal_Vatican
		from_potential = {
			has_landed_title = k_papal_state
		}	
		allow = {
			age = 0
			religion = FROM	
			rightful_religious_head = FROM
			is_theocracy = yes
			prisoner = no
			independent = yes
			is_landed = yes
			in_revolt = no
			ai = yes
			custom_tooltip = {
				text = Cardinaux_max
				NOT = {
					any_character = {
						trait = Cardinal-Catholic
						count = 20
					}	
				}	
			}
			NOT = {
				trait = Cardinal-Catholic
			}
		#	custom_tooltip = { # inutile
		#		text = Cardinaux_max
		#		NOT = {		
		#			has_assigned_minor_title = {
		#				title = title_cardinal
		#				count = 20
		#			}	
		#		}
		#	}
		#	NOT = {
		#		has_minor_title = title_cardinal
		#	}	
			custom_tooltip = {
				text = Cardinaux_archidiacre			
				NOT = {
					any_courtier = {
						has_minor_title = title_archdeacon
					}
				}
			}
			custom_tooltip = {
				text = archeveque_voyage_present
				NOT = {
					any_courtier = {
						has_flag = appointed_deacon	
					}		
				}
			}
			NOT = {
				any_liege = {
					has_claim = k_papal_state
				}
				has_claim = k_papal_state
				any_vassal = {
					has_claim = k_papal_state
				}
			}
			NOT = {
				top_liege = {
					custom_tooltip = {
						text = any_realm_character_cardinal
						any_realm_character = {
							has_claim = k_papal_state
						}
					}
				}
			}
		}
		effect = {
			FROM = {
				primary_title = {
					save_event_target_as = cardinal_title
				}
			}	
			hidden_tooltip = {
			    save_event_target_as = Cardinal-independant
				create_character = {
					random_traits = no
					culture = ROOT
					religion = ROOT
					age = 16
					name = " "
					employer = event_target:cardinal_title
					attributes = {
						martial = 6
						intrigue = 6
						diplomacy = 6
						stewardship = 6
						learning = 6				
					}
				}
				new_character = {
					save_event_target_as = Cardinal-temporaire
				}
				abdicate_to = event_target:Cardinal-temporaire
				move_character = FROM
				set_government_type = theocracy_government
				character_event = {
					id = Cardinal_independant.1
#					days = 1
				}
			}
		}
	}
}	