/**
 * Styles du calendrier FSI.
 *
 * Volontairement limité aux éléments ajoutés par l'extension :
 *  - la barre de filtres ;
 *  - le contenu des pastilles (formation + ville).
 *
 * La popup (.fsi-calendar-popup) et l'habillage général du calendrier
 * restent stylés par le thème enfant : rien n'est écrasé ici.
 */


/* --------------------------------------------------------------
   Barre de filtres
   -------------------------------------------------------------- */

.fsi-calendar-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
}

.fsi-calendar-filters .fsi-calendar-filter {
	flex: 1 1 220px;
	min-width: 0;
	padding: 14px 18px;
	font-size: 16px;
	line-height: 1.4;
	color: inherit;
	background-color: #fff;
	border: 1px solid #d9dee5;
	border-radius: 10px;
	cursor: pointer;
	appearance: none;
	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='%23555' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	padding-right: 44px;
}

.fsi-calendar-filters .fsi-calendar-filter:focus {
	outline: 2px solid #005baa;
	outline-offset: 2px;
}

@media (max-width: 767px) {

	.fsi-calendar-filters {
		gap: 12px;
	}

	.fsi-calendar-filters .fsi-calendar-filter {
		flex: 1 1 100%;
	}

}


/* --------------------------------------------------------------
   Contenu des pastilles : formation + ville
   -------------------------------------------------------------- */

.fsi-event {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 3px 6px;
	overflow: hidden;
	line-height: 1.25;
}

.fsi-event__title {
	overflow: hidden;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fsi-event__ville {
	overflow: hidden;
	font-size: 0.85em;
	font-weight: 400;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0.9;
}

.fsi-event--banner {
	padding: 3px 6px;
	overflow: hidden;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* La pastille occupe toute la largeur disponible de la case. */
.fc-daygrid-event {
	white-space: normal;
}

/* Le curseur indique que la session est cliquable. */
.fc-daygrid-event:not(.fc-event-fsi-banner) {
	cursor: pointer;
}
