/* Volunteer Calendar Manager — styles front-end */

.vcal-calendar-root {
	max-width: 960px;
	margin: 2rem auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.vcal-filter-bar {
	max-width: 960px;
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.vcal-filter-bar label {
	font-weight: 600;
	font-size: 0.9rem;
}

.vcal-filter-bar select {
	padding: 0.5em 0.8em;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 0.9rem;
	background: #fff;
}

.vcal-modal-category {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.2em 0.7em;
	background: #eef2f7;
	color: #33475b;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
}

.vcal-modal-volunteers {
	margin: 0 0 1rem;
	padding: 0.6rem 0.8rem;
	background: #f7f7f8;
	border-radius: 8px;
	font-size: 0.85rem;
	color: #444;
}

/* Contenu personnalisé des événements FullCalendar */
.vcal-event-content {
	padding: 1px 2px;
	overflow: hidden;
}

.vcal-event-title {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vcal-event-volunteers {
	font-size: 0.75em;
	opacity: 0.9;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vcal-login-notice {
	max-width: 480px;
	margin: 2rem auto;
	padding: 2rem;
	text-align: center;
	background: #f7f7f8;
	border-radius: 12px;
}

.vcal-btn {
	display: inline-block;
	padding: 0.6em 1.4em;
	border: none;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.05s ease;
}

.vcal-btn:active {
	transform: scale(0.98);
}

.vcal-btn-primary {
	background-color: #1e874b;
	color: #fff;
}

.vcal-btn-primary:hover {
	background-color: #176b3a;
}

.vcal-btn-danger {
	background-color: #c0392b;
	color: #fff;
}

.vcal-btn-danger:hover {
	background-color: #9e2e21;
}

.vcal-btn-disabled {
	background-color: #ccc;
	color: #666;
	cursor: not-allowed;
}

.vcal-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

.vcal-modal-open {
	display: flex;
}

.vcal-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.vcal-modal-content {
	position: relative;
	background: #fff;
	padding: 2rem;
	border-radius: 12px;
	max-width: 480px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.vcal-modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.9rem;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.vcal-modal-close:hover {
	color: #000;
}

#vcal-modal-title {
	margin-top: 0;
	margin-bottom: 0.5rem;
	font-size: 1.3rem;
}

.vcal-modal-location,
.vcal-modal-time {
	margin: 0.25rem 0;
	color: #555;
	font-size: 0.9rem;
}

#vcal-modal-description {
	margin: 1rem 0;
	line-height: 1.5;
}

.vcal-modal-gauge {
	font-weight: 600;
	margin-bottom: 1rem;
}

#vcal-modal-action {
	width: 100%;
}

.vcal-modal-message {
	margin-top: 0.75rem;
	font-size: 0.9rem;
	color: #1e874b;
	min-height: 1.2em;
}

@media (max-width: 600px) {
	.vcal-modal-content {
		padding: 1.25rem;
	}
}

/* Formulaire d'inscription bénévole ([devenir_benevole]) */

.vcal-registration-form {
	max-width: 480px;
	margin: 2rem auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.vcal-notice {
	padding: 1rem 1.25rem;
	border-radius: 8px;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
}

.vcal-notice p {
	margin: 0;
}

.vcal-notice-success {
	background-color: #e8f5e9;
	color: #1e874b;
	border: 1px solid #b7e0c3;
}

.vcal-notice-error {
	background-color: #fdecea;
	color: #c0392b;
	border: 1px solid #f3b7b0;
}

.vcal-notice-info {
	background-color: #eef2f7;
	color: #33475b;
	border: 1px solid #cdd8e4;
}

.vcal-form-row {
	margin-bottom: 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.vcal-form-row label {
	font-weight: 600;
	font-size: 0.9rem;
}

.vcal-form-row input[type="text"],
.vcal-form-row input[type="email"],
.vcal-form-row input[type="password"] {
	padding: 0.6em 0.8em;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 0.95rem;
}

.vcal-form-row input:focus {
	outline: none;
	border-color: #1e874b;
	box-shadow: 0 0 0 3px rgba(30, 135, 75, 0.15);
}

.vcal-required {
	color: #c0392b;
}

.vcal-form-consent label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 400;
	font-size: 0.9rem;
}

/* Honeypot anti-spam : masqué visuellement mais accessible aux bots */
.vcal-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
