/* ==========================================================================
   Page « Détail d'une annonce » — classes préfixées .ld-
   ========================================================================== */

.ld { padding-top: 16px; }
.ld-top { display: flex; flex-direction: column; }
.ld-r-crumb { order: 0; }
.ld-r-head { order: 1; margin-bottom: 20px; }
.ld-r-gallery { order: 2; }

/* ---------- Fil d'Ariane ---------- */
.ld-r-crumb .breadcrumb { flex-wrap: nowrap; min-width: 0; margin-bottom: 14px; }
.ld-r-crumb .breadcrumb a { white-space: nowrap; flex-shrink: 0; }
.ld-r-crumb .breadcrumb > span:not(.breadcrumb-sep) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-r-crumb .breadcrumb-sep { flex-shrink: 0; }

/* ---------- En-tête ---------- */
.ld-title {
  margin: 0 0 12px; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); line-height: 1.2; letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.ld-meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.ld-meta-left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; }
.ld-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0; padding: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.ld-meta li { display: inline-flex; align-items: center; gap: 6px; }
.ld-meta li + li::before { content: '·'; margin: 0 10px; color: var(--faint); font-weight: 700; }
.ld-meta-cat { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.ld-meta-cat:hover { color: var(--brand); text-decoration: none; }
.ld-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }

.ld-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ld-action {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink); transition: background 0.15s;
}
.ld-action span { text-decoration: underline; text-underline-offset: 3px; }
.ld-action:hover { background: var(--surface-2); }
.ld-action .icon { width: 18px; height: 18px; }
.ld-action.is-on .icon { color: var(--brand); }
.ld-action:disabled { opacity: 0.6; }

/* ---------- Galerie ---------- */
.ld-gallery-wrap { position: relative; }
.ld-gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px;
  height: 440px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2);
}
.ld-g-item { position: relative; display: block; padding: 0; margin: 0; border: 0; min-width: 0; min-height: 0; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.ld-g-item img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.2s, transform 0.5s var(--ease); }
.ld-g-item:hover img { filter: brightness(0.93); }
.ld-g-item:focus-visible { box-shadow: inset 0 0 0 3px var(--brand); border-radius: 0; outline: none; }
.ld-g-extra { display: none; }
.ld-g-counter { display: none; }

/* Mises en page selon le nombre de photos (la 1re est toujours la grande) */
.ld-g-item:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.ld-gallery--1 .ld-g-item:first-child { grid-column: 1 / -1; }
.ld-gallery--2 .ld-g-item:nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 3; }
.ld-gallery--3 .ld-g-item:nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 2; }
.ld-gallery--3 .ld-g-item:nth-child(3) { grid-column: 3 / 5; grid-row: 2 / 3; }
.ld-gallery--4 .ld-g-item:nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 2; }
.ld-gallery--4 .ld-g-item:nth-child(3) { grid-column: 3 / 4; grid-row: 2 / 3; }
.ld-gallery--4 .ld-g-item:nth-child(4) { grid-column: 4 / 5; grid-row: 2 / 3; }

.ld-g-all {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-size: var(--fs-sm); font-weight: 600;
  box-shadow: var(--shadow-xs); transition: background 0.15s, transform 0.1s;
}
.ld-g-all:hover { background: var(--surface); }
.ld-g-all:active { transform: scale(0.98); }

/* Sans photo : grande couverture illustrée */
.ld-gallery--cover { display: block; position: relative; height: 360px; }
.ld-gallery--cover .category-cover-icon { width: 120px; height: 120px; border-radius: 34px; }
.ld-g-note {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.9); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 600;
}
.ld img.is-broken { visibility: hidden; }

/* ---------- Corps de page ---------- */
.ld-body { margin-top: 32px; }
.ld-main { min-width: 0; }
/* L'aside occupe toute la hauteur de la ligne : sinon la carte « sticky » n'a aucune course */
.ld-aside { align-self: stretch; min-width: 0; }
.ld-section { padding: 32px 0; border-top: 1px solid var(--line); }
.ld-section.ld-section--first { border-top: 0; padding-top: 0; }
.ld-h2 { margin: 0 0 20px; font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }
.ld-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 6px;
  border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; vertical-align: 2px;
}
.ld-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ld-link:hover { color: var(--brand); text-decoration: underline; }

