/* Module : réalisations avant / après */
.rea-filters .chip { background: var(--paper); color: var(--ink-2); border: 1.5px solid var(--line); }
.rea-filters .chip.is-active { background: var(--c, var(--solid-bg)); color: var(--ci, var(--solid-fg)); border-color: var(--ink); }
.rea-filters .chip[data-filter=""].is-active { background: var(--solid-bg); color: var(--solid-fg); }

.rea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }
.rea-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); animation: reaIn .35s ease; }
.rea-card[hidden] { display: none; }
@keyframes reaIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.rea-body { padding: 20px 22px 24px; }
.rea-body h2 { font-size: 1.3rem; margin: 10px 0 6px; }
.rea-body p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.rea-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .85rem !important; }
.rea-meta .chip { padding: 4px 12px; font-size: .8rem; }
.rea-demo { background: var(--warn-bg); color: var(--warn-ink); padding: 3px 10px; border-radius: 99px; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }

/* Curseur avant / après */
.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.25); pointer-events: none; }
.ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--ink); font-weight: 800; letter-spacing: 2px; box-shadow: var(--shadow-lg);
}
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input[type="range"]:focus-visible ~ .ba-handle::after { outline: 3px solid var(--sky-ink); }
.ba-tag { position: absolute; top: 12px; padding: 4px 12px; border-radius: 99px; background: rgba(21,37,55,.75); color: #fff; font-size: .78rem; font-weight: 600; pointer-events: none; }
.ba-tag-l { left: 12px; } .ba-tag-r { right: 12px; }

@media (max-width: 420px) { .rea-grid { grid-template-columns: 1fr; } }
