/* @override https://www.afihm.org/afihm.css */

:root {
	--content-width: 100ch;
	--bg: #fff;
	--color: #000;
	--accent-bg: #ddd;
	--accent-color: #000;
	--space-m: 1rem;
}

html {
	line-height: 1.3;
	background: var(--accent-bg);
	height: 100%;
}

body {
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	min-height: 100%;
}

body[class^="page-"] {
	display: flex;
	flex-direction: column;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

main {
	background: var(--bg);
	color: var(--color);
	flex-grow: 1;
}

main .content,
header .content,
footer .content {
	box-sizing: border-box;
	max-width: var(--content-width);
	margin-left: auto;
	margin-right: auto;
	padding: var(--space-m);
}

header,
footer {
	background: var(--accent-bg);
	color: var(--accent-color);
}

header .content {
	position: relative; /* Required for the member page link */
	max-width: var(--content-width);
	margin-left: auto;
	margin-right: auto;
}

nav {
	height: 60px;
}

nav ul {
	display: table-cell;
	font-size: 18px;
	letter-spacing: -1px;
	list-style-type: none;
	margin: 0;
	padding: 0;
	padding-left: 10px;
	padding-right: 10px;
	vertical-align: middle;
	height: 60px;
}

nav ul li {
	display: inline;
	line-height: 27px;
	padding-right: 5px;
	position: relative;
}

nav ul li a {
	padding-right: 3px;
	color: black;
}

nav a:hover {
	text-decoration: none;
	border-bottom: 4px solid #fec300;
}

nav ul li ul {
	z-index: 1000;
	display: none;
	position: absolute;
	/*top: 0;*/
	left: 0;
	margin: 0;
	padding: 0;
	padding-top: 3px;
	font-size: 11pt;
	font-weight: normal;
}

nav ul li:hover ul {
	display: block;
}

nav ul li ul li {
	background-color: rgba(150, 150, 150, 1);
	display: block;
	padding-right: 0;
	background-repeat: no-repeat;
	background-position: center top;
	background-attachment: fixed;
	line-height: 1em;
	padding: 4px 7px 5px;
	white-space: nowrap;
}

nav ul li ul li a {
	padding: 0;
	color: black;
}

nav ul li ul li:last-child {
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	padding-bottom: 7px;
}

nav ul li ul li a:hover {
	color: black;
}

body main nav li ul li a {
	border-bottom: none;
}

body main nav li ul li a:hover {
	border-bottom: 3px solid #fec300;
}

header {
	position: relative;
}

header h1 {
	float: left;
	width: 220px;
	height: 60px;
	margin: 0;
	margin-bottom: 6px;
}

header h1 a {
	display: block;
	width: 194px;
	height: 52px;
	margin: 10px;
	background: url("/common/img/afihm.png") no-repeat;
	text-indent: -9999px;
}

.svg header h1 a {
	background-image: url("/common/img/afihm.svg");
	background-size: 194px 52px;
}

header .hgroup {
	padding: 0;
	margin: 0;
	padding-top: 80px;
	padding-bottom: 20px;
	letter-spacing: -1px;
}

header .hgroup sup {
	font-size: 13pt;
	letter-spacing: -1px;
}

header .hgroup h2 {
	position: absolute;
	bottom: 15px;
	margin: 0;
	padding: 0;
	padding-left: 20px;
	padding-right: 20px;
	color: black;
	font-weight: 300;
	font-size: 20pt;
}

@media screen and (max-width: 660px) {
	header .hgroup h2 {
		font-size: 16pt;
	}
	header .hgroup sup {
		font-size: 10pt;
	}
	nav ul {
		font-size: 11pt;
	}
	nav ul li ul {
		font-size: 9pt;
		letter-spacing: 0;
	}
}

main a {
	color: inherit;
	border-bottom: 1px solid #ffc100;
}

main a:hover {
	text-decoration: none;
	border-bottom-width: 2px;
}

main ul {
	list-style: square;
	text-align: justify;
}

main ol {
	text-align: justify;
}

main li {
	text-align: justify;
}

main p {
	margin-top: 0;
	margin-bottom: 1.1em;
	text-align: justify;
}

main p.center {
	margin-top: 0;
	margin-bottom: 1.1em;
	text-align: center;
}

main a.image {
	color: inherit;
	border-bottom: 0px solid #ffc100;
}

main a.image:hover {
	color: inherit;
	border-bottom: 0px solid #ffc100;
}

footer .content {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-direction: row;
}

footer .address {
	text-align: right;
}

footer a {
	color: var(--accent-color);
}

footer a:hover {
	text-decoration: none;
}

#programme {
	padding-right: 90px;
}

.warning {
	color: red;
}

.bold {
	font-weight: bolder;
}

.closed {
	color: darkgray;
}

#menuitem-espace-membre {
	float: right;
	position: absolute;
	bottom: 10px;
	right: 16px;
}

div#logo {
	float: left;
}

table#adtable input.fullwidth {
	width: 100%;
}