/* Description */
.ld-desc { position: relative; line-height: 1.7; overflow-wrap: anywhere; }
.ld-desc.is-clamped { max-height: 11.5em; overflow: hidden; }
.ld-desc.is-clamped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4.5em; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%); }
.ld-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ld-more:hover { color: var(--brand); }
.ld-more svg { transition: transform 0.2s; }

/* Détails */
.ld-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; list-style: none; margin: 0; padding: 0; }
.ld-fact { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.ld-fact--wide { grid-column: 1 / -1; }
.ld-fact-ico { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); color: var(--ink-2); flex-shrink: 0; }
.ld-fact-body { min-width: 0; padding-top: 1px; }
.ld-fact-label { display: block; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 2px; }
.ld-fact-value { font-weight: 600; overflow-wrap: anywhere; }
.ld-fact-value .badge { margin-left: 4px; vertical-align: 1px; }
.ld-chips { margin-top: 6px; }
.ld-fact-sub {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.ld-fact-sub:hover { color: var(--brand); }
.ld-fact-value .ld-fact-sub { display: flex; width: fit-content; }

/* Documents */
.ld-nda { margin-bottom: 16px; }
.ld-none { margin: 0; }
.ld-files-note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.ld-locked {
  display: flex; align-items: center; gap: 18px; padding: 22px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface);
}
.ld-locked-ico { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink-2); box-shadow: var(--shadow-xs); flex-shrink: 0; }
.ld-locked-text { flex: 1; min-width: 0; }
.ld-locked-text strong { display: block; margin-bottom: 4px; }
.ld-locked-text p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* Client */
.ld-owner { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); }
.ld-owner-head { display: flex; align-items: center; gap: 18px; }
.ld-owner-avatar { display: block; flex-shrink: 0; }
.ld-owner-avatar .avatar { box-shadow: 0 0 0 3px #fff; }
.ld-owner-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ld-owner-name { font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ld-owner-company { color: var(--ink-2); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.ld-owner-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.ld-owner-bio { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }
.ld-owner-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.ld-owner-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.ld-owner-facts li { display: inline-flex; align-items: center; gap: 6px; }
.ld-owner .btn-outline { min-height: 44px; }
.ld-sk-inline { display: inline-block; width: 120px; height: 14px; }

/* ---------- Questions publiques ---------- */
.ld-q-sub { margin: -10px 0 20px; color: var(--muted); font-size: var(--fs-sm); }
.ld-q-note { margin-bottom: 4px; }
.ld-q-login {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface);
}
.ld-q-login p { margin: 0; flex: 1 1 260px; color: var(--ink-2); font-size: var(--fs-sm); }
.ld-q-form { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ld-q-form .field { margin-bottom: 8px; }
.ld-q-form-foot { display: flex; justify-content: flex-end; }
.ld-q-list { display: flex; flex-direction: column; gap: 26px; margin-top: 28px; }
.ld-q { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.ld-q-avatar { display: block; }
.ld-q-body { min-width: 0; }
.ld-q-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.ld-q-name { font-weight: 600; }
.ld-q-you { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-ink); font-size: var(--fs-xs); font-weight: 600; }
.ld-q-company, .ld-q-time { color: var(--muted); font-size: var(--fs-sm); }
.ld-q-del { margin-left: auto; width: 32px; height: 32px; color: var(--muted); }
.ld-q-del:hover { color: var(--danger); background: var(--danger-soft); }
.ld-q-text { margin: 6px 0 0; overflow-wrap: anywhere; }
.ld-answer { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); }
.ld-answer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; font-size: var(--fs-sm); color: var(--muted); }
.ld-answer-head .icon { color: var(--success); }
.ld-answer-head strong { color: var(--ink); }
.ld-answer p { margin: 0; overflow-wrap: anywhere; }
.ld-reply { margin-top: 12px; }
.ld-answer-form { margin-top: 12px; }
.ld-answer-form .field { margin-bottom: 10px; }
.ld-answer-form textarea { min-height: 96px; }
.ld-answer-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ld-q-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px; margin-top: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; color: var(--muted); }
.ld-q-empty p { margin: 0; font-size: var(--fs-sm); }
.ld-q-more { align-self: flex-start; }

