/* tous les éléments CSS spécifiques du squelettes Balint */

/* utilitaires */
.hidden, .hide, .invisible { 
	display: none; 
}

.cursor {
	cursor: pointer;
}

textarea[name="texte"]{
	height:15rem;
}

@include media-breakpoint-up(xl) {
	.container{
		max-width: 1300px;
	}
}

.section-top{
	padding-top: 8rem !important;
}

.section-bottom{
	padding-bottom: 3rem !important;
}

.cadre-blanc{
	padding: 1.5rem;
	background: white;
	border-radius: 0.5rem;
}

.cadre-gris{
	padding: 1.5rem;
	background: $gris-clair;
	border-radius: 0.5rem;
}

.cadre-transparent{
	padding: 1.5rem;
	background: $bg-diapo;
	border-radius: 0.5rem;
}

.bordure-top{
	padding-top: 1.5rem;
	border-top: solid 1px $couleur-liens;
}

// pour empêcher l'opacité à 0.5 pendant le chargement AJAX :
.loading > * {
    opacity: 1 !important;
}

/* polices */
* { font-family: 'Cabin', sans-serif; font-size: 1.1rem}
i.fas { font-family: fontawesome; font-style: normal; font-weight: 400; }
h1, .h1, h2, .h2, h3, .h3, h4, .h4, legend,
.h1-like, .h2-like, .h3-like, .h4-like { font-family: 'Cabin', sans-serif; }


/* liens */
a, a:hover {
	text-decoration: none;
	color: $couleur-liens;
}

/* images */
img{
	max-width: 100%;
	height: auto;
}

/* pagination */

.pagination{
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 1.5rem;
}

.pagination {
	.prev, .next {
		line-height:100%
	}
	.disabled {
		display: none;
	}
}
.pagination {

	strong, .lien_pagination {
		background-color: $fond-footer;
		padding: 0.5rem 1rem;
		border-radius: 0.2rem;
	} strong{
		cursor:initial;
		color: $page-active;
	}
	.lien_pagination{
		color: $light;
	}
	.sep{
		display: inline-block;
		width: 0.5rem;
	}
}

/* breadcrumb */
.breadcrumb{
	//background: #e8ebf8;
	padding: 0;
	.divider{
		padding: 0 0.2rem;
	}
}

/* body */
body{
	background: $bg-body;
}

/**********************************************************************/
/*************************    HEADER     ******************************/
/**********************************************************************/

#menu-principal{
	padding: 1rem 2rem;
	background-color: $fond-menu;
	transition: all 1s;
	.nav-item:hover{
		background: rgba(255,255,255,0.2);
	}
	.nav-link{
		padding: 0.3rem 0;
		font-size: 1.2rem;
	}
	.nav-link, .dropdown-item{
		color: $light;
		font-weight: 500;
		font-family: 'Cabin', sans-serif;
		text-align: center;
		transition: height 1s ease;
	}
	.navbar-brand{
		width: 200px;
		transition: all 1s ease;
		img{
			transition: all 1s ease;
		}
	} 
	.active a.nav-link{
		color: $page-active;
	}
	.navbar-toggler {
		border-color: $light;
	}
	.fa-bars{
		font-size: 1.8rem;
		color: $light;
	}
	&.reduit{
		.navbar-brand{
			width: 150px;
		}	
	}
	.dropdown-menu{
		background: #399975;
		border-radius: 0 0 0.2rem 0.2rem;
		border: none;
	}
	.dropdown-item:focus, .dropdown-item:hover{
		background: rgba(255,255,255,0.2);
		color: white;
	}
	@include media-breakpoint-up(xl){
		padding: 0 2rem;
		height: 5rem;
		.container{
			height: 100%;
		}
		&.reduit{
			height: 3rem;
			padding: 0 2rem;
			.nav-link{
				padding: 0.2rem 0.5rem;
			}
		}
		.nav-link{
			padding: 0.5rem;
			height: 100%;
			display: flex;
			align-items: center;
		}
		.dropdown-menu{
			margin-top: 0;
		}
		.dropdown-item{
			text-align: left;
		}
	}
}

#liste-deroulante{
	ul{
		list-style-type: none;
	}
	@include media-breakpoint-up(xl){
		height: 100%;
		ul{
			height: 100%;
			align-items: center;
			li{
				height: 100%;
				display: flex;
				align-items: center;
			}
		}
	}
}


/**********************************************************************/
/**************************** PAGE ACCUEIL ****************************/
/**********************************************************************/

// 1. SECTION PRESENTATION

#presentation-accueil{
	padding: 10rem 0 2rem 0;
	background: $bg-presentation;
	background-size: cover;
	background-repeat: no-repeat;
	.image-encadree{
		margin: 2rem;
		img{
			border-radius: 0.2rem;;
			border: solid 3px white;
		}
	}
}

