/* =============================================================
   LECOINGAMING — pages/annonce_detail.css  v3
   Mobile-first. Galerie bord à bord sur mobile.
   Desktop : 2 colonnes avec sidebar sticky.
   Tokens uniquement.

   Changelog v3 :
   - --text-dark / --text-muted   → --text-primary / --text-tertiary
   - --gold-dark                  → --gold-500
   - --border-medium / --light    → --border-sm / --border-xs
   - --bg-light                   → --bg-sunken (seller-card) / --bg-page
   - --radius-md                  → --radius-md (12px, v3)
   - Transitions : valeurs brutes → var(--transition-*)
   - .price-current : font-family → var(--font-mono) + token --font-4xl
     (règle v3 : tous les prix en JetBrains Mono)
   - .other-price / .similar-price : idem → font-mono
   - .lcg-tabs shadow             : --shadow-sm token
   - .similar-card / .other-card  : hover → shadow-lg + translateY(-3px)
   - .gallery-btn hover           : transition tokens
   - .thumb-btn                   : transition tokens
   - focus-visible partout        : var(--focus-ring)
   - .lcg-price-box               : shadow-sm token
   - .seller-card                 : shadow-xs token
   ============================================================= */


/* -----------------------------------------------------------
   PAGE WRAPPER — grid mobile-first
   Mobile  : flux naturel — galerie, sidebar, content
   Desktop : galerie+content à gauche, sidebar à droite sticky
----------------------------------------------------------- */
.lcg-page {
  max-inline-size: 1280px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .lcg-page {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "gallery  sidebar"
      "content  sidebar";
    gap: 0 var(--space-7);
    padding: var(--space-6);
    align-items: start;
  }
}


/* -----------------------------------------------------------
   1. GALERIE — bord à bord mobile, colonne gauche desktop
----------------------------------------------------------- */
.lcg-gallery {
  width: 100%;
}

@media (min-width: 1024px) {
  .lcg-gallery {
    grid-area: gallery;
    padding-bottom: var(--space-5);
  }
}

/* Wrapper mobile-only — sort du flow sur mobile */
.lcg-gallery-wrap {
  width: 100%;
}

@media (min-width: 1024px) {
  .lcg-gallery-wrap { display: none; }
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Image principale */
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-dark);
  overflow: hidden;
  cursor: zoom-in;
}

/* Arrondi uniquement sur tablette+ */
@media (min-width: 768px) {
  .gallery-main { border-radius: var(--radius-md); }
}

@media (min-width: 1024px) {
  .gallery-main {
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-lg);
  }
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* v3 : transition-slow sur filter (cohérence avec _annonce_card) */
  transition: filter var(--transition-slow);
}

/* Pills overlay */
.gallery-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 5px var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(14, 20, 38, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono), monospace;
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.10);
  user-select: none;
  z-index: var(--z-base);
}

.gallery-pill--tl { top: var(--space-3); left: var(--space-3); }
.gallery-pill--br { bottom: var(--space-3); right: var(--space-3); }

/* Boutons partage + favori */
.gallery-actions {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: var(--z-base);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.gallery-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 20, 38, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-inverse);
  cursor: pointer;
  flex-shrink: 0;
  /* v3 : transitions nommées */
  transition: background   var(--transition-fast),
              border-color var(--transition-fast);
}

.gallery-btn .icon,
.gallery-btn svg { width: 15px; height: 15px; }

@media (hover: hover) {
  .gallery-btn:hover {
    background: rgba(184, 155, 46, 0.75);
    border-color: var(--gold-light);
  }
}

.gallery-btn:focus-visible {
  outline: none;
  /* focus visible adapté — fond sombre */
  box-shadow: 0 0 0 3px rgba(230, 204, 106, 0.50);
}

/* Form favori transparent dans le flex */
.detail-favorite-form { display: contents; }
.gallery-actions .favorite-form { display: contents; }

.detail-favorite-form .gallery-btn,
.gallery-actions .favorite-form .gallery-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 20, 38, 0.65);
}

/* Icône favori active */
.gallery-btn .favorite-icon-wrapper {
  display: flex;
  align-items: center;
  width: 15px;
  height: 15px;
}

