/* OLIVANCE Paris — olive, or, ivoire ; titres en Cormorant Garamond (comme le site) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&display=swap');
:root {
  --brand: #4a5e3a; --brand-d: #3c4d2f; --brand-dd: #23291d; --brand-l: #eef1e8;
  --promo: #b8955a; --promo-l: #f7f0e3;
  --ink: #1c1c1c; --ink-2: #4a4740; --muted: #7a7568; --line: #e6e1d8; --line-2: #f1ede6;
  --bg: #f7f4ee; --card: #fff; --ok: #3f6b3a; --err: #a33a2f; --warn: #a1681f;
  --r: 10px; --r-s: 7px; --shadow: 0 1px 2px rgba(35, 41, 29, .04), 0 8px 24px -12px rgba(35, 41, 29, .16);
  --side: 240px;
  --logo-w: 132px;
  --faint: #b3ad9f;
  --th-bg: #fbf9f5;
  --row-hover: #faf7f1;
  --noimg: #cfc8b9;
  --dash: #dcd5c7;
  --soft: #f1ede6;
  --draft-ink: #6b675d;
  --toast-ok: #d9c495;
  --login-glow: #efe6d2;
  --shade-rgb: 35, 41, 29;
  --picked: #f3f1ea;
  --meta-dot: #cfc8b9;
  --ed-hover: #f5f3ec;
  --ed-hover-line: #e0dacb;
  --brand-line: #ccd3c0;
  --var-bg: #fcfbf8;
  --choice-hover: #f6f4ee;
  --on-dark: #d9c495;
  --promo-rgb: 184, 149, 90;
  --new-row: #fdf9f0;
  --cancel-ink: #7a7568;
  --slip-bg: #f1ede6;
  --slip-logo-w: 120px;
}
.page-head h1, .login-card h1, .olv-h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; letter-spacing: .01em; font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }
.page-head h1 { font-size: 34px; line-height: 1.1; }
.brand span { letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }

/* ---------- Olivance pages (modules/): tableau de bord, devis, retours, messages ---------- */
.olv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.olv-kpi { position: relative; display: grid; gap: 2px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none !important; color: var(--ink); transition: border-color .15s, transform .15s; }
.olv-kpi:hover { border-color: var(--brand-line); transform: translateY(-1px); }
.olv-kpi.hot { border-color: var(--promo); }
.olv-kpi.hot::after { content: ""; position: absolute; top: 18px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--promo); box-shadow: 0 0 0 4px var(--promo-l); }
.olv-kpi-ic .ic { width: 22px; height: 22px; color: var(--promo); }
.olv-kpi-n { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 44px; line-height: 1; margin-top: 8px; font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }
.olv-kpi-l { font-weight: 600; }
.olv-feed { padding: 8px 0 6px; }
.olv-feed h2 { font-size: 15px; font-weight: 600; margin: 12px 22px 6px; }
.olv-feed-row { display: flex; align-items: center; gap: 14px; padding: 12px 22px; border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none !important; }
.olv-feed-row:hover { background: var(--row-hover); }
.olv-feed-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--brand); }
.olv-feed-ic .ic { width: 17px; height: 17px; }
.olv-feed-txt { flex: 1 1 auto; min-width: 0; display: grid; }
.olv-feed-row .new-tag, .olv-feed-row .pill { white-space: nowrap; flex: none; }
.olv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.olv-pair p { margin: 0 0 4px; }
.olv-msg { background: var(--soft); border-radius: var(--r-s); padding: 14px 16px; line-height: 1.65; white-space: normal; }
.olv-files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.olv-files a { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none !important; color: var(--ink); background: #fff; }
.olv-files a:hover { border-color: var(--brand-line); }
.olv-files img, .olv-ficon { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: var(--soft); }
.olv-ficon { display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--brand); }
.olv-ficon .ic { width: 30px; height: 30px; } .olv-ficon b { font-size: 11px; letter-spacing: .08em; }
.olv-fname { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.olv-reply label, .olv-form label { margin-bottom: 14px; }
.olv-attach input[type=file] { display: block; margin: 6px 0 4px; font-size: 13px; }
.olv-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500; }
.olv-steps { display: grid; gap: 6px; margin-bottom: 16px; }
.olv-step { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-s); cursor: pointer; font-weight: 500; }
.olv-step input { position: absolute; opacity: 0; pointer-events: none; }
.olv-step .dot { width: 9px; height: 9px; border-radius: 50%; }
.olv-step.on, .olv-step:has(input:checked) { border-color: var(--brand); background: var(--brand-l); }
.olv-sent { border-top: 1px solid var(--line-2); padding: 10px 0; }
.olv-sent summary { cursor: pointer; display: grid; gap: 2px; list-style: none; }
.olv-sent summary::-webkit-details-marker { display: none; }
.olv-sent .olv-msg { margin-top: 10px; }
.olv-kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; }
.olv-kv dt { color: var(--muted); } .olv-kv dd { margin: 0; }
.olv-line { display: flex; align-items: center; gap: 10px; } .olv-line img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.olv-ok { color: var(--ok); font-weight: 600; } .olv-warn { color: var(--err); font-weight: 600; }
.olv-note { margin: 0; }
.olv-table table { border-collapse: collapse; } .olv-table th { text-align: left; padding: 6px 14px 6px 0; color: var(--muted); font-weight: 500; vertical-align: top; } .olv-table td { padding: 6px 0; }
.order-main .card h2 .ic, .order-side .card h2 .ic { width: 17px; height: 17px; color: var(--promo); }
@media (max-width: 900px) { .olv-kpis { grid-template-columns: 1fr; gap: 10px; }
  .olv-kpi { grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 16px; }
  .olv-kpi-ic { grid-row: 1 / 3; } .olv-kpi-n { grid-row: 1 / 3; grid-column: 3; margin: 0; font-size: 36px; } .olv-kpi.hot::after { top: 10px; right: auto; left: 10px; width: 8px; height: 8px; }
  .olv-pair { grid-template-columns: 1fr; } .olv-kv { grid-template-columns: 1fr; gap: 2px; } .olv-kv dd { margin-bottom: 10px; } }

/* return actions */
.olv-next { border-color: var(--brand-line); }
.olv-next h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 500; margin: 0 0 4px; }
.olv-alt-head { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.olv-alt { border: 1px solid var(--line); border-radius: var(--r-s); margin: 0 0 8px; background: #fff; }
.olv-alt summary { cursor: pointer; padding: 10px 12px; font-weight: 500; list-style: none; }
.olv-alt summary::-webkit-details-marker { display: none; }
.olv-alt summary::after { content: "+"; float: right; color: var(--muted); }
.olv-alt[open] summary::after { content: "–"; }
.olv-alt-body { padding: 0 12px 12px; }
.olv-alt.warn { border-left: 3px solid var(--warn); } .olv-alt.danger { border-left: 3px solid var(--err); } .olv-alt.muted { margin-top: 16px; }
.olv-choice { border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px; margin: 0 0 10px; }
.olv-choice.on { border-color: var(--brand); background: var(--brand-l); }
.olv-choice-title { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin: 0 0 10px; }
.olv-tag { font-size: 11px; font-weight: 600; background: var(--brand); color: #fff; border-radius: 999px; padding: 2px 9px; }
.olv-warnbox { background: var(--promo-l); border: 1px solid var(--promo); border-radius: var(--r-s); padding: 12px; margin: 0 0 14px; }
.olv-warnbox b { display: block; margin-bottom: 8px; }
