
/* Base */
html, body {
	height: 100%;
	overflow: hidden;
	margin: 0;
}

body {
	
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #111827;
	background-color: #f3f4f6;
}

.app-layout {
	height: 100vh;
	display: flex;
	flex-direction: column;
}

.app-header {
	flex: 0 0 auto; /* reste visible */
}

.app-main {
	flex: 1 1 auto; /* prend le reste */
	overflow-y: auto; /* SEUL scroll */
	min-height: 0; /* IMPORTANT: évite des bugs de hauteur en flex */
}

.app-footer {
	flex: 0 0 auto; /* visible en bas */
}


#blazor-error-ui {
	display:none;
}

/* TYPO */
h1, h2, h3 {
	color: #111827;
}

h1 {
	font-size: 1.6rem;
	margin-bottom: 1rem;
}

h2 {
	font-size: 1.3rem;
	margin-bottom: 0.9rem;
}

h3 {
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
}

p {
	margin-bottom: 0.75rem;
	line-height: 1.5;
}

/* pour éviter le zoom automatique sur input (iOS) */
input, textarea, select, button {
	font-size: 16px;
}

/* pour éviter cadre de sélection au démarrage */
h1:focus,
h1:focus-visible {
	outline: none !important;
	border: none !important;
	box-shadow: none !important;
}

.ingredient-row-wrapper,
.step-row-wrapper {
	cursor: grab;
}

	.ingredient-row-wrapper:active,
	.step-row-wrapper:active {
		cursor: grabbing;
	}

.ingredient-row-dragging,
.step-row-dragging {
	opacity: 0.7;
	border-radius: 0.5rem;
	box-shadow: 0 0 0 2px #bfdbfe;
}

.recipe-listitemview {
	cursor: pointer;
}


/* Responsive : nav compacte sur petit écran */
@media (max-width: 900px) {

	/* TYPO */
	h1 {
		font-size: 1.3rem;
		margin-bottom: 0.8rem;
	}

	h2 {
		font-size: 1rem;
		margin-bottom: 0.7rem;
	}

	h3 {
		font-size: 0.8rem;
		margin-bottom: 0.5rem;
	}

	p {
		margin-bottom: 0.5rem;
		line-height: 1;
	}
}

/* Input en erreur */
/* marche pour InputText / InputNumber / InputTextArea, etc. */
input.invalid, textarea.invalid, select.invalid {
	border-color: var(--bs-danger) !important;
	box-shadow: 0 0 0 .15rem rgba(220, 53, 69, .25);
}
