@charset "utf-8";

/****************************************************************
FLEX PAR DEFAUT
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: stretch;
align-content: stretch;  /* ne marche qu'a partir de la 2em ligne
**********
align-self:	stretch; /* ignoré en cas de marge auto
flex: 0 1 auto; /* grow - shrink - basis
***************************************************************/

#div_LESrubriques {
	position: relative;
	width: 90%;
	max-width: 1000px;
	margin: 0 auto;
	padding-top: 1em;
}

#anchor2_rubrique {
	/* 
	hauteur decalage = (hauteur espace1 - hauteur padding - hauteur du menu)
	margin-top: calc(50vmin - 17vmin - 54px); 
	*/
	height: 10px;
	width: 100%;
}

#div_RubriquesAndOrderChoices {
	display: flex;
	flex-wrap: wrap-reverse;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	margin: calc(54px + 2vmin) auto 2vmin;
}

/****************************************************/
/****************************************************/
.form_choix_rubriques {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-start;
	margin: 2vmin 0;
	width: 100%;
}

/*.form_choix_rubriques label {
	display: inline-block;
	position: relative;
}*/

.form_choix_rubriques input {
	margin: 0;
	border: none;
	background: none;
	cursor: pointer;
	text-align: left;
	letter-spacing: 1px;
	font-family: "raleway", Sans-Serif;
	font-weight: 500;
	text-transform: uppercase;
	line-height: 1rem;
	font-size: 14px;
	padding: 0.6em 3vmin;
	opacity: 0.6;
	white-space: nowrap;
}

.form_choix_rubriques .RUBRIQUE_BtnActif {
	font-size: 1em;
	padding: 0.5em 2vmin;
	opacity: 1;
	font-weight: 600;
}

/****************************************************/
/****************************************************/
.classement_rubriques {
	display: none;
}

.ToggleRubriques {
	display: inline-block;
	position: absolute;
	right: 0;
	bottom: 0;
	width: 3.5vmin;
	height: 6vmin;
	background-color: #bbb;
	border-radius: 4px;
	z-index: 9;
}

.ToggleRubriques p {
	display: inline-block;
	position: absolute;
	right: 4vmin;
	margin: 0;
	text-align: right;
	font-size: 0.6rem;
	font-weight: 500;
	line-height: 3vmin;
	text-transform: uppercase;
	color: #808080;
}

.ToggleRubriques input {
	position: relative;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0 0;
	padding: 0 0;
	cursor: pointer;
	opacity: 0;
	z-index: 9;
	color: transparent;
	border: none;
	background: none;
}

.ToggleRubriques input:focus {
	opacity: 1;
}

.ToggleRubriques .ShadowBtn {
	display: block;
	position: absolute;
	top: 1px;
	right: 1px;
	bottom: 1px;
	left: 1px;
	background-image: linear-gradient(to top,
			#eee 0%,
			#bbb 50%,
			#fff 50%,
			#ddd 100%);
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4), inset 0 -1px 1px #888,
		inset 0 -3px 1px #bbb, inset 0 -5px 0 white;
	border-radius: 3px;
	font: normal 11px Arial, Sans-Serif;
	color: #666;
	text-shadow: 0 1px 0 white;
	cursor: text;
}

.ToggleRubriques .ShadowBtn:before {
	content: attr(data-off);
	position: absolute;
	top: 6px;
	right: 0;
	left: 0;
}

.ToggleRubriques .ShadowBtn:after {
	content: attr(data-on);
	position: absolute;
	right: 0;
	bottom: 11px;
	left: 0;
	color: #666;
	text-shadow: 0 -1px 0 #eee;
}

.BtnOrder-checked + .ShadowBtn {
	background: linear-gradient(to top, #ddd 0%, #ccc 50%, #fff 50%, #ddd 100%);
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.4), inset 0 1px 7px -1px #ddd,
		inset 0 3px 1px #888888, inset 0 5px 0 white;
}

.ToggleRubriques .BtnOrder-checked + .ShadowBtn:before {
	top: 11px;
}

.ToggleRubriques .BtnOrder-checked + .ShadowBtn:after {
	bottom: 9px;
	color: #aaa;
	text-shadow: none;
}

