:root {
	--custom-primary-color: #192655; /* Couleur principale */
	--custom-secondary-color: #3876BF; /* Couleur secondaire */
	--custom-contrast-color: #ED7D31;
	--custom-variant-one-color: #E1AA74;
	--custom-variant-two-color: #F3F0CA;
	--custom-gray-color:#EFF0F8;
}
html {
	height: 100%;
	padding: 0;
	margin: 0;
}
body {
	font-size: 11pt;
	font-family: sans-serif;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

#pied-de-page {
	width: 100%;
	margin-top: auto;
}
#pied-de-page .pied li {
	display: inline-block;
	margin: .7em .7em;
}
#pied-de-page .pied a {
	font-size: 1.2rem;
	font-weight: bold;
	color: white;
	margin-right: 2em;
}

#pied-de-page .pied {
	background: var(--custom-primary-color);
	padding: 2em 0;
	color: white;
}

@media screen and (max-width:600px) {
	#pied-de-page .pied {
		padding: .5em;
	}
	#pied-de-page .pied li {
		display: block;
		margin: .7em 0;
	}
	#pied-de-page .pied a {
		font-size: 1rem;
		margin-right: 0;
	}
}

.page-une #texte {
	display: grid;
	grid-template-columns: 4fr 18em;
	grid-column-gap: 1em;
	max-width: 123em;	/* possiblement à réevaluer */
	margin: 0 auto;
}
@media screen and (min-width:1400px) {
	/* pour grands écrans */
	.page-une #texte {
		grid-template-columns: 4fr 1fr;
		grid-column-gap: 1.7em;
	}
}
@media screen and (max-width:850px) {
	.page-une #texte {
		grid-template-columns: 4fr 15em;
	}
}
@media screen and (max-width:600px) {
	.page-une #texte {
		display: block;
	}
}

#texte>.vignette{
	padding-left: 2em;
}
#texte .clearer {
	display: none;
}
#texte-content {
	padding: 0 1em 1em 1.5em;
	color: #263033;
	border-left: 5px solid var(--custom-contrast-color);
}
@media screen and (max-width:600px) {
	#texte-content {
		padding: 0;
		border-left: none;
	}
	#texte>.vignette{
		padding-left: 0;
	}
}

#texte div.alaune h2, #texte div.actus h2 {
	background: var(--custom-variant-one-color);
	color: white;
}
#texte div.alaune h2 a, #texte div.actus h2 a {
	color: white;
}

.partenaire {
	background: #eff0f8;
	padding:.5em 0!important;
}
.partenaire>li>a>img {
	padding: 1.5em;
}
@media screen and (max-width:600px) {
	.partenaire {
		padding: 1em !important;
	}
	.partenaire>li>a>img {
		max-width: calc(100% - 5em);
	}
}
#chemin {
	padding: .75rem 1rem;
	margin-bottom: 1rem;
	list-style: none;
	background-color: var(--custom-gray-color);
	border:1px solid rgba(0, 0, 0, 0.05);
	color: var(--custom-primary-color);
}
@media screen and (max-width:860px) {
	#chemin {
		background-color: transparent;
		border: none;
	}
}
div.resume {
	display:flex;
	border: 1px solid rgba(0, 0, 0, 0.02) !important;
	background: var(--custom-gray-color);
	padding: 1em;
	border-radius: 2px;
}
div.resume .vignette {
	float: left;	/* sans effet tant que div.resume est flex */
	width: 100px;	/* taille vignette */
	max-width: 30%;
	flex-shrink: 0;
	margin-right: 1em;
}
.vignette .logo_credits {
	display:none;
}
.vignette .vignette_img {
	position:relative;
}
.vignette:hover .logo_credits {
	display:block;
	position:absolute;
	bottom:.2em;
	right:.1em;
	height:1.1em;
	width:1.1em;
	border-radius:0.55em;
	background: rgba(0, 0, 0, 0.5);
	color:white;
	font-size:1.8em;
	text-align:center;
	cursor:help;
}
@media screen and (max-width:700px) {
	div.resume {
		display: block;
	}
}
div.resume {
	flex-grow: 1;
}
p.suite {
	padding-top: 1em;
}
.suite>a {
	color: var(--custom-secondary-color);
}

