@charset "UTF-8";

/*
.grid (grid)
.columns (flex)

-- mode --
.grid
.grid.list
.grid.archive

-- style --
.grid.events	== thumbnails / calendar / dates (grid / list)
.grid.posts		== thumbnails (grid only)
.grid.portraits == (list only)
*/

.results-title h3 {
	font-size: 1em;
}
.results li:before {
	display: none;
}

/**************************/
/**************************/
/********** VARS **********/
/**************************/
/**************************/

/*
--item-width
--grid-gap
*/

@media (min-width: 0px) {
	.grid {
		--item-width: calc(100% - var(--gutter-gap) * 2); /* cf. .content */
		--grid-gap: 1em;
		--events-list-items-count : 7; /* number of columns in calendar */
	}
}
@media (min-width: 480px) {
	.grid {
		--item-width: 20rem;
		--grid-gap: 1em;
	}
}
@media (min-width: 760px) {
	.grid {
		--item-width: 16rem;
		--grid-gap: 2em;
	}
}
@media (min-width: 1000px) {
	.grid {
		--item-width: 18rem;
	}
}
@media (min-width: 1600px) {
	.grid {
		--item-width: 20rem;
	}
}

/*************************/
/********** WIP **********/
/*************************/

.article .short .grid .items,
.grid.vertical .items {
	-ms-grid-columns: 1fr;
	grid-template-columns: 1fr;
}

/************************************/
/************************************/
/********** GRID / DEFAULT **********/
/************************************/
/************************************/

.grid {
	position: relative;
	font-size: var(--font-size);
}
.grid .items {
	position: relative;
	display: -ms-grid;
	display: grid;
}
.grid .item {
	position: relative;
	display: -webkit-box;
	display: -webkit-flex;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
	margin: 0;
	width: 100%;
	background: var(--bright-color);
}
.grid .item-content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin: 0;
}

/********** ALT == ACTIONS **********/

.grid .item.alt {
	background: var(--light-color);
}

/********** ANIMATIONS **********/

.grid-container.is-loading:before,
.grid.is-loading:before {
	position: fixed;
	z-index: 100;
	top: 50%;
	left: 50%;
	transform: translate3d(-50%, -50%, 0);
}
.grid-container.is-loading .results-title,
.grid-container.is-loading .item,
.grid.is-loading .item {
	opacity: 0;
}

/********** STATUS **********/

.grid .item.off {
	position: absolute;
	top: 0;
	left: 0;
	height: 0;
	width: 0;
	opacity: 0;
	-ms-grid-column: 1;
	grid-column: 1 / 1;
	pointer-events: none;
}
/* IOS HACK ==> no filter !!! */
/*
.grid .items.unavailable .item .item-content,
.grid .item.unavailable .item-content {
	-webkit-filter: grayscale(1);
	        filter: grayscale(1);
	color: var(--grey-color);
}
*/
.grid .items.unavailable .item .item-content,
.grid .item.unavailable .item-content {
	color: var(--grey-color);
}
.grid .items.unavailable .item .item-content .infos .event-link > *,
.grid .item.unavailable .item-content .infos .event-link > * {
	color: var(--grey-color) !important;
}
/* END IOS HACK */
.grid .items.unavailable .item .event-cart,
.grid .item.unavailable .event-cart {
	opacity: 0.25;
	pointer-events: none;
	border-bottom: none !important;
	text-decoration: none !important;
}
.grid .items.unavailable .item .event-cart:after,
.grid .item.unavailable .event-cart:after {
	opacity: 0;
}
.grid:not(.empty):not(.search) .grid-message {
	position: absolute;
	top: 0;
	left: 0;
	height: 0;
	width: 0;
	opacity: 0;
	-ms-grid-column: 1;
	grid-column: 1 / 1;
	pointer-events: none;
}
.grid-message {
	font-size: var(--font-size);
}

/**********************************/
/**********************************/
/********** GRID CONTENT **********/
/**********************************/
/**********************************/

/********** GRID INFOS **********/

.grid .infos {
	position: relative;
	display: flex;
	flex-direction: column;
	text-align: center;
	margin: auto;
	width: 100%;
	padding: 1em;
}
.grid .infos > * {
	margin: 0;
}
.grid .item .excerpt {
	overflow: hidden;
	-o-text-overflow: ellipsis;
	   text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 4; /* number of lines to show */
	line-clamp: 4;
	-webkit-box-orient: vertical;
}

/********** COLORS **********/

body.alt .grid .thumbnail a:before {
	background: var(--secondary-color);
}