/* ---------- Carte d'action (colonne latérale) ---------- */
.ld-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.ld-card-price { display: flex; flex-direction: column; gap: 2px; }
.ld-card-label { font-size: var(--fs-sm); color: var(--muted); }
.ld-card-price strong { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.02em; }
.ld-card-facts { display: grid; gap: 12px; list-style: none; margin: 20px 0; padding: 16px 0; border-block: 1px solid var(--line); font-size: var(--fs-sm); }
.ld-card-facts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ld-card-facts li > span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ld-card-facts li > strong { font-weight: 600; text-align: right; }
.ld-card-facts .ld-card-count { justify-content: flex-start; gap: 8px; color: var(--ink-2); }
.ld-card-facts .ld-card-count .icon { color: var(--ink-2); }
.ld-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 20px; }
.ld-card-title { margin: 0; font-size: var(--fs-md); font-weight: 700; }
.ld-card-actions { display: grid; gap: 12px; }
.ld-card-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ld-card-pair .btn:only-child { grid-column: 1 / -1; }
.ld-card-actions .btn { min-width: 0; }
.ld-card-loading { display: grid; gap: 12px; }
.ld-reassure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.ld-provider-note { margin-top: 16px; }
.ld-provider-note p { margin: 0; }
.ld-btn-danger { color: var(--danger); }
.ld-btn-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.ld-banner { margin-bottom: 16px; }
.ld-banner p { margin: 2px 0 0; }

.ld-closed { display: flex; gap: 14px; align-items: flex-start; padding: 16px; margin-bottom: 16px; border-radius: var(--radius); background: var(--surface); }
.ld-closed-ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink-2); flex-shrink: 0; box-shadow: var(--shadow-xs); }
.ld-closed strong { display: block; margin-bottom: 2px; }
.ld-closed p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