#labo_fed_by_osu {
	max-width: 1805px;		/* Taille des images en pixels (360*4+180*2) + les épaisseurs des séparations (5*1px) */
	padding: 0 4em;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.3em repeat(4, 2fr) 1.0em 1.3em repeat(2, 1fr);
	grid-column-gap: 1px;
	list-style-type: none;
}
#labo_fed_by_osu>.titre {
	overflow:hidden;
}
#labo_fed_by_osu h2 {
	display:block;
	color: var(--custom-primary-color);
	writing-mode: vertical-rl;
	text-orientation: mixed;
	text-align: center;
	margin: 0;
	padding: 0;
	font-size: 1.1em;
	background: var(--custom-gray-color);
}
#labo_fed_by_osu>.struct {
	max-width: 360px;
	display: flex;
	flex-direction: column; /* Affichage différent sur chrome */
	position: relative; /* pour positionner correctement la description texte */
}
#labo_fed_by_osu>.struct>a {
	display: flex;	/* évite le petit espace en bas */
}
#labo_fed_by_osu>.struct img {
	width: 100%;
	height: 192px;
	object-fit: cover;
}
#labo_fed_by_osu .texte-menu-sub {
	background: rgba(25, 38, 85, 0.65);
	font-weight: bold;
	text-align: center;
	position: absolute;
	width: 100%;
	color: white;
	padding: 0 .5em;
	box-sizing: border-box;
	height: 3em;
	display: flex;
	justify-content: center;
	align-items: center;
}

#labo_fed_by_osu .texte {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(25, 38, 85, 0.65);
	padding: 0 0.75em; /* il est important que le haut et bas soit 0 */
	box-sizing: border-box;
	height: 0; /* initialement caché */
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	transition: height 0.3s;
}

#labo_fed_by_osu .texte, #labo_fed_by_osu .texte * {
	text-decoration: none;
	color: white;
	text-align: center;
}

/* affiche le texte lors du survol */
#labo_fed_by_osu>div:hover .texte {
	height: 100%;
}

@media screen and (max-width:1500px) {
	#labo_fed_by_osu>.struct img {
		height: 160px;
	}
	#labo_fed_by_osu>h2 {
		font-size: 1.0em;
	}
	#labo_fed_by_osu .texte {
		font-size: 0.9em;
	}
}
@media screen and (max-width:1100px) {
	#labo_fed_by_osu .texte {
		font-size: 0.8em;
	}
}
@media screen and (max-width:860px), print {
	#labo_fed_by_osu {
		display: block;
		line-height: 1.5em;
		margin-top:1em;
		padding:1em;
	}
	#labo_fed_by_osu>h2 {
		writing-mode: unset;
		text-orientation: unset;
		display: inline;
	}
	#labo_fed_by_osu>h2::after {
		content: " :";
		white-space: nowrap;
	}
	#labo_fed_by_osu>.struct {
		display: inline;
	}
	#labo_fed_by_osu>.struct>a {
		display: inline;
	}
	#labo_fed_by_osu>.struct::after {
		content: "/";
	}
	#labo_fed_by_osu .last-of-part::after {
		content: "";
	}
	#labo_fed_by_osu>.struct img {
		display: none;
	}
	#labo_fed_by_osu>.espacement {
		height: 1.5em;
	}
	#labo_fed_by_osu .texte-menu-sub {
		display: inline;
		position: unset;
		color: unset;
		background: none;
		font-weight: normal;
		padding: 0;
		white-space: nowrap;
	}
	#labo_fed_by_osu .texte {
		position: fixed;
		left: 2%;
		top: 2%;
		height: 0;
		width: 96%;
		background-color: rgba(25, 38, 85, 0.8);
		border-radius: 1em;
	}
	#labo_fed_by_osu>div:hover .texte {
		height: 10em;
		border: solid 3px rgba(25, 38, 85, 0.8);
		font-size: 1.1rem;
		z-index: 7;
	}
}
@media screen and (max-width:370px) {
	#labo_fed_by_osu>.struct {
		display: block;
		list-style-type: disc;
	}
	#labo_fed_by_osu h2 {
		display: inline-block;
		width: 100%;
		text-align: left;
	}
	#labo_fed_by_osu>.struct {
		display: list-item;
	}
	#labo_fed_by_osu>.struct::after {
		content: "";
	}
	#labo_fed_by_osu .texte-menu-sub {
		white-space: unset;
	}
}

