/* ═══════════════════════════════════════════════════════════════════
   B-Empire CRM — Espace rédaction : mise en page éditoriale
   Sobre et lisible : une feuille pour écrire, un panneau pour documenter.
   ═══════════════════════════════════════════════════════════════════ */
.nr-eyebrow { font: 600 10.5px Inter, sans-serif; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }

/* ─── suivi du workflow ─── */
.nr-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.nr-step { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--border); color: var(--text3); font-size: 12px; }
.nr-step b { font: 700 16px 'Playfair Display', Georgia, serif; color: var(--text2); }
.nr-step.on { color: var(--text2); border-color: rgba(201,168,76,.35); }
.nr-step.on b { color: var(--gold); }
.nr-step i { margin-left: 4px; font-size: 9px; color: var(--text3); }

/* ─── liste des articles ─── */
.nr-list { display: flex; flex-direction: column; gap: 10px; }
.nr-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; cursor: pointer; background: var(--bg2); border: 1px solid var(--border);
  transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease; }
.nr-row:hover { transform: translateY(-2px); border-color: rgba(201,168,76,.35); box-shadow: 0 14px 30px -18px rgba(0,0,0,.7); }
.nr-row-main { flex: 1; min-width: 0; }
.nr-row-title { font: 600 17px 'Playfair Display', Georgia, serif; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-row-meta { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* ─── barre supérieure de l'éditeur ─── */
.nr-topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.nr-topbar-mid { flex: 1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nr-topbar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.nr-save { font-size: 12px; color: var(--text3); }

.nr-banner { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; margin-bottom: 14px; background: var(--bg2); border: 1px solid var(--border); }
.nr-banner > i { font-size: 18px; color: var(--text3); margin-top: 2px; }
.nr-banner b { display: block; font-size: 14px; color: var(--text); } .nr-banner p { margin: 4px 0 0; font-size: 13px; color: var(--text2); white-space: pre-wrap; }
.nr-banner.nr-warn { border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.07); } .nr-banner.nr-warn > i { color: #F59E0B; }
.nr-banner.nr-bad { border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.07); } .nr-banner.nr-bad > i { color: #EF4444; }
.nr-banner.nr-good { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.07); } .nr-banner.nr-good > i { color: #22C55E; }
.nr-banner a { color: var(--gold); }

/* ─── la feuille ─── */
.nr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.nr-paper { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 44px 56px 60px; min-height: 70vh; box-shadow: 0 30px 70px -40px rgba(0,0,0,.8); }
.nr-paper > * { max-width: 740px; margin-left: auto; margin-right: auto; }
.nr-title { display: block; width: 100%; resize: none; overflow: hidden; border: 0; outline: 0; background: transparent; color: var(--text); padding: 0;
  font: 700 34px/1.2 'Playfair Display', Georgia, serif; letter-spacing: -.3px; min-height: 0 !important; }
.nr-dek { display: block; width: 100%; overflow: hidden; border: 0; outline: 0; resize: none; background: transparent; color: var(--text2); margin-top: 14px; padding: 0;
  font: italic 400 18px/1.55 Georgia, 'Times New Roman', serif; min-height: 0 !important; }
.nr-title::placeholder, .nr-dek::placeholder { color: var(--text3); opacity: .7; }
.nr-toolbar { position: sticky; top: 74px; z-index: 5; display: flex; gap: 2px; flex-wrap: wrap; align-items: center; margin: 22px auto 6px; padding: 6px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; }
.nr-tb { min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text2); cursor: pointer; font-size: 13px; }
.nr-tb:hover { background: rgba(201,168,76,.14); color: var(--gold); }
.nr-sep { width: 1px; height: 20px; background: var(--border2); margin: 0 4px; }
.nr-body { margin-top: 20px; min-height: 52vh; outline: 0; color: var(--text); font: 400 18px/1.8 Georgia, 'Times New Roman', serif; word-wrap: break-word; }
.nr-body:empty::before { content: attr(data-ph); color: var(--text3); }
.nr-body p { margin: 0 0 1.1em; }
.nr-body h2 { font: 700 25px/1.3 'Playfair Display', Georgia, serif; margin: 1.6em 0 .6em; color: var(--text); }
.nr-body h3 { font: 700 20px/1.35 'Playfair Display', Georgia, serif; margin: 1.4em 0 .5em; color: var(--text); }
.nr-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); color: var(--text2); font-style: italic; font-size: 20px; }
.nr-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.nr-body ul, .nr-body ol { margin: 0 0 1.1em 1.4em; } .nr-body li { margin: .3em 0; }

