/* ── Le Coin Livre — Outil Vendeur ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

.lcl-vendeur-wrap {
  --lcl-gold:    #c09020;
  --lcl-ink:     #18120a;
  --lcl-parch:   #f6f0e4;
  --lcl-cream:   #faf7f1;
  --lcl-muted:   #8a7a62;
  --lcl-border:  #ddd3bc;
  --lcl-sage:    #4e6b50;
  --lcl-rust:    #9b3b28;
  --lcl-shadow:  rgba(24,18,10,0.10);
  font-family: 'Jost', sans-serif;
  color: var(--lcl-ink);
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

/* HERO */
.lcl-hero { margin-bottom: 32px; }
.lcl-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; font-weight: 700;
  line-height: 1.15; color: var(--lcl-ink);
  margin: 0 0 8px !important;
}
.lcl-sub { color: var(--lcl-muted); font-size: 0.95rem; font-weight: 300; line-height: 1.6; max-width: 500px; margin: 0 !important; }

/* TABS */
.lcl-tabs { display: flex; border-bottom: 2px solid var(--lcl-border); margin-bottom: 24px; }
.lcl-tab {
  background: none; border: none; cursor: pointer;
  padding: 12px 24px 10px; font-family: 'Jost', sans-serif;
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--lcl-muted); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.2s;
  display: flex; align-items: center; gap: 7px;
}
.lcl-tab svg { width: 15px; height: 15px; }
.lcl-tab:hover { color: var(--lcl-ink); }
.lcl-tab.active { color: var(--lcl-gold); border-bottom-color: var(--lcl-gold); }

/* PANELS */
.lcl-panel { display: none; }
.lcl-panel.active { display: block; }

/* CARD */
.lcl-card {
  background: #fff; border: 1.5px solid var(--lcl-border);
  border-radius: 8px; padding: 26px 28px;
  box-shadow: 0 4px 24px var(--lcl-shadow); margin-bottom: 24px;
}

/* LABELS & INPUTS */
.lcl-field-label {
  display: block; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lcl-gold); margin-bottom: 8px;
}
.lcl-input-row { display: flex; gap: 10px; }
.lcl-input-row input[type="text"],
.lcl-row-2 input[type="text"],
.lcl-row-3 input[type="text"],
.lcl-field input[type="text"],
.lcl-field textarea,
.lcl-field select {
  width: 100%; border: 1.5px solid var(--lcl-border);
  border-radius: 5px; padding: 11px 15px;
  font-family: 'Jost', sans-serif; font-size: 0.9rem;
  color: var(--lcl-ink); background: var(--lcl-cream);
  outline: none; transition: border-color 0.2s;
  box-sizing: border-box;
}
.lcl-input-row input[type="text"]:focus,
.lcl-field input:focus, .lcl-field textarea:focus, .lcl-field select:focus,
.lcl-row-2 input:focus { border-color: var(--lcl-gold); background: #fff; }
.lcl-field textarea { resize: vertical; }
.lcl-field { display: flex; flex-direction: column; gap: 4px; }
.lcl-field label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lcl-muted); font-weight: 500; }
.lcl-field-full { margin-bottom: 14px; }

