@import url("/static/css/bk-tokens.css");
@import url("/static/css/furniture-frame.css");

/**
 * BroKanteur — plateforme SaaS (DA alignée tunnel formulaire)
 * Palette connectée alignée sur les tokens publics BroKanteur.
 */
@import url("/static/css/bk-tokens.css");
@import url("/static/css/shell-unified.css?v=account-logout-20261009");
@import url("/static/css/brokanteur-premium.css?v=premium-sidebar-20260621");
:root {
  --bk-bg2: var(--bk-bg-alt);
  --bk-bg3: var(--bk-border-hair);
  --bk-card: var(--bk-surface);
  --bk-green-soft: var(--bk-green-pale);
  --bk-warn: var(--bk-warning);
  --bk-err: var(--bk-danger);
  --bk-sidebar: 220px;
  --bk-top: 64px;
  --bk-radius: 14px;
  --bk-shadow: 0 14px 40px rgba(26, 26, 26, 0.07);
  --bk-shadow-dark: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body.bk-platform {
  margin: 0;
  color: var(--bk-ink);
  min-height: 100vh;
  background-color: var(--bk-bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(92, 138, 106, 0.09), transparent 55%),
    radial-gradient(ellipse 90% 60% at 0% 100%, rgba(184, 151, 90, 0.06), transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

.bk-layout {
  display: grid;
  grid-template-columns: var(--bk-sidebar) 1fr;
  min-height: 100vh;
  position: relative;
}

/* Filigrane brocante dans la zone contenu */
.bk-main::before {
  content: "Brocante";
  position: fixed;
  right: -2vw;
  top: 18vh;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(72px, 14vw, 200px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(92, 138, 106, 0.07);
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.04em;
  line-height: 0.9;
  transform: rotate(-6deg);
  user-select: none;
}

/* ── Sidebar sombre (comme header formulaire) ── */
.bk-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  height: auto;
  z-index: 20;
  background: linear-gradient(180deg, #0f1d17 0%, #13231b 100%);
  border-right: 1px solid rgba(229, 216, 199, 0.08);
  padding: 16px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: visible;
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.12);
}

.bk-sidebar > .bk-shell-profile {
  width: 100%;
  align-self: stretch;
  justify-items: center;
  padding-inline: 14px;
}

.bk-sidebar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--bk-green) 0%, transparent 70%, var(--bk-gold) 100%);
  opacity: 0.85;
  pointer-events: none;
}

.bk-sidebar__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  padding: 8px 10px 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.08);
  position: relative;
  z-index: 1;
}

.bk-sidebar__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(250, 250, 247, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 8px 24px rgba(0, 0, 0, 0.2);
}

.bk-sidebar__logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.bk-sidebar__slogan {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(234, 242, 237, 0.55);
  font-weight: 700;
  line-height: 1.3;
}

/* Ces règles visent la navigation de la sidebar connectée (<ul class="bk-nav">),
   pas le <header class="bk-nav"> public : elles restent donc scopées à
   .bk-sidebar pour ne pas déformer le header partagé du site. */
.bk-sidebar .bk-nav { list-style: none; margin: 0; padding: 4px 0; flex: 1; position: relative; z-index: 1; }

.bk-sidebar .bk-nav__icon {
  width: 18px;
  text-align: center;
  opacity: 0.85;
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1;
}

.bk-sidebar .bk-nav a.is-active .bk-nav__icon,
.bk-sidebar .bk-nav a:hover .bk-nav__icon {
  opacity: 1;
}

.bk-sidebar .bk-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(245, 241, 232, 0.62);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s, transform 0.12s;
  border: 1px solid transparent;
}

.bk-sidebar .bk-nav a:hover {
  background: rgba(245, 241, 232, 0.06);
  color: #fafaf7;
  border-color: rgba(92, 138, 106, 0.2);
}

.bk-sidebar .bk-nav a.is-active {
  background: rgba(92, 138, 106, 0.22);
  color: #eaf2ed;
  font-weight: 700;
  border-color: rgba(92, 138, 106, 0.35);
  box-shadow: inset 3px 0 0 var(--bk-green);
}

.bk-nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c45c3e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.bk-sidebar .bk-nav .bk-nav-cta {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--bk-green) 0%, var(--bk-green-deep) 100%);
  color: #fafaf7 !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(61, 107, 79, 0.35);
}

.bk-sidebar .bk-nav .bk-nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.bk-sidebar__foot {
  margin-top: auto;
  padding: 12px 10px 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.28);
  border-top: 1px solid rgba(245, 241, 232, 0.06);
  position: relative;
  z-index: 1;
}

