/* Fichier .css
	(Version) By sync - Boulette (V5.5.4) */
html, body {
	margin: 0px;
	padding: 0px;
}

html, body, .main-container {
	/* Empêche la sélection de texte */
	 -webkit-user-select: none;
	user-select: none;
	user-source: hidden; -ms-user-select: none;
}
html, body {
	/* Empêche la sélection de texte */
	 -webkit-user-select: none;
	user-select: none;
	user-source: hidden; -ms-user-select: none;
}

#myTextarea {
	/* Permet la sélection de texte UNIQUEMENT dans la zone de saisie */
	user-select: text;
	-webkit-user-select: text;
	-ms-user-select: text;
}


/* 1. STYLES DE BASE (PC) */
body {
	background: linear-gradient(to right, #007bff, #28a745);
	color: #ffffff;
	font-family: Arial, sans-serif;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 5px;
	box-sizing: border-box;
	overflow-y: auto;
}

.main-container {
	width: 90%;
	max-width: 90vw;
	background-color: rgba(255, 255, 255, 0.9);
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	color: #333;
	box-sizing: border-box;
}

.button-group {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 15px;
	/* AJOUTS POUR LE CENTRAGE HORIZONTAL */
	justify-content: center;
	align-items: center;
}

.button-group button, .button-group select {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	cursor: pointer;
	background-color: #eee;
	transition: background-color 0.2s;
	font-size: 12px;
	white-space: nowrap;
	flex-shrink: 0;
}

.code-editor {
	display: flex;
	margin-top: 10px;
	border: 1px solid #CCCCCC;
	background-color: #f5f5f5;
	min-height: 400px;
	box-sizing: border-box;
}

#lineNumbers {
	width: 30px;
	padding: 5px;
	background-color: #669966;
	color: #FFFFFF;
	text-align: right;
	border-right: 1px solid #339999;
	font-family: monospace;
	font-size: 12px;
	line-height: 1.2;
	overflow: hidden;
	white-space: pre;
	box-sizing: border-box;
	overflow-y: hidden;
}

#myTextarea {
	flex-grow: 1;
	min-height: 500px;
	max-width: 100%;
	box-sizing: border-box;
	resize: vertical;
	border: none;
	padding: 5px;
	background-color: #333333;
	color: #ffffff;
	white-space: pre;
	font-family: monospace;
	font-size: 12px;
	line-height: 1.2;
	overflow-y: scroll;
}

/* 2. MEDIA QUERY CORRIGÉE POUR MOBILE (Marge de Sécurité) */
@media (max-width: 768px) {
	body {
		padding: 10px;
	}
	.main-container {
		width: 90%;
		max-width: 90%;
		padding: 15px;
		padding-bottom: 100px;
	}
	.button-group {
		flex-direction: column;
		gap: 5px;
	}
	.button-group button, .button-group select {
		width: 90%;
		box-sizing: border-box;
	}
}

/* Fix mobile (iOS / Android) — coller à la fin du fichier */
button, select {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	-webkit-tap-highlight-color: transparent !important;
	-webkit-text-size-adjust: 100% !important;
	font-size: 16px !important; /* évite zoom iOS */
	border-radius: 6px !important;
	box-shadow: none !important;
	background-clip: padding-box !important;
	outline: none !important;
}

/* Supprime la flèche native sur certains navigateurs */
select::-ms-expand {
	display: none;
}

/* Options : garder simple (peu stylables sur mobile)
option {
	background-color: #e0e0e0;
	color: inherit;
} */
option, select {
	background-color: #e0e0e0; /* gris léger */
	color: #333; /* texte lisible */
}

/* Si un select déborde, forcer largeur et box-sizing */
.button-group select {
	width: auto !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}


