#images-presentation{
	text-align: center;
}

#texte-presentation{
	display: flex;
 	.contenu{
		 align-self: center;
		padding: 1.5rem;
		background: $bg-texte-presentation;
		background-size: cover;
		background-repeat: no-repeat;
		border-radius: 0.2rem;
		font-weight: 500;
		.intro{
			font-size: 1.3rem;
			line-height: 1.5rem;
			font-weight:400;
			strong{
				font-size: 1.3rem;
				font-weight: 700;
			}
		}
	}
}

// 2. SECTION MIS EN AVANT

.background-jaune{
	background: $bg-mis-en-avant;
	background-size: cover;
	background-repeat: repeat;
}

#mis-en-avant{
	background: $bg-mis-en-avant;
	background-size: cover;
	background-repeat: no-repeat;
	padding: 4rem 0;
	.container > div{
		margin: 2px 0;
	}
}

.a-la-une{
	color: $bg-diapo-texte;
}

#agenda, .dernieres-nouvelles{
	background: $fond-transparent;
	border-radius: 0.2rem;
	display: flex;
	flex-direction: column;
	text-align: center;
	.h3{
		font-weight: 700;
		margin: 1.5rem;
		color: $bg-diapo-texte;
	}
	.h5{
		font-weight:600;
	}
}

.dernieres-nouvelles{
	text-align: left;
	padding: 0 1.2rem;
	border-left: solid 1px $couleur-liens;
}

.agenda-evenement{
	margin: 0 1.5rem 1.5rem 1.5rem;
}

// 3. SECTION A LA UNE

#a-la-une{
	padding: 4rem 0;
	background: $bg-a-la-une;
	h3{
		font-weight: 700;
		padding: 1rem;
	}
}

.liste-articles-encadres{
	row-gap: 1.5rem;
	.bloc-article {
		height: 100%;
		outline: 1px solid #eee;
		a {
			min-height: 100%;
			h2 {
				text-align: left;
			}
		}
	}
	.bloc-contenu{
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		width: 100%;
		min-height: 100%;
		position: relative;
	}

	.bloc-textes{
		padding: 1.5rem;
		flex-grow: 1;
	}

	.resume-article{
		flex-grow: 1;
	}
}

.bloc-ville{
	text-align: center;
	div{
		color: $dark;
	}
	&:hover div{
		color: $couleur-liens;
	}
}

// 4. SECTION NOUS CONTACTER
#nous-contacter{
	background: $bg-nous-contacter;
	background-size: cover;
	padding: 4rem 0 3rem 0;
	.h3{
		color: $light;
		font-weight: 700;
		padding: 1rem;
	}
	.formulaire_nous_contacter{
		background: none;
		margin: 0;
		input, textarea{
			background-color: $light;
			border: none;
		}
		input.submit{
			border: solid 2px $light;
			background: none;
			color: $light;
			&:hover{
				background: rgba(255,255,255,0.25);
				border-color: transparent;
			}
		}
	}
}
/**********************************************************************/
/**************************** CAROUSEL ********************************/
/**********************************************************************/

#diaporama_accueil{
	height: 430px;
	background: $bg-diapo;
}


.carousel-item{
	padding: 2rem;
	border-radius: 0.2rem;
	font-size: 1.2rem;
	opacity: 0;
	&.active{
		opacity: 1;
	}
}