.gallery-btn .favorite-icon-wrapper.active svg {
  fill: var(--gold-light);
  stroke: var(--gold-light);
}

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--space-1) var(--space-3);
}

@media (min-width: 768px) {
  .gallery-thumbs { padding-inline: 0; }
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.thumb-btn {
  flex: 0 0 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: none;
  opacity: 0.55;
  cursor: pointer;
  padding: 0;
  /* v3 : transition tokens */
  transition: opacity      var(--transition-fast),
              border-color var(--transition-fast);
}

@media (min-width: 768px) {
  .thumb-btn { flex: 0 0 80px; height: 80px; }
}

@media (min-width: 1024px) {
  .thumb-btn { flex: 0 0 88px; height: 88px; }
}

/* v3 : gold-500 au lieu de gold-dark */
.thumb-btn.active { opacity: 1; border-color: var(--gold-500); }

@media (hover: hover) {
  .thumb-btn:hover { opacity: 1; }
}

.thumb-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* -----------------------------------------------------------
   2. SIDEBAR — titre, prix, actions, vendeur, boost
   sticky sur desktop
----------------------------------------------------------- */
.lcg-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-3);
}

@media (min-width: 768px) {
  .lcg-sidebar { padding-inline: var(--space-5); }
}

@media (min-width: 1024px) {
  .lcg-sidebar {
    grid-area: sidebar;
    position: sticky;
    /* nav-top-ticket-h + nav-main-h + nav-desktop-h + espace confort */
    top: calc(var(--nav-top-ticket-h) + var(--nav-main-h) + var(--nav-desktop-h) + var(--space-4));
    align-self: start;
    padding: 0;
  }
}

/* Titre */
.lcg-title {
  font-family: var(--font-display), sans-serif;
  font-size: var(--font-2xl);
  font-weight: 800;
  /* v3 : text-primary */
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  word-break: break-word;
  margin: 0;
}

@media (min-width: 768px) {
  .lcg-title { font-size: var(--font-3xl); }
}

/* Meta */
.lcg-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--font-xs);
  /* v3 : text-tertiary */
  color: var(--text-tertiary);
}

.lcg-meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono), monospace;
}

.lcg-meta-item .icon { opacity: 0.60; }
.lcg-meta-sep        { opacity: 0.35; }

/* Chips */
.lcg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 600;
  background: var(--bg-muted);
  /* v3 : border-xs */
  border: var(--border-xs);
  /* v3 : text-primary */
  color: var(--text-primary);
}

.highlight-secure {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(11, 122, 75, 0.18);
}


/* -----------------------------------------------------------
   3. CONTENU — tabs + trust
----------------------------------------------------------- */
.lcg-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 0 var(--space-3) var(--space-5);
}

@media (min-width: 768px) {
  .lcg-content { padding-inline: var(--space-5); }
}

@media (min-width: 1024px) {
  .lcg-content {
    grid-area: content;
    padding: var(--space-4) 0 var(--space-6);
  }
}

/* Breadcrumb */
.lcg-breadcrumb {
  display: none;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-family: var(--font-mono), monospace;
  font-size: var(--font-xs);
  /* v3 : text-tertiary */
  color: var(--text-tertiary);
}

@media (min-width: 1024px) { .lcg-breadcrumb { display: flex; } }

.lcg-breadcrumb a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

@media (hover: hover) {
  .lcg-breadcrumb a:hover { color: var(--gold-500); }
}

.lcg-breadcrumb span[aria-current] {
  /* v3 : text-primary */
  color: var(--text-primary);
  font-weight: 600;
}


/* -----------------------------------------------------------
   4. PRICE BOX
   v3 : shadow-sm au repos, font-mono pour le prix
----------------------------------------------------------- */
.lcg-price-box {
  /* v3 : border-sm */
  border: var(--border-sm);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--bg-card);
  /* v3 : shadow-sm token */
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lcg-price-box.price-drop {
  border-color: rgba(11, 122, 75, 0.22);
  background: linear-gradient(175deg, rgba(11, 122, 75, 0.04) 0%, var(--bg-card) 100%);
}

.price-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.price-left { display: flex; flex-direction: column; gap: 3px; }

