/* ── Vandeto Map · mod-ad-context ─────────────────────────────
   Blocs « Contexte » et « Annonces comparables » de la fiche.

   Les blocs sont insérés DANS le contenu du thème : toutes les règles
   sont portées par .vdm-ac et remettent à plat ce qu'AdForest applique
   globalement aux ul/li/h4/p. Rien ne sort du bloc, à l'exception de
   l'entrée de sommaire (.vdm-ac-menu-item), qui hérite volontairement
   du style du thème.
   ───────────────────────────────────────────────────────────── */

.vdm-ac,
.vdm-ac *,
.vdm-ac *::before,
.vdm-ac *::after { box-sizing: border-box; }

.vdm-ac[hidden] { display: none; }

.vdm-ac{
  --vdm-ac-ink:    #11151c;
  --vdm-ac-muted:  #6b7280;
  --vdm-ac-faint:  #9ca3af;
  --vdm-ac-line:   #e9e9e9;
  --vdm-ac-wash:   #f5f6f7;
  --vdm-ac-green:  #17b26a;
  --vdm-ac-orange: #f59e0b;
  --vdm-ac-red:    #ff1700;

  margin: 0 0 24px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--vdm-ac-line);
  border-radius: 14px;
  font-family: inherit;
  color: var(--vdm-ac-ink);
}

.vdm-ac-title{
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vdm-ac-ink);
}
.vdm-ac-title svg{ width: 19px; height: 19px; flex: 0 0 auto; color: var(--vdm-ac-red); }

/* ── Sections ──────────────────────────────────────────────── */
.vdm-ac-sec{
  padding: 16px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--vdm-ac-line);
}
.vdm-ac-sec:first-of-type{ border-top: 0; }

.vdm-ac-sec-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.vdm-ac-sec-label{
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vdm-ac-muted);
  line-height: 1.2;
}
.vdm-ac-sec-meta{
  font-size: 11.5px;
  font-weight: 600;
  color: var(--vdm-ac-faint);
  line-height: 1.2;
}

/* ── Note de bas de section ────────────────────────────────── */
.vdm-ac-note{
  margin: 10px 0 0;
  padding: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--vdm-ac-faint);
}
.vdm-ac-note--tight{ margin-top: 7px; }

/* ══ § Prix ═══════════════════════════════════════════════════ */
.vdm-ac-price-top{
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}
.vdm-ac-delta{
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.vdm-ac-arrow{ font-size: 15px; line-height: 1; }
/* v2.39.0 — « 4 sur 7 », « × 2,1 la médiane » : le complément est
   en retrait, le chiffre garde la hiérarchie. */
.vdm-ac-delta small{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--vdm-ac-muted);
}
.vdm-ac-delta--aligned{ font-size: 22px; }
.vdm-ac-caption{
  margin: -2px 0 10px;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--vdm-ac-muted);
}
.vdm-ac-soft{ color: var(--vdm-ac-faint); font-weight: 500; }
.vdm-ac-delta--green { color: #0f7a4d; }
.vdm-ac-delta--orange{ color: #b45309; }
.vdm-ac-delta--red   { color: var(--vdm-ac-red); }

.vdm-ac-verdict{
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  background: var(--vdm-ac-wash);
  color: var(--vdm-ac-muted);
}
.vdm-ac-verdict.vdm-ac--green { background: #e9f9f1; color: #0f7a4d; }
.vdm-ac-verdict.vdm-ac--orange{ background: #fef3e2; color: #b45309; }
.vdm-ac-verdict.vdm-ac--red   { background: #ffece9; color: var(--vdm-ac-red); }

.vdm-ac-price-line{
  margin: 0 0 16px;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--vdm-ac-muted);
}
.vdm-ac-price-line strong{ color: var(--vdm-ac-ink); font-weight: 700; }

/* Barre de distribution — v2.39.0 : la bande foncée est la fourchette
   habituelle (1er → 3e quartile), le trait la médiane, le point l'annonce. */
.vdm-ac-range{ margin: 0; }
.vdm-ac-range-bar{
  position: relative;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #eef0f2;
}
.vdm-ac-range-band{
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: #d5d9df;
}
.vdm-ac-range-med{
  position: absolute;
  top: -4px;
  width: 2px;
  height: 14px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--vdm-ac-ink);
}
.vdm-ac-range-dot{
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border-radius: 50%;
  background: var(--vdm-ac-muted);
  border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
}
.vdm-ac-range-dot--green { background: var(--vdm-ac-green); }
.vdm-ac-range-dot--orange{ background: var(--vdm-ac-orange); }
.vdm-ac-range-dot--red   { background: var(--vdm-ac-red); }

.vdm-ac-range-ends{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--vdm-ac-faint);
}
.vdm-ac-range-val{ color: var(--vdm-ac-ink); font-variant-numeric: tabular-nums; }

/* ══ § Quartier ═══════════════════════════════════════════════ */
.vdm-ac-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.vdm-ac-stat{
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 13px;
  border-radius: 10px;
  background: var(--vdm-ac-wash);
  min-width: 0;
}
.vdm-ac-stat-val{
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--vdm-ac-ink);
  overflow-wrap: anywhere;
}
.vdm-ac-stat-key{
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--vdm-ac-muted);
}

