/* public/enseigne/editor.css — éditeur client de l'enseigne lumineuse */
:root { --pink: #e71a65; --ink: #1f1f24; --muted: #7a7a85; --line: #e6e6ea; --bg: #f7f7f9; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); }
.muted { color: var(--muted); }
.btn { border: 0; border-radius: 10px; padding: 14px 28px; font: inherit; font-weight: 800; cursor: pointer; }
.btn--primary { background: var(--pink); color: #fff; }
.btn--primary:disabled { background: #d9d9de; color: #fff; cursor: not-allowed; }
.btn--ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }

.state-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 20px; }
.state-page h1 { font-size: 26px; margin: 8px 0 12px; }
.state-page p { max-width: 520px; line-height: 1.6; }
.spinner { width: 36px; height: 36px; border: 4px solid #eee; border-top-color: var(--pink); border-radius: 50%; animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.locked-preview { max-width: min(600px, 92vw); border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.12); margin-top: 20px; }

.ed-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.ed-header__who { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-weight: 700; }
.ed-main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .ed-main { grid-template-columns: 3fr 2fr; align-items: start; } }

.ed-preview-wrap h1 { font-size: 26px; margin: 0 0 6px; }
.lead { line-height: 1.6; margin: 0 0 16px; color: #444; }
.ed-preview { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-height: 140px; display: flex; align-items: center; justify-content: center; }
.ed-preview svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.ed-preview__placeholder { color: var(--muted); font-weight: 700; }
.ed-metrics { font-size: 13px; margin: 10px 2px 0; min-height: 18px; }
.ed-errors { list-style: none; padding: 0; margin: 10px 0 0; }
.ed-errors li { background: #fff2f6; border: 1px solid #f9c3d6; color: #a3123f; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 6px; }
.ed-note { font-size: 13px; line-height: 1.5; margin-top: 14px; }

.ed-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.ed-field { display: flex; flex-direction: column; gap: 8px; }
.ed-label { font-weight: 800; font-size: 14px; display: flex; justify-content: space-between; }
.ed-field input[type="text"] { font: inherit; font-size: 20px; font-weight: 800; letter-spacing: .02em; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; width: 100%; }
.ed-field input[type="text"]:focus { outline: none; border-color: var(--pink); }
.ed-help { font-size: 12.5px; line-height: 1.5; }

.ed-fonts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ed-font { text-align: left; background: #fafafc; border: 2px solid var(--line); border-radius: 12px; padding: 12px 12px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; color: var(--ink); }
.ed-font:hover { border-color: #f4a5c2; }
.ed-font.is-active { border-color: var(--pink); background: #fff5f8; }
.ed-font__sample { font-size: 22px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-font__name { font-weight: 800; font-size: 13px; margin-top: 4px; }
.ed-font__desc { font-size: 11.5px; color: var(--muted); }

.ed-actions { display: flex; flex-direction: column; gap: 8px; }
.ed-actions .btn { width: 100%; }
.ed-status { font-size: 13px; min-height: 18px; margin: 0; }

/* ─── Texte / logo, couleurs, dimensions (08/10/2026) ─── */
.ed-dims { font-size: 13px; margin: 0 0 10px; }
.ed-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #f1f1f5; border-radius: 12px; padding: 4px; }
.ed-mode { font: inherit; font-weight: 800; font-size: 14px; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.ed-mode.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
#pane-texte, #pane-logo { display: flex; flex-direction: column; gap: 18px; }
.ed-drop { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 22px 14px; border: 2px dashed var(--line); border-radius: 12px; background: #fafafc; cursor: pointer; font-size: 13px; }
.ed-drop:hover, .ed-drop.is-over { border-color: var(--pink); background: #fff5f8; }
.ed-drop strong { font-size: 15px; word-break: break-all; }
.ed-range { display: flex; flex-direction: column; gap: 6px; }
.ed-range input { width: 100%; accent-color: var(--pink); }
.ed-check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
.ed-check input { accent-color: var(--pink); width: 16px; height: 16px; }
.ed-couleurs { display: flex; gap: 10px; flex-wrap: wrap; }
.ed-couleur { display: flex; align-items: center; gap: 8px; font: inherit; font-weight: 800; font-size: 13.5px; color: var(--ink); background: #fafafc; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; cursor: pointer; }
.ed-couleur:hover { border-color: #f4a5c2; }
.ed-couleur.is-active { border-color: var(--pink); background: #fff5f8; }
.ed-couleur__pastille { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.ed-warnings { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: #9a6400; }
.ed-warnings li { background: #fff7e0; border-radius: 8px; padding: 8px 10px; }
