/* =============================================
   VENTOU — home.css
   Design révolutionnaire — version 2.0
   ============================================= */

:root {
  --primary:   #F39200;
  --secondary: #312783;
  --red:       #E30613;
  --dark:      #09090f;
  --dark-2:    #111118;
  --dark-card: #16161f;
  --border-d:  rgba(255,255,255,0.07);
  --text-inv:  #ffffff;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --font: 'Aeonik', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: #f5f5f8; color: #111; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAVBAR ─────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: none;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--red) 100%);
  opacity: 1;
}
.site-header.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.site-nav {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 0;
  padding: 0 28px; height: 68px;
}

/* Logo */
.site-logo { flex-shrink: 0; margin-right: 16px; }
.site-logo img { height: 36px; width: auto; }

/* Séparateur */
.nav-sep {
  width: 1px; height: 28px; background: #e5e7eb;
  flex-shrink: 0; margin: 0 20px;
}

/* Liens de navigation rapide */
.nav-links-group {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.nav-pill-link {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 50px;
  color: #555; font-size: 0.83rem; font-weight: 600;
  transition: background 0.18s, color 0.18s;
}
.nav-pill-link i { font-size: 0.78rem; }
.nav-pill-link:hover {
  background: #f5f5f8; color: var(--primary);
}
.nav-pill-link.active {
  background: rgba(243,146,0,0.08);
  color: var(--primary);
}

/* Barre de recherche */
.nav-center {
  flex: 1; min-width: 0;
  padding: 0 24px;
}
.nav-search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: #f7f7fb;
  border: 1.5px solid #ebebf2;
  border-radius: 50px; padding: 0 8px 0 18px;
  height: 44px; max-width: 560px; margin: 0 auto;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}
.nav-search-wrap:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(243,146,0,0.1);
}
.nav-search-icon { color: #bbb; font-size: 0.82rem; flex-shrink: 0; }
.nav-search-wrap:focus-within .nav-search-icon { color: var(--primary); }
.nav-search-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: #111; font-size: 0.88rem; font-family: var(--font); min-width: 0;
}
.nav-search-wrap input::placeholder { color: #bbb; }
.nav-search-kbd {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ebebf2; border: 1px solid #ddd;
  border-radius: 6px; padding: 2px 8px;
  font-size: 0.72rem; color: #999; font-family: monospace;
  flex-shrink: 0; transition: opacity 0.2s;
}
.nav-search-wrap:focus-within .nav-search-kbd { opacity: 0; width: 0; padding: 0; overflow: hidden; }

/* ── Communication ticker ──────────────────── */
.nav-comm {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px; overflow: hidden;
}
.nav-comm-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(243,146,0,0.07);
  border: 1.5px solid rgba(243,146,0,0.2);
  border-radius: 50px; padding: 6px 14px 6px 12px;
  font-size: 0.78rem; font-weight: 600; color: #444;
  max-width: 100%; cursor: default;
  transition: opacity 0.35s, transform 0.35s;
}
.nav-comm-chip #navCommIcon { color: var(--primary); font-size: 0.72rem; flex-shrink: 0; }
.nav-comm-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-comm-arrow { color: var(--primary); font-size: 0.6rem; flex-shrink: 0; opacity: 0.6; }
.nav-comm-chip.out { opacity: 0; transform: translateY(-10px); }
/* Chip cliquable (annonce admin avec lien) */
.nav-comm-chip[onclick] { transition: opacity 0.35s, transform 0.35s, background 0.2s, border-color 0.2s; }
.nav-comm-chip[onclick]:hover { background: rgba(243,146,0,0.13) !important; border-color: rgba(243,146,0,0.4) !important; }