.carousel-caption{
	position: initial;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.diapo-texte{
	background-color: $bg-diapo-texte;
	padding: 2rem;
	align-self: center;
	width: 70%;
	border-radius: 0.2rem;
}

.diapo-bouton{
	background-color: $bg-diapo-texte;
	border: solid 2px white;
	border-radius: 0.2rem;
	padding: 0.5rem 2rem;
	align-self: center;
	margin: 2rem;
}

.carousel, .carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-fade .carousel-item {
	transition-duration: 1.5s;
}

.carousel-item.active, .carousel-item-next, .carousel-item-prev {
	transition: transform 1.5s ease, opacity 0.2s;
}

.carousel-indicators li{
	height: 8px;
	width: 8px;
	margin-right: 4px;
	margin-left: 4px;
	border-radius: 100%;
}

// Couleur des flèches
.carousel-control-next-icon{
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23478E7E' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}
.carousel-control-prev-icon{
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23478E7E' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}

/**********************************************************************/
/***************************** FOOTER *********************************/
/**********************************************************************/

#footer-infos{
	background: $fond-footer;
	padding: 3rem 0;
	a{
		color: $light;
	}
}

.footer{
	color: $light;
	margin-bottom:0;
	text-align: left;
	position:relative;
	
	h4{
		color: $titres-footer;
		font-weight: 600;
	}
	.colophon a { 
		color: $light;
		padding: 10px 15px; 
	}

	.footer-options{
		background:$fond-footer;
		padding: 0 0 2rem 0;
		.grille{
			display: flex;
			flex-direction: column;
			align-items: center;
		}
		li{
			text-align: center;
			width: 100%;
			margin-bottom: 0.5rem;
		}
		.generator{
			max-width: none;
		}
		a.btn:not(.bouton-login){
			border-radius: 0.2rem;
			background: $dark;
			color: $light;
			&:hover{
				background: $gris-moyen;
			}
		}
		a:not(.bouton-login){
			color: white;
		}
		@include media-breakpoint-up(sm){
			ul.nav{
				width: 100%;
				justify-content: center;
				align-items: center;
			}
			li{
				text-align: center;
				width: auto;
				margin-right: 1.5rem;
			}
		}
		@include media-breakpoint-up(lg){
			.grille{
				flex-direction: row;
				justify-content: space-between;
			}
			ul.nav{
				justify-content: flex-start;
				li{
					margin-right: 1rem;
				}
			}
			ul.nav.a-droite{
				justify-content: flex-end;
				li{
					margin-left: 1rem;
				}
			}
		}
	}

	.footer-options img{
		max-width: 70px;
		max-height: 70px;
		height: auto;
	}

	.generator img:hover{
		opacity:0.6;
	}
	.pages-footer li:hover a{
		color: $titres-footer;
	}
}

.page_sommaire .footer-options, .page_sommaire #footer-infos{
	background: #FFF0C7;
	color: black !important;
	h4{
		color: $fond-footer;
	}
	a, .grille a{
		color: black;
	}
	.pages-footer li:hover a{
		color: $dark;
	}
}

/**********************************************************************/
/************************ PAGE ASSOCIATION ****************************/
/**********************************************************************/

#menu-association, #menu-methode, #menu-groupes, #menu-medias, #menu-espace_membre{
	background: $couleur-liens;
	margin: 1rem 0;
	border-radius: 0.2rem;
	padding: 0;
	.active a{
		color: $page-active-clair;
		
	}
	ul{
		width: 100%;
	}
	li{
		padding: 0.5rem;
		a{
			color: white;
		}
		&:not(:last-of-type){
			border-bottom: solid 1px $light;
		}
	}
	.navbar-toggler{
		border: none;
		color: white;
		width: 100%;
		align-items: center;
		justify-content: space-between;
	}
}

.asso-image{
	margin: 1.5rem 0;
}


/**********************************************************************/
/************************** PAGE GROUPES ******************************/
/**********************************************************************/

#menu-groupes, #menu-medias, #menu-espace_membre{
	margin-top: 0;
}

@include media-breakpoint-up(lg) {
	#menu-groupes, #menu-medias, #menu-espace_membre{
		li:not(:last-of-type){
			border: none;
		}
	}
}

.page-groupes{
	align-items: flex-start;
}

.bloc-groupe{
	border: solid 1px $gris-clair;
	background: $light;
	padding: 1.5rem;
	border-radius: 0.5rem;
	margin: 2rem 0;
}

.banniere-ville{
	position: relative;
}

