/* Calendrier d'événements — Lithium Marketing */

.lmec,
.lmec-fiche,
.lmec-modal {
	--lmec-accent: #00abaa;
	--lmec-texte: #2b2f38;
	--lmec-doux: #6b7280;
	--lmec-ligne: #e3e6ea;
	--lmec-fond: #ffffff;
	--lmec-fond-2: #f6f7f9;
	--lmec-rayon: 10px;
	box-sizing: border-box;
}
.lmec *,
.lmec-modal * {
	box-sizing: border-box;
}

.lmec {
	color: var(--lmec-texte);
	margin: 0 0 2rem;
	position: relative;
}

/* ---------- En-tête ---------- */

.lmec__entete {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1rem;
	margin-bottom: 1rem;
}
.lmec__titre {
	flex: 1 1 auto;
	margin: 0 !important;
	font-size: 1.5rem;
	line-height: 1.2;
	text-align: center;
}
.lmec__nav,
.lmec__vues {
	display: flex;
	gap: .375rem;
}

.lmec button {
	font: inherit;
	cursor: pointer;
	margin: 0;
}
.lmec__fleche,
.lmec__aujourdhui,
.lmec__vues button,
.lmec-filtre {
	border: 1px solid var(--lmec-ligne);
	background: var(--lmec-fond);
	color: var(--lmec-texte);
	border-radius: 999px;
	padding: .4em 1em;
	font-size: .9rem;
	line-height: 1.2;
	transition: background .15s, border-color .15s, color .15s;
}
.lmec__fleche {
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	font-size: 1.4rem;
	line-height: 1;
}
.lmec__fleche:hover,
.lmec__aujourdhui:hover,
.lmec__vues button:hover,
.lmec-filtre:hover {
	border-color: var(--lmec-accent);
}
.lmec__vues button[aria-pressed="true"] {
	background: var(--lmec-accent);
	border-color: var(--lmec-accent);
	color: #fff;
}
.lmec button:focus-visible,
.lmec a:focus-visible,
.lmec-case:focus-visible,
.lmec-modal button:focus-visible,
.lmec-modal a:focus-visible {
	outline: 2px solid var(--lmec-accent);
	outline-offset: 2px;
}

/* La liste montre tout ce qui est à venir : pas de navigation par mois. */
.lmec[data-vue="liste"] .lmec__nav {
	visibility: hidden;
}

/* ---------- Filtres ---------- */

.lmec__filtres {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin-bottom: 1rem;
}
.lmec-filtre {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	font-size: .85rem;
}
.lmec-pastille {
	width: .7em;
	height: .7em;
	border-radius: 50%;
	background: var(--lmec-couleur);
}
.lmec-filtre[aria-pressed="true"] {
	background: var(--lmec-couleur, var(--lmec-accent));
	border-color: var(--lmec-couleur, var(--lmec-accent));
	color: #fff;
}
.lmec-filtre[aria-pressed="true"] .lmec-pastille {
	background: #fff;
}

/* ---------- Chargement ---------- */

.lmec__corps {
	transition: opacity .2s;
}
.lmec.is-chargement .lmec__corps {
	opacity: .45;
	pointer-events: none;
}
.lmec__vide {
	padding: 2rem 1rem;
	text-align: center;
	color: var(--lmec-doux);
	background: var(--lmec-fond-2);
	border-radius: var(--lmec-rayon);
	margin: 0;
}

/* ---------- Vue mois ---------- */

