/* ======================================= *\
	VARIABLES
\* ======================================= */

:root {
	--link:	#0080ff;
}


/* ======================================= *\
	GÉNÉRAL
\* ======================================= */

/*	=============== */
/*	GÉNÉRAL > Bases */
/*	--------------- */

html {
	height: 100%;
}
body {
	box-sizing: border-box;
	min-height: 100%;
	margin: 0;
	padding: 64px 16px 0;
	display: flex;
	flex-direction: column;
	/*
	background: url('images/chateau.jpg#avif,webp') 50% 0 no-repeat fixed, #f4f0ec linear-gradient(#ffffff, #ffffff);
	background-size: 896px;
	background-blend-mode: multiply;
	*/
	font-family: sans-serif;
}

a {
	color: var(--link);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a.button {
	padding: 2px 8px;
	border: solid 1px var(--link);
	border-radius: 3px;
	background: #fff;
	color: var(--link);
}
a.button:hover {
	background: var(--link);
	color: #fff;
	text-decoration: none;
}

@media (min-width: 768px) {
	body {
		margin: 0 32px;
		padding: 96px 16px 0;
		background-size: unset;
	}
}

/*	========================= */
/*	GÉNÉRAL > Zone principale */
/*	------------------------- */

main {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
}
main>h2 {
	margin: 32px 0 24px;
	font-size: 32px;
	line-height: 1;
	color: #fff;
	text-shadow: 0 0 2px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.5), 0 1px 8px rgba(0,0,0,0.5);
}
main>section {
	margin: 0 0 24px;
	padding: 16px;
	border-radius: 4px;
	background: rgba(255,255,255,0.95);
	backdrop-filter: blur(3px);
	box-shadow: 0 0 2px rgba(0,0,0,0.1), 0 0 8px rgba(32,8,0,0.1);
}
main>section h2 {
	margin: 8px 0 16px;
}


/* ======================================= *\
	ENTÊTE
\* ======================================= */

body>header {
	box-sizing: border-box;
	width: 100%;
	padding: 16px 80px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 5;
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: center;
	background: #fff;
	box-shadow: 0 0 2px rgba(0,0,0,0.1), 0 0 16px rgba(32,8,0,0.1);
}

/*	============== */
/*	ENTÊTE > Titre */
/*	-------------- */

body>header>h1 {
	margin: 0;
	padding: 0 0 0 36px;
	position: relative;
	font-size: 28px;
	text-transform: uppercase;
	color: #183060;
}
body>header>h1::before {
	content: '';
	width: 32px;
	height: 32px;
	margin: -16px;
	position: absolute;
	top: 50%;
	left: 16px;
	background: url('images/scgq.svg');
}
body>header>h1>acronym {
	text-decoration: none;
}

/*	=================== */
/*	ENTÊTE > Navigation */
/*	------------------- */

body>header>nav {
	display: none;
	gap: 8px;
}

@media (min-width: 768px) {
	body>header>nav {
		display: flex;
	}
}

/*	-------------------------- */
/*	ENTÊTE > Navigation > Menu */
/*	-------------------------- */

#nav_menu {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	list-style: none;
}
#nav_menu>li a {
	padding: 4px 8px;
	border: solid 1px var(--link);
	border-radius: 3px;
	display: block;
	background: #fff;
	box-shadow: 0 0 2px rgba(0,0,0,0.05), 0 0 4px rgba(0,0,0,0.05);
	color: var(--link);
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
#nav_menu>li a:hover {
	background: var(--link);
	color: #fff;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/*	-------------------------------------- */
/*	ENTÊTE > Navigation > Recherche rapide */
/*	-------------------------------------- */

