/* ==========================================================================
   FSH Calendrier Événements – Front-end styles (Figma design)
   ========================================================================== */

/* ---- Reset scope ---- */
.fsh-calendrier *,
.fsh-calendrier *::before,
.fsh-calendrier *::after,
.fsh-single-event *,
.fsh-single-event *::before,
.fsh-single-event *::after {
	box-sizing: border-box;
}

/* Fill Divi's content container properly */
.fsh-calendrier {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	font-family: 'DM Sans', sans-serif;
	color: #13102D;
	line-height: 1.5;
}

/* Override Divi parent containers to allow full width */
.et_pb_text .fsh-calendrier,
.et_pb_module .fsh-calendrier,
.et_pb_text_inner .fsh-calendrier {
	width: 100% !important;
	max-width: 100% !important;
}

.fsh-single-event {
	max-width: 1280px;
	margin: 0 auto;
	font-family: 'DM Sans', sans-serif;
	color: #13102D;
	line-height: 1.5;
}

/* ---- Sections ---- */
.fsh-section {
	margin-bottom: 0;
}

.fsh-section-prochain {
	padding: 3rem 0 2.5rem;
}

.fsh-section-mois {
	padding: 2.5rem 0;
	border-top: 1px solid #e0e0e0;
}

.fsh-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1.75rem;
	gap: 2rem;
}

.fsh-section-header .fsh-section-title {
	margin-bottom: 0;
}

.fsh-link-all {
	font-size: 1.05rem;
	font-weight: 600;
	color: #13102D;
	text-decoration: none;
	white-space: nowrap;
}

.fsh-link-all:hover {
	text-decoration: underline;
}

.fsh-section-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 0 1.75rem;
	color: #13102D;
	line-height: 1.2;
}

.fsh-empty {
	color: #666;
	font-style: italic;
	font-size: 1.125rem;
}

/* ==========================================================================
   Featured event (Prochain événement)
   New structure: image (left) | date + blue card (right)
   ========================================================================== */

.fsh-featured-wrapper {
	margin-bottom: 0.5rem;
}

.fsh-featured-event {
	display: flex;
	align-items: stretch;
	text-decoration: none;
	color: inherit;
	gap: 0;
	min-height: 280px;
}

a.fsh-featured-event:hover {
	opacity: 0.92;
}

.fsh-featured-image {
	flex: 0 0 380px;
	background: #c8c8c8;
	border-radius: 20px;
	overflow: hidden;
}

.fsh-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fsh-featured-placeholder {
	background: #c8c8c8;
}

/* Right side: date + blue card */
.fsh-featured-right {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0;
	min-width: 0;
}

.fsh-featured-date {
	flex: 0 0 auto;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
	min-width: 110px;
	text-align: center;
	padding: 1rem;
}

.fsh-featured-content {
	flex: 1;
	display: flex;
	align-items: center;
	background: #E0E6FF;
	border-radius: 40px;
	padding: 2rem 2.5rem;
	gap: 2rem;
	min-width: 0;
}

.fsh-featured-info {
	flex: 1;
	min-width: 0;
}

.fsh-featured-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
	line-height: 1.3;
}

.fsh-featured-description {
	font-size: 1.05rem;
	color: #444;
	margin: 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fsh-featured-action {
	flex: 0 0 auto;
}

/* ==========================================================================
   Event cards (Ce mois-ci & season lists)
   ========================================================================== */

.fsh-event-wrapper {
	margin-bottom: 1.5rem;
}

.fsh-event-card {
	background: #E0E6FF;
	border: none;
	border-radius: 60px;
	overflow: hidden;
}

.fsh-event-card-inner {
	display: flex;
	align-items: center;
	padding: 1.75rem 3rem;
	gap: 2rem;
}

.fsh-event-date {
	flex: 0 0 auto;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	min-width: 90px;
}

.fsh-event-info {
	flex: 1;
	min-width: 0;
}

.fsh-event-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 0.2rem;
	line-height: 1.3;
}

.fsh-event-title a {
	color: inherit;
	text-decoration: none;
}

.fsh-event-title a:hover {
	color: #002992;
}

