/* Lflex – Calendrier des sessions */
.lfc-wrap { container-type: inline-size; }
.lfc {
	--lfc-primary: var(--color_lf_coral, #FF6441);
	--lfc-primary-text: var(--color_lf_coral_dark, #B83219);
	--lfc-accent: var(--color_lf_turquoise, #57BBBF);
	--lfc-accent-bg: #E6F5F5;
	--lfc-accent-text: #1E6B6E;
	--lfc-text: var(--color-content-text, #373B4D);
	--lfc-faded: var(--color-content-faded, #5B5F70);
	--lfc-border: var(--color-content-border, #DCE6E5);
	--lfc-bg-alt: var(--color-content-bg-alt, #F7F8F8);
	--lfc-cream: var(--color_lf_cream, #FBF0E6);
	--lfc-radius: 12px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
	color: var(--lfc-text);
}
@container (min-width: 760px) {
	.lfc { grid-template-columns: 270px minmax(0, 1fr); gap: 2.5rem; }
	.lfc .lfc-filters { position: sticky; }
}
.lfc [hidden] { display: none !important; }

/* ---------- Filtres ---------- */
.lfc-filters {
	position: static;
	top: calc(var(--header-sticky-height, 80px) + 1.5rem);
	background: var(--lfc-bg-alt);
	border-radius: var(--lfc-radius);
	padding: 1.5rem;
	font-size: 0.95rem;
}
.lfc-filters-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}
.lfc-filters-title {
	margin: 0 !important;
	font-weight: 700;
	font-size: 1.1rem;
}
.lfc-reset {
	background: none;
	border: 0;
	padding: 0;
	color: var(--lfc-primary-text);
	font: inherit;
	font-size: 0.875rem;
	text-decoration: underline;
	cursor: pointer;
}
.lfc-reset:disabled { color: var(--lfc-faded); text-decoration: none; cursor: default; opacity: .6; }
.lfc-group {
	border: 0;
	margin: 0;
	padding: 1rem 0 0;
	margin-top: 1.1rem;
	min-width: 0;
}
.lfc-filters-head + .lfc-group { border-top: 0; margin-top: 0; padding-top: 0; }
.lfc-label {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0 0 .5rem !important;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--lfc-text);
}
.lfc .lfc-search,
.lfc .lfc-select {
	width: 100%;
	min-height: 44px;
	padding: .5rem .75rem;
	border: 1px solid var(--lfc-border);
	border-radius: 8px;
	background: #fff;
	color: var(--lfc-text);
	font: inherit;
	font-size: 0.95rem;
	box-shadow: none;
}
.lfc .lfc-search:focus,
.lfc .lfc-select:focus { border-color: var(--lfc-accent); outline: 2px solid var(--lfc-accent); outline-offset: 0; }
.lfc-opt {
	clear: both;
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	padding: .3rem 0;
	cursor: pointer;
	line-height: 1.35;
}
.lfc-opt input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: .1rem 0 0;
	accent-color: var(--lfc-primary-text);
	cursor: pointer;
}
.lfc-opt input:checked + span { font-weight: 600; }
.lfc .lfc-select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23373B4D' stroke-width='1.8' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .9rem center;
	cursor: pointer;
	text-overflow: ellipsis;
}
.lfc-switch { display: flex; align-items: center; gap: .7rem; cursor: pointer; line-height: 1.35; }
.lfc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lfc-switch-ui {
	position: relative; flex: 0 0 auto;
	width: 40px; height: 22px; border-radius: 999px;
	background: #C9CED6; transition: background-color .15s;
}
.lfc-switch-ui::after {
	content: ""; position: absolute; top: 3px; left: 3px;
	width: 16px; height: 16px; border-radius: 50%; background: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s;
}
.lfc-switch input:checked + .lfc-switch-ui { background: var(--lfc-primary-text); }
.lfc-switch input:checked + .lfc-switch-ui::after { transform: translateX(18px); }
.lfc-switch input:focus-visible + .lfc-switch-ui { outline: 3px solid var(--lfc-accent); outline-offset: 2px; }


/* ---------- Résultats ---------- */
.lfc-summary {
	margin: 0 0 1rem !important;
	font-weight: 600;
	color: var(--lfc-faded);
	scroll-margin-top: calc(var(--header-sticky-height, 80px) + 1rem);
}
.lfc-month + .lfc-month { margin-top: 2rem; }
.lfc .lfc-month-title {
	position: sticky;
	top: var(--header-sticky-height, 0px);
	z-index: 2;
	margin: 0 0 .75rem;
	padding: .6rem 0;
	background: var(--color-content-bg, #fff);
	border-bottom: 2px solid var(--lfc-primary);
	font-size: 1.25rem;
	line-height: 1.3;
}
.lfc .lfc-items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.lfc .lfc-item { margin: 0; padding: 0; }
.lfc .lfc-item::before { content: none; }
.lfc-row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto 24px;
	align-items: center;
	gap: 1.25rem;
	padding: 1rem 1rem 1rem .5rem;
	border-bottom: 1px solid var(--lfc-border);
	color: var(--lfc-text) !important;
	text-decoration: none !important;
	transition: background-color .15s;
}
.lfc-row:hover { background: var(--lfc-cream); }
.lfc-row:focus-visible { outline: 3px solid var(--lfc-accent); outline-offset: -3px; border-radius: 6px; }
.lfc-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 64px;
	padding: .45rem 0;
	border-radius: 10px;
	background: var(--lfc-cream);
	line-height: 1.1;
	text-align: center;
}
.lfc-dow, .lfc-mon { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--lfc-faded); }
.lfc-day { font-size: 1.5rem; font-weight: 700; color: var(--lfc-primary-text); }
.lfc-date-multi .lfc-day { font-size: 1.15rem; letter-spacing: -.02em; padding: .1rem 0; }
.lfc-date-multi .lfc-dow { font-size: .65rem; }
.lfc-day-sep { font-weight: 400; margin: 0 .05em; }
.lfc-main { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.lfc-when {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.lfc-title { font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.lfc-row:hover .lfc-title { color: var(--lfc-primary-text); }
.lfc-meta { font-size: .9rem; color: var(--lfc-faded); }
.lfc-status {
	justify-self: end;
	padding: .3rem .7rem;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 600;
	white-space: nowrap;
	background: var(--lfc-accent-bg);
	color: var(--lfc-accent-text);
}
.lfc-s-dernieres .lfc-status { background: #FDE7E1; color: var(--lfc-primary-text); }
.lfc-s-complete .lfc-status { background: #ECEDEF; color: var(--lfc-faded); }
.lfc-s-complete .lfc-title,
.lfc-s-complete .lfc-day { color: var(--lfc-faded); }
.lfc-arrow { color: var(--lfc-primary-text); display: flex; transition: transform .15s; }
.lfc-row:hover .lfc-arrow { transform: translateX(3px); }

.lfc-more-wrap { text-align: center; margin: 1.25rem 0 0 !important; }
.lfc-more-count { font-weight: 400; }
.lfc .lfc-month-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.lfc-month-count { font-size: .85rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--lfc-faded); }
.lfc-more,
.lfc-apply,
.lfc-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 48px;
	padding: .75rem 1.5rem;
	border: 2px solid var(--lfc-primary-text);
	border-radius: 999px;
	background: #fff;
	color: var(--lfc-primary-text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.lfc-more:hover,
.lfc-toggle:hover { background: var(--lfc-primary-text); color: #fff; }
.lfc-more:focus-visible,
.lfc-toggle:focus-visible,
.lfc-apply:focus-visible,
.lfc-reset:focus-visible { outline: 3px solid var(--lfc-accent); outline-offset: 2px; }

.lfc-empty {
	padding: 2.5rem 1.5rem;
	border-radius: var(--lfc-radius);
	background: var(--lfc-bg-alt);
	text-align: center;
}
.lfc-empty p { margin: 0 0 .75rem !important; }

/* ---------- Mobile / tablette ---------- */
@container (max-width: 759px) {
	.lfc-toggle { width: 100%; }
	.lfc-is-mobile .lfc-apply {
		display: flex;
		width: 100%;
		margin-top: 1.25rem;
		background: var(--lfc-primary-text);
		color: #fff;
	}
}
@container (max-width: 560px) {
	.lfc-row {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: .4rem 1rem;
		padding: .9rem .25rem;
	}
	.lfc-date { width: 56px; grid-row: span 2; align-self: start; }
	.lfc-status { grid-column: 2; justify-self: start; }
	.lfc-arrow { display: none; }
	.lfc-title { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.lfc-switch-ui, .lfc-switch-ui::after,
	.lfc-row, .lfc-arrow, .lfc-more { transition: none; }
}

.lfc:not(.lfc-is-mobile) .lfc-apply { display: none !important; }