#pageune, #pageseconde {
	margin: 0;
	padding: 0 4em 1em 4em;
}
#pageune {
	margin-top: 1.5em;
}
#pageseconde {
	padding: 1em 2em 2em 2em;
	width: 85em;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
}
@media screen and (max-width:860px) {
	#pageune, #pageseconde {
		max-width: 100%;
		padding: 0;
	}
	#texte {
		padding: 0 1em;
	}
}
#texte img {
	max-width: 100%;
	height: unset;
}

#texte, p, a:link, a:visited, td, ul ul, .petit, #lang select, #nom-labo h1 a {
	color:var(--custom-primary-color);
}

#texte div.a-noter h2 {
	background: var(--custom-secondary-color);
	padding: 15px 0 15px 10px;
	margin: 0 0 10px 0;

}
#texte div.a-noter h2 a {
	color: white;
}
.btn {
	border-color: var(--custom-secondary-color);
}
.btn {
	background: var(--custom-secondary-color);
	padding: 0.5em 1em;
	color: white;
	text-decoration:none;
	transition: 0.5s;
}

.btn:hover {
	background: var(--custom-primary-color);
	border-color:var(--custom-primary-color);
}


/* Menu */

#menu {
	padding: 1.75em 0;
}

/* Les boutons pour le menu mobile */
#menu_button, #menu-close {
	display:none;
}

/* N'importe quel niveau de menu */
#menu ul {
	margin-bottom: 0;
	padding:0;
	margin-top: 0;
}

/* Premier niveau de menu (la barre) */
#menu>ul {
	display: flex;
	justify-content: center;
	align-items: stretch;
}

/* N'importe quel niveau de sous menu (dropdown) */
#menu ul ul {
	z-index: 1;
	min-width:15em;
	position: absolute;
	top: 99%;
	left: 0;
	display: none;
	box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}
/*
#lang input, div.menu ul.level2, div.menu ul.level3, div.menu ul.menu-liste ul.menu-liste,
div.menu ul.level2 li, div.menu ul.level3 li,
div.menu ul.menu-liste ul.menu-liste li.menu-entree,
div.menu ul.level2 a, div.menu ul.level3 a,
div.menu ul.menu-liste ul.menu-liste a {
	background-color: var(--custom-secondary-color)!important;
	color: white!important;
}
 */
/* Sous menu de sous menu */
#menu ul ul ul {
	z-index: 2;
	left:100%;
	top:-1px;
}

/* Entrée de menu */
#menu li {
	position: relative;
	display: block;
	border-left: none;
	border-right: none;
	margin-top: 0;
}

/* Lien dans l'entrée de sous menu */
#menu li a {
	display: block;
	padding: 1.25rem 1.25rem;
	color: var(--custom-primary-color);
	font-weight: bold;
	font-size: 0.9rem;
	z-index: 1;
	text-decoration: none;
	border-left: 1px solid rgba(56, 118, 191, 0.25);
	box-sizing: border-box;
	height: 100%;
}

/* Entrée du menu de premier niveau (sur la barre) */
#menu>ul>li>a {
	display:flex;
	align-items: center;
}

#menu>ul>li:last-child {
	border-right: 1px solid rgba(56, 118, 191, 0.25);
}

/* Entrée d'un sous menu (peu importe le niveau) */
#menu ul ul li a {
	position: relative;
	font-weight: normal;
	background: var(--custom-gray-color);
}


