/* =========================================================
   Projet — Problèmes linéaires
   Compatible ataraXy V2
   ========================================================= */

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

.projet-problemes-lineaires * {
	box-sizing: border-box;
}

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

.projet-pl-intro {
	max-width: 820px;
	margin: 0 0 24px;
	line-height: 1.6;
	color: #4b5563;
}

.projet-problemes-lineaires hr {
	border: none;
	border-top: 1px solid rgba(0, 0, 0, .1);
	margin: 18px 0 26px;
}

/* =========================================================
   Saisie initiale
   ========================================================= */

#SaisieCV,
.pl-card {
	max-width: 720px;
	margin: 34px auto;
	padding: 28px;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 14px 36px rgba(0, 0, 0, .10);
	text-align: center;
}

#SaisieCV form,
.pl-card form {
	margin: 14px 0;
}

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

#SaisieCV input[type="number"] {
	width: min(280px, 100%);
	margin: 8px 0;
}

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

/* =========================================================
   Boutons
   ========================================================= */

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

.projet-problemes-lineaires input[type="submit"]:hover,
.projet-problemes-lineaires button:hover,
.projet-problemes-lineaires .btn:hover {
	transform: translateY(-1px);
	opacity: .92;
	text-decoration: none;
}

/* =========================================================
   Tableau de saisie du problème
   ========================================================= */

.pl-form-wrap {
	width: max-content;
	max-width: 100%;
	margin: 24px auto;
	padding: 24px;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 14px 36px rgba(0, 0, 0, .10);
}

.pl-form-wrap table {
	margin: 0 auto 18px;
	border-collapse: separate;
	border-spacing: 8px 10px;
}

.pl-form-wrap td {
	text-align: center;
	white-space: nowrap;
}

.pl-form-wrap input[type="text"] {
	width: 64px;
	min-height: 38px;
	padding: 7px 6px;
	border: 1px solid rgba(17, 24, 39, .30);
	border-radius: 10px;
	background: #f8fafc;
	color: #111827;
	text-align: center;
}

.pl-form-wrap select,
.BigSymb {
	min-height: 38px;
	padding: 7px 10px;
	border: 1px solid rgba(17, 24, 39, .30);
	border-radius: 10px;
	background: #fff;
	color: #111827;
	font-size: .95rem;
}

/* =========================================================
   Affichage problème + saisie
   ========================================================= */

.pl-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 22px;
	margin: 24px 0;
}

.gauche,
.droite {
	display: block;
	width: max-content;
	max-width: 100%;
	margin: 0;
	padding: 22px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .09);
	text-align: center;
}

.gauche {
	max-width: 100%;
}

.droite {
	max-width: 100%;
}

/* =========================================================
   Réponse
   ========================================================= */

.reponse {
	display: block;
	width: max-content;
	max-width: 100%;
	margin: 30px auto;
	padding: 24px 28px;
	border: 1px solid rgba(34, 197, 94, .35);
	border-left: 8px solid #22c55e;
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(34, 197, 94, .12), rgba(34, 197, 94, .04));
	box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
	text-align: left;
}

.reponse strong {
	font-size: 1.15rem;
	color: #14532d;
}

.reponse hr {
	border: none;
	border-top: 1px solid rgba(34, 197, 94, .28);
	margin: 12px 0;
}

.reponse p {
	margin: 10px 0;
	line-height: 1.6;
}

/* =========================================================
   Itérations
   ========================================================= */

.projet-problemes-lineaires h3 {
	margin: 38px 0 18px;
	font-size: 1.45rem;
	font-weight: 800;
	text-align: center;
	color: #111827;
}

.pl-iterations {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 18px;
	margin-top: 18px;
}

.iteration {
	display: block;
	width: max-content;
	max-width: 100%;
	margin: 0;
	padding: 18px;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
	text-align: left;
}

.iteration p {
	margin: 0 0 10px;
	font-weight: 800;
	color: #111827;
}

.iteration hr {
	margin: 10px 0 14px;
	border-top: 1px solid rgba(0, 0, 0, .08);
}

/* =========================================================
   MathJax — sans scroll, boîtes adaptatives
   ========================================================= */

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

.projet-problemes-lineaires mjx-container {
	max-width: 100%;
	overflow: visible;
}

.OP_Gauss {
	font-size: .85em;
}

/* =========================================================
   Messages / liens
   ========================================================= */

.projet-problemes-lineaires a {
	color: #4f46e5;
	font-weight: 700;
	text-decoration: none;
}

.projet-problemes-lineaires a:hover {
	text-decoration: underline;
}

/* =========================================================
   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-problemes-lineaires {
		padding: 16px;
	}

	.projet-problemes-lineaires .titre {
		font-size: 1.65rem;
	}

	.pl-top,
	.pl-iterations {
		display: block;
	}

	.gauche,
	.droite,
	.iteration,
	.reponse,
	.pl-form-wrap {
		width: 100%;
		margin: 14px 0;
	}

	.pl-form-wrap {
		padding: 18px;
	}
}