/* =========================================================
   Projet — Loi normale
   Compatible ataraXy V2
   ========================================================= */

.projet-loi-normale {
	max-width: 1250px;
	margin: 0 auto;
	padding: 24px;
}

.projet-loi-normale * {
	box-sizing: border-box;
}

.projet-loi-normale .titre {
	font-size: 2rem;
	font-weight: 800;
	margin-bottom: 24px;
	color: var(--couleur-texte, #202124);
}

.section2 {
	text-align: left;
}

/* =========================================================
   Cartes
   ========================================================= */

.ln-card {
	margin: 26px auto;
	padding: 26px;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 14px 36px rgba(0, 0, 0, .10);
}

.ln-card h3 {
	margin: 0 0 16px;
	font-size: 1.25rem;
	font-weight: 800;
	color: #111827;
}

.ln-card p {
	max-width: 850px;
	margin: 0 0 18px;
	line-height: 1.6;
	color: #4b5563;
}

/* =========================================================
   Bloc calcul
   ========================================================= */

.bloc {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 22px;
	width: 100%;
	margin: 24px auto;
	text-align: center;
}

.bloc1,
.bloc2 {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	min-width: 260px;
	padding: 22px;
	border-radius: 24px;
	background: #f8fafc;
	border: 1px solid rgba(17, 24, 39, .08);
}

.bloc2 {
	align-items: center;
	flex-direction: row;
	flex-wrap: wrap;
}

.ln-formule {
	font-size: 1.1rem;
	font-weight: 800;
	margin-bottom: 4px;
}

.projet-loi-normale label {
	display: grid;
	grid-template-columns: 72px 1fr;
	align-items: center;
	gap: 10px;
}

.projet-loi-normale label span {
	font-weight: 800;
	text-align: right;
	color: #111827;
}

.projet-loi-normale input[type="text"],
.projet-loi-normale select {
	min-height: 42px;
	padding: 10px 13px;
	border: 1px solid rgba(17, 24, 39, .30);
	border-radius: 12px;
	background: #fff;
	color: #111827;
	font-size: .98rem;
	text-align: center;
}

.projet-loi-normale input[type="text"] {
	width: 110px;
}

.projet-loi-normale select {
	width: 76px;
	font-weight: 800;
}

.projet-loi-normale input:focus,
.projet-loi-normale select:focus,
.projet-loi-normale textarea:focus {
	outline: none;
	border-color: #4f46e5;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(79, 70, 229, .13);
}

.ln-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	min-width: 110px;
	padding: 9px 14px;
	border-radius: 999px;
	background: rgba(34, 197, 94, .12);
	color: #14532d;
	font-size: 1.08rem;
	font-weight: 900;
}

.ln-error {
	max-width: 760px;
	margin: 0 auto 18px;
	padding: 14px 18px;
	border-radius: 16px;
	background: rgba(239, 68, 68, .10);
	border: 1px solid rgba(239, 68, 68, .25);
	color: #991b1b;
	font-weight: 700;
	text-align: center;
}

/* =========================================================
   Bouton
   ========================================================= */

.projet-loi-normale input[type="submit"],
.projet-loi-normale button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	margin: 8px auto 0;
	border: none;
	border-radius: 999px;
	background: #4f46e5;
	color: #fff;
	font-weight: 800;
	font-size: .95rem;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(79, 70, 229, .22);
	transition: transform .15s ease, opacity .15s ease;
}

.projet-loi-normale input[type="submit"]:hover,
.projet-loi-normale button:hover {
	transform: translateY(-1px);
	opacity: .92;
}

/* =========================================================
   Textarea LaTeX
   ========================================================= */

.projet-loi-normale textarea {
	width: 100%;
	min-height: 230px;
	padding: 16px;
	border: 1px solid rgba(17, 24, 39, .20);
	border-radius: 18px;
	background: #0f172a;
	color: #e5e7eb;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: .9rem;
	line-height: 1.45;
	resize: vertical;
}

/* =========================================================
   Table
   ========================================================= */

.ln-table-wrap {
	width: max-content;
	max-width: 100%;
	margin: 0 auto;
}

.ln-table {
	border-collapse: separate;
	border-spacing: 0;
	margin: 0 auto;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.ln-table td {
	min-width: 74px;
	padding: 9px 10px;
	border: 1px solid rgba(17, 24, 39, .12);
	text-align: center;
}

.ln-table tr:first-child td,
.ln-table td:first-child {
	font-weight: 800;
	background: rgba(79, 70, 229, .08);
}

.ln-table .tr2 td,
.ln-table tr.tr2 td {
	background-color: rgba(79, 70, 229, .035);
}

.ln-head-empty {
	width: 42px;
}

/* =========================================================
   MathJax
   ========================================================= */

.projet-loi-normale mjx-container[display="true"] {
	display: block;
	width: max-content;
	max-width: 100%;
	margin: 12px auto;
	overflow: visible;
}

.projet-loi-normale mjx-container {
	max-width: 100%;
	overflow: visible;
}

/* =========================================================
   Copyright
   ========================================================= */

#copyright {
	display: block;
	max-width: 950px;
	margin: 36px auto 12px;
	padding: 14px 18px;
	border-radius: 16px;
	background: rgba(0, 0, 0, .04);
	font-size: .82rem;
	line-height: 1.45;
	text-align: left;
	color: rgba(0, 0, 0, .68);
}

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

@media (max-width: 800px) {
	.projet-loi-normale {
		padding: 16px;
	}

	.projet-loi-normale .titre {
		font-size: 1.65rem;
	}

	.ln-card {
		padding: 20px;
		border-radius: 22px;
	}

	.bloc {
		display: block;
	}

	.bloc1,
	.bloc2 {
		margin: 14px 0;
		width: 100%;
		min-width: 0;
	}

	.projet-loi-normale label {
		grid-template-columns: 1fr;
	}

	.projet-loi-normale label span {
		text-align: left;
	}

	.ln-table td {
		min-width: 58px;
		padding: 7px 8px;
		font-size: .9rem;
	}
}