#quick_search {
	display: flex;
	gap: 4px;
	align-items: center;
}
#quick_search>fieldset {
	padding: 0;
	border: none;
	display: flex;
}
#quick_search>fieldset>input {
	padding: 4px 8px;
	border: solid 1px rgba(0,0,0,0.5);
	border-radius: 3px 0 0 3px;
}
#quick_search>fieldset>label {
	box-sizing: border-box;
	width: 40px;
	border-radius: 0 3px 3px 0;
	overflow: hidden;
	position: relative;
	background: #000;
	text-indent: -999px;
	color: #fff;
	cursor: pointer;
}
#quick_search>fieldset>label:hover {
	background: var(--link);
}
#quick_search>fieldset>label::before {
	content: '';
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	margin: -8px;
	border: solid 2px #fff;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	left: 50%;
}
#quick_search>fieldset>label::after {
	content: '';
	box-sizing: border-box;
	width: 4px;
	height: 6px;
	margin: 0 -2px;
	border-radius: 0 0 2px 2px;
	position: absolute;
	top: 50%;
	left: 50%;
	background: #fff;
	transform: translateY(-4px) rotate(45deg) translateY(12px);
}
#quick_search>fieldset>input[type=submit] {
	display: none;
}

/*	=============== */
/*	ENTÊTE > Profil */
/*	--------------- */

#profile {
	width: 40px;
	height: 40px;
	margin: -20px;
	position: absolute;
	top: 50%;
	right: 32px;
}
#profile>a {
	width: 100%;
	height: 100%;
	border: solid 1px;
	border-radius: 50%;
	overflow: hidden;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	background: url('images/profile.svg');
	text-indent: -999px;
	color: #000;
}
#profile:hover>a {
	color: var(--link);
	background-position-y: 100%;
}
#profile>ul {
	margin: 16px 0 0;
	padding: 4px;
	border-radius: 3px;
	position: absolute;
	top: 100%;
	left: -24px;
	right: -24px;
	list-style: none;
	background: rgba(255,255,255,0.85);
	backdrop-filter: blur(4px);
	transform: translateY(8px);
	opacity: 0;
	box-shadow: 0 0 2px rgba(0,0,0,0.1), 0 0 4px rgba(0,0,0,0.05);
	font-size: 12px;
	text-align: center;
	line-height: 1;
	transition: 0.15s;
	pointer-events: none;
}
#profile:hover>ul {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}
#profile>ul::before {
	content: '';
	width: 100%;
	height: 64px;
	position: absolute;
	bottom: 100%;
	left: 0;
}
#profile>ul::after {
	content: '';
	width: 8px;
	height: 4px;
	margin: -4px;
	position: absolute;
	top: 0;
	left: 50%;
	background: rgba(255,255,255,0.85);
	backdrop-filter: blur(4px);
	clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
#profile>ul>li>a {
	padding: 4px 0;
	display: block;
}
@media (min-width: 768px) {
	#profile {
		right: 56px;
	}
}

/*	==================== */
/*	ENTÊTE > Bouton menu */
/*	-------------------- */

#menu_open {
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	margin: -16px;
	border: solid 1px;
	border-radius: 4px;
	position: absolute;
	top: 50%;
	left: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	user-select: none;
}

@media (min-width: 768px) {
	#menu_open {
		left: 56px;
		display: none;
	}
}


/* ======================================= *\
	CONNEXION
\* ======================================= */


#connection {
	max-width: fit-content;
	margin: 0px auto 24px;
	padding: 8px 24px;
	border-radius: 6px;
	box-shadow: 0 0 2px rgba(0,0,0,0.1), 0 0 8px rgba(32,8,0,0.1);
	background: #fff;
}
#connection>form {
	box-sizing: border-box;
	width: 100%;
	min-height: 240px;
	margin: 16px 0;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
}
#connection>form>fieldset {
	margin: 0;
	padding: 8px;
	border: solid 1px rgba(0,0,0,0.2);
	border-radius: 4px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
#connection>form>fieldset>h3 {
	margin: 0;
	padding: 0 0 4px;
	border-bottom: dotted 1px rgba(0,0,0,0.5);
	font-size: 14px;
	font-weight: normal;
	text-align: center;
	color: rgba(0,0,0,0.5);
}
#connection>form>fieldset>input {
	padding: 4px 8px;
	border: solid 1px rgba(0,0,0,0.5);
	border-radius: 3px;
	font-size: 15px;
}
#connection>form>fieldset>input[type=email]:user-valid {
	border-color: #a0d000;
}
#connection>form>fieldset>input[type=email]:user-invalid {
	border-color: #e00020;
}
#connection>form>fieldset>input[type=submit] {
	border: solid 1px;
	background: #fff;
	color: var(--link);
	cursor: pointer;
}
#connection>form>fieldset>input[type=submit]:hover {
	border: solid 1px var(--link);
	background: var(--link);
	color: #fff;
	cursor: pointer;
}
#connection>form>fieldset>a {
	font-size: 12px;
}