.fsh-event-description {
	font-size: 1rem;
	color: #444;
	margin: 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fsh-event-actions {
	flex: 0 0 auto;
	display: flex;
	gap: 1rem;
	align-items: center;
}

/* ---- Contact link (outside the card) ---- */
.fsh-event-contact {
	padding: 0.75rem 0.5rem 0;
}

.fsh-event-contact a {
	color: #13102D;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
}

.fsh-event-contact a:hover {
	text-decoration: underline;
}

/* ---- Buttons ---- */
.fsh-btn-register {
	display: inline-block;
	padding: 0.65rem 2rem;
	border: none;
	border-radius: 40px;
	background: #fff;
	color: #13102D;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
	line-height: 1.4;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fsh-btn-register:hover,
.fsh-btn-register:focus-visible {
	background: #002992;
	color: #fff;
}

/* ==========================================================================
   Season accordion sections
   ========================================================================== */

.fsh-section-season {
	background: none;
	border-radius: 0;
}

.fsh-section-season + .fsh-section-season {
	border-top: none;
}

.fsh-season-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 2rem 3.5rem;
	background: #FFFBDF;
	border: none;
	border-radius: 40px;
	cursor: pointer;
	font-size: 2rem;
	font-weight: 700;
	color: #13102D;
	font-family: inherit;
	line-height: 1.3;
	text-align: left;
	margin-bottom: 1.5rem;
}

.fsh-season-header:hover {
	opacity: 0.8;
}

.fsh-season-header:focus-visible {
	outline: 2px solid #002992;
	outline-offset: -2px;
}

.fsh-season-chevron {
	flex: 0 0 28px;
	transition: transform 0.3s ease;
	color: #13102D;
}

.fsh-season-header[aria-expanded="true"] .fsh-season-chevron {
	transform: rotate(180deg);
}

.fsh-season-content {
	padding: 0 0 1rem;
}

.fsh-season-content[hidden] {
	display: none;
}

/* Cards inside yellow season bg keep #E0E6FF */
.fsh-section-season .fsh-event-card {
	background: #E0E6FF;
}

/* ==========================================================================
   Past events section
   ========================================================================== */

.fsh-section-past {
	background: none;
}

.fsh-section-past .fsh-season-header {
	background: #EAEAEA;
}

.fsh-event-past {
	opacity: 0.7;
}

.fsh-event-past:hover {
	opacity: 1;
}

/* ==========================================================================
   Single event page
   ========================================================================== */

.fsh-single-event {
	padding: 3rem 0;
}

.fsh-badge-past {
	display: inline-block;
	background: #888;
	color: #fff;
	padding: 0.4rem 1.5rem;
	border-radius: 40px;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 2rem;
}

.fsh-single-meta {
	display: flex;
	align-items: flex-start;
	gap: 2rem;
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e0e0e0;
}

.fsh-single-date {
	flex: 0 0 auto;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.35;
	min-width: 100px;
	padding: 1rem 1.25rem;
	background: #FFFBDF;
	border-radius: 16px;
	text-align: center;
}

.fsh-single-description {
	font-size: 1.2rem;
	color: #444;
	margin: 0;
	line-height: 1.5;
}

.fsh-single-body {
	margin-bottom: 2.5rem;
	line-height: 1.7;
	font-size: 1.05rem;
}

.fsh-single-action {
	margin: 2.5rem 0;
}

.fsh-back-link {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #e0e0e0;
}

.fsh-back-link a {
	color: #002992;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.05rem;
}

.fsh-back-link a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Registration form
   ========================================================================== */

.fsh-registration {
	background: #f8f8f8;
	border: 1px solid #e0e0e0;
	border-radius: 30px;
	padding: 2.5rem;
	margin: 2.5rem 0;
}

.fsh-registration-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 1.25rem;
	color: #13102D;
}

.fsh-registration-places {
	font-size: 1rem;
	color: #555;
	margin: 0 0 1.25rem;
}

.fsh-registration-full {
	color: #888;
	font-style: italic;
}

/* Messages */
.fsh-msg {
	padding: 1rem 1.5rem;
	border-radius: 12px;
	margin-bottom: 1.25rem;
	font-size: 1rem;
}

.fsh-msg-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.fsh-msg-info {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.fsh-msg-warning {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeeba;
}

.fsh-msg-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Form fields */
.fsh-registration-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.fsh-form-row {
	display: flex;
	gap: 1.25rem;
}

.fsh-form-row .fsh-form-field {
	flex: 1;
}

.fsh-form-field label {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
	color: #13102D;
}

.fsh-form-field label em {
	font-weight: 400;
	color: #888;
}

.fsh-form-field input,
.fsh-form-field textarea {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #ccc;
	border-radius: 12px;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
}

.fsh-form-field input:focus,
.fsh-form-field textarea:focus {
	border-color: #002992;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 41, 146, 0.12);
}

.fsh-btn-submit {
	display: inline-block;
	padding: 0.85rem 2.5rem;
	background: #002992;
	color: #fff;
	border: none;
	border-radius: 40px;
	font-size: 1.05rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s;
	align-self: flex-start;
	text-decoration: none;
}

.fsh-btn-submit:hover {
	background: #001d6b;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.fsh-section-title {
		font-size: 2rem;
	}

	.fsh-season-header {
		font-size: 1.6rem;
		padding: 1.5rem 2rem;
	}

	.fsh-season-header {
		border-radius: 30px;
	}

	.fsh-event-card-inner {
		padding: 1.5rem 2rem;
	}

	.fsh-featured-content {
		padding: 1.5rem 2rem;
	}

	.fsh-featured-image {
		flex: 0 0 260px;
	}
}

@media (max-width: 680px) {

	.fsh-section-title {
		font-size: 1.6rem;
	}

	.fsh-featured-event {
		flex-direction: column;
	}

	.fsh-featured-image {
		flex: 0 0 auto;
		height: 220px;
		min-height: 0;
		border-radius: 20px;
	}

	.fsh-featured-right {
		flex-direction: column;
		gap: 0;
	}

	.fsh-featured-date {
		padding: 0.75rem 0;
	}

	.fsh-featured-content {
		flex-wrap: wrap;
		padding: 1.25rem 1.5rem;
		gap: 1rem;
		border-radius: 24px;
	}

	.fsh-featured-action {
		width: 100%;
	}

	.fsh-event-card {
		border-radius: 30px;
	}

	.fsh-event-card-inner {
		flex-wrap: wrap;
		padding: 1.25rem 1.5rem;
		gap: 0.75rem;
	}

	.fsh-event-actions {
		width: 100%;
		flex-wrap: wrap;
	}

	.fsh-season-header {
		padding: 1.25rem 1.5rem;
		font-size: 1.35rem;
	}

	.fsh-season-header {
		border-radius: 24px;
	}

	/* Single event */
	.fsh-single-meta {
		flex-direction: column;
		gap: 1rem;
	}

	.fsh-single-date {
		align-self: flex-start;
	}

	/* Registration form */
	.fsh-form-row {
		flex-direction: column;
	}

	.fsh-registration {
		padding: 1.5rem;
		border-radius: 20px;
	}
}