/* Ouvre le sous menu de l'entrée survolée */
@media screen and (min-width:981px) {
	#menu li:hover > ul {
		display: block !important;
	}
}

/* Définir l'état initial pour l'animation survol */
#menu li a:after {
	content: "";
	position: absolute;
	width: 100%;
	height: 0;
	top: 0;
	left: 0;
	border-left: 3px solid var(--custom-secondary-color);
	transition: height 0.2s;
	z-index: -1;
}

/* Définir l'état lors du survol */
#menu li a:hover:after {
	height: 100%; /* Faites glisser l'arrière-plan de bas en haut */
}

/* Element actif du menu (où on est) */
/*#menu > ul > li.active a {
	border-left: 1px solid var(--custom-secondary-color);
}*/

#menu > ul > li.active {
	background-color: var(--custom-gray-color);
	color: var(--custom-primary-color);
}

/* Adaptations écrans plus petits */
@media screen and (max-width:1900px) {
	#menu ul {
		gap: 0;
	}
}
@media screen and (max-width:1700px) {
	#menu li a {
		padding: 1.25rem .8rem;
	}
}

@media screen and (max-width:1100px) {
	#menu li a {
		padding: .8rem .4rem;
	}
}

@media screen and (max-width:980px) {
	#labo_fed_by_osu {		/* le menu ne fait plus la marge */
		margin-top: 1.5em;
	}
	#menu_button {
		display:block;
	}
	#menu:target {
		display:block;
		z-index:999;
	}
	#menu {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		padding: 0;
		overflow-y: scroll;
		background: var(--custom-gray-color);
	}
	#menu-close {
		display: flex;
		position: fixed;
		top: -1rem;
		right: -1rem;
		width: 5rem;
		height: 5rem;
		z-index: 3;
		border-radius: 2.5rem;
		background: var(--custom-contrast-color);
		color: var(--custom-variant-two-color);
		border: 2px solid var(--custom-variant-two-color);
		box-shadow: 0 2px 5px rgba(0,0,0,.5);
		align-items: center;
		justify-content: center;
		text-decoration: none;
		font-size:2rem;
	}
	#menu ul {
		display: block !important;
	}
	#menu ul li {
		display: block;
	}
	#menu>ul>li {
		display: block;
		box-shadow: 0 2px 5px rgba(0,0,0,.15);
		margin:1em;
	}
	#menu>ul>li>a {
		border:none;
		text-decoration:underline;
		font-weight:normal;
		font-size:13pt;
		padding:.8rem 1rem;
	}
	#menu ul {
		position: static !important;
	}
	#menu ul ul {
		display: block !important;
		background-color: transparent;
		border: none;
		box-shadow: none;
	}
	#menu li {
		position: relative;
		display: inline-block;
		margin: .5em .6em;
		border-radius: 1em;
	}
	#menu li a:after {
		border-radius: 1em;
	}
	#menu ul ul li {
		display: inline-block;
	}
	#menu ul ul li a {
		padding: .8em 1.5em;
		border-radius: 1em;
		background: #eaebf3;	/* a peine plus sombre que --custom-gray-color */
	}
	#menu ul ul ul {
		display:none !important;	/* pas de 3e niveau et + */
	}
}

#texte div.alaune h2, #texte div.actus h2 {
	margin: 0 0 1em 0;
}

#texte div.a-noter h2, #texte div.a-noter div.content {
	border: none;
}
#texte div.a-noter div.content {
	background: var(--custom-gray-color);
	margin: 1em 0;
}
#texte div.a-noter div.content.first {
	margin-top: 0;
}

h2 { font-size:1.375em;}
h3 { font-size:1.2em;}
h4 { font-size:1em; margin:1.33em 0;}
h5 { font-size:0.83em; margin:1.67em 0;}
h6 { font-size:0.67em; margin:2.33em 0;}
h2,h3,h4,h5,h6 { font-weight:bold; color: var(--custom-primary-color);}