/*************************************************************/
/*************************************************************/

.grid-rubriques {
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-column-gap: 2vmin;
	grid-row-gap: 2.7em;
	max-width: 1000px;
}

.grid-rubriques figure {
	position: relative;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-size: 0.75rem;
	line-height: 1rem;
	color: black;
	font-weight: 400;
}

.grid-rubriques figure img,
.grid-rubriques figure iframe,
.grid-rubriques figure video {
	display: inline-block;
	width: 100%;
	min-width: 100%;
	height: calc((90vw - 6vmin) / 3);
	max-height: calc((1000px - 6vmin) / 3);
	object-fit: cover;
	background: white;
	border: dotted grey 1px;
}

.grid-rubriques figure input {
	width: 100%;
	height: calc((90vw - 6vmin) / 3);
	max-height: calc((1000px - 6vmin) / 3);
	background: none;
	display: inline-block;
	position: absolute;
	border: none;
	cursor: pointer;
	font-size: 0;
	color: transparent;
}

.grid-rubriques figure iframe {
	background: white;
	border: none;
}

.grid-rubriques figure figcaption {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 50%;
	min-height: 3em;
	position: absolute;
	bottom: -1.5em;
	padding: 0.5vmin 1vmin;
	background-color: floralwhite;
	transition: all 0.3s ease-out;
	border-radius: 3px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.grid-rubriques form:hover figure > figcaption {
	box-shadow: none;
	width: 100%;
	/* position: absolute; */
	bottom: -3.2em;
	background: rgb(70 70 70);
	color: floralwhite;
	border-radius: 0;
	font-size: 1.05em;
	font-weight: 500;
	transition: all 0.15s ease-out;
}

.grid-rubriques form:focus-within figure > figcaption {
	transform: scale(1.2);
	transition: all 0.2s ease-in;
}



/*************************************************/
/*		Boutons flèches pour rubriques
/*************************************************/

.grid-rubriques .item-aveclick {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	margin: 0;
	background-color: hsl(0, 0%, 10%);
	border-radius: 0;
	padding-bottom: 0;
	cursor: url(../images/logo_elements/home-28.png), auto;
	z-index: 9999 !important;
}

.grid-rubriques .item-aveclick .rubriques_content {
	height: auto;
	max-height: 85vh;
	max-width: 1700px;
	margin-bottom: 3vh;
}

.grid-rubriques .item-aveclick .rubriques_content img,
.grid-rubriques .item-aveclick .rubriques_content video {
	height: auto;
	max-height: 85vh;
}

.grid-rubriques .item-aveclick .rubriques_content img:focus,
.grid-rubriques .item-aveclick .rubriques_content video:focus {
	outline: none;
}

.grid-rubriques .item-aveclick figcaption {
	position: absolute;
	font-size: 1em;
	bottom: -2.5vh;
	background: rgb(0 0 0/ 75%);
}

/******************************************************/
/***     button_rubriques     ***/
/******************************************************/

/*******************************/
.divButton_rubriques {
	display: none;
}

.button_rubriques:focus {
	outline: 0px !important;
}

.divButton_rubriques-aveclick {
	display: flex;
	position: fixed;
	top: 30vh;
	left: 0;
	z-index: 9999999;
}

.button_rubriques {
	width: auto;
	height: 40vh;
	margin: 0;
	padding: 5vh;
	border: none;
	background-color: transparent;
	cursor: pointer;
	font-size: 7em;
}

.button_rubriques span {
	display: block;
	font-family: "montserrat";
	font-weight: 300;
	text-shadow: 1.5px 1.5px 3px rgba(255, 255, 255, 0.9);
	background-clip: text;
	-webkit-background-clip: text;
	/* background-clip : fond decoupé par le texte, dans un span pour safari */
	color: transparent;
	background-color: black;
	transform: scaleX(0.5);
	text-align: left;
	transform-origin: left;
}

.button_rubriques[value="+"] {
	position: fixed;
	right: 0;
}

.button_rubriques[value="+"] span {
	text-align: right;
	transform-origin: right;
}

/*=============================================================*/
/* @MEDIA    @MEDIA    @MEDIA    @MEDIA    @MEDIA    @MEDIA
/*=============================================================*/

/**********************************************/
/* * * * ecran avec HOVER - ******************************/
/**********************************************/

/*=============================================================*/
/* @MEDIA    @MEDIA    @MEDIA    @MEDIA    @MEDIA    @MEDIA/*=============================================================*/

@media (any-hover: hover) {

	.form_choix_rubriques input:hover,
	.form_choix_rubriques input:focus {
		background-color: hsla(0, 0%, 14%, 0.8);
		opacity: 1;
		font-weight: 400;
		color: floralwhite;
		border-radius: 5px;
	}
}

/***********************************************/
/* * * * * * * * * @ASPECT RATIO  * * * * * * */
/*********************************************/

@media screen and (max-aspect-ratio: 1/1) {}

/* * * * * * * * * @MEDIA SCREEN  ********************************/
/*  *    +17 par rapport au breakpoint de fenetre    ************/
/* * * * * * * * * @MEDIA SCREEN  ******************************/

/* * * * au dessus de 703px ******/
@media screen and (min-width: 703px) {}

/* * * * au dessus de 950px ******/
@media screen and (min-width: 950px) {}

/* * * au dessus de 2000px ********/
@media screen and (min-width: 2000px) {
	.grid-rubriques {
		grid-template-columns: repeat(4, 1fr);
		max-width: 1300px;
	}
}

/*******************************************************/
/*******************************************************/
@media screen and (max-width: 1150px)

/* * * au dessous de 1150px ********/
	{
	.form_choix_rubriques {
		justify-content: flex-start;
		width: 75%;
	}

	.grid-rubriques figure:hover > figcaption {
		padding: 1vmin;
	}
}

/*******************************************************/
@media screen and (max-width: 950px)

/* * * au dessous de 950px ********/
	{
	#div_RubriquesAndOrderChoices {
		margin: calc(54px + 2vmin) auto 0;
	}

	.form_choix_rubriques {
		align-items: flex-start;
		flex-direction: column;
		justify-content: space-between;
		align-content: space-between;
	}

	.form_choix_rubriques input {
		margin: 0.5em 0;
		padding: 0.6em 2vmin;
	}


	.classement_rubriques {
		width: 3vmax;
		height: 6vmax;
		margin: 3vmax 3em;
		background: none;
		border: none;
		box-sizing: border-box;
		/* text-align: right; */
	}

	.ToggleRubriques {
		width: 3.3vmax;
		height: 6vmax;
		right: unset;
		bottom: unset;
	}


	.ToggleRubriques p {
		display: flex;
		justify-content: center;
		text-align: center;
		line-height: 9.2vmax;
		top: -6vmax;
		right: 0;
		width: 100%;
	}

	.grid-rubriques figure img,
	.grid-rubriques figure video {
		height: calc((90vw - 3vmin) / 2);
	}

	.grid-rubriques {
		grid-template-columns: repeat(2, 1fr);
	}
}

