/* ===== VARIABLES CSS MODERNES ===== */
:root {
  /* Couleurs principales */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  
  /* Couleurs grises */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  
  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  
  /* Bordures et ombres */
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition: all 0.2s ease-in-out;
}


* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: #f8f9fa;
	overflow: hidden;
}

.editor-container {
	display: flex;
	height: 100vh;
}

.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #2c3e50;
	color: white;
	padding: 12px 20px;
	z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
	font-size: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.project-info {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 14px;
}

.project-name {
	background: rgba(255,255,255,0.1);
	padding: 4px 8px;
	border-radius: 4px;
	border: none;
	color: white;
	font-size: 14px;
}

.project-status {
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: bold;
}

.status-draft { background: #f39c12; color: white; }
.status-in_progress { background: #3498db; color: white; }
.status-completed { background: #27ae60; color: white; }

.header-actions {
	display: flex;
	gap: 10px;
}

/* ===== BOUTONS MODERNISÉS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary-500);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-600);
}

.btn-secondary {
  background: var(--gray-500);
  color: white;
}

.btn-secondary:hover {
  background: var(--gray-700);
}

.btn-success {
  background: #10b981;
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}
.left-panel {
	width: 280px;
	background: white;
	border-right: 1px solid #e1e8ed;
	padding: 80px 20px 20px 20px;
	overflow-y: auto;
	box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.canvas-container {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 20px 20px 20px;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.canvas-wrapper {
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	padding: 20px;
	position: relative;
}

.canvas-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.canvas-title {
	font-weight: bold;
	color: #2c3e50;
}

.right-panel {
	width: 280px;
	background: white;
	border-left: 1px solid #e1e8ed;
	padding: 80px 20px 20px 20px;
	overflow-y: auto;
	box-shadow: -2px 0 10px rgba(0,0,0,0.05);
}

.tool-section {
	margin-bottom: 25px;
}

.tool-section h3 {
	font-size: 16px;
	color: #2c3e50;
	margin-bottom: 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid #3498db;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tool-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 15px;
}

.tool-item {
	aspect-ratio: 1;
	border: 2px solid #e1e8ed;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 20px;
	background: white;
}

.tool-item:hover {
	border-color: #3498db;
	background: #f8f9fa;
	transform: scale(1.05);
}

.tool-item.active {
	border-color: #3498db;
	background: #3498db;
	color: white;
}

.color-palette {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 6px;
	margin-bottom: 15px;
}

.color-item {
	aspect-ratio: 1;
	border-radius: 6px;
	cursor: pointer;
	border: 2px solid white;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
}

.color-item:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.property-group {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 15px;
}

.property-group h4 {
	color: #34495e;
	margin-bottom: 10px;
	font-size: 14px;
}

.property-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.property-input {
	width: 60px;
	padding: 4px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 12px;
}

.slider {
	width: 100%;
	margin: 8px 0;
}

#logoCanvas {
	border: 2px dashed #bdc3c7;
	border-radius: 8px;
}

.text-controls {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.font-select {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.size-controls {
	display: flex;
	gap: 8px;
}

.size-controls input {
	flex: 1;
	padding: 6px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: center;
}

.canvas-info {
	background: #ecf0f1;
	padding: 10px;
	border-radius: 6px;
	margin-bottom: 15px;
	font-size: 12px;
	color: #7f8c8d;
}

.project-actions {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.project-actions h4 {
	margin-bottom: 10px;
	color: #2c3e50;
}

.quick-actions {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.quick-actions .btn {
	flex: 1;
	font-size: 12px;
	padding: 6px 8px;
}

.loading {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	padding: 20px 30px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 2000;
	text-align: center;
}

.loading-spinner {
	width: 30px;
	height: 30px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #3498db;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 10px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.save-indicator {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #27ae60;
	color: white;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.save-indicator.show {
	opacity: 1;
}

.notification {
	position: fixed;
	top: 80px;
	right: 20px;
	padding: 15px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 10000;
	max-width: 400px;
	animation: slideInRight 0.3s ease;
}

.notification-success { background: #27ae60; color: white; }
.notification-error { background: #e74c3c; color: white; }
.notification-info { background: #3498db; color: white; }

.notification-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.notification-close {
	background: none;
	border: none;
	color: white;
	font-size: 18px;
	cursor: pointer;
	padding: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.notification-close:hover {
	opacity: 0.7;
}

@keyframes slideInRight {
	from { transform: translateX(100%); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 1200px) {
	.left-panel, .right-panel {
		width: 240px;
	}
}

@media (max-width: 768px) {
	.left-panel, .right-panel {
		position: fixed;
		top: 60px;
		height: calc(100vh - 60px);
		z-index: 999;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
	}

	.left-panel.open, .right-panel.open {
		transform: translateX(0);
	}

	.right-panel {
		right: 0;
		transform: translateX(100%);
	}
}
