/* Importation de la police Roboto */
@import url(https://fonts.googleapis.com/css?family=Roboto);

/* Définition des principales couleurs */
:root {
	--text-color : #fafafa; /* Texte presque blanc */
	--background: #151718; /* Fond bleu foncé */
	--main-green: #9e161e;
	--active-green: #e64d3c;
}


* {
	color: var(--text-color) ;
}

body {
	background-color: var(--background);
	font: 14pt Roboto, Arial, sans-serif;
	margin: 0;
	padding: 0;
	width: 90%;
	margin: 40px auto;
}

#bars{
	display: flex;
	flex-wrap: wrap;
}
/* Paragraphes "Aucun résultat..." et "Aucune recherche..." */
p.info-vide {
	font-style: italic;
}

/* Partie En-tête */
h1 {
	/* margin-top: 1em; */
	text-align: center;
	font-variant: small-caps;
	font-size: 2.5em;
	color: var(--main-green);
}

h2 {
	margin: 0.5em
	text-align: center;
	font-variant: small-caps;
	color: var(--main-green);
}

h2:first-child{
	margin-top: 0em;
}

p#explication {
	font-size: 1.2em;
}

/* Conteneur principal */
#conteneur {
	display: flex;
	flex: 1;
	margin: 30px auto;
}

/* Section Recherche (avec résultats) */
#section-recherche {
	margin-top: 0;
	flex: 1 1 auto;
}

#bloc-recherche, #bloc-nom {
	display: flex;
	min-width: 450px;
	flex-direction: row;
}

.blocbar{
	margin: 10px;
	flex: 1;
}

.blocbar:first-child{
	margin-left: 0;
}

.blocbar:last-child{
	margin-left: 0;
	margin-right: 0
}

#bloc-recherche>input[type=text],
#bloc-recherche>button, #bloc-nom>input[type=text], #bloc-nom>button{
	display: block;
	font-size: 1.2em ;
}

#bloc-recherche>input[type=text], #bloc-nom>input[type=text] {
	color: #2d2d2d; /* Presque noir */
	flex: 1;
	padding: 0.7em;
	border: 0.3em solid var(--main-green);
}

#bloc-recherche>button, #bloc-nom>button {
	padding: 0.8em 0.8em;
	/* Bordure invisible pour que le hover ne bouge pas le bouton */
	border: 1px solid var(--main-green);

	/* Par défaut, les boutons sont en gris
	 (S'ils sont "clicables", ils passent en vert) */
	background-color: #bebebe;
}

/* Apparences des boutons clicables */
#bloc-recherche>button.btn_clicable, #bloc-nom>button.btn_clicable {
	background-color: var(--main-green);
}

#bloc-recherche>button:focus, #bloc-nom>button:focus {
	/* Pour éviter un affichage disgracieux
		quand le bouton reste en focus */
	outline: 0 !important;
}

#bloc-recherche>button.btn_clicable:hover, #bloc-nom>button.btn_clicable:hover {
	cursor: pointer;
	border: 1px solid white;
}

#bloc-recherche>button.btn_clicable:active, #bloc-nom>button.btn_clicable:active {
	background-color: var(--active-green);
}

/* GIF de chargement (caché par défaut) */
#bloc-gif-attente {
	display: none;
	margin: 40px;
	text-align: center;
}

#bloc-resultats p.res::before{
	/* Affichage d'une flèche devant chaque résultat
		(Cf. https://unicode-table.com/fr/21E8/ ) */
	content: "\21E8\00A0";
}

/* Section de la barre de séparation */
#section-separation {
	border-left: 2px dashed var(--main-green);
	margin: 0 20px;
}

/* Section des recherches favorites */
#section-favoris {
	font-size: 1em;
	flex: 0 0 300px;
	margin-top: 0;
	margin-bottom: 20px;
}

#section-favoris h2 {
	margin-top: 0;
}

#section-favoris p {
	margin-bottom: 8px;
}

#liste-favoris li {
	margin-bottom: 8px;
	cursor: pointer;
}

#liste-favoris li span {
	text-decoration: underline;
}

#liste-favoris li span:hover {
	color: var(--main-green);
}

/* Media-query pour gérer l'affichage sur petit écran */
@media (max-width: 768px) {
	body{
		font-size: 1em;
	}
	#conteneur {
		flex-direction: column-reverse;
	}

	#section-separation {
		border-top: 2px dashed var(--main-green);
		margin: 0 -10px 40px -10px;
	}

	#section-favoris {
		flex: 0;
	}

	#bloc-recherche, #bloc-nom {
		min-width: 0;
	}

	#section-favoris {
		flex: 0 0 300px;
		margin-top: 0;
		margin-bottom: 20px;
	}
}
