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

#copyright {
	display: block;
	max-width: 900px;
	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);
}

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

.projet-systeme-lineaire {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
}

.projet-systeme-lineaire * {
	box-sizing: border-box;
}

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

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

/* =========================================================
   Bloc de saisie initial
   ========================================================= */

#SaisieCV {
	max-width: 520px;
	margin: 40px auto;
	padding: 28px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 12px 35px rgba(0, 0, 0, .10);
	text-align: center;
}

#SaisieCV input[type="number"],
#SaisieCV input[type="text"],
#SaisieCV input[type="texte"] {
	width: 100%;
	max-width: 280px;
	padding: 11px 14px;
	margin: 8px 0;
	border: 1px solid rgba(17, 24, 39, .35);
	border-radius: 12px;
	font-size: 1rem;
	text-align: center;
	background: #f8fafc;
	color: #111827;
}

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

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

.projet-systeme-lineaire input[type="submit"],
.projet-systeme-lineaire button,
.projet-systeme-lineaire .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	margin-top: 10px;
	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);
}

.projet-systeme-lineaire input[type="submit"]:hover {
	transform: translateY(-1px);
	opacity: .92;
}

/* =========================================================
   Zone saisie système / aperçu système
   ========================================================= */

.aff_gauche,
.aff_droite {
	display: inline-block;
	vertical-align: top;
	min-width: 320px;
	max-width: 100%;
	margin: 12px;
	padding: 22px;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .09);
	text-align: center;
}

.aff_gauche {
	width: max-content;
	max-width: 100%;
}

.aff_droite {
	width: max-content;
	max-width: 100%;
}

.aff_gauche table {
	margin: 0 auto 14px;
	border-collapse: separate;
	border-spacing: 6px 8px;
}

.aff_gauche input[type="text"],
.aff_gauche input[type="texte"] {
	width: 64px;
	padding: 8px 6px;
	border: 1px solid rgba(17, 24, 39, .35);
	border-radius: 10px;
	text-align: center;
	background: #f8fafc;
	color: #111827;
}

/* =========================================================
   Solution
   ========================================================= */

.SOLUTION {
	width: max-content;
	max-width: 100%;
	margin: 28px auto;
	padding: 22px 26px;
	border-left: 8px solid #22c55e;
	border-radius: 22px;
	background: rgba(34, 197, 94, .08);
	text-align: left;
}

.SOLUTION strong {
	font-size: 1.1rem;
}

/* =========================================================
   Détails
   ========================================================= */

.projet-systeme-lineaire h3 {
	text-align: center;
	margin: 36px 0 18px;
}

.details-zone {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
}

.details {
	flex: 0 1 auto;
	width: max-content;
	max-width: 100%;
	padding: 18px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.details p {
	text-align: left;
}

/* =========================================================
   MathJax — intelligent (pas de scroll)
   ========================================================= */

mjx-container[display="true"] {
	display: block;
	width: max-content;
	max-width: 100%;
	margin: 0 auto;
}

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

@media (max-width: 800px) {
	.aff_gauche,
	.aff_droite,
	.details {
		display: block;
		width: 100%;
	}

	.details-zone {
		display: block;
	}
}