/* Place de marché — sections ajoutées à l'accueil d'origine (mêmes codes visuels : Inter, vert, bleu nuit). */
.hero-search { display: flex; margin: 0 0 22px; max-width: 520px; border: 2px solid var(--primary); border-radius: 10px; overflow: hidden; background: var(--background); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; height: 52px; font: 500 15px var(--font-family); color: var(--text); background: transparent; }
.hero-search input:focus { outline: none; }
.hero-search button { border: 0; background: var(--primary); color: var(--dark); font: 800 15px var(--font-family); padding: 0 20px; cursor: pointer; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.store-product a { color: inherit; }
.store-product .store-shop { font-size: 6px; color: #7a8492; margin-bottom: 6px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-add { display: block; text-align: center; cursor: pointer; }
.store-sidebar-block a.store-shop-link { display: flex; gap: 6px; align-items: center; font-size: 7px; color: #5b6676; padding: 3px 0; }
.store-sidebar-block a.store-shop-link b { width: 14px; height: 14px; border-radius: 3px; background: var(--dark); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 7px; flex-shrink: 0; }
.store-promo a, .store-newsletter a { color: inherit; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; font-weight: 800; color: var(--dark); }
.section-head p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.lien-voir { font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.lien-voir:hover { text-decoration: underline; }
.cats-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-tile { background: var(--background); border: 1px solid var(--border); border-radius: 12px; padding: 18px 14px; text-align: center; transition: all .25s ease; }
.cat-tile i { width: 52px; height: 52px; border-radius: 50%; background: rgba(138, 205, 0, .14); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px; }
.cat-tile strong { display: block; color: var(--dark); font-size: 14px; font-weight: 700; }
.cat-tile small { color: var(--muted); font-size: 12.5px; }
.cat-tile:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 37, 58, .08); }
.market-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.m-card { background: var(--background); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: all .25s ease; min-width: 0; }
.m-card:hover { box-shadow: 0 14px 30px rgba(20, 37, 58, .09); transform: translateY(-3px); }
.m-card-img { position: relative; aspect-ratio: 1 / 1; background: var(--light); overflow: hidden; display: block; }
.m-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.m-card:hover .m-card-img img { transform: scale(1.05); }
.m-badge { position: absolute; left: 10px; top: 10px; background: var(--primary); color: var(--dark); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 5px; }
.m-badge.sombre { background: var(--dark); color: #fff; }
.m-play { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(20, 37, 58, .85); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.m-card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.m-shop { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-name { font-size: 14px; font-weight: 700; color: var(--dark); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.m-price { font-size: 15.5px; font-weight: 800; color: var(--primary-dark); }
.m-price small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.m-btn { margin-top: auto; display: block; text-align: center; background: var(--primary); color: var(--dark); font-weight: 800; font-size: 13px; padding: 9px; border-radius: 8px; transition: background .2s; }
.m-btn:hover { background: var(--primary-dark); color: #fff; }
.shops-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shop-card { background: var(--background); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: all .25s ease; display: flex; flex-direction: column; }
.shop-card:hover { box-shadow: 0 14px 30px rgba(20, 37, 58, .09); transform: translateY(-3px); border-color: var(--primary); }
.shop-cover { display: grid; grid-template-columns: repeat(3, 1fr); height: 110px; background: var(--light); }
.shop-cover img { width: 100%; height: 110px; object-fit: cover; }
.shop-info { display: flex; gap: 12px; align-items: center; padding: 14px; margin-top: -30px; }
.shop-logo { width: 56px; height: 56px; border-radius: 12px; background: var(--dark); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; border: 3px solid var(--background); flex-shrink: 0; overflow: hidden; }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.shop-info > div { min-width: 0; padding-top: 26px; }
.shop-info strong { display: block; color: var(--dark); font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-info small { color: var(--muted); font-size: 12.5px; }
.shop-foot { margin-top: auto; padding: 0 14px 14px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.shop-foot span:last-child { color: var(--primary-dark); font-weight: 800; }
.videos-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.video-card { position: relative; aspect-ratio: 9 / 14; border-radius: 14px; overflow: hidden; background: #000; display: block; color: #fff; }
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card span { position: absolute; inset: auto 0 0 0; padding: 50px 14px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); display: flex; flex-direction: column; font-weight: 700; }
.video-card small { color: #d6dde6; font-weight: 500; }
.two-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.path-card { border: 1px solid var(--border); border-radius: 14px; padding: 26px; background: var(--background); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.path-card i.ic { width: 52px; height: 52px; border-radius: 12px; background: rgba(138, 205, 0, .14); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.path-card h3 { font-size: 20px; color: var(--dark); font-weight: 800; }
.path-card p { color: var(--muted); }
.vide-marche { text-align: center; padding: 30px; color: var(--muted); border: 1px dashed var(--border); border-radius: 12px; }
html[data-theme="dark"] .m-card, html[data-theme="dark"] .shop-card, html[data-theme="dark"] .cat-tile, html[data-theme="dark"] .path-card { background: #162131; border-color: var(--border); }
html[data-theme="dark"] .m-name, html[data-theme="dark"] .shop-info strong, html[data-theme="dark"] .cat-tile strong, html[data-theme="dark"] .section-head h2, html[data-theme="dark"] .path-card h3 { color: var(--text); }
html[data-theme="dark"] .shop-logo { border-color: #162131; }
@media (max-width: 1300px) { .market-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .shops-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .videos-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cats-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .two-paths { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 24px; }
  .m-name { font-size: 13px; }
  .hero-search { max-width: none; }
}
@media (max-width: 480px) { .shops-grid { grid-template-columns: 1fr; } .cats-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Mobile : même ordre que la page d'origine (diaporama, bouton, titre, recherche, aperçu de boutique, texte). */
@media (max-width: 768px) {
  .hero-search { order: 3; margin: 0 15px 20px; }
  .hero-actions { order: 7; padding: 0 15px; }
  .hero-actions .desktop-cta { margin-left: 0; }
}

/* Bouton vendeur compact (petits écrans) : « + Article » ou « Vendre » toujours visible */
.btn-vendeur-mobile { display: none; }
@media (max-width: 768px) {
    .btn-vendeur-mobile { display: inline-flex; align-items: center; gap: 5px; background: #8acd00; color: #fff; font-weight: 700; font-size: 12px; padding: 7px 10px; border-radius: 6px; white-space: nowrap; text-decoration: none; }
}
@media (max-width: 420px) {
    .header-actions .btn-ghost { font-size: 0 !important; padding: 7px 9px !important; gap: 0; }
    .header-actions .btn-ghost i { font-size: 13px; margin-right: 0 !important; }
}
@media (max-width: 420px) {
    .logo img { height: 26px !important; }
    .header-actions { gap: 5px !important; }
    .header-actions .theme-toggle { width: 34px; height: 34px; }
}