@media (min-width: 768px) {
	#connection {
		margin: 0 auto 96px;
	}
	#connection>h2 {
		font-size: 24px;
	}
	#connection>form {
		padding-left: 240px;
	}
	#connection>form::before {
		content: '';
		width: 208px;
		height: 240px;
		margin: -120px -104px;
		position: absolute;
		top: 50%;
		left: 112px;
		background: url('images/Georges Quilliard.jpg#avif,webp') 50% / 100%;
	}
}


/* ======================================= *\
	ACCUEIL
\* ======================================= */

/*	=================== */
/*	ACCUEIL > Bienvenue */
/*	------------------- */

#welcome {
	margin: 0;
	padding: 35vh 16px 5vh;
	position: relative;
	text-align: center;
}
#welcome::after {
	content: '';
	width: 160px;
	height: 160px;
	margin: -80px;
	position: absolute;
	top: 35%;
	left: 50%;
	background: url('images/blazon.png#webp') 50% / 100%;
}

@media (min-width: 768px) {
	#welcome::after {
		content: '';
		width: 240px;
		height: 240px;
		margin: -120px;
	}
}

/*	=============== */
/*	ACCUEIL > Infos */
/*	--------------- */

@media (min-width: 768px) {
	#quick_infos {
		display: flex;
		gap: 16px;
	}
	#quick_infos>div {
		flex: 1 0 0;
	}
}

/*	-------------------------- */
/*	ACCUEIL > Infos > Annonces */
/*	-------------------------- */

#announcements>ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}
#announcements>ul>li {
	padding: 8px;
	position: relative;
}
#announcements>ul>li:nth-child(2n) {
	border-radius: 3px;
	background: rgba(0,48,128,0.05);
}
#announcements>ul>li>a {
	width: 100%;
	height: 100%;
	border-radius: 3px;
	position: absolute;
	top: 0;
	left:0;
	overflow: hidden;
	text-indent: -999px;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
#announcements>ul>li>a:hover {
	box-shadow: 0 0 0 1px var(--link);
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/*	------------------------------- */
/*	ACCUEIL > Infos > Anniversaires */
/*	------------------------------- */

#birthdays>ul {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
}
#birthdays>ul>li {
	box-sizing: border-box;
	min-height: 144px;
	padding: 144px 8px 8px 8px;
	border: solid 1px rgba(0,0,0,0.2);
	border-radius: 3px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 0 0;
}
#birthdays>ul>li>.photo {
	width: 96px;
	height: 128px;
	margin: -64px -48px;
	overflow: hidden;
	position: absolute;
	top: 72px;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
#birthdays>ul>li>h3 {
	margin: 0;
	line-height: 1;
}
#birthdays>ul>li>p {
	margin: 0;
}
#birthdays>ul>li>.photo>img {
	border-radius: 4px;
}
#birthdays>ul>li>.ancestry {
	font-size: 11px;
	border-top: dotted 1px rgba(0,0,0,0.5);
	padding: 4px;
	flex: 1;
	color: rgba(0,0,0,0.5);
}
#birthdays>ul>li>.ancestry>a {
	color: #000;
}
#birthdays>ul>li>.see {
	padding: 4px 8px;
	border: solid 1px;
	border-radius: 3px;
	display: block;
	font-size: 13px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 768px) {
	#birthdays>ul>li {
		min-width: 240px;
		padding: 8px 8px 8px 112px;
	}
	#birthdays>ul>li>.photo {
		top: 50%;
		left: 56px;
	}
}

/*	==================== */
/*	ACCUEIL > Actualités */
/*	-------------------- */

