@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

/* ============================================================
   VARIABLES — LIGHT MODERNE
   Palette : ivoire chaud · charbon · orange vif · slate
   ============================================================ */
:root {
  --orange:        #f04d00;
  --orange-light:  #ff6a22;
  --orange-pale:   #fff4ee;
  --orange-mid:    #ffd5b8;

  --ink:           #1a1a1a;
  --ink-2:         #2d2d2d;
  --ink-3:         #484848;
  --slate:         #64748b;
  --slate-light:   #94a3b8;

  --border:        #e2e5ea;
  --border-light:  #f0f2f5;

  --white:         #ffffff;
  --bg:            #f7f6f3;
  --bg-2:          #efefec;
  --bg-card:       #ffffff;

  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     22px;

  --shadow-xs:     0 1px 3px rgba(0,0,0,0.06);
  --shadow:        0 2px 14px rgba(0,0,0,0.08);
  --shadow-md:     0 6px 28px rgba(0,0,0,0.10);
  --shadow-hover:  0 14px 44px rgba(0,0,0,0.13);
  --shadow-orange: 0 6px 24px rgba(240,77,0,0.25);

  --transition:    all 0.22s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html { overflow-x: hidden; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  min-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5rem;
  height: 66px;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  gap: 0.5rem;
}

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.65rem; font-weight: 800;
  letter-spacing: 1px; color: var(--ink);
  text-transform: uppercase; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.logo span { color: var(--orange); }
a.logo { text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-size: 1.65rem; font-weight: 800; letter-spacing: 1px; color: var(--ink); text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.5rem; }
a.logo span { color: var(--orange); }
.logo-icon { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
footer .footer-logo { display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; }
footer .footer-logo .logo-icon { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.footer-pub-legende { font-size: 0.78rem; color: var(--slate-light, #9ca3af); margin: 0 auto 1rem; opacity: 0.85; line-height: 1.45; max-width: 620px; padding: 0 1rem; }

nav { display: flex; align-items: center; gap: 0.1rem; flex-wrap: nowrap; }
nav a {
  color: var(--slate);
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 0.45rem 0.7rem;
  border-radius: 7px;
  transition: var(--transition); white-space: nowrap;
}
nav a:hover { color: var(--ink); background: var(--border-light); }
nav a.active { color: var(--orange); background: var(--orange-pale); }

.nav-counter {
  background: var(--orange); color: white;
  font-size: 0.62rem; font-weight: 700;
  padding: 0.1rem 0.35rem; border-radius: 10px;
  margin-left: 0.2rem; min-width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}

#darkModeBtn { display: none !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  background: #141418;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 3px solid var(--orange);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(240,77,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(240,77,0,0.05) 0%, transparent 60%);
}
.hero-lines {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.025) 0px, rgba(0,0,0,0.025) 1px, transparent 1px, transparent 72px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.025) 0px, rgba(0,0,0,0.025) 1px, transparent 1px, transparent 72px);
}
.hero-video-bg {
  position: absolute; inset: 0; z-index: 1;
}
.hero-vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.5s ease;
}
.hero-vid.active { opacity: 1; }
.hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,10,10,0.58) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.58) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-vid { transition: none; } }

.hero-video-bg ~ .hero-content h1 { color: #fff; }
.hero-video-bg ~ .hero-content p { color: rgba(255,255,255,0.88); }
.hero-video-bg ~ .hero-content .hero-divider { color: rgba(255,255,255,0.5); }
.hero-video-bg ~ .hero-content .hero-stat .label { color: rgba(255,255,255,0.7); }

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 3rem 2rem; max-width: 900px; width: 100%;
}
.hero-content h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800; color: var(--ink);
  text-transform: uppercase; letter-spacing: 2px;
  line-height: 1; margin-bottom: 0.8rem;
}
.hero-content h1 .accent { color: var(--orange); font-style: italic; }
.hero-content p { font-size: 1rem; color: var(--slate); margin-bottom: 2rem; }

.hero-ia-bar { display: flex; gap: 0.75rem; max-width: 700px; margin: 0 auto 1.25rem; }
.hero-ia-bar input {
  flex: 1; background: var(--white);
  border: 2px solid var(--orange-mid);
  color: var(--ink); border-radius: var(--radius);
  padding: 0.9rem 1.25rem; font-size: 1rem; font-family: 'Barlow', sans-serif;
  transition: var(--transition); box-shadow: var(--shadow-xs);
}
.hero-ia-bar input::placeholder { color: var(--slate-light); }
.hero-ia-bar input:focus { border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 3px rgba(240,77,0,0.1); outline: none; }

.hero-divider { color: var(--slate-light); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; margin: 0.5rem 0 1rem; }

.hero-stats { display: flex; gap: 3rem; justify-content: center; margin-top: 2.5rem; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 700; color: var(--orange); display: block; }
.hero-stat .label { font-size: 0.7rem; text-transform: uppercase; color: var(--slate); letter-spacing: 1px; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--orange); color: white;
  padding: 0.8rem 2rem; border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  border: none; cursor: pointer; transition: var(--transition);
}
.btn:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: var(--shadow-orange); }
.btn-outline { background: transparent; border: 2px solid var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: white; }
.btn-ghost { background: var(--white); color: var(--ink-2); border: 1.5px solid var(--border); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--bg); border-color: var(--slate-light); transform: translateY(-1px); box-shadow: var(--shadow); }
/* btn-ghost dans le hero : bordure plus marquée pour ressortir sur fond ivoire */
.hero-content .btn-ghost { border-color: var(--slate-light); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.82rem; }
.btn-orange { background: var(--orange); color: white; border: none; }
.btn-orange:hover { background: var(--orange-light); }

/* Accent gauche coloré sur btn-ghost : signature visuelle sobre par fonction */
.btn-ghost.btn-accent-fav,  .btn-ghost.btn-accent-fav:hover  { border-left: 3px solid #e11d48; }
.btn-ghost.btn-accent-cmp,  .btn-ghost.btn-accent-cmp:hover  { border-left: 3px solid #3b82f6; }
.btn-ghost.btn-accent-ia,   .btn-ghost.btn-accent-ia:hover   { border-left: 3px solid #7c3aed; }
.btn-ghost.btn-accent-map,  .btn-ghost.btn-accent-map:hover  { border-left: 3px solid #16a34a; }

button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--orange); color: white;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.92rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  border: none; cursor: pointer; transition: var(--transition);
}
button:hover { background: var(--orange-light); transform: translateY(-1px); box-shadow: var(--shadow-orange); }
button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.page-content { flex: 1; padding: 3rem 2rem; max-width: 1200px; margin: 0 auto; width: 100%; }
.section-wrap { padding: 3rem 2rem; max-width: 1200px; margin: 0 auto; }

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--ink);
  margin-bottom: 1.5rem; padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--orange); display: inline-block;
}

/* ============================================================
   GRIDS
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(6, 1fr); } }
.grid-annonces { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 900px) { .grid-annonces { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid-annonces { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   CARDS CATÉGORIES
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  cursor: pointer; border: 1.5px solid var(--border-light);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--orange-mid); }
.card img { width: 100%; height: 120px; object-fit: cover; }
.card p {
  padding: 0.7rem 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink);
}

/* ============================================================
   CARDS ANNONCES
   ============================================================ */
.card-annonce {
  background: var(--bg-card);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  cursor: pointer; border: 1.5px solid var(--border-light); position: relative;
}
.card-annonce:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--orange-mid); }
.card-annonce > img { width: 100%; height: 185px; object-fit: cover; display: block; }
.card-photo-badges { position: absolute; top: 0.5rem; left: 0.5rem; display: flex; gap: 0.3rem; flex-wrap: wrap; pointer-events: none; z-index: 1; }
.card-photo-badges .badge { background: rgba(0,0,0,0.55); color: #fff; border: none; font-size: 0.72rem; padding: 0.2rem 0.45rem; }
.card-annonce-body { padding: 1rem 1.1rem; }
.card-annonce-titre {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px;
  color: var(--ink); margin-bottom: 0.3rem; line-height: 1.3;
}
.card-annonce-prix {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem; font-weight: 800; color: var(--orange); margin-bottom: 0.55rem;
}
.card-annonce-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }

#mesAnnonces .card-annonce { display: flex; flex-direction: column; height: 100%; }
#mesAnnonces .card-annonce-body { display: flex; flex-direction: column; flex: 1; }
.card-annonce-actions {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: auto; padding-top: 0.7rem;
  border-top: 1px solid var(--border-light);
}
.card-annonce-status { margin-top: auto; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  background: var(--bg-2); color: var(--slate);
  font-size: 0.71rem; padding: 0.22rem 0.55rem;
  border-radius: 5px; font-weight: 600; border: 1px solid var(--border);
}
.badge-orange { background: var(--orange-pale); color: var(--orange); border-color: var(--orange-mid); }
.badge-sponsored {
  display: inline-block; background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: white; font-size: 0.67rem; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.5px; border: none;
}
.card-sponsored { border: 1.5px solid rgba(124,58,237,0.3) !important; }
.card-sponsored::before {
  content: "⭐"; position: absolute; top: 0; left: 0;
  background: linear-gradient(135deg,#7c3aed,#9333ea); color: white;
  font-size: 0.65rem; font-weight: 700; padding: 2px 6px;
  border-radius: 0 0 6px 0; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-fiabilite { font-weight: 700 !important; border: none !important; }
.badge-fiabilite-A { background: #dcfce7 !important; color: #16a34a !important; }
.badge-fiabilite-B { background: #fef3c7 !important; color: #b45309 !important; }
.badge-fiabilite-C { background: #fee2e2 !important; color: #dc2626 !important; }
.badge-fiabilite-inline { padding: 0.3rem 0.6rem; border-radius: 4px; font-size: 0.85rem; display: inline-block; }

.badge-urgence {
  display: inline-block; background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white; font-size: 0.67rem; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.5px; border: none;
}
.badge-pro {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white; font-size: 0.67rem; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.5px; border: none;
}
.badge-pro-detail {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white; font-size: 0.8rem; font-weight: 700;
  padding: 0.35rem 0.9rem; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.6rem; border: none;
}

/* ============================================================
   BOUTONS OVERLAY CARTES
   ============================================================ */
.btn-comparer {
  position: absolute; top: 10px; right: 10px;
  background: rgba(240,77,0,0.92); border: none;
  border-radius: 8px; padding: 7px 11px; font-size: 0.75rem;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 4px;
  font-weight: 700; text-transform: none; letter-spacing: 0;
  color: white; box-shadow: 0 2px 8px rgba(240,77,0,0.3);
}
.btn-comparer:hover { background: var(--orange); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(240,77,0,0.4); }
.btn-comparer.actif { background: #16a34a; border-color: #16a34a; box-shadow: 0 2px 8px rgba(22,163,74,0.3); }

.btn-favori-card {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,0.95); border: none;
  border-radius: 50%; width: 32px; height: 32px;
  font-size: 0.85rem; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12); transition: all 0.2s;
  transform: none; text-transform: none; letter-spacing: 0; color: inherit; font-family: inherit;
}
.btn-favori-card:hover { transform: scale(1.12); box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.btn-favori-card.actif { background: #fee2e2; }

/* ============================================================
   PUBLICITÉ
   ============================================================ */
.pub-slot { text-align: center; padding: 0.75rem; }
.pub-leaderboard { max-width: 728px; margin: 1.5rem auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); min-height: 90px; }
.pub-leaderboard .adsbygoogle { display: block; min-height: 90px; }
.pub-rectangle { max-width: 300px; }
.pub-label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--slate-light); margin-bottom: 0.3rem; }
.pub-label::before { content: "PUB"; background: var(--orange, #e85d04); color: #fff; font-size: 0.55rem; font-weight: 800; padding: 2px 5px; border-radius: 3px; letter-spacing: 1px; font-family: 'Barlow Condensed', sans-serif; }
.pub-placeholder { background: var(--bg-2); border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 1.5rem 2rem; color: var(--slate-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; min-height: 90px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) { .pub-slot { margin: 1rem; } .pub-leaderboard { max-width: 100%; } .pub-placeholder { min-height: 60px; font-size: 0.7rem; padding: 1rem; } }

/* Sticky bottom mobile — affiché uniquement ≤768px */
.pub-sticky-bottom { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -2px 10px rgba(0,0,0,0.1); padding: 4px 0 2px; }
.pub-sticky-bottom .pub-sticky-content { position: relative; margin: 0 auto; max-width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; }
.pub-sticky-bottom .adsbygoogle { display: block; width: 100%; height: 50px; min-width: 320px; }
.pub-sticky-close { position: absolute; top: -16px; right: 4px; width: 26px; height: 26px; background: #fff; border: 1px solid var(--border); border-radius: 50%; font-size: 0.85rem; font-weight: 700; color: #6b7280; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.12); display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }
.pub-sticky-close:hover { color: #111; border-color: #999; }
.pub-sticky-label { position: absolute; top: 2px; left: 6px; font-size: 0.55rem; text-transform: uppercase; letter-spacing: 1px; color: var(--slate-light); font-weight: 600; pointer-events: none; }
@media (max-width: 768px) { .pub-sticky-bottom { display: block; } body.has-sticky-pub { padding-bottom: 60px; } }

/* In-feed dans la grille de résultats — fait toute la largeur de la grille */
.pub-infeed { grid-column: 1 / -1; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; text-align: center; min-height: 120px; }
.pub-infeed .adsbygoogle { display: block; min-height: 90px; }
@media (max-width: 768px) { .pub-infeed { max-height: 300px; overflow: hidden; } }

/* ============================================================
   BANDEAU CONSENTEMENT COOKIES
   ============================================================ */
#cookieBanner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000; background: rgba(255,255,255,0.97); border-top: 1px solid var(--border-light); padding: 0.875rem 2rem; box-shadow: 0 -2px 12px rgba(0,0,0,0.08); }
.cookie-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: 0.875rem; color: var(--slate); flex: 1; min-width: 200px; }
.cookie-inner a { color: var(--orange); }
.cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }
.btn-cookie-reject { background: transparent; border: 1px solid var(--border); color: var(--slate); padding: 0.5rem 1.25rem; border-radius: var(--radius); font-size: 0.875rem; cursor: pointer; transition: all 0.2s; }
.btn-cookie-reject:hover { border-color: var(--slate); color: var(--ink); }
.btn-cookie-accept { background: var(--orange); border: none; color: #fff; padding: 0.5rem 1.25rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 700; cursor: pointer; transition: opacity 0.2s; }
.btn-cookie-accept:hover { opacity: 0.85; }
@media (max-width: 600px) { .cookie-inner { flex-direction: column; } .cookie-btns { width: 100%; justify-content: flex-end; } }

/* ============================================================
   FORMULAIRES GÉNÉRAUX
   ============================================================ */
input, select, textarea {
  width: 100%; padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif; font-size: 0.95rem;
  color: var(--ink); background: var(--white);
  transition: var(--transition); outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,77,0,0.1);
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--slate-light); }
select option { background: white; color: var(--ink); }

.form-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); max-width: 700px; margin: 0 auto; border: 1px solid var(--border-light); }
.form-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); margin-bottom: 0.5rem; }
.form-subtitle { color: var(--slate); font-size: 0.9rem; margin-bottom: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-label { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 0.75rem 1rem; font-family: 'Barlow', sans-serif;
  font-size: 0.95rem; color: var(--ink); background: var(--white);
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,77,0,0.1); }
.form-group textarea { min-height: 100px; resize: vertical; }

/* ============================================================
   RECHERCHE
   ============================================================ */
.recherche-header { background: var(--bg); padding: 2.5rem; border-bottom: 3px solid var(--orange); }
.recherche-header h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }
.filtres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; align-items: start; }
.filtres-grid input, .filtres-grid select { background: var(--white); border: 1.5px solid var(--border); color: var(--ink); border-radius: var(--radius); padding: 0.65rem 1rem; font-family: 'Barlow', sans-serif; font-size: 0.9rem; margin: 0; box-shadow: var(--shadow-xs); height: 44px; box-sizing: border-box; }
.filtres-grid input::placeholder { color: var(--slate-light); }
.filtres-grid input:focus, .filtres-grid select:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(240,77,0,0.1); }
.filtres-grid select option { background: white; color: var(--ink); }
.filtres-grid > .ac-wrap, .filtres-grid > .filtre-cb-wrap { height: 44px; }
.filtres-grid > .ac-wrap > input { height: 100%; }
.filtres-grid #type_vehicule { border: 2px solid var(--orange); box-shadow: 0 0 0 2px rgba(240,77,0,0.12); font-weight: 600; }
.filtres-grid #type_vehicule:focus { box-shadow: 0 0 0 3px rgba(240,77,0,0.25); }
#iaSelectionSection { margin-bottom: 1.5rem; }
.ia-selection-header { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ia-selection-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--orange); }
.ia-selection-sub { font-size: 0.82rem; color: var(--slate); }
.ia-picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ia-pick-wrap { display: flex; flex-direction: column; }
.ia-pick-wrap .card-annonce { border: 2px solid var(--orange-mid); box-shadow: 0 2px 12px rgba(240,77,0,0.1); }
.ia-pick-raison { font-size: 0.8rem; color: var(--slate); background: var(--orange-pale); border-radius: 0 0 var(--radius) var(--radius); padding: 0.45rem 0.75rem; line-height: 1.4; }
.ia-selection-suite { font-size: 0.8rem; color: var(--slate-light); text-align: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); letter-spacing: 0.3px; }
@media (max-width: 768px) { .ia-picks-grid { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .ia-picks-grid { grid-template-columns: repeat(2, 1fr); } }

.ia-bar { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.ia-bar input { flex: 1; background: var(--white); border: 2px solid var(--orange-mid); color: var(--ink); border-radius: var(--radius); padding: 0.85rem 1.25rem; font-size: 0.95rem; font-family: 'Barlow', sans-serif; box-shadow: var(--shadow-xs); }
.ia-bar input:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(240,77,0,0.1); }
.ia-bar input::placeholder { color: var(--slate-light); }
.ia-bar--highlight { background: var(--orange-pale); border-radius: var(--radius); padding: 0.6rem 0.75rem 0.75rem; margin-top: 0.5rem; }
.ia-bar--highlight::before { content: '✨ Décrivez ce que vous cherchez'; display: block; font-size: 0.72rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.ia-bar--highlight input { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,77,0,0.12); }
.img-search-zone { border: 2px dashed var(--orange); border-radius: var(--radius); padding: 1rem; display: flex; align-items: center; gap: 0.75rem; background: var(--orange-pale); flex-wrap: wrap; margin: 0.75rem 0; }
.img-search-zone input[type="file"] { flex: 1; font-size: 0.85rem; }

/* ============================================================
   DÉPOSER — STEPS
   ============================================================ */
.deposer-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 2rem; }
.step-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: var(--transition); }
.step-card:hover { border-color: var(--orange-mid); box-shadow: var(--shadow-md); }
.step-card h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.step-card h3 .icon { width: 28px; height: 28px; background: var(--orange); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.ligne { display: flex; gap: 0.75rem; align-items: center; }
.ligne input { flex: 1; margin: 0; }
.ligne button { white-space: nowrap; flex-shrink: 0; }
.cg-picker { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.cg-file-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--bg-card); color: var(--ink); font-weight: 600; font-size: 0.9rem; cursor: pointer; white-space: nowrap; transition: var(--transition); flex-shrink: 0; }
.cg-file-btn:hover { border-color: var(--orange-mid); color: var(--orange); }
.cg-file-name { font-size: 0.8rem; color: var(--slate-light); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#cg-input { display: none; }
.divider { text-align: center; position: relative; margin: 2rem 0; color: var(--slate-light); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: calc(50% - 3rem); height: 1px; background: var(--border); }
.divider::before { left: 0; } .divider::after { right: 0; }

/* ============================================================
   ANNONCE DÉTAIL
   ============================================================ */
.annonce-page { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.annonce-img-wrap { grid-area: img; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.gallery-img-wrap { position: relative; }
.gallery-img-wrap img { width: 100%; height: 350px; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); border: none; color: white; font-size: 2rem; width: 44px; height: 64px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; padding: 0; transition: background 0.2s; text-transform: none; letter-spacing: 0; box-shadow: none; border-radius: 4px; line-height: 1; }
.gallery-arrow:hover { background: rgba(0,0,0,0.72); transform: translateY(-50%); box-shadow: none; }
.gallery-prev { left: 0.75rem; }
.gallery-next { right: 0.75rem; }
.annonce-body { display: grid; grid-template-columns: 2fr 1fr; grid-template-areas: "img side" "main side"; gap: 2rem; align-items: start; }
.annonce-main { grid-area: main; display: flex; flex-direction: column; gap: 1.25rem; }
.annonce-side-col { grid-area: side; display: flex; flex-direction: column; gap: 1.5rem; }
.annonce-aside { background: var(--bg-card); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--border-light); display: flex; flex-direction: column; gap: 0.75rem; }
.pub-side .adsbygoogle { display: block; min-height: 600px; width: 100%; }
.pub-mobile-inline { display: none; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); }
.pub-mobile-inline .adsbygoogle { display: block; min-height: 250px; width: 100%; }
.annonce-titre { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); margin-bottom: 0.5rem; }
.annonce-prix { font-family: 'Barlow Condensed', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--orange); margin-bottom: 1.5rem; }
.annonce-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.annonce-specs-extra { margin-bottom: 1.5rem; }
.spec-item { background: var(--bg); border-radius: var(--radius); padding: 0.75rem 1rem; border: 1px solid var(--border-light); }
.spec-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--slate); display: block; margin-bottom: 0.2rem; }
.spec-value { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.specs-more-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0.6rem 1rem; background: var(--bg); border: 1px dashed var(--border-light); border-radius: var(--radius); cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--slate); margin-bottom: 0.75rem; transition: background 0.15s, color 0.15s; }
.specs-more-btn:hover { background: color-mix(in srgb, var(--orange) 6%, var(--bg)); color: var(--ink); border-color: var(--orange); }
.specs-more-chevron { font-size: 0.7rem; transition: transform 0.2s; }
.specs-more-btn[aria-expanded="true"] .specs-more-chevron { transform: rotate(180deg); }
.gallery-thumbnails { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.gallery-thumb { width: 80px; height: 55px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.6; transition: all 0.2s; border: 2px solid transparent; }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--orange); }
.reponse-ia { background: var(--orange-pale); border-left: 3px solid var(--orange); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-top: 1.5rem; font-size: 0.92rem; color: var(--ink); line-height: 1.7; min-height: 60px; }

