@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --orange: #F97316; --orange-deep: #C2540A; --orange-light: #FFF7ED;
  --green: #16A34A; --green-light: #F0FDF4; --green-deep: #14532D;
  --dark: #1A1A1A; --dark2: #2D2D2D; --gray: #6B6B6B; --gray-light: #F5F5F5;
  --white: #FFFFFF; --blue: #2563EB; --blue-light: #EFF6FF;
  --red: #DC2626; --red-light: #FEF2F2; --border: #E5E7EB;
  --radius: 14px; --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --font-head: 'Outfit', sans-serif; --font-body: 'Inter', sans-serif;
  /* Nuances additionnelles réservées au module Impact carbone */
  --carbon-green: #15803D; --carbon-light: #DCFCE7;
  --carbon-gold: #CA8A04; --carbon-platinum: #0891B2;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--dark); background: var(--gray-light); font-size: 15px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── UTILS ── */
.text-orange { color: var(--orange); }
.text-green  { color: var(--green); }
.logo-orange { color: var(--orange); }
.logo-green  { color: var(--green); font-style: normal; }
.container   { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── NAVBAR ── */
.navbar { background: var(--dark); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 16px; height: 60px; }
.nav-logo { font-family: var(--font-head); font-weight: 900; font-size: 22px; color: var(--white); letter-spacing: -0.5px; }
.nav-search-mini { flex: 1; max-width: 360px; display: flex; }
.nav-search-mini form { display: flex; width: 100%; background: rgba(255,255,255,0.08); border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.nav-search-mini input { flex: 1; background: transparent; border: none; color: var(--white); padding: 8px 12px; font-size: 13px; outline: none; font-family: var(--font-body); }
.nav-search-mini input::placeholder { color: rgba(255,255,255,0.65); }
.nav-search-mini button { background: var(--orange); border: none; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.search-suggestions { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--white); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,0.18); overflow: hidden; z-index: 200; display: none; }
.search-suggestions.show { display: block; }
.search-suggestion-item { padding: 10px 14px; font-size: 13.5px; color: var(--dark); cursor: pointer; }
.search-suggestion-item:hover, .search-suggestion-item.active { background: var(--gray-light); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { color: rgba(255,255,255,0.75); padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; transition: all 0.2s; white-space: nowrap; }
.nav-link:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-link-orange { background: var(--orange); color: var(--white) !important; font-weight: 700; }
.nav-link-orange:hover { background: var(--orange-deep); }
.nav-link-user { background: rgba(255,255,255,0.1); color: var(--white) !important; }
.nav-link-sm { font-size: 12px; }
.nav-burger { display: none; background: transparent; border: none; color: var(--white); font-size: 22px; cursor: pointer; margin-left: auto; }
.nav-mobile { display: none; flex-direction: column; background: var(--dark2); border-top: 1px solid rgba(255,255,255,0.08); }
.nav-mobile.open { display: flex; }
.nmob-link { color: rgba(255,255,255,0.8); padding: 14px 20px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.06); font-weight: 500; }
.nmob-primary { background: var(--orange); color: var(--white) !important; font-weight: 700; }

/* ── FLASH ── */
.flash { padding: 12px 20px; font-size: 14px; font-weight: 600; text-align: center; }
.flash-success { background: var(--green-light); color: var(--green-deep); border-bottom: 2px solid #BBF7D0; }
.flash-error   { background: var(--red-light); color: var(--red); border-bottom: 2px solid #FECACA; }

/* ── HERO ── */
.hero { background: linear-gradient(145deg, var(--dark) 0%, var(--dark2) 100%); padding: 52px 20px 44px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px; background: var(--orange); opacity: 0.08; border-radius: 50%; }
.hero-inner { max-width: 700px; margin: 0 auto; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(249,115,22,0.18); border: 1px solid rgba(249,115,22,0.3); color: #FDB97D; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; margin-bottom: 18px; letter-spacing: 0.4px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(28px,5vw,46px); font-weight: 900; color: var(--white); line-height: 1.12; margin-bottom: 14px; }
.hero-sub { color: rgba(255,255,255,0.68); font-size: 16px; margin-bottom: 28px; max-width: 560px; }

/* Search */
.hero-search { width: 100%; }
.search-wrapper { display: flex; align-items: center; background: var(--white); border-radius: 12px; padding: 6px 6px 6px 16px; gap: 8px; position: relative; margin-bottom: 12px; }
.search-icon { font-size: 18px; flex-shrink: 0; }
.search-wrapper input { flex: 1; border: none; outline: none; font-size: 15px; font-family: var(--font-body); background: transparent; color: var(--dark); }
.search-wrapper input::placeholder { color: #aaa; }
.btn-search { background: var(--orange); color: var(--white); border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--font-body); white-space: nowrap; }
.autocomplete-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); display: none; z-index: 50; border: 1px solid var(--border); overflow: hidden; }
.ac-item { padding: 11px 16px; font-size: 14px; cursor: pointer; color: var(--dark); }
.ac-item:hover { background: var(--orange-light); }
.search-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.stab { display: flex; align-items: center; gap: 5px; padding: 8px 16px; border-radius: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.stab.active, .stab:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* ── STATS ── */
.stats-bar { display: flex; background: var(--orange-light); border-bottom: 1px solid #FED7AA; }
.stat-item { flex: 1; text-align: center; padding: 16px 8px; border-right: 1px solid #FED7AA; }
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 900; color: var(--orange-deep); }
.stat-label { font-size: 11px; color: var(--gray); font-weight: 500; }

/* ── SOS ── */
.sos-section { background: var(--white); padding: 16px 20px; border-bottom: 1px solid var(--border); }
.sos-btn { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #DC2626, #B91C1C); color: var(--white); border-radius: 12px; padding: 14px 18px; max-width: 800px; margin: 0 auto; transition: opacity 0.2s; }
.sos-btn:hover { opacity: 0.92; }
.sos-left { display: flex; align-items: center; gap: 12px; }
.sos-icon { font-size: 24px; }
.sos-btn strong { display: block; font-size: 15px; font-weight: 700; }
.sos-btn span { font-size: 12px; opacity: 0.88; }
.sos-arrow { font-size: 22px; opacity: 0.7; }

/* ── SECTIONS ── */
.section-block { background: var(--white); padding: 28px 20px; border-bottom: 8px solid var(--gray-light); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.see-all { font-size: 13px; color: var(--orange); font-weight: 600; }

/* ── ANNONCE CARDS ── */
.annonces-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.annonces-scroll::-webkit-scrollbar { display: none; }
.annonce-card { min-width: 210px; flex-shrink: 0; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.annonce-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.annonce-card.urgent { border-color: #FCA5A5; }
.ac-header { background: var(--dark); padding: 8px 44px 8px 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ac-time { font-size: 10px; color: rgba(255,255,255,0.55); margin-left: auto; }
.badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.badge-urgent { background: var(--red); color: var(--white); animation: urgentPulse 1.5s ease-in-out infinite; }
@keyframes urgentPulse { 0%,100%{opacity:1} 50%{opacity:0.7} }
.badge-occasion { background: rgba(249,115,22,0.2); color: #FDB97D; }
.badge-neuf { background: rgba(37,99,235,0.2); color: #93C5FD; }
.ac-photo { width: 100%; height: 120px; background-size: cover; background-position: center; background-color: var(--dark2); }

/* ── CARTES ANNONCE EN DIRECT (dashboard vendeur, insérées par JS) ── */
.live-card { border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--white); }
.live-card.urgent-card { border-color: #FCA5A5; background: #FFF5F5; }
.live-card.new-card { animation: liveCardIn 0.35s ease-out; }
@keyframes liveCardIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.lc-header { background: var(--dark); padding: 10px 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-header.urgent-header { background: var(--red); }
.lc-tag { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 5px; }
.lc-tag.tag-urgent { background: var(--white); color: var(--red); }
.lc-commune { font-size: 11px; color: rgba(255,255,255,0.6); margin-left: auto; }
.lc-time { font-size: 11px; color: rgba(255,255,255,0.45); }
.lc-body { padding: 14px; }
.lc-piece { font-family: var(--font-head); font-size: 17px; font-weight: 800; margin-bottom: 3px; }
.lc-vehicle { font-size: 12px; color: var(--gray); margin-bottom: 10px; }
.lc-desc { background: var(--gray-light); border-radius: 8px; padding: 10px 12px; font-size: 13px; font-style: italic; color: var(--dark2); margin-bottom: 12px; line-height: 1.5; }
.lc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.lca-btn { background: var(--orange); color: var(--white); border-radius: 10px; padding: 11px; text-align: center; font-size: 13px; font-weight: 700; }
.ac-photo-placeholder { display: flex; align-items: center; justify-content: center; font-size: 40px; }

/* ── PAGINATION ── */
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 32px 0 12px; flex-wrap: wrap; }
.pager-btn { background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 16px; font-size: 13px; font-weight: 700; color: var(--dark); }
.pager-btn:hover { border-color: var(--orange); color: var(--orange); }
.pager-btn.pager-disabled { opacity: 0.4; pointer-events: none; }
.pager-info { font-size: 12.5px; color: var(--gray); }

/* ── FAVORIS ── */
.favori-btn { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; z-index: 5; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: transform 0.15s; }
.favori-btn:hover { transform: scale(1.1); }
.favori-btn.active { color: var(--red); }

/* ── SIGNALEMENT ── */
.signaler-link { font-size: 12px; color: var(--gray); text-decoration: underline; cursor: pointer; background: none; border: none; padding: 0; }
.signaler-link:hover { color: var(--red); }
.signaler-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.signaler-modal.show { display: flex; }
.signaler-box { background: var(--white); border-radius: 16px; padding: 24px; max-width: 420px; width: 100%; max-height: 90vh; overflow-y: auto; }

/* ── LIGHTBOX (zoom plein écran au clic sur une photo) ── */
.lightbox-img { cursor: zoom-in; }
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 400; align-items: center; justify-content: center; padding: 24px; }
.lightbox-overlay.show { display: flex; }
.lightbox-img-full { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); color: var(--white); border: none; font-size: 20px; cursor: pointer; line-height: 1; }
.lightbox-close:hover { background: rgba(255,255,255,0.28); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); color: var(--white); border: none; font-size: 20px; cursor: pointer; line-height: 1; }
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600; background: rgba(0,0,0,0.4); padding: 4px 12px; border-radius: 20px; }

/* ── Capture photo multi-emplacements (5 prises de vue, voir initPhotoCapture) ── */
.photo-slots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
/* Hauteur augmentée (72px -> 96px, voir bug signalé le 26/08/2026) : les
   deux boutons empilés (caméra/galerie) ne faisaient qu'environ 35px de
   haut chacun, sous le minimum recommandé (~44-48px) pour une cible tactile
   fiable au doigt — un mis-tap au bord (caméra visée, galerie touchée)
   pouvait ressembler à "le bouton caméra ouvre la galerie". Libellés texte
   ajoutés en plus des icônes pour la même raison : lever toute ambiguïté
   entre 📷 et 🖼️ à petite taille. */
.photo-slot { position: relative; width: 84px; height: 96px; border-radius: 10px; border: 2px dashed var(--border); background: var(--gray-light); display: flex; flex-direction: column; align-items: stretch; justify-content: center; overflow: hidden; transition: border-color 0.15s; }
.photo-slot:hover { border-color: var(--orange); }
.photo-slot.filled { border-style: solid; border-color: var(--border); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot-btn { flex: 1; min-height: 44px; border: none; background: transparent; cursor: pointer; font-size: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--gray); }
.photo-slot-btn-label { font-size: 9.5px; font-weight: 600; }
.photo-slot-btn:hover, .photo-slot-btn:active { background: rgba(0,0,0,0.06); }
.photo-slot-cam { border-bottom: 1px dashed var(--border); }

/* Prise de vue en direct dans la page (bug signalé le 26/08/2026, cause
   réelle : l'attribut HTML capture="environment" n'est honoré que par les
   navigateurs mobiles — sur Windows/Edge, même de bureau ou tablette type
   Surface, il n'a AUCUN effet, le bouton "caméra" ouvrait donc le même
   sélecteur de fichiers Windows que le bouton "galerie", ce qui ressemble
   à s'y méprendre à "ça ouvre toujours la galerie"). Utilise getUserMedia
   comme la vidéo (voir VideoRecorder) au lieu de compter sur cet attribut :
   fonctionne identiquement sur Windows, Android et iOS. Repli sur l'ancien
   input capture= si getUserMedia est indisponible (permission refusée,
   pas de caméra, très vieux navigateur). */
.camera-capture-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 400; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.camera-capture-overlay.show { display: flex; }
.camera-capture-video { max-width: 100%; max-height: 75vh; border-radius: 10px; background: #000; }
.camera-capture-actions { display: flex; gap: 14px; margin-top: 18px; }
.camera-capture-btn { border: none; border-radius: 50%; width: 60px; height: 60px; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.camera-capture-snap { background: var(--orange); color: white; }
.camera-capture-cancel { background: rgba(255,255,255,0.15); color: white; width: 48px; height: 48px; font-size: 18px; }
.photo-slot-remove { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,0.55); color: white; border: none; font-size: 11px; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; }

/* ── Capture vidéo (~2 min max, voir VideoRecorder) ── */
.video-capture-box { border: 2px dashed var(--border); border-radius: 12px; padding: 16px; background: var(--gray-light); }
.video-capture-preview { width: 100%; max-width: 320px; border-radius: 10px; display: block; margin: 0 auto 10px; background: #000; }
.video-capture-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--red); font-weight: 600; margin-bottom: 10px; }
.video-capture-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse-dot 1.2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.25} }

/* ── VÉRIFICATION VENDEUR & GÉOLOCALISATION ── */
.pill-attente { background: #FFFBEB; color: #92400E; }
.pill-rejete  { background: var(--red-light); color: var(--red); }
.verified-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--green-light); color: var(--green-deep); font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.gps-box { background: var(--gray-light); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; }
.gps-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.copy-btn { background: var(--white); border: 1.5px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--dark2); }
.copy-btn:hover { border-color: var(--orange); color: var(--orange); }
.verif-capture-box { display: block; border: 2px dashed var(--border); border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; background: var(--gray-light); background-size: cover; background-position: center; min-height: 140px; position: relative; }
.verif-capture-box.has-preview .verif-capture-hint { background: rgba(0,0,0,0.55); color: var(--white); border-radius: 8px; padding: 8px; }

/* ── COMMENT ÇA MARCHE ── */
.howitworks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.how-step { background: var(--white); border: 1.5px solid var(--border); border-radius: 16px; padding: 26px 20px 22px; text-align: center; position: relative; }
.how-num { position: absolute; top: -14px; left: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--white); font-family: var(--font-head); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.how-icon { font-size: 32px; margin-bottom: 10px; }
.how-step strong { display: block; font-family: var(--font-head); font-size: 15px; margin-bottom: 6px; }
.how-step p { font-size: 13px; color: var(--gray); line-height: 1.5; }

/* ── CATÉGORIES & MARQUES (accueil) ── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.categorie-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 8px; font-size: 12px; font-weight: 600; color: var(--dark); text-align: center; transition: all 0.2s; }
.categorie-chip:hover { border-color: var(--orange); background: var(--orange-light); color: var(--orange); }
.categorie-icon { font-size: 22px; }
.marques-row { display: flex; gap: 10px; flex-wrap: wrap; }
.marque-chip { background: var(--gray-light); border-radius: 20px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--dark2); }
.marque-chip:hover { background: var(--orange); color: var(--white); }
.ac-body { padding: 12px; }
.audio-indicator { display: flex; align-items: center; gap: 3px; margin-bottom: 8px; }
.audio-bar { width: 3px; background: var(--orange); border-radius: 2px; animation: audioWave 0.8s ease-in-out infinite; }
.audio-bar:nth-child(1){height:8px}.audio-bar:nth-child(2){height:14px;animation-delay:.1s}.audio-bar:nth-child(3){height:10px;animation-delay:.2s}.audio-bar:nth-child(4){height:16px;animation-delay:.15s}.audio-bar:nth-child(5){height:8px;animation-delay:.05s}
@keyframes audioWave { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(0.4)} }
.audio-label { font-size: 10px; color: var(--orange); font-weight: 700; margin-left: 3px; }
.ac-piece { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.ac-vehicle { font-size: 12px; color: var(--gray); margin-bottom: 10px; }
.ac-footer { display: flex; align-items: center; justify-content: space-between; }
.ac-commune { background: var(--orange-light); color: var(--orange-deep); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.ac-replies { font-size: 11px; color: var(--gray); }

/* ── COMPARATEUR ── */
.compare-banner { background: linear-gradient(135deg, var(--green), var(--green-deep)); padding: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.compare-banner strong { display: block; font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.compare-banner span { font-size: 13px; color: rgba(255,255,255,0.8); }
.btn-compare { background: var(--white); color: var(--green-deep); border: none; border-radius: 10px; padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--font-body); white-space: nowrap; }

/* ── VENDEURS ── */
.vendeurs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.vendeur-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 16px 12px; text-align: center; transition: all 0.2s; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.vendeur-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.vc-avatar { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--white); margin: 0 auto 10px; position: relative; }
.vc-tick { position: absolute; bottom: -4px; right: -4px; width: 18px; height: 18px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--white); border: 2px solid var(--white); }
.vc-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.vc-info { font-size: 11px; color: var(--gray); margin-bottom: 6px; }
.vc-stars { font-size: 13px; margin-bottom: 6px; }
.star-on { color: #F59E0B; }
.star-off { color: #D1D5DB; }
.vc-note { font-size: 11px; color: var(--gray); }
.badge-verified { font-size: 10px; font-weight: 700; background: var(--green-light); color: var(--green-deep); padding: 3px 8px; border-radius: 6px; display: inline-block; }
.badge-livraison { font-size: 10px; font-weight: 700; background: var(--blue-light); color: var(--blue); padding: 3px 8px; border-radius: 6px; display: inline-block; margin-top: 4px; }
.vendeur-cta { border-style: dashed; border-color: var(--orange); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; }
.vc-cta-icon { font-size: 28px; font-weight: 700; color: var(--orange); margin-bottom: 8px; }
.vc-cta-text { font-weight: 700; color: var(--orange); font-size: 13px; }
.vc-cta-sub { font-size: 11px; color: var(--gray); margin-top: 4px; }

/* ── TÉMOIGNAGES ── */
.temoignages-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.temoignage-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

/* ── PIECES ── */
.pieces-list { display: flex; flex-direction: column; gap: 10px; }
.piece-card { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; transition: border-color 0.2s; }
.piece-card:hover { border-color: var(--orange); }
.piece-icon { font-size: 28px; width: 52px; height: 52px; min-width: 52px; background: var(--gray-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.piece-img { width: 52px; height: 52px; min-width: 52px; border-radius: 10px; object-fit: cover; }
.piece-info { flex: 1; }
.piece-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.piece-meta { font-size: 12px; color: var(--gray); margin-bottom: 5px; }
.piece-price { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--green); white-space: nowrap; }

/* ── WAVE SECTION ── */
.wave-section { background: linear-gradient(135deg, #1565C0, #1E90FF); padding: 28px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wave-logo { font-family: var(--font-head); font-weight: 900; font-size: 28px; background: var(--white); color: #1E90FF; width: 60px; height: 60px; min-width: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wave-section strong { display: block; font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.wave-section span { font-size: 13px; color: rgba(255,255,255,0.85); }
.btn-wave-cta { background: var(--white); color: #1565C0; border: none; border-radius: 10px; padding: 12px 22px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--font-body); white-space: nowrap; margin-left: auto; }

/* ── FORMS ── */
.form-page { max-width: 680px; margin: 0 auto; padding: 28px 20px; }
.form-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px; }
.form-title { font-family: var(--font-head); font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.form-subtitle { font-size: 14px; color: var(--gray); margin-bottom: 24px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 7px; }
.form-group { margin-bottom: 20px; }
.form-input, .form-select, .form-textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 14px; font-family: var(--font-body);
  color: var(--dark); background: var(--white); outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--orange); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B6B6B' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.btn-primary { width: 100%; background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: var(--white); border: none; border-radius: 12px; padding: 15px; font-size: 16px; font-weight: 700; font-family: var(--font-head); cursor: pointer; box-shadow: 0 4px 16px rgba(249,115,22,0.3); letter-spacing: 0.3px; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.92; }
.btn-secondary { background: var(--gray-light); color: var(--dark); border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 20px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-body); }
.btn-green { background: var(--green); color: var(--white); border: none; border-radius: 10px; padding: 11px 20px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-wave { background: linear-gradient(135deg, #1565C0, #1E90FF); color: var(--white); border: none; border-radius: 10px; padding: 13px 20px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font-family: var(--font-body); }
.helper-text { font-size: 12px; color: var(--gray); margin-top: 5px; }

/* ── FOOTER ── */
.footer { background: var(--dark); padding: 48px 20px 32px; border-top: 3px solid var(--orange); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-logo { font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-links h4 { font-size: 12px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.footer-links a, .footer-links p { display: block; font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.footer-links a:hover { color: var(--white); }
.footer-contact-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 9px; line-height: 1.5; }
.footer-contact-row a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-contact-row a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.35); }

/* ── BOTTOM NAV MOBILE ── */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); z-index: 90; padding: 8px 0 12px; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); }
.bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; }
.bn-icon { font-size: 20px; }
.bn-label { font-size: 10px; color: var(--gray); font-weight: 500; }
.bn-item.active .bn-label { color: var(--orange); font-weight: 700; }
.bn-publish { }
.bn-icon-pub { width: 44px; height: 44px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 24px; font-weight: 700; margin-top: -16px; box-shadow: 0 4px 16px rgba(249,115,22,0.45); }

/* ── WHATSAPP FLOAT ── */
.wa-float { position: fixed; right: 18px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,0.45); z-index: 95; transition: transform 0.15s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ── ADMIN ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--dark); padding: 20px 0; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-logo { font-family: var(--font-head); font-weight: 900; font-size: 18px; color: var(--white); padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 500; transition: all 0.2s; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(249,115,22,0.15); color: var(--orange); }
.sidebar-icon { font-size: 18px; }
.admin-main { flex: 1; padding: 28px; overflow-y: auto; background: var(--gray-light); }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-title { font-family: var(--font-head); font-size: 24px; font-weight: 800; }
.kpi-grid-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.kpi-card-admin { border-radius: 14px; padding: 18px; color: var(--white); }
.kpi-icon-a { font-size: 24px; margin-bottom: 10px; }
.kpi-num-a { font-family: var(--font-head); font-weight: 900; font-size: 28px; line-height: 1; }
.kpi-label-a { font-size: 12px; opacity: 0.75; margin-top: 4px; }
.kpi-trend-a { font-size: 11px; opacity: 0.6; margin-top: 4px; }

/* Table */
.data-table { width: 100%; background: var(--white); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.data-table th { background: var(--gray-light); padding: 12px 16px; font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 16px; font-size: 13.5px; border-bottom: 1px solid var(--gray-light); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-light); }
.status-pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.pill-actif { background: var(--green-light); color: var(--green-deep); }
.pill-expire { background: var(--red-light); color: var(--red); }
.pill-essai { background: #FFFBEB; color: #92400E; }
.pill-suspendu { background: var(--gray-light); color: var(--gray); }

/* ── EMPTY / 404 ── */
.empty-msg { color: var(--gray); font-size: 14px; padding: 20px 0; }
.page-404 { text-align: center; padding: 80px 20px; }
.page-404 h1 { font-family: var(--font-head); font-size: 80px; font-weight: 900; color: var(--orange); }
.page-404 p { font-size: 18px; color: var(--gray); margin: 12px 0 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .nav-search-mini { display: none; }
  .nav-burger { display: block; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 24px; }
  .bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
  .wa-float { right: 14px; bottom: 82px; width: 50px; height: 50px; }
  .wa-float svg { width: 26px; height: 26px; }
  .hero { padding: 36px 16px 32px; }
  .section-block { padding: 22px 16px; }
  .row-3 { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 16px; }
}
@media (max-width: 480px) {
  .footer-container { grid-template-columns: 1fr; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .kpi-grid-admin { grid-template-columns: 1fr 1fr; }
}

/* ── Animation de bienvenue (confettis + ballons), voir declencherFete()
   dans main.js — nouveau client inscrit, ou vendeur fraîchement validé par
   l'admin (demandé le 27/08/2026). pointer-events:none sur tout le calque :
   purement décoratif, ne doit jamais bloquer un clic dessous pendant les
   ~3s d'affichage. */
.fete-overlay { position: fixed; inset: 0; z-index: 500; pointer-events: none; overflow: hidden; }
.fete-message {
  position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%) scale(0.85);
  font-family: var(--font-head); font-weight: 800; font-size: 20px; text-align: center;
  color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  background: rgba(0,0,0,0.32); padding: 14px 22px; border-radius: 16px;
  max-width: 85vw; opacity: 0;
  animation: feteMessage 3s ease forwards;
}
@keyframes feteMessage {
  0% { opacity: 0; transform: translate(-50%, -60%) scale(0.85); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  78% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
.fete-confetti {
  position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px;
  animation-name: feteChute; animation-timing-function: ease-in; animation-fill-mode: forwards;
}
@keyframes feteChute {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(560deg); opacity: 0.85; }
}
.fete-ballon { position: absolute; bottom: -60px; font-size: 40px; animation: feteMonte 3s ease-out forwards; }
@keyframes feteMonte {
  0% { transform: translateY(0) translateX(0); opacity: 1; }
  100% { transform: translateY(-115vh) translateX(14px); opacity: 0; }
}
