/* Fichier .css
	(Version) By sync - (site Ver:8.8.0) */

/***
🎨 Ombreur CSS Avancé 💻 réalisé part sync 2026
Auteur : Feuille d'heures Angélique
Site : https://feuille-heures-angelique.neocities.org/plus/Page_Divers

Licence :
- Usage personnel autorisé
- Modification autorisée
- Redistribution autorisée uniquement avec crédit visible
- Interdiction de revente et suppression de l’auteur

Ce projet reste la propriété de son auteur original.
***/
html{
	scroll-behavior:smooth;
}

html, body {
	touch-action: manipulation; /* Désactive le double-tap pour zoomer, mais autorise le défilement et le pincement */
	-webkit-touch-callout: none;
	user-select: none; /* 👉 navigateurs modernes aujourd’hui (sans préfixe souvent) */
	-webkit-user-select: none; /* 👉 Compat Safari ancien / iOS */
	-ms-user-select: none; /* 👉 vieux Internet Explorer (vieux IE ≤ 10 */
	-moz-user-select: none; /* 👉 moteur WebKit Firefox */
	-o-user-select: none; /* 👉 vieux Opera Presto (avant 2013…) */
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(170deg, #C0C0C0, #74BEA6);
	background-repeat: repeat;
	background-attachment: fixed;
	color: #333;
	margin: 0;
	padding: 40px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.container {
	background-color: #e8f4fd;
	border-left: 4px solid #3498db;
	border-radius: 6px 12px 12px 6px;
	padding: 30px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	max-width: 600px;
	width: 100%;
	box-sizing: border-box;
	-webkit-box-shadow: 15px 15px 10px 0px rgba(0, 0, 0, 0.70);
	-moz-box-shadow: 15px 15px 10px 0px rgba(0, 0, 0, 0.70);
	box-shadow: 15px 15px 10px 0px rgba(0, 0, 0, 0.70);
}

h1 {
	text-align: center;
	color: #2c3e50;
	margin-bottom: 25px;
	font-size: 1.8em;
}

/* Zone d'aperçu dynamique */
.preview-area {
	width: 100%;
	height: 220px;
	background-color: #ffffff;
	border: 2px dashed #bdc3c7;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 25px;
	position: relative;
	transition: background-color 0.3s, border-color 0.3s;
}

#previewBox {
	width: 100px;
	height: 100px;
	background-color: #3498db;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
}

#previewText {
	font-size: 2.2rem;
	font-weight: bold;
	color: #2c3e50;
	display: none;
}

/* Boutons de contrôle rapide */
.toggle-group {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.btn-toggle {
	flex: 1;
	background-color: #bdc3c7;
	color: white;
	border: none;
	border-radius: 6px;
	padding: 10px;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.2s;
}

.btn-toggle.active {
	background-color: #3498db;
}

.btn-bg-toggle {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: rgba(0,0,0,0.08);
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 0.75em;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s;
}

/* NOUVEAU : Panneau de Calques (Layers) */
.layers-panel {
	background-color: rgba(255, 255, 255, 0.6);
	border: 1px solid #bdc3c7;
	border-radius: 6px;
	padding: 15px;
	margin-bottom: 20px;
}

.layers-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	font-weight: bold;
	color: #2c3e50;
}

.layers-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}

.layer-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: white;
	padding: 8px 12px;
	border-radius: 4px;
	border: 1px solid #ecf0f1;
	cursor: pointer;
	transition: all 0.2s;
}

.layer-item:hover {
	border-color: #3498db;
}

.layer-item.active {
	border-color: #3498db;
	box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
	font-weight: bold;
}

.btn-add-layer {
	background-color: #f39c12;
	color: white;
	border: none;
	padding: 8px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	width: 100%;
	transition: background-color 0.2s;
}

.btn-add-layer:hover {
	background-color: #e67e22;
}

.btn-del-layer {
	background-color: transparent;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	padding: 4px 8px;
	font-size: 0.9375em;
}

.btn-del-layer:hover {
	background-color: #008080;
}

/* Sliders de configuration */
.control-panel {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.slider-group {
	display: flex;
	flex-direction: column;
}

.slider-label {
	display: flex;
	justify-content: space-between;
	font-weight: 600;
	color: #34495e;
	margin-bottom: 5px;
}

.checkbox-group {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	background-color: rgba(52, 152, 219, 0.1);
	padding: 10px;
	border-radius: 6px;
	border-left: 3px solid #3498db;
}

.checkbox-group label {
	font-weight: 600;
	color: #2c3e50;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

input[type="checkbox"], input[type="range"] {
	cursor: pointer;
}

input[type="range"] {
	width: 100%;
}

.color-pickers {
	display: flex;
	gap: 15px;
	margin-top: 5px;
}

.color-item {
	flex: 1;
}

input[type="color"] {
	width: 100%;
	height: 40px;
	border: 2px solid #bdc3c7;
	border-radius: 6px;
	cursor: pointer;
	padding: 0;
}

/* Zone d'affichage du Code CSS */
.code-box {
	margin-top: 25px;
	background-color: #2c3e50;
	color: #ecf0f1;
	padding: 15px;
	border-radius: 6px;
	font-family: monospace;
	position: relative;
}

.code-text {
	word-break: break-all;
	display: block;
	margin-bottom: 15px;
	white-space: pre-wrap;
	line-height: 1.6;
}

.btn-copy {
	background-color: #2ecc71;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 10px 15px;
	font-size: 0.875em;
	font-weight: bold;
	cursor: pointer;
	width: 100%;
	transition: background-color 0.2s;
}

.btn-copy:hover {
	background-color: #27ae60;
}

.btn-add-layer:disabled {
	background-color: #95a5a6;
	cursor: not-allowed;
	opacity: 0.7;
}

/* FIN CSS */