/* Chat IA — questions/réponses sur l'annonce */
.chat-ia-zone { position: relative; background: #fffaf5; border: 1px solid #fed7aa; border-radius: 8px; padding: 0.85rem; padding-right: 2rem; }
.chat-ia-close { position: absolute; top: 0.4rem; right: 0.6rem; background: transparent; border: none; color: #9ca3af; font-size: 1.1rem; cursor: pointer; padding: 0; line-height: 1; transform: none; box-shadow: none; letter-spacing: 0; text-transform: none; }
.chat-ia-close:hover { color: #6b7280; }
.chat-ia-header { font-size: 0.85rem; font-weight: 700; color: #c2410c; margin-bottom: 0.6rem; }
.chat-ia-conv { max-height: 280px; overflow-y: auto; margin-bottom: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.chat-ia-conv:empty { margin-bottom: 0; }
.chat-ia-msg { font-size: 0.82rem; line-height: 1.45; padding: 0.5rem 0.7rem; border-radius: 8px; word-wrap: break-word; }
.chat-ia-msg strong { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.15rem; opacity: 0.65; font-weight: 700; }
.chat-ia-msg-user { background: #ffedd5; color: #7c2d12; align-self: flex-end; max-width: 90%; }
.chat-ia-msg-bot { background: #fff; border: 1px solid #fed7aa; color: #374151; align-self: flex-start; max-width: 95%; }
.chat-ia-suggestions { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.6rem; }
.chat-ia-suggestion { font-size: 0.72rem; padding: 0.3rem 0.55rem; background: #fff; border: 1px solid #fed7aa; color: #c2410c; border-radius: 100px; cursor: pointer; font-family: inherit; transition: background 0.15s; line-height: 1.2; box-shadow: none; letter-spacing: 0; text-transform: none; transform: none; font-weight: 500; }
.chat-ia-suggestion:hover { background: #ffedd5; transform: none; box-shadow: none; }
.chat-ia-form { display: flex; gap: 0.4rem; }
.chat-ia-form input { flex: 1; min-width: 0; padding: 0.5rem 0.7rem; border: 1px solid #fed7aa; border-radius: 6px; font-size: 0.85rem; font-family: inherit; outline: none; background: #fff; }
.chat-ia-form input:focus { border-color: var(--orange); }
.chat-ia-form input:disabled { background: #f9fafb; color: #9ca3af; cursor: not-allowed; }
.chat-ia-disclaimer { font-size: 0.68rem; color: #9ca3af; margin-top: 0.5rem; font-style: italic; line-height: 1.3; }

/* ============================================================
   CALCULATEUR + HISTORIQUE
   ============================================================ */
.action-tile { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.4rem; padding:0.8rem 0.4rem; background:#f8fafc; border:1.5px solid #e5e7eb; border-radius:10px; cursor:pointer; transition:background 0.15s, transform 0.1s, box-shadow 0.15s; font-family:inherit; }
.action-tile:hover { background:#f1f5f9; transform:translateY(-2px); box-shadow:0 3px 8px rgba(0,0,0,0.08); }
.action-tile-icon { font-size:1.6rem; line-height:1; }
.action-tile-label { font-size:0.7rem; color:#374151; font-weight:600; text-align:center; line-height:1.2; }
.action-tile-ia { background:#fff7ed; border-color:#fed7aa; }
.action-tile-ia:hover { background:#ffedd5; }
.action-tile-ia .action-tile-label { color:#c2410c; }
.action-tile-danger { background:#fff5f5; border-color:#fecaca; }
.action-tile-danger:hover { background:#fee2e2; }
.action-tile-danger .action-tile-label { color:#dc2626; }
.calculateur-mensualites, .historique-prix { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 0.75rem; }
.calc-header { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1.1rem; background: var(--bg-2); cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: 0.93rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink); user-select: none; transition: background 0.2s; border-bottom: 1.5px solid var(--border); }
.calc-header:hover { background: var(--border-light); }
.calc-chevron { color: var(--orange); font-size: 0.8rem; }
.calc-body { padding: 1rem 1.1rem; background: var(--bg-card); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
@media (max-width: 500px) { .calc-row { grid-template-columns: 1fr 1fr; } }
.calc-field label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--slate); margin-bottom: 0.35rem; }
.calc-field input, .calc-field select { width: 100%; padding: 0.55rem 0.75rem !important; font-size: 0.9rem !important; }
.calc-result { background: var(--orange-pale); border-radius: var(--radius); padding: 0.85rem 1rem; text-align: center; border: 1px solid var(--orange-mid); }
.calc-mensualite { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--orange); margin-bottom: 0.3rem; }
.calc-detail { font-size: 0.75rem; color: var(--slate); line-height: 1.6; }
.calc-detail strong { color: var(--ink-3); }
#prixChart { display: block; border-radius: var(--radius); }

/* ============================================================
   COMPARATEUR
   ============================================================ */
.barre-comparaison { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 2.5px solid var(--orange); box-shadow: 0 -4px 20px rgba(0,0,0,0.12); padding: 0.6rem 1rem; z-index: 1000; transform: translateY(100%); transition: transform 0.3s ease; }
.barre-comparaison.active { transform: translateY(0); }
.barre-content { display: flex; align-items: center; gap: 1rem; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.barre-info { font-weight: bold; color: var(--orange); font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.vehicules-selectionnes { display: flex; gap: 0.5rem; flex: 1; min-width: 200px; overflow-x: auto; padding: 0.5rem 0; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
.vehicule-mini { background: var(--bg-2); border: 1.5px solid var(--border); border-radius: 8px; padding: 0.3rem 0.5rem; min-width: 100px; flex-shrink: 0; text-align: center; position: relative; cursor: pointer; transition: all 0.2s; }
.vehicule-mini:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.vehicule-mini img { width: 48px; height: 32px; object-fit: cover; border-radius: 4px; margin: 0 auto 0.2rem; }
.vehicule-mini .titre-mini { font-size: 0.7rem; font-weight: bold; margin-bottom: 0.25rem; line-height: 1.2; color: var(--ink); }
.vehicule-mini .prix-mini { font-size: 0.65rem; color: var(--orange); font-weight: bold; font-family: 'Barlow Condensed', sans-serif; }
.vehicule-mini .remove-btn { position: absolute; top: -5px; right: -5px; background: #dc2626; color: white; border: none; border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transform: none; box-shadow: none; text-transform: none; letter-spacing: 0; padding: 0; }
.barre-actions { display: flex; gap: 0.5rem; align-items: center; }
.barre-close { background: #dc2626; border: none; border-radius: 4px; font-size: 1rem; cursor: pointer; color: white; padding: 0.4rem 0.8rem; font-weight: 600; transition: all 0.2s; text-transform: none; letter-spacing: 0; }
.barre-close:hover { background: #b91c1c; transform: none; box-shadow: none; }
.btn-fermer { background: transparent; border: none; font-size: 1.2rem; cursor: pointer; color: var(--slate); padding: 0; line-height: 1; transform: none; box-shadow: none; }
.btn-fermer:hover { color: var(--ink); background: transparent; transform: none; box-shadow: none; }
.cmp-page-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.cmp-back-btn { background: var(--orange); color: white; flex-shrink: 0; }
@media (max-width: 768px) {
  .cmp-page-header { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cmp-page-header h1 { font-size: 1.6rem; line-height: 1.15; text-align: center; }
  .cmp-back-btn { width: 100%; justify-content: center; }
}
.comparateur-container { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--border); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); }
.comparateur-table { width: 100%; border-collapse: collapse; min-width: 600px; table-layout: fixed; }
.comparateur-table th, .comparateur-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border-light); vertical-align: top; word-break: break-word; }
.comparateur-table th { background: var(--bg-2); font-weight: bold; position: sticky; top: 0; z-index: 10; color: var(--ink); }
.comparateur-table .comparateur-label { background: var(--bg); font-weight: bold; color: var(--slate); width: 140px; position: sticky; left: 0; z-index: 11; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }
.comparateur-table .vehicule-header { background: var(--white); text-align: center; padding: 1rem; }
.vehicule-header img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; margin: 0 auto 0.75rem; box-shadow: var(--shadow); }
.vehicule-header .titre-comparer { font-weight: bold; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--ink); font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vehicule-header .prix-comparer { color: var(--orange); font-weight: bold; font-size: 1.2rem; margin-bottom: 0.75rem; font-family: 'Barlow Condensed', sans-serif; }
.vehicule-header .actions-comparer { display: flex; gap: 0.25rem; justify-content: center; flex-wrap: wrap; }
.comparateur-row:nth-child(even) { background: var(--bg-2); }
.comparateur-row .comparateur-label { background: var(--bg); }
.comparateur-value { padding: 0.75rem; text-align: center; font-size: 0.9rem; color: var(--ink); }
.comparateur-value.highlight { background: #fef3cd; color: #b45309; font-weight: bold; }
.comparateur-value .badge { margin: 0; font-size: 0.7rem; }
.comparateur-value .actions-comparer { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem; max-width: 72px; margin: 0 auto; }
.comparateur-value .actions-comparer > :first-child { grid-column: 1 / -1; width: fit-content; margin: 0 auto; }
.btn-mini { padding: 0.25rem 0.5rem; font-size: 0.75rem; border-radius: 4px; text-decoration: none; display: inline-block; transition: all 0.2s; font-weight: 600; text-transform: none; letter-spacing: 0; }
.btn-mini:hover { transform: translateY(-1px); }
@media (max-width: 768px) {
  .barre-comparaison { padding: 0.6rem 1rem; }
  .barre-content { flex-direction: row; flex-wrap: nowrap; gap: 0.5rem; align-items: center; }
  .vehicules-selectionnes { display: none; }
  .barre-info { flex: 1; font-size: 0.85rem; }
  .barre-info .btn-fermer { display: none; }
  .barre-actions { gap: 0.4rem; }
  .barre-actions .btn-ghost { display: inline-flex; font-size: 0.75rem; padding: 0.3rem 0.6rem; }
  .barre-actions .btn-orange { font-size: 0.75rem; padding: 0.4rem 0.7rem; white-space: nowrap; }
  .section-wrap { min-width: 0; overflow-x: hidden; max-width: 100vw; box-sizing: border-box; }
  .section-wrap > * { max-width: 100%; box-sizing: border-box; }
  .btn { max-width: 100%; min-width: 0; white-space: normal; word-break: break-word; overflow-wrap: break-word; }
  .comparateur-container { margin: 1rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparateur-table { min-width: 0; table-layout: fixed; }
  .comparateur-table th, .comparateur-table td { padding: 0.4rem 0.3rem; word-break: break-word; }
  .comparateur-table .comparateur-label { min-width: 0; width: 22%; font-size: 0.7rem; padding: 0.4rem 0.35rem; letter-spacing: 0.3px; }
  .comparateur-table thead th { position: sticky; top: 60px; z-index: 10; }
  .comparateur-table thead .comparateur-label { position: sticky; top: 60px; left: auto; z-index: 11; }
  .comparateur-table tbody .comparateur-label { position: static; }
  .comparateur-table .vehicule-header { min-width: 0; padding: 0.5rem 0.3rem; }
  .vehicule-header img { width: 100%; max-width: 70px; height: 50px; margin: 0 auto 0.35rem; border-radius: 4px; }
  .vehicule-header .titre-comparer { font-size: 0.7rem; margin-bottom: 0.25rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .vehicule-header .prix-comparer { font-size: 0.9rem; margin-bottom: 0.35rem; }
  .vehicule-header .actions-comparer { gap: 0.15rem; }
  .vehicule-header .actions-comparer .btn-mini { padding: 3px 5px; font-size: 0.7rem; }
  .comparateur-value { font-size: 0.75rem; padding: 0.4rem 0.3rem; text-align: center; }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-container { grid-column: 1 / -1; margin: 2rem 0 1rem; display: flex; justify-content: center; }
.pagination { display: flex; align-items: center; gap: 1rem; background: var(--white); padding: 1rem 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1.5px solid var(--border); }
.pagination-btn { background: var(--orange); color: white; border: none; padding: 0.65rem 1.25rem; border-radius: var(--radius); font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.9rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 0.5rem; }
.pagination-btn:hover:not(:disabled) { background: var(--orange-light); transform: translateY(-2px); box-shadow: var(--shadow-orange); }
.pagination-btn:disabled { background: var(--bg-2); color: var(--slate-light); cursor: not-allowed; transform: none; box-shadow: none; }
.pagination-info { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.5px; padding: 0 1rem; display: flex; align-items: center; gap: 0.25rem; }
.pagination-info strong { color: var(--orange); font-weight: 800; }
@media (max-width: 768px) { .pagination { gap: 0.75rem; padding: 0.75rem 1.5rem; } .pagination-btn { padding: 0.5rem 1rem; font-size: 0.8rem; } .pagination-info { font-size: 0.85rem; padding: 0 0.5rem; } }
@media (max-width: 480px) { .pagination { flex-direction: column; gap: 0.5rem; padding: 1rem; } .pagination-info { order: 1; margin-bottom: 0.5rem; } .pagination-btn { width: 100%; justify-content: center; } }

/* ============================================================
   REWARDED AD
   ============================================================ */
.rewarded-box { background: var(--ink-2); border: 2px solid var(--orange); border-radius: var(--radius-lg); padding: 2rem; text-align: center; max-width: 380px; width: 90%; position: relative; }
.rewarded-label { color: #9ca3af; font-size: 0.85rem; margin-bottom: 1rem; }
.rewarded-timer { font-family: 'Barlow Condensed', sans-serif; font-size: 3rem; font-weight: 800; color: var(--orange); margin-bottom: 1rem; line-height: 1; }
.rewarded-ad { background: #111; border-radius: var(--radius); min-height: 250px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; overflow: hidden; }

/* ============================================================
   PHOTOS
   ============================================================ */
.photos-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.photo-thumb { position: relative; width: 100px; height: 75px; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-del { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,0.65); color: white; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 0.7rem; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transform: none; box-shadow: none; text-transform: none; letter-spacing: 0; }
.photo-del:hover { background: #dc2626; transform: none; box-shadow: none; }
.photo-add { width: 100px; height: 75px; border: 2px dashed var(--border); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font-size: 0.75rem; text-align: center; color: var(--slate-light); transition: var(--transition); }
.photo-add:hover { border-color: var(--orange); color: var(--orange); }
.photo-add-rewarded { border-color: rgba(240,77,0,0.4); color: var(--orange); }
.photo-add small { font-size: 0.65rem; margin-top: 0.2rem; }

/* ============================================================
   MESSAGERIE
   ============================================================ */
.messagerie-layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; height: calc(100vh - 90px); margin: 0.75rem 1.25rem 1rem; border: 1px solid var(--border); }
.conversations-list { border-right: 1.5px solid var(--border-light); padding: 1rem 0; background: var(--bg); min-height: 0; overflow-y: auto; }
.conv-header { padding: 0 1.5rem 0.85rem; border-bottom: 1.5px solid var(--border); margin-bottom: 0.5rem; font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink); }
.conv-item { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1.5rem; cursor: pointer; transition: var(--transition); border-left: 3px solid transparent; }
.conv-item:hover, .conv-item.active { background: var(--orange-pale); border-left-color: var(--orange); }
.conv-avatar { width: 40px; height: 40px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.conv-name { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.conv-preview { font-size: 0.78rem; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-zone { display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
#chatMessages { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.65rem; }
@media (max-width: 768px) { .messagerie-layout { grid-template-columns: 1fr; height: auto; margin: 0; border-radius: 0; border: none; } }

/* ============================================================
   PROFIL
   ============================================================ */
.profil-hero { background: var(--bg); padding: 2rem 1.5rem; text-align: center; border-bottom: 3px solid var(--orange); }
.profil-avatar { width: 80px; height: 80px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1rem; box-shadow: var(--shadow-orange); }
.profil-name { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: 1px; }

/* Nouveau hero connecté — ligne d'identité dense */
.profil-identity { display: flex; align-items: center; gap: 1.25rem; max-width: 960px; margin: 0 auto; text-align: left; }
.profil-identity .profil-avatar { margin: 0; flex-shrink: 0; width: 72px; height: 72px; font-size: 1.6rem; }
.profil-identity-text { flex: 1; min-width: 0; }
.profil-name-row { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; margin-bottom: 0.2rem; }
.profil-name-row .profil-name { font-size: 1.45rem; line-height: 1.1; }
.profil-email { color: #9ca3af; font-size: 0.85rem; word-break: break-all; }
.profil-badges { display: inline-flex; gap: 0.35rem; flex-wrap: wrap; }
.profil-badge { font-size: 0.68rem; padding: 2px 8px; border-radius: 99px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.profil-badge-verified { background: #d1fae5; color: #065f46; }
.profil-badge-pro { background: #dbeafe; color: #1e40af; }
.profil-badge-rating { background: #fef3c7; color: #92400e; }
.profil-actions { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }

/* Menu kebab (paramètres) */
.profil-menu-wrap { position: relative; }
.profil-menu-trigger { padding: 0.45rem 0.7rem !important; }
.profil-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1000; background: var(--white); border-radius: var(--radius); box-shadow: 0 6px 22px rgba(0,0,0,0.15); min-width: 240px; padding: 0.4rem; display: none; }
.profil-menu.open { display: block; }
.profil-menu button { display: block; width: 100%; text-align: left; background: transparent; color: var(--ink); border: none; padding: 0.6rem 0.85rem; border-radius: 6px; font-size: 0.86rem; font-family: inherit; font-weight: 500; cursor: pointer; transform: none; box-shadow: none; }
.profil-menu button:hover { background: #f3f4f6; transform: none; box-shadow: none; }
.profil-menu .profil-menu-danger { color: #ef4444; }
.profil-menu .profil-menu-danger-soft { color: #9ca3af; font-size: 0.78rem; border-top: 1px solid #f0f0f0; margin-top: 0.3rem; padding-top: 0.55rem; }

/* Barre de complétude */
.profil-completion { background: var(--white); padding: 1.1rem 1.5rem; border-bottom: 2px solid var(--border); }
.profil-completion-inner { max-width: 960px; margin: 0 auto; }
.profil-completion-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.55rem; gap: 1rem; }
.profil-completion-title { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.profil-completion-pct { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--orange); white-space: nowrap; }
.profil-completion-bar { height: 8px; background: #e5e7eb; border-radius: 99px; overflow: hidden; margin-bottom: 0.85rem; }
.profil-completion-bar > span { display: block; height: 100%; background: linear-gradient(90deg,#f59e0b,#ff5c00); border-radius: 99px; transition: width 0.5s ease; }
.profil-completion-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.profil-completion-item { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.32rem 0.7rem; font-size: 0.76rem; border-radius: 99px; font-weight: 600; }
.profil-completion-item.done { background: #d1fae5; color: #065f46; }
.profil-completion-item.todo { background: #fef3c7; color: #92400e; cursor: pointer; border: none; font-family: inherit; transform: none; box-shadow: none; }
.profil-completion-item.todo:hover { background: #fde68a; transform: none; box-shadow: none; }

/* Stats */
.profil-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-bottom: 2px solid var(--border); }
.profil-stat { padding: 1.5rem; text-align: center; border-right: 1px solid var(--border); }
.profil-stat:last-child { border-right: none; }
.profil-stat-num { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--orange); margin-bottom: 0.25rem; }
.profil-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--slate); }
.profil-stat.clickable { cursor: pointer; transition: background 0.15s; }
.profil-stat.clickable:hover { background: #fafafa; }

/* Tabs */
.profil-tabs { display: flex; gap: 0; border-bottom: 1.5px solid var(--border); margin-bottom: 2rem; flex-wrap: wrap; position: sticky; top: 0; background: var(--white); z-index: 10; }
.profil-tab {
  background: transparent; color: var(--slate); border: none;
  padding: 0.85rem 1.25rem;
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1.5px;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  transform: none; box-shadow: none; border-radius: 0;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
/* Couleur par tab via data-tab */
.profil-tab[data-tab="annonces"]  { --tab-color: #ff5c00; }
.profil-tab[data-tab="avis"]      { --tab-color: #f59e0b; }
.profil-tab[data-tab="alertes"]   { --tab-color: #3b82f6; }
.profil-tab[data-tab="favoris"]   { --tab-color: #ef4444; }
.profil-tab[data-tab="recemment"] { --tab-color: #6b7280; }
.profil-tab[data-tab="vitrine"]   { --tab-color: #22c55e; }
.profil-tab[data-tab="analytics"] { --tab-color: #a855f7; }
.profil-tab[data-tab="notifs"]    { --tab-color: #06b6d4; }

.profil-tab:hover {
  color: var(--tab-color, var(--ink));
  background: color-mix(in srgb, var(--tab-color, #ccc) 8%, transparent);
  transform: none; box-shadow: none;
}
.profil-tab.active {
  color: var(--tab-color, var(--orange));
  border-bottom-color: var(--tab-color, var(--orange));
  background: color-mix(in srgb, var(--tab-color, #ccc) 6%, transparent);
}
.tab-counter {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
  padding: 0 6px; border-radius: 99px;
  background: #9ca3af; color: white;
  font-size: 0.68rem; font-weight: 700; font-family: 'Inter', sans-serif;
  text-transform: none; letter-spacing: 0;
}
.tab-counter:empty { display: none; }
.profil-tab.active .tab-counter { background: var(--tab-color, var(--orange)); }
.notif-pref-row { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1rem; background: #12151b; border: 1px solid #2a2d35; border-radius: var(--radius); margin-bottom: 0.6rem; cursor: pointer; transition: border-color 0.15s; }
.notif-pref-row:hover { border-color: #3a3d45; }
.notif-pref-info { flex: 1; min-width: 0; }
.notif-pref-titre { font-weight: 600; color: #f3f4f6; font-size: 0.95rem; }
.notif-pref-desc { color: #9ca3af; font-size: 0.78rem; margin-top: 0.15rem; }
.notif-pref-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--orange); flex-shrink: 0; cursor: pointer; }
.login-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-google { background: var(--white); color: var(--ink); border: 1.5px solid var(--border); }
.btn-google:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-facebook { background: #1877f2; color: white; }
.btn-facebook:hover { background: #1565d8; }
.btn-apple { background: #000; color: white; border: 1.5px solid #333; }
.btn-apple:hover { background: #222; }
.btn-email { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-email:hover { border-color: var(--orange); color: var(--orange); }
.etoile { color: var(--slate-light); transition: color 0.1s; }
.etoile:hover, .etoile.active { color: var(--orange); }

/* ============================================================
   DASHBOARD VENDEUR
   ============================================================ */
.dashboard-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.dash-stat { background: var(--bg-card); border-radius: var(--radius); padding: 1rem; text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.dash-num { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--orange); }
/* couleurs individuelles posées via style inline dans mettreAJourDashboard() */
.dash-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--slate); margin-top: 0.2rem; }
@media (max-width: 768px) { .dashboard-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .dashboard-stats { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   CHIPS
   ============================================================ */
.chip-suggestion { background: var(--bg); color: var(--ink); border: 1px solid var(--border); border-radius: 20px; padding: 0.35rem 0.9rem; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; font-weight: 500; text-transform: none; letter-spacing: 0; font-family: 'Barlow', sans-serif; }
.chip-suggestion:hover { background: var(--orange-pale); border-color: var(--orange); color: var(--orange); transform: none; box-shadow: none; }

/* ============================================================
   OFFRES STRUCTURÉES (messagerie)
   ============================================================ */
.offer-wrap { display: flex; flex-direction: column; max-width: 85%; gap: 0.25rem; }
.offer-wrap-me { align-self: flex-end; align-items: flex-end; }
.offer-wrap-them { align-self: flex-start; align-items: flex-start; }
.offer-card { border: 2px solid; border-radius: 12px; padding: 0.85rem 1rem; box-shadow: var(--shadow); min-width: 240px; max-width: 380px; }
.offer-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.offer-amount { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.1; }
.offer-msg { font-size: 0.85rem; color: #374151; line-height: 1.5; margin-bottom: 0.6rem; white-space: pre-wrap; word-wrap: break-word; }
.offer-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.offer-btn { font-size: 0.78rem; padding: 0.4rem 0.7rem; border: none; border-radius: 6px; cursor: pointer; font-family: inherit; font-weight: 600; transition: transform 0.1s, box-shadow 0.15s; letter-spacing: 0; text-transform: none; }
.offer-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.offer-btn-accept  { background: #10b981; color: #fff; }
.offer-btn-refuse  { background: #ef4444; color: #fff; }
.offer-btn-counter { background: #3b82f6; color: #fff; }
.offer-answered-tag { font-size: 0.72rem; color: #9ca3af; font-style: italic; margin-top: 0.3rem; }
.offer-time { font-size: 0.7rem; color: #9ca3af; }
.offer-response { border: 1.5px solid; border-radius: 12px; padding: 0.6rem 0.9rem; font-size: 0.88rem; font-weight: 600; max-width: 380px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; }

/* Modal "Faire une offre" et "Contre-proposition" */
.modal-offre-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-offre-card { background: #fff; border-radius: 14px; max-width: 520px; width: 100%; max-height: 92vh; overflow-y: auto; padding: 1.5rem 1.6rem; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-offre-close { position: absolute; top: 0.75rem; right: 0.9rem; background: transparent; border: none; font-size: 1.3rem; cursor: pointer; color: #9ca3af; padding: 0; line-height: 1; transform: none; box-shadow: none; letter-spacing: 0; text-transform: none; }
.modal-offre-close:hover { color: #111; }
.modal-offre-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.85rem; color: #92400e; }
.modal-offre-vehicule { background: #fef3c7; border: 1px solid #fcd34d; border-radius: 8px; padding: 0.7rem 0.9rem; margin-bottom: 1rem; }
.modal-offre-row { margin-bottom: 1rem; }
.modal-offre-label { display: block; font-size: 0.85rem; font-weight: 600; color: #374151; margin-bottom: 0.35rem; }
.modal-offre-row input[type=number], .modal-offre-row textarea { width: 100%; padding: 0.6rem 0.8rem; border: 1.5px solid #e5e7eb; border-radius: 8px; font-family: inherit; font-size: 0.95rem; outline: none; box-sizing: border-box; }
.modal-offre-row input[type=number]:focus, .modal-offre-row textarea:focus { border-color: var(--orange); }
.modal-offre-row textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.modal-offre-hint { font-size: 0.78rem; color: #9ca3af; margin-top: 0.3rem; }
.modal-offre-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f3f4f6; }
@media (max-width: 600px) {
  .modal-offre-card { padding: 1.2rem 1rem; }
  .modal-offre-actions { flex-direction: column-reverse; }
  .modal-offre-actions .btn { width: 100%; justify-content: center; }
  .offer-card { min-width: 0; }
}
.popular-tags-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 768px) { .popular-tags-wrap { max-height: 4.5rem; overflow: hidden; } }
.popular-tags-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--slate); margin-bottom: 0.5rem; }
.popular-tag { display: inline-flex; align-items: center; }

/* ============================================================
   "COMMENT ÇA MARCHE" — fond sombre conservé
   ============================================================ */
.how-it-works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
.how-step { text-align: center; }
.how-icon { font-size: 2.5rem; width: 72px; height: 72px; background: rgba(240,77,0,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; border: 2px solid rgba(240,77,0,0.22); }
.how-step h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #111; margin-bottom: 0.5rem; }
.how-step p { color: #333; font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 768px) { .how-it-works { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (max-width: 480px) { .how-it-works { grid-template-columns: 1fr; } }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--slate); }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; font-weight: 700; text-transform: uppercase; color: var(--ink); margin-bottom: 0.5rem; }

/* ============================================================
   CARTE
   ============================================================ */
#map { height: 550px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; margin: 2rem; }
.map-controls { background: var(--white); border: 1px solid var(--border); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--ink); color: #6b7280; padding: 2.5rem; margin-top: auto; text-align: center; border-top: 2px solid #2d2d2d; font-size: 0.85rem; }
footer .footer-logo { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 800; color: #f5f4f0; text-transform: uppercase; margin-bottom: 0.5rem; letter-spacing: 1px; }
footer .footer-logo span { color: var(--orange); }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 0.5rem; }
.footer-links a { color: #6b7280; font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }

/* ============================================================
   MODALS
   ============================================================ */
#modalEdition, #modalVerif { display: flex; }
.pub-leaderboard { background: var(--bg-2); }

/* ============================================================
   HAMBURGER
   ============================================================ */
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; padding: 0; box-shadow: none; transform: none; flex-shrink: 0; }
.hamburger:hover { background: transparent; transform: none; box-shadow: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .header { padding: 0 1.25rem; height: 60px; }
  .hamburger { display: flex; }
  nav {
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: var(--white); z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 0; overflow-y: auto;
    transform: translateX(-100%); transition: transform 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  nav.open { transform: translateX(0); }
  nav a { font-size: 1rem; padding: 1rem 1.5rem; border-radius: 0; border-left: 3px solid transparent; color: var(--slate); }
  nav a:hover, nav a.active { background: var(--orange-pale); border-left-color: var(--orange); color: var(--ink); }
  .hero { height: auto; padding: 3rem 1.25rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stat .num { font-size: 1.6rem; }
  .hero-ia-bar { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .deposer-steps { grid-template-columns: 1fr; }
  .cg-picker { flex-direction: column; align-items: stretch; }
  .cg-file-btn { justify-content: center; }
  .cg-file-name { text-align: center; white-space: normal; word-break: break-all; }
  .annonce-page { padding: 1rem; overflow-x: hidden; }
  .annonce-main, .annonce-side-col, .annonce-img-wrap { min-width: 0; }
  .gallery-img-wrap img { height: 240px; }
  .annonce-body { grid-template-columns: 1fr; grid-template-areas: "img" "side" "main"; }
  .pub-side { display: none; }
  .pub-mobile-inline { display: block; }
  .annonce-titre { font-size: 1.5rem; }
  .annonce-prix { font-size: 1.8rem; }
  .filtres-grid { grid-template-columns: 1fr 1fr; }
  .section-wrap, .page-content { padding: 1.5rem 1rem; }
  .grid-annonces { grid-template-columns: 1fr 1fr; }
  #resultats.grid-annonces { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .recherche-header { padding: 1.5rem 1rem; }
  .recherche-header h1 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--ink); }
  .ia-bar { flex-direction: column; }
  .form-card { padding: 1.5rem 1rem; }
  .form-actions { flex-direction: column; }
  .form-actions button { width: 100%; justify-content: center; }
  .profil-stats { grid-template-columns: repeat(2, 1fr); }
  .profil-stat { border-bottom: 1px solid var(--border); }
  .profil-identity { flex-direction: column; gap: 0.85rem; text-align: center; }
  .profil-identity-text { text-align: center; }
  .profil-name-row { justify-content: center; }
  .profil-actions { width: 100%; justify-content: center; }
  .profil-completion-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .profil-completion-pct { align-self: flex-end; }
  .profil-tab { font-size: 0.82rem; padding: 0.7rem 0.85rem; white-space: nowrap; flex-shrink: 0; }
  .profil-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .profil-tabs::-webkit-scrollbar { height: 3px; }
  .profil-tabs::-webkit-scrollbar-thumb { background: var(--orange-mid, #f9a26c); border-radius: 2px; }
  .profil-menu { right: auto; left: 50%; transform: translateX(-50%); }
  #map { margin: 1rem; }
}
@media (max-width: 480px) {
  .grid-annonces { grid-template-columns: 1fr 1fr; }
  #resultats.grid-annonces { grid-template-columns: 1fr; }
  .grid-annonces .card-annonce > img { height: 120px; }
  #resultats.grid-annonces .card-annonce > img { height: 200px; }
  .grid-annonces .card-annonce-body { padding: 0.6rem 0.75rem; }
  .grid-annonces .card-annonce-prix { font-size: 1.1rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .btn-comparer { font-size: 0.7rem; padding: 6px 8px; }
}

/* ============================================================
   NAV DROPDOWN — PROFIL
   ============================================================ */
/* ============================================================
   PWA — Bandeau install + Modale iOS
   ============================================================ */
.pwa-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-bottom: 2px solid var(--orange);
  position: sticky;
  top: 66px;
  z-index: 99;
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}
.pwa-banner[hidden] { display: none !important; }
.pwa-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
}
.pwa-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.pwa-banner-text strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.pwa-banner-text span {
  font-size: 0.78rem;
  color: var(--slate-light);
}
.pwa-banner-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.pwa-banner-cta:hover { background: var(--orange-light); }
.pwa-banner-close {
  background: none;
  border: none;
  color: var(--slate-light);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.pwa-banner-close:hover { color: var(--white); }

@media (max-width: 480px) {
  .pwa-banner-text span { display: none; }
  .pwa-banner { gap: 0.6rem; padding: 0.6rem 1rem; }
}

.pwa-ios-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}
.pwa-ios-card {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-lg) var(--radius-lg);
  padding: 2rem 1.5rem 2.5rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  position: relative;
}
.pwa-ios-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--slate);
}
.pwa-ios-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 1rem;
}
.pwa-ios-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.pwa-ios-card p { color: var(--slate); font-size: 0.95rem; line-height: 1.6; }
.pwa-ios-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #007AFF;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: middle;
  margin: 0 2px;
}
.pwa-ios-hint {
  margin-top: 1.25rem;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.85rem;
  animation: pwaHintBounce 1.5s ease-in-out infinite;
}
@keyframes pwaHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (max-width: 768px) {
  .pwa-install-btn span { display: none; }
  .pwa-install-btn { padding: 7px 9px; }
}

/* ── Autocomplete marque / modèle ─────────────────────────────── */
.ac-wrap { position: relative; }
.ac-wrap input { width: 100%; }
.ac-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 300;
  background: var(--white);
  border: 1.5px solid var(--orange);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  max-height: 240px; overflow-y: auto;
  display: none;
}
.ac-item {
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.ac-active { background: var(--orange-pale); color: var(--orange); }
.ac-item mark { background: none; color: var(--orange); font-weight: 700; padding: 0; }
.ac-clear {
  position: absolute; right: 0.65rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--slate-light); font-size: 1rem; line-height: 1;
  display: none; padding: 0 0.2rem;
}
.ac-wrap:has(input:not(:placeholder-shown)) .ac-clear { display: block; }

/* Chips de sélection en tête du dropdown autocomplete */
.ac-selected-chips {
  position: sticky; top: 0; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  padding: 0.55rem 0.6rem;
  background: var(--bg, #faf8f5);
  border-bottom: 1px solid var(--border-light);
}
.ac-chip {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: var(--orange-pale); border: 1px solid #1a1a1a;
  color: var(--orange); border-radius: 999px;
  padding: 2px 4px 2px 10px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  cursor: pointer; user-select: none;
}
.ac-chip:hover { background: var(--orange); color: #fff; border-color: #1a1a1a; }
.ac-chip:hover button { color: #fff; }
.ac-chip button {
  background: none; border: none; cursor: pointer; color: var(--orange);
  font-size: 1rem; line-height: 1; padding: 0 4px;
  font-weight: 700; pointer-events: none;
}

/* Ancienne zone tags sous l'input — désactivée (chips déplacés dans le dropdown) */
#marque-tags { display: none !important; }

/* Input autocomplete avec sélection active (marque multi-select) */
.ac-wrap input.ac-has-selection {
  border-color: var(--orange) !important;
  background: var(--orange-pale) !important;
  box-shadow: 0 0 0 1px var(--orange-mid) inset;
}
.ac-wrap input.ac-has-selection::placeholder {
  color: var(--orange);
  font-weight: 700;
  opacity: 1;
}

/* ============================================================
   AWIN — Services partenaires (liens affiliés)
   ============================================================ */
.awin-section {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 70%);
  border: 1.5px solid #ffcba4;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 10px rgba(255,92,0,0.08);
  margin: 1.25rem 0;
}
.awin-section-titre {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: #111;
}
.awin-section-desc {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0 0 1rem;
}
.awin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}
/* Version aside (compacte) */
.awin-card-aside {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff7ed;
  border: 1.5px solid #ff5c00;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 0.5rem;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.awin-card-aside:hover { background: #ffedd5; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(255,92,0,0.15); }
.awin-aside-icon { font-size: 1.4rem; flex-shrink: 0; }
.awin-aside-body { flex: 1; min-width: 0; }
.awin-aside-titre { font-size: 0.83rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.awin-aside-desc { font-size: 0.73rem; color: #6b7280; margin-top: 0.1rem; }
.awin-aside-arrow { color: #ff5c00; font-weight: 700; flex-shrink: 0; font-size: 1rem; }
/* Version corps (complète) */
.awin-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1.5px solid #ff5c00;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.awin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,92,0,0.15);
}
.awin-logo {
  align-self: stretch;
  width: 90px;
  object-fit: cover;
  border-radius: 10px 0 0 10px;
  margin: -1rem 0.75rem -1rem -1.25rem;
  flex-shrink: 0;
}
.awin-aside-logo {
  align-self: stretch;
  width: 64px;
  object-fit: cover;
  border-radius: 8px 0 0 8px;
  margin: -0.85rem 0.5rem -0.85rem -1rem;
  flex-shrink: 0;
}
.awin-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.awin-content {
  flex: 1;
  min-width: 0;
}
.awin-titre {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111;
  margin-bottom: 0.2rem;
}
.awin-desc {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}
.awin-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: #ff5c00;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
.awin-disclosure {
  font-size: 0.68rem;
  color: #9ca3af;
  margin: 0.85rem 0 0;
  text-align: center;
}
.awin-disclosure a {
  color: #6b7280;
  text-decoration: underline;
}

/* Messages non lus — pastilles rouges cohérentes */
.unread-badge {
  background: #dc2626; color: white;
  font-size: 0.62rem; font-weight: 700;
  padding: 0.1rem 0.35rem; border-radius: 10px;
  margin-left: 0.3rem; min-width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.unread-dot {
  display: inline-block; width: 8px; height: 8px;
  background: #dc2626; border-radius: 50%;
  margin-left: 4px; vertical-align: middle;
  box-shadow: 0 0 0 2px var(--white);
}
.profil-stat .unread-badge { margin-top: 0.4rem; align-self: center; }

/* ============================================================
   ÉDITEUR VITRINE PRO (tab "Vitrine" dans profil.html)
   ============================================================ */
.vitrine-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
}
.vitrine-block-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--ink); margin: 0 0 1rem;
}

/* Grille 2 colonnes pour les services proposés (éditeur vitrine) */
.vitrine-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.75rem;
}
/* Liste simple en colonne pour les options d'affichage */
.vitrine-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
/* Ligne checkbox + label : alignement top stable même si le label wrap */
.vitrine-opt-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.3;
  min-height: 1.4em;
}
.vitrine-opt-row input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0.2em 0 0;
  width: 1em;
  height: 1em;
  cursor: pointer;
}
.vitrine-opt-row span { flex: 1; }

@media (max-width: 600px) {
  /* Sur mobile, services en 1 seule colonne pour ne pas couper les labels */
  .vitrine-options-grid { grid-template-columns: 1fr; }
}
.vitrine-img-preview {
  width: 100%;
  background: var(--bg-2) center/cover no-repeat;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.vitrine-img-preview.has-image { border-style: solid; }
.vitrine-img-preview.is-loading::after {
  content: '⏳ Upload…'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.8); font-weight: 600;
}
.vitrine-logo-preview     { aspect-ratio: 1; max-width: 200px; }
.vitrine-banniere-preview { aspect-ratio: 4/1; }
.vitrine-images-grid > div { min-width: 0; }

.vitrine-themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.vitrine-theme-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.vitrine-theme-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vitrine-theme-card.is-active { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-pale); }
.vitrine-theme-card.is-locked { cursor: not-allowed; opacity: 0.55; }
.vitrine-theme-card.is-locked:hover { transform: none; box-shadow: none; }
.vitrine-theme-preview {
  background: var(--vit-bg);
  height: 160px;
  overflow: hidden;
  position: relative;
}
.vitrine-theme-meta {
  padding: 0.75rem 0.9rem;
  display: flex; flex-direction: column; gap: 0.15rem;
  border-top: 1px solid var(--border);
}
.vitrine-theme-meta strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--ink); font-size: 0.95rem;
}
.vitrine-theme-meta span {
  color: var(--slate); font-size: 0.8rem; line-height: 1.3;
}
.vitrine-theme-meta .vitrine-theme-lock {
  margin-top: 0.3rem; color: #b45309; font-size: 0.75rem; font-weight: 600;
}

/* Mini-vitrine sur annonce.html */
.vmc-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  transition: transform .2s ease, box-shadow .2s ease;
  margin: 0.25rem 0;
}
.vmc-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.16); }
.vmc-banner {
  height: 72px;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.vmc-overlay-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(transparent, rgba(0,0,0,0.35));
}
.vmc-cta {
  padding: 8px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 600px) {
  .vitrine-images-grid { grid-template-columns: 1fr !important; }
}

/* ── Bloc HistoVec sur la page annonce ─────────────────────── */
.histovec-block {
  display: flex; align-items: center; gap: 0.85rem;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem; margin: 1rem 0;
  border: 1px solid var(--border);
  background: #f8fafc;
}
.histovec-block.histovec-ok    { background: #ecfdf5; border-color: #10b981; }
.histovec-block.histovec-ask   { background: #f1f5f9; border-color: #cbd5e1; }
.histovec-block.histovec-empty { background: #fef3c7; border-color: #f59e0b; }
.histovec-block .histovec-icon {
  font-size: 1.6rem; flex-shrink: 0; line-height: 1;
}
.histovec-block .histovec-content { flex: 1; min-width: 0; }
.histovec-block .histovec-titre {
  font-weight: 700; color: var(--ink); font-size: 0.95rem; margin-bottom: 0.2rem;
}
.histovec-block .histovec-desc {
  color: var(--slate); font-size: 0.83rem; line-height: 1.45;
}
.histovec-block .histovec-desc a { color: var(--orange); }
.histovec-block .histovec-btn {
  flex-shrink: 0; background: #10b981; color: #fff;
  padding: 0.55rem 0.95rem; border-radius: 8px;
  font-weight: 600; font-size: 0.85rem; text-decoration: none;
  border: none; cursor: pointer; transition: var(--transition);
}
.histovec-block .histovec-btn:hover { background: #059669; transform: translateY(-1px); }
.histovec-block .histovec-btn-ask { background: var(--orange); }
.histovec-block .histovec-btn-ask:hover { background: #ea580c; }
@media (max-width: 600px) {
  .histovec-block { flex-direction: column; align-items: stretch; text-align: center; }
  .histovec-block .histovec-btn { width: 100%; text-align: center; }
}

/* ============================================================
   ANALYTICS PRO (tab "📊 Analytics" dans profil.html)
   Visible uniquement pro_business / pro_business_plus
   ============================================================ */
.analytics-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--slate);
}
.analytics-spinner {
  width: 36px; height: 36px;
  border: 3px solid #2a2d35;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.analytics-kpi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition);
}
.analytics-kpi-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.analytics-kpi-icon  { font-size: 1.5rem; margin-bottom: 0.4rem; }
.analytics-kpi-value { font-family: 'Barlow Condensed', sans-serif; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.analytics-kpi-label { font-size: 0.75rem; color: var(--slate); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.3px; }

.analytics-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.analytics-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 1rem;
  color: var(--dark);
}

.analytics-chart-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.analytics-chart-wrap canvas { display: block; width: 100% !important; }

.analytics-table-wrap { overflow-x: auto; }
.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.analytics-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--slate);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.analytics-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.analytics-table tr:last-child td { border-bottom: none; }
.analytics-table tr:hover td { background: #f9fafb; }

.analytics-quality-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 3px;
  min-width: 60px;
}
.analytics-quality-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}

.analytics-opp-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.analytics-opp-row:last-child { border-bottom: none; }
.analytics-opp-label { flex: 1; font-weight: 600; font-size: 0.9rem; }
.analytics-opp-count { font-size: 0.82rem; color: var(--slate); white-space: nowrap; }

.analytics-lock {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--slate);
}
.analytics-lock p { max-width: 360px; margin: 0 auto 1.25rem; line-height: 1.5; }

.analytics-ai-card { background: linear-gradient(135deg, #0f1117 0%, #1a1230 100%); border-color: #4c1d95; }
.analytics-ai-blocs { display: flex; flex-direction: column; gap: 0.875rem; }
.analytics-ai-bloc {
  border-left: 3px solid;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.analytics-ai-bloc p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #e5e7eb; }
.analytics-ai-bloc-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}
.analytics-ai-card .analytics-section-title { color: #e9d5ff; }
.analytics-ai-card #analyticsAiIntro { color: #9ca3af; }

/* ── Boutons d'action dans le tableau (💡 / 📊) ───────────── */
.analytics-action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  margin: 0 2px;
  background: #1e2128;
  border: 1px solid #2a2d35;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.analytics-action-btn:hover { background: #2a2d35; border-color: #3a3d45; transform: translateY(-1px); }
.analytics-action-btn:active { transform: translateY(0); }
.analytics-action-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  line-height: 1.2;
  min-width: 16px;
  text-align: center;
}

/* ── Liste suggestions (collapsible row) ──────────────────── */
.sug-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.sug-item {
  background: #12151b;
  border-left: 3px solid #6b7280;
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
}
.sug-item.sug-high   { border-left-color: #ef4444; }
.sug-item.sug-medium { border-left-color: #f59e0b; }
.sug-item.sug-low    { border-left-color: #6b7280; }
.sug-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}
.sug-sev {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
}
.sug-sev-high   { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.sug-sev-medium { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.sug-sev-low    { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }
.sug-impact {
  font-size: 0.72rem;
  color: #9ca3af;
  font-style: italic;
}
.sug-msg {
  font-size: 0.85rem;
  color: #e5e7eb;
  line-height: 1.45;
}

/* ── Modal scatter position prix vs marché ─────────────── */
.market-pos-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.15s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.market-pos-box {
  position: relative;
  background: #12151b;
  border: 1px solid #2a2d35;
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.25rem;
  max-width: 760px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.market-pos-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.3rem;
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.market-pos-close:hover { background: #2a2d35; color: #fff; }

.market-pos-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.market-stat-block {
  background: #0c0e14;
  border: 1px solid #2a2d35;
  border-radius: 8px;
  padding: 0.7rem 0.5rem;
  text-align: center;
}
.market-stat-label {
  font-size: 0.65rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.market-stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}
.market-stat-verdict {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem;
  background: #0c0e14;
  border-radius: 6px;
  margin-top: 0.2rem;
}
.market-pos-canvas-wrap {
  background: #0c0e14;
  border-radius: 8px;
  padding: 0.5rem;
  border: 1px solid #2a2d35;
}
.market-pos-canvas-wrap canvas { display: block; width: 100% !important; }

/* ── Verdict sell-compare (Lot 3) ──────────────────────────── */
.sell-cmp-verdict {
  background: #0c0e14;
  border-left: 4px solid #6b7280;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-top: 1rem;
}
.sell-cmp-verdict-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.sell-cmp-verdict-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e5e7eb;
}

/* ── Heatmap horaire 7×24 (Lot 2) ──────────────────────────── */
.heatmap-grid {
  display: grid;
  grid-template-columns: 38px repeat(24, minmax(0, 1fr));
  gap: 2px;
  background: #0c0e14;
  padding: 4px;
  border-radius: 6px;
  overflow-x: auto;
}
.heat-corner { background: transparent; }
.heat-h-label, .heat-d-label {
  font-size: 0.62rem;
  color: #9ca3af;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 2px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.heat-d-label { text-align: right; padding-right: 4px; align-self: center; }
.heat-cell {
  aspect-ratio: 1;
  min-height: 18px;
  border-radius: 2px;
  cursor: help;
  transition: outline 0.1s;
}
.heat-cell:hover { outline: 1px solid #ff5c00; outline-offset: -1px; }
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: #9ca3af;
  flex-wrap: wrap;
}
.heat-leg {
  display: inline-block;
  width: 16px;
  height: 12px;
  border-radius: 2px;
}

/* ── Source de trafic : barres horizontales (Lot 2) ───────── */
.traffic-row {
  display: grid;
  grid-template-columns: 170px 1fr 56px 56px;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #1e2128;
}
.traffic-row:last-child { border-bottom: none; }
.traffic-label {
  font-size: 0.85rem;
  color: #e5e7eb;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.traffic-ico { font-size: 0.95rem; }
.traffic-bar-wrap {
  background: #1e2128;
  border-radius: 4px;
  height: 14px;
  overflow: hidden;
}
.traffic-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease-out;
}
.traffic-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
}
.traffic-count {
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: right;
}

@media (max-width: 640px) {
  .analytics-kpis { grid-template-columns: repeat(2, 1fr); }
  .analytics-kpi-value { font-size: 1.35rem; }
  .analytics-table th:nth-child(3),
  .analytics-table td:nth-child(3) { display: none; }
  .market-pos-stats { grid-template-columns: repeat(2, 1fr); }
  .market-stat-value { font-size: 1.15rem; }
  .market-pos-box { padding: 1rem 0.85rem 1rem; }
  .analytics-action-btn { width: 28px; height: 28px; font-size: 0.9rem; }
  .heatmap-grid { grid-template-columns: 28px repeat(24, minmax(0, 1fr)); }
  .heat-cell { min-height: 14px; }
  .heat-h-label, .heat-d-label { font-size: 0.55rem; }
  .traffic-row { grid-template-columns: 100px 1fr 42px 42px; gap: 0.4rem; }
  .traffic-label { font-size: 0.78rem; }
}

/* ── Checkbox filter panels (recherche.html) ──────────────── */
.filtre-cb-wrap { position: relative; }
.filtre-cb-btn {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; height: 100%;
  padding: 0.6rem 1rem; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; font-size: 0.9rem; font-family: inherit;
  transition: border-color 0.2s; text-align: left;
  white-space: nowrap; overflow: hidden; box-sizing: border-box;
}
.filtre-cb-btn:hover { border-color: var(--orange-mid); }
.filtre-cb-btn.open { border-color: var(--orange); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.filtre-cb-label { flex: 1; min-width: 0; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filtre-cb-label.has-val { color: var(--ink); font-weight: 600; }
.filtre-cb-count {
  background: var(--orange); color: #fff; border-radius: 999px;
  padding: 1px 7px; font-size: 0.72rem; font-weight: 700;
  display: none; line-height: 1.6;
}
.filtre-cb-count.has-val { display: inline-block; }
.filtre-cb-arrow { color: var(--slate); font-size: 0.7rem; transition: transform 0.2s; flex-shrink: 0; }
.filtre-cb-btn.open .filtre-cb-arrow { transform: rotate(180deg); }
.filtre-cb-panel {
  display: none; position: absolute; top: 100%; left: 0; min-width: 100%; max-width: 280px;
  z-index: 300; background: var(--white); border: 1.5px solid var(--orange);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  padding: 0.5rem 0.6rem; max-height: 260px; overflow-y: auto;
  box-shadow: var(--shadow); box-sizing: border-box;
}
.filtre-cb-panel.open { display: block; }
.filtre-cb-panel label {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.25rem;
  cursor: pointer; border-radius: 4px; font-size: 0.875rem;
}
.filtre-cb-panel label:hover { background: var(--orange-pale); }
.filtre-cb-panel input[type=checkbox] {
  accent-color: var(--orange); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0;
}
/* Tags multi-marques */
.marque-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.25rem 0; }
.marque-tag {
  display: flex; align-items: center; gap: 0.25rem;
  background: var(--orange-pale); border: 1px solid #1a1a1a;
  color: var(--orange); border-radius: 999px; padding: 2px 8px 2px 10px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.marque-tag button {
  background: none; border: none; cursor: pointer; color: var(--orange);
  font-size: 0.9rem; line-height: 1; padding: 0 1px; font-weight: 700;
}

/* Autocomplete recherche IA (style T9) */
.mcm-ac-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  max-height: 360px; overflow-y: auto; z-index: 1000;
  margin-top: 4px;
}
.mcm-ac-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.85rem; cursor: pointer;
  font-size: 0.92rem; color: #1f2937;
  border-bottom: 1px solid #f3f4f6;
  user-select: none;
}
.mcm-ac-item:last-child { border-bottom: none; }
.mcm-ac-item.selected, .mcm-ac-item:hover {
  background: var(--orange-pale); color: var(--orange);
}
.mcm-ac-icon { font-size: 1rem; flex-shrink: 0; opacity: 0.85; }
.mcm-ac-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcm-ac-item.is-prefix::after { content: '\203A'; font-size: 1.25rem; color: var(--orange); opacity: 0.6; flex-shrink: 0; line-height: 1; }
.mcm-ac-item.is-prefix.selected::after, .mcm-ac-item.is-prefix:hover::after { opacity: 1; }
@media (max-width: 768px) {
  .mcm-ac-dropdown { max-height: 280px; }
  .mcm-ac-item { padding: 0.7rem 0.85rem; font-size: 0.95rem; }
}

/* Skeleton loading */
@keyframes skel-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skel {
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease infinite;
  border-radius: 6px;
}
.skel-img { width: 100%; aspect-ratio: 4/3; max-height: 420px; display: block; }