#news>ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#news>ul>li {
	box-sizing: border-box;
	margin: 32px 0;
	position: relative;
}
#news>ul>li::before {
	content: '';
	width: 100%;
	border-top: dotted 1px rgba(0,0,0,0.5);
	position: absolute;
	top: -16px;
	left: 0;
}
#news>ul>li>h3 {
	margin: 8px 0 16px;
}
#news>ul>li>.illustration {
	box-sizing: border-box;
	padding: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
#news>ul>li>.illustration>img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 3px;
	box-shadow: 0 0 2px rgba(0,0,0,0.1), 0 0 4px rgba(0,0,0,0.1);
}
#news>ul>li>p {
	margin: 8px 0 0;
	text-align: justify;
	hyphens: auto;
}
#news>ul>li>ul {
	margin: 8px 0;
	padding: 0 0 0 16px;
	list-style: disc;
}
#news>ul>li>p+ul,
#news>ul>li>p+ol {
	margin: 0;
}
#news>ul>li>.files {
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	font-size: 11px;
	text-align: center;
}
#news>ul>li>.files>li {
	position: relative;
	display: flex;
}
#news>ul>li>.files>li>a {
	box-sizing: border-box;
	width: 96px;
	padding: 80px 8px 8px;
	border: solid 1px var(--link);
	border-radius: 4px;
	display: block;
	text-decoration: none;
	color: rgba(0,0,0,0.8);
	transition: 0.3s;
}
#news>ul>li>.files>li>a:hover {
	background: rgba(0,128,255,0.1);
}
#news>ul>li>.files>li>a::before {
	content: '';
	width: 64px;
	height: 64px;
	margin: -32px;
	position: absolute;
	top: 40px;
	left: 50%;
}
#news>ul>li>.files>li>a.pdf::before {	background: url('images/file_pdf.png') }
#news>ul>li>.files>li>a.video::before {	background: url('images/file_video.png') }

@media (min-width: 768px) {
	#news>ul>li {
		min-height: 256px;
		padding-right: 288px;
	}
	#news>ul>li>.illustration {
		width: 272px;
		height: 100%;
		position: absolute;
		top: 0;
		right: 0;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	#news>ul>li>.illustration::before {
		content: '';
		height: 192px;
		border-left: dotted 1px rgba(0,0,0,0.5);
		margin: -96px 0;
		position: absolute;
		top: 50%;
		left: 0;
	}
}

/* ======================================= *\
	GÉNÉALOGIE
\* ======================================= */

/*	====================== */
/*	GÉNÉALOGIE > Recherche */
/*	---------------------- */

#genealogy>form>fieldset {
	margin: 0;
	padding: 8px;
	border: solid 1px rgba(0,0,0,0.2);
	border-radius: 4px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
#genealogy>form>fieldset input,
#genealogy>form>fieldset>select {
	padding: 4px 8px;
	border: solid 1px rgba(0,0,0,0.5);
	border-radius: 3px;
	font-size: 14px;
}
#genealogy>form>fieldset>select {
	background: linear-gradient(#fff, #ececee);
}
#genealogy>form>fieldset>select:hover {
	border-color: var(--link);
	color: var(--link);
}
#genealogy>form>fieldset>select>option {
	color: #000;
	background: #fff;
}
#genealogy>form>fieldset>input:hover {
	border-color: var(--link);
}
#genealogy>form>fieldset>div {
	min-width: 240px;
	position: relative;
	display: flex;
	flex: 1;
	z-index: 2;
}
#genealogy>form>fieldset>div>input {
	box-sizing: border-box;
	width: 100%;
	padding: 2px 8px;
	position: relative;
	z-index: 1;
	display: block;
	font-size: 16px;
}
#genealogy>form>fieldset>div>ul {
	width: 100%;
	margin: -4px 0 0;
	padding: 4px 0 0;
	border-radius: 0 0 3px 3px;
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	background: rgba(0,0,0,0.8);
	list-style: none;
	color: #fff;
}
#genealogy>form>fieldset>div:hover>ul {
	overflow: hidden;
	display: block;
}
#genealogy>form>fieldset>div>ul>li>a {
	padding: 2px 8px;
	display: block;
	font-size: 14px;
	color: #fff;
	text-decoration: none;
}
#genealogy>form>fieldset>div>ul>li>a:hover {
	background: var(--link);
	color: #fff;
}
#genealogy>form>fieldset>input[type=submit] {
	border: solid 1px;
	background: #fff;
	color: var(--link);
	cursor: pointer;
}
#genealogy>form>fieldset>input[type=submit]:hover {
	border: solid 1px var(--link);
	background: var(--link);
	color: #fff;
	cursor: pointer;
}