.ld-myoffer { margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ld-myoffer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ld-myoffer-head h3 { margin: 0; font-size: var(--fs-base); }
.ld-myoffer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.ld-myoffer-grid > div:first-child { grid-column: 1 / -1; }
.ld-myoffer-grid dt { font-size: var(--fs-xs); color: var(--muted); }
.ld-myoffer-grid dd { margin: 0; font-weight: 700; }
.ld-myoffer-grid > div:first-child dd { font-size: 1.25rem; letter-spacing: -0.01em; }
.ld-myoffer-time { margin: 12px 0 0; font-size: var(--fs-xs); color: var(--muted); }

/* Propriétaire */
.ld-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.ld-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-radius: var(--radius); background: var(--surface); text-align: center; }
.ld-stat strong { font-size: var(--fs-lg); line-height: 1.2; letter-spacing: -0.02em; }
.ld-stat span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.ld-chosen { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 16px; border-radius: var(--radius); background: var(--info-soft); color: #1e3a8a; }
.ld-chosen > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ld-chosen span { font-size: var(--fs-xs); opacity: 0.85; }
.ld-chosen strong { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-chosen a:hover { text-decoration: underline; }

/* ---------- Annonces similaires ---------- */
/* ---------- Partage ---------- */
.ld-share-text { margin: -8px 0 16px; color: var(--ink-2); font-size: var(--fs-sm); }

/* Encart propriétaire : annonce ouverte */
.ld-promo {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 32px; padding: 22px 24px;
  background: var(--brand-soft); border: 1px solid #ffd8c2; border-radius: var(--radius-lg);
}
.ld-promo-ico {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: #fff; color: var(--brand); box-shadow: var(--shadow-xs);
}
.ld-promo-body { min-width: 0; display: grid; gap: 12px; }
.ld-promo-title { margin: 0; font-size: var(--fs-md); line-height: 1.3; letter-spacing: -0.01em; color: var(--brand-ink); }
.ld-promo-body p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }
.ld-promo .share-btn { border-color: #f3c7ad; }
.ld-promo .share-btn:hover { border-color: var(--share-brand, var(--ink)); }

/* Bandeau de félicitations (?publiee=1) */
.ld-r-published { order: -1; }
.ld-r-published:empty { display: none; }
.ld-published {
  position: relative; display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; padding: 20px 56px 20px 22px;
  background: var(--success-soft); border: 1px solid #bfe3cd; border-radius: var(--radius-lg); color: #064e2b;
}
.ld-published-ico { flex-shrink: 0; display: flex; color: var(--success); margin-top: 1px; }
.ld-published-body { min-width: 0; display: grid; gap: 8px; }
.ld-published-body strong { font-size: var(--fs-md); }
.ld-published-body p { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: #14532d; }
.ld-published .share { margin-top: 4px; }
.ld-published .share-btn { border-color: #a7d4b8; }
.ld-published .share-btn:hover { border-color: var(--share-brand, var(--ink)); }
.ld-published-close { position: absolute; top: 10px; right: 10px; color: #14532d; }
.ld-published-close:hover { background: rgba(6, 122, 58, 0.12); }

.ld-similar { margin-top: 24px; }
.ld-similar:empty { display: none; }
.ld-similar .listing-card-title { overflow-wrap: anywhere; }
.ld-similar > section { padding-top: 40px; border-top: 1px solid var(--line); }
.ld-similar .ld-h2 { margin-bottom: 24px; }

/* ---------- Barre d'action mobile ---------- */
.ld-mbar { display: none; }

/* ---------- États ---------- */
.ld-state { max-width: 640px; }
.ld-state .empty-state { padding-bottom: 12px; }
.ld-state-actions { display: flex; justify-content: center; margin-top: 4px; }

/* ---------- Squelettes ---------- */
.ld-sk-line { height: 14px; }
.ld-sk-title { height: 34px; width: 70%; margin: 6px 0 12px; }
.ld-sk-gallery { height: 440px; border-radius: var(--radius-lg); }
.ld-sk-card { height: 360px; border-radius: var(--radius-lg); }
.ld-sk-btn { display: block; height: 48px; border-radius: var(--radius-sm); }
.ld-sk-btn--bar { width: 150px; }
.ld-sk-avatar { width: 40px; height: 40px; border-radius: 50%; }

/* ---------- Modales (contenu hors de .ld) ---------- */
.ld-form-intro { display: flex; flex-direction: column; gap: 2px; margin: 0 0 20px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); font-size: var(--fs-sm); color: var(--ink-2); }
.ld-form-intro strong { color: var(--ink); overflow-wrap: anywhere; }
.ld-form .field-hint { margin-top: 2px; }
.ld-form input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.ld-form input[type=number]::-webkit-outer-spin-button, .ld-form input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ld-unit-hint { margin: -8px 0 16px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-ink); font-weight: 500; }
.ld-msg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; }
.ld-msg-row .char-count { margin: 0 0 0 auto; }
.ld-msg-row .btn-link { font-size: var(--fs-sm); }
.ld-form textarea { min-height: 160px; }
.ld-form .field > .ld-dropzone { padding: 20px 16px; font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }
.ld-form .ld-dropzone strong { color: var(--ink); font-size: var(--fs-base); }
.ld-form .ld-dropzone:focus-visible { box-shadow: var(--focus); border-color: var(--ink); }
.ld-of-files { margin-top: 8px; }
.ld-of-files:empty { display: none; }
.ld-progress { margin-bottom: 16px; }
.ld-progress-text { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; }
.ld-form-foot { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.ld-form-foot .icon { margin-top: 2px; }
.ld-form .modal-actions { margin-top: 20px; }
.ld-reasons { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ld-reasons legend { padding: 0; margin-bottom: 8px; }
.ld-reason { padding: 10px 12px; border-radius: var(--radius-sm); font-size: var(--fs-sm); transition: background 0.15s; }
.ld-reason:hover { background: var(--surface); }
.ld-reason:has(input:checked) { background: var(--surface); font-weight: 600; }
.ld-reason input:focus-visible { border-radius: 50%; }

/* ---------- Visionneuse photo ---------- */
.ld-lightbox {
  position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; background: rgba(9, 11, 15, 0.96); color: #fff;
  opacity: 0; transition: opacity 0.18s;
}
.ld-lightbox.is-visible { opacity: 1; }
.ld-lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; flex-shrink: 0; }
.ld-lb-count { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em; }
.ld-lb-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; transition: background 0.15s; }
.ld-lb-btn:hover { background: rgba(255, 255, 255, 0.14); }
.ld-lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 72px; }
.ld-lb-img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.ld-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; transition: background 0.15s;
}
.ld-lb-nav:hover { background: rgba(255, 255, 255, 0.28); }
.ld-lb-prev { left: 16px; }
.ld-lb-next { right: 16px; }
.ld-lb-thumbs { display: flex; gap: 8px; justify-content: safe center; padding: 14px 16px 18px; overflow-x: auto; flex-shrink: 0; scrollbar-width: none; }
.ld-lb-thumbs::-webkit-scrollbar { display: none; }
.ld-lb-thumb { flex: 0 0 auto; width: 68px; height: 52px; padding: 0; border-radius: 8px; overflow: hidden; opacity: 0.55; border: 2px solid transparent; transition: opacity 0.15s, border-color 0.15s; }
.ld-lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ld-lb-thumb:hover { opacity: 0.85; }
.ld-lb-thumb.is-active { opacity: 1; border-color: #fff; }
.ld-lightbox button:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .ld-gallery { height: 380px; }
}

