/* Bulle Sérénité – Calendrier de disponibilités */

.bsd-calendar-wrap {
	--bsd-free: #e8f3ec;
	--bsd-free-border: #b7d9c2;
	--bsd-free-text: #2f6b45;
	--bsd-booked: #f0eceb;
	--bsd-booked-text: #b0a5a2;
	--bsd-selected: #2f6b45;
	--bsd-selected-text: #ffffff;
	--bsd-accent: #c9603f;
	font-family: inherit;
	color: #333;
	max-width: 760px;
	margin: 0 auto;
}

.bsd-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	margin-bottom: 18px;
	font-size: 14px;
}

.bsd-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bsd-legend-note {
	color: #777;
	font-style: italic;
}

.bsd-dot {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	display: inline-block;
}

.bsd-dot-free {
	background: var(--bsd-free);
	border: 1px solid var(--bsd-free-border);
}

.bsd-dot-booked {
	background: var(--bsd-booked);
}

.bsd-months {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 28px;
	justify-content: center;
	align-items: start;
}

/* Un seul mois affiché : on centre et on limite la largeur. */
.bsd-months:has(> .bsd-month:only-child) {
	grid-template-columns: minmax(0, 360px);
}

.bsd-month {
	min-width: 0;
	max-width: 360px;
	width: 100%;
	margin: 0 auto;
}

/* Repli sur une seule colonne uniquement sur petit écran. */
@media (max-width: 640px) {
	.bsd-months {
		grid-template-columns: minmax(0, 360px);
	}
}

.bsd-month-title {
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 12px;
	letter-spacing: 0.3px;
}

.bsd-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin-bottom: 6px;
}

.bsd-weekdays span {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: #999;
	text-transform: uppercase;
}

.bsd-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.bsd-cell {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.1;
	user-select: none;
}

.bsd-empty {
	background: transparent;
}

.bsd-day {
	font-weight: 600;
}

.bsd-price {
	font-size: 10px;
	margin-top: 2px;
	opacity: 0.85;
}

.bsd-free {
	background: var(--bsd-free);
	border: 1px solid var(--bsd-free-border);
	color: var(--bsd-free-text);
	cursor: pointer;
	transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.bsd-free:hover,
.bsd-free:focus {
	box-shadow: 0 0 0 2px var(--bsd-free-text) inset;
	outline: none;
}

.bsd-booked {
	background: var(--bsd-booked);
	color: var(--bsd-booked-text);
	text-decoration: line-through;
	cursor: not-allowed;
}

.bsd-past {
	background: transparent;
	color: #ccc;
	cursor: default;
}

.bsd-selected {
	background: var(--bsd-selected) !important;
	color: var(--bsd-selected-text) !important;
	border-color: var(--bsd-selected) !important;
}

.bsd-in-range {
	background: #d9ebe0 !important;
	color: var(--bsd-free-text) !important;
}

.bsd-selection {
	margin-top: 22px;
	text-align: center;
	padding: 16px;
	background: #faf7f4;
	border-radius: 8px;
}

.bsd-selection-text {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
}

.bsd-selection-text strong {
	font-size: 16px;
}

.bsd-tax-notice {
	margin: 14px auto 0;
	max-width: 620px;
	text-align: center;
	font-size: 13px;
	color: #888;
	font-style: italic;
}

.bsd-request-btn {
	display: inline-block;
	background: var(--bsd-accent);
	color: #fff;
	padding: 12px 26px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: opacity 0.15s ease;
}

.bsd-request-btn:hover {
	opacity: 0.9;
	color: #fff;
}

@media (max-width: 600px) {
	.bsd-cell {
		font-size: 12px;
	}
	.bsd-price {
		font-size: 9px;
	}
}