.price-old {
  font-size: var(--font-sm);
  /* v3 : text-tertiary */
  color: var(--text-tertiary);
  text-decoration: line-through;
}

/* v3 : PRIX — JetBrains Mono (règle globale prix)
   Était font-display — tous les prix passent en font-mono */
.price-current {
  font-family: var(--font-mono), monospace;
  /* v3 : font-4xl token (36px) */
  font-size: var(--font-4xl);
  font-weight: 700;
  color: var(--price-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-drop .price-current { color: var(--price-discount); }

.price-drop-info {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--price-discount);
  margin-top: var(--space-1);
}

.price-right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); }

.price-badge {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(183, 28, 28, 0.15);
  padding: 4px var(--space-3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono), monospace;
  font-weight: 700;
  font-size: var(--font-xs);
}

.deal-badge {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(11, 122, 75, 0.15);
  padding: 3px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 600;
}

.price-status { margin-top: var(--space-1); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 5px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 600;
}

.status-badge.available { background: var(--success-bg); color: var(--success); }
.status-badge.reserved  { background: var(--warning-bg); color: var(--warning); }
.status-badge.sold      { background: var(--danger-bg);  color: var(--danger);  }

.price-reassurance {
  padding-top: var(--space-3);
  /* v3 : border-xs */
  border-top: var(--border-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.secure-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--font-sm);
  /* v3 : text-primary */
  color: var(--text-primary);
}

.secure-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.secure-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--font-xs);
  /* v3 : text-tertiary */
  color: var(--text-tertiary);
}

.payment-methods { display: flex; gap: var(--space-3); align-items: center; }
.payment-methods img { height: 20px; opacity: 0.65; }

.secure-learn-more {
  font-size: var(--font-xs);
  font-weight: 600;
  /* v3 : gold-500 */
  color: var(--gold-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

@media (hover: hover) {
  .secure-learn-more:hover { color: var(--gold-light); }
}

.price-no-payment {
  padding-top: var(--space-3);
  border-top: var(--border-xs);
}

.no-payment-text {
  font-size: var(--font-sm);
  color: var(--text-tertiary);
  line-height: var(--leading-relaxed);
  margin: 0;
}


/* -----------------------------------------------------------
   5. SELLER CARD
   v3 : --bg-light → --bg-sunken, shadow-xs, border-sm
----------------------------------------------------------- */
.seller-card {
  display: flex;
  gap: var(--space-3);
  /* v3 : bg-sunken = légère texture de fond */
  background: var(--bg-sunken);
  border: var(--border-sm);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  /* v3 : shadow-xs */
  box-shadow: var(--shadow-xs);
}

.seller-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 1.5px rgba(184, 155, 46, 0.25);
}

.seller-info { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; min-inline-size: 0; }
.seller-top  { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

.seller-name {
  font-family: var(--font-display), sans-serif;
  font-weight: 700;
  font-size: var(--font-md);
  /* v3 : text-primary */
  color: var(--text-primary);
}

/* Note : .seller-badge hérite de badges.css, juste contextuel ici */
.seller-badge {
  font-size: var(--font-xs);
  font-weight: 600;
  background: var(--success-bg);
  color: var(--success);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  border: 1px solid rgba(11, 122, 75, 0.18);
}

.seller-online { font-size: var(--font-xs); font-weight: 600; color: var(--success); }
/* v3 : text-tertiary */
.seller-meta   { font-size: var(--font-xs); color: var(--text-tertiary); }
.seller-stats  { font-size: var(--font-xs); font-weight: 600; color: var(--text-primary); }


/* -----------------------------------------------------------
   6. BOOST
----------------------------------------------------------- */
.owner-boost-section { margin-top: var(--space-1); }

.boost-active-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--gold-gradient);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-dark);
}

.boost-expires { font-weight: 400; opacity: 0.80; font-size: var(--font-xs); }
.boost-dropdown-wrap { position: relative; }
.boost-dropdown-trigger { width: 100%; justify-content: space-between; }

.boost-trigger-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  flex-shrink: 0;
}

.boost-trigger-sep { width: 1px; height: 16px; background: rgba(0, 0, 0, 0.12); flex-shrink: 0; }