/* ── Zone principale ── */
.bk-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.bk-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--bk-top);
  padding: 10px 24px;
  background: rgba(245, 241, 232, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bk-line);
  color: var(--bk-ink);
}

.bk-topbar__titles h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.bk-topbar__titles p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--bk-muted);
  letter-spacing: 0;
}

.bk-topbar__accent {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bk-green);
  box-shadow: 0 0 12px rgba(92, 138, 106, 0.8);
  animation: bk-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.bk-shell-topbar { display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:18px; }
.bk-shell-topbar__start { display:flex;align-items:center;gap:12px;min-width:0; }
.bk-shell-topbar__center { font:700 22px/1 "Playfair Display",Georgia,serif;white-space:nowrap; }
.bk-shell-topbar__center span { color:var(--bk-gold,#a87836); }
.bk-shell-topbar__end { display:flex;align-items:center;justify-content:flex-end;min-width:0; }
.bk-topbar-account { display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:5px 12px 5px 6px;border:1px solid var(--bk-line);border-radius:999px;background:rgba(255,255,255,.62);color:var(--bk-green,#123c2b);font-size:13px;font-weight:700;text-decoration:none;transition:background .18s,border-color .18s; }
.bk-topbar-account:hover { background:#fff;border-color:#b8c8be; }
.bk-topbar-account__avatar { width:31px;height:31px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(135deg,#6d8260,#315843);color:#fff;font-size:11px;font-weight:700;flex:none; }
.bk-topbar-account__avatar img { width:100%;height:100%;object-fit:cover;display:block; }
.bk-topbar-account--login { padding:9px 16px;background:var(--bk-green,#123c2b);color:#fff; }
.bk-shell-topbar__menu { border:0;background:transparent;color:var(--bk-green,#123c2b);font-size:22px;cursor:pointer; }

@keyframes bk-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.bk-content {
  padding: 26px 28px 40px;
  max-width: 1280px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Labels section (comme formulaire) */
.bk-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bk-green);
  margin: 0 0 12px;
}

.bk-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bk-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bk-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

@media (max-width: 1100px) {
  .bk-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bk-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .bk-layout { grid-template-columns: 1fr; }
  .bk-sidebar {
    position: relative;
    height: auto;
    min-height: unset;
    border-right: none;
    border-bottom: 1px solid rgba(92, 138, 106, 0.2);
  }
  .bk-sidebar::after { width: 100%; height: 3px; top: auto; bottom: 0; left: 0; right: 0; }
  .bk-sidebar .bk-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .bk-sidebar .bk-nav .bk-nav-cta { margin-top: 0; }
  .bk-sidebar__foot { display: none; }
  .bk-grid-2, .bk-grid-3, .bk-grid-4 { grid-template-columns: 1fr; }
  .bk-main::before { display: none; }
  .bk-shell-topbar { grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:9px 14px; }
  .bk-shell-topbar__center { display:none; }
  .bk-topbar-account { min-height:38px; }
  .bk-topbar-account__avatar { width:28px;height:28px; }
}

@media (max-width: 520px) {
  .bk-topbar__titles p { display:none; }
  .bk-topbar__titles h1 { font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
  .bk-topbar-account { padding:4px 5px;border:0;background:transparent; }
  .bk-topbar-account span:last-child { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
  .bk-topbar-account--login { position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;padding:8px 12px;background:var(--bk-green,#123c2b);color:#fff;white-space:nowrap; }
}

/* ── Cartes & stats ── */
.bk-card {
  background: var(--bk-card);
  border: 1px solid var(--bk-line);
  border-radius: var(--bk-radius);
  padding: 20px;
  box-shadow: var(--bk-shadow);
  position: relative;
  overflow: hidden;
}

.bk-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bk-green), transparent 70%);
  opacity: 0.5;
}

.bk-card h2, .bk-card h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.bk-card p { margin: 0; color: var(--bk-muted); font-size: 14px; line-height: 1.55; }

.bk-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bk-stat__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bk-green);
  font-weight: 700;
}

.bk-stat__value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--bk-ink);
}

.bk-stat--dark {
  background: linear-gradient(145deg, #1a1a1a, #2a322c);
  border-color: rgba(92, 138, 106, 0.3);
  color: #fafaf7;
}

.bk-stat--dark .bk-stat__label { color: rgba(234, 242, 237, 0.55); }
.bk-stat--dark .bk-stat__value { color: #fafaf7; }
.bk-stat--dark .bk-stat__value span { color: var(--bk-green); }

.bk-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--bk-line);
  background: #fff;
}

.bk-badge--ok { color: var(--bk-green-deep); border-color: #bfe1ca; background: var(--bk-green-soft); }
.bk-badge--wait { color: var(--bk-warn); border-color: #ead2a5; background: #fff8eb; }
.bk-badge--err { color: var(--bk-err); border-color: #e5b8b1; background: #fef5f3; }
.bk-badge--muted { color: var(--bk-muted); background: var(--bk-bg2); }

.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--bk-line);
  background: #fff;
  color: var(--bk-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
  font-family: inherit;
}

.bk-btn:hover {
  border-color: var(--bk-green);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(92, 138, 106, 0.12);
}

.bk-btn--primary {
  background: var(--bk-ink);
  color: #fafaf7;
  border-color: var(--bk-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 14px;
  border-radius: var(--bk-radius);
}

.bk-btn--green {
  background: linear-gradient(135deg, var(--bk-green), var(--bk-green-deep));
  color: #fff;
  border-color: var(--bk-green-deep);
}

.bk-btn--ghost { background: transparent; }
.bk-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.bk-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bk-line);
  border-radius: var(--bk-radius);
  background: #fff;
  box-shadow: var(--bk-shadow);
}

.bk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bk-table th, .bk-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--bk-line);
}
.bk-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bk-green-deep);
  background: var(--bk-green-soft);
  font-weight: 700;
}
.bk-table tr:last-child td { border-bottom: none; }
.bk-table tr:hover td { background: rgba(234, 242, 237, 0.35); }

.bk-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.bk-product-card {
  background: var(--bk-card);
  border: 1px solid var(--bk-line);
  border-radius: var(--bk-radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--bk-shadow);
}

.bk-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 138, 106, 0.45);
  box-shadow: 0 20px 44px rgba(43, 33, 24, 0.12);
}

.bk-product-card img {
  /* legacy — ShowcaseFurnitureImage .furniture-frame remplace img direct */
  width: 100%;
  height: 190px;
  object-fit: contain;
  object-position: center center;
  background: var(--furniture-frame-bg, var(--bk-bg2));
  display: block;
}

.bk-product-card .furniture-frame {
  border-radius: var(--bk-radius) var(--bk-radius) 0 0;
}

.bk-product-card .bk-product-card__body { padding: 16px; }

.bk-alert {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--bk-line);
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.bk-alert--info {
  border-color: #c5ddd0;
  background: linear-gradient(135deg, var(--bk-green-soft), #fff);
}

.bk-alert--warn { border-color: #ead2a5; background: #fff8eb; }

.bk-alert--success {
  border-color: #bfe1ca;
  background: var(--bk-green-soft);
  color: var(--bk-green-deep);
}

.bk-alert--error {
  border-color: #e5b8b1;
  background: #fef5f3;
  color: var(--bk-err);
}

.bk-empty {
  text-align: center;
  padding: 52px 28px;
  color: var(--bk-muted);
  border: 1.5px dashed rgba(92, 138, 106, 0.35);
  border-radius: var(--bk-radius);
  background: rgba(255, 250, 242, 0.85);
  font-size: 14px;
}

.bk-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 128px;
  padding-top: 8px;
}

.bk-bar-chart span {
  flex: 1;
  background: linear-gradient(180deg, var(--bk-green) 0%, var(--bk-green-deep) 100%);
  border-radius: 8px 8px 3px 3px;
  min-height: 8px;
  transition: height 0.3s ease;
}

.bk-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  align-items: flex-end;
}

.bk-showcase-hero-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.bk-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  align-items: start;
}

.bk-showcase-cell {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bk-showcase-cell__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bk-muted);
}