.lmec-mois {
	border: 1px solid var(--lmec-ligne);
	border-radius: var(--lmec-rayon);
	overflow: hidden;
	background: var(--lmec-fond);
}
.lmec-mois__jours,
.lmec-mois__grille {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}
.lmec-mois__jours div {
	padding: .6rem .25rem;
	text-align: center;
	font-size: .8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--lmec-doux);
	background: var(--lmec-fond-2);
	border-bottom: 1px solid var(--lmec-ligne);
}
.lmec-case {
	min-height: 7.5rem;
	padding: .35rem;
	border-right: 1px solid var(--lmec-ligne);
	border-bottom: 1px solid var(--lmec-ligne);
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.lmec-case:nth-child(7n) {
	border-right: 0;
}
.lmec-case.a-evenements {
	cursor: pointer;
}
.lmec-case.is-hors {
	background: var(--lmec-fond-2);
}
.lmec-case.is-hors .lmec-case__num {
	opacity: .45;
}
.lmec-case__num {
	font-size: .85rem;
	font-weight: 600;
	width: 1.8rem;
	height: 1.8rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	align-self: flex-end;
}
.lmec-case.is-aujourdhui .lmec-case__num {
	background: var(--lmec-accent);
	color: #fff;
}

.lmec-puce {
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	border-left: 3px solid var(--lmec-couleur);
	background: var(--lmec-fond-2);
	background: color-mix(in srgb, var(--lmec-couleur) 14%, #fff);
	color: var(--lmec-texte);
	border-radius: 4px;
	padding: .2em .4em;
	font-size: .78rem !important;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lmec-puce.is-multi {
	background: var(--lmec-couleur);
	color: #fff;
}
.lmec-puce:hover {
	filter: brightness(.95);
}
.lmec-puce__heure {
	font-weight: 700;
}
.lmec-case__plus {
	font-size: .75rem;
	color: var(--lmec-doux);
	padding-left: .4em;
}
.lmec-case__points {
	display: none;
}

/* ---------- Vue liste ---------- */

.lmec-liste {
	list-style: none;
	margin: 0;
	padding: 0;
}
.lmec-item {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 1.5rem 2rem;
	align-items: center;
	margin: 0;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--lmec-ligne);
}
.lmec-item:last-child {
	border-bottom: 0;
}
.lmec-item.a-image {
	grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 17rem);
}
.lmec-item::before {
	content: none !important;
}
.lmec-item__date {
	text-align: center;
	line-height: 1;
}
.lmec-item__rond {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 6rem;
	height: 6rem;
	margin: 0 auto .6rem;
	border-radius: 50%;
	background: var(--lmec-fond-2);
	background: color-mix(in srgb, var(--lmec-couleur) 25%, #fff);
	color: #fff;
	font-size: 2.6rem;
	font-weight: 700;
	transition: background .2s;
}
.lmec-item:hover .lmec-item__rond,
.lmec-item:focus-within .lmec-item__rond {
	background: var(--lmec-couleur);
}
.lmec-item__mois {
	display: block;
	font-size: 1.4rem;
	text-transform: uppercase;
	letter-spacing: .25em;
	padding-left: .25em;
}
.lmec-item__titre {
	margin: 0 0 .6rem !important;
	font-size: 2.4rem;
	line-height: 1.15;
}
.lmec-item__titre a {
	color: inherit;
	text-decoration: none;
}
.lmec-item__titre a:hover {
	color: var(--lmec-couleur);
}
.lmec-item__cat {
	margin: 0 0 .3rem;
	font-size: 1rem;
}
.lmec-item .lmec-ligne {
	font-size: 1rem;
}
.lmec-item__extrait {
	margin: .3rem 0 0;
	font-size: 1.15rem;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lmec-item__liens {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	margin: 1rem 0 0;
}
.lmec-item__plus {
	color: inherit !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.lmec-item__plus:hover {
	color: var(--lmec-couleur) !important;
}
.lmec-item__image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 15rem;
	object-fit: cover;
}

/* ---------- Éléments communs ---------- */

.lmec-ligne {
	margin: .15rem 0;
	font-size: .95rem;
	padding-left: 1.5em;
	position: relative;
}
.lmec-ligne::before {
	position: absolute;
	left: 0;
	top: .1em;
	width: 1.1em;
	height: 1.1em;
	content: "";
	background: var(--lmec-doux);
	-webkit-mask: var(--lmec-icone) no-repeat center / contain;
	mask: var(--lmec-icone) no-repeat center / contain;
}
.lmec-ligne--quand {
	--lmec-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16zm-1 3v6l5 3 1-1.7-4-2.3V7z'/%3E%3C/svg%3E");
}
.lmec-ligne--adresse {
	--lmec-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.lmec-ligne a {
	color: inherit;
}
.lmec-detail__cats,
.lmec-fiche__cats {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem;
	margin: 0 0 .4rem;
}
.lmec-badge {
	display: inline-block;
	background: var(--lmec-couleur);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: .25em .7em;
	border-radius: 999px;
	line-height: 1.3;
}
.lmec-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: .8rem 0 0;
}
.lmec-bouton {
	display: inline-block;
	background: var(--lmec-accent);
	border: 2px solid var(--lmec-accent);
	color: #fff !important;
	text-decoration: none !important;
	padding: .45em 1.1em;
	border-radius: 999px;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.3;
}
.lmec-bouton--contour {
	background: transparent;
	color: var(--lmec-accent) !important;
}
.lmec-bouton:hover {
	filter: brightness(.92);
}

/* ---------- Fenêtre de détails ---------- */

.lmec-modal-ouvert {
	overflow: hidden;
}
.lmec-modal[hidden] {
	display: none;
}
.lmec-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	color: var(--lmec-texte);
}
.lmec-modal__fond {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, .55);
}
.lmec-modal__boite {
	position: relative;
	background: var(--lmec-fond);
	border-radius: 14px;
	width: 100%;
	max-width: 32rem;
	max-height: calc(100vh - 2rem);
	overflow: auto;
	padding: 3rem 1.5rem 1.5rem;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	outline: none;
}
.lmec-modal__fermer {
	position: absolute;
	top: .5rem;
	right: .6rem;
	width: 2.2rem;
	height: 2.2rem;
	border: 0;
	background: transparent;
	font-size: 1.7rem;
	line-height: 1;
	color: var(--lmec-doux);
	cursor: pointer;
	border-radius: 50%;
}
.lmec-modal__fermer:hover {
	background: var(--lmec-fond-2);
}
.lmec-modal__jour {
	margin: 0 0 1rem !important;
	font-size: 1.3rem;
}
.lmec-detail {
	border-top: 4px solid var(--lmec-couleur);
	padding-top: .9rem;
}
.lmec-detail + .lmec-detail {
	margin-top: 1.5rem;
}
.lmec-detail__titre {
	margin: 0 0 .5rem !important;
	font-size: 1.3rem;
	line-height: 1.3;
	padding-right: 1.5rem;
}
.lmec-detail__extrait {
	margin: .75rem 0 0;
}

/* ---------- Fiche (page de l'événement) ---------- */

.lmec-fiche {
	background: #f6f7f9;
	border-left: 5px solid var(--lmec-couleur, var(--lmec-accent));
	border-radius: 10px;
	padding: 1.1rem 1.4rem;
	margin: 0 0 1.75rem;
}
.lmec-fiche__ligne {
	margin: .35rem 0;
}
.lmec-fiche .lmec-ico {
	display: inline-block;
	width: 1.4em;
}
.lmec-fiche .lmec-bouton {
	margin-top: .4rem;
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
	.lmec__titre {
		order: -1;
		flex-basis: 100%;
	}
	.lmec__entete {
		justify-content: space-between;
	}
	.lmec-case {
		min-height: 3.6rem;
		padding: .2rem;
		align-items: center;
	}
	.lmec-case__num {
		align-self: center;
		font-size: .8rem;
	}
	.lmec-puce,
	.lmec-case__plus {
		display: none;
	}
	.lmec-case__points {
		display: flex;
		gap: 2px;
		flex-wrap: wrap;
		justify-content: center;
	}
	.lmec-case__points i {
		width: 6px;
		height: 6px;
		border-radius: 50%;
	}
	.lmec-mois__jours div {
		font-size: .68rem;
		letter-spacing: 0;
	}
	.lmec-item,
	.lmec-item.a-image {
		grid-template-columns: 4rem minmax(0, 1fr);
		gap: 1rem;
		align-items: start;
	}
	.lmec-item__rond {
		width: 3.75rem;
		height: 3.75rem;
		font-size: 1.6rem;
	}
	.lmec-item__mois {
		font-size: 1rem;
		letter-spacing: .15em;
	}
	.lmec-item__titre {
		font-size: 1.6rem;
	}
	.lmec-item__image {
		grid-column: 1 / -1;
	}
}
