/* ---------- Vendre : « Nos dernières ventes », rangée de cartes verticales ---------- */
.ventes { overflow: hidden; }
.ventes-head { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(32px, 4vw, 52px); }
.ventes-head .h2 { margin: 10px 0 16px; }
.ventes-head .lead { max-width: 46ch; }
.ventes-figs { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(20px, 3vw, 44px); margin: 0; flex: none; }
.ventes-figs > div { padding-left: 18px; border-left: 1px solid var(--line); }
.ventes-figs dt { font-size: clamp(2rem, 3.2vw, 2.9rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ventes-figs dt small { font-size: .5em; letter-spacing: -0.02em; margin-left: .06em; }
.ventes-figs dd { margin: 8px 0 0; max-width: 16ch; font-size: 13.5px; line-height: 1.35; color: var(--muted); }

/* rail qui déborde à droite, aligné à gauche sur le contenu */
.ventes-rail { --gut: max(var(--gutter, 24px), calc((100vw - var(--container, 1360px)) / 2 + var(--gutter, 24px))); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; outline: none; padding: 14px 0 26px; }
.ventes-rail::-webkit-scrollbar { display: none; }
.ventes-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.ventes-rail.is-drag .vente-card { pointer-events: none; }
.ventes-rail:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 12px; }
.ventes-track { list-style: none; margin: 0; padding: 0 var(--gut); display: flex; gap: clamp(12px, 1.4vw, 20px); width: max-content; }
.vente { scroll-snap-align: start; width: clamp(250px, 23vw, 340px); flex: none; perspective: 900px; }
.vente-card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; aspect-ratio: 3 / 4.15; border-radius: 24px; overflow: hidden; isolation: isolate; background: var(--surface-2); transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0); transform-style: preserve-3d; box-shadow: 0 1px 2px rgba(20, 26, 56, .06), 0 18px 40px -22px rgba(20, 26, 56, .45); transition: transform .7s var(--ease), box-shadow .5s var(--ease); }
.vente-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 1.2s var(--ease); -webkit-user-drag: none; user-select: none; }
.vente-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 10, 20, .18) 0%, rgba(8, 10, 20, 0) 26%, rgba(8, 10, 20, 0) 48%, rgba(8, 10, 20, .78) 100%); }
/* reflet qui suit le curseur */
.vente-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s ease; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .22), transparent 45%); }
.vente:hover .vente-card { box-shadow: 0 2px 4px rgba(20, 26, 56, .08), 0 34px 60px -28px rgba(20, 26, 56, .6); }
.vente:hover .vente-card img { transform: scale(1.1); }
.vente:hover .vente-card::after { opacity: 1; }
.vente-card.is-tilt { transition: transform .12s linear, box-shadow .5s var(--ease); }
.vente-badge { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .34); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); box-shadow: none; transform: translateZ(30px); }
.vente-badge i { font-size: 15px; color: #a9b8ee; }
.vente-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 22px 22px; color: #fff; transform: translateZ(40px); }
.vente-txt h3 { margin: 0; font-size: clamp(1.7rem, 2.3vw, 2.25rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.vente-txt p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.35; color: rgba(255, 255, 255, .82); }

.ventes-foot { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.ventes-progress { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.ventes-progress span { position: absolute; inset: 0 auto 0 0; width: 20%; border-radius: inherit; background: var(--accent); transition: transform .25s linear, width .25s linear; }
.ventes-nav { display: flex; gap: 10px; }
.ventes-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 18px; transition: transform .25s var(--ease), border-color .2s, background-color .2s, color .2s, opacity .2s; }
.ventes-arrow:hover:not(:disabled) { border-color: var(--accent); background: var(--accent); color: #fff; }
.ventes-arrow:active:not(:disabled) { transform: scale(.94); }
.ventes-arrow:disabled { opacity: .35; cursor: default; }
.ventes-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ventes-cta { flex: none; }

@media (max-width: 960px) {
  .ventes-head { flex-direction: column; align-items: flex-start; }
  .ventes-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 14px; }
  .ventes-figs > div { padding-left: 12px; }
}
@media (max-width: 640px) {
  .vente { width: 76vw; }
  .ventes-figs dt { font-size: 1.75rem; }
  .ventes-figs dd { font-size: 12.5px; }
  .ventes-foot { flex-wrap: wrap; }
  .ventes-progress { flex-basis: 100%; order: -1; }
  .ventes-cta { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .vente-card, .vente-card img, .ventes-progress span { transition: none; }
  .vente:hover .vente-card img { transform: scale(1.04); }
}