.ville-titre{
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	padding: 1rem;
	background:	rgba(255,255,255,0.8);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@include media-breakpoint-up(md) {
	.ville-titre{
		width: 30%;
	}
}

.articles-groupe{
	display: inline-block;
	padding: 1rem;
	background: $couleur-liens;
	border-radius: 0.5rem 0.5rem 0 0;
	color: white;
}



/**********************************************************************/
/**************** TOUS LES FORMULAIRES DE CONNEXION *******************/
/**********************************************************************/

.formulaire_spip .boutons, .boutons{
	margin: 1rem 0;
	.btn{
		font-size: 1.2rem;
		line-height: 1rem;
		padding: 1rem;
		border: solid 1px $light;
		border-radius: 0.5rem;
		margin-left: 1rem;
		background: $dark;
		color: $light;
		&:hover{
			color: white;
		}
	}
	&.a-droite{
		display: flex;
		flex-direction: row;
		justify-content: flex-end;
	}
	.btn_supprimer{
		background: none;
		color: $red;
		border: solid 1px $red;
		&:hover{
			background: rgb(214, 72, 72)
		}
	}	
	.submit, .btn_editer {
		//background-color: #4f56cd;
		background-color: $fond-footer;
		color: $light;
		padding: 1rem;
		line-height: 1rem;
		&:hover{
			//background-color: #7276ee;
			background-color: rgb(105, 182, 164);
			cursor: pointer;
		}
	}
	.btn_editer{
		margin-left: 0;
		padding: 0.5rem;
	}
}

.btn.bouton-login{
	background: $couleur-liens;
	border-radius: 0.2rem;
	color: #333 !important;
	&:hover{
		color: black;
		background-color: $page-active;
	}
}

.bouton-toggle{
	color:lightgrey;
	display: block;
	text-align: center;
	&.vert{
		color: green;
	}
}


.formulaire_spip{
	fieldset legend{
		background: none;
	}
	input, textarea{
		padding: 0.5rem;
		border-radius: 0.2rem;
		border: solid 1px grey;
	}
}
.formulaire_editer_groupe{
	.choix{
		display: flex;
		align-items: center;
		width: 3rem;
		label{
			margin: 0;
		}
	}
	.editer_ponctuel .ligne{
		display: flex;
	}
}

/**********************************************************************/
/*************** FORMULAIRE DE SAISIE D'ARTICLE ***********************/
/**********************************************************************/
.formulaire_editer_post {
	clear: none;
	.resume textarea { min-height: 25rem; }
	.upload_vignette {
		label { display: block; }
		.ajaxbloc {
			clear: both;
			@include media-breakpoint-up(lg) {
				clear: initial;
			}
		}
	}
	legend {
		width: auto;
	}
}

.docs-article {
	justify-content: left;
	display: flex;
	.une_photo {
		margin-right: 1rem;
		margin-bottom: 1.5rem;
		display: flex;
		flex-direction: column;
		max-width: 320px;
	}
	.btn_poubelle{
		color: red;
		&:hover{
			color: #b30000;
		}
	}
	.btn_une{
		color: grey;
		&:hover{
			color: black;
		}
	}
	.boutons_actions {
		width: 100%;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		align-items: center;
		background-color: $gris-clair;
		i {
			padding:0 0.6rem;
		}
		a {
			margin: 0;
		}
		.premier-plan{
			color: rgb(28, 158, 28);
			display: flex;
			flex-direction: row;
			align-items: center;
			padding: 0.2rem;
			font-size: 1rem;
		}
	}
}

.titre_img{
	background: $gris-moyen;
	color: white;
	text-align: center;
}

.photo-premier-plan{
	margin-bottom: 1.5rem;
	text-align:center;
}

.container fieldset {
    clear: none;
    margin-bottom: 1.5rem;
	border: solid 1px #BBB;
	padding: 1.5rem;
	background-color:#FCFCFC;
	border-radius: 0.5rem;
	&> div{
	margin-bottom: 1.2rem;
	}
}

/**********************************************************************/
/**************************** PAGE ARTICLE ****************************/
/**********************************************************************/



.liste-documents, .photo-article{
	justify-content: center;
	text-align: center;
	margin-bottom: 1.5rem;;
	.col{
		flex: 0 0 10rem;
	}
	.titre_img{
		font-size: 1rem;
		background: none;
		color: $dark;
	}	
}

.photo-article{
	width: 100%;
	display: block;
	background: white;
}

.liste-articles{
	.bloc-textes{
		padding: 1rem 0;
	}
}

/**********************************************************************/
/************************* PAGE GERER MEMBRES *************************/
/**********************************************************************/

.liste-auteurs{
	align-items: center;
	text-align: center;
}

/**********************************************************************/
/****************************** FORUM *********************************/
/**********************************************************************/

.sujet-forum{
	padding: 1rem 0;
	background: $fond-transparent;
	&:not(:first-of-type){
		border-top: solid 3px $gris-clair;
	}
	.avatar img{
		border-radius: 100%;
	}
	.liste-documents{
		justify-content: flex-start;
		align-items: flex-end;
	}
}

#formulaire_forum{
	.fieldset-texte legend{
		display: none;
	}

	.saisie_texte_info{
		display: none;
	}
}

.editer_docs_forum{
	background: $light;
}

/**********************************************************************/
/**************************** PAGE CONTACT ****************************/
/**********************************************************************/

#page-contact{
	.h3{
		font-weight: 700;
	}
	.formulaire_nous_contacter{
		background: none;
		margin: 0;
		input, textarea{
			background-color: $light;
			border-color: lightgray;
		}
		input.submit{
			background-color: $fond-footer;
			color: $light;
			padding: 1rem;
			line-height: 1rem;
			&:hover{
				//background-color: #7276ee;
				background-color: rgb(105, 182, 164);
				cursor: pointer;
			}
		}
	}
}

/**********************************************************************/
/****************************** spip_admin ****************************/
/**********************************************************************/

div#spip-admin { display:none; }
@include media-breakpoint-up(sm) {
	div#spip-admin { display: initial; }
}