.boost-trigger-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 700;
  font-size: var(--font-sm);
  /* v3 : gold-500 */
  color: var(--gold-500);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: rgba(184, 155, 46, 0.08);
  transition: background var(--transition-fast);
}

@media (hover: hover) {
  .boost-trigger-submit:hover { background: rgba(184, 155, 46, 0.16); }
}

.dropdown-panel--boost { min-inline-size: 220px; }

.dropdown-item__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: var(--space-4);
}

.dropdown-item__name { font-weight: 600; }

.dropdown-item__price {
  font-family: var(--font-mono), monospace;
  font-size: var(--font-xs);
  font-weight: 700;
  /* v3 : gold-500 */
  color: var(--gold-500);
  white-space: nowrap;
  margin-left: auto;
}


/* -----------------------------------------------------------
   7. ACTIONS
----------------------------------------------------------- */
.lcg-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lcg-actions-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--font-xs);
}

.link-muted {
  background: none;
  border: none;
  /* v3 : text-tertiary */
  color: var(--text-tertiary);
  cursor: pointer;
  font-family: var(--font-body), sans-serif;
  font-size: var(--font-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color      var(--transition-fast),
              background var(--transition-fast);
}

@media (hover: hover) {
  .link-muted:hover {
    color: var(--text-primary);
    background: var(--bg-muted);
  }
}

.link-muted.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.dot-separator       { color: var(--text-tertiary); opacity: 0.40; }

.stripe-missing-banner {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--warning-bg);
  border: 1px solid rgba(177, 118, 0, 0.20);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  color: var(--warning);
  font-weight: 600;
}

.stripe-missing-banner .icon { flex-shrink: 0; margin-top: 2px; }

.stripe-missing-hint {
  font-weight: 400;
  font-size: var(--font-xs);
  color: var(--warning);
  opacity: 0.85;
  margin-top: var(--space-1);
}


/* -----------------------------------------------------------
   8. TABS
   v3 : border-sm, shadow-sm sur le conteneur
----------------------------------------------------------- */
.lcg-tabs {
  background: var(--bg-card);
  /* v3 : border-sm */
  border: var(--border-sm);
  border-radius: var(--radius-md);
  /* v3 : shadow-sm token */
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tabs-nav {
  display: flex;
  /* v3 : border-sm */
  border-bottom: var(--border-sm);
  background: var(--bg-muted);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  background: none;
  border: none;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body), sans-serif;
  font-size: var(--font-sm);
  font-weight: 600;
  /* v3 : text-tertiary */
  color: var(--text-tertiary);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color        var(--transition-fast),
              border-color var(--transition-fast);
}

@media (hover: hover) {
  .tab-btn:hover { color: var(--text-primary); }
}

.tab-btn:focus-visible {
  outline: none;
  box-shadow: inset var(--focus-ring);
}

/* v3 : gold-500 pour le soulignement actif */
.tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--gold-500);
}

.tab-panel { display: none; padding: var(--space-4); }

.tab-panel.active {
  display: block;
  animation: tab-fade-in var(--transition-base) both;
}

@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Contenu éditorial */
.lcg-description {
  font-size: var(--font-md);
  /* v3 : text-primary */
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.spec-list { list-style: none; padding: 0; margin: 0; }

.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-2);
  /* v3 : border-xs */
  border-bottom: var(--border-xs);
  font-size: var(--font-sm);
}

.spec-list li:last-child { border-bottom: none; }
/* v3 : text-tertiary / text-primary */
.spec-label { color: var(--text-tertiary); font-weight: 600; flex-shrink: 0; }
.spec-value { color: var(--text-primary);  text-align: right; }

.lcg-map {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

@media (min-width: 768px) { .lcg-map { height: 300px; } }


/* -----------------------------------------------------------
   9. TRUST — mobile : visible, desktop : inline dans col-main
----------------------------------------------------------- */
.lcg-trust {
  padding: var(--space-5) var(--space-3);
  /* v3 : border-xs */
  border-top: var(--border-xs);
}

.lcg-trust--mobile { display: block; }
.lcg-trust--inline { display: none; }

@media (min-width: 1024px) {
  .lcg-trust--mobile { display: none; }
  .lcg-trust--inline { display: block; padding: 0; border-top: none; }
}

.lcg-trust-title {
  font-family: var(--font-display), sans-serif;
  font-size: var(--font-lg);
  font-weight: 800;
  /* v3 : text-primary */
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.lcg-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .lcg-trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-card);
  /* v3 : border-xs */
  border: var(--border-xs);
  border-radius: var(--radius-sm);
}

