/* ===== Pastilles de statut ===== */
.pastille {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Defaults — overridden by patinoire_get_custom_css() dynamic output */
.pastille.vert  { background: #28a745; }
.pastille.rouge { background: #dc3545; }
.pastille.jaune { background: #ffc107; }

/* ===== Widget d'affichage public ===== */
.patinoire-status-widget {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 24px;
	max-width: 600px;
	margin: 20px auto;
}

.patinoire-status-widget h3 {
	margin: 0 0 20px;
	color: #1d2327;
	font-size: 1.4em;
	font-weight: 700;
}

.patinoire-status-widget ul {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}

.patinoire-status-widget li {
	padding: 14px 0;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1em;
}

.patinoire-status-widget li:last-child {
	border-bottom: none;
}

.patinoire-update {
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid #edf0f3;
	color: #aab4bc;
	font-size: 0.85em;
	text-align: center;
}

/* ===== Messages affichage public ===== */
.patinoire-custom-message {
	margin-top: 8px;
	padding: 10px 14px;
	background: #e7f3ff;
	border-left: 3px solid #007bff;
	border-radius: 4px;
	font-size: 0.9em;
	color: #004085;
}

.patinoire-custom-message em {
	font-style: normal;
}

/* ===== Page de contrôle ===== */
.patinoire-controle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Full-width items inside the 2-col grid */
.patinoire-controle > h2,
.patinoire-controle > .patinoire-message,
.patinoire-controle > .patinoire-footer {
	grid-column: 1 / -1;
}

.patinoire-controle > h2 {
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: #8c97a3;
	margin: 0 0 20px;
}

/* ===== Section cards ===== */
.patinoire-section {
	background: #ffffff;
	border: 1px solid #edf0f3;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .07), 0 4px 16px rgba(0, 0, 0, .04);
	padding: 24px;
}

/* ===== Section header ===== */
.patinoire-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	gap: 12px;
}

.patinoire-title-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.patinoire-title-group--mb {
	margin-bottom: 16px;
}

.patinoire-section-icon {
	font-size: 1.3em;
	line-height: 1;
	flex-shrink: 0;
}

.patinoire-section h3 {
	margin: 0;
	font-size: 1.1em;
	font-weight: 700;
	color: #1d2327;
}

/* ===== Status badge (in header) ===== */
.patinoire-status-display {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 100px;
	background: #f7f8fa;
	border: 1.5px solid #e2e6ea;
	font-size: 0.88em;
	font-weight: 600;
	color: #3c434a;
	white-space: nowrap;
	flex-shrink: 0;
}

.patinoire-status-display .pastille {
	margin: 0;
}

/* ===== Visibility status label ===== */
.patinoire-visibility-status {
	font-size: 0.85em;
	color: #8c97a3;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

.patinoire-visibility-status strong {
	color: #2271b1;
	margin-left: 3px;
}

/* ===== Action buttons ===== */
.patinoire-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.patinoire-section .patinoire-buttons {
	margin-top: 4px;
}

.patinoire-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border-radius: 100px;
	border: 1.5px solid #dde1e6;
	background: #f7f8fa;
	color: #3c434a;
	font-size: 0.9em;
	font-weight: 600;
	cursor: pointer;
	transition: background .12s, border-color .12s, color .12s;
	line-height: 1.4;
}

.patinoire-btn:hover:not(:disabled) {
	/* overridden by patinoire_get_custom_css() for the hover color option */
	background: #edf0f3;
	border-color: #aab4bc;
}

.patinoire-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Active + primary states driven by patinoire_get_custom_css() dynamic output */

/* ===== Message field ===== */
.patinoire-message-field {
	margin-bottom: 20px;
	padding: 14px 16px;
	background: #f7f8fa;
	border-radius: 8px;
	border: 1px solid #edf0f3;
}

.patinoire-message-field label {
	display: block;
	margin-bottom: 8px;
	color: #8c97a3;
	font-size: 0.76em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.patinoire-message-row {
	display: flex;
	gap: 8px;
	align-items: center;
}

.patinoire-message-field input[type="text"] {
	flex: 1;
	padding: 8px 12px;
	font-size: 0.9em;
	border: 1.5px solid #dde1e6;
	border-radius: 6px;
	background: #ffffff;
	color: #1d2327;
	margin: 0;
	min-width: 0;
}

.patinoire-message-field input[type="text"]:focus {
	outline: none;
	border-color: #2271b1;
}

.patinoire-message-buttons {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

/* !important: override base pill radius/padding for compact secondary buttons */
.patinoire-btn-small {
	padding: 7px 14px !important;
	border-radius: 6px !important;
	font-size: 0.85em !important;
}

/* ===== Horaires ===== */
.patinoire-horaires {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.patinoire-horaires-row {
	display: flex;
	gap: 16px;
}

.patinoire-horaire-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.patinoire-horaire-field label {
	font-size: 0.76em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #8c97a3;
}

.patinoire-horaire-field input[type="time"] {
	padding: 10px 12px;
	font-size: 1em;
	border: 1.5px solid #dde1e6;
	border-radius: 8px;
	background: #f7f8fa;
	color: #1d2327;
}

.patinoire-horaire-field input[type="time"]:focus {
	outline: none;
	border-color: #2271b1;
	background: #ffffff;
}

/* Primary save button — rectangle, not pill */
.patinoire-btn-primary {
	/* background + border-color overridden by patinoire_get_custom_css() */
	background: #007bff;
	color: #ffffff;
	border-color: #007bff;
	border-radius: 8px !important;
	align-self: flex-start;
	padding: 10px 24px !important;
}

.patinoire-btn-primary:hover:not(:disabled) {
	background: #0056b3;
	border-color: #0056b3;
}

/* ===== Feedback toast ===== */
.patinoire-message {
	padding: 12px 18px;
	margin-bottom: 16px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.9em;
}

/* background + color overridden by patinoire_get_custom_css() */
.patinoire-message.success {
	background: #d4edda;
	color: #155724;
}

.patinoire-message.error {
	background: #f8d7da;
	color: #721c24;
}

/* ===== Override notice ===== */
.patinoire-override-notice {
	background: #fff8e0;
	border: 1.5px solid #f0d800;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 20px;
}

.patinoire-override-notice strong {
	display: block;
	color: #8a6200;
	font-size: 0.95em;
	margin-bottom: 6px;
}

.patinoire-override-notice p {
	color: #8a6200;
	margin: 0 0 12px;
	font-size: 0.88em;
}

.patinoire-btn-warning {
	background: #ffc107;
	color: #3d2b00;
	border-color: #f0d800;
	font-weight: 700;
	border-radius: 8px !important;
}

.patinoire-btn-warning:hover:not(:disabled) {
	background: #e6ae00;
	border-color: #e6ae00;
}

/* ===== Footer ===== */
.patinoire-footer {
	text-align: center;
	color: #aab4bc;
	font-size: 0.82em;
	padding: 8px 0 4px;
}

.patinoire-footer p {
	margin: 0;
}

/* ===== Responsive ===== */
/* 640px: collapse 2-col grid to 1 col (shortcode context, no Elementor breakpoints) */
@media (max-width: 640px) {
	.patinoire-controle {
		grid-template-columns: 1fr;
		margin: 12px;
	}

	.patinoire-controle > h2,
	.patinoire-controle > .patinoire-message,
	.patinoire-controle > .patinoire-footer {
		grid-column: 1;
	}

	.patinoire-section {
		padding: 20px;
	}

	.patinoire-header {
		flex-wrap: wrap;
	}

	.patinoire-buttons {
		flex-direction: column;
	}

	.patinoire-btn {
		width: 100%;
		justify-content: center;
	}

	.patinoire-message-row {
		flex-direction: column;
		align-items: stretch;
	}

	.patinoire-message-buttons {
		justify-content: flex-start;
	}

	.patinoire-btn-small {
		flex: 1;
	}

	.patinoire-horaires-row {
		flex-direction: column;
		gap: 12px;
	}

	.patinoire-btn-primary {
		align-self: stretch;
		width: 100%;
	}

	.patinoire-status-widget {
		padding: 20px;
		margin: 10px;
	}

	.patinoire-status-widget h3 {
		font-size: 1.3em;
	}
}
