/* =========================
   VEHICULE (DETAIL PAGE)
========================= */
.v-page{ padding: 24px 0 60px; }
.v-container{ width:min(1180px, 92%); margin:0 auto; }

/* Breadcrumb */
.v-breadcrumb{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 18px;
}
.v-breadcrumb a{ text-decoration:none; color: inherit; }
.v-breadcrumb a:hover{ text-decoration:underline; }

/* Grid layout */
.v-grid{
  display:grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 22px;
  align-items:start;
}

/* =========================
   GALLERY
========================= */
.v-gallery{ min-width: 0; }

.v-gallery-main{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  background:#0b0f14;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.10);
  aspect-ratio: 16 / 10;
}
.v-gallery-main img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
  transition: opacity .18s ease;
}
.v-gallery-main img.is-fade{ opacity:.35; }

/* Watermark */
.v-gallery-main::after{
  content:"DGS AUTO";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  letter-spacing: 10px;
  font-size: clamp(34px, 4.5vw, 62px);
  color: rgba(255,255,255,.14);
  text-transform: uppercase;
  pointer-events:none;
  text-shadow: 0 10px 24px rgba(0,0,0,.20);
  mix-blend-mode: overlay;
}

/* Nav buttons */
.v-nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 0;
  background: rgba(255,255,255,.92);
  color:#0f172a;
  font-size: 34px;
  line-height: 1;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .12s ease, background .12s ease;
}
.v-nav:hover{ transform: translateY(-50%) scale(1.03); background:#fff; }
.v-nav-left{ left: 14px; }
.v-nav-right{ right: 14px; }

/* Thumbnails */
.v-thumbs{
  display:flex;
  gap:10px;
  margin-top: 12px;
  overflow:auto;
  padding-bottom: 2px;
}
.v-thumb{
  border: 2px solid transparent;
  background: transparent;
  padding:0;
  border-radius: 12px;
  cursor:pointer;
  flex: 0 0 auto;
}
.v-thumb img{
  width: 98px;
  height: 66px;
  object-fit: cover;
  border-radius: 10px;
  display:block;
  filter: saturate(1.02);
}
.v-thumb.is-active{ border-color: rgba(37,92,99,.55); }

/* =========================
   SIDE CARD
========================= */
.v-side{ position: sticky; top: 14px; }
.v-card{
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.10);
  padding: 18px;
}

.v-topline{ display:flex; justify-content:flex-start; margin-bottom: 10px; }

.v-badge{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 8px 10px;
  border-radius: 999px;
}
.v-badge.is-sale{ background: rgba(37,92,99,.12); color: var(--teal); }
.v-badge.is-rent{ background: rgba(255,193,7,.18); color: #7a5a00; }

.v-title{
  font-size: 22px;
  line-height:1.2;
  margin: 0 0 12px;
  color: var(--text);
}

.v-price{ display:flex; align-items:baseline; gap:8px; margin-bottom: 12px; }
.v-price-big{ font-size: 30px; font-weight: 900; color: var(--text); }
.v-price-sub{ color: var(--muted); font-weight: 700; }

.v-chips{ display:flex; flex-wrap:wrap; gap:8px; margin: 10px 0 12px; }
.v-chip{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  color: #0f172a;
  font-weight: 700;
}

.v-availability{
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(37,92,99,.06);
  border: 1px solid rgba(37,92,99,.16);
}
.v-av-row{ display:flex; justify-content:space-between; gap:10px; color: var(--text); }
.v-av-row span{ color: var(--muted); }

.v-actions{ display:grid; gap:10px; margin-top: 10px; }
.v-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight: 800;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  cursor:pointer;
}
.v-btn-primary{ background: var(--teal); color:#fff; }
.v-btn-primary:hover{ filter: brightness(1.05); }

.v-btn-ghost{
  background:#fff;
  border-color: rgba(0,0,0,.12);
  color: var(--text);
}
.v-btn-ghost:hover{ background: rgba(0,0,0,.03); }

.v-btn-dark{ background:#0f172a; color:#fff; }
.v-btn-dark:hover{ filter: brightness(1.06); }

.v-note{ margin-top: 12px; color: var(--muted); font-size: 13px; }

/* =========================
   SECTIONS (Caractéristiques + Description)
========================= */
.v-sections{ margin-top: 20px; display:grid; gap: 16px; }
.v-section{
  background:#fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.10);
  padding: 18px;
}
.v-section h2{ margin:0 0 12px; font-size: 18px; }

/* Specs grid */
.v-specs{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

/* Spec item */
.v-spec{
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  min-width: 0;
}

/* Left side: icon + label */
.v-spec-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.v-spec-ico{
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
  opacity: .9;
}
.v-spec-label{
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* Right side: value (anti-débordement) */
.v-spec-value{
  color: var(--text);
  font-weight: 800;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Description */
.v-desc{ color: var(--text); line-height:1.7; }
.v-muted{ color: var(--muted); }

/* Not found */
.v-notfound{
  background:#fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.10);
  padding: 24px;
  text-align:center;
}
.model-form{
  font-size: 30px;
  margin-bottom: 14px;
  color: rgb(78, 96, 90);
  font-weight: 700;
  text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .v-grid{ grid-template-columns: 1fr; }
  .v-side{ position: static; }
  .v-gallery-main{ aspect-ratio: 16/11; }
}

/* Téléphone */
@media (max-width: 600px){
  .v-page{ padding: 14px 0 44px; }
  .v-container{ width: 92%; }

  .v-title{ font-size: 18px; }
  .v-price-big{ font-size: 24px; }

  .v-card{ padding: 14px; }
  .v-section{ padding: 14px; }

  .v-nav{
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 30px;
  }
  .v-nav-left{ left: 10px; }
  .v-nav-right{ right: 10px; }

  .v-thumb img{
    width: 82px;
    height: 56px;
  }

  /* Caractéristiques: 1 colonne sur téléphone */
  .v-specs{
    grid-template-columns: 1fr;
  }

  .v-spec{
    padding: 12px 12px;
  }

  .v-spec-label{
    font-size: 13px;
  }
  .v-spec-value{
    font-size: 14px;
  }
}

/* Très petit téléphone */
@media (max-width: 360px){
  .v-spec-ico{ width: 20px; height: 20px; }
  .v-price-big{ font-size: 22px; }
}
