/* Habillage du site, partie 3/7 : en-tête, barre de navigation, formulaire de recherche, menu.
   Les 7 fichiers ufe-*.css se chargent dans l'ordre de leur numéro (voir inclure/head.html) ;
   ils reprennent, dans le même ordre, l'ancien spip_ufe.css. */
/*--------------------------------------------
 * entete
 *--------------------------------------------
*/
#entete img.spip_logo, #entete img.spip_logos {
	padding-top:5px;
	padding-left:5px;
	float:left;
}
#langues {
	margin-bottom:2px;
	margin-right: 0;
	text-align:right;
	height: 1.3rem;
	display: inline-flex;
	justify-content: flex-end;
	flex-wrap: nowrap;
	flex-direction: row;
	width: 100%;
}
#langues div {
	font-family: 'PT sans', Verdana, sans-serif;
	font-weight:400;
	font-size: 1rem;
	display: inline-block;
	margin-left: .4em;
	line-height: 1.25;
}
#langues a {
	display: inline-block;
	position: relative;
	border: 1px 2px 1px 2px solid transparent;
	text-decoration: none;
	/* font-size: 60%; */
	color: #fff;
}
#langues .site-fr {color: white; background-color: var(--rose); border-left: 0.25em solid var(--rose);border-right: 0.25em solid var(--rose);border-radius: 2px;}
#langues .site-eo {color: white;background-color: var(--vert); border-left: 0.25em solid var(--vert);border-right: 0.25em solid var(--vert);border-radius: 2px;}
#langues .lien-fr a {color: var(--rose); border-left: 0.25em solid transparent;border-right: 0.25em solid transparent;}
#langues .lien-fr a:hover {color: white; background-color: var(--rose); border-left: 0.25em solid var(--rose);border-right: 0.25em solid var(--rose);border-radius: 2px;}
#langues .lien-fr a:active {color: white; background-color: var(--bleu); border-left: 0.25em solid var(--bleu);border-right: 0.25em solid var(--bleu);border-radius: 2px;}
#langues .lien-eo a {color: var(--vert); border-left: 0.25em solid transparent;border-right: 0.25em solid transparent;}
#langues .lien-eo a:hover {color: white; background-color: var(--vert); border-left: 0.25em solid var(--vert);border-right: 0.25em solid var(--vert);border-radius: 2px;}
#langues .lien-eo a:active {color: white; background-color: var(--bleu); border-left: 0.25em solid var(--bleu);border-right: 0.25em solid var(--bleu);border-radius: 2px;}

/*-----  entete : suivi du site -----*/
#flux {
	margin:5px;
	padding:5px;
	font-size:100%;
	display: inline-block;
	margin-left: 8em;
	line-height: 1.25;
	margin-right:3em;
	display:none;
}
#flux a {
	text-decoration:none;
	color:#41B7D8;
	display:inline-block;
	padding:5px;
}
#flux a:hover {
	color:#004A99;
}
/* Icônes RSS et Twitter : SVG dans inclure/entete.html, dessinés d'après
   Font Awesome 3 - http://fortawesome.github.com/Font-Awesome (CC BY 3.0).
   Elles prennent la couleur du lien. Le bloc #flux est masqué (display:none ci-dessus). */
#flux .icone-flux {
	vertical-align: -0.25em;
	fill: currentColor;
}
/*--------------------------------------------
 * barre de navigation
 *--------------------------------------------
*/

div#barrenav {
	width:100%;
	height: 1.5rem;
	/* height: 1.5em; */
}
div#barrenav ul {
	display:inline;
}
div#barrenav ul.nav li {
	float:left;
}
div#barrenav ul.nav a {
	display:block;
	color:#fff;
	font-family: 'PT Sans', Arial, sans-serif;
	font-size: 0.9rem;
	font-style: normal;
	font-weight: 400;
	text-decoration:none;
	border:none;
	border-right:1px solid #fff;
	text-transform: uppercase;
	vertical-align:middle;
	line-height:1.5em;
	padding: 0 1em;
	margin:0;
}
.gsc-control-wrapper-cse:before {
	content: "Rechercher dans le site : "
}
/*--------------------------------------------
 * formulaire de recherche
 *--------------------------------------------
*/
#barre-recherche {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	min-height: 80px;
}
/* haut du formulaire aligné sur le haut des pictos (#rezo : 8 px de marge haute), droite alignée sur le bandeau */
#barre-recherche .formulaire_recherche {
	width: 30%;
	min-width: 300px;
	margin: 8px 0 0;
}

/* Formulaire de recherche (bandeau et page de résultats) :
   libellé gris, champ à bordure bleue, bouton bleu avec une loupe blanche (couleurs des boutons « Lire l'article ») */