@media (max-width: 768px) {
	#genealogy>form>fieldset>input,
	#genealogy>form>fieldset>select {
		display: none;
	}
}

/*	================== */
/*	GÉNÉALOGIE > Arbre */
/*	------------------ */

#genealogy h3,
#genealogy h4 {
	width: min-content;
	margin: -4px 0px 0px;
	padding: 2px 4px;
	border-radius: 3px;
	position: absolute;
	bottom: 20px;
	z-index: 1;
	display: block;
	background: rgba(0,0,0,0.8);
	font-size: 13px;
	text-align: center;
	line-height: 1.1;
	color: #fff;
}
#genealogy .generation_2>div>h3 {
	margin-top: -2px;
	font-size: 12px;
}
#genealogy .generation_3>div>h3 {
	margin-top: 0;
	font-size: 11px;
}
#genealogy h3>em {
	white-space: nowrap;
}
#genealogy .portrait {
	width: 128px;
	height: 128px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	justify-content: center;
	background: #fff;
	box-shadow: 0 0 2px rgba(0,0,0,0.1), 0 0 8px rgba(0,0,0,0.1);
	text-indent: -999px;
	transition: 0.15s;
}
#genealogy .portrait:hover {
	transform: scale(1.05);
}
#genealogy .portrait>img {
	max-width: 100%;
}
#genealogy .content {
	box-sizing: border-box;
	max-width: 160px;
	margin: -16px auto 0;
	padding: 6px 12px 4px 24px;
	border-radius: 3px;
	position: absolute;
	top: 100%;
	left: -32px;
	right: -32px;
	z-index: 2;
	display: none;
	background: #fff;
	box-shadow: 0 0 2px rgba(0,0,0,0.1), 0 0 8px rgba(0,0,0,0.1);
	font-size: 12px;
	line-height: 1.2;
}
#genealogy div:hover>.content {
	display: block;
}
#genealogy .content>li {
	padding: 2px 0;
}

#genealogy>.ascendants {
	margin: 32px 0 0;
}
#genealogy>.ascendants>div {
	margin: 8px 0;
	display: flex;
}
#genealogy>.ascendants>div>div {
	padding: 0 0 40px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1 0 0;
}
#genealogy>.ascendants>div>div::before,
#genealogy>.ascendants>div>div::after {
	content: '';
	width: 25%;
	height: 8px;
	position: absolute;
	bottom: 0;
}
#genealogy>.ascendants>div>div::before {
	content: '';
	margin: 0 0 8px;
	border-bottom: solid 1px rgba(0,0,0,0.5);
}
#genealogy>.ascendants>div>div::after {
	content: '';
	border-top: solid 1px rgba(0,0,0,0.5);
}
#genealogy>.ascendants>div>div:nth-child(2n)::before {
	border-radius: 0 0 8px 0;
	left: 25%;
}
#genealogy>.ascendants>div>div:nth-child(2n+1)::before {
	border-radius: 0 0 0 8px;
	left: 50%;
}
#genealogy>.ascendants>div>div:nth-child(2n)::after {
	border-radius: 8px 0 0 0;
	left: 0;
}
#genealogy>.ascendants>div>div:nth-child(2n+1)::after {
	border-radius: 0 8px 0 0;
	right: 0;
}