@media (min-width: 1024px) {
  .trust-item {
    align-items: center;
    text-align: center;
    background: none;
    border: none;
    padding: var(--space-2);
  }
}

/* v3 : gold-500 */
.trust-item-icon  { color: var(--gold-500); flex-shrink: 0; }
.trust-item-label { font-weight: 700; font-size: var(--font-sm); color: var(--text-primary); }
.trust-item-desc  { font-size: var(--font-xs); color: var(--text-tertiary); line-height: var(--leading-relaxed); }


/* -----------------------------------------------------------
   10. AUTRES ANNONCES + SIMILAIRES
   v3 : hover translateY(-3px) + shadow-lg (cohérence cards)
        prix → font-mono
----------------------------------------------------------- */
.lcg-other,
.lcg-similar {
  max-inline-size: 1280px;
  margin-inline: auto;
  padding: var(--space-4) var(--space-3);
  /* v3 : border-xs */
  border-top: var(--border-xs);
}

@media (min-width: 768px) {
  .lcg-other,
  .lcg-similar { padding-inline: var(--space-6); }
}

.lcg-other h2,
.lcg-similar h2 {
  font-family: var(--font-display), sans-serif;
  font-size: var(--font-lg);
  font-weight: 800;
  /* v3 : text-primary */
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  /* v3 : border-xs */
  border-bottom: var(--border-xs);
  position: relative;
}

/* Trait gold sous le titre */
.lcg-other h2::after,
.lcg-similar h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 1px;
}

.other-carousel,
.similar-carousel {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: var(--space-1);
}

.other-carousel::-webkit-scrollbar,
.similar-carousel::-webkit-scrollbar { display: none; }

.similar-card,
.other-card {
  flex: 0 0 160px;
  background: var(--bg-card);
  /* v3 : border-xs */
  border: var(--border-xs);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  /* v3 : transition tokens */
  transition: box-shadow var(--transition-base),
              transform  var(--transition-base);
}

@media (min-width: 480px)  { .similar-card, .other-card { flex: 0 0 180px; } }
@media (min-width: 768px)  { .similar-card, .other-card { flex: 0 0 210px; } }
@media (min-width: 1024px) { .similar-card, .other-card { flex: 0 0 230px; } }

@media (hover: hover) {
  .similar-card:hover,
  .other-card:hover {
    /* v3 : shadow-lg + -3px (cohérence .annonce-card) */
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
  }
}

.other-image,
.similar-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-dark);
}

.other-image img,
.similar-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.other-body,
.similar-body { padding: var(--space-3); }

.other-title,
.similar-title {
  font-family: var(--font-display), sans-serif;
  font-size: var(--font-sm);
  font-weight: 700;
  /* v3 : text-primary */
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-1);
  line-height: var(--leading-tight);
}

/* v3 : PRIX — JetBrains Mono (règle globale) */
.other-price,
.similar-price {
  font-family: var(--font-mono), monospace;
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--price-accent);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.similar-discount {
  display: inline-block;
  margin-top: var(--space-1);
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--price-discount);
  background: var(--success-bg);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}


/* -----------------------------------------------------------
   11. LIGHTBOX
   v3 : transitions tokens
----------------------------------------------------------- */
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  /* v3 : transition-base */
  transition: opacity    var(--transition-base),
              visibility var(--transition-base);
}

.image-viewer.active {
  opacity: 1;
  visibility: visible;
}

.image-viewer img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  /* v3 : transition-fast */
  transition: opacity var(--transition-fast);
  user-select: none;
}

.viewer-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  /* v3 : transition-fast */
  transition: background var(--transition-fast);
}

.viewer-close .icon { width: 18px; height: 18px; }

@media (hover: hover) {
  .viewer-close:hover { background: rgba(255, 255, 255, 0.20); }
}

.viewer-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.viewer-nav .icon { width: 20px; height: 20px; }

@media (hover: hover) {
  .viewer-nav:hover { background: rgba(255, 255, 255, 0.20); }
}