/* ROWS */
.lcl-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lcl-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* BUTTONS */
.lcl-btn {
  border: none; border-radius: 5px; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.86rem;
  font-weight: 500; letter-spacing: 0.04em;
  padding: 11px 20px; transition: all 0.18s;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.lcl-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.lcl-btn:active { transform: scale(0.97); }
.lcl-btn-dark  { background: var(--lcl-ink); color: #f6f0e4; }
.lcl-btn-dark:hover { background: #2e2213; color: #f6f0e4; }
.lcl-btn-gold  { background: var(--lcl-gold); color: #fff; }
.lcl-btn-gold:hover { background: #d4aa3a; color: #fff; }
.lcl-btn-woo   { background: #7f54b3; color: #fff; }
.lcl-btn-woo:hover { background: #6a429a; color: #fff; }
.lcl-btn-ghost { background: transparent; color: var(--lcl-ink); border: 1.5px solid var(--lcl-border); }
.lcl-btn-ghost:hover { border-color: var(--lcl-ink); background: var(--lcl-parch); }

/* CHIPS */
.lcl-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; align-items: center; }
.lcl-chip-label { font-size: 0.72rem; color: var(--lcl-muted); }
.lcl-chip {
  background: var(--lcl-parch); border: 1px solid var(--lcl-border);
  border-radius: 20px; padding: 3px 11px;
  font-size: 0.75rem; color: #7a6a52; cursor: pointer; transition: all 0.15s;
}
.lcl-chip:hover { background: var(--lcl-gold); color: #fff; border-color: var(--lcl-gold); }

/* DROP ZONE */
.lcl-drop-zone {
  border: 2px dashed var(--lcl-border); border-radius: 8px;
  padding: 44px 20px; text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--lcl-cream); position: relative;
}
.lcl-drop-zone:hover { border-color: var(--lcl-gold); background: #fdf9f2; }
.lcl-drop-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.lcl-drop-icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--lcl-border); display: block; }
.lcl-drop-zone h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; margin: 0 0 5px; }
.lcl-drop-zone p { font-size: 0.82rem; color: var(--lcl-muted); margin: 0; }
.lcl-browse { color: var(--lcl-gold); text-decoration: underline; }

/* PHOTO PREVIEW */
.lcl-photo-preview {
  display: none; margin-top: 18px;
  gap: 16px; align-items: center;
}
.lcl-photo-preview.visible { display: flex; }
.lcl-photo-preview img { width: 80px; border-radius: 4px; box-shadow: 3px 5px 14px var(--lcl-shadow); flex-shrink: 0; }
.lcl-ocr-status { font-size: 0.83rem; color: var(--lcl-sage); }

.lcl-manual-hint {
  display: none; margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--lcl-border);
}
.lcl-manual-hint.visible { display: block; }
.lcl-manual-hint p { font-size: 0.83rem; color: var(--lcl-muted); margin: 0 0 12px; }

/* LOADER */
.lcl-loader { display: none; text-align: center; padding: 40px; }
.lcl-loader.visible { display: block; }
.lcl-spinner {
  width: 32px; height: 32px; border: 3px solid var(--lcl-border);
  border-top-color: var(--lcl-gold); border-radius: 50%;
  animation: lcl-spin 0.75s linear infinite; margin: 0 auto 11px;
}
@keyframes lcl-spin { to { transform: rotate(360deg); } }
.lcl-loader p { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--lcl-muted); font-size: 1rem; margin: 0; }

/* ERROR */
.lcl-error {
  display: none; background: #fdf1ee; border: 1.5px solid #e8c0b6;
  border-radius: 6px; padding: 13px 18px; color: var(--lcl-rust);
  font-size: 0.87rem; margin-bottom: 18px; align-items: center; gap: 9px;
}
.lcl-error.visible { display: flex; }
.lcl-error svg { width: 16px; height: 16px; flex-shrink: 0; }

/* RESULTS LIST */
.lcl-results-list { display: none; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.lcl-results-list.visible { display: flex; }
.lcl-results-title { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--lcl-muted); margin: 0 0 6px; }
.lcl-result-row {
  background: #fff; border: 1.5px solid var(--lcl-border); border-radius: 6px;
  padding: 14px 18px; display: flex; gap: 14px; align-items: center;
  cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.lcl-result-row:hover { border-color: var(--lcl-gold); box-shadow: 0 3px 14px var(--lcl-shadow); }
.lcl-result-row img { width: 44px; height: 60px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.lcl-rr-nocover { width: 44px; height: 60px; background: var(--lcl-parch); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 0.58rem; color: var(--lcl-muted); text-align: center; flex-shrink: 0; }
.lcl-rr-info { flex: 1; }
.lcl-rr-title { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 600; }
.lcl-rr-author { font-size: 0.8rem; color: var(--lcl-gold); margin: 2px 0 3px; }
.lcl-rr-meta { font-size: 0.74rem; color: var(--lcl-muted); }
.lcl-rr-src { font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--lcl-parch); border: 1px solid var(--lcl-border); padding: 2px 7px; border-radius: 2px; color: var(--lcl-muted); flex-shrink: 0; }

/* BOOK CARD */
.lcl-book-card { display: none; margin-bottom: 24px; animation: lcl-rise 0.35s ease; }
.lcl-book-card.visible { display: block; }
@keyframes lcl-rise { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.lcl-bc-header {
  background: var(--lcl-ink); border-radius: 8px 8px 0 0;
  padding: 11px 20px; display: flex; align-items: center; gap: 9px;
}
.lcl-bc-header span { font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: #d4aa3a; }
.lcl-source-tag { margin-left: auto; background: rgba(255,255,255,0.1); color: #c8b99a; padding: 2px 9px; border-radius: 2px; font-size: 0.66rem; }
.lcl-bc-body {
  background: #fff; border: 1.5px solid var(--lcl-border); border-top: none;
  border-radius: 0 0 8px 8px; display: grid; grid-template-columns: 160px 1fr;
  box-shadow: 0 5px 28px var(--lcl-shadow);
}
.lcl-bc-cover {
  background: var(--lcl-parch); padding: 22px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  border-right: 1.5px solid var(--lcl-border); border-radius: 0 0 0 8px;
}
.lcl-bc-cover img { width: 108px; height: 152px; object-fit: cover; border-radius: 3px; box-shadow: 4px 5px 18px rgba(24,18,10,0.22); }
.lcl-no-cover { width: 108px; height: 152px; background: var(--lcl-border); border-radius: 3px; display: none; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 0.75rem; color: var(--lcl-muted); text-align: center; padding: 12px; }
.lcl-no-cover.visible { display: flex; }
.lcl-bc-info { padding: 22px 26px; }
.lcl-bc-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.lcl-bc-author { font-size: 0.9rem; color: var(--lcl-gold); font-weight: 500; margin-bottom: 16px; }
.lcl-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px 16px; margin-bottom: 16px; }
.lcl-meta label { display: block; font-size: 0.63rem; letter-spacing: 0.11em; text-transform: uppercase; color: #9a8a72; margin-bottom: 1px; }
.lcl-meta span { font-size: 0.85rem; }
.lcl-desc-block { background: var(--lcl-cream); border-left: 3px solid var(--lcl-gold); border-radius: 0 4px 4px 0; padding: 12px 14px; margin-bottom: 20px; }
.lcl-desc-block p { font-family: 'Cormorant Garamond', serif; font-size: 0.9rem; color: #5a4e3a; line-height: 1.6; margin: 0; }
.lcl-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ANNONCE */
.lcl-annonce { display: none; background: #fff; border: 1.5px solid var(--lcl-border); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 22px var(--lcl-shadow); animation: lcl-rise 0.3s ease; }
.lcl-annonce.visible { display: block; }
.lcl-annonce-header { background: var(--lcl-parch); padding: 11px 20px; border-bottom: 1.5px solid var(--lcl-border); display: flex; align-items: center; gap: 8px; }
.lcl-annonce-header span { font-size: 0.67rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--lcl-muted); }
.lcl-dot { width: 8px; height: 8px; background: var(--lcl-sage); border-radius: 50%; }
.lcl-annonce-body { padding: 20px 24px; }
.lcl-annonce-body .lcl-row-2,
.lcl-annonce-body .lcl-row-3 { margin-bottom: 13px; }
.lcl-price-box { background: linear-gradient(135deg,#fffbf0,#fff8e8); border: 1.5px solid var(--lcl-gold); border-radius: 6px; padding: 14px 18px; margin-bottom: 14px; }
.lcl-price-box h4 { font-size: 0.66rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--lcl-gold); margin: 0 0 10px; font-weight: 600; }
.lcl-progress { display: none; margin: 14px 0 6px; }
.lcl-progress.visible { display: block; }
.lcl-progress-bar { height: 4px; background: var(--lcl-border); border-radius: 2px; margin-bottom: 5px; overflow: hidden; }
.lcl-progress-fill { height: 100%; background: var(--lcl-gold); border-radius: 2px; width: 0; transition: width 0.4s ease; }
.lcl-progress span { font-size: 0.75rem; color: var(--lcl-muted); }
.lcl-annonce-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.lcl-notice { display: none; border-radius: 4px; padding: 9px 14px; font-size: 0.82rem; margin-top: 10px; }
.lcl-notice.visible { display: block; }
.lcl-notice.ok { background: #edf7ed; border: 1px solid #a8d5a8; color: var(--lcl-sage); }
.lcl-notice.err { background: #fdf1ee; border: 1px solid #e8c0b6; color: var(--lcl-rust); }

/* RESPONSIVE */
@media (max-width: 600px) {
  .lcl-bc-body { grid-template-columns: 1fr; }
  .lcl-bc-cover { border-right: none; border-bottom: 1.5px solid var(--lcl-border); flex-direction: row; padding: 16px; border-radius: 0; }
  .lcl-row-2, .lcl-row-3, .lcl-meta-grid { grid-template-columns: 1fr; }
  .lcl-title { font-size: 1.6rem; }
  .lcl-input-row { flex-direction: column; }
}
