/* Theme Name: Particules
 * Author: Cedric Anderson Laboratoire NT-2
 * Author URI: http://nt2.uqam.ca
 * Description: Thème pour le site de Particules
 * Version: 1.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/locenses/gpl-2.0.html
 * Text Domain: particules */
/*========================================================================================== */


/*
--- Couleurs ---
Rouge - #ff4757
Jaune - #ffff51
Vert forêt - #00402c
Saumon - #fbcebe
Bleu pâle - #b5f1f8
Vert - #acf7d0
Rose pâle - #fdd3fd
Bleu électrique - #002a97
Mauve - #611872
*/

.has-rouge-background-color{ background: #ff4757; }
.has-jaune-background-color{ background: #ffff51; }
.has-vertforet-background-color{ background: #00402c; }
.has-saumon-background-color{ background: #fbcebe; }
.has-bleupale-background-color{ background: #b5f1f8; }
.has-vert-background-color{ background: #acf7d0; }
.has-rosepale-background-color{ background: #fdd3fd; }
.has-bluelectrique-background-color{ background: #002a97; }
.has-mauve-background-color{ background: #611872; }
.has-noir-background-color{ background: #000000; }
.has-blanc-background-color{ background: #ffffff; }

.has-rouge-color{ color: #ff4757; }
.has-jaune-color{ color: #ffff51; }
.has-vertforet-color{ color: #00402c; }
.has-saumon-color{ color: #fbcebe; }
.has-bleupale-color{ color: #b5f1f8; }
.has-vert-color{ color: #acf7d0; }
.has-rosepale-color{ color: #fdd3fd; }
.has-bluelectrique-color{ color: #002a97; }
.has-mauve-color{ color: #611872; }
.has-noir-color{ color: #000000; }
.has-blanc-color{ color: #ffffff; }


@font-face {
    font-family: 'Boston';
    src: url('/wp-content/themes/particules/assets/fonts/Boston-Regular.woff2') format('woff2'),
        url('/wp-content/themes/particules/assets/fonts/Boston-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boston It';
    src: url('/wp-content/themes/particules/assets/fonts/Boston-RegularIt.woff2') format('woff2'),
        url('/wp-content/themes/particules/assets/fonts/Boston-RegularIt.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/wp-content/themes/particules/assets/fonts/Boston-Light.woff2') format('woff2'),
        url('/wp-content/themes/particules/assets/fonts/Boston-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/wp-content/themes/particules/assets/fonts/Boston-Bold.woff2') format('woff2'),
        url('/wp-content/themes/particules/assets/fonts/Boston-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boston Light It';
    src: url('/wp-content/themes/particules/assets/fonts/Boston-LightIt.woff2') format('woff2'),
        url('/wp-content/themes/particules/assets/fonts/Boston-LightIt.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Boston Bold It';
    src: url('/wp-content/themes/particules/assets/fonts/Boston-BoldIt.woff2') format('woff2'),
        url('/wp-content/themes/particules/assets/fonts/Boston-BoldIt.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}



/*-------------------GENERAL-----------------------*/
*{
	box-sizing: border-box;
}
body{
	margin: 0;
	padding: 0;
	font-family: 'Boston', 'sans-serif';
	font-size: 18px;
	line-height: 1.3;
}

body>header, body>footer{
	padding: 1.5em 2em;
}

h1{
	font-size: 2em;
	font-family: 'Poppins','sans-serif';
}

.texte-light{
	font-weight: 300;
}

/*----------------HEADER---------------------*/
body>header{
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: space-between;
	border-top: 4px solid #ff4757;
	border-bottom: 1px solid #e4e4e4;
}

body>header>section{
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	align-items: center;
	width: auto;
	margin-bottom: 1em;
}

body>header img{
	max-width: 300px;
	height: auto;
}

#menuToggle{
	display: block;
	position: relative;
	z-index: 1;
	-webkit-user-select: none;
	user-select: none;
}

#menuToggle a{
	text-decoration: none;
	color: black;
	transition: color 0.3s ease;
}

#menuToggle a:hover{
	color: #ff4757;
}


#menuToggle input{
	display: block;
	width: 40px;
	height: 32px;
	position: absolute;
	top: -7px;
	left: -5px;
	cursor: pointer;
	opacity: 0;
	z-index: 2;
	-webkit-touch-callout: none;
}

#menuToggle span{
	display: block;
	width: 33px;
	height: 4px;
	margin-bottom: 5px;
	position: relative;
	background: black;
	border-radius: 3px;
	z-index: 1;
	transform-origin: 4px 0px;
	transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
	background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
	opacity 0.55s ease;
}

#menuToggle span:first-child{
	transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2){
	transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span{
	opacity: 1;
	transform: rotate(45deg) translate(-2px, -1px);
	background: #232323;
}

#menuToggle input:checked ~ span:nth-last-child(3){
	opacity: 0;
	transform: rotate(0deg) scale(0.2, 0.2);
}
#menuToggle input:checked ~ span:nth-last-child(2){
	transform: rotate(-45deg) translate(0, -1px);
}

#menu{
	position: absolute;
	top:0;
	margin: -50px 0 0 -50px;
	padding: 50px;
	padding-top: 125px;
	background: white;
	list-style-type: none;
	-webkit-font-smoothing: antialiased;
	transform-origin: 0% 0%;
	transform: translate(-100%, 0%);
	transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li{
	padding: 10px 0;
	text-transform: uppercase;
	font-weight: 700;
}

#menuToggle input:checked ~ ul{
	transform: none;
}




/*---------------------MAIN--------------------------*/
body>main{
	padding: 5%;
	max-width: 900px;
	margin: 0 auto;
}

main a{
	color: #ff4757;
	text-decoration: none;
	font-weight: 700;
}

main a:hover{
	text-decoration: underline;
}

main p + p{
	margin-top: 30px;
}

figcaption{
	font-size: 0.7em;
}
.ambassadeurs{
	margin: 0;
	padding: 0;
}

.ambassadeurs img{
	width: 100%;
	height: auto;
}





/*--------------------FOOTER----------------------*/
body>footer{
	display: flex;
	flex-flow: row wrap;
	justify-content: space-around;
	align-items: flex-start;
	border-top: 1px solid #e4e4e4;
	border-bottom: 4px solid #ff4757;
	margin: 0;
}
body>footer>section{
	margin: 0; 
	padding: 0;
	position: relative;
}
body>footer>section h3{
	text-transform: uppercase;
	font-weight: 300;
	width: 100%;
}
body>footer>section>section>img, body>footer>section>section>a>img{
	height: auto;
	max-height: 100px;
	max-width: 100%;
	float: left;
}
body>footer>section>section>a>img{
	margin-left: 1em;
}

/*----------------PAGE DES FICHES------------------*/
.conteneur-des-fiches{
	display: flex;
	flex-flow: row wrap;
	margin: 0 auto;
	justify-content: flex-start;
	align-items: center;
}
.fiches{
	position: relative;
	flex-basis: calc(33.33% - 1em);
	margin: 0.5em;
	min-width: 200px;
}
.fiches>header>a>img{
	width: 100%;
	height: auto;
	transition: filter 0.2s;
	filter: brightness(80%);
}
.fiches>header>a>img:hover{
	filter:brightness(100%);
}
.fiches>h2{
	position: absolute;
	bottom: 0; 
	left: 0.5em;
	color: white;
}
/*--------------------FICHES-----------------------*/
.contenu-fiche{
	display: flex;
	flex-flow: row wrap;
}
.contenu-fiche>section{
	flex: 1 1 40%;
}
.photo-fiche{ 
	width: 70%;
	padding-right: 2em;
}
.photo-fiche img{
	width: 100%;
	height: auto;
}
.texte-fiche{
	width: 100%;
}
.texte-fiche h1{
	margin-top: 0;
	padding-top: 0;
}


/*-----------------MEDIA QUERIES------------------*/


@media only screen and (max-width: 740px){
	body>header{
		flex-flow: column;
	}
	#menu{
		margin: -50px 0 0 -330px;
	}
	body>header>section{
		margin-top: 2em;
	}
	#menuToggle input:checked ~ ul{
		transform: translate(40%,-5%);
	}
	.conteneur-des-fiches{
		justify-content:center;	
	}
	.collab img{
		display: block;
		margin: 0 auto;
	}

}
@media only screen and (max-width: 680px){
	body>header>section{
		flex-flow: column;
		align-items: center;
		justify-content: center;
	}
}