/* ############################################################################################################ */
/* ############################################################################################################ */
/* ############################################################################################################ */
/* ############################################################################################################ */

/*#formulaire_menu_lang {
	display: none;
}*/

#barre_dessus {
	position: absolute;
	width: 100%;
	z-index: 6;
}
#barre_dessus>ul {
	display: flex;
	margin: 0;
	padding: 0 4em;
	gap: 1.2em;
	list-style-type: none;
}

#barre_dessus>ul>li {
	padding: 0;
}

#barre_dessus>ul>li>a {
	font-family: sans-serif;
	position: relative;
	display: block;
	padding: 0.75rem;
	transition: 0.2s;
	z-index: 1;
	color: white;
	font-size: 1rem;
	text-decoration : none;
	font-weight: bold;
}
#barre_dessus>ul>li>a:hover {
	background: var(--custom-variant-one-color);
}

@media screen and (max-width:900px) {
	#barre_dessus .rubrique a {
		padding-left:0;
		padding-right:0;
	}
	#lang label {
		display:none;
	}
	#recherche input[name="recherche"] {
		width:10em;
	}
}

@media screen and (max-width:700px) {
	#barre_dessus>ul {
		padding: 0 .5em;
	}
}

@media screen and (max-width:570px) {
	#barre_dessus {
		display:none;
	}
}

#top {
	background: no-repeat center/cover url('../../../squelettes/images/fond_titre.jpg');	/* si multi-background pas géré */
	/*background: no-repeat bottom/cover url('../../../squelettes/images/vagues.svg'), no-repeat center/cover url('../../../squelettes/images/fond_titre.jpg');*/
	background-image: url('../../../squelettes/images/vagues.svg'), url('../../../squelettes/images/fond_titre.jpg');
	background-repeat: no-repeat, no-repeat;
	background-position: bottom -3px center, bottom;
	background-size: cover, cover;
	display: flex;
	align-items: center;
	text-decoration: none;
	justify-content: center;
	font-size: 1.5em;
	height: 10em;
}
.page-une #top {
	height: 13em;
}
#top h1 a {
	color: white;
	text-decoration: none;
}
#nom-labo {
	font-size: 1.5rem;
	max-width: 40em;
	padding-right: 10em;
}
#logo-site {
	padding:.5em;
}
h1 {
	font-size:1.2em;
	margin:.67em 0;
}
@media screen and (max-width:1400px) {
	h1 { font-size:1.2em; }
}
@media screen and (max-width:1100px) {
	#nom-labo {
		max-width: unset;
		padding-right: 5em;
	}
	h1 { font-size:1.0em; }
}
@media screen and (max-width:980px) {
	#nom-labo {
		padding-right: 0;
	}
}
@media screen and (max-width:650px) {
	h1 { font-size:0.8em; }
}

@media screen and (max-width:450px) {
	#top {
		height: 15em!important;
		font-size: unset;
		padding: unset;
	}
	#logo-site {
		padding: .5em 0 0.5em 0.5em;
	}
	#logo-site>a>img {
		max-width: 20vw;
	}
}

@media screen and (max-width:450px) {
	#top {
		display:grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 100px 1fr;
		height: unset!important;
	}
	#logo-site {
		grid-row: 1;
		grid-column: 1;
		margin: 0 5%;
	}
	#logo-site>a>img {
		max-width: 70px;
		max-height: 70px;
	}
	#menu_button {
		grid-row: 1;
		grid-column: 2;
		text-align: right;
		margin: 0 10%;
	}
	#nom-labo {
		grid-row: 2;
		grid-column: 1 / 3;
		margin: 0 5%;
	}
	#nom-labo h1 {
		margin:0 2px 1em 0;
	}
}

#bandeau {
	padding-top: 2em;
}


#bandeau img {
	width: 100%;
}