.bk-showcase-cell--empty .bk-showcase-cell__ph {
  aspect-ratio: 4 / 5;
  border-radius: var(--bk-radius);
  border: 1px dashed var(--bk-line);
  background: var(--bk-surface, #faf8f4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--bk-muted);
}

.bk-showcase-cell .furniture-frame--showcase-studio {
  box-shadow: var(--bk-shadow);
  border-radius: var(--bk-radius);
}

.bk-showcase-hero-wrap > .showcase-swap {
  border-radius: var(--bk-radius);
  overflow: hidden;
  box-shadow: var(--bk-shadow);
}

.bk-gallery--thumbs {
  max-height: none;
  flex-wrap: nowrap;
}

.bk-gallery--thumbs .furniture-frame--gallery {
  flex: 0 0 auto;
  width: min(140px, 28vw);
  scroll-snap-align: start;
}

.bk-gallery .furniture-frame--gallery {
  scroll-snap-align: center;
  box-shadow: var(--bk-shadow);
}

.bk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Submissions (cartes monitoring) */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.sub-card {
  background: var(--bk-card);
  border: 1px solid var(--bk-line);
  border-radius: var(--bk-radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--bk-shadow);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.sub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 138, 106, 0.5);
  box-shadow: 0 18px 40px rgba(43, 33, 24, 0.1);
}

