@charset "utf-8";

/* *** Tuiles *** */

.tuiles {
	position: relative;
	font-size: 1.35rem;
	display: flex;
	width: auto;
	flex-wrap: wrap;
	overflow-x: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	flex-flow: row wrap;
	margin: -5px;
}

.tuiles .tuA {
	margin: 5px;
	line-height: 1.3em;
	cursor: pointer;
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
}

/* qté de tuiles */
.tuiles .tu {flex:0 0 calc(50% - 10px);}
.tuiles.max5 .tu {flex:0 0 calc(50% - 10px);}
.tuiles.max4 .tu {flex:0 0 calc(100% - 10px);}
.tuiles.max3 .tu {flex:0 0 calc(100% - 10px);}
.tuiles.max2 .tu {flex:0 0 calc(100% - 10px);}
@media screen and (min-width: 380px) {
	.tuiles .tu {flex:0 0 calc(50% - 10px);}
	.tuiles.max5 .tu {flex:0 0 calc(50% - 10px);}
	.tuiles.max4 .tu {flex:0 0 calc(50% - 10px);}
	.tuiles.max3 .tu {flex:0 0 calc(100% - 10px);}
	.tuiles.max2 .tu {flex:0 0 calc(100% - 10px);}
}
@media screen and (min-width: 480px) {
	.tuiles .tu {flex:0 0 calc(33.3% - 10px);}
	.tuiles.max3 .tu {flex:0 0 calc(50% - 10px);}
}
@media screen and (min-width: 550px) {
	.tuiles .tu {flex:0 0 calc(25% - 10px);}
	.tuiles.max5 .tu {flex:0 0 calc(33.3% - 10px);}
	.tuiles.max4 .tu {flex:0 0 calc(33.3% - 10px);}
	.tuiles.max2 .tu {flex:0 0 calc(50% - 10px);}
}
@media screen and (min-width: 850px) {
	.tuiles .tu {flex:0 0 calc(20% - 10px);}
	.tuiles.max5 .tu {flex:0 0 calc(25% - 10px);}
}
@media screen and (min-width: 990px) {
	.tuiles .tu {flex:0 0 calc(16.66% - 10px);}
	.tuiles.max5 .tu {flex:0 0 calc(20% - 10px);}
	.tuiles.max4 .tu {flex:0 0 calc(25% - 10px);}
	.tuiles.max3 .tu {flex:0 0 calc(33.3% - 10px);}
}
@media screen and (min-width: 1599px) {
	.tuiles .tu {flex:0 0 calc(16.66% - 30px);}
	.tuiles.max5 .tu {flex:0 0 calc(20% - 30px);}
	.tuiles.max4 .tu {flex:0 0 calc(25% - 30px);}
	.tuiles.max3 .tu {flex:0 0 calc(33.3% - 30px);}
	.tuiles.max2 .tu {flex:0 0 calc(50% - 30px);}
}
/* */

.tuiles .tuA .d1 {
	background-color: inherit;
	text-align: center;
}

.tuiles .tuA .txBox {
	position: absolute;
	z-index: 1;
	background-color: #fff;
	padding: calc(10px + 1vw);
	width: 50%;
	top: 3vw;
	right: 3vw;
	height: calc(100% - 6vw);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tuiles .tuA .txBas {
	padding: 10px;
}

.tuiles .tuA a {
	z-index: 0;	/* cas d'un titre sur 2 ligne et d'un texte qui superpose l'image */
}

.tuiles .bt-d {
	display: flex;
}

.tuiles .bt-d > * {
	width: 20%;
	padding: 5px 5px 7px 5px;
	text-align: center;
}

.tuiles .bt-d > *:hover {
	background-color: #187489;
}

.tuiles .bt-d img {
	height: 18px;
}

.tuiles .tuA .d1 .bt-d {
	text-transform: none;
	width: 100%;
	z-index: 1;
	font-size: .9em;
	line-height: 1.5em;
	transition: all .2s;
	background-color: #384547;
}

.tuiles .tuA .d1:hover .bt-d, .tuiles .tuA:hover .bt-d {
	bottom: 0;
}

.tuiles .tuA .d1 div.PlusLarge:hover {
	left: 0;
	width: 100%;
}

.tuiles .tuA .d2 > img {
	width: 100%;
}

.tuiles .d2 {
	position: relative;
}

.tuiles .icon {
	position: relative;
	top: -23px;
	left: calc(50% - 23px);
	height: 15px;
}

.tuiles .icon div {
	width: 46px;
	height: 46px;
	background-color: #fff;
	border: 1px solid #888;
	border-radius: 23px;
	padding: 7px;
}

.tuiles .icon img {
	opacity: .7;
	width: 100%;
	height: 100%;
}

.tuiles a:hover {
	text-decoration:none;
}

/* Barre de défilement */
.tuiles { /* Firefox */
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
}
.tuiles:hover { /* Firefox */
	scrollbar-color: #bdc8d2 #eee;
}
.tuiles::-webkit-scrollbar-track {
	background-color: #eee;
	visibility: hidden;
}
.tuiles::-webkit-scrollbar {
	height: 6px;
	background-color: #eee;
	visibility: hidden;
}
.tuiles::-webkit-scrollbar-thumb {
	background-color: #bdc8d2;
	border-radius: 3px;
	visibility: hidden;
}
.tuiles:hover::-webkit-scrollbar-track, .tuiles:hover::-webkit-scrollbar, .tuiles:hover::-webkit-scrollbar-thumb {
	visibility: visible;
}
/* ** */





@media screen and (min-width: 1599px) {
	.tuiles {
		font-size: 1.4rem;
	}
	.tuiles.gap20 {
		gap: 20px;
	}
}

@media (pointer:coarse) {
	.tuiles .tuA .d1 + img {
		margin-bottom: 40px;
	}
	.tuiles .bt-d > * {
		padding-top: 10px;
		padding-bottom: 12px;
	}
}

@media (pointer:fine) {
	.tuiles .tuA .d1 .bt-d {
		position: absolute;
		bottom: -100px;
	}
}

/* Carrousel */
.carrou .tuiles {
	flex-wrap: nowrap;
	-webkit-mask-image: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgb(255 255 255) .9%, rgb(255 255 255) 99.1%, rgba(255, 255, 255, 0) 100%);
	overflow-x: scroll;
	padding-bottom: 8px; /* pour détacher la barre de defilement sur mobile */
}
.carrou .tuiles .tu {
	scroll-snap-align: start;
	scroll-snap-margin: 9vw;
	scroll-margin: 9vw;
}
.carrou .tuiles::after { /* permet d'aligner à gauche la dernière ligne flex et de mieux caller le glissement mobile lorsque l'on arrive au bout à droite */
	content: '';
	flex: 0 0 1px;
	padding: 0;
	margin: 0;
}
.carrou .tuiles .tu:first-child {
	margin-left: 10px;
}
.carrou .btn {
	cursor: pointer;
}

