/* Ajout des styles pour l'affichage des instructions IA */
.title {
	font-size: 2.2rem;
	color: #2c3e50;
	text-align: center;
	margin-bottom: 15px;
	font-weight: 600;
}

.instructions {
	color: #5a6c7d;
	font-size: 1.05rem;
	margin-bottom: 18px;
	line-height: 1.5;
	text-align: center;
}

.anglais {
	color: #d32f2f;
	font-weight: bold;
}

.exemples {
	font-size: 0.95rem;
	color: #888;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	margin: 0;
	padding: 20px 0;
	min-height: 100vh;
}

.container {
	max-width: 520px;
	margin: 40px auto;
	background: rgba(255, 255, 255, 0.95);
	padding: 28px;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.1);
	border: 1px solid rgba(255,255,255,0.2);
}

label {
	font-weight: 500;
	color: #2c3e50;
	margin-bottom: 8px;
	font-size: 1rem;
}

form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

textarea {
	resize: vertical;
	padding: 12px;
	font-size: 1rem;
	border-radius: 8px;
	border: 2px solid #e1e8ed;
	background: rgba(255, 255, 255, 0.9);
	transition: border-color 0.3s ease;
	font-family: inherit;
	min-height: 100px;
}

textarea:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

button {
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

button:active {
	transform: translateY(0);
}

#result {
	margin-top: 20px;
	font-size: 1.1rem;
	color: #444;
	min-height: 40px;
}

/* Styles pour les résultats d'analyse */
.result-toxic {
	background: linear-gradient(135deg, #ffebee, #ffcdd2);
	border: 2px solid #e57373;
	padding: 18px;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(229, 115, 115, 0.15);
	animation: fadeIn 0.4s ease-out;
}

.result-safe {
	background: linear-gradient(135deg, #e8f5e8, #c8e6c8);
	border: 2px solid #81c784;
	padding: 18px;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(129, 199, 132, 0.15);
	animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.toxic-tags {
	margin-bottom: 8px;
}

.toxic-tag {
	display: inline-block;
	background: linear-gradient(135deg, #e57373, #ef5350);
	color: #fff;
	padding: 5px 10px;
	border-radius: 15px;
	margin-right: 6px;
	margin-bottom: 4px;
	font-size: 0.9rem;
	font-weight: 500;
	box-shadow: 0 2px 4px rgba(229, 115, 115, 0.2);
}

.toxic-title {
	font-weight: 600;
	color: #c62828;
	margin-bottom: 10px;
	font-size: 1.1rem;
}

.toxic-advice {
	color: #424242;
	margin-bottom: 8px;
	line-height: 1.4;
	font-style: italic;
}

.safe-message {
	color: #2e7d32;
	font-weight: 600;
	font-size: 1.1rem;
}

@media (max-width: 600px) {
	body {
		padding: 10px 0;
	}
	
	.container {
		max-width: 95%;
		padding: 20px;
		margin: 20px auto;
	}
	
	.title {
		font-size: 1.8rem;
	}
	
	.instructions {
		font-size: 1rem;
	}
	
	textarea {
		min-height: 80px;
		padding: 10px;
	}
	
	button {
		padding: 10px 20px;
	}
}