.formulaire_recherche .recherche-label {
	display: block;
	margin: 0 0 0.2em;
	font-size: 14px;
	line-height: 1.2;
	color: var(--gris-discret);
}
.formulaire_recherche .recherche-champ {
	display: flex;
	align-items: stretch;
}
.formulaire_recherche input.text {
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	height: 30px;
	margin: 0;
	padding: 0.25em 0.5em;
	border: 1px solid var(--bleu);
	border-right: 0;
	border-radius: 0;
	background: #FFF;
	color: var(--texte);
	font-family: 'PT Sans', Arial, sans-serif;
	font-size: 100%;
	font-style: normal;
	font-weight: 400;
	-webkit-appearance: none;
	appearance: none;
}
.formulaire_recherche input.text:focus {
	outline: none;
	background: #EAF2FB; /* bleu très pâle ; la bordure reste inchangée */
}
.formulaire_recherche .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	box-sizing: border-box;
	height: 30px;
	margin: 0;
	padding: 0 0.7em;
	border: 1px solid var(--bleu);
	border-radius: 0;
	background-color: var(--bleu);
	color: #FFF;
	box-shadow: none;
	cursor: pointer;
}
.formulaire_recherche .btn:hover,
.formulaire_recherche .btn:focus-visible {
	background-color: var(--vert);
	border-color: var(--vert);
}
.formulaire_recherche .btn:active {
	background-color: var(--rose);
	border-color: var(--rose);
}
:where(html:not([lang="fr"])) .formulaire_recherche .btn:hover {
	background-color: #33CCCC;
	border-color: #33CCCC;
}
.formulaire_recherche .loupe { display: block; }
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.formulaire_recherche_test input.submit {
	font-family: 'PT sans', Verdana, sans-serif;
	font-size: 13px;
	font-style: normal;
	text-decoration:none;
	background-color:#CCC;
	background-image:none;
	color:#FFF;
	padding:0.2em 0.5em;
}
div#rezo {
	padding-top: 0.5em;
	display: flex;
	flex-direction: row;
	height: 36px;
}
div#rezo a {
	display: block;
	margin-right: 1em;
	height: 36px;
	right: 36px;
}
/*--------------------------------------------
 * menu
 *--------------------------------------------
*/
#menu ul.niv1 {
	padding-left:0.5em;
}

#menu ul.niv1 > li {
	line-height:150%;
	margin-bottom:1.5em;
}

#menu ul.niv1 > li > a {
	display: block;
	text-decoration:none;
	text-transform:uppercase;
	font-weight:400;
}
#menu ul.niv2 {
	border-top:1px solid #ccc;
	padding-top:0.25em;
}
#menu ul.niv2 > li {
	line-height:normal;
}
#menu ul.niv2 > li > a {
	display: block;
	text-decoration:none;
	text-transform:none;
	font-weight:400;
	font-size:90%;
	color: var(--gris-fonce);
}

/*--------------------------------------------
 * page de resultats de recherche
 *--------------------------------------------
*/
.page_recherche .formulaire_recherche_page { margin: 1em 0 1.5em; max-width: 30em; }
.page_recherche .resultats ul.spip { margin-left: 0; padding-left: 0; list-style: none; }
.page_recherche .resultats .resultat {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1em;
	margin: 0 0 1.2em;
	list-style: none;
}
.page_recherche .resultat-texte { flex: 1 1 auto; min-width: 0; }
.page_recherche .resultat-vignette { flex: 0 0 auto; }
.page_recherche .resultat-vignette img {
	display: block;
	width: 92px;
	height: 92px;
	object-fit: cover;
	border-radius: 8px;
}
.page_recherche .resultats .date { color: var(--gris-discret); font-size: .85em; margin-left: .5em; }
.page_recherche .resultats .extrait { margin: .2em 0 0; color: var(--texte); }
.page_recherche .resultats .extrait mark { background: #ffe9a8; color: inherit; font-weight: bold; }
.page_recherche .aucun-resultat { font-weight: bold; }
/* pagination : petits boutons, texte blanc sur fond bleu, comme le bouton de recherche */
.page_recherche .pagination-items { display: flex; flex-wrap: wrap; gap: .3em; margin: 0 0 .8em; padding: 0; list-style: none; }
.page_recherche .pagination-item { margin: 0; padding: 0; list-style: none; }
.page_recherche .pagination-item-label {
	display: inline-block;
	min-width: 1.6em;
	box-sizing: border-box;
	padding: 0.1em 0.5em;
	background-color: var(--bleu);
	color: #FFF;
	font-family: 'PT sans', Verdana, sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}
.page_recherche a.pagination-item-label:hover { background-color: var(--vert); color: #FFF; }
.page_recherche a.pagination-item-label:active { background-color: var(--rose); color: #FFF; }
.page_recherche .pagination-item-label.on { background-color: var(--rose); }
