@charset "utf-8";

/*  Mode de dimmension des blocs  */
*, *::after, *::before { box-sizing: border-box;}

/* ----------------------------------------------- */
/* CORRECTION DU BUG ie11 (hauteur excessive de #article => ascenceur vertical) */
/* !hauteur spécifique! Pour diaporama ? */
	@media  (min-height: 650px) {
		#contenu {overflow-y: hidden;}
	}
/* Pas idéal (effet indésirable pour les autres navigateurs).<br>
Il faudrait filtrer spécifiquement pour ie11; */
	@supports  (display: -ms-grid) or (display: grid){
	aside {height:auto;}
	#contenu { overflow-y: auto;} 	}
/* OK ! C'est un moyen efficace de détection : 
   ce n'est pas "grid" qui n'est pas reconnu par ie11, 
   mais tout simplement l'instruction "@support" !


/* ********************************************************* */
/*     Styles et structure communs à toutes configurations   */
/* ********************************************************* */

article { padding: 0; border-bottom: 1px solid black;} /* border : sauf config. XXL */

/*@import url('https://fonts.googleapis.com/css?family=Didact+Gothic|EB+Garamond:400,400i,500,500i,600,600i,700');
@import url('https://fonts.googleapis.com/css?family=Poppins:200,200i,300,300i,400,400i,600,600i,700,700i');*/

/* Variables : H_header, H_Footer, H_nav (Voir matos.js)*/

body {
	margin: 0px;
	padding: 0px;
	color: #222222;
	list-style-type: circle;
	overflow: hidden;
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
	}
a {
	text-decoration: none;
	color: hsla(359,100%,33%,1.00);
}
	
a:hover{
	color: green;
	font-weight: bold;
}

/* BALISES SÉMANTIQUES */ 
/* ------------------- */
h1, h2, h3{
	font-family: 'Poppins', sans-serif;
}
h1{
	font-family: 'Poppins', sans-serif;
	font-weight: bold;
	font-size: 1.25em;
	text-align: left;
	color: hsla(359,100%,33%,1.00);
}
h10 { /* pour de diaporama */
	color: white;
	font-weight: bold;
	background-image: url(img_0/select.gif);
	padding: 0 3px;
	}
h11 {
	color: white;
	font-weight: bold;
	color: hsla(359,100%,33%,1.00);
	/*background-color: white;*/
	}
/*h11 a:hover {background-color: red;}*/

.indice_sup{
	vertical-align: text-top;
	font-size: smaller;
	font-family: monospace;
}
/* -------------------------------- */
/* ------------ ENTÊTE ------------ */
/* -------------------------------- */
header {
	display: flex; display: -webkit-flex;
	align-items:center;
	background-image: url("masque.png"), url("Grenade1.jpg");
	background-size: 100% auto;
	border: 1px solid black;
}
#H_titre {
	flex-grow: 1;
	color: #085A88;
	font-size: 1.5em;
	text-align: left;
	padding-left: 2%;
}
#H_logo {
	padding-left: 1%;
	width: 15%;
	}
#H_titre i {
	font-size: .75em;
}

header, footer { flex-shrink: 0; } /* inutile ? */

/* -------------------------------- */
/* ------------ PIED -------------- */
/* -------------------------------- */
footer {
    background-color: #848484;
    color: white;
	display: flex; display: -webkit-flex;
	flex-flow: row wrap; 
	justify-content:space-around; /* centrage horizontal */
	align-items: center; /* centrage vertical */
	flex-basis: 100%;
	height: 40px;
	max-height: 40px;
	font-size: 1em;
	/*line-height: .7em;*/
	border: 1px solid black;
	border-top: 0;
	}
footer a {
    color: white;
	padding: 0 .5em;
	}
footer a:hover {
    color: white;
	font-weight:normal;
	background: black;
	}
#Lang_fr, #Lang_en {
	padding: 0 .5em;
	color: black;
	/*font-weight:bold;*/
	background-size: cover;
	background-color: hsla(0,0%,100%,0.50);
	font-size: small;
	background-size: contain;
	font-variant: small-caps;
}
/*footer a:hover #Lang_fr {
	background: red;
	background-image: url(img_0/flag_en.png);
	}*/
#Lang_fr {
	background-image: url(img_0/flag_fr.png);
}
#Lang_en {
	background-image: url(img_0/flag_en.png);
}
/* -------------------------------- */
/* ------------ MENU -------------- */
/* -------------------------------- */

nav {
	margin: 0px;
	padding: 0px;
	font-family: 'Poppins', sans-serif;
	background-color: white;
	color: #222222;
	font-weight: lighter;
	}
/*nav * {
	transition-duration: 2s;
}*/
/* -------------------------------- */
/* ----------- CONTENU ------------ */
/* -------------------------------- */

aside {
	text-align: justify;
	border-right: 0;
	border-bottom: 0;
	padding: 0 1em;
	overflow-y: auto;
	background-color:white;
	border-left: 1px solid black;
	/*border-top: 1px solid black;*/
	}
aside h2 {
	font-size: 1em;
	font-weight: lighter;
	text-align:left;
	}
article {
	background-color: antiquewhite;
	overflow-y: auto;
	}