/**************************/
/**************************/
/********** LIST **********/
/**************************/
/**************************/

/* only for events in fine >> turn into .grid.events ?? */

.grid.list .items {
	grid-template-columns: 1fr !important;
	gap: calc(var(--grid-gap) / 2);
}
.grid.list .item {
	background: none;
}
.grid.list .item-content {
	flex-direction: row;
}
.grid.list .infos {
	text-align: left;
	padding: 0;
}
.grid.list .infos > * {
	margin: 0;
}

/********************************/
/********************************/
/********** COLUMNIZER **********/
/********************************/
/********************************/

/* in grid.list.portraits for orchestra */

.grid.columnizer {
	column-count: auto;
	column-width: var(--item-width);
}
.grid.columnizer .items {
	gap: 0;
}
.grid.columnizer .item {
	break-inside: avoid-column;
}
.grid.columnizer .items .item:not(:last-child) {
	padding-bottom: calc(var(--grid-gap) / 2);
}

/****************************/
/****************************/
/********** EVENTS **********/
/****************************/
/****************************/

/*
grid == thumbnails
list == calendar
search == search results
*/

/*****************************/
/********** DEFAULT **********/
/*****************************/

.grid.events .infos {
	height: 100%;
	padding: 1.5em 1.5em 2.5em 1.5em;
}
.grid.events .event-dates {
	white-space: nowrap;
	font-size: 1.25em;
	color: var(--theme-color);
}
.grid.events .event-description {
	font-size: 1.25em;
}
.grid.events .event-type {
	font-size: 0.75em;
	line-height: 1em;
	text-transform: uppercase;
	color: var(--theme-color);
}
.grid.events .buttons {
	margin: auto 0 0 0;
	padding: 2em 0 0 0;
}

/*******************************/
/********** GRID MODE **********/
/*******************************/

.grid.events:not(.list) .infos > * + * {
	margin-top: auto;
}
.grid.events:not(.list) .event-type + .event-dates,
.grid.events:not(.list) .event-title + .event-description {
	margin-top: 0.25em;
}
.grid.events:not(.list) .event-type {
	order: -1;
	margin: 0;
}
.grid.events:not(.list) .buttons {
	font-size: 0.75em;
}

/*******************************/
/********** LIST MODE **********/
/*******************************/

.grid.list.events .items {
	gap: 0;
}
.grid.list.events .item:before {
	content: '';
	position: absolute;
	z-index: 10;
	top: 0;
	left: 0;
	width: 100%;
	border-top: solid 0.0625rem;
	pointer-events: none;
}
.grid.list.events .item:last-child:after {
	content: '';
	position: absolute;
	z-index: 10;
	bottom: 0;
	left: 0;
	width: 100%;
	border-bottom: solid 0.0625rem;
	pointer-events: none;
}
.grid.list.events .infos {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 0.5em !important;
}
.grid.list.events .infos > * {
	flex-grow: 0;
}
.grid.list.events .infos .event-link {
	flex-wrap: wrap;
	justify-content: flex-start;
}
.grid.list.events .infos .event-link > * {
	margin: 0;
}
.grid.list.events .infos .buttons {
	-webkit-flex-basis: 0;
	    -ms-flex-preferred-size: 0;
	        flex-basis: 0;
}
.grid.list.events .event-dates,
.grid.list.events .event-title {
	font-size: 1em;
}
.grid.list.events .event-hour {
	white-space:nowrap;
}
.grid.list.events .event-type {
	font-size: inherit;
	color: inherit;
	margin: 0;
}
.grid.list.events .event-description {
	font-size: 1em;
}
.grid.list.events .buttons {
	justify-content: flex-end;
	margin: 0;
	padding: 0;
	margin-left: auto;
	flex-wrap: nowrap;
	justify-content: space-between;
}

/***************************/
/********** ORDER **********/
/***************************/

/** in list mode **/

.grid.list.events .event-dates { order: -1; }
.grid.list.events .event-location { order: 2; }
.grid.list.events .event-title { order: 3; }
.grid.list.events .event-type { order: 4; }

/** wip **/
.grid.list.events .event-accessibility { order: 6; }
.grid.list.events .event-tarif { order: 7; }
/** end wip **/

.grid.list.events .buttons { order: 8; }

/* only in search */

.grid.list.events .event-description { order: 5; }

/***************************/
/********** SIZES **********/
/***************************/

/** in list mode **/
/*
line break under 3rd element
12em = dates + hour + 2 spaces
*/