@media screen and (max-width: 480px) {
	.carrou .tuiles .tuA {
		flex: 1 0 80%;
	}
}

/* annulation du carrousel quand la class pasDesk est utilisé et au-dessus de 479px */
@media screen and (min-width: 480px) {
	.carrou.pasDesk .tuiles {
		flex-wrap: wrap;
		margin: 0 -5px;
		-webkit-mask-image: none;
		overflow-x: hidden;
	}
	.carrou.pasDesk .tuiles .tu:first-child {
		margin-left: 0;
	}
	.carrou.pasDesk .btn {
		display: none;
	}
}

@media screen and (min-width: 1600px) {
	.carrou .tuiles .tuA:first-child {
		margin-left: 15px;
	}
	.carrou.pasDesk .tuiles {
		margin: 0;
	}
}
/* */

@media screen and (min-width: 480px) {
	.carrou {
		position: relative;
	}
	.carrou .tuiles .tu {
		scroll-snap-margin: 85px;
		scroll-margin: 85px;
	}
}

@media screen and (min-width: 640px) {
	.carrou .btn {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		height: 50px;
		width: 50px;
		border-radius: 4px;
		background-position: 50% 50%;
		background-repeat: no-repeat;
		background-size: 40px;
		z-index: 1;
		opacity: .3;
		background-color: #fff;
	}
	.carrou .btn.prev {
		background-image: url('/images/i/svg/fleche-gauche.svg');
		left: 4px;
	}
	.carrou .btn.next {
		background-image: url('/images/i/svg/fleche-droite.svg');
		right: 4px;
	}
	.carrou:hover .btn {
		opacity: .4;
	}
	.carrou .btn:hover {
		opacity: .6;
	}
}

@media screen and (min-width: 990px) {
	.carrou .tuiles .tu {
		scroll-snap-margin: 5px;
		scroll-margin: 5px;
	}
}

@media screen and (min-width: 1100px) {
	.carrou .btn {
		opacity: .1;
		background-color: transparent;
	}
	.carrou .btn.prev {
		left: -52px;
	}
	.carrou .btn.next {
		right: -52px;
	}
}

@media screen and (min-width: 1600px) {
	.carrou .tuiles .tu {
		scroll-snap-margin: 15px;
		scroll-margin: 15px;
	}
}




/*** Modifs Tuiles (type 1) ***/
.tuiles.type1 {
	overflow: initial;
	gap: 20px 0;
}
.tuiles.type1 .tuA {
	background-color: #fff;
	border-radius: 20px;
	transition: all .3s;
	max-width: 325px;
	box-shadow: 0 0 10px 2px #ddd;
}
.tuiles.type1 h3 {
	margin-top: 5px;
	margin-bottom: 0;
	font-size: 1.5em;
	line-height: 1.1;
	color: #2d2d2d;
}
.tuiles.type1 h3 ~ div {
	margin-top: 10px;
	font-size: .95em;
}
.tuiles.type1 .tuA a {
	color: inherit;
}
.tuiles.type1 .tuA .d2 > img {
	width: 100%;
	transition: all .3s;
	border-radius: 15px 15px 0 0;
}
.tuiles.type1 .tuA:hover .d2 > img {
	transform: scale(0.97) translateY(3px);
}
.tuiles.type1 .icon div {
	transition: all .3s;
}
.tuiles.type1 .tuA:hover .icon div {
	transform: scale(1.2);
	transform: scale(1.5) translateY(-10px);
}
@media screen and (min-width: 990px) {
	.tuiles.type1 .tuA {
		max-width: none;
	}
}
@media screen and (min-width: 1599px) {
	.tuiles.type1 {
		gap: 30px;
	}
	.tuiles.type1 .tuA {
		margin: 0;
	}
}
/*** Fin Modifs Tuiles (type 1) ***/

/*** Modifs Tuiles (type 1) ***/
.tuiles.type2 {
	margin:25px 0;
	justify-content: space-evenly;
}
.tuiles.type2 h3 {
	font-size:1.25em;
}
/*** Fin Modifs Tuiles (type 1) ***/
