/* ==========================================================
   LISORA — realisations.css
   (le bloc .cta et les utilitaires .chips sont dans global.css)
   ========================================================== */

/* ---------- HERO + FILTRES ---------- */
.rl-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(48px, 8vw, 112px)) 0 0; }
.rl-hero::before {
  content: ""; position: absolute; left: -22%; top: -20%; z-index: -1; width: min(900px, 120%); aspect-ratio: 1; opacity: .6;
  background: repeating-radial-gradient(circle, transparent 0 64px, var(--border) 64px 65px);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 62%); mask: radial-gradient(circle, #000 0, transparent 62%);
}
.rl-hero h1 { margin: 24px 0; font: 300 clamp(2rem, 5.4vw, 4.6rem)/1.08 var(--font-title); letter-spacing: -.02em; }
.rl-hero__lead { max-width: 540px; color: var(--text-muted); font-size: 1.05rem; }
.rl-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 72px); padding: 16px 0; border-block: 1px solid var(--border); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 10px 16px; background: none; border: 1px solid var(--border); border-radius: 2px; cursor: pointer;
  font: 500 .6rem var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
  transition: color .3s, border-color .3s, background .4s;
}
.filter:hover { color: var(--white-cream); border-color: rgba(243, 240, 233, .4); }
.filter[aria-pressed="true"] { background: var(--white-cream); border-color: var(--white-cream); color: var(--color-bg); }
.rl-count { font: 400 .6rem var(--font-title); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- PROJETS (éditorial, alternance gauche / droite) ---------- */
.rl-list { padding-bottom: var(--section); }
.proj { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 32px; align-items: center; padding: clamp(40px, 6vw, 88px) 0; border-bottom: 1px solid var(--border); }
.proj.is-showing { animation: projIn .7s var(--ease); }
@keyframes projIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.proj__v { position: relative; grid-column: 1 / 8; grid-row: 1; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--border); transition: border-color .6s; }
.proj__info { grid-column: 9 / 13; grid-row: 1; }
.proj--flip .proj__v { grid-column: 6 / 13; }
.proj--flip .proj__info { grid-column: 1 / 6; }

.proj__img {
  position: absolute; inset: 0; transition: transform 1.4s var(--ease), filter .8s;
  /* Image via style="--img:url('../assets/images/…')" ; sans image, le motif de lignes reste visible */
  background: var(--img, none) center / cover no-repeat, repeating-linear-gradient(135deg, transparent 0 22px, rgba(243, 240, 233, .045) 22px 23px);
}
a.proj__v:hover .proj__img { transform: scale(1.05); }
a.proj__v:hover { border-color: rgba(197, 243, 250, .5); }
.proj__ph { position: absolute; top: 14px; left: 14px; font: 400 .56rem var(--font-title); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }

.proj__n { display: block; margin-bottom: 18px; font: 200 clamp(2.2rem, 3.6vw, 3.2rem)/1 var(--font-title); color: transparent; -webkit-text-stroke: 1px rgba(197, 243, 250, .55); transition: color .5s; }
.proj:hover .proj__n { color: var(--blue-light); }
.proj__type { font: 500 .6rem var(--font-title); letter-spacing: .16em; text-transform: uppercase; color: var(--purple-grey); }
.proj h2 { margin: 12px 0 16px; font: 300 clamp(1.3rem, 2.4vw, 2rem)/1.2 var(--font-title); letter-spacing: -.01em; transition: color .4s; }
.proj:hover h2 { color: var(--blue-light); }
.proj__desc { max-width: 440px; color: var(--text-muted); }
.proj .chips { margin: 22px 0 28px; }
.proj__soon { font: 500 .6rem var(--font-title); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.rl-empty { padding: 64px 0; text-align: center; color: var(--text-muted); }

/* Étiquette qui suit le curseur */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; }
.cursor span {
  display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--white-cream); color: var(--color-bg); font: 600 .58rem var(--font-title); letter-spacing: .12em; text-transform: uppercase;
  transform: scale(0); transition: transform .45s var(--ease);
}
.cursor.on span { transform: scale(1); }
.has-cursor a.proj__v { cursor: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .proj { gap: 28px 0; }
  .proj__v, .proj--flip .proj__v { grid-column: 1 / -1; grid-row: 1; }
  .proj__info, .proj--flip .proj__info { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .filters { width: 100%; }
  .filter { flex: 1 1 auto; text-align: center; }
}