/* todo voir comment l'ajouter dans le menu pour que le flex s'applique directement sur ce bloc */
#recherche {
	border:none;
}
#formulaire_menu_lang, #recherche form {
	color: white;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	height: 100%;
}
#lang form>*, #recherche form>* {
	margin-bottom:1px;
}
#recherche input.box {
	border: solid 1px white;
}
#recherche .bouton-rechercher {
	color: white;
	background: var(--custom-secondary-color);
	border: solid 1px white;
}
#formulaire_menu_lang select {
	border: solid 1px white;
	background-color: #fff;
}

table, tr, td, th {
	border-color: #aaa !important;
}

th {
	background-color: #e7e7e7;
}

table div {
	min-width:0 !important;
}

.partenaire li {
	margin: .5em 1.5em;
}

.pagination {
	text-align:center;
}

.pagination li.pagination-item {
	width:2em;
	padding:.2em .3em;
	margin:0 .2em;
	background-color:white;
	border:solid 1px #DDD;
	border-radius:2em;
}

/* Formulaire de contact */
.formulaire_ecrire_auteur fieldset {
	border: solid 1px #113d54 !important;
	border-radius:3px;
	background-color:hsl(200 25% 98%);
}
.formulaire_ecrire_auteur fieldset>legend {
	display:unset;
	background:#113d54;
	border-radius:1em;
	padding:.2em 1em;
	color:white;
}
.formulaire_ecrire_auteur textarea {
	width:100%;
	box-sizing: border-box;
}
.saisie_email_message_auteur, .saisie_sujet_message_auteur {
	margin-bottom:1.5em;
}
.saisie_email_message_auteur input, .saisie_sujet_message_auteur input {
	width:100%;
	box-sizing: border-box;
}
.formulaire_ecrire_auteur>form>.boutons {
	margin:1em 10px 3em 10px;
}
.formulaire_ecrire_auteur .previsu div:first-child {
	margin-bottom:.5em;
}
@media screen and (min-width:600px) {
	.saisie_email_message_auteur, .saisie_sujet_message_auteur {
		display:grid;
		grid-template-columns: 30ch 1fr;
		gap:1ch;
	}
	.saisie_email_message_auteur label, .saisie_sujet_message_auteur label {
		text-align:right;
	}
	.formulaire_ecrire_auteur .boutons {
		text-align:center;
	}
}


/* impression */
@media print {
	body {
		display: unset;			/* display:flex fait tout foirer l'impression */
		min-height: unset;
	}
	#menu, #barre_dessus, #chemin, #pied-de-page .pied, .page-une nav, .page-une .suite {
		display: none;
	}
	#top {
		background: none;
		font-size: 50%;
		height: unset;
		max-width: 11.7cm;
		margin-bottom: 0;
	}
	#nom-labo {
		font-size: unset;
		max-width: unset;
	}
	#nom-labo h1 a {
		color: #000;
		font-size: 13pt;
	}
	#logo-site img {
		width: 1.5cm;
		filter: invert(1);	/* Inverse le logo pour qu'il n'apparaissent pas blanc sur blanc */
	}
	#pageune {
		padding: 0;
	}
	.page-une #texte {
		display: block;
		margin: 0;
	}
	.page-une div.resume {
		padding: 0;
	}
	.page-une div.resume .vignette {
		float: none;
	}
	#texte h2 { font-size:20pt; }
	#texte h3 { font-size:18pt;}
	#texte h4 { font-size:14pt; margin:1.33em 0;}
	#texte h5 { font-size:14pt; margin:1.67em 0;}
	#texte h6 { font-size:14pt; margin:0;}
	.page-une h2 {
		margin:.2em 0;
	}
	.page-une h3 {
		margin:0;
		font-size:13pt !important;
	}
	.a-noter {
		font-size:11pt !important;
	}
	#texte-content {
		padding: 0;
		border-left: none;
	}
	#texte > .vignette {
		padding-left: 0;
	}
	#texte a {
		text-decoration: none;
	}
	#texte a[href^="http"]::after {
		content: " (" attr(href) ") ";
	}
	#pied-de-page ul.partenaire li {
		margin: 5mm;
	}
	#pied-de-page ul.partenaire>li>a>img {
		padding: 0;
	}
}