.corps {
	text-align: justify;
	border-right: 0;
	border-bottom: 0;
	padding: 0 1.5em;
	overflow-y: auto;
	}
.corps img{
	padding: 0;
	min-width: 90%;
	max-width: 100%;
	}
#index_image{
	min-width:  10%;
	/*max-hight: 10%;
	width: 480px;
	height: 360px;*/
	
}
.titre1 h1 {
	height: 35px; 
	font-size: 1em;
	text-align: center;
	margin: 0px; padding: 0;
	padding: 8px 0 5px 0;
	background-color:#A7A7A7;
	border-bottom: 1px solid black;
	}

/* TRANSITIONS et ANIMATIONS */
/* ------------------------- */
a:hover {transition: none;}

/*   CENTRAGE (pleine page)  */ 
/* -------------------------- */
#espace {
	display: flex; display: -webkit-flex;
	flex-flow: row wrap; 
	justify-content: center; /* centrage horizontal */
	align-items: center; /* centrage vertical */
	position:absolute; /* nécessaire */
	height: 100%;
	width: 100%;
	background-color: #222121;
	}

/* ********************************************************** */
/*                      XXS. "MOBILE FIRST"                   */
/* ********************************************************** */

/* STRUCTURE */
/* --------- */
#page {
	/* en tant qu'élément flexible, fils de "espace" */
	flex-basis: 100%;
	height: 100%;
	/* en tant que flex */
	display: flex; display: -webkit-flex;
	flex-flow: column nowrap;
	border: 2px solid white;
	background-color: white;
	transition-duration: .5s;
	}
#conteneur {
	/* en tant qu'élément flexible, fils de "page" */
	flex-basis: 100%;
	/* en tant que flex */
	display: flex; display: -webkit-flex;
	flex-flow: column nowrap;
	overflow-y: auto;
	border: 1px solid black;
	}
/* --------------------------------------- */
#contenu  {
	height: 100%;
	/*min-height: calc(100% - 30px);*/
	/* flex-flow: column nowrap; */
	/* Bugue avec Ie11. Alternative : */
	display: flex; display: -webkit-flex;
	flex-flow: row wrap;
	}

/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#ici, .corps, #conteneur {
	height: 100%;
	min-height: 100%;	
}
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*/
#contenu > *  { flex-basis: 100%; }

/* ********************************************************** */
/*                         M. "MEDIUM"                        */
/* ********************************************************** */

/* STRUCTURE */
/* ********* */
@media  (min-width: 700px) {
#H_logo {
	width: 17%; /* Important ! (larg. image / max. larg. écran) */
	}
#H_titre {
	font-size: 2em;
	}
#page { background-color:blanchedalmond; }
#acide { border-bottom: 1px solid black;}
#contenu  {
	flex-flow: row nowrap;
	}
	
	
/*  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */		
/*  POUR LES JEUX, à rajouter conditionnellement */	
#conteneur {
	/*flex-flow: row wrap;*/
	}
/*  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */	
	
	
/* Réglage proportions article / aside. Définir aside, article suivra */
/* ------------------------------------------------------------------ */
/* aside {
	min-width: 24.5%; !!! ie11 !!! 
	max-width: 24.5%;
	border-top: 0;
	}*/
}

/* ********************************************************** */
/*                           XXL. "BIG"                       */
/* ********************************************************** */

/* H_header = 160px ; H_Footer = 40px */

@media  (min-width: 1000px) {
	
/* STRUCTURE */
/* ********* */
header { 
	flex-basis: 100%; 
	max-width: 1000px; /*Pour ie11*/
	}
footer {
	max-width: 1000px; /*Pour ie11*/
	}
#page { /* il serait plus élégant (économique) d'introduire la condition de hauteur de page suffisante (>= 700px), mais is n'aime pas un média dans un média) */
	/* en tant qu'élément flexible, fils de "espace" */
	flex-basis: 1000px;
	height: 700px;
	/*	désactivé => plein écran (hérité du cas M)*/
	/* en tant que flex */
	flex-flow: row wrap;
	}
#conteneur {
	flex-flow: row nowrap;	
	height: calc(100% - 200px); /* 100% du container supérieur, c-à-d "page" ici 700px -(H_header + H_Footer) */
	overflow-y: hidden;
	width: 100%;
	}
#contenu  {
	width: calc(100% - 200px); /* -(conteneur + W_nav) */
	min-height: 100%;
	/*overflow: hidden;*/
	}
article, #acide { border-bottom:none;}
	
/* à déduire pour avoir ajouté la barre "bricole" */	
/*@supports  (display: -ms-grid) or (display: grid){
		#conteneur {flex-flow: row wrap;}
		#contenu  {height: calc(100% - 25px);}

	}*/
}
	
/* Parce que ie11 n'aime pas un media dans un media */
@media  (min-width: 1000px) and (max-height: 700px) {
	#page {
		height: 100%; /* Pour éviter la disparition du pied de page (on se retrouve dans la config. M ou XS) */
		}
/* on désactive les règles alternatives pour hauteur insuffisante qui ont été fixées plus haut dans cette config, mais ausi dans menu.css */
	.menu1 > li {
    	line-height: 20px;
	}
	.menu2  li {
		line-height: 1em;
		height: 1.2em;
	}	
}		