#genealogy>.person {
	margin: 0 0 -24px;
	padding: 0 0 48px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#genealogy>.descendants {
	margin: 32px 0;
	position: relative;
}
#genealogy>.descendants::before {
	content: '';
	height: 32px;
	border-left: dashed 1px;
	position: absolute;
	left: 50%;
	bottom: 100%;
}
#genealogy>.descendants .portrait {
	width: 96px;
	height: 96px;
	margin: 8px;
	position: relative
}
#genealogy>.descendants>.parent {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}
#genealogy>.descendants>.parent>h3 {
	bottom: -16px;
}
#genealogy>.descendants>.parent::before {
	content: '';
	box-sizing: border-box;
	width: 112px;
	height: 112px;
	margin: -56px;
	border: dashed 1px rgba(0,0,0,0.5);
	border-radius: 50% 50% 0 0;
	position: absolute;
	top: 50%;
	left: 50%;
	clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}
#genealogy>.descendants>.parent::after {
	content: '';
	width: 110px;
	height: 1px;
	margin: 0 -55px;
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	background: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)), url('images/chateau.jpg#avif,webp') 50% 0 no-repeat fixed, #f4f0ec linear-gradient(#ffffff, #ffffff);
}
#genealogy>.descendants>.parent>.union {
	box-sizing: border-box;
	width: 50%;
	height: 50%;
	padding: 8px 0 8px 64px;
	position: absolute;
	left: 50%;
	top: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	font-size: 13px;
}
#genealogy>.descendants>.childs {
	box-sizing: border-box;
	width: max-content;
	max-width: 100%;
	margin: -56px auto 16px;
	padding: 64px 8px 16px;
	border: dashed 1px rgba(0,0,0,0.5);
	border-radius: 6px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}
#genealogy>.descendants>.childs>div {
	margin: 8px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}
#genealogy>.descendants>.childs>div>h4 {
	bottom: -16px;
}

@media (max-width: 768px) {
	#genealogy>.ascendants>.generation_2,
	#genealogy>.ascendants>.generation_3 {
		margin: 8px 0;
	}
	#genealogy>.ascendants>.generation_2>div,
	#genealogy>.ascendants>.generation_3>div {
		padding: 0 0 24px;
	}
	#genealogy .generation_2>div>h3,
	#genealogy .generation_3>div>h3 {
		display: none;
	}
	#genealogy .generation_1>div>.portrait {
		width: 64px;
		height: 64px;
	}
	#genealogy .generation_2>div>.portrait {
		width: 48px;
		height: 48px;
	}
	#genealogy .generation_3>div>.portrait {
		width: 32px;
		height: 32px;
	}
}
@media (min-width: 768px) {
	#genealogy .generation_1>div>.portrait {
		width: 96px;
		height: 96px;
	}
	#genealogy .generation_2>div>.portrait {
		width: 80px;
		height: 80px;
	}
	#genealogy .generation_3>div>.portrait {
		width: 64px;
		height: 64px;
	}
}


/* ======================================= *\
	ERREUR
\* ======================================= */

#error>section {
	box-sizing: border-box;
	max-width: 400px;
	margin: 0 auto 32px;
}
#error>section>* {
	position: relative;
}
#error>section>h2 {
	margin: -4px 0 0;
	padding: 0 0 8px;
	border-bottom: dotted 1px;
	text-transform: uppercase;
	text-align: center;
}

@media (min-width: 768px) {
	#error>section {
		margin: 0 auto 128px;
		position: relative;
	}
	#error>section::before {
		content: attr(data-error-code);
		box-sizing: border-box;
		width: 100%;
		height: 100%;
		padding: 32px 24px 0;
		overflow: hidden;
		position: absolute;
		top: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
		font-family: monospace;
		font-size: 160px;
		font-weight: bold;
		color: rgba(0, 0, 0, 0.05);
		line-height: 1;
		pointer-events: none;
	}
	#error>section.unknown::before {
		content: 'Erreur';
		font-size: 128px;
		font-variant: small-caps;
	}
}

/* ======================================= *\
	PIED DE PAGE
\* ======================================= */

footer {
	margin: 16px -16px 0;
	padding: 16px;
	background: rgba(0,0,0,0.9);
	font-size: 13px;
	text-align: center;
	color: #fff;
}

@media (min-width: 768px) {
	footer {
		margin: 16px -48px 0;
	}
}