.viewer-nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.viewer-nav.prev { left:  var(--space-4); }
.viewer-nav.next { right: var(--space-4); }

.image-viewer img.dragging { cursor: grabbing; }


/* =============================================================
   LECOINGAMING — annonce_detail additions
   Styles pour : prix, vendeur, boost cards, bottom nav mobile.
   À ajouter à la fin de annonce_detail.css
   ============================================================= */


/* ── PRIX ────────────────────────────────────────────────────── */
.lcg-price-block {
  background: var(--bg-card);
  border: var(--border-sm);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.lcg-price-block--drop {
  border-color: rgba(177,118,0,0.25);
  background: rgba(177,118,0,0.03);
}

.lcg-price-main {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.lcg-price-current {
  font-family: var(--font-mono);
  font-size: var(--font-4xl);
  font-weight: 700;
  color: var(--price-accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.lcg-price-old {
  font-family: var(--font-mono);
  font-size: var(--font-md);
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.lcg-price-badge {
  background: var(--warning-bg);
  color: var(--warning);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

/* Statut dispo */
.lcg-status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.lcg-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  font-size: var(--font-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-2-5);
  border-radius: var(--radius-full);
}

.lcg-status-badge--available {
  background: var(--success-bg);
  color: var(--success);
}

.lcg-status-badge--sold {
  background: var(--danger-bg);
  color: var(--danger);
}

.lcg-status-badge--reserved {
  background: var(--warning-bg);
  color: var(--warning);
}

.lcg-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: dot-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.lcg-drop-hint {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 11px;
  color: var(--warning);
  font-weight: 600;
}

/* Paiement sécurisé */
.lcg-secure-block {
  border-top: var(--border-xs);
  padding-top: var(--space-4);
  margin-top: var(--space-3);
}

.lcg-secure-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-sm);
  color: var(--success);
  margin-bottom: var(--space-2);
}

.lcg-secure-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.lcg-secure-list li {
  font-size: 11px;
  color: var(--text-secondary);
  padding-left: var(--space-3);
  position: relative;
}

.lcg-secure-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.lcg-payment-logos {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.lcg-payment-logos img {
  height: 20px;
  width: auto;
  opacity: 0.7;
}

.lcg-no-stripe {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--font-xs);
  color: var(--text-tertiary);
  background: var(--bg-sunken);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-top: var(--space-3);
  line-height: 1.5;
}


/* ── VENDEUR ─────────────────────────────────────────────────── */
.lcg-seller-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-card);
  border: var(--border-sm);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-xs);
}

.lcg-seller-avatar {
  position: relative;
  flex-shrink: 0;
}

.lcg-seller-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-sm);
}

.lcg-seller-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-card);
}

.lcg-seller-info { flex: 1; min-width: 0; }

.lcg-seller-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  flex-wrap: wrap;
}

.lcg-seller-name {
  font-family: var(--font-display);
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text-primary);
}

.lcg-seller-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  padding: 1px var(--space-2);
  border-radius: var(--radius-full);
}

.lcg-seller-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-1);
}

.lcg-seller-status {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  font-size: 11px;
  color: var(--success);
  font-weight: 600;
}

.lcg-online-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: dot-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}


/* ── BOOST SECTION ───────────────────────────────────────────── */
.lcg-boost-section {
  background: var(--bg-card);
  border: var(--border-sm);
  border-top: 3px solid var(--gold-dark);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

/* Boost actif */
.lcg-boost-active__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-sm);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.lcg-boost-active__level {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  margin-left: auto;
}