.grid.list.events .item .event-link { flex-grow: 9; }
.grid.list.events .item .buttons {
	flex-basis: 0;
	white-space: nowrap;
}

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

@media (max-width: 760px) {
	.grid.list.events .item .event-dates {
		flex-basis: 7em;
	}
	.grid.list.events .item .event-hour {
		flex-basis: calc(100% - 10em);
	}
}
@media (min-width: 760px) {
	.grid.list.events .item .event-link {
		padding-left: 12em;
	}
	.grid.list.events .item .event-dates {
		flex-basis: 7em;
		margin-left: -12em;
	}
	.grid.list.events .item .event-hour {
		flex-basis: 3.25em;
	}
}

/** in search mode **/

.grid.list.events .event-description {
	flex-basis: 100%;
}

/****************************/
/********** SEARCH **********/
/****************************/

.grid.list.events.search .item .event-link {
	gap:.5em;
	padding: 0;
}
.grid.list.events.search .item .event-type {
	font-size:.875em;
}

/***************************/
/********** LINKS **********/
/***************************/

.grid.events .event-link {
	display: inline-flex;
	align-items: center;
	flex-direction: column;
	border: 0;
}
.grid.list.events .event-link {
	flex-direction: row;
}
.grid.list.events .buttons a:after,
.grid.events a.event-link:after {
	display: none;
}
.grid.events a.event-link:hover .event-title,
.grid.list.events .buttons a:hover {
	/*color: var(--primary-color);*/
	color: var(--theme-color);
}

/*****************************/
/********** SPACING **********/
/*****************************/

.grid.events .event-link {
	margin: 0 !important;
}
.grid.list.events .infos,
.grid.list.events .event-link {
	gap: 0.25em 1em;
}
.grid.events:not(.list) * + .event-title {
	margin-top: 1em;
}
.grid.events:not(.list) .event-dates {
	margin-top: 0.25em;
}

/*******************************************/
/********** COLORS (ACTIONS ONLY) **********/
/*******************************************/

/** in grid mode **/

.grid.events:not(.list) .item.alt .event-dates,
.grid.events:not(.list) .item.alt .event-type,
.grid.events:not(.list) .item.alt .event-link:hover .event-title,
.grid.events:not(.list) .item.alt .buttons a:hover {
	color: var(--dark-color);
}
.grid.events:not(.list) .item.is-colored-1,
.grid.events:not(.list) .item.is-colored-1 .thumbnail a:before {
	background: var(--action-color);
}
.grid.events:not(.list) .item.is-colored-2,
.grid.events:not(.list) .item.is-colored-2 .thumbnail a:before {
	background: var(--action-color-2);
}
.grid.events:not(.list) .item.is-colored-3,
.grid.events:not(.list) .item.is-colored-3 .thumbnail a:before {
	background: var(--action-color-3);
}

/** in list mode **/

.grid.list.events .item.alt .event-dates,
.grid.list.events .item.alt .event-type,
.grid.list.events .item.alt .infos .event-location {
	color: var(--dark-color);
}
.grid.list.events .item.alt .event-link:hover .event-dates,
.grid.list.events .item.alt .event-link:hover .event-type,
.grid.list.events .item.alt .event-link:hover .event-title,
.grid.list.events .item.alt .event-link:hover .event-hour,
.grid.list.events .item.alt .event-link:hover .event-location,
.grid.list.events .item.alt .buttons a:hover {
	color: var(--primary-color);
}
.grid.list.events .item.territoire .event-dates,
.grid.list.events .item.territoire .event-type,
.grid.list.events .item.territoire .infos .event-location,
.grid.list.events .item.territoire .event-link:hover .event-title,
.grid.list.events .item.territoire .event-link:hover .event-hour,
.grid.list.events .item.territoire .buttons a:hover {
	color: var(--tertiary-color);
}

/********************************/
/********** EVENT LINK **********/
/********************************/

.grid.list.events .event-link {
	padding-left: 0 !important;
	display: -ms-grid;
	display: grid;
}
.grid.list.events .item .event-dates {
	margin-left:0;
}

/********** CALENDAR ONLY **********/

.grid:not(.search).list.events .event-link > * {
	overflow: hidden;
	-o-text-overflow: ellipsis;
	   text-overflow: ellipsis;
	white-space: nowrap;
}

/********** RESPONSIVE DISPLAY **********/

/**
calendar	== default
dates		== not calendar (in single or custom)
**/

