/* ═══════════════════════════════════════════════════════════════════════════
   EDITOR-PRO.CSS — Guides intelligents & outils d'alignement
═══════════════════════════════════════════════════════════════════════════ */

.editor-smart-guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.smart-guide {
  position: absolute;
  pointer-events: none;
}

.smart-guide-v {
  top: 0;
  width: 1px;
  background: rgba(201, 169, 110, 0.85);
  box-shadow: 0 0 6px rgba(201, 169, 110, 0.5);
}

.smart-guide-h {
  left: 0;
  height: 1px;
  background: rgba(201, 169, 110, 0.85);
  box-shadow: 0 0 6px rgba(201, 169, 110, 0.5);
}

.editor-bar-group.align-tools {
  border-left: 1px solid rgba(201, 169, 110, 0.15);
  padding-left: 0.75rem;
  margin-left: 0.25rem;
}

.editor-bar .ebtn-align {
  min-width: 32px;
  padding: 0 8px;
}

.editor-bar .ebtn-align.active,
#btn-toggle-guides.active {
  background: rgba(201, 169, 110, 0.18) !important;
  border-color: rgba(201, 169, 110, 0.45) !important;
  color: var(--color-accent) !important;
}

/* Panneau propriétés enrichi */
.pp-typo-role {
  width: 100%;
  margin-bottom: 6px;
}

.pp-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 11px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.pp-checkbox-row input {
  accent-color: var(--color-accent);
}

.pp-subsection {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.pp-subsection-title {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

/* Grille édition plus visible */
body.edit-mode .canvas-grid.show {
  background-image:
    linear-gradient(rgba(201, 169, 110, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.08) 1px, transparent 1px);
  background-size: 10px 10px;
}

body.edit-mode .canvas-element.selected {
  outline: 1px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.2);
}

body.edit-mode .canvas-element.dragging {
  transition: none !important;
  will-change: transform, left, top;
}

.properties-panel .pp-input[type="range"] {
  flex: 1;
  min-width: 0;
}