.lcg-boost-active__level--flash   { background: rgba(30,136,229,0.12); color: var(--info); }
.lcg-boost-active__level--weekly  { background: var(--gold-gradient); color: var(--text-dark); }
.lcg-boost-active__level--monthly { background: rgba(83,74,183,0.12); color: #534ab7; }

.lcg-boost-active__expires {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

.lcg-boost-progress {
  height: 4px;
  background: rgba(0,0,0,0.07);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.lcg-boost-progress__fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.lcg-boost-progress__fill--flash   { background: var(--info); }
.lcg-boost-progress__fill--weekly  { background: var(--gold-gradient); }
.lcg-boost-progress__fill--monthly { background: #534ab7; }

/* CTA boost */
.lcg-boost-cta {
  margin-bottom: var(--space-4);
}

.lcg-boost-cta__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.lcg-boost-cta__sub {
  font-size: var(--font-xs);
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Boost cards */
.lcg-boost-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.lcg-boost-card {
  cursor: pointer;
  border: var(--border-sm);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  background: var(--bg-card);
  position: relative;
  transition: border-color var(--transition-fast),
              box-shadow   var(--transition-fast),
              transform    var(--transition-spring);
}

.lcg-boost-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.lcg-boost-card.is-selected {
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
  background: rgba(184,155,46,0.04);
}

.lcg-boost-card--featured {
  border-color: rgba(184,155,46,0.3);
}

.lcg-boost-card__popular {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--gold-gradient);
  color: var(--text-dark);
  padding: 1px var(--space-2);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lcg-boost-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.lcg-boost-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px var(--space-1-5);
  border-radius: var(--radius-full);
}

.lcg-boost-card__badge--flash   { background: rgba(30,136,229,0.12); color: var(--info); }
.lcg-boost-card__badge--weekly  { background: var(--gold-gradient); color: var(--text-dark); }
.lcg-boost-card__badge--monthly { background: rgba(83,74,183,0.12); color: #534ab7; }

.lcg-boost-card__duration {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
}

.lcg-boost-card__price {
  font-family: var(--font-mono);
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.lcg-boost-card__perk {
  font-size: 10px;
  color: var(--text-tertiary);
}

.lcg-boost-submit {
  gap: var(--space-2);
}


/* ── TRUST ───────────────────────────────────────────────────── */
.lcg-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-card);
  border: var(--border-sm);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.trust-item-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(184,155,46,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
}

.trust-item-label {
  font-family: var(--font-display);
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.trust-item-desc {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.5;
}


/* ── BOTTOM NAV MOBILE ───────────────────────────────────────── */
.lcg-mobile-bar {
  display: none;
}

@media (max-width: 1023px) {
  .lcg-mobile-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 310;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-card);
    border-top: var(--border-sm);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  }

  /* Compenser la barre en bas */
  .lcg-page { padding-bottom: 80px; }
}

.lcg-mobile-bar__price {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

.lcg-mobile-bar__price-current {
  font-family: var(--font-mono);
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--price-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.lcg-mobile-bar__price-old {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-decoration: line-through;
  line-height: 1;
}

.lcg-mobile-bar__actions {
  display: flex;
  gap: var(--space-2);
  flex: 1;
  justify-content: flex-end;
}

.lcg-mobile-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2-5) var(--space-4);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow var(--transition-fast),
              transform  var(--transition-fast);
}

.lcg-mobile-bar__btn:active { transform: scale(0.97); }

.lcg-mobile-bar__btn--contact {
  background: var(--bg-sunken);
  color: var(--text-primary);
  border: var(--border-sm);
}

.lcg-mobile-bar__btn--contact:hover {
  background: var(--bg-card);
}

.lcg-mobile-bar__btn--buy {
  background: var(--gold-gradient);
  color: var(--text-dark);
  box-shadow: var(--shadow-gold);
}

.lcg-mobile-bar__btn--buy:hover {
  box-shadow: var(--shadow-gold-lg);
}

/* Badge boost sur la galerie */
.gallery-boost-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px var(--space-2-5);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.gallery-boost-badge--flash   { background: rgba(30,136,229,0.88); color: #fff; }
.gallery-boost-badge--weekly  { background: var(--gold-gradient); color: var(--text-dark); }
.gallery-boost-badge--monthly { background: rgba(83,74,183,0.88); color: #fff; }

/* Masquer actions desktop sur mobile */
@media (max-width: 1023px) {
  #lcg-actions-desktop { display: none; }
}


/* ── ACTIONS PROPRIÉTAIRE ────────────────────────────────────── */
.lcg-actions--owner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-card);
  border: var(--border-sm);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-xs);
}

.lcg-owner-stats {
  display: flex;
  gap: var(--space-4);
}

.lcg-owner-stat {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-sm);
  color: var(--text-tertiary);
}

.lcg-owner-stat svg { color: var(--gold-dark); }