/* ══ Lignes icône + valeur ════════════════════════════════════ */
.vdm-ac-rows{ list-style: none; margin: 0; padding: 0; }
.vdm-ac-rows > li::before{ content: none; }

.vdm-ac-row{
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid var(--vdm-ac-line);
  list-style: none;
}
.vdm-ac-row:first-child{ border-top: 0; padding-top: 0; }
.vdm-ac-row:last-child { padding-bottom: 0; }

.vdm-ac-ico{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--vdm-ac-wash);
  color: var(--vdm-ac-muted);
}
.vdm-ac-ico svg{ width: 19px; height: 19px; display: block; }

/* La teinte ne porte que sur l'icône : le texte reste noir, lisible.
   Un bloc entièrement coloré crierait plus fort que l'information. */
.vdm-ac--green  > .vdm-ac-ico{ background: #e9f9f1; color: #0f7a4d; }
.vdm-ac--orange > .vdm-ac-ico{ background: #fef3e2; color: #b45309; }
.vdm-ac--red    > .vdm-ac-ico{ background: #ffece9; color: var(--vdm-ac-red); }

.vdm-ac-body{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vdm-ac-label{
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--vdm-ac-muted);
  line-height: 1.2;
}
.vdm-ac-value{
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--vdm-ac-ink);
  overflow-wrap: anywhere;
}

/* Score de confiance */
.vdm-ac-score{
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  width: 82px;
}
.vdm-ac-score-num{ font-size: 16px; font-weight: 800; line-height: 1; }
.vdm-ac-score-num small{ font-size: 10.5px; font-weight: 600; color: var(--vdm-ac-muted); }
.vdm-ac-gauge{
  display: block; width: 100%; height: 5px;
  border-radius: 999px; background: #eff0f1; overflow: hidden;
}
.vdm-ac-gauge-fill{ display: block; height: 100%; border-radius: 999px; background: var(--vdm-ac-muted); }
.vdm-ac--green  .vdm-ac-gauge-fill{ background: var(--vdm-ac-green); }
.vdm-ac--orange .vdm-ac-gauge-fill{ background: var(--vdm-ac-orange); }
.vdm-ac--red    .vdm-ac-gauge-fill{ background: var(--vdm-ac-red); }

/* ══ § Récupération ═══════════════════════════════════════════ */
.vdm-ac-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--vdm-ac-ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.vdm-ac-btn svg{ width: 16px; height: 16px; flex: 0 0 auto; color: var(--vdm-ac-red); }
.vdm-ac-btn:hover{ background: #000; box-shadow: 0 5px 16px rgba(0,0,0,.16); }
.vdm-ac-btn:active{ transform: scale(.98); }
.vdm-ac-btn[disabled]{ opacity: .6; cursor: wait; }
.vdm-ac-btn.is-loading svg{ animation: vdm-ac-spin 1.1s linear infinite; }
@keyframes vdm-ac-spin{ to{ transform: rotate(360deg); } }

.vdm-ac-sec--pickup.is-done .vdm-ac-pickup-idle{ display: none; }

.vdm-ac-pickup-card{
  padding: 15px 16px;
  border: 1px solid var(--vdm-ac-line);
  border-radius: 12px;
  background: var(--vdm-ac-wash);
}
.vdm-ac-pickup-main{
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 13px;
}
.vdm-ac-pickup-cost{
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--vdm-ac-ink);
}
.vdm-ac-pickup-cap{ font-size: 13px; font-weight: 600; color: var(--vdm-ac-muted); }

.vdm-ac-pickup-facts{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.vdm-ac-pickup-facts > li::before{ content: none; }
.vdm-ac-pickup-facts li{
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: #fff;
  list-style: none;
  min-width: 0;
}
.vdm-ac-pickup-facts span{ font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--vdm-ac-muted); }
.vdm-ac-pickup-facts strong{ font-size: 14px; font-weight: 800; color: var(--vdm-ac-ink); overflow-wrap: anywhere; }

.vdm-ac-pickup-surge{
  margin: 11px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: #fef3e2;
  color: #b45309;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}
.vdm-ac-pickup-err{
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #ffece9;
  color: #b3160a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* ══ Carrousel de comparables ═════════════════════════════════ */
.vdm-ac--similar{ padding-bottom: 14px; }
.vdm-ac--similar .vdm-ac-title{ margin-bottom: 14px; }
/* Le carrousel apporte son propre CSS (carousel.css) : on ne fait
   qu'annuler la marge que le thème pourrait poser sur le conteneur. */
.vdm-ac--similar .vdm-crs-wrap{ margin: 0; }

/* ══ Mobile ═══════════════════════════════════════════════════ */
@media (max-width: 700px){
  .vdm-ac-stats{ grid-template-columns: 1fr 1fr; }
  .vdm-ac-stat:first-child{ grid-column: 1 / -1; }
}
@media (max-width: 600px){
  .vdm-ac{ padding: 16px; border-radius: 12px; }
  .vdm-ac-title{ font-size: 15.5px; }
  .vdm-ac-sec{ padding-top: 14px; margin-top: 14px; }
  .vdm-ac-delta{ font-size: 22px; }
  .vdm-ac-price-line{ font-size: 13px; margin-bottom: 14px; }
  .vdm-ac-row{ gap: 11px; padding: 10px 0; }
  .vdm-ac-ico{ width: 34px; height: 34px; border-radius: 9px; }
  .vdm-ac-ico svg{ width: 17px; height: 17px; }
  .vdm-ac-value{ font-size: 13.5px; }
  .vdm-ac-score{ width: 62px; }
  .vdm-ac-score-num{ font-size: 14.5px; }
  .vdm-ac-pickup-cost{ font-size: 21px; }
  .vdm-ac-pickup-facts{ grid-template-columns: 1fr; }
  .vdm-ac-pickup-facts li{ flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; }
}

/* ══ Grille en sous-nombre : pas d'étirement ══════════════════
   carousel.css donne à chaque card une largeur = (100% − gouttières)
   / nombre de colonnes. Quand il y a moins d'annonces que de colonnes,
   la largeur des colonnes s'abaisse et la card s'étire jusqu'à occuper
   toute la largeur — l'image à ratio fixe se retrouve alors sur-zoomée.
   On plafonne ici la card à sa largeur « normale » (nombre de colonnes
   RÉGLÉ, exposé par --vc-dmax/--vc-tmax/--vc-mmax sur le wrap) : une
   annonce isolée garde donc sa taille habituelle et s'aligne à gauche,
   comme une grille pleine. Strictement limité aux deux carrousels de
   mod-ad-context (.vdm-ac--similar) ; les autres carrousels du site ne
   sont pas touchés. flex-start est déjà la valeur par défaut du track. */
.vdm-ac--similar .vdm-crs-track .vdm-card{
  max-width: calc((100% - (var(--vc-dmax, var(--vc-d)) - 1) * var(--vc-gap)) / var(--vc-dmax, var(--vc-d)));
}
@media (max-width: 900px){
  .vdm-ac--similar .vdm-crs-track .vdm-card{
    max-width: calc((100% - (var(--vc-tmax, var(--vc-t)) - 1) * var(--vc-gap)) / var(--vc-tmax, var(--vc-t)));
  }
}
@media (max-width: 600px){
  .vdm-ac--similar .vdm-crs-track .vdm-card{
    max-width: calc((100% - (var(--vc-mmax, var(--vc-m)) - 1) * var(--vc-gap)) / var(--vc-mmax, var(--vc-m)));
  }
}

/* ══ Impression ═══════════════════════════════════════════════ */
@media print{
  .vdm-ac{ break-inside: avoid; }
  .vdm-ac-sec--pickup, .vdm-ac--similar{ display: none; }
}

/* v2.40.0 — « Pas dispo ? Demander la livraison » (WhatsApp vendeur). */
.vdm-ac-pickup-deliv{
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: 11px 0 0;
  padding: 0 2px;
  border-top: 1px solid rgba(17,21,28,.08);
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
}
.vdm-ac-pickup-deliv strong{ font-weight: 700; color: #11151c; }
.vdm-ac-pickup-deliv span{ display: inline-block; color: #e31400; transition: transform .18s ease; }
.vdm-ac-pickup-deliv:hover strong,
.vdm-ac-pickup-deliv:focus-visible strong{ color: #e31400; }
.vdm-ac-pickup-deliv:hover span,
.vdm-ac-pickup-deliv:focus-visible span{ transform: translateX(2px); }
@media (prefers-reduced-motion: reduce){ .vdm-ac-pickup-deliv span{ transition: none; } }
