:root{
  --bg:#0b1220;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.09);
  --text:#e7eefc;
  --muted:rgba(231,238,252,.72);
  --line:rgba(255,255,255,.12);
  --accent:#4ee1a0;
  --accent2:#7aa7ff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(78,225,160,.18), transparent 55%),
    radial-gradient(1000px 600px at 90% 20%, rgba(122,167,255,.16), transparent 55%),
    var(--bg);
}

.container{width:min(1100px,92%);margin:0 auto}

.top{
  position:sticky;top:0;z-index:10;
  background:rgba(11,18,32,.55);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.top .container{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:14px 0;
  flex-wrap:wrap;
}

.brand{display:flex;align-items:center;gap:12px}
.logo{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(135deg, rgba(78,225,160,.25), rgba(122,167,255,.18));
  border:1px solid var(--line);
}
.brand h1{margin:0;font-size:18px;line-height:1.15}
.brand p{margin:2px 0 0;font-size:13px;color:var(--muted)}

.tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.search{
  display:flex;align-items:center;gap:8px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
}
.search input{
  width:min(380px, 70vw);
  background:transparent;border:0;outline:0;
  color:var(--text);
  font-size:13px;
}
.search input::placeholder{color:rgba(231,238,252,.55)}

.ghost{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:16px;
  cursor:pointer;
  font-size:13px;
}
.ghost:hover{background:rgba(255,255,255,.06)}

.hero{padding:22px 0 6px}
.hero-card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius:22px;
  padding:18px;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
}
.hero-card h2{margin:0 0 8px;font-size:20px}
.hero-card p{margin:0 0 12px;color:var(--muted);line-height:1.45}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
}

.section{padding:14px 0 10px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;flex-wrap:wrap}
.section-head h3{margin:0;font-size:18px}
.section-head p{margin:0;color:var(--muted);font-size:13px}

.cats{display:grid;grid-template-columns:repeat(12,1fr);gap:12px;margin-top:12px}

.cat{
  grid-column:span 6;
  border:1px solid var(--line);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow:0 18px 40px rgba(0,0,0,.28);
  overflow:hidden;
}
@media (max-width: 900px){ .cat{grid-column:span 12} }

.cat summary{
  list-style:none;
  cursor:pointer;
  padding:14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--line);
}
.cat summary::-webkit-details-marker{display:none}

.sum-left{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.badge{
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  font-weight:600;
  font-size:13px;
}
.meta{color:var(--muted);font-size:12px}
.chev{
  opacity:.8;
  transform:rotate(0deg);
  transition:transform .18s ease;
}
details[open] .chev{transform:rotate(180deg)}

.cat-body{padding:12px 14px 14px}

.table-head{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
  padding:0 8px 10px;
  color:rgba(231,238,252,.78);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.th-price{text-align:right}

.list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
  max-height: 420px;
  overflow:auto;
}
.list::-webkit-scrollbar{height:10px;width:10px}
.list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:999px}

.row{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.veh{
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.price{font-variant-numeric:tabular-nums;opacity:.95}

.row mark{
  background: rgba(78,225,160,.22);
  color: var(--text);
  padding: 0 2px;
  border-radius: 6px;
}

.footer{
  border-top:1px solid var(--line);
  margin-top:18px;
  padding:16px 0;
  color:var(--muted);
  font-size:13px;
}
.footer .container{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.sep{opacity:.5}
.muted{opacity:.9}

.hidden{display:none !important}


/* liens véhicule */
a.veh.link{
  color: var(--text);
  text-decoration: none;
}
a.veh.link:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.veh.link:focus-visible{
  outline: 2px solid rgba(78,225,160,.55);
  outline-offset: 2px;
  border-radius: 8px;
}


/* Photos importées */
.photo-grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}

.photo-card{
  grid-column: span 4;
  border:1px solid var(--line);
  border-radius:22px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  overflow:hidden;
  text-decoration:none;
  color: var(--text);
}

@media (max-width: 900px){
  .photo-card{grid-column: span 6;}
}
@media (max-width: 560px){
  .photo-card{grid-column: span 12;}
}

.photo-card .thumb{
  width:100%;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
.photo-card .thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
  object-position:center;
  transform: scale(1.01);
}

.photo-card .pc-body{
  padding:12px 14px 14px;
}

.pc-title{
  font-weight:650;
  font-size:14px;
  margin-bottom:6px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.pc-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color: var(--muted);
  font-size:12px;
}

.pc-cat{
  padding:5px 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(231,238,252,.82);
  white-space:nowrap;
}

.pc-price{
  font-variant-numeric: tabular-nums;
  white-space:nowrap;
}

.photo-card:hover{
  filter: brightness(1.04);
}


/* Sort dropdown */
.sort{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
}

.sort select{
  appearance:none;
  border:none;
  outline:none;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding-right: 14px;
  cursor:pointer;
}