@media (max-width: 460px) {
	/*.grid.list.events .event-location {
		display:none;
	}
	.grid.list.events.dates .event-location {
		display:block;
	}*/
}
@media (max-width: 640px) {
	/*.grid.list.events .event-accessibility,*/
	.grid.list.events .event-tarif,
	.grid.list.events .event-type,
	.grid.list.events .event-dates .date-month,
	.grid.list.events.dates .event-location .location-full {
		display:none;
	}
}
@media (min-width: 1200px) {
	.grid.list.events:not(.dates) .event-location .location-short {
		display:none;
	}
}
@media (max-width: 1200px) {
	.grid.list.events .event-location .location-full,
	.grid.list.events.dates .event-type,
	.grid.list.events.dates .event-title {
		display:none;
	}
}

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

@media (min-width: 0px) {
	.grid.list.events {
		font-size:-webkit-calc(var(--font-size) * .5);
		font-size:-moz-calc(var(--font-size) * .5);
		font-size:calc(var(--font-size) * .5);
	}
	/* calendar only */
	.grid:not(.search).list.events .event-link {
		grid-template-columns: repeat(var(--events-list-items-count), auto);
	}
	.grid:not(.search).list.events .event-link > * {
		padding:.75em 0;
	}
	.grid:not(.search).list.events .event-link > .event-dates {
		width:3.75em;
	}
	.grid:not(.search).list.events .event-link > .event-hour {
		width:3.25em;
	}
}
@media (min-width: 460px) {
	.grid.list.events {
		font-size:-webkit-calc(var(--font-size) * .75);
		font-size:-moz-calc(var(--font-size) * .75);
		font-size:calc(var(--font-size) * .75);
	}
}
@media (min-width: 640px) {
	.grid:not(.search).list.events .event-link > .event-dates {
		width:4em;
	}
	/* calendar only */
	.grid:not(.search).list.events .event-link > .event-dates {
		width:7em;
	}
}
@media (min-width: 760px) {
	/* calendar only */
	.grid:not(.search).list.events .event-link > * {
		padding:.25em 0;
	}
}
@media (min-width: 1000px) {
	.grid.list.events {
		font-size:var(--font-size);
	}
}
@media (min-width: 1200px) {
	/* calendar only */
	.grid:not(.search).list.events .event-link {
		grid-template-columns: repeat(7, auto);
	}
}

/*****************************/
/*****************************/
/********** GALLERY **********/
/*****************************/
/*****************************/
/* item > image */

.grid.gallery .image {
	position: relative;
	display: flex;
	margin: 0;
	width: 100%;
}
.grid.gallery img {
	height:100%;
	width:100%;
	object-fit: contain;
}
.grid.gallery.logos .image {
	aspect-ratio:1/1;
}

/***************************/
/***************************/
/********** POSTS **********/
/***************************/
/***************************/

/********** DEFAULT **********/

.grid.posts .item-content {
	gap: 1em;
	padding: 1em;
}
.grid.posts .thumbnail {
	order: -1;
	aspect-ratio: 16/9;
}
.grid.posts .infos {
	text-align: center;
	gap: 1rem;
	padding: 0;
	padding-bottom: 1em;
	margin-top: 2em; /* for post icon */
}
.grid.posts .title {
	font-size:1.5em;
}
.grid.posts .excerpt {
	text-align: left;
}

/********** POST-ICON **********/

.post-icon {
	font-size: 3em;
	padding: 0.125em;
	border-radius: 50%;
	fill: var(--bright-color);
	stroke: var(--bright-color);
}
.thumbnail .post-icon:before,
.post-icon:before {
	content: '';
	position: absolute;
	z-index:-1;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: var(--secondary-color);
	mix-blend-mode: normal;
	opacity:1;
	border-radius: 50%;
}
.thumbnail a:hover .post-icon:before,
a.post-icon:hover:before {
	transform: scale(1.2);
}
.post-icon svg {
	height: 1em;
	width: 1em;
	stroke-linejoin: round;
}
.post-icon svg *:not(.svg-icon-outline) {
	stroke: none;
}
.post-icon .svg-icon-outline {
	fill: none;
	stroke: inherit;
	stroke-width: calc(var(--logo-line-height) / 4);
}
.thumbnail .post-icon {
	position: absolute;
	z-index: 20;
	left: 50%;
	bottom: 0;
	transform: translate3d(-50%, 50%, 0);
}

/********** ARCHIVE **********/

.grid.posts.archive .items {
	grid-auto-flow: dense;
	overflow: hidden;
}
/*
.grid.posts.archive .item.large .thumbnail {
	order: -1;
}
*/


.grid.posts.archive .item.sticky {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}


/********** COLORS **********/