@media (max-width: 960px) {
  .ld-body { margin-top: 24px; }
  /* La barre fixe reprend le budget et l'action principale : on les retire de la carte */
  .ld-aside--first { order: -1; }
  .ld-card-price, .ld-card .ld-cta { display: none; }
  .ld-card-price + .ld-card-facts { margin-top: 0; padding-top: 0; border-top: 0; }
  .ld-card { box-shadow: var(--shadow-sm); }

  .ld-mbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; z-index: 890; left: 0; right: 0; bottom: 0;
    padding: 12px var(--gutter); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  }
  .ld-mbar:empty { display: none; }
  .ld-mbar-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .ld-mbar-info span { font-size: var(--fs-xs); color: var(--muted); }
  .ld-mbar-info strong { font-size: var(--fs-sm); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ld-mbar .btn { flex-shrink: 0; min-height: 46px; padding: 0 16px; font-size: var(--fs-sm); }
  body:has(.ld-mbar:not(:empty)) { padding-bottom: 76px; }
  body:has(.ld-mbar:not(:empty)) .toast-root { bottom: 96px; }
}

@media (max-width: 744px) {
  .ld { padding-top: 8px; }
  /* Photo en premier, pleine largeur, façon carrousel */
  .ld-r-gallery { order: 1; margin: 0 calc(var(--gutter) * -1); }
  .ld-r-head { order: 2; margin: 16px 0 8px; }
  .ld-r-crumb .breadcrumb { margin-bottom: 10px; }
  .ld-gallery {
    display: flex; height: auto; border-radius: 0; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ld-gallery::-webkit-scrollbar { display: none; }
  .ld-g-item { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .ld-g-item:first-child { grid-column: auto; grid-row: auto; }
  .ld-g-extra { display: block; }
  .ld-gallery--1 .ld-g-item { aspect-ratio: 4 / 3; }
  .ld-gallery--cover { display: block; height: auto; aspect-ratio: 16 / 10; }
  .ld-g-counter {
    display: block; position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.72); color: #fff; font-size: var(--fs-xs); font-weight: 600; pointer-events: none;
  }
  .ld-g-all { display: none; }
  .ld-meta-row { gap: 10px; }
  .ld-meta { gap: 6px 16px; }
  .ld-meta li + li::before { display: none; }
  .ld-actions { width: 100%; margin: 0 0 0 -12px; flex-wrap: wrap; }
  .ld-body { margin-top: 8px; }
  .ld-section { padding: 28px 0; }
  .ld-facts { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ld-locked { flex-direction: column; align-items: flex-start; }
  .ld-locked .btn { width: 100%; }
  .ld-owner { padding: 20px; }
  .ld-owner-foot .btn { width: 100%; }
  .ld-q { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .ld-q-avatar .avatar { width: 36px !important; height: 36px !important; font-size: 14px !important; }
  .ld-q-login .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; }
  .ld-q-form { padding: 16px; }
  .ld-q-form-foot .btn { width: 100%; }
  .ld-card { padding: 20px; }
  .ld-similar > section { padding-top: 32px; }
  .ld-promo { padding: 20px; margin-bottom: 24px; }
  .ld-promo-ico { display: none; }
  .ld-published { padding: 18px 48px 18px 16px; gap: 12px; }
  .ld-published-ico svg { width: 22px; height: 22px; }
  .ld-sk-gallery { height: 240px; }
  .ld-sk-card { height: 240px; }
  .ld-mbar { bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom)); }
  body:has(.ld-mbar:not(:empty)) { padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 76px); }
  body:has(.ld-mbar:not(:empty)) .toast-root { bottom: calc(var(--mobile-nav-h) + 96px); }
  .ld-lb-stage { padding: 0; }
  .ld-lb-nav { width: 40px; height: 40px; }
  .ld-lb-prev { left: 8px; }
  .ld-lb-next { right: 8px; }
  .ld-lb-thumb { width: 56px; height: 44px; }
}

@media (max-width: 400px) {
  .ld-action { padding: 0 10px; gap: 6px; }
}