/* Droite */
.nav-right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Bouton Connexion */
.btn-nav-login {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 50px;
  background: transparent;
  border: 1.5px solid #e0e0ea;
  color: #444; font-size: 0.86rem; font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-nav-login i { font-size: 0.82rem; }
.btn-nav-login:hover {
  border-color: var(--primary); color: var(--primary);
  background: rgba(243,146,0,0.04);
}

/* Bouton Publier */
.btn-nav-register {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, #ff7b1c 100%);
  color: #fff; font-size: 0.87rem; font-weight: 800;
  letter-spacing: 0.1px;
  box-shadow: 0 4px 16px rgba(243,146,0,0.35), 0 1px 0 rgba(255,255,255,0.15) inset;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn-nav-register i {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; flex-shrink: 0;
}
.btn-nav-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(243,146,0,0.45);
}
.btn-nav-register:active { transform: translateY(0); }

/* ── Profile dropdown ─────────────────────────── */
.nav-profile-wrap { position: relative; }
.nav-profile-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px; border-radius: 50px;
  background: #f5f5f8; border: 1.5px solid #e5e7eb;
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.nav-profile-btn:hover { background: #ebebf0; border-color: #d0d0da; }
.nav-profile-name { font-size: 0.86rem; font-weight: 600; color: #333; }
.nav-profile-chevron { font-size: 0.68rem; color: #999; transition: transform 0.22s; }
.nav-profile-wrap:hover .nav-profile-chevron,
.nav-profile-wrap.open .nav-profile-chevron { transform: rotate(180deg); }

.nav-profile-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 230px;
  background: #fff;
  border: 1.5px solid #ebebf2;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 300;
}
.nav-profile-wrap:hover .nav-profile-dropdown,
.nav-profile-wrap.open .nav-profile-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  color: #333; font-size: 0.87rem; font-weight: 500;
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-dd-item i { width: 18px; text-align: center; color: #aaa; font-size: 0.84rem; flex-shrink: 0; }
.nav-dd-item:hover { background: #f5f5f8; color: #111; }
.nav-dd-item:hover i { color: var(--primary); }
.nav-dd-featured {
  background: rgba(243,146,0,0.07);
  color: var(--primary); font-weight: 700;
}
.nav-dd-featured i { color: var(--primary); }
.nav-dd-featured:hover { background: rgba(243,146,0,0.14); }
.nav-dd-sep { height: 1px; background: #f0f0f5; margin: 6px 0; }
.nav-dd-logout:hover { background: #fef2f2 !important; color: #E30613 !important; }
.nav-dd-logout:hover i { color: #E30613 !important; }

/* Burger */
.burger {
  display: none; border: none;
  background: rgba(243,146,0,0.07); border: 1.5px solid rgba(243,146,0,0.22);
  color: var(--primary); font-size: 1rem; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.burger:hover { background: rgba(243,146,0,0.14); border-color: rgba(243,146,0,0.4); }

/* ── HERO (thème clair) ──────────────────────── */
section.hero-section {
  height: 100vh;
  box-sizing: border-box;
  padding-top: 68px;
  background: #ffffff url('../images/background.png') center / cover no-repeat !important;
  position: relative; overflow: hidden;
  display: flex; align-items: stretch;
}

/* Animated gradient blobs (subtle on light bg) */
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.12;
  animation: blobFloat 8s ease-in-out infinite;
  pointer-events: none;
}
.blob-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; left: -150px;
  animation-delay: 0s;
}
.blob-2 {
  width: 500px; height: 500px;
  background: var(--secondary);
  bottom: -150px; right: -120px;
  animation-delay: -3s;
}
.blob-3 {
  width: 350px; height: 350px;
  background: #e879f9;
  top: 40%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: -5s; opacity: 0.06;
}
@keyframes blobFloat {
  0%, 100% { transform: scale(1) translate(0,0); }
  33%       { transform: scale(1.06) translate(20px,-20px); }
  66%       { transform: scale(0.95) translate(-15px,15px); }
}

.hero-inner {
  flex: 1; min-width: 0;
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 20px 32px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(243,146,0,0.08);
  border: 1.5px solid rgba(243,146,0,0.25);
  color: var(--primary);
  padding: 7px 16px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 700;
  margin-bottom: 24px; letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  color: #0a0a14;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero-gradient-text {
  background: linear-gradient(90deg, var(--primary) 0%, #ff6b35 50%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: #6b7280;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-bottom: 40px;
  font-weight: 400;
}

/* Search box */
.hero-search-box { margin-bottom: 28px; }
.hero-search-inner {
  display: flex; align-items: center;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 60px; padding: 6px 6px 6px 22px;
  max-width: 600px; margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search-inner:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(243,146,0,0.12);
}
.hero-search-inner > i { color: #bbb; font-size: 0.9rem; margin-right: 10px; }
.hero-search-inner input {
  flex: 1; background: none; border: none; outline: none;
  color: #111; font-size: 1rem; font-family: var(--font);
  min-width: 0;
}
.hero-search-inner input::placeholder { color: #bbb; }
.hero-search-inner button {
  padding: 12px 24px; border-radius: 50px; border: none;
  background: linear-gradient(90deg, var(--primary), #ff6b35);
  color: #fff; font-weight: 800; font-size: 0.9rem;
  cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(243,146,0,0.4);
  transition: opacity 0.2s;
}
.hero-search-inner button:hover { opacity: 0.88; }

.hero-search-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 14px;
}
.hero-search-tags span {
  padding: 5px 13px; border-radius: 50px;
  border: 1.5px solid #e5e7eb;
  color: #6b7280; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 5px;
  background: #fff;
}
.hero-search-tags span:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(243,146,0,0.05);
}

/* Stats bar */
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  margin-top: 28px;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block; font-size: 1.4rem; font-weight: 900;
  background: linear-gradient(90deg, var(--primary), #ff6b35);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat span { color: #9ca3af; font-size: 0.78rem; font-weight: 500; }
.hero-stat-sep { width: 1px; height: 36px; background: #e5e7eb; }

/* ── Colonnes latérales d'annonces ───────────────────────── */
.hero-ad-col {
  width: 170px; flex-shrink: 0;
  overflow: hidden;
  align-self: stretch;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.ad-track {
  display: flex; flex-direction: column; gap: 12px;
  padding: 12px 0;
}

/* Gauche : descend (haut → bas) */
.ad-track-down {
  animation: adScrollDown 28s linear infinite;
}
@keyframes adScrollDown {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Droite : monte (bas → haut) */
.ad-track-up {
  animation: adScrollUp 32s linear infinite;
}
@keyframes adScrollUp {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* Wrapper avec bordure tournante */
.ad-slot-wrap {
  width: 170px; flex-shrink: 0;
  padding: 2.5px; border-radius: 14px;
  position: relative; overflow: hidden;
  background: transparent;
}
.ad-slot-wrap::before {
  content: "";
  position: absolute; inset: -60%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    #F39200 80deg,
    #ff7b1c 140deg,
    transparent 200deg,
    #312783 280deg,
    #5b4fc9 340deg,
    transparent 360deg
  );
  animation: adBorderSpin 5s linear infinite;
  z-index: 0;
}
@keyframes adBorderSpin { to { transform: rotate(360deg); } }

/* Card rectangulaire intérieure */
.ad-slot {
  position: relative; z-index: 1;
  width: 100%; border-radius: 12px;
  background: #fff;
  aspect-ratio: 16/9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.ad-num {
  position: absolute; top: 6px; left: 9px;
  font-size: 0.6rem; font-weight: 800; color: #d1d5db;
  letter-spacing: .5px;
}
.ad-slot > i {
  font-size: 1.3rem;
  color: #d1d5db;
}
.ad-label {
  font-size: 0.62rem; font-weight: 700; color: #d1d5db;
  text-transform: uppercase; letter-spacing: .5px;
}

/* Sur mobile : masquer les colonnes */
@media (max-width: 900px) {
  .hero-ad-col { display: none; }
}

/* ── SHARED SECTION STYLES ───────────────────── */
.cats-section, .listings-section {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 24px;
}
.section-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; gap: 12px;
}
.section-tag {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; color: var(--primary); margin-bottom: 4px;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900; letter-spacing: -0.5px; color: #0a0a14;
}
.see-all-link {
  color: var(--primary); font-weight: 700; font-size: 0.88rem;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: gap 0.2s;
}
.see-all-link:hover { gap: 11px; }

/* ── CATEGORIES GRID ─────────────────────────── */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.cat-card {
  background: #fff;
  border: 1.5px solid #ebebf0;
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
  border-color: transparent;
}
.cat-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.2s;
}
.cat-card:hover .cat-icon-wrap { transform: scale(1.12); }
.cat-name {
  font-size: 0.76rem; font-weight: 700; color: #333;
  line-height: 1.2; letter-spacing: 0.1px;
}

/* ── LISTINGS FILTERS ────────────────────────── */
.listings-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 16px; border-radius: 50px;
  border: 1.5px solid #e0e0e8;
  background: #fff; color: #555;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.18s;
  display: flex; align-items: center; gap: 6px;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--primary); border-color: var(--primary);
  color: #fff; box-shadow: 0 4px 12px rgba(243,146,0,0.3);
}

/* ── LISTINGS GRID — même rendu que le catalogue ── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 16px;
}

/* ── PCARD (copiés depuis catalogue.css pour éviter le conflit de reset CSS) ── */
.pcard {
  background: #fff; border-radius: 14px;
  overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,0.12); }
.pcard-img-wrap {
  position: relative; aspect-ratio: 1/1; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(90deg, #ebebf0 25%, #f5f5f8 50%, #ebebf0 75%);
  background-size: 200% 100%; animation: pcard-shimmer 1.4s infinite;
}
.pcard-img-wrap:has(.pcard-img) { animation: none; background: none; }
@keyframes pcard-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.pcard-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-noimg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #f0f0f6, #e8e8f0);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #ccc;
}
.pcard-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 6px;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.3px; color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.pb-promo { background: #312783; } .pb-don { background: #16a34a; }
.pb-egare { background: #f97316; } .pb-new  { background: #3b82f6; }
.pb-promo-pct { background: #E30613; }
.pcard-fav {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  font-size: 0.82rem; color: #bbb;
  transition: color 0.2s, transform 0.15s;
}
.pcard-fav:hover { color: #ef4444; transform: scale(1.12); }
.pcard-fav.favorited { color: #ef4444; }
.pcard-fav.favorited i { font-weight: 900; }
.pcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-price-row { margin-bottom: 2px; }
.pc-price { font-size: 1rem; font-weight: 900; color: #F39200; letter-spacing: -0.3px; }
.pc-price small { font-size: 0.68rem; font-weight: 600; }
.pc-orig { font-size: 0.72rem; text-decoration: line-through; color: #bbb; margin-left: 5px; }
.pc-free {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  background: rgba(22,163,74,.1); border: 1px solid #16a34a;
  color: #16a34a; font-size: 0.7rem; font-weight: 800;
}
.pc-lost { display: inline-flex; align-items: center; gap: 4px; font-size: 0.76rem; font-weight: 700; color: #312783; }
.pcard-title {
  font-size: 0.83rem; font-weight: 700; color: #111; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-loc { display: flex; align-items: center; gap: 4px; font-size: 0.72rem; color: #888; }
.pcard-loc i { font-size: 0.62rem; color: #F39200; }
.pcard-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #f0f0f5; padding-top: 7px; margin-top: auto;
}
.pcard-user { display: flex; align-items: center; gap: 5px; }
.pcard-avatar {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(243,146,0,.12); color: #F39200;
  font-size: 0.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.pcard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pcard-user span { font-size: 0.7rem; color: #777; font-weight: 600; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-stats { display: flex; align-items: center; gap: 5px; font-size: 0.68rem; color: #aaa; }
.pcard-stats i { font-size: 0.6rem; }
.listing-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1.5px solid #ebebf0;
  overflow: hidden; cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
  border-color: transparent;
}
.listing-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; display: block;
  background: #f0f0f5;
}
.listing-img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f0f0f8, #e8e8f0);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #ccc;
}
.listing-body { padding: 14px; }
.listing-type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 3px 8px; border-radius: 6px;
  margin-bottom: 8px;
}
.badge-vente   { background: rgba(243,146,0,.1); color: var(--primary); }
.badge-don     { background: rgba(22,163,74,.1);  color: #16a34a; }
.badge-egare   { background: rgba(49,39,131,.1);  color: var(--secondary); }
.listing-title {
  font-size: 0.9rem; font-weight: 700; color: #111;
  margin-bottom: 6px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-price {
  font-size: 1rem; font-weight: 800; color: var(--primary);
  margin-bottom: 8px;
}
.listing-price.free { color: #16a34a; }
.listing-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.74rem; color: #999; gap: 4px;
}
.listing-loc { display: flex; align-items: center; gap: 4px; }

/* ── LCARD (mobile-style product card) ───────── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.lcard {
  background: #fff; border-radius: 14px;
  overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform 0.22s, box-shadow 0.22s;
}
.lcard:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,0.12); }

.lcard-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.lcard-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcard-noimg {
  width: 100%; height: 100%;
  background: #f0f0f6; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: #ccc;
}

.lcard-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 6px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.3px; color: #fff;
}
.lb-promo  { background: #312783; }
.lb-don    { background: #16a34a; }
.lb-egare  { background: #f97316; }
.lb-new    { background: #3b82f6; }

.lcard-fav {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  font-size: 0.85rem; color: #bbb;
  transition: color 0.2s, transform 0.15s;
}
.lcard-fav:hover { color: #ef4444; transform: scale(1.12); }
.lcard-fav.favorited { color: #ef4444; }
.lcard-fav.favorited i { font-weight: 900; }

.lcard-body { padding: 10px 12px 12px; }

.lcard-price-row { margin-bottom: 5px; }
.lc-price {
  font-size: 1rem; font-weight: 900; color: var(--primary);
  letter-spacing: -0.3px;
}
.lc-price small { font-size: 0.7rem; font-weight: 600; }
.lc-free {
  display: inline-block; padding: 2px 7px; border-radius: 5px;
  background: rgba(22,163,74,.1); border: 1px solid #16a34a;
  color: #16a34a; font-size: 0.72rem; font-weight: 800;
}
.lc-lost {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.78rem; font-weight: 700; color: #312783;
}

.lcard-title {
  font-size: 0.84rem; font-weight: 700; color: #111; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 6px;
}
.lcard-loc {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.72rem; color: #888; margin-bottom: 7px;
}
.lcard-loc i { font-size: 0.65rem; color: var(--primary); }

.lcard-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #f0f0f5; padding-top: 7px;
}
.lcard-user { display: flex; align-items: center; gap: 5px; }
.lcard-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(243,146,0,.15); color: var(--primary);
  font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.lcard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lcard-user span { font-size: 0.7rem; color: #777; font-weight: 600; }
.lcard-stats {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.7rem; color: #aaa;
}
.lcard-stats i { font-size: 0.62rem; }

.listings-more { text-align: center; margin-top: 40px; }
.btn-more {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 38px; border-radius: 50px;
  background: linear-gradient(135deg, #F39200 0%, #ff6b1c 55%, #E30613 100%);
  color: #fff; font-weight: 800; font-size: 0.92rem;
  letter-spacing: 0.1px;
  box-shadow: 0 8px 28px rgba(243,146,0,0.42), 0 2px 0 rgba(255,255,255,0.18) inset;
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s;
  animation: btnMoreGlow 3s ease-in-out infinite;
}
.btn-more::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
  animation: btnMoreShimmer 3.2s ease-in-out infinite;
}
.btn-more i { font-size: 0.85rem; }
.btn-more:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 14px 40px rgba(243,146,0,0.58), 0 2px 0 rgba(255,255,255,0.18) inset;
}
.btn-more:active { transform: translateY(-1px) scale(1); }
@keyframes btnMoreGlow {
  0%, 100% { box-shadow: 0 8px 28px rgba(243,146,0,0.42), 0 2px 0 rgba(255,255,255,0.18) inset; }
  50%       { box-shadow: 0 10px 38px rgba(243,146,0,0.68), 0 2px 0 rgba(255,255,255,0.18) inset; }
}
@keyframes btnMoreShimmer {
  0%       { left: -100%; }
  45%, 100% { left: 160%; }
}

/* ── APP BANNER ──────────────────────────────── */
.app-banner {
  background-color: #111118;
  background-image: linear-gradient(135deg, #0d0d14 0%, #1a1040 50%, #0d0d14 100%);
  position: relative; overflow: hidden;
  isolation: isolate;
  /* Assure que le fond sombre s'applique même si les variables ne se chargent pas */
  color: #fff;
}
.app-banner::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(243,146,0,0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(49,39,131,0.3) 0%, transparent 55%);
  pointer-events: none;
}
.app-banner-inner {
  max-width: 1280px; margin: 0 auto; padding: 80px 24px;
  display: flex; align-items: center; gap: 60px;
  position: relative; z-index: 1;
}
.app-banner-text {
  flex: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
}
.app-banner-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: #fff; margin: 16px 0 12px;
  letter-spacing: -0.5px; line-height: 1.15;
  text-align: left;
}
.app-banner-text p { color: rgba(255,255,255,0.55); font-size: 1rem; margin-bottom: 32px; line-height: 1.65; text-align: left; }
.app-stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff; transition: background 0.2s;
}
.store-btn:hover { background: rgba(255,255,255,0.14); }
.store-btn i { font-size: 1.6rem; }
.store-btn small { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.5); }
.store-btn strong { display: block; font-size: 0.92rem; font-weight: 700; }

/* Coming soon */
.app-coming-soon { display: flex; flex-direction: column; gap: 18px; }
.app-dev-status {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.6); font-size: 0.82rem; font-weight: 600;
}
.dev-pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
  animation: devPulse 2s infinite;
}
@keyframes devPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.app-store-cards { display: flex; flex-direction: column; gap: 10px; }
.app-store-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.13);
  border-radius: 16px; padding: 14px 18px;
  transition: background 0.2s;
}
.app-store-card:hover { background: rgba(255,255,255,0.12); }
.app-store-card i { font-size: 1.6rem; color: rgba(255,255,255,0.6); flex-shrink: 0; }
.store-card-text { flex: 1; }
.store-card-text span { display: block; font-size: 0.68rem; color: rgba(255,255,255,0.4); line-height: 1.3; }
.store-card-text strong { display: block; font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.store-card-badge {
  background: rgba(243,146,0,0.15); border: 1px solid rgba(243,146,0,0.35);
  color: #F39200; font-size: 0.68rem; font-weight: 800;
  padding: 5px 11px; border-radius: 20px; flex-shrink: 0;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* Phone mockup */
.app-banner-visual { flex-shrink: 0; }
.phone-mockup {
  width: 200px; height: 360px;
  background: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 36px; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.phone-screen img { width: 120px; opacity: 1; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 1.5px solid #ebebf0;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 24px 36px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-logo { height: 38px; margin-bottom: 14px; }
.footer-brand p { color: #6b7280; font-size: 0.85rem; line-height: 1.75; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: #f5f5f8; border: 1.5px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  color: #555; font-size: 0.92rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.footer-socials a:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
  transform: translateY(-2px);
}
.footer-col h4 {
  color: #111; font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block; color: #6b7280; font-size: 0.85rem;
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1.5px solid #ebebf0;
  max-width: 1280px; margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { color: #aaa; font-size: 0.8rem; }
.footer-back-top {
  display: flex; align-items: center; gap: 6px;
  background: #f5f5f8; border: 1.5px solid #e5e7eb;
  color: #6b7280; font-size: 0.78rem; font-family: var(--font);
  padding: 7px 14px; border-radius: 20px; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.footer-back-top:hover {
  background: var(--primary); border-color: var(--primary);
  color: #fff; transform: translateY(-2px);
}

/* Tablette : 2 colonnes */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile petit (≤540px) */
@media (max-width: 540px) {
  .footer-inner { padding: 32px 16px 24px; gap: 24px 14px; }
  .footer-brand .footer-logo { height: 42px; }
  .footer-socials a { width: 36px; height: 36px; }
}

/* ── SKELETON LOADER ─────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #ebebf0 25%, #f5f5f8 50%, #ebebf0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 10px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid #ebebf0; }
.skeleton-img  { width: 100%; aspect-ratio: 4/3; }
.skeleton-body { padding: 14px; }
.skeleton-line { height: 12px; margin-bottom: 8px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.xshort { width: 40%; }

/* ── MOBILE SIDE DRAWER ──────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 399;
  background: rgba(10,10,20,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 400;
  width: 85%; max-width: 320px;
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  box-shadow: -12px 0 56px rgba(0,0,0,0.18);
}
.mobile-drawer.open { transform: translateX(0); }

/* En-tête drawer */
.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #f0f0f5;
  flex-shrink: 0;
}
.drawer-logo-link img { height: 28px; }
.drawer-close-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb; color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer;
  transition: background .15s, color .15s;
}
.drawer-close-btn:hover { background: #e5e7eb; color: #111; }

/* Section utilisateur */
.drawer-user-section { padding: 14px 16px 0; flex-shrink: 0; }

.drawer-user-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg,rgba(243,146,0,0.07),rgba(49,39,131,0.05));
  border: 1px solid rgba(243,146,0,0.18);
  margin-bottom: 10px;
}
.drawer-user-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#F39200,#312783);
  color: #fff; font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.drawer-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.drawer-user-info { min-width: 0; }
.drawer-user-name {
  font-size: 0.88rem; font-weight: 700; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drawer-user-email {
  font-size: 0.73rem; color: #9ca3af;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.drawer-auth-btns { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.drawer-btn-login {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 10px;
  border: 1.5px solid #e0e0ea; color: #444;
  font-size: 0.88rem; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.drawer-btn-login:hover { border-color: var(--primary); color: var(--primary); }

/* Navigation */
.drawer-nav {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 16px; flex-shrink: 0;
}
.drawer-nav-sep { height: 1px; background: #f0f0f5; margin: 6px 0; }
.drawer-nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; border-radius: 12px;
  color: #444; font-size: 0.9rem; font-weight: 600;
  border: none; background: none; cursor: pointer;
  text-align: left; width: 100%;
  transition: background .15s, color .15s;
}
.drawer-nav-item i { width: 20px; text-align: center; color: #aaa; font-size: 0.88rem; flex-shrink: 0; }
.drawer-nav-item:hover, .drawer-nav-item:hover i { color: var(--primary); }
.drawer-nav-item:hover { background: #f5f5f8; }
.drawer-nav-item.danger { color: #ef4444; }
.drawer-nav-item.danger i { color: #fca5a5; }
.drawer-nav-item.danger:hover { background: #fef2f2; color: #dc2626; }

/* Recherche */
.drawer-search { padding: 12px 16px 8px; flex-shrink: 0; }
.drawer-search-inner {
  display: flex; align-items: center; gap: 8px;
  background: #f7f7fb; border: 1.5px solid #ebebf2;
  border-radius: 50px; padding: 0 8px 0 16px; height: 44px;
  transition: border-color .2s;
}
.drawer-search-inner:focus-within { border-color: var(--primary); }
.drawer-search-inner i { color: #bbb; font-size: 0.82rem; flex-shrink: 0; }
.drawer-search-inner input {
  flex: 1; background: none; border: none; outline: none;
  color: #111; font-size: 0.9rem; font-family: var(--font); min-width: 0;
}
.drawer-search-inner input::placeholder { color: #bbb; }
.drawer-search-inner button {
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; flex-shrink: 0;
}

/* Pied du drawer */
.drawer-footer {
  padding: 12px 16px 28px;
  margin-top: auto; flex-shrink: 0;
}
.drawer-publish-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg,var(--primary) 0%,#ff7b1c 100%);
  color: #fff; font-size: 0.9rem; font-weight: 800;
  box-shadow: 0 4px 18px rgba(243,146,0,0.35);
  transition: opacity .18s, transform .15s;
}
.drawer-publish-btn:hover { opacity: .9; transform: translateY(-1px); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1100px) {
  .hero-slider { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links-group { gap: 0; }
  .nav-pill-link { padding: 7px 10px; font-size: 0.79rem; }
  .nav-sep { margin: 0 12px; }
  .cats-section, .listings-section { padding: 56px 20px; }
}

@media (max-width: 768px) {
  section.hero-section {
    background-image: url('../images/background-mobile.png') !important;
    background-position: center top !important;
    background-size: cover !important;
  }

  /* ── Carousel fix : contenir l'overflow de la track animée ── */
  .hero-inner { overflow: hidden; }
  .hero-community { margin-bottom: 20px; }
  .hero-community-track-wrap {
    /* réduire la zone de fade pour éviter les débordements lateraux */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image:         linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    max-width: 100%;
    contain: paint; /* clip strict sans toucher au layout des parents */
  }
  .hero-community-avatar {
    width: 42px; height: 42px;
    font-size: 0.8rem; border-width: 2px;
  }
  .hero-community-label { font-size: 0.78rem; }

  .nav-links-group { display: none; }
  .nav-comm { display: none; }
  .nav-sep { display: none; }
  .burger { display: flex; }

  /* Pousser la zone droite jusqu'au bord, pill + burger collés */
  .nav-right { margin-left: auto; gap: 0; align-items: center; flex-shrink: 0; }
  .nav-right .burger { margin-left: 4px !important; }

  /* Bell + avatar : pill compact, masquer les boutons connexion/publier */
  .nav-actions {
    display: flex; align-items: center; gap: 2px;
    background: rgba(243,146,0,0.07); border: 1.5px solid rgba(243,146,0,0.22);
    border-radius: 50px; padding: 3px 6px 3px 4px;
  }
  .btn-nav-login, .btn-nav-register { display: none !important; }

  /* Avatar : cercle seul, sans nom ni chevron */
  .nav-profile-name,
  .nav-profile-chevron { display: none !important; }
  .nav-profile-btn {
    padding: 2px; border-radius: 50%;
    background: transparent !important; border: none !important;
    box-shadow: none !important;
  }
  .nav-notif-btn { background: transparent !important; border: none !important; }

  /* Dropdown positionné pour ne pas sortir de l'écran */
  .nav-profile-dropdown { right: 0; left: auto; min-width: 210px; }

  /* Header un peu plus compact */
  .site-nav { height: 60px; padding: 0 16px; }

  .hero-section { height: auto; min-height: 100vh; padding: 88px 20px 50px; align-items: center; }
  .hero-inner { padding: 20px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; padding: 10px 20px; }
  .hero-stat strong { font-size: 1.15rem; }

  .section-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cats-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .cat-icon-wrap { width: 44px; height: 44px; font-size: 1.1rem; }
  .cat-card { padding: 16px 10px; }

  /* App banner mobile */
  .app-banner-visual { display: none; }
  .app-banner-inner { flex-direction: column; padding: 52px 20px 44px; gap: 0; }
  .app-banner-text { align-items: center; text-align: center; }
  .app-banner-text h2 { text-align: center; font-size: 1.7rem; margin: 12px 0 10px; }
  .app-banner-text p { text-align: center; font-size: 0.92rem; margin-bottom: 24px; }
  .app-dev-status { justify-content: center; margin-bottom: 4px; }
  .app-store-cards {
    flex-direction: column; gap: 10px; width: 100%; max-width: 320px; margin: 0 auto;
  }
  .app-store-card {
    flex: none; width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
  }
  .app-store-card i { font-size: 1.8rem; }
  .store-card-text span { font-size: 0.72rem; }
  .store-card-text strong { font-size: 0.95rem; }
  .store-card-badge { font-size: 0.72rem; padding: 5px 12px; }

  /* Footer mobile */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
    padding: 40px 24px 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 18px;
  }
  .footer-brand p { display: none; }
  .footer-brand .footer-logo { height: 48px; margin-bottom: 0; }
  .footer-socials { margin-top: 0; gap: 10px; justify-content: center; }
  .footer-inner > .footer-col:last-child { display: none; }
  .footer-col { text-align: center; }
  .footer-col h4 { font-size: 0.72rem; margin-bottom: 14px; }
  .footer-col a { margin-bottom: 9px; font-size: 0.87rem; }
  .footer-bottom {
    flex-direction: column; align-items: center;
    text-align: center; gap: 12px; padding: 18px 20px 24px;
  }

  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cats-section, .listings-section { padding: 48px 16px; }
}

@media (max-width: 480px) {
  .hero-section { padding: 80px 16px 40px; height: auto; }
  .hero-title { letter-spacing: -1px; }
  .hero-search-inner button span { display: none; }
  .hero-search-inner button { padding: 12px 16px; }
  .hero-stats { gap: 16px; padding: 8px 16px; }
  .hero-stat-sep { display: none; }
  .hero-community-avatar {
    width: 36px; height: 36px;
    font-size: 0.72rem; border-width: 2px;
  }
  .hero-community { gap: 8px; margin-bottom: 16px; }
  .footer-inner { padding: 28px 14px 20px; gap: 22px 12px; }
  .app-store-cards { flex-direction: column; align-items: center; }
  .app-store-card { max-width: 260px; width: 100%; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .listings-grid .pcard-body { padding: 8px 10px 10px; }
  .listings-grid .pcard-title { font-size: 0.8rem; }
  .listings-grid .pc-price { font-size: 0.9rem; }
  .section-title { font-size: 1.35rem; }
  .hero-badge { font-size: 0.75rem; padding: 6px 12px; }
}

@media (max-width: 360px) {
  .hero-search-inner { padding: 6px 6px 6px 14px; }
  .site-nav { padding: 0 16px; }
  .listings-grid { gap: 8px; }
}

/* ── COMMUNITY CAROUSEL ───────────────────────── */
.hero-community {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.hero-community-track-wrap {
  width: 100%; max-width: 520px;
  overflow: hidden; position: relative;
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.hero-community-track {
  display: flex; gap: 10px;
  animation: communityScroll 22s linear infinite;
  width: max-content;
}
.hero-community-track:hover { animation-play-state: paused; }
@keyframes communityScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.hero-community-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 800; color: #fff;
  border: 3px solid rgba(255,255,255,0.85);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  cursor: default; position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.hero-community-avatar:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  z-index: 2;
}
.hero-community-avatar[title]:hover::after {
  content: attr(title);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: #111; color: #fff; font-size: 0.68rem; font-weight: 600;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap;
  pointer-events: none; z-index: 10;
}
.hero-community-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: #6b7280; font-weight: 500;
}
.hero-community-label strong { color: var(--primary); font-weight: 800; }
.hero-community-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  animation: commPulse 2s ease-in-out infinite;
}
@keyframes commPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0.08); }
}

/* ── COOKIE BANNER ───────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px);
  z-index: 9999; width: calc(100% - 32px); max-width: 780px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  transition: transform 0.5s cubic-bezier(.22,1,.36,1), opacity 0.4s;
  opacity: 0; pointer-events: none;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1; pointer-events: all;
}
.cookie-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
}
.cookie-icon-wrap {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #fff8ed, #fff0d0);
  border: 1.5px solid rgba(243,146,0,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--primary);
}
.cookie-text { flex: 1; min-width: 0; }
.cookie-text strong {
  display: block; font-size: 0.88rem; font-weight: 800; color: #111; margin-bottom: 2px;
}
.cookie-text p { font-size: 0.76rem; color: #6b7280; line-height: 1.5; margin: 0; }
.cookie-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cookie-btn-decline {
  padding: 9px 16px; border-radius: 10px; border: 1.5px solid #e5e7eb;
  background: transparent; color: #6b7280; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
  white-space: nowrap;
}
.cookie-btn-decline:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.cookie-btn-accept {
  padding: 9px 18px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, var(--primary), #ff7b1c);
  color: #fff; font-size: 0.8rem; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 14px rgba(243,146,0,0.38);
  transition: opacity 0.2s, transform 0.15s; font-family: var(--font);
  white-space: nowrap;
}
.cookie-btn-accept:hover { opacity: 0.9; transform: translateY(-1px); }
.cookie-close {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  background: #f3f4f6; color: #9ca3af; font-size: 0.75rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s, color 0.2s;
}
.cookie-close:hover { background: #e5e7eb; color: #374151; }
@media (max-width: 600px) {
  .cookie-inner { flex-wrap: wrap; gap: 12px; }
  .cookie-text { width: 100%; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
  .cookie-close { position: absolute; top: 12px; right: 12px; }
  .cookie-banner { bottom: 12px; border-radius: 16px; }
}