/*
no color == white
is-colored-1 == purple
is-colored-2 == yellow
is-colored-3 == pink
*/

.grid.posts .item {
	color: var(--secondary-color);
}
.grid.posts .item .thumbnail a:before {
	background: var(--secondary-color);
}
.grid.posts.archive .item.is-colored-1 {
	color: var(--bright-color);
	background: var(--post-color);
}
.grid.posts.archive .item.is-colored-1 .thumbnail a:before {
	background: var(--post-color);
}
.grid.posts.archive .item.is-colored-2 {
	color: var(--dark-color);
	background: var(--post-color-2);
}
.grid.posts.archive .item.is-colored-2 .thumbnail a:before {
	background: var(--post-color-2);
}
.grid.posts.archive .item.is-colored-3 {
	color: var(--dark-color);
	background: var(--post-color-3);
}
.grid.posts.archive .item.is-colored-3 .thumbnail a:before {
	background: var(--post-color-3);
}

/** post icon **/

.grid.posts.archive .item.is-colored-1 .post-icon:before,
.grid.posts.archive .item.is-colored-2 .post-icon:before,
.grid.posts.archive .item.is-colored-3 .post-icon:before {
	background: var(--bright-color);
}
.grid.posts.archive .item.is-colored-1 .post-icon {
	fill: var(--post-color);
	stroke: var(--post-color);
}
.grid.posts.archive .item.is-colored-2 .post-icon {
	fill: var(--dark-color);
	stroke: var(--dark-color);
}
.grid.posts.archive .item.is-colored-3 .post-icon {
	fill: var(--post-color-3);
	stroke: var(--post-color-3);
}

/********** @MEDIA **********/
/*
@media (min-width: 760px) {
	.grid.posts .item {
		aspect-ratio: 4/5;
	}
	.grid.posts.archive .item.large,
	.grid.posts.archive .item.wide {
		-ms-grid-column-span: 2;
		grid-column: span 2;
		aspect-ratio: auto;
	}
}
@media (min-width: 1000px) {
	.grid.posts.archive .item {
		-ms-grid-column-span: 1;
		grid-column: span 1;
	}
	.grid.posts.archive .item.large,
	.grid.posts.archive .item.wide {
		-ms-grid-column-span: 2;
		grid-column: span 2;
	}
}
@media (min-width: 1200px) {
	.grid.posts.archive .item {
		-ms-grid-column-span: 1;
		grid-column: span 1;
	}
	.grid.posts.archive .item.large,
	.grid.posts.archive .item.wide {
		-ms-grid-column-span: 2;
		grid-column: span 2;
	}
	.grid.posts.archive .item.large {
		-ms-grid-row-span: 2;
		grid-row: span 2;
	}
	.grid.posts .item {
		aspect-ratio: 2/3;
	}
	.grid.posts .item.wide {
		aspect-ratio: 4/3;
	}
	.grid.posts .item.large {
		aspect-ratio: 4/6;
	}
	.grid.posts .item .thumbnail {
		aspect-ratio: 4/3;
	}
	.grid.posts .item.wide .thumbnail {
		aspect-ratio: 5/2;
	}
	.grid.posts .item.large .thumbnail {
		aspect-ratio: 4/5;
	}
}
*/

/***************************/
/***************************/
/********** SIZES **********/
/***************************/
/***************************/

.grid .items {
	grid-template-columns: repeat(auto-fill, minmax(var(--item-width), 1fr));
	gap: var(--grid-gap);
}
.grid.logos .items {
	grid-template-columns: repeat(auto-fill,minmax(calc(var(--item-width) / 2), 1fr));
}

/*************************************/
/*************************************/
/********** GRID SWIPERABLE **********/
/*************************************/
/*************************************/
/* limit to 1 row = cf. front events */

.grid.swiperable .item {
	flex-basis: var(--item-width);
	grid-row: 1;
	min-width: var(--item-width);
}
.grid.posts.swiperable .item {
	aspect-ratio: auto;
}

/*****************************/
/*****************************/
/********** RESULTS **********/
/*****************************/
/*****************************/
/* for calendar */

.results {
	display: flex;
	        flex-direction: column;
	gap: 2em;
}
.results-item {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	margin: 0;
}
.results-title {
	display: flex;
	align-items: baseline;
}
.results-title > * {
	margin: 0;
}
.results-title h2 {
	font-size: 1em;
}

.results.has-gutter > * {
	padding-top: 1em;
}
.results.has-gutter > *:not(:first-child) {
	border-top: solid var(--logo-line-height);
}