/* ─── panneau de documentation ─── */
.nr-side { position: sticky; top: 80px; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
.nr-tabs { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--border); }
.nr-tab { padding: 11px 2px 9px; text-align: center; cursor: pointer; color: var(--text3); font-size: 10px; border-bottom: 2px solid transparent; transition: color .15s ease; }
.nr-tab i { display: block; font-size: 15px; margin-bottom: 4px; }
.nr-tab:hover { color: var(--text2); }
.nr-tab.on { color: var(--gold); border-bottom-color: var(--gold); }
.nr-panel { padding: 16px; overflow-y: auto; }
.nr-ph { font-size: 12px; color: var(--text3); line-height: 1.5; margin-bottom: 12px; }
.nr-search { display: flex; gap: 6px; margin-bottom: 12px; } .nr-search .form-input { flex: 1; min-width: 0; } .nr-search .form-select { width: 118px; }
.nr-res { padding: 12px 0; border-bottom: 1px solid var(--border); }
.nr-res a { color: var(--text); text-decoration: none; } .nr-res a:hover b { color: var(--gold); }
.nr-res b { font-size: 13.5px; line-height: 1.4; }
.nr-res-meta { font-size: 11px; color: var(--text3); margin: 3px 0; }
.nr-res-snip { font-size: 12.5px; color: var(--text2); line-height: 1.5; margin-bottom: 6px; }
.nr-empty { font-size: 13px; color: var(--text3); padding: 18px 0; text-align: center; }
.nr-src { display: flex; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.nr-src-main { flex: 1; min-width: 0; } .nr-src-main b { display: block; font-size: 13px; color: var(--text); line-height: 1.4; }
.nr-src-main a { font-size: 11.5px; color: var(--gold); word-break: break-all; }
.nr-src-note { font-size: 12px; color: var(--text2); margin-top: 4px; font-style: italic; }
.nr-src-act { display: flex; flex-direction: column; }
.nr-notes { min-height: 58vh; font: 400 14px/1.6 Inter, sans-serif; }
.nr-ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.nr-ai-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: 12px; cursor: pointer; text-align: left;
  background: var(--bg3); border: 1px solid var(--border); color: var(--text2); font: 500 12.5px Inter, sans-serif; transition: border-color .15s ease, transform .15s ease; }
.nr-ai-btn i { color: var(--gold); font-size: 15px; } .nr-ai-btn:hover { border-color: rgba(201,168,76,.45); transform: translateY(-1px); }
.nr-field { margin-bottom: 14px; }
.nr-cover { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); background: var(--bg3); }
.nr-cover-empty { display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 26px; }
.nr-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text2); margin-bottom: 8px; cursor: pointer; }
.nr-checklist { padding: 14px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--border); }
.nr-cl-title { font: 600 10.5px Inter, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
.nr-cl { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text3); padding: 3px 0; }
.nr-cl.ok { color: var(--text2); } .nr-cl.ok i { color: #22C55E; } .nr-cl i { width: 14px; }
.nr-timeline { position: relative; padding-left: 8px; }
.nr-ev { display: flex; gap: 12px; padding: 0 0 16px; position: relative; }
.nr-ev::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 0; width: 1px; background: var(--border2); }
.nr-ev:last-child::before { display: none; }
.nr-ev-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-top: 5px; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(201,168,76,.18); }
.nr-ev b { font-size: 13px; color: var(--text); } .nr-ev-meta { font-size: 11.5px; color: var(--text3); margin-top: 2px; }
.nr-ev-c { font-size: 12.5px; color: var(--text2); margin-top: 6px; padding: 8px 10px; background: var(--bg3); border-radius: 8px; white-space: pre-wrap; }

/* ─── mode concentration : la feuille seule ─── */
body.nr-focus .sidebar, body.nr-focus .nr-side, body.nr-focus .nr-banner { display: none !important; }
body.nr-focus .main { margin-left: 0 !important; }
body.nr-focus .nr-grid { grid-template-columns: minmax(0, 1fr); }
body.nr-focus .nr-paper { max-width: 900px; margin: 0 auto; }

/* relief de la couche Depth */
body.be-depth .nr-paper, body.be-depth .nr-side, body.be-depth .nr-row, body.be-depth .nr-step {
  background: linear-gradient(160deg, var(--be-glass-2), var(--be-glass)) padding-box, linear-gradient(160deg, var(--be-edge), transparent 45%, rgba(201,168,76,.1)) border-box !important;
  border: 1px solid transparent !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.be-depth .nr-paper { box-shadow: var(--be-lift-hi) !important; }

@media (max-width: 1440px) { .nr-grid { grid-template-columns: minmax(0, 1fr) 320px; } .nr-paper { padding: 36px 40px 50px; } }
@media (max-width: 1100px) { .nr-grid { grid-template-columns: 1fr; } .nr-side { position: static; max-height: none; } }
@media (max-width: 768px) { .nr-paper { padding: 26px 18px 40px; } .nr-title { font-size: 26px; } .nr-body { font-size: 17px; } }
