.form-create-module {
	background: #f9f9f9;
	padding: 2rem;
	border-radius: 20px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	max-width: 85rem;
	width: 100%;
	text-align: left;
	margin: 2rem auto;
	color: #333;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.form-create-module input, .form-create-module textarea,
	.form-create-module select {
	width: 100%;
	padding: 12px;
	margin: 2rem auto;
	border: 1px solid #ccc;
	border-radius: 10px;
	font-size: 1.6rem;
	background: #fff;
	color: #333;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
	outline: none;
	display: block;
}

.form-create-module input::placeholder, .form-create-module textarea::placeholder
	{
	color: #999;
}

.form-create-module input:focus, .form-create-module textarea:focus,
	.form-create-module select:focus {
	border-color: #9e2d66;
	box-shadow: 0 0 10px rgba(158, 45, 102, 0.5);
}

.form-container legend, .form-create-module legend {
	color: #ccc;
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
	font-style: italic;
}

.form-create-module textarea {
	min-height: 6.25rem;
}

/* Focus des champs */
.form-create-module input[type="text"]:focus, .form-create-module textarea:focus
	{
	border-color: #9e2d66;
	outline: none;
	box-shadow: 0 0 8px rgba(158, 45, 102, 0.4);
}

/*******   CREATION MODULES  *********/

/* Container principal */
#create-module .container {
	max-width: 90rem;
	margin: 3rem auto 6rem auto;
	padding: 2rem;
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	text-align: left;
	color: #222;
}

/* Titres */
#create-module h1 {
	font-size: 4rem;
	font-weight: bold;
	margin-bottom: 2rem;
	color: #9e2d66;
	text-align: center;
}

/* Form group général */
.form-create-module .form-group, .form-create-module label, .submodule label
	{
	font-weight: 500;
 	font-size: 2rem;
	margin-top: 1.6rem;
	display: block;
	color: #444;
}

/* Inputs & Textareas du formulaire */
.form-create-module input[type="text"], .form-create-module textarea {
	width: 100%;
	padding: 1rem 1.2rem;
	font-size: 1.6rem;
	border-radius: 10px;
	border: 2px solid #ccc;
	transition: border-color 0.3s ease;
	font-family: 'Space Mono', monospace;
	box-sizing: border-box;
	margin-top: 0.4rem;
	resize: vertical;
	min-height: 2.5rem;
}

/* Boutons */
.btn-primary {
	background-color: #9e2d66;
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 1.4rem 2.2rem;
	font-size: 1.8rem;
	font-weight: 700;
	cursor: pointer;
	margin-top: 3rem;
	width: 100%;
	max-width: 18.75rem;
	display: block;
	margin-left: auto;
	margin-right: auto;
	transition: background-color 0.3s ease;
}

.btn-primary:hover {
	background-color: #b03b74;
	box-shadow: 0 0 15px rgba(176, 59, 116, 0.5);
}

.btn-small {
	background-color: #f0e6f7;
	color: #9e2d66;
	border-radius: 10px;
	padding: 1rem 1.6rem;
	font-size: 1.4rem;
	border: 2px solid #9e2d66;
	cursor: pointer;
	margin-top: 1rem;
	display: inline-block;
	transition: background-color 0.3s ease;
}

.btn-small:hover {
	background-color: #9e2d66;
	color: #fff;
}

/* Style des sous-modules */
.submodule {
	background: #faf7fc;
	border: 2px solid #eee;
	border-radius: 15px;
	padding: 2rem 2rem 3rem 2rem;
	margin-top: 3rem;
	box-shadow: inset 0 0 8px rgba(158, 45, 102, 0.1);
}

.submodule h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
	color: #9e2d66;
}

/* Petits textes d’aide */
.info, small {
	font-size: 1.5rem;
	color: #666;
	display: block;
	margin-top: 0.3rem;
	margin-bottom: 1rem;
}

/* Preview style */
.preview {
	background: white;
	border-radius: 8px;
	min-height: 5rem;
	font-family: 'Arial', sans-serif;
	padding: 1rem;
	margin-top: 1rem;
	color: #222;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	overflow-x: auto;
}

/* Alert messages */
.alert {
	max-width: 37.5rem;
	margin: 1rem auto;
	padding: 1rem 1.5rem;
	border-radius: 10px;
	font-size: 1.4rem;
}

.alert-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.alert-danger {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Palette */
.simple-toolbar {
	margin: 0.5rem 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.simple-toolbar button {
	padding: 1rem 3rem;
  	font-size: 1.5rem;
  	font-weight: bolder;
  	border: 4px solid #ccc;
	background-color: cadetblue;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.simple-toolbar button:hover {
	background-color: #e0e0e0;
}

.simple-toolbar textarea {
	width: 100%;
	min-height: 7.5rem;
	margin-top: 0.5rem;
	padding: 0.5rem;
	font-family: monospace;
	border: 1px solid #ccc;
	border-radius: 4px;
}