.sub-card .thumb {
  height: 175px;
  background: var(--furniture-frame-bg, var(--bk-bg2));
  overflow: hidden;
  position: relative;
}

.sub-card .thumb .furniture-frame {
  height: 100%;
}

.sub-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26, 26, 26, 0.12), transparent 45%);
  pointer-events: none;
}

.sub-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.sub-card .body { padding: 16px; }
.sub-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sub-box {
  background: #fff;
  border: 1px solid var(--bk-line);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 12px;
}
.sub-box .lbl {
  display: block;
  color: var(--bk-green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 2px;
}
.sub-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.sub-pill {
  font-size: 13px;
  color: var(--bk-muted);
  padding: 9px 14px;
  border: 1px solid var(--bk-line);
  border-radius: 999px;
  background: var(--bk-card);
  box-shadow: var(--bk-shadow);
}

/* ── Fiche produit — desktop large / mobile empilé ── */
.bk-fiche {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.bk-fiche__toolbar {
  background: var(--bk-card);
  border: 1px solid var(--bk-line);
  border-radius: var(--bk-radius);
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: var(--bk-shadow);
  position: relative;
  overflow: hidden;
}

.bk-fiche__toolbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bk-green), transparent 70%);
  opacity: 0.5;
}

.bk-fiche__ref {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--bk-ink, #1a1a1a);
}

.bk-fiche__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.bk-fiche__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.bk-fiche__gallery,
.bk-fiche__info {
  background: var(--bk-card);
  border: 1px solid var(--bk-line);
  border-radius: var(--bk-radius);
  padding: 20px 22px 24px;
  box-shadow: var(--bk-shadow);
  position: relative;
  overflow: hidden;
}

.bk-fiche__gallery::before,
.bk-fiche__info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bk-green), transparent 70%);
  opacity: 0.45;
}

.bk-fiche__info h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--bk-ink, #1a1a1a);
}

.bk-fiche__desc {
  margin: 0;
  color: var(--bk-muted);
  font-size: 15px;
  line-height: 1.6;
}

.bk-fiche__prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.bk-fiche__price-box {
  border: 1px solid var(--bk-line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #f7f3eb;
}

.bk-fiche__price-box .bk-stat__label {
  display: block;
  margin-bottom: 4px;
}

.bk-fiche__price-box .bk-stat__value {
  font-size: 22px;
  font-weight: 700;
}

.bk-fiche__field {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bk-muted);
}

.bk-fiche__field strong {
  display: block;
  color: var(--bk-ink, #1a1a1a);
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bk-fiche .bk-showcase-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bk-fiche .bk-showcase-cell .furniture-frame--showcase-studio,
.bk-fiche .bk-showcase-cell img {
  width: 100%;
  min-height: 220px;
  object-fit: contain;
  background: #f0ebe3;
}

.bk-fiche .bk-showcase-cell__label {
  font-size: 12px;
}

.bk-fiche__orig-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.bk-fiche__orig-grid img {
  height: 140px;
  width: auto;
  max-width: 48%;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
}

@media (min-width: 1100px) {
  body[data-bk-page="fiche"] .bk-content {
    max-width: 1320px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .bk-fiche .bk-showcase-cell .furniture-frame--showcase-studio,
  .bk-fiche .bk-showcase-cell img {
    min-height: 260px;
  }
}

@media (max-width: 960px) {
  .bk-fiche__layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bk-fiche__gallery,
  .bk-fiche__info,
  .bk-fiche__toolbar {
    padding: 16px;
  }

  /* Téléphone : 1ʳᵉ photo en grand, les autres en grille 2 colonnes */
  .bk-fiche .bk-showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .bk-fiche .bk-showcase-cell:first-child {
    grid-column: 1 / -1;
  }

  .bk-fiche .bk-showcase-cell:first-child .furniture-frame--showcase-studio,
  .bk-fiche .bk-showcase-cell:first-child img {
    min-height: 280px;
  }

  .bk-fiche .bk-showcase-cell:not(:first-child) .furniture-frame--showcase-studio,
  .bk-fiche .bk-showcase-cell:not(:first-child) img {
    min-height: 140px;
  }

  .bk-fiche__prices {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .bk-fiche__price-box .bk-stat__value {
    font-size: 18px;
  }

  .bk-fiche__orig-grid img {
    height: 100px;
    max-width: 47%;
  }

  .bk-fiche .bk-actions {
    gap: 8px;
  }

  .bk-fiche .bk-actions .bk-btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .bk-fiche__prices {
    grid-template-columns: 1fr;
  }

  .bk-fiche .bk-actions .bk-btn {
    flex: 1 1 100%;
  }
}