/*********************************************************/
/* * * au dessous de 703px ********/
@media screen and (max-width: 703px) {
	/* * * au dessous de 703px ********/


	.blocTitre {
		top: 0;
		z-index: 9999;
	}

	#titre2_realisation {
		padding: 18px 10px;
		background: none;
		right: 0;
		left: 0;
		width: 60%;
		margin: auto;
	}

	.form_choix_rubriques {
		flex-basis: 100%;
		justify-content: space-evenly;
		margin: 0;
	}

	.form_choix_rubriques input {
		font-size: 1em;
		text-align: center;
	}

	.classement_rubriques {
		display: none;
	}

	.form_choix_rubriques label {
		padding: 0.7em 3vmin;
	}

	.grid-rubriques figure input {
		height: calc((110vw - 3vmin) / 2);
	}

	.grid-rubriques figure img,
	.grid-rubriques figure video {
		height: calc((110vw - 3vmin) / 2);
	}

	.grid-rubriques figure figcaption {
		width: 70%;
		font-size: 0.7rem;
		letter-spacing: 0.5px;
	}

}

/*********************************************************/
/* * * au dessous de 500px ********/
@media screen and (max-width: 500px) {


	#titre2_realisation {
		text-align: right;
		margin: 0 0 0 40%;

	}
}
